151. Introduction to TestNG






TestNG is a powerful testing Framework.

Till now we have used JUnit testing Framework in our Selenium Automation Tests. As TestNG testing Framework is more powerful and has many advantages over JUnit testing Framework, lets prefer to write our Selenium Automation Tests on TestNG testing Framework from now on wards.

Why TestNG is more powerful than JUnit ?

TestNG is more advance in parameterized testing, dependency testing and suite testing (Grouping concept). TestNG is meant for high-level testing and complex integration test. Its flexibility is especially useful with large test suites. In addition, TestNG also cover the entire core JUnit 4 functionality. It's just no reason for us to use JUnit anymore.

How to Run Selenium  RC Tests using TestNG testing Framework ?

In order to Run a Selenium RC Test using TestNG, we have to perform the following things first:
  1. Install TestNG in Eclipse IDE
  2. Use TestNG annotations in Selenium RC code

Please comment below to feedback or ask questions.

Installing TestNG in Eclipse IDE will be explained in the next post.


No comments:

Post a Comment

Followers

Labels