Creating a batch file to run multiple harnesses

You can create a batch file that calls batch files to execute TestArchitect tests simultaneously.

Notes: 
Applies to TestArchitect 8.4 and higher.

Restriction: 
As of the current release, there are some following constraints that you should keep in mind.

One of the main features of TestArchitect is the ability to run multiple harnesses in parallel. Rather than waiting for each harness to execute in sequence or individually, you can run multiple harnesses in parallel across various browsers. Using this process, more tests can be run at a time, thereby decreasing overall time spent on testing. In order to achieve this goal to run multiple harnesses in batch files, carry out the following steps:

  1. In TestArchitect Client, generate a batch file for each test module/suite you want to execute. (Learn more)

  2. Create a master batch file in a text editor, so as to call the batch files generated in the step #1. The content of the master batch file might look like the following:

    • On Windows:

      start cmd /c d:\tests\testOne.bat
      start cmd /c d:\tests\testTwo.bat
      start cmd /c d:\tests\testThree.bat
      

      Where testOne.bat, testTwo.bat and testThree.bat are three test execution batch files. This master batch file triggers the three harnesses in parallel.

    • On Linux:

      #!/bin/bash
      /root/Desktop/testOne.sh &&
      /root/Desktop/testTwo.sh &&
      /root/Desktop/testThree.sh
      

      Where testOne.sh, testTwo.sh and testThree.sh are three test execution bash files. This master batch file triggers the three harnesses in parallel.

Related tasks

Running multiple harnesses from TestArchitect Client

Configuring harness pool size


Copyright © 2023 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1(800) 322-0333