160. Installing TestNG in Eclipse IDE






We have to install TestNG in Eclipse IDE, in order to use TestNG testing Framework in our Selenium Automation Tests.

Please follow the below steps for installing the TestNG on Eclipse IDE:

1. In Eclipse IDE, select 'Install New Software' option from the Help Menu options as shown below:



2. Ensure that 'Install' dialog is displayed as shown below:


3. Enter the URL  http://beust.com/eclipse into the 'Works With' text box as shown below and press 'Enter' Button on your Keyboard :


4. Ensure that the TestNG is now displayed under the 'Name' column as shown below:



5. Select the 'TestNG' by selecting the check box option of it and then click on 'Next' Button as shown below
:

6. Wait until the 'Calculating Requirements and dependencies' is finished as shown below:



7. Ensure that the Install Details dialog displaying the TestNG is displayed and click on 'Next' button as shown below:


8. Ensure that the 'Review Licenses' dialog is displayed, select the radio button 'I accept the terms...' and click on 'Finish' button as shown below:


9. Ensure that Installing Software dialog is displayed as shown below:

10. While the installation is in Progress, you may get the 'Security Warning' dialog as shown below. If you get this dialog, click on 'OK' button to continue the installation.


11. Ensure that the installation is continued as shown below:


12. Wait for the installation progress to complete, and ensure that the 'Software Update' dialog is displayed as shown below and click on 'Yes' button:


13. Ensure that the Eclipse IDE gets restarted.

Check whether the TestNG is installed:

In Eclipse IDE, select 'Run As' option from the 'Run' Menu options and ensure that the 'TestNG' option is displayed as shown below:



This is how, we've to install the TestNG software on Eclipse IDE.


Please comment below to feedback or ask questions.

Using TestNG Annotations in Selenium WebDriver code will be explained in the next post.



Followers

Labels