Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

0
how do I install TestNG plugin and add the TestNG library to the build path in Eclipse?

Open 1 Answers 41 Views
0 1
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
0

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.

answered by (202 points)
3Comments
commented by (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.
commented by (859 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
commented by (748 points)
ohh it seems some mistake apologize!

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...