Forum Discussion
nmrao
8 years agoChampion Level 3
Have you checked below in script assertion?
log.info messageExchange.getResponseHeaders()
log.info messageExchange.getResponseHeaders()
- kvsspkumar8 years agoNew Contributor
Hi Rao,
Thank you for your response.
Sorry I am not familiar with script assertion. When I ran the below statement as is in groovy it has thrown an error "no such property : messageExchange"
Can you guide on assertions please
Thanks
Kumar
- nmrao8 years agoChampion Level 3Not a separate Groovy Script test step. Add Script Assertion for the same request where you get the response.
- kvsspkumar8 years agoNew Contributor
Assertion worked with request message and returned a string with all properties very similar to below query in groovy.
${=context.testCase.testSteps["begin"].testRequest.response.messageReceive}
Now how can I pass the value from this string to testcase properties or next step request