Install TestNG framework in Eclipse for Selenium Webdriver?

|
| By Webner

How to install TestNG framework in Eclipse for Selenium Webdriver?

TestNG is an automation testing framework in which NG stands for “Next Generation”.
By using TestNG we can automate the test cases with the help of annotations.

Steps to follow to install TestNG in selenium webdriver:

1) Launch the Eclipse IDE and from Help menu, click on “Eclipse Marketplace”:
install TestNG framework in Eclipse for Selenium Webdriver

2) You will see the dialogue box, and write “TestNG” in find search box and press enter and below there you will find “TestNG for eclipse”, click on the install button:
install TestNG framework in Eclipse for Selenium Webdriver

3) Click Next again on the succeeding dialog box until it prompts you to restart the Eclipse.
install TestNG framework in Eclipse for Selenium Webdriver

4) After restart, verify if TestNG was successfully installed. Right click on your project and see if TestNG is displayed in the opened menu:
install TestNG framework in Eclipse for Selenium Webdriver

5) Now you can start by creating a new TestNG class and fill the required information:
install TestNG framework in Eclipse for Selenium Webdriver

6) To run the code, right click on the class and select “TestNG Test” from “Run as”:
install TestNG framework in Eclipse for Selenium Webdriver

Leave a Reply

Your email address will not be published. Required fields are marked *