TestNG is a Testing Framework designed to test all types of Tests such as – Unit , Functional, End to End , etc. It is inspired from JUnit . Using TestNG annotations we can write simple and structured Test Script. It can be easily integrated with Jenkins and Maven.
With TestNG you can generate Test reports for Test Status. We can easily change Sequence of Tests / Methods and prioritize them as per our need.
Looping tests and running them multiple times is also possible with TestNG.
Chapter : Install TestNG in Eclipse
Chapter : TestNG annotations
Chapter : Parameterisation in TestNG
Chapter : Read and Write testng.xml
Chapter : Dependencies in testng XML
Chapter : HardAssert Vs SoftAssert
HardAssert – Throws exception when it occurs.
SoftAssert – Collects all errors during the test but don’t throw exception when it occurs.
Chapter : TestNG Listeners in Selenium WebDriver