By | August 23, 2020

TestNG is a test automation framework emerged to overcome the limitations of both JUnit and NUnit. It has many new features which are more powerful and easy to use.

  • Annotations.
  • Multithread safe tests.
  • Data driven testing.
  • Parameterization support.

TestNG supports a different variety of tests like unit, integration, system, functional and end to end.


Setup TestNG:

It can be installed into eclipse via two methods.

  • From Eclipse Marketplace.
  • From update site.

Install from Eclipse Marketplace:

Step 1: Open Eclipse and click on Help┬ápresent in the Menu bar. Then click on Eclipse Marketplace…

TestNG 1

Step 2: Enter testng in the search box and click on Go button. Click on install button.

TestNG 2

Step 3: Do not change anything in the next screen and click on Confirm button.

TestNG 3

Step 4: Sofware installation begins and a Security Warning popup displays on the screen.

TestNG 4

Click on OK button present in the Security Warning.

TestNG 5

Step 5: Software is installed and it will ask you to restart the Eclipse to reflect the changes.

TestNG 6

Step 6: Check whether TestNG is installed or not. Go to Project –> Properties.

TestNG 7

Step 7: We can see TestNG from the left side section.

TestNG 8


Install from the update site:

Step 1: Open Eclipse and click on Help present in the Menu bar. Then click on Install New Software…

TestNG 9

Step 2: Type http://beust.com/eclipse as below and press enter button. TestNG will get populated from that site. Click on Next button.

TestNG 10


Step 3: Do not modify anything and click on Next button.

TestNG 11

Step 4: Accept the license agreement and click on Finish button.

TestNG 12


Step 5: TestNG has been installed successfully.


Learn TestNG annotations from below link.
TestNG annotations.


Leave a Reply

Your email address will not be published. Required fields are marked *