NoCodeHere
8 years agoNew Contributor
HttpRequest Header Custom Parameter Variable
I have a Rest project that is based on a swagger.json file. I have environments set up for dev, test, etc. I need to create something like a variable that will contain an HttpRequest header parameter. This value will be used for all requests in the suite. What is the recommended method? I'm able to set parameters for individual requests in external file or whatever but I don't know how to set one for the header.
Thanks
- You can create suite level custom property, say NAME1, and VALU1 ( change them to your need).
Whereever that above property is needed use property expansion i.e., ${#TestSuite#NAME1}
Hope this is useful.