----- Original Message ----- From: Richard A Pointon To: Andrey Pohilko Sent: Thursday, December 17, 2009 1:09 PM Subject: Re: Problem doing login
Hi Andrey, Thanks for this - the detail is that after doing the login I want to progress to the "display Orders" screen and all I get back is the "Please login screen" again - so for whatever reason it looks like it has not logged in to the site ? Maybe not posting the username/password ? Heres the code from the web page: ========================= <!-- user/Login.jsp --> <div id="content"> <div class="indent"> <form name="loginFormLogin" action="https://www.ocado.com/webshop/login.do" method="post"> <input type="hidden" name="token" value="b35df4e2e7aeee406668f9130a9c6be0" /> <input type="hidden" name="jsEnabled" value="N"/> <h2>Please Log In</h2> <div class="formLayout" style="margin:30px 0px;"> <div class="formRow med"> <label for="username">Username</label> <input id="username" name="login" type="text" class="textbox" size="30" maxlength="50" /> <span>(Usually your e-mail address)</span> </div> <div class="formRow med"> <label for="password">Password</label> <input name="password" id="password" type="password" class="textbox" size="20" maxlength="20" autocomplete="off" /> </div> <div class="formButton"><button type="submit" class="button"><span><span>Log in</span></span></button></div> </div> ========================= I've added the hidden fields & veiw results in tree as susggested. Here's the updated test, let me know ? RAP. ----- Original Message ----- From: Andrey Pohilko To: 'JMeter Users List' ; 'Richard A Pointon' Sent: Thursday, December 17, 2009 10:37 AM Subject: RE: Problem doing login Hello, Richard! There is hidden fields in HTML form - don't forget to pass them in request if necessary. I tried your test file, it forks fine for me, I see saved responses in c:\temp. You haven't defined any assertions in your test, so it always succeeds. Also "View Results in Tree" listener helps debugging tests very much. Maybe I got you wrong, but I don't see any troubles with your test. Can you describe problem more detailed? Good luck, Andrey From: Richard A Pointon [mailto:[email protected]] Sent: Thursday, December 17, 2009 1:11 PM To: JMeter Users List Subject: Problem doing login pls see attached.
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

