com.canoo.webtest.reporting
Class RootStepResult

java.lang.Object
  extended by com.canoo.webtest.reporting.StepResult
      extended by com.canoo.webtest.reporting.RootStepResult

public class RootStepResult
extends StepResult

The root step result containing it's children results as well as some general information about the webtest. It is generated by the StepExecutionListener.

Author:
Marc Guillemot

Constructor Summary
RootStepResult(TestStepSequence step)
           
 
Method Summary
 Configuration getConfig()
           
 Throwable getException()
           
 StepResult getFailingTaskResult()
          Gets the result of the failing task (if any)
 String getWebtestDescription()
          Gets the description of the
 Location getWebtestLocation()
           
 String getWebtestName()
           
 boolean isError()
           
 boolean isFailure()
           
 boolean isSuccessful()
          Indicates if the step has been successfully completed
protected  void setLastFailingTaskResult(StepResult stepResult, Throwable throwable)
           
 void setWebtestName(String name)
          Sets the name.
 
Methods inherited from class com.canoo.webtest.reporting.StepResult
addChild, addLostChildren, addNotExecutedChildren, getAttributes, getChildren, getDuration, getEndDate, getHtmlParserMessages, getLocation, getStartDate, getTaskDescription, getTaskName, isCompleted, retrieveNestedText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootStepResult

public RootStepResult(TestStepSequence step)
Method Detail

getConfig

public Configuration getConfig()

getWebtestDescription

public String getWebtestDescription()
Gets the description of the

Returns:
the description

getWebtestName

public String getWebtestName()

setWebtestName

public void setWebtestName(String name)
Sets the name. This may be interesting to change the name of the WebTest to make some information of the test execution appear in the name (as it is what is displayed in the overview).


getWebtestLocation

public Location getWebtestLocation()

isError

public boolean isError()

getException

public Throwable getException()

isFailure

public boolean isFailure()

isSuccessful

public boolean isSuccessful()
Description copied from class: StepResult
Indicates if the step has been successfully completed

Overrides:
isSuccessful in class StepResult
Returns:
true if successful

getFailingTaskResult

public StepResult getFailingTaskResult()
Gets the result of the failing task (if any)

Returns:
null if the test is successfull.

setLastFailingTaskResult

protected void setLastFailingTaskResult(StepResult stepResult,
                                        Throwable throwable)

Copyright © 2001-2007 Canoo Engineering AG, Basel. All rights reserved.