Reg Web_add_cookie in load runner

364 views
Skip to first unread message

ashok

unread,
Oct 1, 2009, 6:25:35 AM10/1/09
to LoadRunner
Hi ,

I am using load runner 9.0 to test the performance of web
application.The protocol which i chose is Http/Https..While recording
the actions i found Web_add_cookie(.........) in the script.
The value in Web_add_cookie(.........) is a dynamic one ,so i thought
to go for correlation.
But while replaying the Script i found the script was
executing without errors even if the dynamic values are not
correlated.
So how to proceed ,do i need to correlate the value in
Web_add_cookie(.........) or leave as it is in the script since it is
not causing any errors during replay.

Need your suggestion,
---Ashok

prasenjit dutta

unread,
Oct 1, 2009, 3:04:54 PM10/1/09
to LR-Loa...@googlegroups.com
no need to correlate those values in web_add_cookie.....u can remove or comment those things from ur script...it is better to remove those things from the script....it doesnot make any difference to the script.
--
Prasenjit

Srinivas N

unread,
Oct 1, 2009, 9:51:42 PM10/1/09
to LR-Loa...@googlegroups.com
Yes, cookie information can be commented as it does not have much impact.
 
Regards,
N.Srinivas

Floris Kraak

unread,
Oct 2, 2009, 11:46:31 AM10/2/09
to LR-Loa...@googlegroups.com
On Fri, Oct 2, 2009 at 3:51 AM, Srinivas N <emailt...@gmail.com> wrote:
> Yes, cookie information can be commented as it does not have much impact.
>

The trick with cookies is that cookies are recorded even when added
from HTTP Headers. Cookies added from HTTP headers can be safely
omitted because loadrunner will automatically add them when the script
is run anyway.

For cookies added from javascript though the above does not apply.
Those cookies cannot be commented away safely, usually.

If you wish to know which category of cookie you are dealing with you
will have to enable logging "data returned by server" and run the
script. If you see the cookie in a line starting with "Set-Cookie: "
it's a header, if it's set in a 'setCookie()' javascript call it is
(surprise!) a scripted one you may not be able to safely remove.

Frankly it would be better if HP simply changed the recording engine
to ignore cookies added in headers. Until that time a little bit of
diligence is adviced.

Regards,
Floris
---
'What does it mean to say that one is 48% slower? That's like saying
that a squirrel is 48% juicier than an orange - maybe it's true, but
anybody who puts the two in a blender to compare them is kind of
sick.'
--- Linus Torvalds

Reply all
Reply to author
Forward
0 new messages