Forum Discussion
- Alex99Contributor
So, if I unterstand this correctly you have a setup like this:
Project - Test Suite - Test Case - Test Step - REST Request
You can add a groovy script somewhere, in this example we add it directly after the REST request.
Project - Test Suite - Test Case - Test Step - REST Request - groovy script
Then you can add a bit of code to loop through the header values:
context.testCase.getTestStepByName("REST Request").getHttpRequest().getParams().each { log.info it.key }
Here I had the values address and sensor, the output generated the same values..
Related Content
- 5 years ago
- 9 years ago
- 3 months ago
- 5 years ago
Recent Discussions
- 2 days ago
- 6 days ago