Top Fields Constructors Methods
org.testng.internal.annotations

public Class BaseBeforeAfter

extends TestOrConfiguration
implements IBaseBeforeAfter
Class Inheritance
All Implemented Interfaces
org.testng.internal.annotations.IBaseBeforeAfter, org.testng.annotations.ITestOrConfiguration, org.testng.annotations.IParameterizable, org.testng.annotations.IAnnotation

Field Summary

Modifier and TypeField and Description
private String[]
private boolean
private String[]
private String
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String[]
public boolean
getAlwaysRun()

Implements org.testng.internal.annotations.IBaseBeforeAfter.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[]
public String
public boolean
public void
setAfterGroups(String[] afterGroups)

public void
setAlwaysRun(boolean alwaysRun)

public void
setBeforeGroups(String[] beforeGroups)

public void
public void
setInheritGroups(boolean inheritGroups)

Inherited from org.testng.internal.annotations.TestOrConfiguration:
getDependsOnGroupsgetDependsOnMethodsgetEnabledgetGroupsgetPrioritygetTimeOutsetDependsOnGroupssetDependsOnMethodssetEnabledsetGroupssetPrioritysetTimeOut

Field Detail

m_afterGroupsback to summary
private String[] m_afterGroups
m_alwaysRunback to summary
private boolean m_alwaysRun
m_beforeGroupsback to summary
private String[] m_beforeGroups
m_descriptionback to summary
private String m_description

Hides org.testng.internal.annotations.TestOrConfiguration.m_description.

m_inheritGroupsback to summary
private boolean m_inheritGroups

Constructor Detail

BaseBeforeAfterback to summary
public BaseBeforeAfter()

Method Detail

getAfterGroupsback to summary
public String[] getAfterGroups()
getAlwaysRunback to summary
public boolean getAlwaysRun()

Implements org.testng.internal.annotations.IBaseBeforeAfter.getAlwaysRun.

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

Annotations
@Override
getBeforeGroupsback to summary
public String[] getBeforeGroups()
getDescriptionback to summary
public String getDescription()

Overrides org.testng.internal.annotations.TestOrConfiguration.getDescription.

Implements org.testng.internal.annotations.IBaseBeforeAfter.getDescription, org.testng.annotations.ITestOrConfiguration.getDescription.

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

the description

Annotations
@Override
getInheritGroupsback to summary
public boolean getInheritGroups()

Implements org.testng.internal.annotations.IBaseBeforeAfter.getInheritGroups.

Returns:boolean

Doc from org.testng.internal.annotations.IBaseBeforeAfter.getInheritGroups.

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

Annotations
@Override
setAfterGroupsback to summary
public void setAfterGroups(String[] afterGroups)
setAlwaysRunback to summary
public void setAlwaysRun(boolean alwaysRun)
setBeforeGroupsback to summary
public void setBeforeGroups(String[] beforeGroups)
setDescriptionback to summary
public void setDescription(String description)

Overrides org.testng.internal.annotations.TestOrConfiguration.setDescription.

Implements org.testng.annotations.ITestOrConfiguration.setDescription.

Parameters
description:String

the description to set

Annotations
@Override
setInheritGroupsback to summary
public void setInheritGroups(boolean inheritGroups)