Reputation: 351
I am working as a trainee in Automated Testing Environment. I have to know about TestNG and some examples of TestNG. What is meant by Test Suite? Can anybody please provide me some example coding?
Upvotes: 0
Views: 648
Reputation: 389
Test suite is the driving class of test cases. if you have many testcase classes with the multiple test methods, test suite class or suite.xml can call each of the test class one by one.
Upvotes: 0
Reputation: 5082
In TestNG suite
is the highest level of grouping tests. It is defined by the single XML file. It can include test
constructs (which are different from specific tests you will implement), groups
, classes
, and methods
. To understand better how all these elements are related look into 5 - Test methods, Test classes and Test groups section of documentation. To understand how <suite>
is defined in testng.xml, check out DTD for this file.
Below please find some recommendations that can help you better understand TestNG and unit testing in general:
Upvotes: 3
Reputation: 16905
Why not start at the source? The TestNG documentation on their site
http://testng.org/doc/documentation-main.html
Upvotes: 5