Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
796 views
by The go-to Tester (222 points)
I have created a TestNG project. I moved it from another Eclipse. My current Eclipse instance does not have TestNG. How do I install TestNG plugin and add TestNG library to the build path?

1 Answer

0 like 0 dislike
by The go-to Tester (222 points)

To include TestNG to your build path, first, you have to install TestNG plugin in the Eclipse. Below steps will explain how to install TestNG plugin.

  • Launch the Eclipse IDE and from the Help menu, click “Install New Software”.
  • You will see a dialog window, click “Add” button.
  • Type name as you wish lets take “TestNG” and type “http://beust.com/eclipse/” as location. Click OK.
  • Click “I accept the terms of the license agreement” then click Finish.
  • You may or may not encounter a Security warning if in case you do just click OK.
  • Click Next again on the succeeding dialog box until it prompts you to Restart the Eclipse.
  • You are all done now, just Click Yes.

Now Add TestNG library to your Project.

  • Right-click on the Project and select Properties
  • Select "Java Build Path" and Select "Libraries" tab
  • Click "Add Library..."
  • Select "TestNG" and click Next
  • Click Finish.
  • Then Click OK.

That's all. TestNG is added to your build path.

by Expert (748 points)
Launch the Eclipse IDE and from the Help menu, click “Install New Software”.
You will see a dialog window, click “Add” button.
Type name as you wish lets take “TestNG” and type “http://beust.com/eclipse/” as location. Click OK.
Click “I accept the terms of the license agreement” then click Finish.
You may or may not encounter a Security warning if in case you do just click OK.
Click Next again on the succeeding dialog box until it prompts you to Restart the Eclipse.
You are all done now, just Click Yes.
Now Add TestNG library to your Project.

Right-click on the Project and select Properties
Select "Java Build Path" and Select "Libraries" tab
Click "Add Library..."
Select "TestNG" and click Next
Click Finish.
Then Click OK.
by Master (1.2k points)
Hi Bharat,

Thank you for the answer. You can edit it and save it as an answer instead of the comment so you can win points through upvote.

-Mayur
by Expert (748 points)
ohh it seems some mistake apologize!


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...