Package | Description |
---|---|
com.meterware.httpunit |
Classes for testing http server systems.
|
com.meterware.servletunit |
Classes for unit testing servlets, providing internal access to running servlets using a simulated servlet container.
|
Modifier and Type | Class and Description |
---|---|
class |
GetMethodWebRequest
An HTTP request using the GET method.
|
class |
HeaderOnlyWebRequest
A web request which has no information in its message body.
|
class |
HeadMethodWebRequest
A web request using the HEAD method.
|
class |
MessageBodyWebRequest
A web request which contains a non-empty message body.
|
class |
PostMethodWebRequest
An HTTP request using the POST method.
|
class |
PutMethodWebRequest
A web request using the PUT protocol.
|
Modifier and Type | Method and Description |
---|---|
WebRequest |
WebResponse.getRefreshRequest()
Returns a request to refresh this page, if any.
|
WebRequest |
WebForm.getRequest()
Creates and returns a web request which will simulate the submission of this form with an unnamed submit button.
|
abstract WebRequest |
WebRequestSource.getRequest()
Creates and returns a web request from this request source.
|
WebRequest |
WebForm.getRequest(String submitButtonName)
Creates and returns a web request which will simulate the submission of this form with a button with the specified name.
|
WebRequest |
WebForm.getRequest(String submitButtonName,
String submitButtonValue)
Creates and returns a web request which will simulate the submission of this form with a button with the specified name and value.
|
WebRequest |
WebForm.getRequest(SubmitButton button)
Creates and returns a web request which will simulate the submission of this form by pressing the specified button.
|
WebRequest |
WebForm.getRequest(SubmitButton button,
int x,
int y)
Creates and returns a web request which will simulate the submission of this form by pressing the specified button.
|
WebRequest |
WebForm.newUnvalidatedRequest()
Creates and returns a web request based on the current state of this form.
|
WebRequest |
WebForm.newUnvalidatedRequest(SubmitButton button)
Creates and returns a web request which includes the specified button.
|
WebRequest |
WebForm.newUnvalidatedRequest(SubmitButton button,
int x,
int y)
Creates and returns a web request which includes the specified button and position.
|
Modifier and Type | Method and Description |
---|---|
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(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.
|
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.
|
void |
WebClientListener.requestSent(WebClient src,
WebRequest req)
Invoked when the web client sends a 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.
|
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.
|
protected void |
WebClient.writeMessageBody(WebRequest request,
OutputStream stream)
Writes the message body for the request.
|
Constructor and Description |
---|
WebRequest(WebRequest baseRequest,
String urlString,
String target)
Constructs a web request using a base request and a relative URL string.
|
Modifier and Type | Method and Description |
---|---|
WebResponse |
ServletRunner.getResponse(WebRequest request)
Returns the response from the specified servlet.
|
InvocationContext |
InvocationContextFactory.newInvocation(ServletUnitClient client,
FrameSelector targetFrame,
WebRequest request,
Dictionary clientHeaders,
byte[] messageBody)
Creates and returns a new invocation context to test calling of servlet methods.
|
InvocationContext |
ServletUnitClient.newInvocation(WebRequest request)
Creates and returns a new invocation context to test calling of servlet methods.
|
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.