[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 &lt;input type="button"&gt; - I don't believe WT supports 
&lt;buttons&gt;.</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>&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>
  <DIV></DIV>
  <P>&nbsp;&nbsp; &lt;button type="submit" name="1" /&gt;</P>
  <DIV></DIV>
  <P>&lt;/body&gt;<BR>&lt;/html&gt;<BR>----------------------------</P>
  <DIV></DIV>
  <P>xml code: test.xml</P>
  <DIV></DIV>
  <P>&lt;project name="SimpleTest" basedir="." default="main"&gt;</P>
  <DIV></DIV>
  <P>&nbsp; &lt;property name="webtest.home" value="d:\webtest"/&gt;</P>
  <DIV></DIV>
  <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>
  <DIV></DIV>
  <P>&nbsp;&nbsp; &lt;target name="main"&gt;</P>
  <DIV></DIV>
  <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;testSpec name="myTest"&gt;</P>
  <DIV></DIV>
  <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>
  <DIV></DIV>
  <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;steps&gt;</P>
  <DIV></DIV>
  <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>
  <DIV></DIV>
  <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/steps&gt;</P>
  <DIV></DIV>
  <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/testSpec&gt;<BR>&nbsp;&nbsp; 
  &lt;/target&gt;<BR>&lt;/project&gt;<BR>---------------------------------</P>
  <DIV></DIV>
  <P>when i run this i get:</P>
  <DIV></DIV>
  <P>D:\&gt;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&nbsp;with name &lt;1&gt; and value &lt;&lt;not 
  specified&gt;&gt; not found!"</P>
  <DIV></DIV>
  <P>Total time: 3 seconds</P>
  <DIV></DIV>
  <P>&nbsp;</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--