Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.testng.annotations
Interface ITestAnnotation

All Superinterfaces:
  IAnnotation, IParameterizable, ITestOrConfiguration

    public interface ITestAnnotation

extends ITestOrConfiguration

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

Author:
  Cedric Beust

Method Summary
`boolean` | `getAlwaysRun()` If set to true, this test method will always be run even if it depends on a method that failed.
`java.lang.String` | `getDataProvider()`
`java.lang.Class<?>` | `getDataProviderClass()`
`java.lang.Class<?>[]` | `getExpectedExceptions()`
`java.lang.String` | `getExpectedExceptionsMessageRegExp()`
`int` | `getInvocationCount()` Returns the number of times this method should be invoked.
`int` | `getPriority()` The scheduling priority.
`IRetryAnalyzer` | `getRetryAnalyzer()`
`boolean` | `getSequential()`
`int` | `getSuccessPercentage()` The percentage of success expected from this method.
`java.lang.String` | `getSuiteName()`
`java.lang.String` | `getTestName()`
`int` | `getThreadPoolSize()` The size of the thread pool for this method.
`long` | `getTimeOut()` Returns the maximum number of milliseconds this test should take.
`boolean` | `ignoreMissingDependencies()`
`long` | `invocationTimeOut()`
`void` | `setAlwaysRun(boolean f)`
`void` | `setDataProvider(java.lang.String v)`
`void` | `setDataProviderClass(java.lang.Class<?> v)`
`void` | `setExpectedExceptions(java.lang.Class<?>[] e)`
`void` | `setExpectedExceptionsMessageRegExp(java.lang.String e)`
`void` | `setIgnoreMissingDependencies(boolean ignore)`
`void` | `setInvocationCount(int l)`
`void` | `setInvocationTimeOut(long timeOut)`
`void` | `setPriority(int priority)`
`void` | `setRetryAnalyzer(java.lang.Class<?> c)`
`void` | `setSequential(boolean f)`
`void` | `setSkipFailedInvocations(boolean skip)`
`void` | `setSuccessPercentage(int s)`
`void` | `setSuiteName(java.lang.String s)`
`void` | `setTestName(java.lang.String s)`
`void` | `setThreadPoolSize(int n)`
`void` | `setTimeOut(long l)`
`boolean` | `skipFailedInvocations()`

Methods inherited from interface org.testng.annotations.ITestOrConfiguration
`getDependsOnGroups, getDependsOnMethods, getDescription, getEnabled, getGroups, setDependsOnGroups, setDependsOnMethods, setDescription, setEnabled, setGroups`

Methods inherited from interface org.testng.annotations.IParameterizable
`getParameters`

Method Detail

### getTimeOut

    long 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.

  Returns:
    the maximum number of milliseconds this test should take.

### setTimeOut

    void setTimeOut(long l)

### 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

    java.lang.Class<?>[] getExpectedExceptions()

### setExpectedExceptions

    void setExpectedExceptions(java.lang.Class<?>[] e)

### getExpectedExceptionsMessageRegExp

    java.lang.String getExpectedExceptionsMessageRegExp()

### setExpectedExceptionsMessageRegExp

    void setExpectedExceptionsMessageRegExp(java.lang.String e)

### getSuiteName

    java.lang.String getSuiteName()

### setSuiteName

    void setSuiteName(java.lang.String s)

### getTestName

    java.lang.String getTestName()

### setTestName

    void setTestName(java.lang.String s)

### getSequential

    boolean getSequential()

### setSequential

    void setSequential(boolean f)

### getDataProvider

    java.lang.String getDataProvider()

### setDataProvider

    void setDataProvider(java.lang.String v)

### getDataProviderClass

    java.lang.Class<?> getDataProviderClass()

### setDataProviderClass

    void setDataProviderClass(java.lang.Class<?> v)

### getRetryAnalyzer

    IRetryAnalyzer getRetryAnalyzer()

### setRetryAnalyzer

    void setRetryAnalyzer(java.lang.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)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD