In this blog post, we will be discussing how to install TestNG for Selenium Webdriver in Eclipse IDE. It is very easy to install TestNG, as it comes as a plugin with Eclipse.
Prerequisites for Installing TestNG:
- Successfully installed eclipse IDE.
- Perfectly fine running Internet Connection.
Steps to Install TestNG:
- Launch Eclipse IDE.
- Go to the Help option in the top main horizontal menu.
- Select “Install New Software” from the list.
![Install New Software](https://cdn.prod.website-files.com/64b7ba4dc9375b7b74b2135e/64c8982488a0b45f1f9fe84b_install.png)
- You will see a dialog box. Click “Add” button.
![Add button dialogue box](https://cdn.prod.website-files.com/64b7ba4dc9375b7b74b2135e/64c89824837da0852ec50f61_add-button-dialogue-box.png)
- In the “Name” field, type whatever name you want to give; for example, in this case, I am giving the name “TestNG”. In the location field, enter the following URL: “http://beust.com/eclipse/”. Click on the Add button.
![Input in Name field](https://cdn.prod.website-files.com/64b7ba4dc9375b7b74b2135e/64c898244d77e154675a171d_input-in-name-field.png)
- You will return to the previous window. This time you will be able to see the “TestNG” option in the list of available software.
- Click on “TestNG” and click on the Next button.
![Click on Next button](https://cdn.prod.website-files.com/64b7ba4dc9375b7b74b2135e/64c8982499b65d108ec2cec1_click-on-next-button.png)
- Click on “I accept the terms and license agreement” and click on the Finish button.
- If you encounter a security warning, click on the OK button.
- Eclipse will take a while to download and install TestNG. You will see a prompt to restart the Eclipse.
- Restart Eclipse, and now you are ready for the actual coding.
- After restarting to verify the successful installation of TestNG, right-click on your project and see if TestNG is displayed in the opened menu.
![Displaying TestNG](https://cdn.prod.website-files.com/64b7ba4dc9375b7b74b2135e/64c8982436ee0e49074e26b8_displaying-testNG.png)
In a way, we aim at helping you Download and Install the TestNG plugin for Eclipse IDE.