com.canoo.webtest.steps.verify
Class AbstractVerifyTextStep
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.canoo.webtest.steps.Step
com.canoo.webtest.steps.verify.AbstractVerifyTextStep
- All Implemented Interfaces:
- Serializable, Cloneable
- Direct Known Subclasses:
- AbstractDialogStep, VerifyCookie, VerifyDocumentURL, VerifyElement, VerifyElementText, VerifyHeader, VerifyProperty, VerifyText, VerifyTitle, VerifyXPath
public abstract class AbstractVerifyTextStep
- extends Step
- Author:
- Marc Guillemot
- See Also:
- Serialized Form
| 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, 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 |
AbstractVerifyTextStep
public AbstractVerifyTextStep()
getText
public String getText()
isRegex
public boolean isRegex()
getRegex
public String getRegex()
setRegex
public void setRegex(String regex)
- Parameters:
regex -
setText
public void setText(String text)
- Parameters:
text -
setOptionalPreviousPage
public void setOptionalPreviousPage(boolean optionalPreviousPage)
setOptionalText
public void setOptionalText(boolean optionalText)
verifyStrings
protected boolean verifyStrings(String expectedValue,
String actualValue)
verifyText
protected boolean verifyText(String actualValue)
verifyParameters
protected void verifyParameters()
- Description copied from class:
Step
- Called to let the step's implementation validate its parameters.
The method is called after parameter extensions but before
Step.doExecute().
This implementation does nothing, overwrite as needed.
- Overrides:
verifyParameters in class Step
isPerformingAction
public boolean isPerformingAction()
- Description copied from class:
Step
- Indicates if this step performs an action on the browser
- Overrides:
isPerformingAction in class Step