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 62 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 by Abha
• 24,400 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
736 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 28, 2018 in Selenium by bug_seeker
• 15,350 points
189 views
+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
100 views
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
301 views
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,090 points
752 views
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
1,714 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer