com.canoo.webtest.steps.form
Class AbstractSetNamedFieldStep

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.AbstractBrowserAction
                  extended by com.canoo.webtest.steps.form.AbstractSetFieldStep
                      extended by com.canoo.webtest.steps.form.AbstractSetNamedFieldStep
All Implemented Interfaces:
IBrowserAction, Serializable, Cloneable
Direct Known Subclasses:
ForceHiddenInputField, ForceInputFieldAttribute, SetCheckbox, SetInputField, SetRadioButton, SetSelectField

public abstract class AbstractSetNamedFieldStep
extends AbstractSetFieldStep

Base class for steps which update a named field within a form.

Author:
Marc Guillemot, Paul King
See Also:
Serialized Form

Field Summary
protected static String DEFAULT_VALUE_NULL_MESSAGE
           
 
Fields inherited from class com.canoo.webtest.steps.form.AbstractSetFieldStep
MESSAGE_ARGUMENT_MISSING, MESSAGE_ARGUMENT_REDUNDANT
 
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
AbstractSetNamedFieldStep()
           
 
Method Summary
 void addText(String str)
          Called by ant to set the text contained in the tag.
 String getValue()
           
protected  boolean isValueNull()
           
 void setValue(String value)
          Set the value
 
Methods inherited from class com.canoo.webtest.steps.form.AbstractSetFieldStep
doExecute, findFields, findForm, getFieldIndex, getForLabel, getFormName, getHtmlId, getName, getXpath, keepField, selectField, setField, setFieldIndex, setForLabel, setFormName, setHtmlId, setName, setXpath, trimFields, verifyParameters
 
Methods inherited from class com.canoo.webtest.steps.AbstractBrowserAction
setSave, setSavePrefix, setSaveResponse
 
Methods inherited from class com.canoo.webtest.steps.Step
addComputedParameters, clone, 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
 
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
 
Methods inherited from interface com.canoo.webtest.interfaces.IBrowserAction
getTaskName
 

Field Detail

DEFAULT_VALUE_NULL_MESSAGE

protected static final String DEFAULT_VALUE_NULL_MESSAGE
See Also:
Constant Field Values
Constructor Detail

AbstractSetNamedFieldStep

public AbstractSetNamedFieldStep()
Method Detail

setValue

public void setValue(String value)
Set the value

Parameters:
value -

getValue

public String getValue()

isValueNull

protected boolean isValueNull()

addText

public void addText(String str)
Called by ant to set the text contained in the tag. An alternative to value="blabla" for e.g. Large TextAreas. Usage:
<setInputField>blabla
blibli
</setInputField>

Parameters:
str - the text value to add

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