[Webtest] Help - input type=button

Roma Bhansali webtest@lists.canoo.com
Tue, 6 Apr 2004 11:04:24 -0700


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_01C41C01.9855EE90
Content-Type: text/plain;
	charset="iso-8859-1"

Hi Audra,
I am pretty new to Canoo but how much I know of, it is because you have a
javascript associated with the button. And it does not support the same. 
 
-Roma

-----Original Message-----
From: Audra Church [mailto:audra.church@fedex.com]
Sent: Tuesday, April 06, 2004 10:26 AM
To: 'webtest@lists.canoo.com'
Subject: [Webtest] Help - input type=button


I am having troubles with clicking my button. I have searched for examples
on the web but I can't seem to find one. Below you will find my velocity
code and my .xml file. I am receiving the following error. Please let me
know if you have any ideas why it is not working and what can be done to fix
it. 
Thanks! 
Audra 
  

[testSpec] java.lang.RuntimeException: No such property: action 
 [testSpec] at
com.meterware.httpunit.scripting.ScriptableDelegate.set(ScriptableDelegate.j
ava:98) 
 [testSpec] at
com.meterware.httpunit.WebForm$Scriptable.set(WebForm.java:604) 
 [testSpec] at
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.put(JavaScript
.java:265) 
 [testSpec] at
org.mozilla.javascript.ScriptableObject.putProperty(ScriptableObject.java:14
76) 
 [testSpec] at
org.mozilla.javascript.ScriptRuntime.setProp(ScriptRuntime.java:844) 
 [testSpec] at
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2056) 
 [testSpec] at
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2173) 
 [testSpec] at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:58)

 [testSpec] at
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.performEvent(J
avaScript.java:162) 
 [testSpec] at
com.meterware.httpunit.scripting.ScriptableDelegate.doEvent(ScriptableDelega
te.java:55) 
 [testSpec] at com.meterware.httpunit.Button.doOnClickEvent(Button.java:85) 
 [testSpec] at com.meterware.httpunit.Button.click(Button.java:68) 
 [testSpec] at
com.canoo.webtest.steps.request.ClickButton$1.call(ClickButton.java:120) 
 [testSpec] at
com.canoo.webtest.steps.request.Target.protectedGoto(Target.java:106) 
 [testSpec] at
com.canoo.webtest.steps.request.ClickButton.gotoTarget(ClickButton.java:110)

 [testSpec] at
com.canoo.webtest.steps.request.ClickButton.doExecute(ClickButton.java:103) 
 [testSpec] at com.canoo.webtest.steps.Step.execute(Step.java:99) 
 [testSpec] at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26) 
 [testSpec] at
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTask.ja
va:68) 
 [testSpec] at org.apache.tools.ant.Task.perform(Task.java:341) 
 [testSpec] at org.apache.tools.ant.Target.execute(Target.java:309) 
 [testSpec] at org.apache.tools.ant.Target.performTasks(Target.java:336) 
 [testSpec] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

 [testSpec] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397) 
 [testSpec] at org.apache.tools.ant.Task.perform(Task.java:341) 
 [testSpec] at org.apache.tools.ant.Target.execute(Target.java:309) 
 [testSpec] at org.apache.tools.ant.Target.performTasks(Target.java:336) 
 [testSpec] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

 [testSpec] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunn
er.java:381) 
 [testSpec] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRun
ner.java:166) 
 [testSpec] ERROR (Step.java:333) - Cannot handle unexpected exception in
step ClickButton at
file:C:/eclipse/workspace/SuppliesJ2ee/SuppliesWebApp/test/usecases/../modul
es/loginOrderQuery.xml:14:  with (label="Logon", stepId="Clicking the
button", stepType="clickbutton") 
 [testSpec] java.lang.RuntimeException: Event 'submitLogon()' failed:
java.lang.RuntimeException: No such property: action 
 [testSpec] at
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.handleScriptEx
ception(JavaScript.java:189) 
 [testSpec] at
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.performEvent(J
avaScript.java:165) 
 [testSpec] at
com.meterware.httpunit.scripting.ScriptableDelegate.doEvent(ScriptableDelega
te.java:55) 
 [testSpec] at com.meterware.httpunit.Button.doOnClickEvent(Button.java:85) 
 [testSpec] at com.meterware.httpunit.Button.click(Button.java:68) 
 [testSpec] at
com.canoo.webtest.steps.request.ClickButton$1.call(ClickButton.java:120) 
 [testSpec] at
com.canoo.webtest.steps.request.Target.protectedGoto(Target.java:106) 
 [testSpec] at
com.canoo.webtest.steps.request.ClickButton.gotoTarget(ClickButton.java:110)

 [testSpec] at
com.canoo.webtest.steps.request.ClickButton.doExecute(ClickButton.java:103) 
 [testSpec] at com.canoo.webtest.steps.Step.execute(Step.java:99) 
 [testSpec] at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26) 
 [testSpec] at
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTask.ja
va:68) 
 [testSpec] at org.apache.tools.ant.Task.perform(Task.java:341) 
 [testSpec] at org.apache.tools.ant.Target.execute(Target.java:309) 
 [testSpec] at org.apache.tools.ant.Target.performTasks(Target.java:336) 
 [testSpec] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

 [testSpec] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397) 
 [testSpec] at org.apache.tools.ant.Task.perform(Task.java:341) 
 [testSpec] at org.apache.tools.ant.Target.execute(Target.java:309) 
 [testSpec] at org.apache.tools.ant.Target.performTasks(Target.java:336) 
 [testSpec] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

 [testSpec] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunn
er.java:381) 
 [testSpec] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRun
ner.java:166) 
BUILD FAILED:
file:C:/eclipse/workspace/SuppliesJ2ee/SuppliesWebApp/test/usecases/main.xml
:18: Test failed. 
Exception raised: com.canoo.webtest.engine.StepExecutionException:
Unexpected exception caught: java.lang.RuntimeException: Event
'submitLogon()' failed: java.lang.RuntimeException: No such property:
action, Step: ClickButton at
file:C:/eclipse/workspace/SuppliesJ2ee/SuppliesWebApp/test/usecases/../modul
es/loginOrderQuery.xml:14:  with (label="Logon", stepId="Clicking the
button",
stepType="clickbutton")com.canoo.webtest.engine.StepExecutionException:
Unexpected exception caught: java.lang.RuntimeException: Event
'submitLogon()' failed: java.lang.RuntimeException: No such property:
action, Step: ClickButton at
file:C:/eclipse/workspace/SuppliesJ2ee/SuppliesWebApp/test/usecases/../modul
es/loginOrderQuery.xml:14:  with (label="Logon", stepId="Clicking the
button", stepType="clickbutton") 
 at com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:334) 
 at com.canoo.webtest.steps.request.Target.protectedGoto(Target.java:115) 
 at
com.canoo.webtest.steps.request.ClickButton.gotoTarget(ClickButton.java:110)

 at
com.canoo.webtest.steps.request.ClickButton.doExecute(ClickButton.java:103) 
 at com.canoo.webtest.steps.Step.execute(Step.java:99) 
 at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26) 
 at
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTask.ja
va:68) 
 at org.apache.tools.ant.Task.perform(Task.java:341) 
 at org.apache.tools.ant.Target.execute(Target.java:309) 
 at org.apache.tools.ant.Target.performTasks(Target.java:336) 
 at org.apache.tools.ant.Project.executeTarget(Project.java:1339) 
 at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397) 
 at org.apache.tools.ant.Task.perform(Task.java:341) 
 at org.apache.tools.ant.Target.execute(Target.java:309) 
 at org.apache.tools.ant.Target.performTasks(Target.java:336) 
 at org.apache.tools.ant.Project.executeTarget(Project.java:1339) 
 at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunn
er.java:381) 
 at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRun
ner.java:166) 
Total time: 2 seconds 
  


VELOCITY CODE::: 
<html> 
<head> 
 <title>Supplies Logon</title> 
    <link rel="stylesheet" type="text/css" href="supplies.css"
title="Default"> 
  
    <script language="javascript" src="stopMultiSubmit.js"></script> 
    <script language="javascript" src="placeFocus.js"></script> 
  
    <script language="javascript"> 
       function checkEnter(event) { 
       if (event.keyCode==13) { 
          document.LoginForm.action =
"/SuppliesWebApp/Logon.do?action=logon"; 
       document.LoginForm.submit(); 
          } 
       } 
  
       function submitLogon() { 
          document.LoginForm.action =
"/SuppliesWebApp/Logon.do?action=logon"; 
          document.LoginForm.submit(); 
       } 
    </script> 
</head> 


<body class="body" onload="placeFocus()"> 
  
   <!-- Header --> 
   #parse("headerLogon.vm") 
  
   <!-- Errors --> 
   #parse("errorMsg.vm") 
  
   <!-- Warnings --> 
   #parse("warningMsg.vm") 


   <!-- Status --> 
   #parse("statusMsg.vm") 


   <form name="LoginForm" method="POST" onSubmit="return
stopMultipleSubmit();"> 
   <input type="hidden" name="pageName" value="logon"> 


   <br> 
   <center> 
   <table border="0"> 
     <tr> 
       <td align="center"> 
         <h1 class="h5">Supplies System</h1> 
       </td> 
     </tr> 
     <tr> 
       <td align="center"><img alt='Supplies Logo'
src='images/suppliesLogon.jpg' width="430" height="270"></td> 
     </tr> 
     <tr> 
       <td align="center"> 
         <table width="100%" class="formTable" border="1" cellspacing="2"
cellpadding="5"> 
           <tr> 
             <th class="dataHeading" colspan="2">Supplies Login</th> 
           </tr> 
           <tr> 
             <td class="dataLabelRight">User: *</td> 
             <td class="formValue"><input type=text name=userId value=""
onKeyPress="checkEnter(event)"></td> 
           </tr> 
           <tr> 
             <td class="dataLabelRight">Password: *</td> 
             <td class="formValue"><input type=password name=password
value="" onKeyPress="checkEnter(event)"></td> 
           </tr> 
           <tr> 
             <td align="center" class="formButton"
colspan="2"><center><input type="button" value="Logon"
onClick="submitLogon()"><center></td> 
           </tr> 
         </table> 
       </td> 
     </tr> 
     <tr> 
       <td> 
         <p class="pageText"> 
           <i>Required fields are marked with a *</i> 
         </p> 
       </td> 
     </tr> 
   </table> 
   </form> 


   <!-- Page Footer --> 
   #parse("footer.vm") 
  
</body> 
</html> 


loginOrderQuery.xml::: 
<invoke 
 stepid="Get to the login page" 
 url="Logon.do?action=init"/> 
<setinputfield 
 stepid="Set user name" 
 name="userId" 
 value="joe" /> 
<setinputfield 
 stepid="Set password" 
 name="password" 
 value="xxxx" /> 
<clickbutton 
 stepid="Clicking the button" 
 label="Logon"/> 
<verifytitle 
 stepid="Order Query page should follow after Logon pressed" 
 text="Supplies Order Query" /> 
  


------_=_NextPart_001_01C41C01.9855EE90
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.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=796002418-06042004><FONT face=Arial color=#0000ff size=2>Hi 
Audra,</FONT></SPAN></DIV>
<DIV><SPAN class=796002418-06042004><FONT face=Arial color=#0000ff size=2>I 
am&nbsp;pretty new to Canoo but how much I know of, it is because you have a 
javascript associated with the button. And it does not support the same. 
</FONT></SPAN></DIV>
<DIV><SPAN class=796002418-06042004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=796002418-06042004><FONT face=Arial color=#0000ff 
size=2>-Roma</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Audra Church 
  [mailto:audra.church@fedex.com]<BR><B>Sent:</B> Tuesday, April 06, 2004 10:26 
  AM<BR><B>To:</B> 'webtest@lists.canoo.com'<BR><B>Subject:</B> [Webtest] Help - 
  input type=button<BR><BR></FONT></DIV>I am having troubles with clicking my 
  button. I have searched for examples on the web but I can't seem to find one. 
  Below you will find my velocity code and my .xml file. I am receiving the 
  following error. Please let me know if you have any ideas why it is not 
  working and what can be done to fix it. <BR>Thanks! <BR>Audra <BR>&nbsp; 
  <P><FONT size=-1>[testSpec] java.lang.RuntimeException: No such property: 
  action</FONT> <BR><FONT size=-1>&nbsp;[testSpec] at 
  com.meterware.httpunit.scripting.ScriptableDelegate.set(ScriptableDelegate.java:98)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  com.meterware.httpunit.WebForm$Scriptable.set(WebForm.java:604)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.put(JavaScript.java:265)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  org.mozilla.javascript.ScriptableObject.putProperty(ScriptableObject.java:1476)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  org.mozilla.javascript.ScriptRuntime.setProp(ScriptRuntime.java:844)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2056)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2173)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:58)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.performEvent(JavaScript.java:162)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  com.meterware.httpunit.scripting.ScriptableDelegate.doEvent(ScriptableDelegate.java:55)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  com.meterware.httpunit.Button.doOnClickEvent(Button.java:85)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  com.meterware.httpunit.Button.click(Button.java:68)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  com.canoo.webtest.steps.request.ClickButton$1.call(ClickButton.java:120)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  com.canoo.webtest.steps.request.Target.protectedGoto(Target.java:106)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  com.canoo.webtest.steps.request.ClickButton.gotoTarget(ClickButton.java:110)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  com.canoo.webtest.steps.request.ClickButton.doExecute(ClickButton.java:103)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  com.canoo.webtest.steps.Step.execute(Step.java:99)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTask.java:68)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  org.apache.tools.ant.Task.perform(Task.java:341)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  org.apache.tools.ant.Target.execute(Target.java:309)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  org.apache.tools.ant.Target.performTasks(Target.java:336)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  org.apache.tools.ant.Project.executeTarget(Project.java:1339)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  org.apache.tools.ant.Task.perform(Task.java:341)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  org.apache.tools.ant.Target.execute(Target.java:309)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  org.apache.tools.ant.Target.performTasks(Target.java:336)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  org.apache.tools.ant.Project.executeTarget(Project.java:1339)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:381)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:166)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] ERROR (Step.java:333) - Cannot handle 
  unexpected exception in step ClickButton at 
  file:C:/eclipse/workspace/SuppliesJ2ee/SuppliesWebApp/test/usecases/../modules/loginOrderQuery.xml:14:&nbsp; 
  with (label="Logon", stepId="Clicking the button", 
  stepType="clickbutton")</FONT> <BR><FONT size=-1>&nbsp;[testSpec] 
  java.lang.RuntimeException: Event 'submitLogon()' failed: 
  java.lang.RuntimeException: No such property: action</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.handleScriptException(JavaScript.java:189)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.performEvent(JavaScript.java:165)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  com.meterware.httpunit.scripting.ScriptableDelegate.doEvent(ScriptableDelegate.java:55)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  com.meterware.httpunit.Button.doOnClickEvent(Button.java:85)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  com.meterware.httpunit.Button.click(Button.java:68)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  com.canoo.webtest.steps.request.ClickButton$1.call(ClickButton.java:120)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  com.canoo.webtest.steps.request.Target.protectedGoto(Target.java:106)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  com.canoo.webtest.steps.request.ClickButton.gotoTarget(ClickButton.java:110)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  com.canoo.webtest.steps.request.ClickButton.doExecute(ClickButton.java:103)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  com.canoo.webtest.steps.Step.execute(Step.java:99)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTask.java:68)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  org.apache.tools.ant.Task.perform(Task.java:341)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  org.apache.tools.ant.Target.execute(Target.java:309)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  org.apache.tools.ant.Target.performTasks(Target.java:336)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  org.apache.tools.ant.Project.executeTarget(Project.java:1339)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  org.apache.tools.ant.Task.perform(Task.java:341)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  org.apache.tools.ant.Target.execute(Target.java:309)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  org.apache.tools.ant.Target.performTasks(Target.java:336)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  org.apache.tools.ant.Project.executeTarget(Project.java:1339)</FONT> <BR><FONT 
  size=-1>&nbsp;[testSpec] at 
  org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:381)</FONT> 
  <BR><FONT size=-1>&nbsp;[testSpec] at 
  org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:166)</FONT> 
  <BR><FONT size=-1>BUILD FAILED: 
  file:C:/eclipse/workspace/SuppliesJ2ee/SuppliesWebApp/test/usecases/main.xml:18: 
  Test failed.</FONT> <BR><FONT size=-1>Exception raised: 
  com.canoo.webtest.engine.StepExecutionException: Unexpected exception caught: 
  java.lang.RuntimeException: Event 'submitLogon()' failed: 
  java.lang.RuntimeException: No such property: action, Step: ClickButton at 
  file:C:/eclipse/workspace/SuppliesJ2ee/SuppliesWebApp/test/usecases/../modules/loginOrderQuery.xml:14:&nbsp; 
  with (label="Logon", stepId="Clicking the button", 
  stepType="clickbutton")com.canoo.webtest.engine.StepExecutionException: 
  Unexpected exception caught: java.lang.RuntimeException: Event 'submitLogon()' 
  failed: java.lang.RuntimeException: No such property: action, Step: 
  ClickButton at 
  file:C:/eclipse/workspace/SuppliesJ2ee/SuppliesWebApp/test/usecases/../modules/loginOrderQuery.xml:14:&nbsp; 
  with (label="Logon", stepId="Clicking the button", 
  stepType="clickbutton")</FONT> <BR><FONT size=-1>&nbsp;at 
  com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:334)</FONT> 
  <BR><FONT size=-1>&nbsp;at 
  com.canoo.webtest.steps.request.Target.protectedGoto(Target.java:115)</FONT> 
  <BR><FONT size=-1>&nbsp;at 
  com.canoo.webtest.steps.request.ClickButton.gotoTarget(ClickButton.java:110)</FONT> 
  <BR><FONT size=-1>&nbsp;at 
  com.canoo.webtest.steps.request.ClickButton.doExecute(ClickButton.java:103)</FONT> 
  <BR><FONT size=-1>&nbsp;at 
  com.canoo.webtest.steps.Step.execute(Step.java:99)</FONT> <BR><FONT 
  size=-1>&nbsp;at 
  com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26)</FONT> <BR><FONT 
  size=-1>&nbsp;at 
  com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTask.java:68)</FONT> 
  <BR><FONT size=-1>&nbsp;at 
  org.apache.tools.ant.Task.perform(Task.java:341)</FONT> <BR><FONT 
  size=-1>&nbsp;at org.apache.tools.ant.Target.execute(Target.java:309)</FONT> 
  <BR><FONT size=-1>&nbsp;at 
  org.apache.tools.ant.Target.performTasks(Target.java:336)</FONT> <BR><FONT 
  size=-1>&nbsp;at 
  org.apache.tools.ant.Project.executeTarget(Project.java:1339)</FONT> <BR><FONT 
  size=-1>&nbsp;at 
  org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)</FONT> <BR><FONT 
  size=-1>&nbsp;at org.apache.tools.ant.Task.perform(Task.java:341)</FONT> 
  <BR><FONT size=-1>&nbsp;at 
  org.apache.tools.ant.Target.execute(Target.java:309)</FONT> <BR><FONT 
  size=-1>&nbsp;at 
  org.apache.tools.ant.Target.performTasks(Target.java:336)</FONT> <BR><FONT 
  size=-1>&nbsp;at 
  org.apache.tools.ant.Project.executeTarget(Project.java:1339)</FONT> <BR><FONT 
  size=-1>&nbsp;at 
  org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:381)</FONT> 
  <BR><FONT size=-1>&nbsp;at 
  org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:166)</FONT> 
  <BR><FONT size=-1>Total time: 2 seconds</FONT> <BR><FONT size=-1></FONT>&nbsp; 

  <P><B><FONT size=+3>VELOCITY CODE:::</FONT></B> <BR><FONT 
  size=-1>&lt;html&gt;</FONT> <BR><FONT size=-1>&lt;head&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&lt;title&gt;Supplies Logon&lt;/title&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp; &lt;link rel="stylesheet" type="text/css" 
  href="supplies.css" title="Default"&gt;</FONT> <BR><FONT size=-1>&nbsp;</FONT> 
  <BR><FONT size=-1>&nbsp;&nbsp;&nbsp; &lt;script language="javascript" 
  src="stopMultiSubmit.js"&gt;&lt;/script&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp; &lt;script language="javascript" 
  src="placeFocus.js"&gt;&lt;/script&gt;</FONT> <BR><FONT size=-1>&nbsp;</FONT> 
  <BR><FONT size=-1>&nbsp;&nbsp;&nbsp; &lt;script 
  language="javascript"&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function checkEnter(event) 
  {</FONT> <BR><FONT size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
  (event.keyCode==13) {</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  document.LoginForm.action = "/SuppliesWebApp/Logon.do?action=logon";</FONT> 
  <BR><FONT size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  document.LoginForm.submit();</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT> 
  <BR><FONT size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT> <BR><FONT 
  size=-1>&nbsp;</FONT> <BR><FONT size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  function submitLogon() {</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  document.LoginForm.action = "/SuppliesWebApp/Logon.do?action=logon";</FONT> 
  <BR><FONT size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  document.LoginForm.submit();</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp; &lt;/script&gt;</FONT> <BR><FONT 
  size=-1>&lt;/head&gt;</FONT><FONT size=-1></FONT> 
  <P><FONT size=-1>&lt;body class="body" onload="placeFocus()"&gt;</FONT> 
  <BR><FONT size=-1>&nbsp;</FONT> <BR><FONT size=-1>&nbsp;&nbsp; &lt;!-- Header 
  --&gt;</FONT> <BR><FONT size=-1>&nbsp;&nbsp; #parse("headerLogon.vm")</FONT> 
  <BR><FONT size=-1>&nbsp;</FONT> <BR><FONT size=-1>&nbsp;&nbsp; &lt;!-- Errors 
  --&gt;</FONT> <BR><FONT size=-1>&nbsp;&nbsp; #parse("errorMsg.vm")</FONT> 
  <BR><FONT size=-1>&nbsp;</FONT> <BR><FONT size=-1>&nbsp;&nbsp; &lt;!-- 
  Warnings --&gt;</FONT> <BR><FONT size=-1>&nbsp;&nbsp; 
  #parse("warningMsg.vm")</FONT><FONT size=-1></FONT> 
  <P><FONT size=-1>&nbsp;&nbsp; &lt;!-- Status --&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp; #parse("statusMsg.vm")</FONT><FONT size=-1></FONT> 
  <P><FONT size=-1>&nbsp;&nbsp; &lt;form name="LoginForm" method="POST" 
  onSubmit="return stopMultipleSubmit();"&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp; &lt;input type="hidden" name="pageName" 
  value="logon"&gt;</FONT><FONT size=-1></FONT> 
  <P><FONT size=-1>&nbsp;&nbsp; &lt;br&gt;</FONT> <BR><FONT size=-1>&nbsp;&nbsp; 
  &lt;center&gt;</FONT> <BR><FONT size=-1>&nbsp;&nbsp; &lt;table 
  border="0"&gt;</FONT> <BR><FONT size=-1>&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;tr&gt;</FONT> <BR><FONT size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;td align="center"&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;h1 
  class="h5"&gt;Supplies System&lt;/h1&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/td&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/tr&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp; &lt;tr&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td align="center"&gt;&lt;img 
  alt='Supplies Logo' src='images/suppliesLogon.jpg' width="430" 
  height="270"&gt;&lt;/td&gt;</FONT> <BR><FONT size=-1>&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;/tr&gt;</FONT> <BR><FONT size=-1>&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;tr&gt;</FONT> <BR><FONT size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;td align="center"&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;table 
  width="100%" class="formTable" border="1" cellspacing="2" 
  cellpadding="5"&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;tr&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;th class="dataHeading" colspan="2"&gt;Supplies Login&lt;/th&gt;</FONT> 
  <BR><FONT size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;/tr&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;tr&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;td class="dataLabelRight"&gt;User: *&lt;/td&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;td class="formValue"&gt;&lt;input type=text name=userId value="" 
  onKeyPress="checkEnter(event)"&gt;&lt;/td&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;/tr&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;tr&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;td class="dataLabelRight"&gt;Password: *&lt;/td&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;td class="formValue"&gt;&lt;input type=password name=password value="" 
  onKeyPress="checkEnter(event)"&gt;&lt;/td&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;/tr&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;tr&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;td align="center" class="formButton" 
  colspan="2"&gt;&lt;center&gt;&lt;input type="button" value="Logon" 
  onClick="submitLogon()"&gt;&lt;center&gt;&lt;/td&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;/tr&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/table&gt;</FONT> 
  <BR><FONT size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/td&gt;</FONT> 
  <BR><FONT size=-1>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/tr&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp; &lt;tr&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p 
  class="pageText"&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;i&gt;Required fields are marked with a *&lt;/i&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/p&gt;</FONT> 
  <BR><FONT size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/td&gt;</FONT> 
  <BR><FONT size=-1>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/tr&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp; &lt;/table&gt;</FONT> <BR><FONT size=-1>&nbsp;&nbsp; 
  &lt;/form&gt;</FONT><FONT size=-1></FONT> 
  <P><FONT size=-1>&nbsp;&nbsp; &lt;!-- Page Footer --&gt;</FONT> <BR><FONT 
  size=-1>&nbsp;&nbsp; #parse("footer.vm")</FONT> <BR><FONT 
  size=-1>&nbsp;</FONT> <BR><FONT size=-1>&lt;/body&gt;</FONT> <BR><FONT 
  size=-1>&lt;/html&gt;</FONT> 
  <P><B><FONT size=+3>loginOrderQuery.xml:::</FONT></B> <BR><B><FONT 
  size=-1>&lt;invoke</FONT></B> <BR><B><FONT size=-1>&nbsp;stepid="Get to the 
  login page"</FONT></B> <BR><B><FONT 
  size=-1>&nbsp;url="Logon.do?action=init"/&gt;</FONT></B> <BR><B><FONT 
  size=-1>&lt;setinputfield</FONT></B> <BR><B><FONT size=-1>&nbsp;stepid="Set 
  user name"</FONT></B> <BR><B><FONT size=-1>&nbsp;name="userId"</FONT></B> 
  <BR><B><FONT size=-1>&nbsp;value="joe" /&gt;</FONT></B> <BR><B><FONT 
  size=-1>&lt;setinputfield</FONT></B> <BR><B><FONT size=-1>&nbsp;stepid="Set 
  password"</FONT></B> <BR><B><FONT size=-1>&nbsp;name="password"</FONT></B> 
  <BR><B><FONT size=-1>&nbsp;value="xxxx" /&gt;</FONT></B> <BR><B><FONT 
  size=-1>&lt;clickbutton</FONT></B> <BR><B><FONT size=-1>&nbsp;stepid="Clicking 
  the button"</FONT></B> <BR><B><FONT 
  size=-1>&nbsp;label="Logon"/&gt;</FONT></B> <BR><B><FONT 
  size=-1>&lt;verifytitle</FONT></B> <BR><B><FONT size=-1>&nbsp;stepid="Order 
  Query page should follow after Logon pressed"</FONT></B> <BR><B><FONT 
  size=-1>&nbsp;text="Supplies Order Query" /&gt;</FONT></B> <BR><FONT 
  size=-1></FONT>&nbsp; </P></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C41C01.9855EE90--