Top Description Methods
org.testng.internal.annotations

public Interface IBaseBeforeAfter

extends ITestOrConfiguration
Known Direct Subinterfaces
org.testng.internal.annotations.IBeforeClass, org.testng.internal.annotations.IBeforeGroups, org.testng.internal.annotations.IBeforeSuite, org.testng.internal.annotations.IBeforeTest, org.testng.internal.annotations.IBaseBeforeAfterMethod, org.testng.internal.annotations.IAfterClass, org.testng.internal.annotations.IAfterGroups, org.testng.internal.annotations.IAfterSuite, org.testng.internal.annotations.IAfterTest
Known Direct Implementers
org.testng.internal.annotations.BaseBeforeAfter
Imports
org.testng.annotations.ITestOrConfiguration

Base interface for IBeforeSuite, IAfterSuite, etc...

Method Summary

Modifier and TypeMethod and Description
public 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.

public String[]
getDependsOnGroups()

Redeclares org.testng.annotations.ITestOrConfiguration.getDependsOnGroups.

The list of groups this method depends on.
public String[]
getDependsOnMethods()

Redeclares org.testng.annotations.ITestOrConfiguration.getDependsOnMethods.

The list of methods this method depends on.
public String
getDescription()

Redeclares org.testng.annotations.ITestOrConfiguration.getDescription.

The description for this method.
public boolean
getEnabled()

Redeclares org.testng.annotations.IParameterizable.getEnabled.

Whether methods on this class/method are enabled.
public String[]
getGroups()

Redeclares org.testng.annotations.ITestOrConfiguration.getGroups.

The list of groups this class/method belongs to.
public boolean

Returns:

true if this @Configuration method will belong to groups specified in the @Test annotation on the class (if any).
getInheritGroups
()

public default boolean
Inherited from org.testng.annotations.ITestOrConfiguration:
getTimeOutsetDependsOnGroupssetDependsOnMethodssetDescriptionsetGroupssetTimeOut

Method Detail

getAlwaysRunback to summary
public 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.

getDependsOnGroupsback to summary
public String[] getDependsOnGroups()

Redeclares org.testng.annotations.ITestOrConfiguration.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.

Returns:String[]

Doc from org.testng.annotations.ITestOrConfiguration.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.

getDependsOnMethodsback to summary
public String[] getDependsOnMethods()

Redeclares org.testng.annotations.ITestOrConfiguration.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.

Returns:String[]

Doc from org.testng.annotations.ITestOrConfiguration.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.

getDescriptionback to summary
public String getDescription()

Redeclares org.testng.annotations.ITestOrConfiguration.getDescription.

The description for this method. The string used will appear in the HTML report and also on standard output if verbose > 2.

Returns:String

Doc from org.testng.annotations.ITestOrConfiguration.getDescription.

The description for this method, which will be shown in the reports.

getEnabledback to summary
public boolean getEnabled()

Redeclares org.testng.annotations.IParameterizable.getEnabled.

Whether methods on this class/method are enabled.

Returns:boolean

Doc from org.testng.annotations.IParameterizable.getEnabled.

true if enabled

getGroupsback to summary
public String[] getGroups()

Redeclares org.testng.annotations.ITestOrConfiguration.getGroups.

The list of groups this class/method belongs to.

Returns:String[]

Doc from org.testng.annotations.ITestOrConfiguration.getGroups.

The list of groups this class/method belongs to.

getInheritGroupsback to summary
public boolean getInheritGroups()
Returns:boolean

true if this @Configuration method will belong to groups specified in the @Test annotation on the class (if any).

ignoreFailureback to summary
public default boolean ignoreFailure()