[Webtest] still have problems with click button

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


<html><div style='background-color:'><P>Ok. buttons should be inside forms, i tried that but they didnt work as well.<BR>this is my full code, not working. (cant find the button)<BR>---------------------<BR>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; &lt;clickbutton label="Save" stepid="Click the Save button"/&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;</P>
<P><BR>---------------------------<BR>html:</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" </P>
<P>marginwidth="0" marginheight="0"&gt;<BR>&nbsp;&lt;form&gt;<BR>&nbsp;&nbsp; &lt;input type="button" value="Save" /&gt;<BR>&nbsp;&lt;/form&gt;<BR>&lt;/body&gt;<BR>&lt;/html&gt;</P>
<P>--------------------------<BR>result:</P>
<P>D:\&gt;ant -buildfile test.xml<BR>Buildfile: test.xml</P>
<P>main:</P>
<P>BUILD FAILED<BR>Test step clickbutton named "Click the Save button" failed with message </P>
<P>"Button<BR>with name &lt;&lt;not specified&gt;&gt; and value &lt;Save&gt; not found!"</P>
<P>Total time: 6 seconds</P>
<P><BR>--------------------<BR>PLOP!</P>
<P>can someone help or have a littele "working" example (html + xml) of clickbutton?<BR>thanks.</P>
<DIV></DIV><BR><BR><BR>
<DIV>
<P><STRONG>Allan Murphy M.</STRONG><BR>Ing.Informatico<BR></P></DIV>
<DIV></DIV></div><br clear=all><hr>The new <a href="http://g.msn.com/8HMBEN/2737??PS=">MSN 8:</a> smart spam protection and 2 months FREE* </html>