Is there any way to put assertions for Request header and response header for API testing
Ex:MarketID=CA,UK before running the step I would like to validate header contain CA or UK before executing the step.
Hi Bala, you can try adding the below assertions for the Request and Response side.
1. Ensure HTTP Header Contains Expression assertion ( Request validation)
The Ensure HTTP Header Contains Expression assertion lets you check that a specific HTTP result header contains a field that matches a specified regular expression.
2. lisa.StepName.http.headers property should have the header values.
3. Assertion from an HTTP Response
Hope this helps
Retrieving data ...