com.beust.testng.annotations
Annotation Type Configuration


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Configuration

Configuration information for a TestNG class.

Author:
Cedric Beust, Apr 26, 2004

Optional Element Summary
 boolean afterTestClass
          If true, the annotated method will be run after all the tests in the test class have been run.
 boolean afterTestMethod
          If true, the annotated method will be run after any test method is invoked.
 boolean beforeTestClass
          If true, the annotated method will be run after the test class is instantiated and before the test method is invoked.
 boolean beforeTestMethod
          If true, the annotated method will be run before any test method is invoked.
 java.lang.String[] dependsOnGroups
          The list of groups this method depends on.
 java.lang.String[] dependsOnMethods
          The list of methods this method depends on.
 boolean enabled
          Whether methods on this class/method are enabled.
 java.lang.String[] groups
          The list of groups this class/method belongs to.
 java.lang.String[] parameters
          The list of variables used to fill the parameters of this method.
 

beforeTestClass

public abstract boolean beforeTestClass
If true, the annotated method will be run after the test class is instantiated and before the test method is invoked.

Default:
false

afterTestClass

public abstract boolean afterTestClass
If true, the annotated method will be run after all the tests in the test class have been run.

Default:
false

beforeTestMethod

public abstract boolean beforeTestMethod
If true, the annotated method will be run before any test method is invoked.

Default:
false

afterTestMethod

public abstract boolean afterTestMethod
If true, the annotated method will be run after any test method is invoked.

Default:
false

parameters

public abstract java.lang.String[] parameters
The list of variables used to fill the parameters of this method. These variables must be defined in the property file.

Default:
{}

enabled

public abstract boolean enabled
Whether methods on this class/method are enabled.

Default:
true

groups

public abstract java.lang.String[] groups
The list of groups this class/method belongs to.

Default:
{}

dependsOnGroups

public abstract java.lang.String[] dependsOnGroups
The list of groups this method depends on. Every method member of one of these groups is guaranteed to have been invoked before this method. Furthermore, if any of these methods was not a SUCCESS, this test method will not be run and will be flagged as a SKIP.

Default:
{}

dependsOnMethods

public abstract java.lang.String[] dependsOnMethods
The list of methods this method depends on. There is no guarantee on the order on which the methods depended upon will be run, but you are guaranteed that all these methods will be run before the test method that contains this annotation is run. Furthermore, if any of these methods was not a SUCCESS, this test method will not be run and will be flagged as a SKIP. If some of these methods have been overloaded, all the overloaded versions will be run.

Default:
{}