Forum Discussion
Hoobajoob
11 years agoOccasional Contributor
Thank you for the reply, Giscard!
In the end, I did use a groovy script, like so:
...where "RestRequestTestStep" is the name of the test step that executed the request. Also added a property transfer step to save the script result to a TestCase property.
Thanks for helping out the newbies!
In the end, I did use a groovy script, like so:
def response = context.expand( '${RestRequestTestStep#Response}' )
def matches = response =~ /http:\/\/.*\/(\d+)$/
return matches[0][1]
...where "RestRequestTestStep" is the name of the test step that executed the request. Also added a property transfer step to save the script result to a TestCase property.
Thanks for helping out the newbies!
Related Content
- 3 years ago
Recent Discussions
- 15 hours ago