com.beust.testng
Interface ITestResult


public interface ITestResult

This class describes the result of a test.

Author:
Cedric Beust, May 2, 2004

Field Summary
static int FAILURE
           
static int SKIP
           
static int SUCCESS
           
static int SUCCESS_PERCENTAGE_FAILURE
           
 
Method Summary
 long getEndMillis()
           
 ITestNGMethod getMethod()
           
 java.lang.String getName()
           
 long getStartMillis()
           
 int getStatus()
           
 IClass getTestClass()
           
 java.lang.Throwable getThrowable()
           
 boolean isSuccess()
           
 void setEndMillis(long millis)
           
 void setStatus(int status)
           
 void setThrowable(java.lang.Throwable throwable)
           
 

Field Detail

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
Method Detail

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