I have POST request which have request header in key, value pair as “userid”:“ABC”. This field is mandatory to have for successful POST. After successful POST response will again have “userid” as a response body element. I am looking for script which will check/compare header value and response value are same for user id field. Please help.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Print Response Header Value in Tests | 3 | 708 | November 22, 2023 | |
Find & Replace Value of a Key in request Headers | 1 | 460 | December 16, 2023 | |
Comparing responses | 3 | 373 | April 12, 2024 | |
Unable to read header value for a request that is sent in Pre-req | 16 | 17061 | June 20, 2022 | |
Is there any way to check if different formats of the same header is supported in postman tests? | 5 | 1011 | November 19, 2020 |