RE: [OpenSTA-users] Cookie management
Brought to you by:
dansut
From: Gulati, S. \(Sunjeev\) <sun...@ug...> - 2004-06-14 14:43:58
|
The question here would be, when the site is being used by a normal user using a web browser, how is the user's state saved? =20 another way to phrase the question is, how does the web server know, that a given request, comes from a particular logged in user?=20 =20 As far as I know, there are only a few ways to do this:=20 - keep a cookie - pass a hidden field in with every post (similar to VIEWSTATE in .Net, see list archives) - use some kind of authentication (BASIC, NTLM, Digest, etc), and make an internal mapping of one user =3D one session.=20 - use some kind of IP address mapping (problem: Network Address Translation makes this a problem) - use a custom ActiveX control of some sort=20 - guess and hope you're right (many many problems with this) =20 The first three can be modeled by OpenSTA. The last one too. :]=20 =20 So, to rephrase the question, what is your app doing to preserve login state information?=20 =20 -S. _____ =20 From: ope...@li... [mailto:ope...@li...] On Behalf Of aka...@tc... Sent: Monday, June 14, 2004 6:14 AM To: ope...@li... Subject: [OpenSTA-users] Cookie management =09 =09 Hi=20 =09 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.=20 =09 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.=20 =09 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.=20 =09 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 separately.=20 =09 Regards=20 Akash Jhamb =09 |