1
package org.testng.internal.annotations;
4
* Base interface for IBeforeSuite, IAfterSuite, etc...
9
public interface IBaseBeforeAfter {
11
* Whether methods on this class/method are enabled.
13
public boolean getEnabled();
16
* The list of groups this class/method belongs to.
18
public String[] getGroups();
21
* The list of groups this method depends on. Every method
22
* member of one of these groups is guaranteed to have been
23
* invoked before this method. Furthermore, if any of these
24
* methods was not a SUCCESS, this test method will not be
25
* run and will be flagged as a SKIP.
27
public String[] getDependsOnGroups();
30
* The list of methods this method depends on. There is no guarantee
31
* on the order on which the methods depended upon will be run, but you
32
* are guaranteed that all these methods will be run before the test method
33
* that contains this annotation is run. Furthermore, if any of these
34
* methods was not a SUCCESS, this test method will not be
35
* run and will be flagged as a SKIP.
37
* If some of these methods have been overloaded, all the overloaded
38
* versions will be run.
40
public String[] getDependsOnMethods();
43
* For before methods (beforeSuite, beforeTest, beforeTestClass and
44
* beforeTestMethod, but not beforeGroups):
45
* If set to true, this configuration method will be run
46
* regardless of what groups it belongs to.
48
* For after methods (afterSuite, afterClass, ...):
49
* If set to true, this configuration method will be run
50
* even if one or more methods invoked previously failed or
53
public boolean getAlwaysRun();
56
* If true, this @Configuration method will belong to groups specified in the
57
* @Test annotation on the class (if any).
59
public boolean getInheritGroups();
62
* The description for this method. The string used will appear in the
63
* HTML report and also on standard output if verbose >= 2.
65
public String getDescription();