Package | Description |
---|---|
com.meterware.httpunit |
Classes for testing http server systems.
|
com.meterware.httpunit.dom | |
com.meterware.httpunit.javascript | |
com.meterware.httpunit.scripting | |
com.meterware.servletunit |
Classes for unit testing servlets, providing internal access to running servlets using a simulated servlet container.
|
Modifier and Type | Method and Description |
---|---|
WebResponse |
WebLink.click()
Submits a request as though the user had clicked on this link.
|
protected WebResponse |
WebRequestSource.getBaseResponse()
Returns the web response containing this request source.
|
protected WebResponse |
WebRequestSource.getCurrentFrameContents() |
WebResponse |
WebClient.getCurrentPage()
Returns the response representing the current top page in the main window.
|
WebResponse |
WebWindow.getCurrentPage()
Returns the response representing the main page in this window.
|
WebResponse |
WebClient.getFrameContents(FrameSelector targetFrame)
Returns the response associated with the specified frame name in the main window.
|
WebResponse |
WebClient.getFrameContents(String frameName)
Returns the response associated with the specified frame name in the main window.
|
WebResponse |
WebWindow.getFrameContents(String frameName)
Returns the response associated with the specified frame name.
|
WebResponse |
WebWindow.getOpener()
Returns the web response that contained the script which opened this window.
|
WebResponse |
WebClient.getResource(WebRequest request)
Returns the resource specified by the request.
|
WebResponse |
WebWindow.getResource(WebRequest request)
Returns the resource specified by the request.
|
WebResponse |
WebClient.getResponse(String urlString)
Submits a GET method request and returns a response.
|
WebResponse |
WebWindow.getResponse(String urlString)
Submits a GET method request and returns a response.
|
WebResponse |
WebClient.getResponse(WebRequest request)
Submits a web request and returns a response, using all state developed so far as stored in
cookies as requested by the server.
|
WebResponse |
WebWindow.getResponse(WebRequest request)
Submits a web request and returns a response, using all state developed so far as stored in
cookies as requested by the server.
|
WebResponse |
WebResponse.getSubframeContents(String subFrameName)
Returns the contents of the specified subframe of this frameset response.
|
static WebResponse |
WebResponse.newResponse(URLConnection connection)
Returns a web response built from a URL connection.
|
protected abstract WebResponse |
WebClient.newResponse(WebRequest request,
FrameSelector targetFrame)
Creates a web response object which represents the response to the specified web request.
|
protected WebResponse |
WebConversation.newResponse(WebRequest request,
FrameSelector targetFrame)
Creates a web response object which represents the response to the specified web request.
|
WebResponse |
WebClient.sendRequest(WebRequest request)
Submits a web request and returns a response.
|
WebResponse |
WebWindow.sendRequest(WebRequest request)
Submits a web request and returns a response.
|
WebResponse |
WebForm.submit()
Submits this form using the web client from which it was originally obtained.
|
WebResponse |
WebForm.submit(SubmitButton button)
Submits this form using the web client from which it was originally obtained.
|
WebResponse |
WebForm.submit(SubmitButton button,
int x,
int y)
Submits this form using the web client from which it was originally obtained.
|
WebResponse |
WebForm.submitNoButton()
Submits this form using the web client from which it was originally obtained, ignoring any buttons defined for the form.
|
protected WebResponse |
WebForm.submitRequest(String event,
WebRequest request) |
protected WebResponse |
WebRequestSource.submitRequest(String event,
WebRequest request)
submit the given event for the given request
|
protected WebResponse |
WebRequestSource.submitRequest(WebRequest request)
Submits a request to the web client from which this request source was originally obtained.
|
Modifier and Type | Method and Description |
---|---|
void |
WebClientListener.responseReceived(WebClient src,
WebResponse resp)
Invoked when the web client receives a response.
|
protected void |
WebClient.updateMainWindow(FrameSelector frame,
WebResponse response)
Updates this web client based on a received response.
|
Constructor and Description |
---|
BlockElement(WebResponse response,
FrameSelector frame,
URL baseURL,
String baseTarget,
Node rootNode,
String characterSet) |
HeaderOnlyWebRequest(WebResponse referer,
Element sourceElement,
URL urlBase,
String urlString,
String target) |
TextBlock(WebResponse response,
FrameSelector frame,
URL baseURL,
String baseTarget,
Node rootNode,
String characterSet) |
WebApplet(WebResponse response,
org.w3c.dom.html.HTMLAppletElement element,
String baseTarget) |
WebList(WebResponse response,
FrameSelector frame,
URL baseURL,
String baseTarget,
Element element,
String characterSet) |
WebRequest(WebResponse referer,
Element sourceElement,
URL urlBase,
String urlString,
String target)
Constructs a web request using a base URL, a relative URL string, and a target.
|
Modifier and Type | Method and Description |
---|---|
void |
DomBasedScriptingEngineFactory.associate(WebResponse response)
associate me with a webresponse
|
ScriptingHandler |
DomBasedScriptingEngineFactory.createHandler(WebResponse response) |
void |
DomBasedScriptingEngineFactory.load(WebResponse response)
load
|
Modifier and Type | Method and Description |
---|---|
void |
JavaScriptEngineFactory.associate(WebResponse response) |
ScriptingHandler |
JavaScriptEngineFactory.createHandler(WebResponse response) |
void |
JavaScriptEngineFactory.load(WebResponse response) |
static void |
JavaScript.load(WebResponse response)
Runs the onload event for the specified web response.
|
static void |
JavaScript.run(WebResponse response)
Initiates JavaScript execution for the specified web response.
|
Modifier and Type | Method and Description |
---|---|
void |
ScriptingEngineFactory.associate(WebResponse response)
Associates a scripting engine with the specified HTML web response.
|
ScriptingHandler |
ScriptingEngineFactory.createHandler(WebResponse response) |
void |
ScriptingEngineFactory.load(WebResponse response)
Runs the 'onload' event (if any) for the specified HTML web response.
|
Modifier and Type | Method and Description |
---|---|
WebResponse |
ServletUnitClient.getResponse(InvocationContext invocation)
Updates this client and returns the response which would be displayed by the
user agent.
|
WebResponse |
ServletRunner.getResponse(String url)
Returns the response from the specified servlet using GET.
|
WebResponse |
ServletRunner.getResponse(WebRequest request)
Returns the response from the specified servlet.
|
WebResponse |
InvocationContext.getServletResponse()
Returns the final response from the servlet.
|
protected WebResponse |
ServletUnitClient.newResponse(WebRequest request,
FrameSelector targetFrame)
Creates a web response object which represents the response to the specified web request.
|
Copyright © 2012. All Rights Reserved.