[Webtest] Canoo v1.6 build 544 (httpunit 1.6) Javascript Support?

webtest@lists.canoo.com webtest@lists.canoo.com
Mon, 13 Dec 2004 10:55:43 -0800


This is a multipart message in MIME format.
--=_alternative 0067FAD788256F69_=
Content-Type: text/plain;
 charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi, I using Canoo v1.6 build 544 with httpunit 1.6, and I'm trying to use 
the 'clickbutton' test step to click a button that uses the 'onClick' 
javascript. I've been unable to use clickbutton to locate and submit the 
form. Can anyone point out what I'm doing wrong? Does Canoo need to be 
configured for javascript use?

Thanks,
Richard

-------------
Html Src:
-------------
<form method="post" action="" name="MemberUserAgreementForm">

  <input type="Hidden" name="USER_ACCEPTANCE_NAME_PARAMETER_KEY" 
value="MEMBER-MYCO">
  <input type="Hidden" name="USER_ACCEPTANCE_VERSION_PARAMETER_KEY" 
value="1">
  <input type="Hidden" name="USER_ACCEPTANCE_RELEASE_PARAMETER_KEY" 
value="1">

  <input type="image" src="../images/buttonAgree.gif" alt="I Agree" 
border="0" 
 
onclick="form.action='https://ros-uat.myco.com/member/or/register.do?action=acceptAgreement'">

                &nbsp;&nbsp;

  <input type="image" src="../images/buttonDisagree.gif" alt="I Disagree" 
border="0" 
 
onClick="form.action='register?jadeAction=USER_AGREEMENT_REJECTED_ACTION'">
</form>

---------------
Test Step:
---------------
<clickbutton stepid="Click 'Agree' button"
                         label="I Agree">
      <form name="MemberUserAgreementForm" />
</clickbutton>

-----------------------
Error Message:
-----------------------

com.canoo.webtest.engine.StepFailedException: Button with name <<not 
specified>> 
and value <I Agree> not found!, Step: ClickButton at file:C:/Development/sandbox/canoo_1.6-544/tests/rosm/bvt/Register.xml:36: with (label="I Agree", step Id="Click &apos;Agree&apos; button", 
stepType="clickbutton") 
==============================================================================
IMPORTANT NOTICE: This communication, including any attachment, contains information that may be confidential or privileged, and is intended solely for the entity or individual to whom it is addressed.  If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message is strictly prohibited.  Nothing in this email, including any attachment, is intended to be a legally binding signature.
==============================================================================

--=_alternative 0067FAD788256F69_=
Content-Type: text/html;
 charset=us-ascii
Content-Transfer-Encoding: 7bit


<br><font size=2 face="sans-serif">Hi, I using Canoo v1.6 build 544 with httpunit 1.6, and I'm trying to use the 'clickbutton' test step to click a button that uses the 'onClick' javascript. I've been unable to use clickbutton to locate and submit the form. Can anyone point out what I'm doing wrong? Does Canoo need to be configured for javascript use?</font>
<br>
<br><font size=2 face="sans-serif">Thanks,</font>
<br><font size=2 face="sans-serif">Richard</font>
<br>
<br><font size=2 face="sans-serif">-------------</font>
<br><font size=2 face="sans-serif">Html Src:</font>
<br><font size=2 face="sans-serif">-------------</font>
<br><font size=2 face="sans-serif">&lt;form method=&quot;post&quot; action=&quot;&quot; name=&quot;MemberUserAgreementForm&quot;&gt;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &lt;input type=&quot;Hidden&quot; name=&quot;USER_ACCEPTANCE_NAME_PARAMETER_KEY&quot; value=&quot;MEMBER-MYCO&quot;&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &lt;input type=&quot;Hidden&quot; name=&quot;USER_ACCEPTANCE_VERSION_PARAMETER_KEY&quot; value=&quot;1&quot;&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &lt;input type=&quot;Hidden&quot; name=&quot;USER_ACCEPTANCE_RELEASE_PARAMETER_KEY&quot; value=&quot;1&quot;&gt;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &lt;input type=&quot;image&quot; src=&quot;../images/buttonAgree.gif&quot; alt=&quot;I Agree&quot; border=&quot;0&quot; &nbsp;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;onclick=&quot;form.action='https://ros-uat.myco.com/member/or/register.do?action=acceptAgreement'&quot;&gt;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp;nbsp;&amp;nbsp;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &lt;input type=&quot;image&quot; src=&quot;../images/buttonDisagree.gif&quot; alt=&quot;I Disagree&quot; border=&quot;0&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onClick=&quot;form.action='register?jadeAction=USER_AGREEMENT_REJECTED_ACTION'&quot;&gt;</font>
<br><font size=2 face="sans-serif">&lt;/form&gt;</font>
<br>
<br><font size=2 face="sans-serif">---------------</font>
<br><font size=2 face="sans-serif">Test Step:</font>
<br><font size=2 face="sans-serif">---------------</font>
<br><font size=2 face="sans-serif">&lt;clickbutton stepid=&quot;Click 'Agree' button&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;label=&quot;I Agree&quot;&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &lt;form name=&quot;MemberUserAgreementForm&quot; /&gt;</font>
<br><font size=2 face="sans-serif">&lt;/clickbutton&gt;</font>
<br>
<br><font size=2 face="sans-serif">-----------------------</font>
<br><font size=2 face="sans-serif">Error Message:</font>
<br><font size=2 face="sans-serif">-----------------------</font>
<br>
<br><font size=2 face="sans-serif">com.canoo.webtest.engine.StepFailedException: Button with name &lt;&lt;not specified&gt;&gt; </font>
<br><font size=2 face="sans-serif">and value &lt;I Agree&gt; not found!, Step: ClickButton at file:C:/Development/sandbox/canoo_1.6-544/tests/rosm/bvt/Register.xml:36: with (label=&quot;I Agree&quot;, step Id=&quot;Click &amp;apos;Agree&amp;apos; button&quot;, stepType=&quot;clickbutton&quot;) </font>
<P>==============================================================================<br>
IMPORTANT NOTICE: This communication, including any attachment, contains information that may be confidential or privileged, and is intended solely for the entity or individual to whom it is addressed.  If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message is strictly prohibited.  Nothing in this email, including any attachment, is intended to be a legally binding signature.<br>
==============================================================================<br>
</P>
--=_alternative 0067FAD788256F69_=--