Skip to main content

Run multiple test suites in parallel with Agents

Configure parallel executions

Follow these steps:

  1. Create two local test environments. See: Create a Local Test Environment with an Agent.

    You then start two Agents to prepare for test suites execution.

    start 2 agents

  2. Update each Agent's threshold to 2. See Configure an Agent's Threshold.

    The assigned sessions for each Agent is now 2.

  3. Create a script repository. See: Upload Test Scripts from a Git Repository.

    You can now see the newly-created script repository appear in the Script Repositories page.

  4. Click on the script repository you have created.

    The Script Repository page appears. In the Test Suite Collection section, you will see a Play button.

  5. Click on the Play button.

    The Schedule Test Run dialog appears.

  6. Fill in the required information. See: Schedule Test Runs.

    Note:
    • In the Test Environments section, select the Agents you have configured earlier.
    • In the Advanced settings section, go to Execution Mode and choose Parallel. See: Advanced settings.

You have created a new test run list for parallel executions of test suites.

Update existing test run list

If you have previously scheduled test runs in sequential mode, you can also update your existing test run list so that it can be executed in parallel.

Follow these steps:

  1. Start two Agents.
  2. Update each Agent's threshold to 2.
  3. Go to Test Execution > Test Run List.
  4. Click on the test run list you want to update.
  5. Click on the Edit button in the top right corner.

    The Schedule Test Run dialog appears.

    Update the schedule as follow:

    • In the Test Environments section, select the Agents you have started earlier.
    • In the Advanced settings section, choose Parallel for Execution Mode. See: Advanced settings.

      In the Advanced settings section, choose Parallel for Execution Mode. See: Advanced settings.

Run test suites in parallel

  1. Go to Test Execution > Test Run List.

    You can see the new test run list here.

  2. Click on the Run icon.

    The two Agents are now running at the same time.

    2 agents run concurrently

View test suites results

Go to Reports > Test Runs to see the result of test suites you have run in parallel.

See also: Auto-Distributed Executions.