|
Jala Test | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--jala.Test.HttpClient
Instances of this class represent a http client useable for
testing, as any session cookies received by the tested application
are stored and used for subsequent requests, allowing simple "walkthrough"
tests.
Defined in Global/jala.Test.js
Constructor Summary | |
jala.Test.HttpClient
()
Constructs a new HttpClient instance |
Method Summary | |
Object
|
executeRequest(<String> method, <String> url, <Object> param)
Sends a HTTP request to the Url passed as argument |
helma.Http
|
getClient()
Returns the http client used |
Array
|
getCookies()
Returns the cookies set for this http client |
Object
|
getUrl(<String> url, <Object> param)
Convenience method for requesting the url passed as argument using method GET |
void
|
setCookies(<Array> arr)
Sets the cookie to use for subsequent requests using this client |
Object
|
submitForm(<String> url, <Object> param)
Convenience method for submitting a form. |
Constructor Detail |
jala.Test.HttpClient()
Method Detail |
Object executeRequest(<String> method, <String> url, <Object> param)
method
- The HTTP method to use
url
- The url to request
param
- A parameter object to use with this request
helma.Http getClient()
Array getCookies()
Object getUrl(<String> url, <Object> param)
url
- The url to request
param
- A parameter object to use with this request
void setCookies(<Array> arr)
arr
- The cookie object as received from helma.Http.getUrl
Object submitForm(<String> url, <Object> param)
url
- The url to request
param
- A parameter object to use with this request
|
Jala Test | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |