[Webtest] Login problems
Paatsch, Bernd
webtest@lists.canoo.com
Tue, 3 Jan 2006 18:24:02 -0600
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C610C5.2A065DC9
Content-Type: text/plain
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
<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: <input type="text" name="txtLoginForm" title="Enter user
ID" maxlength="50" size="15" /></p>
<p>Security code: <input type="password" name="pwdPasswordForm"
title="Enter security code" maxlength="50" size="15" /></p>
<p>Language:
<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_001_01C610C5.2A065DC9
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2658.2">
<TITLE>Login problems</TITLE>
</HEAD>
<BODY>
<P><FONT FACE=3D"Arial">Hello,</FONT>
</P>
<P><FONT FACE=3D"Arial">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."</FONT></P>
<P><FONT FACE=3D"Arial">Could anybody tell me what step I am missing =
here?</FONT>
</P>
<P><FONT FACE=3D"Arial">HTML from site I like to login:</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New"><!DOCTYPE html PUBLIC =
"-//W3C//DTD XHTML 1.0 Transitional//EN" "</FONT><A =
HREF=3D"http://www.w3.org/TR.html1/DTD.html1-transitional.dtd"><U><FONT =
COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Courier =
New">http://www.w3.org/TR.html1/DTD.html1-transitional.dtd</FONT></U></A=
><FONT SIZE=3D2 FACE=3D"Courier New">"><BR>
<html xmlns=3D"<A HREF=3D"http://www.w3.org/1999.html" =
TARGET=3D"_blank">http://www.w3.org/1999.html</A>" =
xml:lang=3D"en" lang=3D"en"><BR>
<head</FONT><FONT SIZE=3D2 FACE=3D"Courier New">></FONT><BR>
<FONT SIZE=3D2 FACE=3D"Courier New"><script =
type=3D"text/javascript" =
src=3D"../scripts/styleswitcher.js"></script><BR>
<script type=3D"text/javascript" =
src=3D"../scripts/global.js"></script><BR>
</head><body id=3D"login"><BR>
<BR>
<div id=3D"login_bottom"><BR>
<form method=3D"post" action=3D'/mm/status.php'><BR>
<p>User ID:&nbsp;<input type=3D"text" =
name=3D"txtLoginForm" title=3D"Enter user ID" =
maxlength=3D"50" size=3D"15" /></p><BR>
<p>Security code:&nbsp;<input type=3D"password" =
name=3D"pwdPasswordForm" title=3D"Enter security =
code" maxlength=3D"50" size=3D"15" =
/></p><BR>
<p>Language:&nbsp;<BR>
<select id=3D"sltDefLanguage" =
name=3D"sltDefLanguage" title=3D"Language" =
><option value=3D"de" =
>German</option><option value=3D"ed" >Madrid =
Spanish</option><option value=3D"fr" =
>French</option><option value=3D"it" =
>Italian</option><option value=3D"nl" =
>Dutch</option><option value=3D"us" =
selected=3D"selected" >United States =
English</option></select></p></FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New"><p><input =
id=3D"login_button" type=3D"submit" =
value=3D"Login" name=3D"btnLogin" =
title=3D"Logon to Mailbox Manager" /></p><BR>
<p>This web session has expired. Please log in again to =
continue.</p><BR>
<p><a href=3D"#" title=3D"Click to load a guide =
that will help you get started" =
onclick=3D"window.open('/help/quickstart.php','Quickstart','width=3D=
600,height=3D400,resizable=3Dyes,scrollbars=3Dyes')">Launch =
quick start guide</a></p><BR>
</form><BR>
</div><BR>
<script type=3D"text/javascript" =
src=3D"/scripts/index.js"></script><BR>
</body></html></FONT>
</P>
<P><FONT FACE=3D"Arial">WebTest-code to login:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"><!DOCTYPE project =
=
=
=
=
=
SYSTEM =
=
"./common/WebTest.dtd" [</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> =
<!ENTITY =
WMMConfig =
=
=
=
SYSTEM =
=
"./common/WMM_Config.xml"></FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> =
<!ENTITY =
WMMTaskdef =
=
=
=
SYSTEM =
=
"./common/WMM_Taskdef.xml"></FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> <!ENTITY =
=
WMMOpenLoginPage =
=
=
=
SYSTEM =
"./common/WMM_OpenLoginPage.xml"></FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">]></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"><project =
name=3D"WMM_Menu" default=3D"WMM_Main"></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> <property =
file=3D"./properties/WMM_OpenLoginPage.properties"/></FONT>=
<BR><FONT SIZE=3D2 FACE=3D"Arial"> <property =
file=3D"./properties/WMM_Login.properties"/></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
&WMMTaskdef;</FONT>
<BR> <FONT SIZE=3D2 =
FACE=3D"Arial"><ant antfile=3D"./common/WMM_Prepare.xml" =
/></FONT>
<BR> =20
<BR> =20
<BR> <FONT SIZE=3D2 =
FACE=3D"Arial"><target name=3D"WMM_Main"></FONT>
<BR> =
<FONT SIZE=3D2 =
FACE=3D"Arial"><testSpec name=3D"open the WMM_Main =
page"> </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
=
&WMMConfig;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
=
<steps></FONT>
<BR> =
=
<FONT SIZE=3D2 =
FACE=3D"Arial">&WMMOpenLoginPage;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
=
<!-- logs into =
WebMM--></FONT>
<BR> =
=
=
<FONT SIZE=3D2 =
FACE=3D"Arial"><setinputfield name=3D"txtLoginForm" =
value=3D"${szLoginName}" description=3D"Login name =
or ID" /></FONT></P>
<P> =
=
=
<FONT SIZE=3D2 =
FACE=3D"Arial"><setinputfield name=3D"pwdPasswordForm" =
value=3D"${szLoginPassword}" description=3D"Login =
password" /> =
</FONT></P>
<P> =
 =
; <FONT SIZE=3D2 FACE=3D"Arial"> =
<clickbutton name=3D"btnLogin" =
escription=3D"press the login button" =
/></FONT>
</P>
<BR>
<BR>
</BODY>
</HTML>
------_=_NextPart_001_01C610C5.2A065DC9--