Gunarm_Dyne
16 years agoOccasional Contributor
Using Groovy to pull out some response data
I'm still a bit of a newbie at this and for my current test suite I'm required to create an object using the web service that I'm testing and record its unitId in order to make further requests on that same object. The creation method results in a simple XML response:
true
156212
What I want to do is extract the message value (156212) and would like to know the Groovy command on how to do that. Thanks in advance.
What I want to do is extract the message value (156212) and would like to know the Groovy command on how to do that. Thanks in advance.