Forum Discussion
Lucian
7 years agoCommunity Hero
Hi, let's start from the beginning.
When you send a SOAP request the response is automatically saved in a custom property.
This can simply be referenced later from a groovy script as:
context.expand( '${TestStepName#Response}')
Be aware that the test step name is case sensitive.
Anyways.. if it happens for you to receive only some headers with no body then the response will appear empty. You can still get the raw response though you will need to use:
new String(testRunner.testCase.testSteps["TestStepName"].testRequest.response.rawResponseData)
Related Content
- 2 years ago
- 6 years ago
- 2 years ago
- 6 years ago