[Webtest] Login problems

Dierk Koenig webtest@lists.canoo.com
Wed, 4 Jan 2006 08:27:29 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C61108.B332CFA0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Login problemsHi Bernd,

the crucial info missing here is the content of your file
./common/WMM_OpenLoginPage.xml
since it contains the webtest steps for logging in.

it would also be helpful to see the console log.

If you have the server error logs available, that would also help.

BTW: if you system works with basic authentication, you can
directly use the username and password attributes of the invoke step
to go around your login page.

make sure to not send any real passwords to this list :-)

cheers
Mittie
  -----Original Message-----
  From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com]On Behalf Of Paatsch, Bernd
  Sent: Mittwoch, 4. Januar 2006 1:24
  To: 'webtest@lists.canoo.com'
  Subject: [Webtest] Login problems


  Hello,

  I try to login into the Web Page I like to test. I alsways end up with
"The system could not log you in using the provided username and password.
Please try again."

  Could anybody tell me what step I am missing here?

  HTML from site I like to login:

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR.html1/DTD.html1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999.html" xml:lang="en" lang="en">
  <head>
  <script type="text/javascript" src="../scripts/styleswitcher.js"></script>
  <script type="text/javascript" src="../scripts/global.js"></script>
  </head><body id="login">

  <div id="login_bottom">
  <form method="post" action='/mm/status.php'>
  <p>User ID:&nbsp;<input type="text" name="txtLoginForm" title="Enter user
ID" maxlength="50" size="15" /></p>
  <p>Security code:&nbsp;<input type="password" name="pwdPasswordForm"
title="Enter security code" maxlength="50" size="15" /></p>
  <p>Language:&nbsp;
  <select id="sltDefLanguage" name="sltDefLanguage" title="Language"
><option value="de" >German</option><option value="ed" >Madrid
Spanish</option><option value="fr" >French</option><option value="it"
>Italian</option><option value="nl" >Dutch</option><option value="us"
selected="selected" >United States English</option></select></p>

  <p><input id="login_button" type="submit" value="Login" name="btnLogin"
title="Logon to Mailbox Manager" /></p>
  <p>This web session has expired. Please log in again to continue.</p>
  <p><a href="#" title="Click to load a guide that will help you get
started"
onclick="window.open('/help/quickstart.php','Quickstart','width=600,height=4
00,resizable=yes,scrollbars=yes')">Launch quick start guide</a></p>
  </form>
  </div>
  <script type="text/javascript" src="/scripts/index.js"></script>
  </body></html>

  WebTest-code to login:
  <!DOCTYPE  project
SYSTEM          "./common/WebTest.dtd" [
          <!ENTITY        WMMConfig
SYSTEM          "./common/WMM_Config.xml">
          <!ENTITY        WMMTaskdef
SYSTEM          "./common/WMM_Taskdef.xml">
          <!ENTITY        WMMOpenLoginPage
SYSTEM          "./common/WMM_OpenLoginPage.xml">

  ]>
  <project name="WMM_Menu" default="WMM_Main">
    <property file="./properties/WMM_OpenLoginPage.properties"/>
    <property file="./properties/WMM_Login.properties"/>
          &WMMTaskdef;
          <ant antfile="./common/WMM_Prepare.xml" />


          <target name="WMM_Main">
                  <testSpec name="open the WMM_Main page">
                          &WMMConfig;
                          <steps>
                          &WMMOpenLoginPage;
                          <!-- logs into WebMM-->
                                  <setinputfield name="txtLoginForm"
value="${szLoginName}"  description="Login name or ID" />

                                  <setinputfield name="pwdPasswordForm"
value="${szLoginPassword}" description="Login password" />

                                  <clickbutton name="btnLogin"
escription="press the login button"     />




------=_NextPart_000_000A_01C61108.B332CFA0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Login problems</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2802" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D412312207-04012006>Hi=20
Bernd,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D412312207-04012006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D412312207-04012006>the=20
crucial info missing here is the content of your =
file</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D412312207-04012006>./common/WMM_OpenLoginPage.xml</SPAN></FONT></=
DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D412312207-04012006>since =
it contains=20
the webtest steps for logging in.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D412312207-04012006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D412312207-04012006>it =
would also be=20
helpful to see the console log.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D412312207-04012006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D412312207-04012006>If you =
have the=20
server error logs available, that would also help.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D412312207-04012006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D412312207-04012006>BTW: =
if you=20
system&nbsp;works with basic authentication, you can</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D412312207-04012006>directly use the=20
username and password attributes of the invoke step</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D412312207-04012006>to go =
around your=20
login page.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D412312207-04012006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D412312207-04012006>make =
sure to not=20
send any real passwords to this list :-)</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D412312207-04012006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D412312207-04012006>cheers</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D412312207-04012006>Mittie</SPAN></FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B>=20
  webtest-admin@lists.canoo.com =
[mailto:webtest-admin@lists.canoo.com]<B>On=20
  Behalf Of </B>Paatsch, Bernd<BR><B>Sent:</B> Mittwoch, 4. Januar 2006=20
  1:24<BR><B>To:</B> 'webtest@lists.canoo.com'<BR><B>Subject:</B> =
[Webtest]=20
  Login problems<BR><BR></FONT></DIV>
  <P><FONT face=3DArial>Hello,</FONT> </P>
  <P><FONT face=3DArial>I try to login into the Web Page I like to test. =
I alsways=20
  end up with "The system could not log you in using the provided =
username and=20
  password. Please try again."</FONT></P>
  <P><FONT face=3DArial>Could anybody tell me what step I am missing =
here?</FONT>=20
  </P>
  <P><FONT face=3DArial>HTML from site I like to login:</FONT> </P>
  <P><FONT face=3D"Courier New" size=3D2>&lt;!DOCTYPE html PUBLIC =
"-//W3C//DTD XHTML=20
  1.0 Transitional//EN" "</FONT><A=20
  =
href=3D"http://www.w3.org/TR.html1/DTD.html1-transitional.dtd"><U><FONT=20
  face=3D"Courier New" color=3D#0000ff=20
  =
size=3D2>http://www.w3.org/TR.html1/DTD.html1-transitional.dtd</FONT></U>=
</A><FONT=20
  face=3D"Courier New" size=3D2>"&gt;<BR>&lt;html xmlns=3D"<A=20
  href=3D"http://www.w3.org/1999.html"=20
  target=3D_blank>http://www.w3.org/1999.html</A>" xml:lang=3D"en"=20
  lang=3D"en"&gt;<BR>&lt;head</FONT><FONT face=3D"Courier New"=20
  size=3D2>&gt;</FONT><BR><FONT face=3D"Courier New" size=3D2>&lt;script =

  type=3D"text/javascript"=20
  src=3D"../scripts/styleswitcher.js"&gt;&lt;/script&gt;<BR>&lt;script=20
  type=3D"text/javascript"=20
  =
src=3D"../scripts/global.js"&gt;&lt;/script&gt;<BR>&lt;/head&gt;&lt;body =

  id=3D"login"&gt;<BR><BR>&lt;div id=3D"login_bottom"&gt;<BR>&lt;form =
method=3D"post"=20
  action=3D'/mm/status.php'&gt;<BR>&lt;p&gt;User ID:&amp;nbsp;&lt;input=20
  type=3D"text" name=3D"txtLoginForm" title=3D"Enter user ID" =
maxlength=3D"50" size=3D"15"=20
  /&gt;&lt;/p&gt;<BR>&lt;p&gt;Security code:&amp;nbsp;&lt;input =
type=3D"password"=20
  name=3D"pwdPasswordForm" title=3D"Enter security code" =
maxlength=3D"50" size=3D"15"=20
  /&gt;&lt;/p&gt;<BR>&lt;p&gt;Language:&amp;nbsp;<BR>&lt;select=20
  id=3D"sltDefLanguage" name=3D"sltDefLanguage" title=3D"Language" =
&gt;&lt;option=20
  value=3D"de" &gt;German&lt;/option&gt;&lt;option value=3D"ed" =
&gt;Madrid=20
  Spanish&lt;/option&gt;&lt;option value=3D"fr"=20
  &gt;French&lt;/option&gt;&lt;option value=3D"it"=20
  &gt;Italian&lt;/option&gt;&lt;option value=3D"nl"=20
  &gt;Dutch&lt;/option&gt;&lt;option value=3D"us"&nbsp; =
selected=3D"selected"=20
  &gt;United States =
English&lt;/option&gt;&lt;/select&gt;&lt;/p&gt;</FONT></P>
  <P><FONT face=3D"Courier New" size=3D2>&lt;p&gt;&lt;input =
id=3D"login_button"=20
  type=3D"submit" value=3D"Login" name=3D"btnLogin" title=3D"Logon to =
Mailbox Manager"=20
  /&gt;&lt;/p&gt;<BR>&lt;p&gt;This web session has expired. Please log =
in again=20
  to continue.&lt;/p&gt;<BR>&lt;p&gt;&lt;a href=3D"#" title=3D"Click to =
load a guide=20
  that will help you get started"=20
  =
onclick=3D"window.open('/help/quickstart.php','Quickstart','width=3D600,h=
eight=3D400,resizable=3Dyes,scrollbars=3Dyes')"&gt;Launch=20
  quick start=20
  =
guide&lt;/a&gt;&lt;/p&gt;<BR>&lt;/form&gt;<BR>&lt;/div&gt;<BR>&lt;script =

  type=3D"text/javascript"=20
  =
src=3D"/scripts/index.js"&gt;&lt;/script&gt;<BR>&lt;/body&gt;&lt;/html&gt=
;</FONT>=20
  </P>
  <P><FONT face=3DArial>WebTest-code to login:</FONT> <BR><FONT =
face=3DArial=20
  size=3D2>&lt;!DOCTYPE&nbsp; project &nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYSTEM&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "./common/WebTest.dtd" =
[</FONT>=20
  <BR><FONT face=3DArial =
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;!ENTITY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  WMMConfig&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYSTEM&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  "./common/WMM_Config.xml"&gt;</FONT> <BR><FONT face=3DArial=20
  size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;!ENTITY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  WMMTaskdef&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYSTEM&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  "./common/WMM_Taskdef.xml"&gt;</FONT> <BR><FONT face=3DArial=20
  size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!ENTITY=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  WMMOpenLoginPage&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  SYSTEM&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  "./common/WMM_OpenLoginPage.xml"&gt;</FONT></P>
  <P><FONT face=3DArial size=3D2>]&gt;</FONT> <BR><FONT face=3DArial=20
  size=3D2>&lt;project name=3D"WMM_Menu" default=3D"WMM_Main"&gt;</FONT> =
<BR><FONT=20
  face=3DArial size=3D2>&nbsp; &lt;property=20
  file=3D"./properties/WMM_OpenLoginPage.properties"/&gt;</FONT> =
<BR><FONT=20
  face=3DArial size=3D2>&nbsp; &lt;property=20
  file=3D"./properties/WMM_Login.properties"/&gt;</FONT> <BR><FONT =
face=3DArial=20
  size=3D2>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;WMMTaskdef;</FONT> =

  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=3DArial =
size=3D2>&lt;ant=20
  antfile=3D"./common/WMM_Prepare.xml" /&gt;</FONT>=20
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=3DArial=20
  size=3D2>&lt;target name=3D"WMM_Main"&gt;</FONT>=20
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=3DArial=20
  size=3D2>&lt;testSpec name=3D"open the WMM_Main page"&gt;&nbsp;&nbsp;=20
  </FONT><BR><FONT face=3DArial size=3D2>&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;WMMConfig;</FONT> =
<BR><FONT=20
  face=3DArial size=3D2>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;steps&gt;</FONT>=20
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=3DArial=20
  size=3D2>&amp;WMMOpenLoginPage;</FONT> <BR><FONT face=3DArial =
size=3D2>&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- logs into=20
  WebMM--&gt;</FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=3DArial=20
  size=3D2>&lt;setinputfield name=3D"txtLoginForm" =
value=3D"${szLoginName}"&nbsp;=20
  description=3D"Login name or ID" /&gt;</FONT></P>
  <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=3DArial=20
  size=3D2>&lt;setinputfield name=3D"pwdPasswordForm" =
value=3D"${szLoginPassword}"=20
  description=3D"Login password" =
/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp; </FONT></P>
  <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=3DArial=20
  size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;clickbutton=20
  name=3D"btnLogin"&nbsp; escription=3D"press the login=20
  button"&nbsp;&nbsp;&nbsp;&nbsp; /&gt;</FONT>=20
</P><BR><BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_000A_01C61108.B332CFA0--