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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]booleanFor 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.booleanvoidsetAfterGroups(String[] afterGroups) voidsetAlwaysRun(boolean alwaysRun) voidsetBeforeGroups(String[] beforeGroups) voidsetDescription(String description) voidsetInheritGroups(boolean inheritGroups) Methods inherited from class TestOrConfiguration
getDependsOnGroups, getDependsOnMethods, getEnabled, getGroups, getPriority, getTimeOut, setDependsOnGroups, setDependsOnMethods, setEnabled, setGroups, setPriority, setTimeOutMethods inherited from class BaseAnnotation
getConstructor, getMethod, getTestClass, setConstructor, setMethod, setTestClassMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IBaseBeforeAfter
getDependsOnGroups, getDependsOnMethods, getEnabled, getGroups, ignoreFailureMethods inherited from interface IParameterizable
setEnabledMethods inherited from interface ITestOrConfiguration
getTimeOut, setDependsOnGroups, setDependsOnMethods, setGroups, setTimeOut
-
Constructor Details
-
BaseBeforeAfter
public BaseBeforeAfter()
-
-
Method Details
-
getDescription
Description copied from interface:IBaseBeforeAfterThe description for this method. The string used will appear in the HTML report and also on standard output if verbose > 2.- Specified by:
getDescriptionin interfaceIBaseBeforeAfter- Specified by:
getDescriptionin interfaceITestOrConfiguration- Overrides:
getDescriptionin classTestOrConfiguration- Returns:
- the description
-
setDescription
- Specified by:
setDescriptionin interfaceITestOrConfiguration- Overrides:
setDescriptionin 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:IBaseBeforeAfterFor 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:
getAlwaysRunin interfaceIBaseBeforeAfter
-
getInheritGroups
public boolean getInheritGroups()- Specified by:
getInheritGroupsin 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
-