mmoser18
9 years agoFrequent Contributor
Adding HTTP-headers to ALL test-cases of a test-suite (or several test-suites)?
We had to change the authentication mechanism for several web-applications that we developed. That means that for all our test-cases I now need to include a set of additional HTTP-headers to each and...
- 9 years ago#1:
header value is a list. You can find my example in the below link where there is a separate method is defined to set the header including its value. you just need to call it as you needed.
http://stackoverflow.com/questions/37412281/script-assertion-to-get-token-and-set-it-as-http-header-to-the-next-test-step?noredirect=1#comment62336002_37412281
#2:
Yes, use context.expand('..') to have the actual value.
Good luck.