Top Description Fields Constructors Methods
org.testng.internal.annotations

public Class ConfigurationAnnotation

extends TestOrConfiguration
implements IConfigurationAnnotation, IBeforeSuite, IAfterSuite, IBeforeTest, IAfterTest, IBeforeGroups, IAfterGroups, IBeforeClass, IAfterClass, IBeforeMethod, IAfterMethod
Class Inheritance
All Implemented Interfaces
org.testng.internal.annotations.IAfterMethod, org.testng.internal.annotations.IBaseBeforeAfterMethod, org.testng.internal.annotations.IBaseBeforeAfter, org.testng.annotations.ITestOrConfiguration, org.testng.annotations.IParameterizable, org.testng.annotations.IAnnotation, org.testng.internal.annotations.IBeforeMethod, org.testng.internal.annotations.IAfterClass, org.testng.internal.annotations.IBeforeClass, org.testng.internal.annotations.IAfterGroups, org.testng.internal.annotations.IBeforeGroups, org.testng.internal.annotations.IAfterTest, org.testng.internal.annotations.IBeforeTest, org.testng.internal.annotations.IAfterSuite, org.testng.internal.annotations.IBeforeSuite, org.testng.annotations.IConfigurationAnnotation
Imports
org.testng.annotations.IConfigurationAnnotation

An implementation of IConfiguration

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String[]
public boolean
public boolean
public boolean
public boolean
public boolean
public String[]
public boolean
public boolean
public boolean
public boolean
public String[]
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public void
setAfterGroups(String[] afterGroups)

public void
setAfterSuite(boolean afterSuite)

public void
setAfterTest(boolean afterTest)

public void
setAfterTestClass(boolean afterTestClass)

public void
setAfterTestMethod(boolean afterTestMethod)

public void
setAlwaysRun(boolean alwaysRun)

public void
setBeforeGroups(String[] beforeGroups)

public void
setBeforeSuite(boolean beforeSuite)

public void
setBeforeTest(boolean beforeTest)

public void
setBeforeTestClass(boolean beforeTestClass)

public void
setBeforeTestMethod(boolean beforeTestMethod)

public void
public void
setFirstTimeOnly(boolean f)

pack-priv void
setGroupFilters(String[] groupFilters)

public void
setIgnoreFailure(boolean ignoreFailure)

public void
setInheritGroups(boolean inheritGroups)

public void
setIsAfterGroups(boolean isAfterGroups)

public void
setIsBeforeGroups(boolean isBeforeGroups)

public void
setLastTimeOnly(boolean f)

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

Field Detail

m_afterGroupsback to summary
private String[] m_afterGroups
m_afterSuiteback to summary
private boolean m_afterSuite
m_afterTestback to summary
private boolean m_afterTest
m_afterTestClassback to summary
private boolean m_afterTestClass
m_afterTestMethodback to summary
private boolean m_afterTestMethod
m_alwaysRunback to summary
private boolean m_alwaysRun
m_beforeGroupsback to summary
private String[] m_beforeGroups
m_beforeSuiteback to summary
private boolean m_beforeSuite
m_beforeTestback to summary
private boolean m_beforeTest
m_beforeTestClassback to summary
private boolean m_beforeTestClass
m_beforeTestMethodback to summary
private boolean m_beforeTestMethod
m_firstTimeOnlyback to summary
private boolean m_firstTimeOnly
m_groupFiltersback to summary
private String[] m_groupFilters
m_ignoreFailureback to summary
private boolean m_ignoreFailure
m_inheritGroupsback to summary
private boolean m_inheritGroups
m_isAfterGroupsback to summary
private boolean m_isAfterGroups
m_isBeforeGroupsback to summary
private boolean m_isBeforeGroups
m_isFakeConfigurationback to summary
private boolean m_isFakeConfiguration
m_lastTimeOnlyback to summary
private boolean m_lastTimeOnly

Constructor Detail

ConfigurationAnnotationback to summary
public ConfigurationAnnotation()

Method Detail

getAfterGroupsback to summary
public String[] getAfterGroups()

Implements org.testng.annotations.IConfigurationAnnotation.getAfterGroups.

Returns:String[]

Doc from org.testng.annotations.IConfigurationAnnotation.getAfterGroups.

The list of groups that this configuration method will run after.

Annotations
@Override
getAfterSuiteback to summary
public boolean getAfterSuite()

Implements org.testng.annotations.IConfigurationAnnotation.getAfterSuite.

Returns:boolean

Doc from org.testng.annotations.IConfigurationAnnotation.getAfterSuite.

true if the annotated method will be run after all tests in this suite have run.

Annotations
@Override
getAfterTestback to summary
public boolean getAfterTest()

Implements org.testng.annotations.IConfigurationAnnotation.getAfterTest.

Returns:boolean

Doc from org.testng.annotations.IConfigurationAnnotation.getAfterTest.

true if the annotated method will be run after all every test.

Annotations
@Override
getAfterTestClassback to summary
public boolean getAfterTestClass()

Implements org.testng.annotations.IConfigurationAnnotation.getAfterTestClass.

Returns:boolean

Doc from org.testng.annotations.IConfigurationAnnotation.getAfterTestClass.

true if the annotated method will be run after all the tests in the test class have been run.

Annotations
@Override
getAfterTestMethodback to summary
public boolean getAfterTestMethod()

Implements org.testng.annotations.IConfigurationAnnotation.getAfterTestMethod.

Returns:boolean

Doc from org.testng.annotations.IConfigurationAnnotation.getAfterTestMethod.

true if the annotated method will be run after any test method is invoked.

Annotations
@Override
getAlwaysRunback to summary
public boolean getAlwaysRun()

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

Doc from org.testng.annotations.IConfigurationAnnotation.getAlwaysRun.

Used only for after type of configuration methods.

Returns:boolean

true if the configuration method will be run whatever the status of before configuration methods was.

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

Implements org.testng.annotations.IConfigurationAnnotation.getBeforeGroups.

Returns:String[]

Doc from org.testng.annotations.IConfigurationAnnotation.getBeforeGroups.

The list of groups that this configuration method will run before.

Annotations
@Override
getBeforeSuiteback to summary
public boolean getBeforeSuite()

Implements org.testng.annotations.IConfigurationAnnotation.getBeforeSuite.

Returns:boolean

Doc from org.testng.annotations.IConfigurationAnnotation.getBeforeSuite.

true if the annotated method will be run before this suite starts.

Annotations
@Override
getBeforeTestback to summary
public boolean getBeforeTest()

Implements org.testng.annotations.IConfigurationAnnotation.getBeforeTest.

Returns:boolean

Doc from org.testng.annotations.IConfigurationAnnotation.getBeforeTest.

true if the annotated method will be run before every test

Annotations
@Override
getBeforeTestClassback to summary
public boolean getBeforeTestClass()

Implements org.testng.annotations.IConfigurationAnnotation.getBeforeTestClass.

Returns:boolean

Doc from org.testng.annotations.IConfigurationAnnotation.getBeforeTestClass.

true if the annotated method will be run after the test class is instantiated and before the test method is invoked.

Annotations
@Override
getBeforeTestMethodback to summary
public boolean getBeforeTestMethod()

Implements org.testng.annotations.IConfigurationAnnotation.getBeforeTestMethod.

Returns:boolean

Doc from org.testng.annotations.IConfigurationAnnotation.getBeforeTestMethod.

true true if the annotated method will be run before any test method is invoked.

Annotations
@Override
getGroupFiltersback to summary
public String[] getGroupFilters()

Implements org.testng.internal.annotations.IBaseBeforeAfterMethod.getGroupFilters.

Returns:String[]

Doc from org.testng.internal.annotations.IBaseBeforeAfterMethod.getGroupFilters.

The list of groups the test method must belong to one of which.

Annotations
@Override
getInheritGroupsback to summary
public boolean getInheritGroups()

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

Returns:boolean

Doc from org.testng.annotations.IConfigurationAnnotation.getInheritGroups.

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

Annotations
@Override
isAfterGroupsback to summary
public boolean isAfterGroups()

Overrides default org.testng.annotations.IConfigurationAnnotation.isAfterGroups.

Annotations
@Override
isBeforeGroupsback to summary
public boolean isBeforeGroups()

Overrides default org.testng.annotations.IConfigurationAnnotation.isBeforeGroups.

Annotations
@Override
isFakeConfigurationback to summary
public boolean isFakeConfiguration()

Implements org.testng.annotations.IConfigurationAnnotation.isFakeConfiguration.

Doc from org.testng.annotations.IConfigurationAnnotation.isFakeConfiguration.

Internal use only.

Returns:boolean

true if this configuration annotation is not a "true" configuration annotation but a @BeforeSuite or similar that is represented as a configuration annotation.

Annotations
@Override
isFirstTimeOnlyback to summary
public boolean isFirstTimeOnly()
isIgnoreFailureback to summary
public boolean isIgnoreFailure()

Implements org.testng.annotations.IConfigurationAnnotation.isIgnoreFailure.

isLastTimeOnlyback to summary
public boolean isLastTimeOnly()
setAfterGroupsback to summary
public void setAfterGroups(String[] afterGroups)
setAfterSuiteback to summary
public void setAfterSuite(boolean afterSuite)
setAfterTestback to summary
public void setAfterTest(boolean afterTest)
setAfterTestClassback to summary
public void setAfterTestClass(boolean afterTestClass)
setAfterTestMethodback to summary
public void setAfterTestMethod(boolean afterTestMethod)
setAlwaysRunback to summary
public void setAlwaysRun(boolean alwaysRun)
setBeforeGroupsback to summary
public void setBeforeGroups(String[] beforeGroups)
setBeforeSuiteback to summary
public void setBeforeSuite(boolean beforeSuite)
setBeforeTestback to summary
public void setBeforeTest(boolean beforeTest)
setBeforeTestClassback to summary
public void setBeforeTestClass(boolean beforeTestClass)
setBeforeTestMethodback to summary
public void setBeforeTestMethod(boolean beforeTestMethod)
setFakeConfigurationback to summary
public void setFakeConfiguration(boolean b)
setFirstTimeOnlyback to summary
public void setFirstTimeOnly(boolean f)
setGroupFiltersback to summary
pack-priv void setGroupFilters(String[] groupFilters)
setIgnoreFailureback to summary
public void setIgnoreFailure(boolean ignoreFailure)
setInheritGroupsback to summary
public void setInheritGroups(boolean inheritGroups)
setIsAfterGroupsback to summary
public void setIsAfterGroups(boolean isAfterGroups)
setIsBeforeGroupsback to summary
public void setIsBeforeGroups(boolean isBeforeGroups)
setLastTimeOnlyback to summary
public void setLastTimeOnly(boolean f)