com.canoo.webtest.extension
Class StoreInputFieldAttribute

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.store.BaseStoreStep
                  extended by com.canoo.webtest.extension.StoreInputFieldAttribute
All Implemented Interfaces:
IComputeValue, Serializable, Cloneable

public class StoreInputFieldAttribute
extends BaseStoreStep

StoreInputFieldAttribute

Author:
Vikram Shitole, Paul King
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
StoreInputFieldAttribute()
           
 
Method Summary
 void doExecute()
          Locate all applicable html input components, check their number (size == 1) and store the value of the attribute.
 String getAttributeName()
           
 String getFieldIndex()
           
 String getFormName()
           
 String getName()
           
 String getValue()
           
 void setAttributeName(String name)
          Sets the name of the attribute of interest.
 void setFieldIndex(String index)
          Sets the index of the attribute of interest.
 void setFormName(String formName)
          Set the form name.
 void setName(String name)
          Sets the name of the input field of interest.
 void setPropertyName(String name)
          Sets the Name of the Property.
 void setValue(String value)
          Sets the input field value to match against if there are multiple input fields with the same name.
protected  void verifyParameters()
          Verifies the parameters.
 
Methods inherited from class com.canoo.webtest.steps.store.BaseStoreStep
getComputedValue, getProperty, getPropertyType, isPerformingAction, setProperty, setPropertyType, storeProperty, storeProperty
 
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, 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
 

Constructor Detail

StoreInputFieldAttribute

public StoreInputFieldAttribute()
Method Detail

doExecute

public void doExecute()
               throws Exception
Locate all applicable html input components, check their number (size == 1) and store the value of the attribute.

Specified by:
doExecute in class Step
Throws:
StepFailedException - if no applicable button was found
Exception

setName

public void setName(String name)
Sets the name of the input field of interest.

Parameters:
name - Sets the name value.

getName

public String getName()

setValue

public void setValue(String value)
Sets the input field value to match against if there are multiple input fields with the same name.

Parameters:
value - Sets the value of the input field of interest.

getValue

public String getValue()

setAttributeName

public void setAttributeName(String name)
Sets the name of the attribute of interest.

Parameters:
name - Sets the name of the attribute.

getAttributeName

public String getAttributeName()

setFieldIndex

public void setFieldIndex(String index)
Sets the index of the attribute of interest.

Parameters:
index - Selects the attribute of interest if more than one match other criteria (first index is 0).

getFieldIndex

public String getFieldIndex()

setPropertyName

public void setPropertyName(String name)
Sets the Name of the Property.

Parameters:
name - The Property Name

setFormName

public void setFormName(String formName)
Set the form name.

Parameters:
formName -

getFormName

public String getFormName()

verifyParameters

protected void verifyParameters()
Verifies the parameters.

Overrides:
verifyParameters in class Step

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