Testng is unit testing framework inspired junit and nunit .
Following are few points which makes testng more powerful than junit
1. Testng supports parametrized testing , as junit also supports however that is not more effective as testng.
2. No need to extend any class while coding.
3. Method dependency can be achieved.
4.Grouping of test methods can be done. Ex. You can group different set of test methods of similar functionality.
5. You can do parallel execution of groups in selenium/wedriver. There is a provision to run all or some of the groups
Testng is more advance in parametrize testing,dependency testing and suite testing.
Input configuration to testng can be provide by two ways :
1. xml file : You can specify the parameters, class/groups/test in xml file.
2. By Code: Following is the my post link which shows testng coding and report generation.
http://gurushantjidagi.blogspot.in/2013/07/setup-and-trigger-test-automation-using.html
No comments:
Post a Comment