com.beust.testng
Interface ITestResult
public interface ITestResult
This class describes the result of a test.
- Author:
- Cedric Beust, May 2, 2004
SUCCESS
static final int SUCCESS
- See Also:
- Constant Field Values
FAILURE
static final int FAILURE
- See Also:
- Constant Field Values
SKIP
static final int SKIP
- See Also:
- Constant Field Values
SUCCESS_PERCENTAGE_FAILURE
static final int SUCCESS_PERCENTAGE_FAILURE
- See Also:
- Constant Field Values
getStatus
int getStatus()
- Returns:
- The status of this result, using one of the constants
above.
setStatus
void setStatus(int status)
getMethod
ITestNGMethod getMethod()
- Returns:
- The test method this result represents.
getTestClass
IClass getTestClass()
- Returns:
- The test class used this object is a result for.
setThrowable
void setThrowable(java.lang.Throwable throwable)
getThrowable
java.lang.Throwable getThrowable()
getStartMillis
long getStartMillis()
- Returns:
- the start date for this test, in milliseconds.
getEndMillis
long getEndMillis()
- Returns:
- the end date for this test, in milliseconds.
setEndMillis
void setEndMillis(long millis)
getName
java.lang.String getName()
- Returns:
- The name of this TestResult, typically identical to the name
of the method.
isSuccess
boolean isSuccess()
- Returns:
- true if if this test run is a SUCCESS