[Webtest] click button ClassCastException

Michael Jividen webtest@lists.canoo.com
Wed, 04 Aug 2004 16:55:17 -0700


I am running into a problem with clickbutton that I cannot figue out. All 
of the similar click buttons in my suite work fine.. after this clickbutton 
there is a waitting page where the order is processed, then the user is 
hurled to the receipt page. I think this may have something to do with it.. 
any suggestions are welcome, if you need more info just ask...here is the 
output where it breaks..

  [testSpec]  INFO (Step.java:211) - Start Step: new_selectform "<unknown>" 
(21/24)
  [testSpec]  INFO (Context.java:188) - Current form set to 
(action=processing.html?
ecqs=fe2253ae7f81c234ae278f8193419ed98e384b47eb1e81107a40b9199adb5c4d5fb6040ac23c78
13edd87fe173e6bd9cc17da16bbef06e0eb2c4e81875a8c0d53aa7f210760894a4a3eefd651a29003a1
aabc45913127a994d972fdf7727cd1974640469bd9b8a5c0e6756aefd649e78038e2e7b488b2ceeaf53
fe87f0a60823f8a1d6ca45dd51cd2164be9e8d8bf4b37c6ba3768296496f0f6d6e6e0594fefafb39f65
1fd03394022314d6a6c66d3ab717934d6421f59b00d53310e9caf04f8245038ef7fbec1f394c1da5741
f99cb44c9d60db9f18bbd0d29b5005f7d07b785ce008c83667971932da9c12989d12a1effa94f670629
8cefbeccf538ab60d68149b5f29b8e657072a5b1a47bcf02b555081fb5bce99cc5c3e5263a239bd4210
a2c5e79b79b1fe359867ba749e4484938e34452124d25985c9a854acbae6035a26b4a7aca1b8c27afa8
123aef48536bab80394314c1daae1f20c11948ffba7dff72f8c208fde9f06c1136d6ec7ed510935b527
3545a99845a01f7d19b3a91497e5ead7740a750d622afbce334457d5aa90c4b12c3ab036758756a9812
7c049391099e777cb4eb76874ddca47ea0f31562f246cbd12e61bfb36d84d1e863e989a63a44f3ed320
441464c8404c7ee10c0c9527f28572ae78a5dc06a
  [testSpec] 
4649ce3d705fdc853320dbd2d373a7279382850110ed8c0b8acb458c882af46b01b3159
f128|BE2DX&20040804-160415)
  [testSpec]  INFO (Step.java:206) - Completed Step: new_selectform 
"<unknown>" (21/
24)
  [testSpec]  INFO (Step.java:211) - Start Step: clickbutton "Click the 
confirm butt
on" (22/24)
  [testSpec]  INFO (ClickButton.java:151) - -> gotoTarget(by Button): name= 
value=
  [testSpec] java.lang.ClassCastException
  [testSpec]     at 
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:25
81)
  [testSpec]     at 
org.mozilla.javascript.InterpretedScript.call(InterpretedScript.
java:62)
  [testSpec]     at 
org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.
java:55)
  [testSpec]     at 
org.mozilla.javascript.Context.evaluateString(Context.java:781)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.ex
ecuteScript(JavaScript.java:122)
  [testSpec]     at 
com.meterware.httpunit.scripting.ScriptableDelegate.runScript(Sc
riptableDelegate.java:64)
  [testSpec]     at 
com.meterware.httpunit.ParsedHTML.interpretScriptElement(ParsedH
TML.java:275)
  [testSpec]     at 
com.meterware.httpunit.ParsedHTML.access$600(ParsedHTML.java:37)

  [testSpec]     at 
com.meterware.httpunit.ParsedHTML$ScriptFactory.recordElement(Pa
rsedHTML.java:404)
  [testSpec]     at 
com.meterware.httpunit.ParsedHTML$2.processElement(ParsedHTML.ja
va:556)
  [testSpec]     at 
com.meterware.httpunit.NodeUtils$PreOrderTraversal.perform(NodeU
tils.java:169)
  [testSpec]     at 
com.meterware.httpunit.ParsedHTML.loadElements(ParsedHTML.java:5
66)
  [testSpec]     at 
com.meterware.httpunit.ParsedHTML.getForms(ParsedHTML.java:101)
  [testSpec]     at 
com.meterware.httpunit.WebResponse$Scriptable.load(WebResponse.j
ava:611)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$Window.initialize(J
avaScript.java:424)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript.run(JavaScript.java
:80)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScriptEngineFactory.associ
ate(JavaScriptEngineFactory.java:46)
  [testSpec]     at 
com.meterware.httpunit.RequestContext.runScripts(RequestContext.
java:44)
  [testSpec]     at 
com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:119)

  [testSpec]     at 
com.meterware.httpunit.WebResponse$Scriptable.setLocation(WebRes
ponse.java:689)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$Window.setLocation(
JavaScript.java:407)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$Location.jsSet_href
(JavaScript.java:632)
  [testSpec]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  [testSpec]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
Impl.java:39)
  [testSpec]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
AccessorImpl.java:25)
  [testSpec]     at java.lang.reflect.Method.invoke(Method.java:324)
  [testSpec]     at 
org.mozilla.javascript.ScriptableObject.setBySetter(ScriptableOb
ject.java:294)
  [testSpec]  INFO (Step.java:211) - Start Step: new_selectform "<unknown>" 
(21/24)
  [testSpec]  INFO (Context.java:188) - Current form set to 
(action=processing.html?
ecqs=fe2253ae7f81c234ae278f8193419ed98e384b47eb1e81107a40b9199adb5c4d5fb6040ac23c78
13edd87fe173e6bd9cc17da16bbef06e0eb2c4e81875a8c0d53aa7f210760894a4a3eefd651a29003a1
aabc45913127a994d972fdf7727cd1974640469bd9b8a5c0e6756aefd649e78038e2e7b488b2ceeaf53
fe87f0a60823f8a1d6ca45dd51cd2164be9e8d8bf4b37c6ba3768296496f0f6d6e6e0594fefafb39f65
1fd03394022314d6a6c66d3ab717934d6421f59b00d53310e9caf04f8245038ef7fbec1f394c1da5741
f99cb44c9d60db9f18bbd0d29b5005f7d07b785ce008c83667971932da9c12989d12a1effa94f670629
8cefbeccf538ab60d68149b5f29b8e657072a5b1a47bcf02b555081fb5bce99cc5c3e5263a239bd4210
a2c5e79b79b1fe359867ba749e4484938e34452124d25985c9a854acbae6035a26b4a7aca1b8c27afa8
123aef48536bab80394314c1daae1f20c11948ffba7dff72f8c208fde9f06c1136d6ec7ed510935b527
3545a99845a01f7d19b3a91497e5ead7740a750d622afbce334457d5aa90c4b12c3ab036758756a9812
7c049391099e777cb4eb76874ddca47ea0f31562f246cbd12e61bfb36d84d1e863e989a63a44f3ed320
441464c8404c7ee10c0c9527f28572ae78a5dc06a
  [testSpec] 
4649ce3d705fdc853320dbd2d373a7279382850110ed8c0b8acb458c882af46b01b3159
f128|BE2DX&20040804-160415)
  [testSpec]  INFO (Step.java:206) - Completed Step: new_selectform 
"<unknown>" (21/
24)
  [testSpec]  INFO (Step.java:211) - Start Step: clickbutton "Click the 
confirm butt
on" (22/24)
  [testSpec]  INFO (ClickButton.java:151) - -> gotoTarget(by Button): name= 
value=
  [testSpec] java.lang.ClassCastException
  [testSpec]     at 
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:25
81)
  [testSpec]     at 
org.mozilla.javascript.InterpretedScript.call(InterpretedScript.
java:62)
  [testSpec]     at 
org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.
java:55)
  [testSpec]     at 
org.mozilla.javascript.Context.evaluateString(Context.java:781)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.ex
ecuteScript(JavaScript.java:122)
  [testSpec]     at 
com.meterware.httpunit.scripting.ScriptableDelegate.runScript(Sc
riptableDelegate.java:64)
  [testSpec]     at 
com.meterware.httpunit.ParsedHTML.interpretScriptElement(ParsedH
TML.java:275)
  [testSpec]     at 
com.meterware.httpunit.ParsedHTML.access$600(ParsedHTML.java:37)

  [testSpec]     at 
com.meterware.httpunit.ParsedHTML$ScriptFactory.recordElement(Pa
rsedHTML.java:404)
  [testSpec]     at 
com.meterware.httpunit.ParsedHTML$2.processElement(ParsedHTML.ja
va:556)
  [testSpec]     at 
com.meterware.httpunit.NodeUtils$PreOrderTraversal.perform(NodeU
tils.java:169)
  [testSpec]     at 
com.meterware.httpunit.ParsedHTML.loadElements(ParsedHTML.java:5
66)
  [testSpec]     at 
com.meterware.httpunit.ParsedHTML.getForms(ParsedHTML.java:101)
  [testSpec]     at 
com.meterware.httpunit.WebResponse$Scriptable.load(WebResponse.j
ava:611)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$Window.initialize(J
avaScript.java:424)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript.run(JavaScript.java
:80)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScriptEngineFactory.associ
ate(JavaScriptEngineFactory.java:46)
  [testSpec]     at 
com.meterware.httpunit.RequestContext.runScripts(RequestContext.
java:44)
  [testSpec]     at 
com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:119)

  [testSpec]     at 
com.meterware.httpunit.WebResponse$Scriptable.setLocation(WebRes
ponse.java:689)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$Window.setLocation(
JavaScript.java:407)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$Location.jsSet_href
(JavaScript.java:632)
  [testSpec]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  [testSpec]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
Impl.java:39)
  [testSpec]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
AccessorImpl.java:25)
  [testSpec]     at java.lang.reflect.Method.invoke(Method.java:324)
  [testSpec]     at 
org.mozilla.javascript.ScriptableObject.setBySetter(ScriptableOb
ject.java:294)
  [testSpec]  INFO (Step.java:211) - Start Step: new_selectform "<unknown>" 
(21/24)
  [testSpec]  INFO (Context.java:188) - Current form set to 
(action=processing.html?
ecqs=fe2253ae7f81c234ae278f8193419ed98e384b47eb1e81107a40b9199adb5c4d5fb6040ac23c78
13edd87fe173e6bd9cc17da16bbef06e0eb2c4e81875a8c0d53aa7f210760894a4a3eefd651a29003a1
aabc45913127a994d972fdf7727cd1974640469bd9b8a5c0e6756aefd649e78038e2e7b488b2ceeaf53
fe87f0a60823f8a1d6ca45dd51cd2164be9e8d8bf4b37c6ba3768296496f0f6d6e6e0594fefafb39f65
1fd03394022314d6a6c66d3ab717934d6421f59b00d53310e9caf04f8245038ef7fbec1f394c1da5741
f99cb44c9d60db9f18bbd0d29b5005f7d07b785ce008c83667971932da9c12989d12a1effa94f670629
8cefbeccf538ab60d68149b5f29b8e657072a5b1a47bcf02b555081fb5bce99cc5c3e5263a239bd4210
a2c5e79b79b1fe359867ba749e4484938e34452124d25985c9a854acbae6035a26b4a7aca1b8c27afa8
123aef48536bab80394314c1daae1f20c11948ffba7dff72f8c208fde9f06c1136d6ec7ed510935b527
3545a99845a01f7d19b3a91497e5ead7740a750d622afbce334457d5aa90c4b12c3ab036758756a9812
7c049391099e777cb4eb76874ddca47ea0f31562f246cbd12e61bfb36d84d1e863e989a63a44f3ed320
441464c8404c7ee10c0c9527f28572ae78a5dc06a
  [testSpec] 
4649ce3d705fdc853320dbd2d373a7279382850110ed8c0b8acb458c882af46b01b3159
f128|BE2DX&20040804-160415)
  [testSpec]  INFO (Step.java:206) - Completed Step: new_selectform 
"<unknown>" (21/
24)
  [testSpec]  INFO (Step.java:211) - Start Step: clickbutton "Click the 
confirm butt
on" (22/24)
  [testSpec]  INFO (ClickButton.java:151) - -> gotoTarget(by Button): name= 
value=
  [testSpec] java.lang.ClassCastException
  [testSpec]     at 
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:25
81)
  [testSpec]     at 
org.mozilla.javascript.InterpretedScript.call(InterpretedScript.
java:62)
  [testSpec]     at 
org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.
java:55)
  [testSpec]     at 
org.mozilla.javascript.Context.evaluateString(Context.java:781)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.ex
ecuteScript(JavaScript.java:122)
  [testSpec]     at 
com.meterware.httpunit.scripting.ScriptableDelegate.runScript(Sc
riptableDelegate.java:64)
  [testSpec]     at 
com.meterware.httpunit.ParsedHTML.interpretScriptElement(ParsedH
TML.java:275)
  [testSpec]     at 
com.meterware.httpunit.ParsedHTML.access$600(ParsedHTML.java:37)

  [testSpec]     at 
com.meterware.httpunit.ParsedHTML$ScriptFactory.recordElement(Pa
rsedHTML.java:404)
  [testSpec]     at 
com.meterware.httpunit.ParsedHTML$2.processElement(ParsedHTML.ja
va:556)
  [testSpec]     at 
com.meterware.httpunit.NodeUtils$PreOrderTraversal.perform(NodeU
tils.java:169)
  [testSpec]     at 
com.meterware.httpunit.ParsedHTML.loadElements(ParsedHTML.java:5
66)
  [testSpec]     at 
com.meterware.httpunit.ParsedHTML.getForms(ParsedHTML.java:101)
  [testSpec]     at 
com.meterware.httpunit.WebResponse$Scriptable.load(WebResponse.j
ava:611)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$Window.initialize(J
avaScript.java:424)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript.run(JavaScript.java
:80)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScriptEngineFactory.associ
ate(JavaScriptEngineFactory.java:46)
  [testSpec]     at 
com.meterware.httpunit.RequestContext.runScripts(RequestContext.
java:44)
  [testSpec]     at 
com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:119)

  [testSpec]     at 
com.meterware.httpunit.WebResponse$Scriptable.setLocation(WebRes
ponse.java:689)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$Window.setLocation(
JavaScript.java:407)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$Location.jsSet_href
(JavaScript.java:632)
  [testSpec]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  [testSpec]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
Impl.java:39)
  [testSpec]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
AccessorImpl.java:25)
  [testSpec]     at java.lang.reflect.Method.invoke(Method.java:324)
  [testSpec]     at 
org.mozilla.javascript.ScriptableObject.setBySetter(ScriptableOb
ject.java:294)
  [testSpec]     at 
org.mozilla.javascript.ScriptableObject.put(ScriptableObject.jav
a:256)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.pu
t(JavaScript.java:263)
  [testSpec]     at 
org.mozilla.javascript.ScriptableObject.putProperty(ScriptableOb
ject.java:1476)
  [testSpec]     at 
org.mozilla.javascript.ScriptRuntime.setProp(ScriptRuntime.java:
844)
  [testSpec]     at org.mozilla.javascript.gen.c15.call(httpunit:4)
  [testSpec]     at 
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:21
79)
  [testSpec]     at 
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunct
ion.java:58)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.pe
rformEvent(JavaScript.java:162)
  [testSpec]     at 
com.meterware.httpunit.scripting.ScriptableDelegate.doEvent(Scri
ptableDelegate.java:55)
  [testSpec]     at 
com.meterware.httpunit.WebResponse$Scriptable.load(WebResponse.j
ava:612)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$Window.initialize(J
avaScript.java:424)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript.run(JavaScript.java
:80)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScriptEngineFactory.associ
ate(JavaScriptEngineFactory.java:46)
  [testSpec]     at 
com.meterware.httpunit.RequestContext.runScripts(RequestContext.
java:44)
  [testSpec]     at 
com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:119)

  [testSpec]     at 
com.meterware.httpunit.WebWindow.sendRequest(WebWindow.java:107)

  [testSpec]     at 
com.meterware.httpunit.WebRequestSource.submitRequest(WebRequest
Source.java:245)
  [testSpec]     at 
com.meterware.httpunit.WebRequestSource.submitRequest(WebRequest
Source.java:224)
  [testSpec]     at 
com.meterware.httpunit.WebForm.doFormSubmit(WebForm.java:75)
  [testSpec]     at com.meterware.httpunit.WebForm.submit(WebForm.java:67)
  [testSpec]     at 
com.canoo.webtest.steps.request.ClickButton$1.call(ClickButton.j
ava:164)
  [testSpec]     at 
com.canoo.webtest.steps.request.Target.protectedGoto(Target.java
:106)
  [testSpec]     at 
com.canoo.webtest.steps.request.ClickButton.gotoTarget(ClickButt
on.java:149)
  [testSpec]     at 
com.canoo.webtest.steps.request.ClickButton.doExecute(ClickButto
n.java:142)
  [testSpec]     at com.canoo.webtest.steps.Step.execute(Step.java:104)
  [testSpec]     at 
com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26)
  [testSpec]     at 
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecific
ationTask.java:70)
  [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.Project.executeTargets(Project.java:1255)
  [testSpec]     at org.apache.tools.ant.Main.runBuild(Main.java:609)
  [testSpec]     at org.apache.tools.ant.Main.start(Main.java:196)
  [testSpec]     at org.apache.tools.ant.Main.main(Main.java:235)
  [testSpec] java.lang.RuntimeException: Script 'if(top.frames.length>1)
  [testSpec]             top.location = 
"https://order.real.com/pt/proforma.html?ecq
s=fe2253ae7f81c234ae278f8193419ed98e384b47eb1e8110ec8ff6ca99f6af395625cfb6d04c97b30
ab5575614d09c371dfcf405447ea514d75024066275de4ef200db8aa00c526809cb08608401529c6a42
6cb6edd45253deb6a569c6dcbb2f9c078cebd5fbfceacaf7137bdfd487b8d46d38029482b90eb83f6df
78645f69703ab7b04d407150e4c733a93fc829a1e37198f981032aed282fe2edb82e631ba78532bbcb9
0b04f1cdcf2c7430d4460fff755c541e9c4b3ca95fc389b4ed35693d4bcd61d60017aee6b4e7f585dbd
45a3ef48df0389f48ce18eca2cb9048bec053508ffd08bf9072c2b544dc2c340dabaa64450777bf1827
e6e5a02f01214bd1508088939e877d5ebacafea1eba561818fe18cc086987a0be09359f94b80b4e053a
202227931f2a36e8be17df80c5935a35538dc3d4d11e14d9a4ad5b60e8032e1e0cfa647fe947f1d745b
d55f9a9fec0c0b8b6f8a640c4a61950a8fdd870fee508674ee7673435e3970f75c06ec520d2100253a4
65dc8487cf56c861567bb412db0dfeb23dd935bf01915f5976f1cdd10db51d2a41da335a97a560b2271
ba4222cfb1bae7527e74c79715091ce844b0fc87fe586da016a2dcb10bb2036f35835d21bf35fd1b80f
4e2114e21d79d798c7ccc7d9a3e441bb3273a4a52
  [testSpec] 
354e3b2a4e19a2bfe04a060e85bedc947e991189b22fa36248be847891812397e9f8126
347e9b7841daca2185dd3441dc8cbce05|BYNSE&20040804-160416";' failed: 
java.lang.ClassC
astException
  [testSpec]     at 
org.mozilla.javascript.WrappedException.<init>(WrappedException.
java:56)
  [testSpec]     at 
org.mozilla.javascript.WrappedException.wrapException(WrappedExc
eption.java:111)
  [testSpec]     at 
org.mozilla.javascript.ScriptableObject.setBySetter(ScriptableOb
ject.java:296)
  [testSpec]     at 
org.mozilla.javascript.ScriptableObject.put(ScriptableObject.jav
a:256)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.pu
t(JavaScript.java:263)
  [testSpec]     at 
org.mozilla.javascript.ScriptableObject.putProperty(ScriptableOb
ject.java:1476)
  [testSpec]     at 
org.mozilla.javascript.ScriptRuntime.setProp(ScriptRuntime.java:
844)
  [testSpec]     at org.mozilla.javascript.gen.c15.call(httpunit:4)
  [testSpec]     at 
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:21
79)
  [testSpec]     at 
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunct
ion.java:58)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.pe
rformEvent(JavaScript.java:162)
  [testSpec]     at 
com.meterware.httpunit.scripting.ScriptableDelegate.doEvent(Scri
ptableDelegate.java:55)
  [testSpec]     at 
com.meterware.httpunit.WebResponse$Scriptable.load(WebResponse.j
ava:612)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$Window.initialize(J
avaScript.java:424)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript.run(JavaScript.java
:80)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScriptEngineFactory.associ
ate(JavaScriptEngineFactory.java:46)
  [testSpec]     at 
com.meterware.httpunit.RequestContext.runScripts(RequestContext.
java:44)
  [testSpec]     at 
com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:119)

  [testSpec]     at 
com.meterware.httpunit.WebWindow.sendRequest(WebWindow.java:107)

  [testSpec]     at 
com.meterware.httpunit.WebRequestSource.submitRequest(WebRequest
Source.java:245)
  [testSpec]     at 
com.meterware.httpunit.WebRequestSource.submitRequest(WebRequest
Source.java:224)
  [testSpec]     at 
com.meterware.httpunit.WebForm.doFormSubmit(WebForm.java:75)
  [testSpec]     at com.meterware.httpunit.WebForm.submit(WebForm.java:67)
  [testSpec]     at 
com.canoo.webtest.steps.request.ClickButton$1.call(ClickButton.j
ava:164)
  [testSpec]     at 
com.canoo.webtest.steps.request.Target.protectedGoto(Target.java
:106)
  [testSpec]     at 
com.canoo.webtest.steps.request.ClickButton.gotoTarget(ClickButt
on.java:149)
  [testSpec]     at 
com.canoo.webtest.steps.request.ClickButton.doExecute(ClickButto
n.java:142)
  [testSpec]     at com.canoo.webtest.steps.Step.execute(Step.java:104)
  [testSpec]     at 
com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26)
  [testSpec]     at 
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecific
ationTask.java:70)
  [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.Project.executeTargets(Project.java:1255)
  [testSpec]     at org.apache.tools.ant.Main.runBuild(Main.java:609)
  [testSpec]     at org.apache.tools.ant.Main.start(Main.java:196)
  [testSpec]     at org.apache.tools.ant.Main.main(Main.java:235)
  [testSpec] ERROR (Step.java:340) - Cannot handle unexpected exception in 
step Clic
kButton at file:../modules/confirm.xml:2:  with (label="", stepId="Click 
the confir
m button", name="", stepType="clickbutton")
  [testSpec] java.lang.RuntimeException: Event 'reload_top()' failed: 
java.lang.Runt
imeException: Script 'if(top.frames.length>1)
  [testSpec]             top.location = 
"https://order.real.com/pt/proforma.html?ecq
s=fe2253ae7f81c234ae278f8193419ed98e384b47eb1e8110ec8ff6ca99f6af395625cfb6d04c97b30
ab5575614d09c371dfcf405447ea514d75024066275de4ef200db8aa00c526809cb08608401529c6a42
6cb6edd45253deb6a569c6dcbb2f9c078cebd5fbfceacaf7137bdfd487b8d46d38029482b90eb83f6df
78645f69703ab7b04d407150e4c733a93fc829a1e37198f981032aed282fe2edb82e631ba78532bbcb9
0b04f1cdcf2c7430d4460fff755c541e9c4b3ca95fc389b4ed35693d4bcd61d60017aee6b4e7f585dbd
45a3ef48df0389f48ce18eca2cb9048bec053508ffd08bf9072c2b544dc2c340dabaa64450777bf1827
e6e5a02f01214bd1508088939e877d5ebacafea1eba561818fe18cc086987a0be09359f94b80b4e053a
202227931f2a36e8be17df80c5935a35538dc3d4d11e14d9a4ad5b60e8032e1e0cfa647fe947f1d745b
d55f9a9fec0c0b8b6f8a640c4a61950a8fdd870fee508674ee7673435e3970f75c06ec520d2100253a4
65dc8487cf56c861567bb412db0dfeb23dd935bf01915f5976f1cdd10db51d2a41da335a97a560b2271
ba4222cfb1bae7527e74c79715091ce844b0fc87fe586da016a2dcb10bb2036f35835d21bf35fd1b80f
4e2114e21d79d798c7ccc7d9a3e441bb3273a4a52
  [testSpec] 
354e3b2a4e19a2bfe04a060e85bedc947e991189b22fa36248be847891812397e9f8126
347e9b7841daca2185dd3441dc8cbce05|BYNSE&20040804-160416";' failed: 
java.lang.ClassC
astException
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.ha
ndleScriptException(JavaScript.java:189)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.pe
rformEvent(JavaScript.java:165)
  [testSpec]     at 
com.meterware.httpunit.scripting.ScriptableDelegate.doEvent(Scri
ptableDelegate.java:55)
  [testSpec]     at 
com.meterware.httpunit.WebResponse$Scriptable.load(WebResponse.j
ava:612)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript$Window.initialize(J
avaScript.java:424)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScript.run(JavaScript.java
:80)
  [testSpec]     at 
com.meterware.httpunit.javascript.JavaScriptEngineFactory.associ
ate(JavaScriptEngineFactory.java:46)
  [testSpec]     at 
com.meterware.httpunit.RequestContext.runScripts(RequestContext.
java:44)
  [testSpec]     at 
com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:119)

  [testSpec]     at 
com.meterware.httpunit.WebWindow.sendRequest(WebWindow.java:107)

  [testSpec]     at 
com.meterware.httpunit.WebRequestSource.submitRequest(WebRequest
Source.java:245)
  [testSpec]     at 
com.meterware.httpunit.WebRequestSource.submitRequest(WebRequest
Source.java:224)
  [testSpec]     at 
com.meterware.httpunit.WebForm.doFormSubmit(WebForm.java:75)
  [testSpec]     at com.meterware.httpunit.WebForm.submit(WebForm.java:67)
  [testSpec]     at 
com.canoo.webtest.steps.request.ClickButton$1.call(ClickButton.j
ava:164)
  [testSpec]     at 
com.canoo.webtest.steps.request.Target.protectedGoto(Target.java
:106)
  [testSpec]     at 
com.canoo.webtest.steps.request.ClickButton.gotoTarget(ClickButt
on.java:149)
  [testSpec]     at 
com.canoo.webtest.steps.request.ClickButton.doExecute(ClickButto
n.java:142)
  [testSpec]     at com.canoo.webtest.steps.Step.execute(Step.java:104)
  [testSpec]     at 
com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26)
  [testSpec]     at 
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecific
ationTask.java:70)
  [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.Project.executeTargets(Project.java:1255)
  [testSpec]     at org.apache.tools.ant.Main.runBuild(Main.java:609)
  [testSpec]     at org.apache.tools.ant.Main.start(Main.java:196)
  [testSpec]     at org.apache.tools.ant.Main.main(Main.java:235)
  [testSpec]  INFO (TestSpecificationTask.java:127) - Writing report using 
Report cl
ass: com.canoo.webtest.reporting.XmlReporter
  [testSpec]  INFO (TestSpecificationTask.java:144) - Test summary 
successfully crea
ted.

BUILD FAILED
file:C:/webtest/BVT/UseCases/roxenSuperPass.xml:17: Test failed.
Exception raised: com.canoo.webtest.engine.StepExecutionException: 
Unexpected excep
tion caught: java.lang.RuntimeException: Event 'reload_top()' failed: 
java.lang.Run
timeException: Script 'if(top.frames.length>1)
             top.location = 
"https://order.real.com/pt/proforma.html?ecqs=fe2253ae7f
81c234ae278f8193419ed98e384b47eb1e8110ec8ff6ca99f6af395625cfb6d04c97b30ab5575614d09
c371dfcf405447ea514d75024066275de4ef200db8aa00c526809cb08608401529c6a426cb6edd45253
deb6a569c6dcbb2f9c078cebd5fbfceacaf7137bdfd487b8d46d38029482b90eb83f6df78645f69703a
b7b04d407150e4c733a93fc829a1e37198f981032aed282fe2edb82e631ba78532bbcb90b04f1cdcf2c
7430d4460fff755c541e9c4b3ca95fc389b4ed35693d4bcd61d60017aee6b4e7f585dbd45a3ef48df03
89f48ce18eca2cb9048bec053508ffd08bf9072c2b544dc2c340dabaa64450777bf1827e6e5a02f0121
4bd1508088939e877d5ebacafea1eba561818fe18cc086987a0be09359f94b80b4e053a202227931f2a
36e8be17df80c5935a35538dc3d4d11e14d9a4ad5b60e8032e1e0cfa647fe947f1d745bd55f9a9fec0c
0b8b6f8a640c4a61950a8fdd870fee508674ee7673435e3970f75c06ec520d2100253a465dc8487cf56
c861567bb412db0dfeb23dd935bf01915f5976f1cdd10db51d2a41da335a97a560b2271ba4222cfb1ba
e7527e74c79715091ce844b0fc87fe586da016a2dcb10bb2036f35835d21bf35fd1b80f4e2114e21d79
d798c7ccc7d9a3e441bb3273a4a52354e3b2a4e19a2bfe04a060e85bedc947e991189b22fa36248be84
7891812397e9f8126347e9b7841daca2185dd3441dc8cbce05|BYNSE&20040804-160416";' 
failed:
  java.lang.ClassCastException, Step: ClickButton at 
file:../modules/confirm.xml:2:
  with (label="", stepId="Click the confirm button", name="", 
stepType="clickbutton"
)com.canoo.webtest.engine.StepExecutionException: Unexpected exception 
caught: java
.lang.RuntimeException: Event 'reload_top()' failed: 
java.lang.RuntimeException: Sc
ript 'if(top.frames.length>1)
             top.location = 
"https://order.real.com/pt/proforma.html?ecqs=fe2253ae7f
81c234ae278f8193419ed98e384b47eb1e8110ec8ff6ca99f6af395625cfb6d04c97b30ab5575614d09
c371dfcf405447ea514d75024066275de4ef200db8aa00c526809cb08608401529c6a426cb6edd45253
deb6a569c6dcbb2f9c078cebd5fbfceacaf7137bdfd487b8d46d38029482b90eb83f6df78645f69703a
b7b04d407150e4c733a93fc829a1e37198f981032aed282fe2edb82e631ba78532bbcb90b04f1cdcf2c
7430d4460fff755c541e9c4b3ca95fc389b4ed35693d4bcd61d60017aee6b4e7f585dbd45a3ef48df03
89f48ce18eca2cb9048bec053508ffd08bf9072c2b544dc2c340dabaa64450777bf1827e6e5a02f0121
4bd1508088939e877d5ebacafea1eba561818fe18cc086987a0be09359f94b80b4e053a202227931f2a
36e8be17df80c5935a35538dc3d4d11e14d9a4ad5b60e8032e1e0cfa647fe947f1d745bd55f9a9fec0c
0b8b6f8a640c4a61950a8fdd870fee508674ee7673435e3970f75c06ec520d2100253a465dc8487cf56
c861567bb412db0dfeb23dd935bf01915f5976f1cdd10db51d2a41da335a97a560b2271ba4222cfb1ba
e7527e74c79715091ce844b0fc87fe586da016a2dcb10bb2036f35835d21bf35fd1b80f4e2114e21d79
d798c7ccc7d9a3e441bb3273a4a52354e3b2a4e19a2bfe04a060e85bedc947e991189b22fa36248be84
7891812397e9f8126347e9b7841daca2185dd3441dc8cbce05|BYNSE&20040804-160416";' 
failed:
  java.lang.ClassCastException, Step: ClickButton at 
file:../modules/confirm.xml:2:
  with (label="", stepId="Click the confirm button", name="", 
stepType="clickbutton"
)
         at 
com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:341)
         at 
com.canoo.webtest.steps.request.Target.protectedGoto(Target.java:115)
         at 
com.canoo.webtest.steps.request.ClickButton.gotoTarget(ClickButton.java:
149)
         at 
com.canoo.webtest.steps.request.ClickButton.doExecute(ClickButton.java:1
42)
         at com.canoo.webtest.steps.Step.execute(Step.java:104)
         at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26)
         at 
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTas
k.java:70)
         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.Project.executeTargets(Project.java:1255)
         at org.apache.tools.ant.Main.runBuild(Main.java:609)
         at org.apache.tools.ant.Main.start(Main.java:196)
         at org.apache.tools.ant.Main.main(Main.java:235)


Total time: 8 seconds

phew....

thanks in advance,
-michael