Recorder

Response Validation...

Response from the server can be validated using Response Validator functionality. In some application internal server error messages are shown in custom format in that case instead of 500 Internal Server Error response code, 200 OK will be returned. So we can check the response content from the server and validate the data.

Figure A

To add a response validator, first select a file in script pane and goto Test -> Response Validation... or Press F10

Check Validate checkbox and select one of the three options.

Pass If Response Size Is Greater Than - specify size in bytes, the validation is true only if response data size is greater than specified size.

Pass If Response Size Is Less Than - specify size in bytes, the validation is true only if response data size is less than specified size.

Pass If Response Contain Following Sentence. - Enter search string in the text box, response is pass only if the specified string is exist in the response data. If 'Not' Checkbox is checked validation is pass if specified string is not exist in response data.

Trace Technologies Pvt. Ltd.,  Copyright © 2003 - 2008