Service Virtualization

Expand all | Collapse all

How can we extract the complete header response in a property so that we can validate the Header value.

Jump to Best Answer
  • 1.  How can we extract the complete header response in a property so that we can validate the Header value.

    Posted 11-29-2016 08:40 AM
      |   view attached

    How can we extract the complete header response in a property so that we can validate the Header value.

    I have tried with parse HTML http header value filter but it will show only the key value from the response.

    I want the complete header in a property so that i can verify the header response such as:-

    HTTP/1.1 422 Unprocessable Entity 

     



  • 2.  Re: How can we extract the complete header response in a property so that we can validate the Header value.
    Best Answer

    Posted 12-14-2016 09:10 PM
      |   view attached

    Hi Naval,

            By default when you run REST service, it will capture header details in lisa.<step_name>.http.headers property. You can print this property and do validations on header. 

            I have attached a sample test case where I am printing header details for REST service.

     

    Thanks

    Srikanth

    Attachment(s)

    zip
    REST_Header.tst.zip   1005B 1 version