Package org.testng.internal.annotations
Class BaseBeforeAfter
java.lang.Object
org.testng.internal.annotations.BaseAnnotation
org.testng.internal.annotations.TestOrConfiguration
org.testng.internal.annotations.BaseBeforeAfter
- All Implemented Interfaces:
IAnnotation
,IParameterizable
,ITestOrConfiguration
,IBaseBeforeAfter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
boolean
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.String[]
The description for this method.boolean
void
setAfterGroups
(String[] afterGroups) void
setAlwaysRun
(boolean alwaysRun) void
setBeforeGroups
(String[] beforeGroups) void
setDescription
(String description) void
setInheritGroups
(boolean inheritGroups) Methods inherited from class org.testng.internal.annotations.TestOrConfiguration
getDependsOnGroups, getDependsOnMethods, getEnabled, getGroups, getPriority, getTimeOut, setDependsOnGroups, setDependsOnMethods, setEnabled, setGroups, setPriority, setTimeOut
Methods inherited from class org.testng.internal.annotations.BaseAnnotation
getConstructor, getMethod, getTestClass, setConstructor, setMethod, setTestClass
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.testng.internal.annotations.IBaseBeforeAfter
getDependsOnGroups, getDependsOnMethods, getEnabled, getGroups
Methods inherited from interface org.testng.annotations.IParameterizable
setEnabled
Methods inherited from interface org.testng.annotations.ITestOrConfiguration
getTimeOut, setDependsOnGroups, setDependsOnMethods, setGroups, setTimeOut
-
Field Details
-
m_alwaysRun
private boolean m_alwaysRun -
m_inheritGroups
private boolean m_inheritGroups -
m_beforeGroups
-
m_afterGroups
-
m_description
-
-
Constructor Details
-
BaseBeforeAfter
public BaseBeforeAfter()
-
-
Method Details
-
getDescription
Description copied from interface:IBaseBeforeAfter
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 interfaceIBaseBeforeAfter
- Specified by:
getDescription
in interfaceITestOrConfiguration
- Overrides:
getDescription
in classTestOrConfiguration
- Returns:
- the description
-
setDescription
- Specified by:
setDescription
in interfaceITestOrConfiguration
- Overrides:
setDescription
in classTestOrConfiguration
- Parameters:
description
- the description to set
-
setAlwaysRun
public void setAlwaysRun(boolean alwaysRun) -
setInheritGroups
public void setInheritGroups(boolean inheritGroups) -
getAlwaysRun
public boolean getAlwaysRun()Description copied from interface:IBaseBeforeAfter
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.- Specified by:
getAlwaysRun
in interfaceIBaseBeforeAfter
-
getInheritGroups
public boolean getInheritGroups()- Specified by:
getInheritGroups
in interfaceIBaseBeforeAfter
- Returns:
- true if this @Configuration method will belong to groups specified in the @Test annotation on the class (if any).
-
getAfterGroups
-
setAfterGroups
-
getBeforeGroups
-
setBeforeGroups
-