[Webtest] WT-7
Marc Guillemot
webtest@lists.canoo.com
Fri, 01 Apr 2005 11:00:03 +0200
Hi Colin,
the root of your problem is a java.lang.StackOverflowError. Can you edit your log4j property file to set log level to
debug for javascript to see if this is the cause of the problem? Furthermore can you try to minimize the html page as
well as the webtest to get the smallest htm page/webtest that fails?
It would be probably better if you add the informations in the bug instead of the mailing list.
Marc.
Colin O'Brien wrote:
> Hi Marc,
>
> Here are the details of the problem I'm experiencing (v1.7_R750)... The
> problem seems to be similar to the error with the 'onClick' function
> described in WT-7. Using a httpUnit based version of canoo the problem does
> not occur (v1.6_R544)
>
> WebTest Steps:
> <storeXPath
> stepid="Locate View Button"
> xpath="//tr[@class='row1']/td/input[@alt='View']/@name"
> property="viewTAPConfig"
> />
> <clickButton
> stepid="View the TAP Config"
> name="#{viewTAPConfig}"
> />
>
> HTML being targetted:
> <tr class="row1">
> ...
> ...
> ...
> <td colspan="1" class="alignCenter">
> <input type="image" name="View" src="/roambroker/images/view.gif"
> onclick="view('C078F06C-0000-001D-2B01-1018BCB66BB0');" class="icons"
> alt='View' />
> </td>
> ...
> ...
> ...
> </tr>
>
> JS View Function:
> function view(configID)
> {
> document.menuform.elements['TCid'].value = configID;
> document.menuform.elements['action'].value = 'view';
> submit('view');
> }
>
> WebTest Error Thrown (JS enabled - False):
> com.canoo.webtest.engine.StepFailedException: Step "verifyText "Batch
> Control info exists" (19/98): Text not found in page. Expected
> <BatchControlInfo>, Step: VerifyText at
> D:\canoo\modules\TAP3.11Config\verifyTAP3.11Root.xml:5: with
> (text="BatchControlInfo", stepId="Batch Control info exists", regex="false",
> stepType="verifyText")
>
> WebTest Error Thrown (JS enabled - True):
>
> Error
> Exception
> com.canoo.webtest.engine.StepExecutionException
> Exception
> Unexpected exception caught: java.lang.StackOverflowError
> Stacktrace
> com.canoo.webtest.engine.StepExecutionException: Unexpected exception
> caught: java.lang.StackOverflowError, Step: ClickButton at
> D:\canoo\UseCases\RB_TC469_Vanilla_TAP3.11_2.6.0.0.xml:57: with
> (stepId="View the TAP Config", name="View", stepType="clickButton")
> at com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:468)
> at com.canoo.webtest.steps.Step.execute(Step.java:141)
> at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:31)
> at
> com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTask.ja
> va:80)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> at org.apache.tools.ant.Task.perform(Task.java:364)
> at org.apache.tools.ant.Target.execute(Target.java:341)
> at org.apache.tools.ant.Target.performTasks(Target.java:369)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> at org.apache.tools.ant.Task.perform(Task.java:364)
> at org.apache.tools.ant.Target.execute(Target.java:341)
> at org.apache.tools.ant.Target.performTasks(Target.java:369)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
> at org.apache.tools.ant.Main.runBuild(Main.java:673)
> at org.apache.tools.ant.Main.startAnt(Main.java:188)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
>
> Regards,
> Colin.
>
>
>
> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Marc Guillemot
> Sent: 30 March 2005 13:16
> To: webtest@lists.canoo.com
> Subject: Re: [Webtest] WT-7
>
>
> Hi Colin,
>
> I can't say anything to WT-7 as long as I don't get more informations. If
> you think that your problem is related to WT7,
> please add your comment to it with all information that may help to find the
> cause of the problem.
>
> Marc.
>
> Colin O'Brien wrote:
>
>>Hi Dierk, Marc
>>
>>Has there been any update recently to the problem report below...? I have
>
> a
>
>>problem with the HtmlUnit based version that may be corrected by a fix for
>>this...
>>
>>http://webtest-community.canoo.com/jira/browse/WT-7
>>
>>Kind Regards,
>>Colin.
>>
>>_______________________________________________
>>WebTest mailing list
>>WebTest@lists.canoo.com
>>http://lists.canoo.com/mailman/listinfo/webtest
>>
>
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>