What is 'TestNG for Eclipse' Plugin?
The TestNG Eclipse plug-in allows you to run your TestNG tests from Eclipse and easily monitor their execution and their output.Software Requirements:
Java 1.7+ is required for running the TestNG for Eclipse plugin.Eclipse 4.2 and above is required.
Installation:
You can install this plugin in two ways:- Install via Eclipse Marketplace
- Install from update site
Install via Eclipse Marketplace
Go to the Eclipse Market Place and Search for TestNG or open the below linkhttps://marketplace.eclipse.org/content/testng-eclipse
Drag the icon called "Install" onto your eclipse workspace.
Install from update site
Open the eclipse software and from Help menu, click on 'Install New Software' as shown below.It opens the below window.
Now enter the URL "https://dl.bintray.com/testng-team/testng-eclipse-release" in workwith text box and click on Enter button then it will show TestNG for Eclipse Plugin in the results, check "TestNG" checkbox as shown below.
Click on "Next" button, it shows the below window
Click on "Next" button, it shows the below window
Accept the license agreement and click on "Finish" button.
Now it will start installing the plugin, you can see the progress in progress tab.
As we are installing third party plugin it will show the "Security Warning" window.
Click on "Install anyway" button to proceed with installation. (if you decide to abort the installation then click on "Cancel" button).
Once the plugin is installed it will ask you to restart the eclipse to reflect these plugin changes in the eclipse IDE.
Click on "Restart Now" to see the changes.
After restarting the eclipse You can add see this TestNG available in Eclipse libraries.
For adding TestNG library to your project follow below steps:
- Right click on your Project and select "Build Path" > "Configure Build Path..".
- Click on "Add Library" from right side panel.
- Select "TestNG" and click Next and then Finish.
- Click on "Apply and Close".
Now the TestNG library is added to your Project.