Install TestNG plugin in Eclipse
In this article, we will see how to install the TestNG plugin in Eclipse. Please follow the step-to-step screens in this tutorial to install it in Eclipse.
To add TestNG to a project :
If you don’t have TestNG installed you won’t get the option to run the tests with the TestNG option in Eclipse IDE.
We can install the TestNG plugin via Eclipse Marketplace. Go to Help > Eclipse Marketplace…
In the Eclipse marketplace search for TestNG and click on the Go button.
Click the Install button for TestNG for Eclipse plug-in.
Check all the features and click the Confirm> button.
Read and Accept the license for the TestNG eclipse plugin.
The Eclipse will start installing the plugin when you click on the Finish button.
After install, you would need to restart the Eclipse. You would get an alert to restart the Eclipse at the end of the installation. Click OK and restart your eclipse.
We have done with the installation of the TestNG plug-in in eclipse. We may right-click any @Test method class or the TestNG suite file to check the run with the TestNG option.We will see the option to run as a TestNG test.
Alternatively, right-click the suite file to get the option to run as a TestNG Suite file as shown in the below screenshot.
Install from Update site:
Alternatively, we can install TestNG from the update site. Steps to install from the update site are at:
Update TestNG Plugin
TestNG Tutorials on this website can be found at:
For more details on the TestNG Framework, visit the official website of TestNG at: