net.sf.jameleon.plugin.httpunit
Class HttpUnitSubmitForm
java.lang.Object
org.apache.commons.jelly.TagSupport
net.sf.jameleon.LocationAwareTagSupport
net.sf.jameleon.JameleonTagSupport
net.sf.jameleon.function.FunctionTag
net.sf.jameleon.plugin.httpunit.HttpUnitFunctionTag
net.sf.jameleon.plugin.httpunit.HttpUnitSubmitForm
- All Implemented Interfaces:
- BreakPoint, Attributable, Storable, DynaTag, LocationAware, Tag
public class HttpUnitSubmitForm
- extends HttpUnitFunctionTag
A generic action point for HttpUnit that submits a form given by it's id or name.
This object supports the <param> type. Please see HttpUnitParamType
for more information
on valid parameter types.
Tag Name: <hu-submit-form> Type: action
Tag Name: <http-unit-submit-form> Type: action
Fields inherited from class net.sf.jameleon.function.FunctionTag |
addt, breakPoint, expectException, expectFailure, fResults, functionDelay, functionId, lastFileWritten, log, NO_DELAY, params, postcondition, precondition, st, state, tct, vpt |
Methods inherited from class net.sf.jameleon.plugin.httpunit.HttpUnitFunctionTag |
assertFormElementPresent, assertFormElementPresent, assertFormElementPresent, assertFormElementPresent, assertFormPresent, assertFormPresent, assertFormPresent, assertFormPresent, assertFormPresent, assertFormPresent, assertImageNotPresent, assertImageNotPresent, assertImageNotPresent, assertImageNotPresent, assertImagePresent, assertImagePresent, assertImagePresent, assertImagePresent, assertLinkPresent, assertLinkPresent, assertLinkPresent, assertLinkPresent, assertLinkPresentInTable, assertLinkPresentInTable, assertLinkPresentInTable, assertOptionDisplayContains, assertOptionDisplayContains, assertOptionDisplayContains, assertOptionDisplayContains, assertOptionDisplayEndsWith, assertOptionDisplayEndsWith, assertOptionDisplayEndsWith, assertOptionDisplayEndsWith, assertOptionDisplayEquals, assertOptionDisplayEquals, assertOptionDisplayEquals, assertOptionDisplayEquals, assertOptionDisplayStartsWith, assertOptionDisplayStartsWith, assertOptionDisplayStartsWith, assertOptionDisplayStartsWith, assertOptionValueEquals, assertOptionValueEquals, assertOptionValueEquals, assertOptionValueEquals, assertTableNotPresent, assertTableNotPresent, assertTableNotPresent, assertTableNotPresent, assertTablePresent, assertTablePresent, assertTablePresent, assertTablePresent, assertTextInputEquals, assertTextInputEquals, assertTextInputEquals, assertTextInputEquals, assertTextNotPresent, assertTextNotPresent, assertTextNotPresent, assertTextNotPresent, assertTextNotPresent, assertTextNotPresent, assertTextNotPresent, assertTextNotPresent, assertTextPresent, assertTextPresent, assertTextPresent, assertTextPresent, assertTextPresent, assertTextPresent, assertTextPresent, assertTextPresent, assertTitleContains, assertTitleContains, assertTitleContains, assertTitleContains, assertTitleEquals, assertTitleEquals, assertTitleEquals, assertTitleEquals, assertTitleEquals, assertTitleEquals, assertTitleEquals, assertTitleEquals, assertTitleNotEquals, assertTitleNotEquals, assertTitleNotEquals, assertTitleNotEquals, beginSession, beginSessionAt, clickButton, clickButtonWithID, clickButtonWithName, clickLink, clickLink, clickLink, clickLinkWithId, clickLinkWithImage, clickLinkWithImageSrc, clickLinkWithText, getBaseUrl, getCurrentPage, getCurrentPageText, getForm, getHttpSession, getImage, getLink, getLinkInTable, getOptionDisplay, getOptionValue, getOptionValueContains, getOptionValueEndsWith, getOptionValueMatches, getOptionValueStartsWith, getResponse, getTable, getTableColumnCells, getTrimmedCellText, pluginTearDown, setFormParameterValueFromContext, setHttpUnitFrameName, setupEnvironment, store, submitForm, submitForm |
Methods inherited from class net.sf.jameleon.function.FunctionTag |
addParam, addRequiredAttribute, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertFalse, assertFalse, assertMethod, assertMethodWithLevel, assertNotNull, assertNotNull, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNotSame, assertNotSame, assertNull, assertNull, assertNull, assertNull, assertRegexMatches, assertRegexMatches, assertRegexMatches, assertRegexMatches, assertSame, assertSame, assertSame, assertSame, assertTextContains, assertTextContains, assertTextContains, assertTextContains, assertTextEndsWith, assertTextEndsWith, assertTextEndsWith, assertTextEndsWith, assertTextStartsWith, assertTextStartsWith, assertTextStartsWith, assertTextStartsWith, assertTrue, assertTrue, assertTrue, assertTrue, checkParamTypes, cleanUp, cleanUpEnvironment, delay, delay, doTag, fail, fail, fail, fail, getFunctionId, getFunctionResults, getMatchingRegexText, getParam, getParamLength, getParams, getParentTags, getSessionTag, getStoreToFileName, getStringOrDefault, getTestCaseTag, getVariable, getVariableAsBoolean, getVariableAsList, getVariableAsString, isBreakPoint, isContextVariableNull, recordFunctionResult, regexMatches, removeFunctionResult, removeVariable, setDefaultVariableValue, setDefaultVariableValue, setExpectException, setExpectFailure, setFunctionDelay, setFunctionId, setUpFunctionResults, setVariable, traceMsg, validate |
Methods inherited from class net.sf.jameleon.JameleonTagSupport |
cleanVariablesInContext, createAttributes, describeAttributes, getAttributeBroker, getAttributes, getAttributeType, getClassAttributes, getFunctionalPoint, getUnsupportedAttributes, loadFunctionalPoint, resetFunctionalPoint, setAttribute, setVariableInContext, testForUnsupportedAttributesCaught |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
form
protected WebForm form
formName
protected String formName
- The form name, id or index of form on the page.
This attribute is recognized by Jameleon
Required: true
submitButtonName
protected String submitButtonName
- The submit button name id. If this is not set, then the default submit action
will be used to submit the form.
This attribute is recognized by Jameleon
Required: false
submitButtonValue
protected String submitButtonValue
- The submit button's value.
This attribute is recognized by Jameleon
Required: false
onClick
protected boolean onClick
- Whether to click on the button, calling the JavaScript onClick event or submit the form.
This attribute is recognized by Jameleon
Required: false
Default Value: false
HttpUnitSubmitForm
public HttpUnitSubmitForm()
setup
public void setup()
- Overrides:
setup
in class FunctionTag
tearDown
public void tearDown()
- Overrides:
tearDown
in class FunctionTag
setParameters
protected void setParameters(WebForm form)
- Sets the parameters of the form via the params in the super class FunctionTag.
- Parameters:
form
- - The form object to set the parameters in.
addParameters
protected void addParameters(ArrayList values,
String name,
WebForm form)
testBlock
public void testBlock()
- Overrides:
testBlock
in class FunctionTag
addParameter
protected void addParameter(String name,
String value,
String type)
- A helper method for those action points which extend this class.
- Parameters:
name
- - The name of the form parameter to set ( a defined in the HTML of the form )value
- - The value of the form parameter to settype
- - The type of the form parameter to set.
addParameter
protected void addParameter(String name,
List values,
String type)
- A helper method for those action points which extend this class.
- Parameters:
name
- - The name of the form parameter to set ( a defined in the HTML of the form )values
- - The values of the form parameter to settype
- - The type of the form parameter to set.
addParameter
protected void addParameter(String name,
String value)
- A helper method for those action points which extend this class.
Sets the type to to default.
- Parameters:
name
- - The name of the form parameter to set ( a defined in the HTML of the form )value
- - The value of the form parameter to set
Copyright © 2003-2008 Christian Hargraves. All Rights Reserved.