Forum Discussion

jsc's avatar
jsc
Regular Contributor
11 years ago

Transform my current ProjectSuite to one where tests can be run in parallel

Hi all,

 

my regression testsuite grew and grew and after some minor improvements I no want to get started with parallelization of the test.

The project suite contains 16 projects (1x setup; 14 projects containing many testitems; 1x teardown)

There are no dependencies between testitems at all.

 

I got 3 identical virtual machines where I want the tests to be run in parallel.

 

At first I thought about manipulating the *.pjs-file via VB-Script to enable / disable the tests for each virtual machine.

But then I recognized that TestComplete supports parallel testing. But the article (http://support.smartbear.com/viewarticle/62722/) does not really tell how I can trasform my current ProjectSuite that runs all the tests sequentially to a ProjectSuite where tests are run on different machines.

 

See the structure of my ProjectSuite in the picture below.

Currently I use one virtual machine to execute the test. The tests duration is about 6 hours.

 

the 3 virtual machines should run these projects in parallel to reduce the overall duration to about 2-3 hours. e.g.:

- VM 1: 001, 002, 003, 004, 005, 006, 099

- VM 2: 001, 007, 008, 009, 010, 099

- VM 3: 001, 011, 012, 013, 014, 099

 

projectsuite.jpg

 

Can anyone help me transform my current ProjectSuite to one that enables parallel tests?

 

Best regards

Joachim

 

7 Replies

    • jsc's avatar
      jsc
      Regular Contributor

      setting it all up manually is not an option.

       

      I know it has to be done with the network suite, but I am not really sure how to set it up. The examples in the support portal are not very helpful. (at least the ones that I know).

      Can anyone help me here?

       

      Currently I'd rather do some vb-manipulation of the test-files (enabling / disabling) projects before the test starts. This seems way more easy and way less complicated.

       

      Best regards,

      Joachim

      • Ryan_Moran's avatar
        Ryan_Moran
        Valued Contributor
        Sub Main
          Set system = CreateObject("WScript.Network")
          Select Case LCase(system.computername)
            Case "your pc name lower case"
              sometest()
            Case "your deployed pc name lower case"  
              somedifferenttest()
            Case Else
              somedefaulttest()
          End Select
        End Sub