| || |
It has been pointed out in Opensta documentation that in order to run a sequence of scripts in a task group, you need to capture the session info under cookies and subsequently code it so that the cookie information is available to the next script in line as part of global variable. This way we can model individual scripts and combine them together as we plan the test. A simple example could be - Login -> Do some processing -> Logout.
This above is tru for those applications that generate cookies, however, in case of applications that do not generate client-side cookies, how do we achieve the same behaviour. For e.g. the 'Which US President' demo application supplied with Opensta download.
I'm trying to model a pet store application and would, probably, require a single user taking login and subsequently performing multiple operations with the shopping cart and then finally logging off.
Can anybody help me how to pass on session information in this case. I've checked and seen that if the Web application doesn't generate cookie, we can't model it sperately.
Re: Cookie Management
if there is no cookie, then session can be maintained using embedded session ID's.
you will need to write code to parse the session ID from the login response and then send it back with subsequent http requests.