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
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
{
// 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
' Sets the automatic deploy mode for the network suite
NetworkSuite.DeployMode = dmAutomatic
…
' Runs the network suite
Call NetworkSuite.Run(True)
…
End Sub
DelphiScript
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
{
// 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
NetworkSuite.SharedPath Property
ProjectSourcePath Property
BasePath Property
CopyProjectToSlave Method
Copying Slave Projects to Remote Computers