Hi Marc,

Thanks for the response. Our .xhtml pages are well formed. Any other
suggestions you may have? 

Here is what I have in my module login.xml:

<invoke 
          description="get Login Page"
          url="someUrl" />
<verifyTitle 
          description="we should see the login title"
          text="someText" />
<clickButton description="Submit LogIn" name="submit"/>

Here is what I have in my UseCase:

<?xml version="1.0"?>

<!DOCTYPE project [
  <!ENTITY login   SYSTEM "file:../modules/login.xml">
  ....
]>

<project name="loginAndStep" default="case - Local BOM" basedir="..">

  <target name="case - Local">
    <webtest name="loginAndStep">
      &config;
      <steps>
        &login;
        &mainMenu;
      </steps>
    </webtest>
  </target>
</project>

Here is what I am getting after running webtest:

testSuite:

case - Local:

BUILD FAILED
C:\Program Files\CanooWebTest- 2.1\webtests\TestSuite1.xml:37: The
following err
or occurred while executing this line:
C:\Program Files\CanooWebTest- 2.1\webtests\UseCases\LocalBOM.xml:13:
Canoo Webt
est: R_1522.
Test failed.
Test step steps (C:\Program Files\CanooWebTest-
2.1\webtests\UseCases\LocalBOM.x
ml:15: ) null failed with message "Step[clickButton "Submit LogIn"
(3/13)]: Scri
pt error loading page executing webtest at: clickButton TypeError:
Cannot find f
unction makeClipping.
(http://localhost:8280/abomv2/ABOM-v2/scripts/effects.js#6
13)
Source code:

  function SafeOnload() {
      for (var i = 0; i < gSafeOnload.length; i++) {
          gSafeOnload[i]();
      }
  }
"

The function its looking for - makeClipping - is not in effects.js but
in other .js file that is loaded by the page, but it is called from the
effect.js Did I gave you an OK description of the problem? Can you help
me, please?

Thank you!
-Olga

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc Guillemot
Sent: Monday, March 26, 2007 6:06 AM
To: [EMAIL PROTECTED]
Subject: Re: [Webtest] Multi JavaScript use problem

Hi Olga,

js files are loaded transparently, you don't have to look at it. A first
thing to look at: is your html code well formed?

Marc.

RICHARDSON, OLGA (CONTRACTOR) wrote:
> 
> Hello,
> 
> I have a problem with webtest finding the function in .js file. Our 
> web pages are very complicated and use a lot of Java Scripts within a
page.
> Is anyone can help me with it? Is there a way to tell the webtest what

> .js files to include? Please help! Or  can anyone explain how Java 
> Scripts get loaded while executing a webtest.
> 
> Thank you!
> -Olga
> 

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to