[Webtest] clickbutton doesnt work
Allan Murphy
webtest@lists.canoo.com
Thu, 17 Jul 2003 15:15:07 -0400
<html><div style='background-color:'><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*</html>