Passionate to Quality

How to integrate TestNG with Selenium Webdriver in Eclipse

Test-NG-Guide
  • What is TestNG?

TestNG is testing framework. TestNG is more powerful than Junit & Nunit. It is designed to provide more flexible features to testers.

  • Features of TestNG

1. Support Data-driven testing using  [@DataProvider].

2. Allow to use Annotations

3. Parameter Support.

4. Generate excellent reports of your automated tests.

5. One click run of your automation script by XML.

6. Priorities your testes , methods.

7. Provide support for Selenium, Maven, Eclipse etc.

  • How to Install TestNG in Eclipse

1. Open your Eclipse & Go to Menu Help -> Install New Software


 

2. It will open Installation screen , Click on Add

Step-2

 

3 – On click of Add , It will open new window , Add Here URL : http://beust.com/eclipse

Step-3

Name is Optional , You can Write like – TestNG. Finally Click on OK.

 

4 –  After click on OK , It will find TestNG source , Do Check for TestNG & Click on Next

Step-4

 

5. It will have one more screen to do Next. Here it is showing version and name of Framework.

Step-5

 

6. Now , It will ask to accept agreement , Agree to it and click on Finish

Step - 6

 

7. Now It is installing

Step-7

 

8. During installation it will show you security warning , Just Click on OK

Step - 8

9. Finally it ask to restart your eclipse , Click on Yes. TestNG installed now 🙂


Email Us for any query




Email: inquiry@thesoftwaretesting.com

DISCLAIMER

Thesoftwaretesting.com provides QA services world wide. We Specialized in Manual Testing, Automation Testing, Web Testing and Mobile App. Testing. We focus on providing top notch Quality assurance services.