3 messages in com.canoo.lists.webtestRe: [Webtest] Re: Cookie Handling| From | Sent On | Attachments |
|---|---|---|
| Jacob Portnoy | 17 Dec 2004 09:23 | |
| Ian Wallace | 17 Dec 2004 09:59 | |
| HUR...@Nationwide.com | 17 Dec 2004 10:04 |
| Subject: | Re: [Webtest] Re: Cookie Handling![]() |
|---|---|
| From: | Ian Wallace (iwal...@eforceglobal.com) |
| Date: | 12/17/2004 09:59:56 AM |
| List: | com.canoo.lists.webtest |
Jacob - I think this is just a typo in the email however you are using #{} and not #() correct? I believe that the sessioncookie would need to be a dynamic property which is designated with a #{} syntax.
Just checking. I really don't know why there's such a problem with cookie handling. I'm still scratching my head over the redirection question you had earlier.
cheers ian
On Fri, 2004-12-17 at 10:23, Jacob Portnoy wrote:
Although it may seem that I am using multiple testspecs, I am only using one
testspec with multiple page hits.
In a nutshell, I have a login.jsp page which requires 2 cookies to be present at
the client-level. In order to accomplish this, I have my testspec hit home.jsp
which transfers the cookies to the client. The testspec then navigates to
login.jsp with the appropriate cookies. I have changed log4j.properties to be in
debug-mode, and I can see that the cookies are accepted when they originally hit
home.jsp. However, they are not stored so that they can be used on login.jsp.
I found the following page which explains how to use "storeCookie" : http://webtest-community.canoo.com/wiki/space/CookieSteps
On this page, it describes how "text" must be set to "#(sessioncookie)" (which
makes sense because the ID for the cookie changes per session basis). However,
when I try to build the .xml, it comes back with the following error:
com.canoo.webtest.engine.StepFailedException: Wrong cookie "cookieName" value
found! Expected "#{sessioncookie}" but got "SessionIDNumber"
Does anybody know how to have HTTPUnit register "#(sessioncookie)" as a session
variable, rather than taking it as a literal string?
--------------- Jacob Portnoy Checkerboard LTD 508-438-2182 JPor...@Checkernet.com www.Checkernet.com
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
-- Ian Wallace - Sr. Engineer - eForce Managed Services 303.917.9965 (c) 303.399.2918 (f) iwal...@eforceglobal.com




