Software Testing Class

Installation of TestNG in Eclipse – Selenium WebDriver Tutorial

In previous post we have started Introduction of TestNG framework and Advantages of TestNG over Junit framework. Today we are seeing how to Install TestNG framework in Eclipse IDE.

Please follow following simple steps to Install TestNG in Eclipse. We have installed Eclipse in few days back, if you don’t have eclipse then please get installed using post: “Link”

Steps to install TestNG in Eclipse IDE:

1)  Launch Eclipse IDE & under Help menu click on “Install New Software” option.

Testng Eclipse Install New Software

 

2) Install dialog box will be appeared same as below:

 

3) In the install dialog box, enter URL as “http://beust.com/eclipse” in Work with text box & press keyboard enter key.

 

4) Under Name column TestNG check box will be displayed same as below:

 

5) Select the “TestNG” check box & click on Next button.

 

6) On Install Details screen, make sure that TestNG is selected & then click on Next button same as mentioned below screenshot:

 

7) On Review Licenses screen read license agreement & select “I accept…” option shown in below screen shot & click on Finish button.

 

8) Ensure that Installing Software dialog appear. Wait till installation gets completed:

 

9) One security warning message will appear during installation. Ensure that you click on Ok button if same security dialog is appeared.

 

10) Once the installation process is completed then Eclipse ask you to Restart, click on Yes button.

 

11) Once the Eclipse is restarted, to make sure whether TestNG is installed or not. Just under Run menu click on “Run As” option & check new option is added called “TestNG Test”same as below screen shot:

 

Conclusion:
TestNG is really impressive framework where we can execute the simple to complex test scripts with ease. It supports many powerful features, like annotations, reporting, data-driven testing etc. We are covering these all features in the upcoming articles soon.

If you like this article, consider subscribing to get all Testing Updates in your Inbox for FREE. To get testing tips Click Here.

 

Enter your email address:

Check email in your inbox for confirmation to get latest updates Software Testing for free.

 

Happy Testing!!

Exit mobile version