[Webtest] clickbutton doesnt work
Raible, Matt
webtest@lists.canoo.com
Thu, 17 Jul 2003 13:19:17 -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_01C34C98.50C71470
Content-Type: text/plain;
charset="iso-8859-1"
Change your button to <input type="button"> - I don't believe WT supports
<buttons>.
-----Original Message-----
From: Allan Murphy [mailto:allanmurphy77@hotmail.com]
Sent: Thursday, July 17, 2003 1:15 PM
To: webtest@lists.canoo.com
Subject: [Webtest] clickbutton doesnt work
Hi, Im new to CanooWT and i think it would be awesome if it really worked :(
because i have tried several days to get one single example working and
nothing.
it seems that it cant find buttons, i check the output page and its ok, but
the test i built doesnt run.
HELP!
html code:test.htm
----------------------
<html>
<head>
<title>no title</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0"
marginwidth="0" marginheight="0">
<button type="submit" name="1" />
</body>
</html>
----------------------------
xml code: test.xml
<project name="SimpleTest" basedir="." default="main">
<property name="webtest.home" value="d:\webtest"/>
<taskdef file="${webtest.home}/webtestTaskdefs.properties">
<classpath>
<fileset dir="${webtest.home}" includes="**/lib/*.jar"/>
</classpath>
</taskdef>
<target name="main">
<testSpec name="myTest">
<config
host="localhost"
port="80"
protocol="http"
basepath=""
showhtmlparseroutput="true"
saveresponse="true"
resultpath="/tmp/results" />
<steps>
<invoke stepid="get Login Page" url="test.htm />
<clickbutton stepid="Submit the simple form" name="1" />
</steps>
</testSpec>
</target>
</project>
---------------------------------
when i run this i get:
D:\>ant -buildfile test.xml
Buildfile: test.xml
main:
BUILD FAILED
Test step clickbutton named "Submit the simple form" failed with message
"Button with name <1> and value <<not specified>> not found!"
Total time: 3 seconds
please help!!!!!
Thanks.
Allan Murphy M.
Informatics Eng.
Chile
_____
MSN 8 with e-mail virus protection <http://g.msn.com/8HMBEN/2740??PS=>
service: 2 months FREE* _______________________________________________
WebTest mailing list WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest
------_=_NextPart_001_01C34C98.50C71470
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=125582119-17072003><FONT color=#0000ff size=2>Change your
button to <input type="button"> - I don't believe WT supports
<buttons>.</FONT></SPAN></DIV>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Allan Murphy
[mailto:allanmurphy77@hotmail.com]<BR><B>Sent:</B> Thursday, July 17, 2003
1:15 PM<BR><B>To:</B> webtest@lists.canoo.com<BR><B>Subject:</B> [Webtest]
clickbutton doesnt work<BR><BR></FONT></DIV>
<DIV>
<DIV>
<P><BR><BR></P>
<DIV>
<DIV></DIV>
<P><BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV></DIV>
<P>Hi, Im new to CanooWT and i think it would be awesome if it really worked
:(</P>
<DIV></DIV>
<P>because i have tried several days to get one single example working and
nothing.</P>
<DIV></DIV>
<P>it seems that it cant find buttons, i check the output page and its ok, but
the test i built doesnt run.</P>
<DIV></DIV>
<P>HELP!</P>
<DIV></DIV>
<P>html code:test.htm</P>
<DIV></DIV>
<P>----------------------</P>
<DIV></DIV>
<P><html><BR><head><BR><title>no
title</title><BR><meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"><BR></head><BR><body bgcolor="#FFFFFF"
text="#000000" leftmargin="0" topmargin="0" marginwidth="0"
marginheight="0"></P>
<DIV></DIV>
<P> <button type="submit" name="1" /></P>
<DIV></DIV>
<P></body><BR></html><BR>----------------------------</P>
<DIV></DIV>
<P>xml code: test.xml</P>
<DIV></DIV>
<P><project name="SimpleTest" basedir="." default="main"></P>
<DIV></DIV>
<P> <property name="webtest.home" value="d:\webtest"/></P>
<DIV></DIV>
<P> <taskdef
file="${webtest.home}/webtestTaskdefs.properties"><BR>
<classpath><BR>
<fileset dir="${webtest.home}"
includes="**/lib/*.jar"/><BR>
</classpath><BR> </taskdef></P>
<DIV></DIV>
<P> <target name="main"></P>
<DIV></DIV>
<P> <testSpec name="myTest"></P>
<DIV></DIV>
<P>
<config<BR>
host="localhost"<BR>
port="80"<BR>
protocol="http"<BR>
basepath=""<BR>
showhtmlparseroutput="true"
<BR>
saveresponse="true"
<BR>
resultpath="/tmp/results" /></P>
<DIV></DIV>
<P> <steps></P>
<DIV></DIV>
<P>
<invoke stepid="get Login Page" url="test.htm
/><BR>
<BR>
<BR>
<clickbutton stepid="Submit the simple form" name="1" /></P>
<DIV></DIV>
<P> </steps></P>
<DIV></DIV>
<P> </testSpec><BR>
</target><BR></project><BR>---------------------------------</P>
<DIV></DIV>
<P>when i run this i get:</P>
<DIV></DIV>
<P>D:\>ant -buildfile test.xml<BR>Buildfile: test.xml</P>
<DIV></DIV>
<P>main:</P>
<DIV></DIV>
<P>BUILD FAILED<BR>Test step clickbutton named "Submit the simple form" failed
with message "Button with name <1> and value <<not
specified>> not found!"</P>
<DIV></DIV>
<P>Total time: 3 seconds</P>
<DIV></DIV>
<P> </P>
<DIV></DIV>
<P>please help!!!!!</P>
<DIV></DIV>
<P>Thanks.</P>
<DIV></DIV>
<P><STRONG>Allan Murphy M.</STRONG><BR>Informatics Eng.<BR>Chile</P>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV></DIV><BR clear=all>
<HR>
MSN 8 with <A href="http://g.msn.com/8HMBEN/2740??PS=">e-mail virus protection
service: </A>2 months FREE* _______________________________________________
WebTest mailing list WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest</BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C34C98.50C71470--