NetworkSuite.DeployMode Property

Applies to TestComplete 15.43, last modified on September 08, 2022

Description

Before running a distributed test, you must place the slave projects on remote computers. Use the DeployMode property to specify a deploy mode for your master project’s network suite and to specify whether TestComplete should copy slave projects residing on the master computer to remote hosts.

If the deploy mode is set to Automatic, TestComplete automatically copies the slave projects specified by the hosts’ Source path property (or the current master project if the Source path property value is not specified) to the remote computers specified by the hosts’ Base path property.

If the deploy mode is set to Manual, TestComplete does not copy projects to remote computers. In this case, you will have to copy the projects to remote computers manually by using file managers or from the TestComplete IDE or from tests.

Declaration

NetworkSuite.DeployMode

Read-Write Property Integer

Applies To

The property is applied to the following object:

Property Value

An integer value that stands for the deploy mode. The following values are available:

Constant Name Constant Value Description
dmManual 0 Manual deploy mode. TestComplete will not copy the slave projects to remote computers.
dmAutomatic 1 Automatic deploy mode. TestComplete will copy the slave projects to remote computers upon the test start.

Example

The following example demonstrates how you can specify the network suite’s deploy mode.

JavaScript, JScript

function Test()
{
  // Sets the automatic deploy mode for the network suite
  NetworkSuite.DeployMode = dmAutomatic;
  …

  // Runs the network suite
  NetworkSuite.Run(true);
  …

}

Python

def Test():
  # Sets the automatic deploy mode for the network suite 
  NetworkSuite.DeployMode = dmAutomatic
  # Runs the network suite 
  NetworkSuite.Run(True)

VBScript

Sub Test

  ' Sets the automatic deploy mode for the network suite
  NetworkSuite.DeployMode = dmAutomatic
  …

  ' Runs the network suite
  Call NetworkSuite.Run(True)
  …

End Sub

DelphiScript

procedure Test();
begin
  // Sets the automatic deploy mode for the network suite
  NetworkSuite.DeployMode := dmAutomatic;
  …

  // Runs the network suite
  NetworkSuite.Run(true);
  …

end;

C++Script, C#Script

function Test()
{
  // Sets the automatic deploy mode for the network suite
  NetworkSuite["DeployMode"] = dmAutomatic;
  …

  // Runs the network suite
  NetworkSuite["Run"](true);
  …

}

See Also

Distributed Testing
Network Suite Editor - Properties Page
Editing Host Properties
SharedPath Property
ProjectSourcePath Property
BasePath Property
CopyProjectToSlave Method
Copying Slave Projects to Remote Computers

Highlight search results