|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface WebBot.Response
The list of responses made during an execute() request.
Method Summary | |
---|---|
void |
errorString(java.lang.String text)
Verify that the given text is not present in the response body of any of the requests made. |
void |
errorStringRegex(java.lang.String regex)
Verify that the given regex does not match the response body of any of the requests made. |
long |
getLoadTime()
Get the overall load time in milliseconds for all the resources downloaded |
HttpResponse |
getResponse()
The first HttpResponse received. |
HttpResponse[] |
getResponses()
The list of all HttpResponse received. |
void |
searchString(java.lang.String text)
Verify that the given string is present in the response body of any of the requests made. |
void |
searchStringRegex(java.lang.String regex)
Verify that the given regex matches the response body of at least one of the requests made. |
Method Detail |
---|
HttpResponse getResponse()
HttpResponse[] getResponses()
long getLoadTime()
void searchString(java.lang.String text)
text
- the text to verifyvoid errorString(java.lang.String text)
text
- the text to verify does not exist on the pagevoid searchStringRegex(java.lang.String regex)
Only a partial match is required. E.g. the following will succeed if the response has the text 'search' anywhere in the body:
r.searchStringRegex("search");
regex
- the regex to search forvoid errorStringRegex(java.lang.String regex)
Only a partial match is required. E.g. the following will succeed if the response does not have the text 'error' in the body:
r.errorStringRegex("error");
regex
- the regex to verify that it doesn't exist on the page
|
© 2023 Vercara, LLC. All Rights Reserved. | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |