Top Description Methods
org.testng.annotations

public Interface IConfigurationAnnotation

extends ITestOrConfiguration
Known Direct Implementers
org.testng.internal.annotations.ConfigurationAnnotation

Encapsulate the @Configuration / @testng.configuration annotation

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

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

public boolean

Returns:

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

public boolean

Returns:

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

public boolean

Returns:

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

public boolean

Returns:

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

public boolean

Returns:

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

Used only for after type of configuration methods.

public String[]

Returns:

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

public boolean

Returns:

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

public boolean

Returns:

true if the annotated method will be run before every test
getBeforeTest
()

public boolean

Returns:

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

public boolean

Returns:

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

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
public default boolean
public boolean

Returns:

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

Internal use only.

public boolean
Inherited from org.testng.annotations.ITestOrConfiguration:
getDependsOnGroupsgetDependsOnMethodsgetDescriptiongetGroupsgetTimeOutsetDependsOnGroupssetDependsOnMethodssetDescriptionsetGroupssetTimeOut

Method Detail

getAfterGroupsback to summary
public String[] getAfterGroups()
Returns:String[]

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

getAfterSuiteback to summary
public boolean getAfterSuite()
Returns:boolean

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

getAfterTestback to summary
public boolean getAfterTest()
Returns:boolean

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

getAfterTestClassback to summary
public boolean getAfterTestClass()
Returns:boolean

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

getAfterTestMethodback to summary
public boolean getAfterTestMethod()
Returns:boolean

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

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

getBeforeGroupsback to summary
public String[] getBeforeGroups()
Returns:String[]

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

getBeforeSuiteback to summary
public boolean getBeforeSuite()
Returns:boolean

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

getBeforeTestback to summary
public boolean getBeforeTest()
Returns:boolean

true if the annotated method will be run before every test

getBeforeTestClassback to summary
public boolean getBeforeTestClass()
Returns:boolean

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

getBeforeTestMethodback to summary
public boolean getBeforeTestMethod()
Returns:boolean

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

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).

isAfterGroupsback to summary
public default boolean isAfterGroups()
isBeforeGroupsback to summary
public default boolean isBeforeGroups()
isFakeConfigurationback to summary
public boolean 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.

isIgnoreFailureback to summary
public boolean isIgnoreFailure()