TestNG Framework TestNG is a testing framework designed to simplify a broad range of testing needs, from unit testing (testing a class in isolation of the others) to integration testing (testing entire systems made of several classes, several packages and even several external frameworks, such as application servers). Initially, it is developed to simplify a broad range of testing, no matter from system testing or Unit testing. It is an open source framework which is inspired from the Java platform (JUnit) and NET platform (NUnit). It can be used for any testing, be it API testing or UI testing. What are the Benefits of TestNG? Test cases can be Grouped & Prioritized more easily. Parallel testing is possible Generates Logs Data Parameterization is possible. Execution Order of TestNG ? Before Suite Annotation Before Test Annotation Before Class Annotation Before Method Annotation Case I After Method Annotation Before Method Annotation Case II