![]() ![]() TestNG is similar to JUnit and NUnit but with newer functionalities such as: annotations, test that your code is multithread safe, flexible test configuration, support for data-driven testing (with support for parameters, powerful execution model (no more TestSuite) and more. TestNG is a testing framework for the Java programming language inspired by JUnit and NUnit Test classes no longer need to extend anything (such as Test Case, for JUnit 3).Unit Testing, Intergration Testing, End-to-End Testing.Annotations are strongly typed, so the compiler will flag any mistakes right away.We can pass additional parameters to annotations.Hence method names are not restricted to any pattern or format. ![]() It identifies the methods it is interested in by looking up annotations.The annotated method is a part of a test case.The annotated method will be run after each test method.The annotated method will be run before each test method.The annotated method will be run after all the test methods in the current class have been run.The annotated method will be run before the first test method in the current class is invoked.This method is guaranteed to run shortly after the last test method that belongs to any of these groups is invoked. The list of groups that this configuration method will run after. ![]() This method is guaranteed to run shortly before the first test method that belongs to any of these groups is invoked.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |