[Webtest] New to webtest, unable to recognize input fields

Ashok Chigullapally Ashok Chigullapally <ashokc@hotmail.com>
Mon, 14 May 2007 21:58:32 +0000


--_55452b05-6b90-4124-885a-a91ef4e4351d_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I am trying to automate the login page to start for the following website :=
https://www.network.comFor some reason input fields are not recognized.Foll=
owing is my script. I will highly appreciate for your help.----------------=
---<project name=3D"SimpleTest" basedir=3D"." default=3D"main">   <property=
 name=3D"webtest.home" location=3D"/export/home/sgqa/webtest" />   <import =
file=3D"${webtest.home}/lib/taskdef.xml"/>   <target name=3D"main">        =
  <webtest name=3D"LoginTest">                 <config                     =
    saveresponse=3D"true"                         resultpath=3D"/tmp/result=
s"                         showhtmlparseroutput=3D"true"                   =
      host=3D"network.com"                         port=3D"443"            =
 protocol=3D"https" />         <steps>                         <invoke     =
                      description=3D"Load Login Page"                      =
     url=3D"/GridPortal/GridPortal/StartAction.do?aceActionName=3DAceSpecif=
icInitializeOnly" />             <verifyTitle                           des=
cription=3D"We should see Welcome to Sun Grid"               text=3D"Sun Gr=
id" />             <verifyText description=3D"Verify the Welcome to Sun Gri=
d"                           text=3D"Enter" />             <selectForm name=
=3D"GridPortal_LandingForm" />             <verifyInputField name=3D"usrNm"=
 formName=3D"GridPortal_LandingForm" value=3D"" />         </steps>      </=
webtest>    </target></project>----------------------Following is the scree=
n output when I am executing the test case :[selectForm]  INFO (com.canoo.w=
ebtest.engine.WebClientContext) - Current form set to (action=3D/GridPortal=
/GridPortal/LandingAction.do;jsessionid=3DF9888A61AA614739A126A88302E7E53D)=
[verifyInputField]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: =
verifyInputField (5/5)[verifyInputField]  INFO (com.canoo.webtest.steps.Ste=
p) - Running with: Canoo Webtest: R_1551.[verifyInputField]  INFO (com.cano=
o.webtest.steps.Step) - Exception thrown from this class: com.canoo.webtest=
.engine.StepFailedException[verifyInputField]  INFO (com.canoo.webtest.step=
s.Step) - Message was: No suitable form found having field named "usrNm" IN=
FO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest: R_1551. IN=
FO (com.canoo.webtest.steps.Step) - Exception thrown from this class: com.c=
anoo.webtest.engine.StepFailedException INFO (com.canoo.webtest.steps.Step)=
 - Message was: No suitable form found having field named "usrNm" INFO (com=
.canoo.webtest.ant.WebtestTask) - Finished executing webtest "LoginTest" (/=
export/home/sgqa/webtest/practice/SimpleTest.xml:6: )BUILD FAILED/export/ho=
me/sgqa/webtest/practice/SimpleTest.xml:6: Canoo Webtest: R_1551.Test faile=
d.Test step steps (/export/home/sgqa/webtest/practice/SimpleTest.xml:14: ) =
null failed with message "No suitable form found having field named "usrNm"=
"Total time: 20 secondsThanksAshok
_________________________________________________________________
Create the ultimate e-mail address book. Import your contacts to Windows Li=
ve Hotmail.
www.windowslive-hotmail.com/learnmore/managemail2.html?locale=3Den-us&ocid=
=3DTXT_TAGLM_HMWL_reten_impcont_0507=

--_55452b05-6b90-4124-885a-a91ef4e4351d_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><div style=3D"text-align: left;">I am trying to automate the login pa=
ge to start for the following website :<br><br>https://www.network.com<br><=
br>For some reason input fields are not recognized.<br><br>Following is my =
script. I will highly appreciate for your help.<br><br>-------------------<=
br>&lt;project name=3D"SimpleTest" basedir=3D"." default=3D"main"&gt;<br>&n=
bsp;&nbsp; &lt;property name=3D"webtest.home" location=3D"/export/home/sgqa=
/webtest" /&gt;<br>&nbsp;&nbsp; &lt;import file=3D"${webtest.home}/lib/task=
def.xml"/&gt;<br><br>&nbsp;&nbsp; &lt;target name=3D"main"&gt;<br>&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;webtest name=3D"LoginTest=
"&gt;<br>&nbsp;&n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p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &=
lt;steps&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp; &lt;invoke<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; description=3D"Load Login Page"<br>&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; u=
rl=3D"/GridPortal/GridPortal/StartAction.do?aceActionName=3DAceSpecificInit=
ializeOnly" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp; &lt;verifyTitle<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; description=3D"We should see W=
elcome to Sun Grid"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text=3D"Sun Grid" /&gt;<br>&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;verifyText de=
scription=3D"Verify the Welcome to Sun Grid"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text=3D"Enter" /&gt;=
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
; &lt;selectForm name=3D"GridPortal_LandingForm" /&gt;<br>&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;verifyInputFiel=
d name=3D"usrNm" formName=3D"GridPortal_LandingForm" value=3D"" /&gt;<br>&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/steps&gt;<br>&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp; &lt;/webtest&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/target&gt;=
<br>&lt;/project&gt;<br>----------------------<br><br><br>Following is the =
screen output when I am executing the test case :<br><br>[selectForm]&nbsp;=
 INFO (com.canoo.webtest.engine.WebClientContext) - Current form set to (ac=
tion=3D/GridPortal/GridPortal/LandingAction.do;jsessionid=3DF9888A61AA61473=
9A126A88302E7E53D)<br>[verifyInputField]&nbsp; INFO (com.canoo.webtest.step=
s.Step) - &gt;&gt;&gt;&gt; Start Step: verifyInputField (5/5)<br>[verifyInp=
utField]&nbsp; INFO (com.canoo.webtest.steps.Step) - Running with: Canoo We=
btest: R_1551.<br>[verifyInputField]&nbsp; INFO (com.canoo.webtest.steps.St=
ep) - Exception thrown from this class: com.canoo.webtest.engine.StepFailed=
Exception<br>[verifyInputField]&nbsp; INFO (com.canoo.webtest.steps.Step) -=
 Message was: No suitable form found having field named "usrNm"<br>&nbsp;IN=
FO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest: R_1551.<br=
>&nbsp;INFO (com.canoo.webtest.steps.Step) - Exception thrown from this cla=
ss: com.canoo.webtest.engine.StepFailedException<br>&nbsp;INFO (com.canoo.w=
ebtest.steps.Step) - Message was: No suitable form found having field named=
 "usrNm"<br>&nbsp;INFO (com.canoo.webtest.ant.WebtestTask) - Finished execu=
ting webtest "LoginTest" (/export/home/sgqa/webtest/practice/SimpleTest.xml=
:6: )<br><br>BUILD FAILED<br>/export/home/sgqa/webtest/practice/SimpleTest.=
xml:6: Canoo Webtest: R_1551.<br>Test failed.<br>Test step steps (/export/h=
ome/sgqa/webtest/practice/SimpleTest.xml:14: ) null failed with message "No=
 suitable form found having field named "usrNm""<br><br>Total time: 20 seco=
nds<br><br><br><br><br>Thanks<br>Ashok<br><br><br><br></div><br /><hr />Add=
 some color. Personalize your inbox with your favorite colors. <a href=3D'w=
ww.windowslive-hotmail.com/learnmore/personalize.html?locale=3Den-us&ocid=
=3DRMT_TAGLM_HMWL_reten_addcolor_0507' target=3D'_new'>Try it!</a></body>
</html>=

--_55452b05-6b90-4124-885a-a91ef4e4351d_--