org.testng.annotations
Interface ITestAnnotation

All Superinterfaces:
IAnnotation, org.testng.internal.annotations.IDataProvidable, IParameterizable, ITestOrConfiguration

public interface ITestAnnotation
extends ITestOrConfiguration, org.testng.internal.annotations.IDataProvidable

Encapsulate the @Test / @testng.test annotation. Created on Dec 20, 2005

Author:
Cedric Beust


Method Summary
 booleangetAlwaysRun()
          If set to true, this test method will always be run even if it depends on a method that failed.
 StringgetDataProvider()
           
 Class<?>getDataProviderClass()
           
 Class<?>[]getExpectedExceptions()
           
 StringgetExpectedExceptionsMessageRegExp()
           
 intgetInvocationCount()
          Returns the number of times this method should be invoked.
 intgetPriority()
          The scheduling priority.
 IRetryAnalyzergetRetryAnalyzer()
           
 booleangetSequential()
           
 booleangetSingleThreaded()
           
 intgetSuccessPercentage()
          The percentage of success expected from this method.
 StringgetSuiteName()
           
 StringgetTestName()
           
 intgetThreadPoolSize()
          The size of the thread pool for this method.
 booleanignoreMissingDependencies()
           
 longinvocationTimeOut()
           
 voidsetAlwaysRun(boolean f)
           
 voidsetDataProvider(String v)
           
 voidsetDataProviderClass(Class<?> v)
           
 voidsetExpectedExceptions(Class<?>[] e)
           
 voidsetExpectedExceptionsMessageRegExp(String e)
           
 voidsetIgnoreMissingDependencies(boolean ignore)
           
 voidsetInvocationCount(int l)
           
 voidsetInvocationTimeOut(long timeOut)
           
 voidsetPriority(int priority)
           
 voidsetRetryAnalyzer(Class<?> c)
           
 voidsetSequential(boolean f)
           
 voidsetSingleThreaded(boolean f)
           
 voidsetSkipFailedInvocations(boolean skip)
           
 voidsetSuccessPercentage(int s)
           
 voidsetSuiteName(String s)
           
 voidsetTestName(String s)
           
 voidsetThreadPoolSize(int n)
           
 booleanskipFailedInvocations()
           
 
Methods inherited from interface org.testng.annotations.ITestOrConfiguration
getDependsOnGroups, getDependsOnMethods, getDescription, getGroups, getTimeOut, setDependsOnGroups, setDependsOnMethods, setDescription, setGroups, setTimeOut
 
Methods inherited from interface org.testng.annotations.IParameterizable
getEnabled, getParameters, setEnabled
 

Method Detail

getInvocationCount

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

Returns:
the number of times this method should be invoked.

setInvocationCount

void setInvocationCount(int l)

getThreadPoolSize

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


setThreadPoolSize

void setThreadPoolSize(int n)

getSuccessPercentage

int getSuccessPercentage()
The percentage of success expected from this method.


setSuccessPercentage

void setSuccessPercentage(int s)

getAlwaysRun

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.


setAlwaysRun

void setAlwaysRun(boolean f)

getExpectedExceptions

Class<?>[] getExpectedExceptions()

setExpectedExceptions

void setExpectedExceptions(Class<?>[] e)

getExpectedExceptionsMessageRegExp

String getExpectedExceptionsMessageRegExp()

setExpectedExceptionsMessageRegExp

void setExpectedExceptionsMessageRegExp(String e)

getSuiteName

String getSuiteName()

setSuiteName

void setSuiteName(String s)

getTestName

String getTestName()

setTestName

void setTestName(String s)

getSequential

boolean getSequential()

setSequential

void setSequential(boolean f)

getSingleThreaded

boolean getSingleThreaded()

setSingleThreaded

void setSingleThreaded(boolean f)

getDataProvider

String getDataProvider()
Specified by:
getDataProvider in interface org.testng.internal.annotations.IDataProvidable

setDataProvider

void setDataProvider(String v)
Specified by:
setDataProvider in interface org.testng.internal.annotations.IDataProvidable

getDataProviderClass

Class<?> getDataProviderClass()
Specified by:
getDataProviderClass in interface org.testng.internal.annotations.IDataProvidable

setDataProviderClass

void setDataProviderClass(Class<?> v)
Specified by:
setDataProviderClass in interface org.testng.internal.annotations.IDataProvidable

getRetryAnalyzer

IRetryAnalyzer getRetryAnalyzer()

setRetryAnalyzer

void setRetryAnalyzer(Class<?> c)

skipFailedInvocations

boolean skipFailedInvocations()

setSkipFailedInvocations

void setSkipFailedInvocations(boolean skip)

invocationTimeOut

long invocationTimeOut()

setInvocationTimeOut

void setInvocationTimeOut(long timeOut)

ignoreMissingDependencies

boolean ignoreMissingDependencies()

setIgnoreMissingDependencies

void setIgnoreMissingDependencies(boolean ignore)

getPriority

int getPriority()
The scheduling priority. Lower priorities get scheduled first.


setPriority

void setPriority(int priority)


Copyright © 2012. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14