Response Validator

Tags:  

To validate the response, follow the below given steps which will add response validation for the given URL,
  1. Choose the load test from the left side suite tree.

  2. Click on the Edit link appropriate to the transaction for which validation need to be defined.
  3. From the Parameterization screen choose the URL for which validation need to be added.

  4. Choose the Validation tab in the parameterization screen.

  5. Click on Add New Validation link present in the Validation screen.
  6. Then, choose the desired validation option such as check_for_element / check_for_text / check_for_title / check_for_status.

  7. Configure the input and expected value for the chosen validation.
  8. To add new validation repeat step 5 to 7.

  9. Configure criteria for success as All / Any.
  10. Configure Failure condition for the Response validation. Choose any of the options from below:
    1. Continue the load test - Continue the load test as usual.
    2. Jump to URL Index - Will jump to the specified URL Index and invoke that URL.
    3. Skip to next iteration - Stop the current iteration and will proceed to execute the next iteration from the beginning.
    4. Stop the user - Stop the particular virtual user who receives failure.
  11. Click on Save button to save the configured validation for the URL.
Similarly add validation for any required URL's in the transaction.

List of Validation supported in Response validation are listed below:

Validation type

Purpose

check_for_element

To verify the given element type with the specified attribute name and attribute value in the response.

check_for_text

To compare the specified search text, prefix text or suffix text in the response.

check_for_status

To verify the specified status code with the status code generated in the response.

check_for_title

To compare the specified title with the response title.



0 Comments  Show recent to old
Post a comment


 RSS of this page

Copyright © 2009, Zoho Corporation. All Rights Reserved.