Forum Discussion

Gunarm_Dyne's avatar
Gunarm_Dyne
Occasional Contributor
16 years ago

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.

2 Replies