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 2,946 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:

    help
     
  2. Enter the URL (http://beust.com/eclipse/) at Work with field and click on "Add" button:

    beust
     
  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:

    Testng
     
  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:

    path
     
  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:

    licenses
     
  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:

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

    java
answered May 17, 2019 by Abha
• 28,140 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
7,358 views
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,520 points
1,872 views
+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,890 points
37,849 views
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
2,771 views
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
13,422 views
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
6,400 views
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
9,002 views
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,140 points
1,165 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP