How to import TestNG in Eclipse for Selenium?

0 votes
I want to use assertion methods in my selenium test scripts, but for that I have to import TestNG plugin into Eclipse. Can anyone please help me with the installation of TestNG in Eclipse framework?
May 15 in Selenium by Charu

edited May 17 by Abha 73 views

1 answer to this question.

0 votes

Hi Charu, to install TestNG framework in Eclipse you need to use Install New Software feature of Eclipse:

  1. In Eclipse, on top menu bar, Under Help Menu, Click on "Install new Software" in help window:

  2. Enter the URL ( at Work with field and click on "Add" button:

  3. Once you click on "Add", it will display the screen, enter the Name as "TestNG":

    beust link

  4. After clicking on "OK", it will scan and display the software available with the URL which you have mentioned. Now select the checkbox at TestNG and Click on "Next" button:

  5. It will check for the requirement and dependencies before starting the installation. If there is any problem with the requirements/dependencies, it will ask you to install them first before continuing with TestNG:

  6. Once the above step is done, it will ask you to review the installation details. If your are ready or Ok to install TestNG, click on "Next" to continue.
  7. Accept the Terms of the license agreement and Click on "Finish" button:

  8. Finally once the installation is done, you can check the TestNG is installed properly or Not. For that, Go to Windows Menu bar, and Mouse Over on "Show View" and Click on "Other" at the last as in the below screen shot:

  9. Expand Java folder and see if the TestNg is available as in the below screen shot:

answered May 17 by Abha
• 27,180 points

Related Questions In Selenium

0 votes
1 answer

How to pause for few seconds in Selenium?

you can locate an element that loads ...READ MORE

answered Jul 6, 2018 in Selenium by Meci Matt
• 9,420 points
0 votes
1 answer

How to wait for the webpage to load in selenium using java

Firstly, when you launch a web application, ...READ MORE

answered Aug 28, 2018 in Selenium by bug_seeker
• 15,350 points
+2 votes
1 answer
0 votes
1 answer

How to install TestNG in eclipse?

Its very simple @user,  Simply open your eclipse ...READ MORE

answered Dec 26, 2018 in Selenium by Nabarupa
0 votes
1 answer

What is the role of TestNG & JUnit frameworks in Selenium?

Well TestNG and JUnit are test frameworks ...READ MORE

answered Apr 18, 2018 in Selenium by king_kenny
• 3,650 points
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,110 points
0 votes
1 answer

Diff between WebDriver listeners and TestNG listeners?

This is not a very important concept ...READ MORE

answered Apr 13, 2018 in Selenium by king_kenny
• 3,650 points
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer