Package org.testng.annotations
Interface IConfigurationAnnotation
-
- All Superinterfaces:
IAnnotation
,IParameterizable
,ITestOrConfiguration
public interface IConfigurationAnnotation extends ITestOrConfiguration
Encapsulate the @Configuration / @testng.configuration annotation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.String[]
getAfterGroups()
boolean
getAfterSuite()
boolean
getAfterTest()
boolean
getAfterTestClass()
boolean
getAfterTestMethod()
boolean
getAlwaysRun()
Used only for after type of configuration methods.java.lang.String[]
getBeforeGroups()
boolean
getBeforeSuite()
boolean
getBeforeTest()
boolean
getBeforeTestClass()
boolean
getBeforeTestMethod()
boolean
getInheritGroups()
default boolean
isAfterGroups()
default boolean
isBeforeGroups()
boolean
isFakeConfiguration()
Internal use only.-
Methods inherited from interface org.testng.annotations.IParameterizable
getEnabled, setEnabled
-
Methods inherited from interface org.testng.annotations.ITestOrConfiguration
getDependsOnGroups, getDependsOnMethods, getDescription, getGroups, getTimeOut, setDependsOnGroups, setDependsOnMethods, setDescription, setGroups, setTimeOut
-
-
-
-
Method Detail
-
getBeforeTestClass
boolean getBeforeTestClass()
- Returns:
- true if the annotated method will be run after the test class is instantiated and before the test method is invoked.
-
getAfterTestClass
boolean getAfterTestClass()
- Returns:
- true if the annotated method will be run after all the tests in the test class have been run.
-
getBeforeTestMethod
boolean getBeforeTestMethod()
- Returns:
- true true if the annotated method will be run before any test method is invoked.
-
getAfterTestMethod
boolean getAfterTestMethod()
- Returns:
- true if the annotated method will be run after any test method is invoked.
-
getBeforeSuite
boolean getBeforeSuite()
- Returns:
- true if the annotated method will be run before this suite starts.
-
getAfterSuite
boolean getAfterSuite()
- Returns:
- true if the annotated method will be run after all tests in this suite have run.
-
getBeforeTest
boolean getBeforeTest()
- Returns:
- true if the annotated method will be run before every test
-
getAfterTest
boolean getAfterTest()
- Returns:
- true if the annotated method will be run after all every test.
-
getAlwaysRun
boolean getAlwaysRun()
Used only for after type of configuration methods.- Returns:
- true if the configuration method will be run whatever the status of before configuration methods was.
-
getInheritGroups
boolean getInheritGroups()
- Returns:
- true if this @Configuration method will belong to groups specified in the \@Test annotation on the class (if any).
-
getBeforeGroups
java.lang.String[] getBeforeGroups()
- Returns:
- The list of groups that this configuration method will run before.
-
getAfterGroups
java.lang.String[] getAfterGroups()
- Returns:
- The list of groups that this configuration method will run after.
-
isFakeConfiguration
boolean isFakeConfiguration()
Internal use only.- Returns:
- true if this configuration annotation is not a "true" configuration annotation but a @BeforeSuite or similar that is represented as a configuration annotation.
-
isBeforeGroups
default boolean isBeforeGroups()
-
isAfterGroups
default boolean isAfterGroups()
-
-