Hi all in Jmeter land - has anybody got any further ideas on how to get
logged in to this site ?

My test and the login page are attached. (the login is a dummy login with a
password that I have setup to try to get Jmeter to log in to this site and
navigate to the order details page).

Regards, Richard Pointon.


----- Original Message ----- 
From: "sebb" <[email protected]>
To: "JMeter Users List" <[email protected]>
Sent: Thursday, December 17, 2009 5:33 PM
Subject: Re: Problem doing login


Have you tried using a Cookie Manager?

On 17/12/2009, Andrey Pohilko <[email protected]> wrote:
> Richard,
>
>  I did not expect that you made simple mistake and use 'username' instead
of
>  'login' in your request. I corrected that and user HTTPS login request
>  instead of HTTP. Now server says something about requests from my
browser. I
>  don't know what this server needs anymore...
>
>
>  С уважением,
>  Андрей Похилько
>
>  -----Original Message-----
>  From: Richard A Pointon [mailto:[email protected]]
>
> Sent: Thursday, December 17, 2009 6:48 PM
>  To: JMeter Users List
>  Subject: Re: Problem doing login
>
>  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]
>
>
>
>  ---------------------------------------------------------------------
>  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]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

<html xmlns="http://www.w3.org/1999/xhtml";>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>Ocado: devoted to your shopping</title>
    <meta name="keywords" content="UK supermarket,supermarket uk,online grocery 
shopping,online groceries,grocery shopping,fresh food,organic food,online 
supermarket" />
    <meta name="description" content="Ocado.com is an award-winning online 
supermarket delivering quality Waitrose groceries direct to your home." />
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />   
    <link href="/webshop/static/common/css/master.css?4801ff" rel="stylesheet" 
type="text/css" media="screen" />
<link href="/webshop/static/common/css/print.css?4801ff" rel="stylesheet" 
type="text/css" media="print" />
<link media="only screen and (max-device-width: 480px)" 
href="/webshop/static/common/css/iphone.css?4801ff" rel="stylesheet" 
type="text/css" />

<!--[if gte IE 6]>
  <link href="/webshop/static/common/css/ie.css?4801ff" rel="stylesheet" 
type="text/css" media="screen" />
<![endif]-->

<!--[if IE 6]>
  <link href="/webshop/static/common/css/ie6.css?4801ff" rel="stylesheet" 
type="text/css" media="screen" />
<![endif]-->

<link rel="icon" href="/webshop/static/common/images/favicon.png?4801ff" 
type="image/png" /><script type="text/javascript" language="javascript" 
src="/webshop/javascript/Structure.js?4801ff"></script>
<script type="text/javascript" language="javascript" 
src="/webshop/javascript/prototype/prototype-1.6.0.3.js"></script>
<script type="text/javascript" language="javascript" 
src="/webshop/javascript/scriptaculous/1.8.1-modified/scriptaculous.js?load=effects,controls"></script>
<script type="text/javascript" language="javascript" 
src="/webshop/javascript/jsCommon.js?4801ff" id="jsEnabled"></script>
<script type="text/javascript" language="javascript" 
src="/webshop/javascript/DeliveryCountDown.js?4801ff"></script>
<script type="text/javascript" language="javascript" 
src="/webshop/javascript/ajaxBasicBasket.js?4801ff"></script>
<script type="text/javascript" language="javascript" 
src="/webshop/javascript/ajaxPage.js?4801ff"></script>
<script>isAjaxEnabled("/webshop")</script>
    </head>
  <body>
        <div id="header">
      <noscript>
                <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>  
        </noscript>
<div id="superUser">
        </div>
<div id="global">
        <h1>
                <a href="http://www.ocado.com/webshop/startWebshop.do";>
                        <span>Ocado</span>
                </a>
        </h1>
        <div id="tabbedNav">

</div><div class="clear"></div></div></div>
    <div id="mainWrapper" class="">
      <div id="main">
        <!-- 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="ee4fdf2453983cc65e0d6868dbf24a12" />
                        <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>
                </form>
                <script>document.loginFormLogin.jsEnabled.value = 'Y';</script>
        
                <ul class="cabbage">
                        <li><a 
href="http://www.ocado.com/webshop/requestForgottenPassword.do";>Forgotten your 
Password?</a></li>
                        <li><a 
href="http://www.ocado.com/webshop/startRegistration.do";>Not yet 
registered?</a></li>
                </ul>
        </div>
</div>
<hr class="clear" />
      </div>
    </div>
    <div id="footer">
  <div id="credits">
    <a id="award" 
href="http://www.ocado.com/webshop/content/information3/olgasAugust";>
      The Online Green Awards
      <br/>
      Category Winner 2008
    </a>

    <p>
      If we don't stock what you are looking for, try sending us a <a 
class="green" href="http://www.ocado.com/webshop/productRequestEdit.do";>product 
request</a>.
    </p>

    <p>
      <a class="green" 
href="http://www.ocado.com/webshop/startWebshop.do";>Home</a> |
      <a class="green" 
href="http://www.ocado.com/webshop/content/help3/index";>Help</a> |
      <a class="green" 
href="http://www.ocado.com/webshop/content/information3/contactUs";>Contact</a> |
      <a class="green" 
href="http://www.ocado.com/webshop/content/information3/securitypolicy";>Security</a>
 |
      <a class="green" 
href="http://www.ocado.com/webshop/content/information3/privacypolicy";>Privacy</a>
 |
      <a class="green" 
href="http://www.ocado.com/webshop/content/information3/termsandconditions";>Terms
 &amp; Conditions</a> |
      <a class="green" 
href="http://www.ocado.com/webshop/editDisplaySetting.do";>Accessibility</a> |
      <a class="green" 
href="http://www.ocado.com/webshop/content/corporate/index";>Corporate</a> |
      <a class="green" href="http://www.ocado.com/careers/"; target="_top" 
title="This link leaves the Ocado shop">Careers</a> |
      <a class="green" href="http://www.ocado.com/iPhone/";>iPhone</a>
    </p>
    <p>
      Copyright Ocado 2009 &copy;
    </p>
    </div>
</div>
</body>
</html>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to