Package org.testng.internal.annotations
Interface IBaseBeforeAfter
-
- All Superinterfaces:
IAnnotation
,IParameterizable
,ITestOrConfiguration
- All Known Subinterfaces:
IAfterClass
,IAfterGroups
,IAfterMethod
,IAfterSuite
,IAfterTest
,IBaseBeforeAfterMethod
,IBeforeClass
,IBeforeGroups
,IBeforeMethod
,IBeforeSuite
,IBeforeTest
- All Known Implementing Classes:
BaseBeforeAfter
,ConfigurationAnnotation
public interface IBaseBeforeAfter extends ITestOrConfiguration
Base interface for IBeforeSuite, IAfterSuite, etc...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getAlwaysRun()
For before methods (beforeSuite, beforeTest, beforeTestClass and beforeTestMethod, but not beforeGroups): If set to true, this configuration method will be run regardless of what groups it belongs to.java.lang.String[]
getDependsOnGroups()
The list of groups this method depends on.java.lang.String[]
getDependsOnMethods()
The list of methods this method depends on.java.lang.String
getDescription()
The description for this method.boolean
getEnabled()
Whether methods on this class/method are enabled.java.lang.String[]
getGroups()
The list of groups this class/method belongs to.boolean
getInheritGroups()
If true, this @Configuration method will belong to groups specified in the @Test annotation on the class (if any).-
Methods inherited from interface org.testng.annotations.IParameterizable
setEnabled
-
Methods inherited from interface org.testng.annotations.ITestOrConfiguration
getTimeOut, setDependsOnGroups, setDependsOnMethods, setDescription, setGroups, setTimeOut
-
-
-
-
Method Detail
-
getEnabled
boolean getEnabled()
Whether methods on this class/method are enabled.- Specified by:
getEnabled
in interfaceIParameterizable
-
getGroups
java.lang.String[] getGroups()
The list of groups this class/method belongs to.- Specified by:
getGroups
in interfaceITestOrConfiguration
-
getDependsOnGroups
java.lang.String[] getDependsOnGroups()
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.- Specified by:
getDependsOnGroups
in interfaceITestOrConfiguration
-
getDependsOnMethods
java.lang.String[] getDependsOnMethods()
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.
- Specified by:
getDependsOnMethods
in interfaceITestOrConfiguration
-
getAlwaysRun
boolean getAlwaysRun()
For before methods (beforeSuite, beforeTest, beforeTestClass and beforeTestMethod, but not beforeGroups): If set to true, this configuration method will be run regardless of what groups it belongs to.
For after methods (afterSuite, afterClass, ...): If set to true, this configuration method will be run even if one or more methods invoked previously failed or was skipped.
-
getInheritGroups
boolean getInheritGroups()
If true, this @Configuration method will belong to groups specified in the @Test annotation on the class (if any).
-
getDescription
java.lang.String getDescription()
The description for this method. The string used will appear in the HTML report and also on standard output if verbose >= 2.- Specified by:
getDescription
in interfaceITestOrConfiguration
-
-