| java.lang.Object com.canoo.webtest.reporting.StepResult
All known Subclasses: com.canoo.webtest.reporting.RootStepResult,
StepResult | public class StepResult (Code) | | Result holder for the execution of a step (or task) and his children.
author: Marc Guillemot |
Constructor Summary | |
protected | StepResult(RuntimeConfigurable taskWrapper) Constructs a result for a non executed task (and his children). | public | StepResult(String taskName) | | StepResult(Task task) |
StepResult | protected StepResult(RuntimeConfigurable taskWrapper)(Code) | | Constructs a result for a non executed task (and his children).
This allows to present information in report
about configured tasks that haven't been executed due to an error in a step before them.
Parameters: taskWrapper - the configurable for the task |
StepResult | StepResult(Task task)(Code) | | Builds the result holder for the given task
Parameters: task - the task (probably a org.apache.tools.ant.UnknownElement |
addChild | public void addChild(StepResult result)(Code) | | Parameters: result - the child to add |
addLostChildren | protected void addLostChildren(Iterator iter)(Code) | | Adds report information for non executed child tasks
Parameters: iter - the iterator over RuntimeConfigurable child task |
addNotExecutedChildren | protected void addNotExecutedChildren(Task task)(Code) | | Tries to find the child tasks that haven't been executed and adds them to the current result.
Parameters: task - the failing task |
addStepResults | void addStepResults(Map results)(Code) | | Adds results of the step execution
Parameters: results - |
getAttribute | String getAttribute(String key)(Code) | | Gets the task attribute value
Parameters: key - the attribute name (case insensitive) the value, null if task doesn't have this attribute |
getAttributes | public Map getAttributes()(Code) | | Gets the attributes of the task
the attributes |
getChildren | public List getChildren()(Code) | | the children. |
getDuration | public long getDuration()(Code) | | Gets the duration of the task execution.
the task duration, -1 if the task hasn't beexecuted |
getEndDate | public Date getEndDate()(Code) | | Gets the date at which the execution of the task finished
null if the task has not been completed |
getHtmlParserMessages | public List getHtmlParserMessages()(Code) | | |
getLocation | public Location getLocation()(Code) | | Gets the location of the task
null if unknown |
getParent | StepResult getParent()(Code) | | the parent result, null for the top most result |
getStartDate | public Date getStartDate()(Code) | | Gets the date at which the execution of the task started
null if the task has not been started |
getTaskDescription | public String getTaskDescription()(Code) | | Gets the description of the task
null if unknown or no description set |
isCompleted | public boolean isCompleted()(Code) | | Indicates if the step has been executed (may be successfull or failed)
true if executed |
isSuccessful | public boolean isSuccessful()(Code) | | Indicates if the step has been successfully completed
true if successful |
propertiesExpanded | void propertiesExpanded(String originalValue, String expanded)(Code) | | Receives notification that properties have been expanded in an attribute
|
retrieveNestedText | protected void retrieveNestedText(RuntimeConfigurable taskWrapper)(Code) | | Retrieves the nested text configured within the task, if any, taking care
to remove "noise" as Ant does
Parameters: taskWrapper - the current task wrapper |
taskFinished | void taskFinished(Task task, Throwable throwable, List liHtmlParserMessages)(Code) | | Informs the result that the task if finished, allowing to stop the timer
Parameters: throwable - the exception thrown by the task (if any) Parameters: liHtmlParserMessages - the list of html parser messages associated to the just finished task |
|
|