Trouble is if you go to that URL it takes you straight back to the login page...
RAP. ----- Original Message ----- From: "Andrey Pohilko" <[email protected]> To: "'JMeter Users List'" <[email protected]> Sent: Thursday, December 17, 2009 3:40 PM Subject: RE: Problem doing login Actually, there is a link... <div id="jsMessage"> Javascript appears to be disabled in your browser. You can view a <a href="http://www.ocado.com/webshop/editDisplaySetting.do">version of our website without javascript</a>. </div> С уважением, Андрей Похилько -----Original Message----- From: Richard A Pointon [mailto:[email protected]] Sent: Thursday, December 17, 2009 6:40 PM To: JMeter Users List Subject: Re: Problem doing login Yep I see that but it does not give the URL ? RAP. ----- Original Message ----- From: "Andrey Pohilko" <[email protected]> To: "'JMeter Users List'" <[email protected]> Sent: Thursday, December 17, 2009 3:34 PM Subject: RE: Problem doing login Richard, When you look at "View results in tree" and switch to "Show HTML", you'd see at the top of the page that link. С уважением, Андрей Похилько -----Original Message----- From: Richard A Pointon [mailto:[email protected]] Sent: Thursday, December 17, 2009 5:49 PM To: JMeter Users List Subject: Re: Problem doing login Hi, re "I noticed that there is version of this site without javascript," - I cant seem to locate this do you have the URL ? RAP. ----- Original Message ----- From: "Andrey Pohilko" <[email protected]> To: "'JMeter Users List'" <[email protected]>; "'Richard A Pointon'" <[email protected]> Sent: Thursday, December 17, 2009 2:26 PM Subject: RE: Problem doing login Hey, Richard, I see, you've already sent us file with password in it. Don't forget to change it later! Ok, I made some investigations about that website, it uses HTTPS when logging in. The form's behavior is changed by JavaScript, so form sends data with TLS, not HTTP. Then webpage is redirected to HTTP again. That's good and secure to use, but difficult to test. By the way, Wireshark sniffer very handy to investigate such problems with JMeter and network traffic it produces. It helped me here. I noticed that there is version of this site without javascript, maybe it will be easier to test, if your goal allows this workaround. Or you can find what TLS request is sent and simulate it in JMeter. Good luck! С уважением, Андрей Похилько From: Richard A Pointon [mailto:[email protected]] Sent: Thursday, December 17, 2009 4:45 PM To: JMeter Users List Subject: Re: Problem doing login Have added assertion and indeed it fails as it has not got past the login form. Can anyone see what I am doing wrong here as I am at a loss ? Latest test and form attached. RAP. ----- Original Message ----- From: Andrey Pohilko <mailto:[email protected]> To: 'Richard <mailto:[email protected]> A Pointon' Sent: Thursday, December 17, 2009 1:19 PM Subject: RE: Problem doing login Richard, I suggest you to keep communication via mailing list, for community to have our case in archives. I will not help you with direct mails. The next step I suggest you is to add simple assertion to your login sampler, where you'll check if login succeeds, eg you may check for result to contain string "Hello, you logged on", or something webserver reports in case of successful logins. С уважением, Андрей Похилько From: Richard A Pointon [mailto:[email protected]] Sent: Thursday, December 17, 2009 4:09 PM To: Andrey Pohilko 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 <mailto:[email protected]> To: 'JMeter Users List' <mailto:[email protected]> ; 'Richard <mailto:[email protected]> 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

