com.canoo.webtest.steps.verify
Class VerifyLinks
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.canoo.webtest.steps.Step
com.canoo.webtest.steps.verify.VerifyLinks
- All Implemented Interfaces:
- Serializable, Cloneable
public class VerifyLinks
- extends Step
- Author:
- Dierk Koenig, Urs-Peter Häss, Marc Guillemot, Paul King, Brian Hubbard
- See Also:
- Serialized Form
| Methods inherited from class com.canoo.webtest.steps.Step |
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, 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 |
VerifyLinks
public VerifyLinks()
getFailedVisits
protected Set getFailedVisits()
getDepth
public String getDepth()
setDepth
public void setDepth(String depth)
setExcludes
public void setExcludes(String regex)
getExcludes
public String getExcludes()
setIncludes
public void setIncludes(String regex)
getIncludes
public String getIncludes()
setOnsiteonly
public void setOnsiteonly(boolean onsiteonly)
setIgnoreForeignJSErrors
public void setIgnoreForeignJSErrors(boolean b)
doExecute
public void doExecute()
throws SAXException,
MalformedURLException
- Description copied from class:
Step
- Called to perform the step's functionality.
Before calling this method, the step has been completely initialized (including expanding and verifying the parameters)
and the environment notified of the start.
- Specified by:
doExecute in class Step
- Throws:
SAXException
MalformedURLException
addComputedParameters
protected void addComputedParameters(Map map)
- Description copied from class:
Step
- Adds parameters that are not issued from the config file but computed at runtime by the step
- Overrides:
addComputedParameters in class Step
- Parameters:
map - the map in which the parameters should be added
checkVisits
protected void checkVisits(com.gargoylesoftware.htmlunit.WebClient webClient,
com.gargoylesoftware.htmlunit.html.HtmlPage response)
visit
protected void visit(com.gargoylesoftware.htmlunit.html.HtmlPage referingPage,
URL url,
com.gargoylesoftware.htmlunit.WebClient webClient)
followRecursively
protected void followRecursively(com.gargoylesoftware.htmlunit.html.HtmlPage htmlPage,
com.gargoylesoftware.htmlunit.WebClient webClient)
brokenLinksToString
protected String brokenLinksToString()
stopHunting
protected boolean stopHunting(com.gargoylesoftware.htmlunit.html.HtmlPage htmlPage)
isForeignHost
protected boolean isForeignHost(URL url)
verifyProperties
protected void verifyProperties()
isPerformingAction
public boolean isPerformingAction()
- Description copied from class:
Step
- Indicates if this step performs an action on the browser
- Overrides:
isPerformingAction in class Step