|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.canoo.webtest.reporting.StepResult
public class StepResult
Result holder for the execution of a step (or task) and his children.
| Constructor Summary | |
|---|---|
protected |
StepResult(RuntimeConfigurable taskWrapper)
Constructs a result for a non executed task (and his children). |
|
StepResult(String taskName)
|
| Method Summary | |
|---|---|
void |
addChild(StepResult result)
|
protected void |
addLostChildren(Iterator iter)
Adds report information for non executed child tasks |
protected void |
addNotExecutedChildren(Task task)
Tries to find the child tasks that haven't been executed and adds them to the current result. |
Map<String,String> |
getAttributes()
Gets the attributes of the task |
List<StepResult> |
getChildren()
|
long |
getDuration()
Gets the duration of the task execution. |
Date |
getEndDate()
Gets the date at which the execution of the task finished |
List |
getHtmlParserMessages()
|
Location |
getLocation()
Gets the location of the task |
Date |
getStartDate()
Gets the date at which the execution of the task started |
String |
getTaskDescription()
Gets the description of the task |
String |
getTaskName()
|
boolean |
isCompleted()
Indicates if the step has been executed (may be successfull or failed) |
boolean |
isSuccessful()
Indicates if the step has been successfully completed |
protected void |
retrieveNestedText(RuntimeConfigurable taskWrapper)
Retrieves the nested text configured within the task, if any, taking care to remove "noise" as Ant does |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected StepResult(RuntimeConfigurable taskWrapper)
taskWrapper - the configurable for the taskpublic StepResult(String taskName)
| Method Detail |
|---|
protected void retrieveNestedText(RuntimeConfigurable taskWrapper)
taskWrapper - the current task wrapperpublic void addChild(StepResult result)
result - the child to addprotected void addLostChildren(Iterator iter)
iter - the iterator over RuntimeConfigurable child taskprotected void addNotExecutedChildren(Task task)
task - the failing taskpublic Map<String,String> getAttributes()
public List<StepResult> getChildren()
public long getDuration()
-1 if the task hasn't be
executedpublic Date getEndDate()
null if the task has not been completedpublic List getHtmlParserMessages()
public Location getLocation()
null if unknownpublic Date getStartDate()
null if the task has not been startedpublic String getTaskDescription()
null if unknown or no description setpublic String getTaskName()
public boolean isCompleted()
true if executedpublic boolean isSuccessful()
true if successful
|
Copyright © 2001-2007 Canoo Engineering AG, Basel. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||