[Webtest] (no subject)

Allan Murphy webtest@lists.canoo.com
Thu, 17 Jul 2003 15:14:52 -0400


<html><div style='background-color:'><DIV>
<P><BR><BR></P>
<DIV>
<DIV></DIV>
<P>Hi, Im new to CanooWT and i think it would be awesome if it really worked :(</P>
<P>because i have tried several days to get one single example working and nothing.</P>
<P>it seems that it cant find buttons, i check the output page and its ok, but the test i built doesnt run.</P>
<P>HELP!</P>
<P>html code:test.htm</P>
<P>----------------------</P>
<P>&lt;html&gt;<BR>&lt;head&gt;<BR>&lt;title&gt;no title&lt;/title&gt;<BR>&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;<BR>&lt;/head&gt;<BR>&lt;body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"&gt;</P>
<P>&nbsp;&nbsp; &lt;button type="submit" name="1" /&gt;</P>
<P>&lt;/body&gt;<BR>&lt;/html&gt;<BR>----------------------------</P>
<P>xml code: test.xml</P>
<P>&lt;project name="SimpleTest" basedir="." default="main"&gt;</P>
<P>&nbsp; &lt;property name="webtest.home" value="d:\webtest"/&gt;</P>
<P>&nbsp;&nbsp; &lt;taskdef file="${webtest.home}/webtestTaskdefs.properties"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;classpath&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;fileset dir="${webtest.home}" includes="**/lib/*.jar"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/classpath&gt;<BR>&nbsp;&nbsp; &lt;/taskdef&gt;</P>
<P>&nbsp;&nbsp; &lt;target name="main"&gt;</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;testSpec name="myTest"&gt;</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;config<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; host="localhost"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; port="80"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protocol="http"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; basepath=""<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; showhtmlparseroutput="true" <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; saveresponse="true" <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; resultpath="/tmp/results" /&gt;</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;steps&gt;</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;invoke stepid="get Login Page" url="test.htm /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;clickbutton stepid="Submit the simple form" name="1" /&gt;</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/steps&gt;</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/testSpec&gt;<BR>&nbsp;&nbsp; &lt;/target&gt;<BR>&lt;/project&gt;<BR>---------------------------------</P>
<P>when i run this i get:</P>
<P>D:\&gt;ant -buildfile test.xml<BR>Buildfile: test.xml</P>
<P>main:</P>
<P>BUILD FAILED<BR>Test step clickbutton named "Submit the simple form" failed with message "Button&nbsp;with name &lt;1&gt; and value &lt;&lt;not specified&gt;&gt; not found!"</P>
<P>Total time: 3 seconds</P>
<P>&nbsp;</P>
<P>please help!!!!!</P>
<P>Thanks.</P>
<P><STRONG>Allan Murphy M.</STRONG><BR>Informatics Eng.<BR>Chile</P></DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV></div><br clear=all><hr>MSN 8 helps <a href="http://g.msn.com/8HMBEN/2743??PS=">ELIMINATE E-MAIL VIRUSES. </a> Get 2 months FREE*.</html>