Hi, you can change the cookie policy to any of HttpClient's policy (or your own). Have a look for instance at this older post in the mailing list for instance: http://www.nabble.com/Change-Cookie-Policy-with-a-Groovy-step-tf1474639.html#a3988557
Marc. Thakkar, Sachin wrote: > > I believe the issue is that the cookies aren't compliant with RFC 2109 > and that is the problem that prevents the cookies from being stored. Is > there any way to disable the fact that cookie compliance is checked. > > FYI I do not have access to server cookie types. > > Thanks, > Sachin > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Marc Guillemot > Sent: Thursday, July 12, 2007 1:50 AM > To: [email protected] > Subject: Re: [Webtest] Cookies with WebTest > > > Hi, > > normally cookies handling works just fine. Nevertheless some server > sends cookies in a non standard format, what could be a cause of > problem. > > The best thing to do is probably to change the log level to see the http > traffic (see lib/log4j.properties) and to compare the cookies sent and > received with some sent and received by a "normal" browser > (liveHttpHeaders is a nice Firefox addon for this purpose). > > Marc. > > > Thakkar, Sachin wrote: >> >> Hi, >> >> I was using WebTest to do some HTML app testing and encountered a few >> problems which I believe are related to cookies. I have to login to a >> website to gain access to the sandbox I am testing in. I must enter a >> different login once in the sandbox to complete the login process and >> get access to the URLs I must test. I am new to WebTest so please >> correct me if I am wrong. >> >> I am able to successfully login to the first site and get to the login > >> page of the particular sandbox I want access to. I am quite sure that >> I am populating the login and password fields correctly yet after >> click the login button, I get back to a page that says you must be >> logged in to perform this action. >> >> By the way, there is an intermediary processing login page that I must > >> go through to get to a successful login complete page. I do this by >> sleep for a given amount of time and then invoking a proper page. This > >> worked perfectly for the first login but does not work for the second. >> Due to the similar method, I am led to believe it is an issue with >> cookies rather than this login redirect page. >> >> Thanks in advance for the help. >> >> > > -- > View this message in context: > http://www.nabble.com/Cookies-with-WebTest-tf4059337.html#a11555963 > Sent from the WebTest mailing list archive at Nabble.com. > > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest > > -- View this message in context: http://www.nabble.com/Cookies-with-WebTest-tf4059337.html#a11610996 Sent from the WebTest mailing list archive at Nabble.com. _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

