Copying Project Suite to a Slave workstation

Copying a project into the Slave computer manually is not that practical (since you would have to keep doing so regularly without forgetting), this is why this process would be better to automate. In this recipe, we will consider how to do this.

How to do it...

To automatically copy the project into the Slave computer, it is necessary to perform the following actions:

  1. Double-click on the NetworkSuite projects element.
  2. In the right-hand side part of the TestComplete window, in the Deploy mode drop-down list, select Automatic.
    How to do it...
  3. Save the changes (for example, pressing the Ctrl + S keys).

How it works...

When the distributed testing starts, TestComplete automatically copies the projects from the Master computer into the Slave computer. The source folder and the destination folder for copying is to be signified in the Source path and Base path input fields of the host respectively. If nothing is signified in the Source path field, TestComplete will copy the current project into the destination folder.

There's more...

Copying the project is also possible from the scripts, invoking the CopyProjectToSlave method for the corresponding host, for example:

var host = NetworkSuite.Hosts.ItemByName("Host1");
host.CopyProjectToSlave();
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.173.199