running recorded http script, no session [message #34428] |
Sat, 08 October 2005 21: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 #34562 is a reply to message #34428] |
Sun, 09 October 2005 21:22 |
Eclipse User |
|
|
|
Originally posted by: devriesjonathan.hotmail.com
After looking more at the code, it seems like it gets the cookie for the
JSESSIONID, but this function doesn't save it to send back. I get the
recorded cookies, but not the dynamic ones sent back. So my app keeps
creating new sessions which doesn't get the test too far.
anyon with ideas?
"jon devries" <devriesjonathan@hotmail.com> wrote in message
news:di9ev3$fdp$1@news.eclipse.org...
> 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 #35646 is a reply to message #34562] |
Tue, 18 October 2005 10:29 |
Eclipse User |
|
|
|
Originally posted by: pvdhoef.springsite.com
Hi,
I am experiencing the same error.
A new session is created at each request.
I am using TPTP version 4.1.0.
Hope anyone can help.
Thanks in advance,
Peter van de Hoef
jon devries wrote:
> After looking more at the code, it seems like it gets the cookie for the
> JSESSIONID, but this function doesn't save it to send back. I get the
> recorded cookies, but not the dynamic ones sent back. So my app keeps
> creating new sessions which doesn't get the test too far.
>
> anyon with ideas?
>
> "jon devries" <devriesjonathan@hotmail.com> wrote in message
> news:di9ev3$fdp$1@news.eclipse.org...
>
>>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 14:44 |
Jeff Nevicosi Messages: 5 Registered: July 2009 |
Junior Member |
|
|
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 15: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.02746 seconds