TestNG annotations

TestNG use the annotation "@Test" to specify a method/class as a test method/class. Some common attributes used in the Mifos acceptance test framework:

  • sequential - flag whether tests are to be run sequentially.
  • invocationCount - can be used to run a test multiple times
  • groups - the test is part of one or more groups that can be called as a selected group of tests.

More detailed documentation of TestNG is provided by testng.org - http://testng.org/javadoc/. For annotations, click on org.testng.annotations, annotation type Test.