Install TestNG in Eclipse

What is TestNG, Install and Execute the script – http://www.guru99.com/all-about-testng-and-selenium.html

Install from Marketplace

  • Open marketplace window from Help > Eclipse Market Place
  • Find by keyword testing and search
  • Install it

Install as New Software in IDE

  1. Launch the Eclipse IDE and from Help menu, click “Install New Softwaretestng1_001
  2. You will see a dialog window, click “Add” button

testng_2

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

testng_3

4. Select TestNG Latest Version Ex. 6.9.12.xxxx

testng_4

5. Click “I accept the terms of the license agreement” then clickFinish.

TestNG_5.png

6. It downloading software and installation being in process

testng_5_1

7. You may or may not encounter a Security warning, if in case you do just clickOK.

testng_68. ClickNext again on the succeeding dialog box until it prompts you to Restart the Eclipse.

testng_7

9. Verify TestNG installed or not in the eclipse from Window > Preferences > TestNG

10. In the project include the TestNG Reference jar library files on clicking suggesting help ‘Add TestNG Library’

testng_8

11. Import references in the Class for TestNG annotation ex. @Test

testng_10

Verify Reference library added in Package Explorer

testng_9

Or Add TestNG into Java Build Path

Add_TestNG_BuildPath.png

Or Add TestNG into Java Build Path

 

Advertisements

About samp79

Professional Automation Tester
This entry was posted in TestNG, Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s