[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><project name=3D"SimpleTest" basedir=3D"." default=3D"main"><br>&n=
bsp; <property name=3D"webtest.home" location=3D"/export/home/sgqa=
/webtest" /><br> <import file=3D"${webtest.home}/lib/task=
def.xml"/><br><br> <target name=3D"main"><br> &nb=
sp; <webtest name=3D"LoginTest=
"><br> =
<config<br> =
&nb=
sp; saveresponse=3D"true"<br> &nbs=
p; &=
nbsp; resultpath=3D"/=
tmp/results"<br>  =
; &n=
bsp; showhtmlparseroutput=3D"true"<br> &=
nbsp; &nbs=
p; host=3D"network.com"<br> =
&nb=
sp; port=3D"443"<br>&=
nbsp; pro=
tocol=3D"https" /><br> &=
lt;steps><br>  =
; &n=
bsp; <invoke<br> &n=
bsp;  =
; description=3D"Load Login Page"<br> &n=
bsp;  =
; u=
rl=3D"/GridPortal/GridPortal/StartAction.do?aceActionName=3DAceSpecificInit=
ializeOnly" /><br> =
<verifyTitle<br> &=
nbsp; &nbs=
p; description=3D"We should see W=
elcome to Sun Grid"<br> &nbs=
p; text=3D"Sun Grid" /><br> &nb=
sp; <verifyText de=
scription=3D"Verify the Welcome to Sun Grid"<br> &nb=
sp; =
text=3D"Enter" />=
<br>  =
; <selectForm name=3D"GridPortal_LandingForm" /><br>  =
; <verifyInputFiel=
d name=3D"usrNm" formName=3D"GridPortal_LandingForm" value=3D"" /><br>&n=
bsp; </steps><br> &nbs=
p; </webtest><br> </target>=
<br></project><br>----------------------<br><br><br>Following is the =
screen output when I am executing the test case :<br><br>[selectForm] =
INFO (com.canoo.webtest.engine.WebClientContext) - Current form set to (ac=
tion=3D/GridPortal/GridPortal/LandingAction.do;jsessionid=3DF9888A61AA61473=
9A126A88302E7E53D)<br>[verifyInputField] INFO (com.canoo.webtest.step=
s.Step) - >>>> Start Step: verifyInputField (5/5)<br>[verifyInp=
utField] INFO (com.canoo.webtest.steps.Step) - Running with: Canoo We=
btest: R_1551.<br>[verifyInputField] INFO (com.canoo.webtest.steps.St=
ep) - Exception thrown from this class: com.canoo.webtest.engine.StepFailed=
Exception<br>[verifyInputField] INFO (com.canoo.webtest.steps.Step) -=
Message was: No suitable form found having field named "usrNm"<br> IN=
FO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest: R_1551.<br=
> INFO (com.canoo.webtest.steps.Step) - Exception thrown from this cla=
ss: com.canoo.webtest.engine.StepFailedException<br> INFO (com.canoo.w=
ebtest.steps.Step) - Message was: No suitable form found having field named=
"usrNm"<br> 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_--