TestComplete’s distributed testing is applied to client-server application testing and consists of several test items executed on different remote workstations across the network, either simultaneously or one after the other. In the next series we will show you how to create a simple distributed test involving only three workstations in TestComplete. It describes how to add hosts, create jobs and tasks, modify their properties, validate tests, run tests, and analyze results.

Add work to NetworkSuite

The NetworkSuite project contains the Jobs Collection, which stores the Jobs used in distributed tests. These jobs manage tasks and specify which slave hosts the project should run on.

To add two jobs to NetworkSuite, do the following:

  1. Right-click the Jobs Item of the NetworkSuite project Item, and select Add > New Item from the context menu.
  2. Will callCreate New Project ItemThe dialog box. This dialog allows you to add new Jobs to the Jobs Collection.

    Specify Job1 in the name edit box of the dialog box, and click OK.

  3. A new job named Job1 is then added to the Jobs Collection.

Add another job to the collection in the same way and name it Job2.

Add tasks to NetworkSuite

Tasks are stored by jobs and specify which tests or test items to run on which slave hosts during distributed testing.

We added two Jobs (Job1 and Job2) to the Jobs collection. Add tasks 1 and 2 to Job 1 and tasks 3 and 4 to job 2.

  • Right-click Job1 belonging to the Jobs node in the Project Explorer and select Add > New Item from the context menu.
  • Will callCreate New Project ItemDialog box, which will allow you to add new tasks to the job.

    Specify in the dialog box for the new taskThe Name edit box,And click OK.

  • A new task named Task1 will be added to Job1. Add task 2 to Job 1 and task 3 and task 4 to job 2 in the same way.

Assume that the first job, Job1, runs the Project1 project on the CompB host and Project3 on the CompC host. Modify task attributes:

  • Double-click the job item that you want to modify. TestComplete inWorkspace panelOpen the Task editor.
  • Select Task1 in the editor. Click the ellipsis button in the Host column, and then select CompB from the drop-down list. For Task2, specify CompC in the Host column.
  • Specify \ Project1 \ project1.mds in the Project File Name column (the full Project path is not specified because part of it is specified in the Base Path property of the CompB host). When looking for an item, TestComplete links the base path and the project file name value. For Task2, specify the full path C: \ MyDocuments \ Project3 \ project3.mds in the project file name (because the base path of the CompC host is not specified).
  • Specify the Test name in the Test column if you want the task to perform a specific Test for your project. (In this tutorial, you will not define a specific Test to run, so leave this column blank.)
  • In the Copy Remote log column, specify whether and under what circumstances TestComplete should Copy remote logs of task execution from the slave host to the master project.
  • In the Action After Run column, specify the Action that TestComplete should perform on the slave host after the task completes.
  • The Tag column specifies an arbitrary string that describes the task, leaving the column blank.
  • The Use Previous Instance column specifies whether the remote instance of TestComplete should be closed before the task starts.
  • In the Remote Application column, specify the application that should be used when performing tasks on slave hosts: TestComplete or TestExecute.
  • Save changes made to task properties.

Specify the attributes of task 3 and Task4 in the same way.