Forum Discussion

marin's avatar
Frequent Contributor
11 years ago

Multiple ODT declaration scripts per project

Hello all,

I wonder if it is possible to have muliple ODT object declaration scripts per project?

What I'd like to achieve is to have dedicated classes and data per test run, but it seems as if only one, same script is being called when ODT.Data.Run() is invoked.

Situation in screenshot:

although I am calling the ODT.Data.Run() method from scripts _30001_Main and _30002_Main, it will always be the script _30001_ODT that is being run when ODT.Data.Run() is invoked:



    //Run the test



Is there a way to distinguish which script will be run by calling ODT.Data.Run()?

Many thanks for any hints.


3 Replies

  • jorgesimoes1983's avatar
    Regular Contributor
    You can try something like the attachment.

    I created the main "U" and the the other items




    and call it like this ODT.Data.U.Fich.Run();

    and call it like this ODT.Data.U.Aux.Run();

    and call it like this ODT.Data.U.Generic.Run();
  • marin's avatar
    Frequent Contributor
    Hello Tanya and Jorge,

    many thanks for pointing me in the right direction, much appreciated.