running recorded http script, no session [message #34428] |
Sat, 08 October 2005 17:50  |
Eclipse User |
|
|
|
Originally posted by: devriesjonathan.hotmail.com
I record a test script against a tomcat instance, but the java code sends
the JSESSIONID cookie as this code:
header.setName("Cookie");
header.setValue("JSESSIONID=8CDAF7EE112F8F6D8083887A767F5156 ");
Should it be figuring out the newest session id instead of recording it?
thanks
jonathan
|
|
|
|
|
Re: running recorded http script, no session [message #38251 is a reply to message #35646] |
Mon, 31 October 2005 09:44   |
Eclipse User |
|
|
|
Hi Jon & Peter,
I'm not sure what's going on. When running URL tests, the cookies should be
dynamically stored & loaded, no matter what the cookies are set as in the
generated code.
Try launching the Agent Controller with the additional property
"CookieDebug=true" This will add additonal message events to the execution
history saying when the cookie cache is used & what was stored & loaded in
it. (Or, run the generated Java file as standalone JUnit, with the
additional argument ("-DCookieDebug=true") and the messages will appear in
standard.out.
If all else fails, try removing the
header.setName("Cookie");
header.setValue("JSESSIONID=8CDAF7EE112F8F6D8083887A767F5156 ");
lines from each method.
Please see the HttpCookieCache class, methods DynamicSetCookie() and
DynamicGetCookie() for more information.
Hope this helps,
Jeff Nevicosi
|
|
|
Re: running recorded http script, no session [message #39613 is a reply to message #38251] |
Sun, 06 November 2005 10:24  |
Eclipse User |
|
|
|
Originally posted by: devriesjonathan.hotmail.com
Thanks for the reply
I have done a search and replace of the JSESSIONID and that didn't work
I think there is a bug in the set cookie logic, maybe based on the domain or
something.
One of these days i will step into that code and see if i can figure it out
"Jeff Nevicosi" <nevicosi@us.ibm.com> wrote in message
news:dk5aot$g3j$1@news.eclipse.org...
> Hi Jon & Peter,
>
> I'm not sure what's going on. When running URL tests, the cookies should
> be
> dynamically stored & loaded, no matter what the cookies are set as in the
> generated code.
>
> Try launching the Agent Controller with the additional property
> "CookieDebug=true" This will add additonal message events to the
> execution
> history saying when the cookie cache is used & what was stored & loaded in
> it. (Or, run the generated Java file as standalone JUnit, with the
> additional argument ("-DCookieDebug=true") and the messages will appear in
> standard.out.
>
> If all else fails, try removing the
>
> header.setName("Cookie");
> header.setValue("JSESSIONID=8CDAF7EE112F8F6D8083887A767F5156 ");
>
> lines from each method.
>
> Please see the HttpCookieCache class, methods DynamicSetCookie() and
> DynamicGetCookie() for more information.
>
> Hope this helps,
>
> Jeff Nevicosi
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.34817 seconds