Forum Discussion

marin's avatar
marin
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:





 try

  {

    //Run the test

    ODT.Data.Run();

  }





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



Many thanks for any hints.



Marin

3 Replies

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



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



    "Fich"

    "Aux"

    "Generic"



    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
    marin
    Frequent Contributor
    Hello Tanya and Jorge,



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



    Regards,



    Marin