Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

In vREST, response validation is done with the help of various assertions and response validators. With the help of assertions, you can validate various response attributes like

  • Status Code, 
  • Response Headers, 
  • Response Time, 
  • Response Content (Text Body or JSON Body or XML Body)

Validating the response content, with the help of assertions is little harder. So, to ease this task further you can apply a single assertion to validate your response content with Default Validators or even Custom Validators. In validating response with default validators, you need to set the expected body. This approach has several benefits over multiple JSON body assertions.

 

Let us see these two majors parts of Response Validation in detail:

  1. TC Assertions sub tab
  2. Response Validators