|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.canoo.webtest.steps.Step
com.canoo.webtest.steps.AbstractBrowserAction
com.canoo.webtest.steps.request.AbstractTargetAction
com.canoo.webtest.steps.request.InvokePage
public class InvokePage
Performs an initial request to an url and makes the received response available for subsequent steps.
The url may be specified as an absolute url (with protocol) that will be used directly or as the end part of an url. In this case the protocol, host, port and basepath properties of the <config> step will be used to build a complete url.
| 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 | |
|---|---|
InvokePage()
|
|
| Method Summary | |
|---|---|
protected void |
addComputedParameters(Map map)
Adds the computed url if only a part was specified (nice to have in reports) |
void |
addText(String txt)
Alternative to set the content of a SOAP message. |
protected com.gargoylesoftware.htmlunit.Page |
findTarget()
Fetch the target URL specified byu the step. |
String |
getContent()
|
File |
getContentFile()
|
protected String |
getLogMessageForTarget()
|
String |
getMethod()
|
String |
getSoapAction()
|
String |
getUrl()
|
void |
setContent(String content)
Sets the request content. |
void |
setContentFile(File contentFile)
Sets the filename of the request contents. |
void |
setMethod(String method)
Sets the HTTP Method. |
void |
setSoapAction(String soapAction)
Sets the SOAP action. |
void |
setUrl(String newUrl)
Sets the url. |
protected void |
verifyParameters()
Called to let the step's implementation validate its parameters. |
| Methods inherited from class com.canoo.webtest.steps.request.AbstractTargetAction |
|---|
doExecute, getPassword, getResponse, getSave, getUsername, setPassword, setUsername |
| Methods inherited from class com.canoo.webtest.steps.AbstractBrowserAction |
|---|
setSave, setSavePrefix, setSaveResponse |
| 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 |
| Constructor Detail |
|---|
public InvokePage()
| Method Detail |
|---|
public String getMethod()
public String getUrl()
public void addText(String txt)
txt - the contentpublic void setUrl(String newUrl)
newUrl - the relative or absolute urlpublic void setMethod(String method)
method - public File getContentFile()
public void setContentFile(File contentFile)
contentFile - public String getContent()
public void setContent(String content)
content - public String getSoapAction()
public void setSoapAction(String soapAction)
soapAction - protected void verifyParameters()
StepStep.doExecute().
This implementation does nothing, overwrite as needed.
verifyParameters in class Step
protected com.gargoylesoftware.htmlunit.Page findTarget()
throws IOException,
SAXException
AbstractTargetAction
findTarget in class AbstractTargetActionIOException
SAXExceptionprotected String getLogMessageForTarget()
getLogMessageForTarget in class AbstractTargetActionprotected void addComputedParameters(Map map)
addComputedParameters in class Stepmap - the map in which the parameters should be added
|
Copyright © 2001-2007 Canoo Engineering AG, Basel. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||