Forum Discussion

jose_pjoseph's avatar
jose_pjoseph
Contributor
7 years ago

Execute tests in a single project on 2 slaves

I have a project with 100 tests. I have a master project which runs all the tests in this project on a remote VM.

 

ProjectSuite
    + Project01
    + Master
        + NetworkSuite
            + Job01
                + Task01 - Project01 (100 tests - 1-100) - VM01

 

I would like to add another task to Job01 to run half the tests in another VM.

 

+ Master
    + NetworkSuite
        + Job01
            + Task01 - Project01 (50 tests - 1-50) - VM01
            + Task02 - Project01 (50 tests - 51-100) - VM02

 

What will be the best way to achieve this?

 

 

 

6 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    IIRC, Tasks can be associated to test items within the project.  Create a 2 test items in your project, split the test cases to be child test items of those two test items then assign the parent test items to your tasks.

    • jose_pjoseph's avatar
      jose_pjoseph
      Contributor

      Apologies if I am not understanding correctly, but by "child test items of those two test items", do you mean using the "Run Keyword Test" action? If yes, will the log show the tests stats of 50 tests separately? Won't it just combine everything and tell me 1 test passed or failed?

      • tristaanogre's avatar
        tristaanogre
        Esteemed Contributor

        Go to View -> Organize Tests.  What shows up in there are called "Test Items".  You can create a "tree" of them with parent and child Test Items, groups which are more like folders, etc.  If you organize your test items that way, they will show up as individual pass/fail in your test log.