Forum Discussion
lakshmi
16 years agoOccasional Contributor
Hi,
I am also in a similar situation where in i have to test stateful services.
I have also enabled the option in the Test suite to maintain Http session.
It all works fine when i manually copy and paste the Set Cookie =XXX id into the request header of another request after login.
The sequence of steps that i have is
1 login :request step
2 set session : groovy script
3 do XYZ : request step
if i use the script as given in the example as in step2 (set session : groovy script) like
def state = context.getProperty( com.eviware.soapui.model.testsuite.TestRunContext.HTTP_STATE_PROPERTY )
i am getting the value of the state as null.
I am unable to proceed further because of this.Please let me know if i am wrong any where.Kindly help me fix this groovy script so that i can capture the session id of login method and add it in the subsequent requests in the groovy script.
Appreciate any help in this regard.
Thanks,
Lakshmi
I am also in a similar situation where in i have to test stateful services.
I have also enabled the option in the Test suite to maintain Http session.
It all works fine when i manually copy and paste the Set Cookie =XXX id into the request header of another request after login.
The sequence of steps that i have is
1 login :request step
2 set session : groovy script
3 do XYZ : request step
if i use the script as given in the example as in step2 (set session : groovy script) like
def state = context.getProperty( com.eviware.soapui.model.testsuite.TestRunContext.HTTP_STATE_PROPERTY )
i am getting the value of the state as null.
I am unable to proceed further because of this.Please let me know if i am wrong any where.Kindly help me fix this groovy script so that i can capture the session id of login method and add it in the subsequent requests in the groovy script.
Appreciate any help in this regard.
Thanks,
Lakshmi
Related Content
- 8 months agobleahy
Recent Discussions
- 3 days agoemoya
- 3 days agoMyBalanceNow