Install TestNG in Eclipse

It is easy to install TestNG, as it comes as a plugin for Eclipse IDE. Prerequisite for installing TestNG is your Internet connection should be up & running during installation of this plugin and Eclipse IDE should be installed in your computer. Please see Download and Install Eclipse to setup Eclipse to you system.

 

Steps to follow:

1) Launch the Eclipse IDE and from Help menu, click “Install New Software”.

Install TestNG in Eclipse

2) You will see a dialog window, click “Add” button.

Install-TestNG-2

3) Type name as you wish, lets take “TestNG” and type “http://beust.com/eclipse/” as location. Click OK.

Install-TestNG-3

4) You come back to the previous window but this time you must see TestNG option in the available software list. Just Click TestNG and press “Next” button.

Install-TestNG-4

5) Click “I accept the terms of the license agreement” then click Finish.

Install-TestNG-5

6) You may or may not encounter a Security warning, if in case you do just click OK.

Install-TestNG-7

7) Click Next again on the succeeding dialog box until it prompts you to Restart the Eclipse.

8) You are all done now, just Click Yes.

Install-TestNG-8

9) Proceed with your workplace.

10) After restart, verify if TestNG was indeed successfully installed. Right click on you project and see if TestNG is displayed in the opened menu.

Install-TestNG-9

 

Video for Installing TestNG Eclipse Plugin