Forum Discussion
6 Replies
- nmraoCommunity Hero
Where do you need? In groovy test step or in script assertion?
- New2APIFrequent Contributor
We are calling an eventHandler script - TestRunListener.afterStep. This step would excute after a REST or GraphQL step and get the test data for reporting purpose.
We would like to get rawResponse that includes method, URL, headers used and body in the GQL call. we are able capture all the info except headers.
- nmraoCommunity Hero
- New2APIFrequent Contributor
Yes, rawResponse give entire raw response. We are looking for raw request. Above would give only request body.
- nmraoCommunity Hero
The original question is answered. Is this an amendment?
- New2APIFrequent Contributor
My Question itself was incorrect - I meant rawRequest. Sorry for that.