How to install TestNG for Eclipse Plugin - H Y R Tutorials

How to install TestNG for Eclipse Plugin

Share This
How to install TestNG for Eclipse Plugin

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:
  1. Install via Eclipse Marketplace
  2. Install from update site

Install via Eclipse Marketplace

Go to the Eclipse Market Place and Search for TestNG or open the below link
https://marketplace.eclipse.org/content/testng-eclipse

How to install TestNG for Eclipse Plugin

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.
hyr tutorials

It opens the below window.

hyr tutorials

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.

hyr tutorials


Click on "Next" button, it shows the below window

hyr tutorials

Click on "Next" button, it shows the below window

hyr tutorials

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).

hyr tutorials

Once the plugin is installed it will ask you to restart the eclipse to reflect these plugin changes in the eclipse IDE.

hyr tutorials

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.