Install TestNG framework in Eclipse for Selenium Webdriver?

Author - Naman Gupta
23.01.2019
|
0 Comments
|

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

Webner Solutions is a Software Development company focused on developing Insurance Agency Management Systems, Learning Management Systems and Salesforce apps. Contact us at dev@webners.com for your Insurance, eLearning and Salesforce applications.

Leave a Reply

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