| || |
User (email@example.com) posted:
We would like someone to give us an idea of how to deal with
cookies in LoadRunner.
Thanks in advance.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get VeriSign's FREE GUIDE: "Securing Your Web Site for Business." Learn about using SSL for serious online security. Click Here! http://us.click.yahoo.com/KYe3qC/I56...gFAA/NhFolB/TM
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
User William J Selph \(E-mail\) (firstname.lastname@example.org) posted:
The rule is
The VUG will place them in your script and you need to comment them out.
Some people say delete them, but I prefer to leave them in.
The script execution will automatically grab and send cookie information
just like a browser would.
I had one exception that I found last May, a User had a beginning cookie
that was needed by the web server so I discovered that I must leave that
cookie active for playback.
There is a run time setting that allows you control over whether the cookie
info is dumped between iterations.
You need to discuss this with your business users and plan for it in your
I ask it this way: Will each iteration of the script emulate a new user or
the same user each loop?
From this you can decide to use "Reset context/state between iterations" in
your run time settings.
Sincerely, William (Bill) Selph
Principal Engineer, Software Quality Management Resources
Certified Product Instructor and Specialist, Mercury Interactive
Licensed Professional Engineer
Pager: 800.206.3443 Text messaging: email@example.com
This correspondence may contain confidential information intended for the
use of the individual or entity to which it is addressed. If the reader of
this electronic message is not the intended recipient, or the employee or
agent responsible to deliver it to the intended recipient, you are hereby
notified that any dissemination, distribution or copying is strictly
Its always better to leave the recorded cookies in your script rather then removing them . Remember sometimes you need to parametarize the cookies with session variables too.