|The Network Suite functionality is deprecated. We don’t recommend using it for distributed testing. Consider using a CI/CD system for managing distributed tests. See Migrating Distributed Tests to CI/CD Systems for details. In case you need to run web tests on multiple environments in parallel, you can also try using your project’s Execution Plan.|
Run method runs the given task. This will run the TestComplete project or project suite assigned to the task via the
Task.ProjectPath property on the remote machine set via the
Task.Host property. The project's test item that will be run is specified by the
Task.Test property. See Running the Network Suite, Jobs and Tasks.
|TaskObj||An expression, variable or parameter that specifies a reference to a Task object|
The method is applied to the following object:
The method has the following parameter:
Specifies whether the task will be run simultaneously with the entire script execution flow. If this parameter is False, the script execution will be suspended until the task's initialization finishes and resumed directly once the task is started. If WaitForCompletion is True, the script execution will be suspended until the execution of the task finishes.
You cannot run the task, if a task of another job is running.
You cannot run the task from event handlers.
If you use network suite variables to exchange data between slave projects, run the tasks with the WaitForCompletion parameter set to True. Otherwise, the network suite variables may be shared among the projects incorrectly.
The following script runs all tasks (except for the last one) belonging to the network suite's first job.
var Tasks = NetworkSuite.Jobs(0).Tasks;
for (var i = 0; i < Tasks.Count - 1; i++)
def Test(): Tasks = NetworkSuite.Jobs.Items.Tasks for i in range(0, Tasks.Count - 1): Tasks.Items[i].Run(True)
Set Tasks = NetworkSuite.Jobs(0).Tasks
For i = 0 To Tasks.Count - 2
var Tasks, i : OleVariant;
Tasks := NetworkSuite.Jobs.Tasks;
for i := 0 to Tasks.Count - 2 do
var Tasks = NetworkSuite["Jobs"](0)["Tasks"];
for (var i = 0; i < Tasks["Count"] - 1; i++)