Forum Discussion
tdtruong
12 years agoNew Contributor
yes, I tried but it didnt do the trick. Actually I use SoapUI 4.5.2, have 2 test cases (both checked "Maintain HTTP Session"):
- test case 1 for step of logging in
- test case 2 for step of getting the url only
And test case 2 just get the page with a different sessionid and stay at log in form. If I put the step of 2 into 1, getting the url as logged user successfully. So I think that "Maintain HTTP Session" is used within the test case only, not cross test cases.
Michael : can you explain the getCookieStore, why is it still nothing after logging in, I think it should contain the session ?
As I need to test log in function, how can I create step of deleting session, and input some wrong value into existing parameters in the cookie ?
Thanks
- test case 1 for step of logging in
- test case 2 for step of getting the url only
And test case 2 just get the page with a different sessionid and stay at log in form. If I put the step of 2 into 1, getting the url as logged user successfully. So I think that "Maintain HTTP Session" is used within the test case only, not cross test cases.
Michael : can you explain the getCookieStore, why is it still nothing after logging in, I think it should contain the session ?
As I need to test log in function, how can I create step of deleting session, and input some wrong value into existing parameters in the cookie ?
Thanks