Forum Discussion

Oussama's avatar
Oussama
Occasional Contributor
10 years ago
Solved

Running a suite of Script from different projects

Hello,

 

I have suiteProject and into this suite i have two project :

  -- Project A : script1 and Script2

  -- Project B : Script 3 and Script 4

 

I would like to execute Scripts at the same time and in this order : Script1, Script 3, Script 4 and Script 2

Could you please give me a solution ? 

 

Thank you

 

  •  

    Create Project C and call all scrpts of project A and B within C
    Arrange scripts however you like
    Run project C

5 Replies

  • nishantna's avatar
    nishantna
    Occasional Contributor

    If you want the scripts to run at the same time then why are you specifying the order of execution of scripts?

  • NisHera's avatar
    NisHera
    Valued Contributor

     

    Create Project C and call all scrpts of project A and B within C
    Arrange scripts however you like
    Run project C

  • How would I do this below? Wouldn't this required coping over all exisitng key-word tests from project A and B into project C?

     

    Create Project C and call all scrpts of project A and B within C
    Arrange scripts however you like
    Run project C

     

    • nishantna's avatar
      nishantna
      Occasional Contributor

      Go to the Workspace level and approach both projects using groovy. After that get to the desired test steps of each project and then use run(StringToObjectMap properties,boolean async) on the desired test steps , where keep 'async' as false.

    • NisHera's avatar
      NisHera
      Valued Contributor

      I think you are looking for this

      In scripts you can use  //USEUNIT