Forum Discussion

scaandio's avatar
scaandio
New Contributor
14 years ago

Get properties from HTTP Response

Hi,
I am a newbie with SOAPUi. I have to do some tests: I send an HTTP GET Request towards an URL with some parameters, and then I receive a response with some parameters back, accoring to the input I gave.
Now the problem is, I have to use these parameters I had back in this first exchange and put them into a new HTTP Request. The question is: how do I get the parameters from the response I had previously and put them automatically into the new Request i make. I mean, I do the test with multiple test steps.
step1: send request1 and get back response1
step2: send request2 with params from response1 and get back response2
step3: ....
I tried to write a simple groovy script to do that but it doesn't work. Can anyone help with a script example please?
Thanks!

1 Reply

  • Do you need to use Groovy Script for this, or can you just use a "Property Transfer" Test Step?
    Looking at your post I should think that the inbuilt SOAP UI functionality should easily allow you to store the elements from your Response and from there you can reuse them in the next Request.

    Geoff