Service Virtualization

 View Only
Expand all | Collapse all

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

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

    Posted Nov 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

    Broadcom Employee
    Posted Dec 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   1005 B 1 version