scaandio
15 years agoNew Contributor
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!
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!