Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

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)

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. Assertions
  2. Validators

 

  • No labels