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

public Class TestAnnotation

extends TestOrConfiguration
implements ITestAnnotation
Class Inheritance
All Implemented Interfaces
org.testng.annotations.ITestAnnotation, org.testng.internal.annotations.IDataProvidable, org.testng.annotations.ITestOrConfiguration, org.testng.annotations.IParameterizable, org.testng.annotations.IAnnotation
Imports
org.testng.IRetryAnalyzer, org.testng.annotations.CustomAttribute, .ITestAnnotation

An implementation of ITest

Field Summary

Modifier and TypeField and Description
private boolean
private CustomAttribute[]
private String
private Class<?>
private String
private Class<?>[]
private String
private boolean
private int
private long
private Class<? extends IRetryAnalyzer>
private boolean
private boolean
private int
private String
private String
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
getAlwaysRun()

Implements org.testng.annotations.ITestAnnotation.getAlwaysRun.

If set to true, this test method will always be run even if it depends on a method that failed.
public CustomAttribute[]
public String
public Class<?>
public String
public Class<?>[]
public String
public int
getInvocationCount()

Implements org.testng.annotations.ITestAnnotation.getInvocationCount.

Returns the number of times this method should be invoked.
public Class<? extends IRetryAnalyzer>
public boolean
public int
getSuccessPercentage()

Implements org.testng.annotations.ITestAnnotation.getSuccessPercentage.

The percentage of success expected from this method.
public String
public String
public int
getThreadPoolSize()

Implements org.testng.annotations.ITestAnnotation.getThreadPoolSize.

The size of the thread pool for this method.
public boolean
public long
private static boolean
public void
public void
public void
public void
public void
public void
setExpectedExceptions(Class<?>[]
the expectedExceptions to set
expectedExceptions
)

Implements org.testng.annotations.ITestAnnotation.setExpectedExceptions.

public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public boolean
Inherited from org.testng.internal.annotations.TestOrConfiguration:
getDependsOnGroupsgetDependsOnMethodsgetDescriptiongetEnabledgetGroupsgetPrioritygetTimeOutsetDependsOnGroupssetDependsOnMethodssetDescriptionsetEnabledsetGroupssetPrioritysetTimeOut

Field Detail

m_alwaysRunback to summary
private boolean m_alwaysRun
m_attributesback to summary
private CustomAttribute[] m_attributes
m_dataProviderback to summary
private String m_dataProvider
m_dataProviderClassback to summary
private Class<?> m_dataProviderClass
m_dataProviderDynamicClassback to summary
private String m_dataProviderDynamicClass
m_expectedExceptionsback to summary
private Class<?>[] m_expectedExceptions
m_expectedExceptionsMessageRegExpback to summary
private String m_expectedExceptionsMessageRegExp
m_ignoreMissingDependenciesback to summary
private boolean m_ignoreMissingDependencies
m_invocationCountback to summary
private int m_invocationCount
m_invocationTimeOutback to summary
private long m_invocationTimeOut
m_retryAnalyzerClassback to summary
private Class<? extends IRetryAnalyzer> m_retryAnalyzerClass
m_singleThreadedback to summary
private boolean m_singleThreaded
m_skipFailedInvocationsback to summary
private boolean m_skipFailedInvocations
m_successPercentageback to summary
private int m_successPercentage
m_suiteNameback to summary
private String m_suiteName
m_testNameback to summary
private String m_testName
m_threadPoolSizeback to summary
private int m_threadPoolSize

Constructor Detail

TestAnnotationback to summary
public TestAnnotation()

Method Detail

getAlwaysRunback to summary
public boolean getAlwaysRun()

Implements org.testng.annotations.ITestAnnotation.getAlwaysRun.

Doc from org.testng.annotations.ITestAnnotation.getAlwaysRun.

If set to true, this test method will always be run even if it depends on a method that failed. This attribute will be ignored if this test doesn't depend on any method or group.

Returns:boolean

the value

Annotations
@Override
getAttributesback to summary
public CustomAttribute[] getAttributes()

Implements org.testng.annotations.ITestAnnotation.getAttributes.

Annotations
@Override
getDataProviderback to summary
public String getDataProvider()

Implements org.testng.annotations.ITestAnnotation.getDataProvider.

Annotations
@Override
getDataProviderClassback to summary
public Class<?> getDataProviderClass()

Implements org.testng.annotations.ITestAnnotation.getDataProviderClass.

Annotations
@Override
getDataProviderDynamicClassback to summary
public String getDataProviderDynamicClass()

Implements org.testng.annotations.ITestAnnotation.getDataProviderDynamicClass.

Annotations
@Override
getExpectedExceptionsback to summary
public Class<?>[] getExpectedExceptions()

Implements org.testng.annotations.ITestAnnotation.getExpectedExceptions.

Returns:Class<?>[]

the expectedExceptions

Annotations
@Override
getExpectedExceptionsMessageRegExpback to summary
public String getExpectedExceptionsMessageRegExp()

Implements org.testng.annotations.ITestAnnotation.getExpectedExceptionsMessageRegExp.

Annotations
@Override
getInvocationCountback to summary
public int getInvocationCount()

Implements org.testng.annotations.ITestAnnotation.getInvocationCount.

Doc from org.testng.annotations.ITestAnnotation.getInvocationCount.

Returns the number of times this method should be invoked.

Returns:int

the number of times this method should be invoked.

Annotations
@Override
getRetryAnalyzerClassback to summary
public Class<? extends IRetryAnalyzer> getRetryAnalyzerClass()

Implements org.testng.annotations.ITestAnnotation.getRetryAnalyzerClass.

Annotations
@Override
getSingleThreadedback to summary
public boolean getSingleThreaded()

Implements org.testng.annotations.ITestAnnotation.getSingleThreaded.

Annotations
@Override
getSuccessPercentageback to summary
public int getSuccessPercentage()

Implements org.testng.annotations.ITestAnnotation.getSuccessPercentage.

Doc from org.testng.annotations.ITestAnnotation.getSuccessPercentage.

The percentage of success expected from this method.

Returns:int

the value

Annotations
@Override
getSuiteNameback to summary
public String getSuiteName()

Implements org.testng.annotations.ITestAnnotation.getSuiteName.

Annotations
@Override
getTestNameback to summary
public String getTestName()

Implements org.testng.annotations.ITestAnnotation.getTestName.

Annotations
@Override
getThreadPoolSizeback to summary
public int getThreadPoolSize()

Implements org.testng.annotations.ITestAnnotation.getThreadPoolSize.

Doc from org.testng.annotations.ITestAnnotation.getThreadPoolSize.

The size of the thread pool for this method. The method will be invoked from multiple threads as specified by invocationCount.

Note

this attribute is ignored if invocationCount is not specified

Returns:int

the value

Annotations
@Override
ignoreMissingDependenciesback to summary
public boolean ignoreMissingDependencies()

Implements org.testng.annotations.ITestAnnotation.ignoreMissingDependencies.

Annotations
@Override
invocationTimeOutback to summary
public long invocationTimeOut()

Implements org.testng.annotations.ITestAnnotation.invocationTimeOut.

Annotations
@Override
isRetryAnalyzerNotTestNGInjectedback to summary
private static boolean isRetryAnalyzerNotTestNGInjected(Class<? extends IRetryAnalyzer> c)
setAlwaysRunback to summary
public void setAlwaysRun(boolean alwaysRun)

Implements org.testng.annotations.ITestAnnotation.setAlwaysRun.

Annotations
@Override
setAttributesback to summary
public void setAttributes(CustomAttribute[] attributes)

Implements org.testng.annotations.ITestAnnotation.setAttributes.

Annotations
@Override
setDataProviderback to summary
public void setDataProvider(String dataProvider)

Implements org.testng.annotations.ITestAnnotation.setDataProvider.

Annotations
@Override
setDataProviderClassback to summary
public void setDataProviderClass(Class<?> dataProviderClass)

Implements org.testng.annotations.ITestAnnotation.setDataProviderClass.

Annotations
@Override
setDataProviderDynamicClassback to summary
public void setDataProviderDynamicClass(String v)

Implements org.testng.annotations.ITestAnnotation.setDataProviderDynamicClass.

Annotations
@Override
setExpectedExceptionsback to summary
public void setExpectedExceptions(Class<?>[] expectedExceptions)

Implements org.testng.annotations.ITestAnnotation.setExpectedExceptions.

Parameters
expectedExceptions:Class<?>[]

the expectedExceptions to set

Annotations
@Override
setExpectedExceptionsMessageRegExpback to summary
public void setExpectedExceptionsMessageRegExp(String expectedExceptionsMessageRegExp)

Implements org.testng.annotations.ITestAnnotation.setExpectedExceptionsMessageRegExp.

Annotations
@Override
setIgnoreMissingDependenciesback to summary
public void setIgnoreMissingDependencies(boolean ignore)

Implements org.testng.annotations.ITestAnnotation.setIgnoreMissingDependencies.

Annotations
@Override
setInvocationCountback to summary
public void setInvocationCount(int invocationCount)

Implements org.testng.annotations.ITestAnnotation.setInvocationCount.

Annotations
@Override
setInvocationTimeOutback to summary
public void setInvocationTimeOut(long timeOut)

Implements org.testng.annotations.ITestAnnotation.setInvocationTimeOut.

Annotations
@Override
setRetryAnalyzerback to summary
public void setRetryAnalyzer(Class<? extends IRetryAnalyzer> c)

Implements org.testng.annotations.ITestAnnotation.setRetryAnalyzer.

Annotations
@Override
setSingleThreadedback to summary
public void setSingleThreaded(boolean singleThreaded)

Implements org.testng.annotations.ITestAnnotation.setSingleThreaded.

Annotations
@Override
setSkipFailedInvocationsback to summary
public void setSkipFailedInvocations(boolean skip)

Implements org.testng.annotations.ITestAnnotation.setSkipFailedInvocations.

Annotations
@Override
setSuccessPercentageback to summary
public void setSuccessPercentage(int successPercentage)

Implements org.testng.annotations.ITestAnnotation.setSuccessPercentage.

Annotations
@Override
setSuiteNameback to summary
public void setSuiteName(String xmlSuite)

Implements org.testng.annotations.ITestAnnotation.setSuiteName.

Annotations
@Override
setTestNameback to summary
public void setTestName(String xmlTest)

Implements org.testng.annotations.ITestAnnotation.setTestName.

Annotations
@Override
setThreadPoolSizeback to summary
public void setThreadPoolSize(int threadPoolSize)

Implements org.testng.annotations.ITestAnnotation.setThreadPoolSize.

Annotations
@Override
skipFailedInvocationsback to summary
public boolean skipFailedInvocations()

Implements org.testng.annotations.ITestAnnotation.skipFailedInvocations.

Annotations
@Override