Is it possible to condition headers in a request?

goofy78270goofy78270 Posts: 93

I would like to be able to include a header if a field is set to a certain value. I cannot include the header with an empty value, so the inclusion has to be all or nothing.

Possibly two different test steps, one which includes the header and one which does not, but is that the easiest/best solution?


  • jakubiakjakubiak Posts: 669 admin

    There is nothing in the messaging clients to conditionally include a header. The best approach is probably your suggestion to create two different test steps, and then use test suite logic to conditionally select which test step to execute.

Sign In or Register to comment.