Forum Discussion
TNeuschwanger
Champion Level 1
Hello sjakovac
I can only help with groovy script test step...
It looks like you made it a little more difficult than it should be for just accessing the response of a test step. You can make it a little less brittle by actually naming the test step instead of attempting to get the previous test step object. If that previous test step actually has a response element it could just be two lines of code:
def response = context.expand( '${HTTP Request OAuth Token#Response}' );
log.info "response=$response";
Replace the "HTTP Request OAuth Token" above with whatever the test step name is that you want the response for.
Regards,
Todd
sjakovac
4 years agoOccasional Contributor
Yes, I tried that, doesn't work. I've also printed out test name in my
solution, and it finds correct one. The problem seems to be that Kafka step
doesn't have response object accessable by #Response expansion.
I'm looking for any other way of retrieving it
solution, and it finds correct one. The problem seems to be that Kafka step
doesn't have response object accessable by #Response expansion.
I'm looking for any other way of retrieving it
Related Content
Recent Discussions
- 7 days ago