Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Is it possible to condition headers in a request?

Options
goofy78270
goofy78270 Posts: 133

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?

Answers

  • jakubiak
    jakubiak Posts: 798 admin
    Options

    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.