How to Download and Install TestNG in Eclipse for Selenium WebDriver

In this article I will let you know how to download and install TestNG in Eclipse for Selenium WebDriver.

Install testng in eclipse

Guys In this article I will let you know how to download and install TestNG in Eclipse for Selenium WebDriver. Following is a step by step guide to install TestNG in Eclipse IDE.

Installation Process

Step 1) 
  1. Go to https://www.google.com/
  2. Type "testng" in the search field.
  3. Click on the "Google Search" button.
  4. Open the first link from the search results.

Step 2) 
  1. TestNG documentation page will be loaded.
  2. To locate the TestNG plugin press ctr+f and type "eclipse".
  3. Now press Enter until you find the plugin link.
  4. After locating the link("Eclipse-plugin") click on it. 

Step 3) 
  1. The landing page will show the plugin versions.
  2. Copy the downloading link for the latest release.
  3. But try to copy the link that is compatible with your eclipse version.
  4. In my case, I am using this one https://dl.bintray.com/testng-team/testng-eclipse-release/7.2.0/

Step 4) 
  1. Launch Eclipse IDE.
  2. Click on the "Help" menu.
  3. Click on the "Install New Software..." option.

Step 5) 
  1. Eclipse install dialog box will show.
  2. Click on the "Add" button.

Step 6) 
  1. Add repository dialog box will show.
  2. Enter TestNG in Name field.
  3. Enter the copied URL in the Location field (Copied in step 3).
  4. Click on the "Add" button.

Step 7) 
  1. Select the "TestNG" checkbox.
  2. Click on the "Next" button.

Step 8) 
  1. Component review dialog will show.
  2. Click on the "Next" button.

Step 9) 
  1. Click on radion button "I accept the terms of the license agreement".
  2. Click on the "Finish" button.

It will take some time to install the plugin, the speed of installation depends on your internet speed. After some time it will prompt a security warning.

Step 10) 
  1. When you see a security warning just click on the "Install Anyway" button.

Step 11) 
  1. Wait for the installation to finish. after some time a popup will open, then click on "Restart Now." button

Step 12) 
  1. After the restart, verify either TestNG is installed or not. 
  2. For verification navigate to Window > Show View > Other.
  3. A directory box will show.
  4. Open the "Java" directory and see if TestNG is there.

Above mentioned is the complete process of TestNG installation in Eclipse. If you have any queries, please comment below. Like this post, don’t forget to share it.

    1 comments:

    1. Good one..please make more videos on practical part of automation.

      ReplyDelete