14 years ago
How to set header value and session
Hi,
Im using pro 4.0.1. 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 grovy 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.
Im using pro 4.0.1. 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 grovy 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.