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 16, 2019 in Selenium by Charu

edited May 17, 2019 by Abha 1,438 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, 2019 by Abha
• 28,060 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,460 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 29, 2018 in Selenium by bug_seeker
• 15,550 points
+2 votes
1 answer
0 votes
3 answers

How to install TestNG in eclipse?

Installing TestNG in Eclipse Step 1) Launch Eclipse. On the ...READ MORE

answered Dec 11, 2020 in Selenium by Gitika
• 65,950 points
0 votes
2 answers

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

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

answered Sep 4, 2020 in Selenium by Sri
• 3,190 points
0 votes
2 answers

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,500 points
0 votes
1 answer

Diff between WebDriver listeners and TestNG listeners?

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

answered Apr 14, 2018 in Selenium by king_kenny
• 3,710 points
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
0 votes
1 answer

How to create a test case with TestNG in Selenium?

Hey Deepak, to create a Test Case ...READ MORE

answered May 22, 2019 in Selenium by Abha
• 28,060 points
0 votes
1 answer