chandanakki
13 years agoOccasional Contributor
Groovy Script to update the cookie in header section
Hi,
I am using Soap UI 4.6.1 Free version. There are multiple test steps in my test case. The first is User Login which gives Session id. This session id is needed to be set to the Header in all other webservice. ie I have to manually set the header="Cookie" and Value="JSESSIONID=XXXXXXXXXXXXXX" to each webservice, it works.
How do i do that using groovy or any other script to automatically transfer the session id generated from Userlogin to other webservice headers so that i dont have to manually set the session if everytime i want to run the test case.
Thanks in advance.
Regards,
Chandan
I am using Soap UI 4.6.1 Free version. There are multiple test steps in my test case. The first is User Login which gives Session id. This session id is needed to be set to the Header in all other webservice. ie I have to manually set the header="Cookie" and Value="JSESSIONID=XXXXXXXXXXXXXX" to each webservice, it works.
How do i do that using groovy or any other script to automatically transfer the session id generated from Userlogin to other webservice headers so that i dont have to manually set the session if everytime i want to run the test case.
Thanks in advance.
Regards,
Chandan