Top Description Methods
org.testng.annotations

public Interface ITestAnnotation

extends ITestOrConfiguration, IDataProvidable
Known Direct Subinterfaces
org.testng.internal.annotations.ITest
Known Direct Implementers
org.testng.internal.annotations.TestAnnotation
Imports
org.testng.IRetryAnalyzer, org.testng.internal.annotations.IDataProvidable

Encapsulate the @Test / @testng.test annotation.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

the value
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

Returns:

the number of times this method should be invoked.
getInvocationCount
()

Returns the number of times this method should be invoked.

public int

Returns:

the value
getPriority
()

The scheduling priority.

public Class<? extends IRetryAnalyzer>
public boolean
public int

Returns:

the value
getSuccessPercentage
()

The percentage of success expected from this method.

public String
public String
public int

Returns:

the value
getThreadPoolSize
()

The size of the thread pool for this method.

public boolean
public long
public void
setAlwaysRun(boolean f)

public void
public void
public void
public void
public void
public void
public void
public void
public void
setInvocationTimeOut(long timeOut)

public void
setPriority(int priority)

public void
public void
setSingleThreaded(boolean f)

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

Method Detail

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

getAttributesback to summary
public CustomAttribute[] getAttributes()
getDataProviderback to summary
public String getDataProvider()

Redeclares org.testng.internal.annotations.IDataProvidable.getDataProvider.

getDataProviderClassback to summary
public Class<?> getDataProviderClass()

Redeclares org.testng.internal.annotations.IDataProvidable.getDataProviderClass.

getDataProviderDynamicClassback to summary
public String getDataProviderDynamicClass()

Redeclares org.testng.internal.annotations.IDataProvidable.getDataProviderDynamicClass.

getExpectedExceptionsback to summary
public Class<?>[] getExpectedExceptions()
getExpectedExceptionsMessageRegExpback to summary
public String getExpectedExceptionsMessageRegExp()
getInvocationCountback to summary
public int getInvocationCount()

Returns the number of times this method should be invoked.

Returns:int

the number of times this method should be invoked.

getPriorityback to summary
public int getPriority()

The scheduling priority. Lower priorities get scheduled first.

Returns:int

the value

getRetryAnalyzerClassback to summary
public Class<? extends IRetryAnalyzer> getRetryAnalyzerClass()
getSingleThreadedback to summary
public boolean getSingleThreaded()
getSuccessPercentageback to summary
public int getSuccessPercentage()

The percentage of success expected from this method.

Returns:int

the value

getSuiteNameback to summary
public String getSuiteName()
getTestNameback to summary
public String getTestName()
getThreadPoolSizeback to summary
public int 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

ignoreMissingDependenciesback to summary
public boolean ignoreMissingDependencies()
invocationTimeOutback to summary
public long invocationTimeOut()
setAlwaysRunback to summary
public void setAlwaysRun(boolean f)
setAttributesback to summary
public void setAttributes(CustomAttribute[] attributes)
setDataProviderback to summary
public void setDataProvider(String v)

Redeclares org.testng.internal.annotations.IDataProvidable.setDataProvider.

setDataProviderClassback to summary
public void setDataProviderClass(Class<?> v)

Redeclares org.testng.internal.annotations.IDataProvidable.setDataProviderClass.

setDataProviderDynamicClassback to summary
public void setDataProviderDynamicClass(String v)

Redeclares org.testng.internal.annotations.IDataProvidable.setDataProviderDynamicClass.

setExpectedExceptionsback to summary
public void setExpectedExceptions(Class<?>[] e)
setExpectedExceptionsMessageRegExpback to summary
public void setExpectedExceptionsMessageRegExp(String e)
setIgnoreMissingDependenciesback to summary
public void setIgnoreMissingDependencies(boolean ignore)
setInvocationCountback to summary
public void setInvocationCount(int l)
setInvocationTimeOutback to summary
public void setInvocationTimeOut(long timeOut)
setPriorityback to summary
public void setPriority(int priority)
setRetryAnalyzerback to summary
public void setRetryAnalyzer(Class<? extends IRetryAnalyzer> c)
setSingleThreadedback to summary
public void setSingleThreaded(boolean f)
setSkipFailedInvocationsback to summary
public void setSkipFailedInvocations(boolean skip)
setSuccessPercentageback to summary
public void setSuccessPercentage(int s)
setSuiteNameback to summary
public void setSuiteName(String s)
setTestNameback to summary
public void setTestName(String s)
setThreadPoolSizeback to summary
public void setThreadPoolSize(int n)
skipFailedInvocationsback to summary
public boolean skipFailedInvocations()