Top Fields Constructors Methods
org.testng.internal.annotations

public Class TestOrConfiguration

extends BaseAnnotation
implements ITestOrConfiguration
Class Inheritance
All Implemented Interfaces
org.testng.annotations.ITestOrConfiguration, org.testng.annotations.IParameterizable, org.testng.annotations.IAnnotation
Known Direct Subclasses
org.testng.internal.annotations.BaseBeforeAfter, org.testng.internal.annotations.ConfigurationAnnotation, org.testng.internal.annotations.TestAnnotation
Imports
org.testng.annotations.ITestOrConfiguration

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Implements org.testng.annotations.IParameterizable.getEnabled.

Whether this annotation is enabled.
public String[]
public int
public long
public void
public void
public void
public void
public void
public void
setPriority(int priority)

public void
Inherited from org.testng.internal.annotations.BaseAnnotation:
getConstructorgetMethodgetTestClasssetConstructorsetMethodsetTestClass

Field Detail

m_dependsOnGroupsback to summary
private String[] m_dependsOnGroups
m_dependsOnMethodsback to summary
private String[] m_dependsOnMethods
m_descriptionback to summary
private String m_description
m_enabledback to summary
private boolean m_enabled
m_groupsback to summary
private String[] m_groups
m_priorityback to summary
private int m_priority
m_timeOutback to summary
private long m_timeOut

Constructor Detail

TestOrConfigurationback to summary
public TestOrConfiguration()

Method Detail

getDependsOnGroupsback to summary
public String[] getDependsOnGroups()

Implements org.testng.annotations.ITestOrConfiguration.getDependsOnGroups.

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.

Annotations
@Override
getDependsOnMethodsback to summary
public String[] getDependsOnMethods()

Implements org.testng.annotations.ITestOrConfiguration.getDependsOnMethods.

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.

Annotations
@Override
getDescriptionback to summary
public String getDescription()

Implements org.testng.annotations.ITestOrConfiguration.getDescription.

Returns:String

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

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

Annotations
@Override
getEnabledback to summary
public boolean getEnabled()

Implements org.testng.annotations.IParameterizable.getEnabled.

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

Whether this annotation is enabled.

Returns:boolean

true if enabled

Annotations
@Override
getGroupsback to summary
public String[] getGroups()

Implements org.testng.annotations.ITestOrConfiguration.getGroups.

Returns:String[]

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

The list of groups this class/method belongs to.

Annotations
@Override
getPriorityback to summary
public int getPriority()
getTimeOutback to summary
public long getTimeOut()

Implements org.testng.annotations.ITestOrConfiguration.getTimeOut.

Returns:long

Doc from org.testng.annotations.ITestOrConfiguration.getTimeOut.

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.

Annotations
@Override
setDependsOnGroupsback to summary
public void setDependsOnGroups(String[] dependsOnGroups)

Implements org.testng.annotations.ITestOrConfiguration.setDependsOnGroups.

Annotations
@Override
setDependsOnMethodsback to summary
public void setDependsOnMethods(String[] dependsOnMethods)

Implements org.testng.annotations.ITestOrConfiguration.setDependsOnMethods.

Annotations
@Override
setDescriptionback to summary
public void setDescription(String description)

Implements org.testng.annotations.ITestOrConfiguration.setDescription.

Annotations
@Override
setEnabledback to summary
public void setEnabled(boolean enabled)

Implements org.testng.annotations.IParameterizable.setEnabled.

Annotations
@Override
setGroupsback to summary
public void setGroups(String[] groups)

Implements org.testng.annotations.ITestOrConfiguration.setGroups.

Annotations
@Override
setPriorityback to summary
public void setPriority(int priority)
setTimeOutback to summary
public void setTimeOut(long timeOut)

Implements org.testng.annotations.ITestOrConfiguration.setTimeOut.

Annotations
@Override