Forum Discussion
- nmraoChampion Level 3Unclear question.
Why type of steps are being used?
Currently, are those headers being created automatically? - MartinSpamerFrequent Contributor
If a header is included in the definition of the Request of the API then it will be included in the generated tests, add the header via the request editor, it is the second tab along the bottom of the editor.
If you have a large number of generated tests without this, you could use a Groovy script to add it to existing tests.
Take a look at my refactoring/meta-programming post from last week,
Replace the part that adds assertion with a call to
setRequestHeaders(...)
Related Content
- 2 years ago
- 2 years ago
- 6 months ago
- 13 years ago
Recent Discussions
- 15 years ago