Selenium Test Automation: How to install TestNG in Eclipse?

Selenium

BriefTitle: 
Install TestNG

Install TestNG in Eclipse

Environment:

Operating System: 64 bit Windows 8
Java: 1.8
Eclipse: Oxyzen 4.7

Step 1: Install TestNG in Eclipse

  1. Launch Eclipse IDE if not launched already.
  2. From the menu bar, select Help > Install New Software to open the Install dialog box.
    Selenium-eclipse-testng-install-help-install
  3. Click the Add button to open the Add Repository dialog box.
    Selenium-eclipse-testng-install-dialogbox-click-add
  4. Enter the following details:
  5. Click the OK button.
  6. Selenium-eclipse-testng-install-add-repository-dialog-box-click-ok

  7. In the Install dialog box, select TestNG and then click Next
    Selenium-eclipse-testng-install-dialogbox-click-add
  8. Install dialog box will be displayed again for you to review the install details. Select TestNG and click Next.
    Selenium-eclipse-testng-install-select-testng-click-next-again
  9. Click I accept the terms of the license agreement and then click Finish.
    Selenium-eclipse-testng-install-accept-terms-click-finish
  10. If you get security warning dialog box, click Install anyway.
    selenium-eclipse-testng-install-security-warning-click-install-anyway
  11. In the Software update dialog box, click Restart Now. This will complete the TestNg installation process.
    selenium-eclipse-testng-install-software-update-click-restart-now
  12. Restart Eclipse.

Step 2: Verify TestNG installation

To verify if TestNG was installed successfully in Eclipse:

  1. Launch Eclipse IDE if not launched already.
  2. Right click on your project and see if TestNG is displayed.
    selenium-eclipse-testng-install-right-click-testng-verify
Sorting: 
4

Add new comment

Selenium