com.canoo.webtest.steps
Class AbstractStepContainer

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.canoo.webtest.steps.Step
              extended by com.canoo.webtest.steps.AbstractStepContainer
All Implemented Interfaces:
IStepSequence, Serializable, Cloneable, TaskContainer
Direct Known Subclasses:
AbstractProcessFiltersStep, ExpectDialogs, GroupStep, IfStep, MultipleExecutionStepContainer, NotStep, ReportSiteStep, SelectWebClient, TestStepSequence, TimedGroupStep

public abstract class AbstractStepContainer
extends Step
implements TaskContainer, IStepSequence, Serializable, Cloneable

Common abstract base class for all container steps.

This is a container class for a list of AbstractTestSpecificationSteps. It is used for the <steps> element in ant build scripts as well as for the <not> test step elements.

An instance of this class is usually created by ant if it encounters the nested <steps> element within a <webtest> element.

Note: The nested element object ClickButton is instantiated and "added" to the AbstractStepSequence before the nested element is completely parsed! No attributes or nested elements of the <clickButton> elements are available at time when it is added to AbstractStepSequence.

Author:
Carsten Seibert, Marc Guillemot
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.canoo.webtest.steps.Step
DEFAULT_DESCRIPTION, ELEMENT_ATTRIBUTE_ID, ELEMENT_ATTRIBUTE_NAME, PROPERTY_TYPE_ANT, PROPERTY_TYPE_ANT_STRICT, PROPERTY_TYPE_DEFAULT, PROPERTY_TYPE_DYNAMIC
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
protected AbstractStepContainer()
           
 
Method Summary
 void addStep(Step step)
           
 void addTask(Task newTask)
          Called by ant to add a nested task to this container.
protected  void executeContainedStep(Task step)
          Executes the contained step taking care to setup needed properties before execution
protected  void executeContainedSteps()
          Executes the contained steps
 List getSteps()
           
 
Methods inherited from class com.canoo.webtest.steps.Step
addComputedParameters, clone, doExecute, emptyParamCheck, execute, getComputedParameters, getContext, getDefaultPropertyType, getDescription, getDuration, getParameterDictionary, getStepLabel, getVerifier, getWebtestProperties, getWebtestProperties, getWebtestProperty, getWebtestProperty, handleException, hasDescription, integerParamCheck, isCompleted, isPerformingAction, isStarted, isSuccessful, notifyCompleted, notifyStarted, notifyStepResultsListeners, notifySuccess, nullParamCheck, nullResponseCheck, optionalIntegerParamCheck, paramCheck, positiveOrZeroParamCheck, setStepid, setWebtestProperty, setWebtestProperty, toString, verifyParameters
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractStepContainer

protected AbstractStepContainer()
Method Detail

addTask

public void addTask(Task newTask)
Called by ant to add a nested task to this container.

Specified by:
addTask in interface TaskContainer
See Also:
TaskContainer.addTask(org.apache.tools.ant.Task)

addStep

public void addStep(Step step)
Parameters:
step -

getSteps

public List getSteps()
Specified by:
getSteps in interface IStepSequence

executeContainedStep

protected void executeContainedStep(Task step)
Executes the contained step taking care to setup needed properties before execution

Parameters:
step - the step to execute

executeContainedSteps

protected void executeContainedSteps()
Executes the contained steps


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