![]() A test method can belong to one or several groups.Even though the example above uses the JUnit conventions, our methodsĬan be called any name you like, it's the annotations that tell TestNG what.No need to extend a class or implement an interface.In this example, we will be running the groupįast, so aFastTest() will be invoked while aSlowTest() will be The method setUp() will be invoked after the test class has been built and beforeĪny test method is run. code that will be invoked when this test is = ) Here is a very simple test: SimpleTest.java TestNG's features provides for a very intuitive and maintainable testing design. You can also check out a quickĪrticle describing a very concrete example where the combined use of several Reading these entries might give you a better idea of the goal I am trying toĪchieve with TestNG. I started TestNG out of frustration for some JUnit deficiencies which I have TestNG is designed to cover all categories of tests: unit, functional, Dependent methods for application server testing. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |