[Webtest] webtest and java script capability

webtest@lists.canoo.com webtest@lists.canoo.com
Wed, 19 Apr 2006 15:40:17 +0200 (CEST)


Hi,

thanks for your hint. Perhaps you will have
an answer to my next question ;)

I try to call a frame and trigger a link like this:

<a href="javascript:newReport()">New Report</a>

the js source is defined here:

<script language="JavaScript"
src="/xxxBrowser/kpibrs/mainpage/kpibrs.js"
type="text/javascript">

My test script accomplishes that task by:

<followFrame description="Follow the header frame"
    name="header"
    save="myResultPage"/>
<clickLink description="Trigger new report button"
    label="creates a new Report"
    save="myResultPage"/>

But that redounds to:

Test step clickLink (C:\APPS\webtest\reporterTest\xxxBrowserTest.xml:41: )
 named "Trigger new report button" failed with message
"Step [clickLink "Trigger new report button" (9/9)]:
Script error loading page executing webtest at:
clickLink TypeError: Cannot read property "KPIBrowserDatselevent" from
undefined (https://xxxx:xxxx/xxxBrowser/kpibrs/mainpage/kpibrs.js#24)
Source code:
GargoyleWrapper0()"

Can webtest load this javascript resource ?
I would appreciate any advice.

Br,
Christian