Top Description Methods
org.testng.annotations

public Interface ITestOrConfiguration

extends IParameterizable
Known Direct Subinterfaces
org.testng.internal.annotations.IBaseBeforeAfter, org.testng.annotations.IConfigurationAnnotation, org.testng.annotations.ITestAnnotation
Known Direct Implementers
org.testng.internal.annotations.TestOrConfiguration

This interface captures methods common to @Test and @Configuration

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

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

public String[]

Returns:

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.

getDependsOnMethods
()

public String

Returns:

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

public String[]

Returns:

The list of groups this class/method belongs to.
getGroups
()

public long

Returns:

Returns the maximum number of milliseconds this test should take. If it hasn't returned after this time, it will be marked as a FAIL.
getTimeOut
()

public void
public void
setDependsOnMethods(String[] dependsOnMethods)

public void
setDescription(String description)

public void
setGroups(String[] groups)

public void
setTimeOut(long l)

Inherited from org.testng.annotations.IParameterizable:
getEnabledsetEnabled

Method Detail

getDependsOnGroupsback to summary
public String[] getDependsOnGroups()
Returns:String[]

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()
Returns:String[]

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()
Returns:String

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

getGroupsback to summary
public String[] getGroups()
Returns:String[]

The list of groups this class/method belongs to.

getTimeOutback to summary
public long getTimeOut()
Returns:long

Returns the maximum number of milliseconds this test should take. If it hasn't returned after this time, it will be marked as a FAIL.

setDependsOnGroupsback to summary
public void setDependsOnGroups(String[] groups)
setDependsOnMethodsback to summary
public void setDependsOnMethods(String[] dependsOnMethods)
setDescriptionback to summary
public void setDescription(String description)
setGroupsback to summary
public void setGroups(String[] groups)
setTimeOutback to summary
public void setTimeOut(long l)