|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITaskResult
Represents a domain-specific task to be performed in a test. ITask's are typically owned by IDomainSpecificApi's.
| Field Summary | |
|---|---|
static List |
HUMAN_READABLE_STATUS
maps numeric status values to their respective String status names, by List index. |
static int |
STATUS_DOOMED
|
static int |
STATUS_FAILED
|
static int |
STATUS_FLAGGED
|
static int |
STATUS_OK
|
| Method Summary | |
|---|---|
void |
addLink(String link)
Adds a URL referencing a resource that provides additional information related to this result, to a collection maintained by the result object. |
void |
addLink(TaskResultLink link)
Adds a URL referencing a resource that provides additional information related to this result, to a collection maintained by the result object. |
void |
appendChild(ITaskResult childResult)
Adds to the list of child task results. |
List |
children()
Returns a list of child task results. |
void |
doom()
Sets the status of this result to STATUS_DOOMED, which indicates that the failure of the task means the remainder of the test cannot continue successfully, and should be aborted. |
void |
fail()
Sets the status of this result to STATUS_FAILED. |
void |
flag()
Sets the status of this result to STATUS_FLAGGED, but only if it is not already STATUS_FAILED. |
String |
getDetailedMessage()
Returns a detailed message about the task execution, for example, the data generated by performing the task, if any. |
long |
getEndTime()
Returns the time the task was finished. |
List |
getLinks()
Returns the list of URL's associated with this result. |
String |
getMessage()
Returns a message describing the result. |
ITaskResult |
getParent()
Returns the parent task result. |
long |
getStartTime()
Returns the time the task was started. |
int |
getStatus()
Returns the status of the result. |
ITask |
getTask()
Returns the task whose performance returned this result. |
void |
setDetailedMessage(String detailedMessage)
Sets the return value of getDetailedMessage(). |
void |
setEndTime(long endTime)
Sets the time the task was finished. |
void |
setMessage(String message)
Sets the return value of getMessage(). |
void |
setParent(ITaskResult parentResult)
Sets the parent task result. |
void |
setStartTime(long startTime)
Sets the time the task was started. |
| Field Detail |
|---|
static final List HUMAN_READABLE_STATUS
static final int STATUS_OK
static final int STATUS_FLAGGED
static final int STATUS_FAILED
static final int STATUS_DOOMED
| Method Detail |
|---|
String getMessage()
String getDetailedMessage()
List getLinks()
int getStatus()
ITask getTask()
long getStartTime()
long getEndTime()
void setMessage(String message)
message - void setDetailedMessage(String detailedMessage)
detailedMessage - void addLink(String link)
link - the string representation of the URL to addvoid addLink(TaskResultLink link)
link - the link object to addvoid setStartTime(long startTime)
void setEndTime(long endTime)
void setParent(ITaskResult parentResult)
parentResult - ITaskResult getParent()
void appendChild(ITaskResult childResult)
List children()
void flag()
void fail()
void doom()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||