public interface ITestResult extends IAttributes, Comparable<ITestResult>
Modifier and Type | Field and Description |
---|---|
static int |
FAILURE |
static int |
SKIP |
static int |
STARTED |
static int |
SUCCESS |
static int |
SUCCESS_PERCENTAGE_FAILURE |
Modifier and Type | Method and Description |
---|---|
long |
getEndMillis() |
String |
getHost() |
Object |
getInstance()
The instance on which this method was run.
|
ITestNGMethod |
getMethod() |
String |
getName() |
Object[] |
getParameters() |
long |
getStartMillis() |
int |
getStatus() |
IClass |
getTestClass() |
String |
getTestName()
If this result's related instance implements ITest, returns its test name, otherwise returns null.
|
Throwable |
getThrowable() |
boolean |
isSuccess() |
void |
setEndMillis(long millis) |
void |
setParameters(Object[] parameters) |
void |
setStatus(int status) |
void |
setThrowable(Throwable throwable) |
getAttribute, getAttributeNames, removeAttribute, setAttribute
compareTo
static final int SUCCESS
static final int FAILURE
static final int SKIP
static final int SUCCESS_PERCENTAGE_FAILURE
static final int STARTED
int getStatus()
void setStatus(int status)
ITestNGMethod getMethod()
Object[] getParameters()
void setParameters(Object[] parameters)
IClass getTestClass()
Throwable getThrowable()
void setThrowable(Throwable throwable)
long getStartMillis()
long getEndMillis()
void setEndMillis(long millis)
String getName()
boolean isSuccess()
String getHost()
Object getInstance()
String getTestName()
Copyright © 2012. All Rights Reserved.