NetworkSuite.Tag Property

Applies to TestComplete 15.43, last modified on September 08, 2022
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.

Description

The Tag property returns the string associated with the task that ran the current slave project. For example, this can be helpful when you run the same project on several workstations and in this project you want to specify different processing depending on the task that executed the given instance of the project. To associate a different string with this task, use the Task.Tag property.

Declaration

NetworkSuite.Tag

Read-Only Property String

Applies To

The property is applied to the following object:

Property Value

A string that stands for the tag of the task that ran the current slave project.

Example

The following code snippet is a script test to be performed on a slave host. Before executing the testing actions, it posts the tag of the task running the current project to the test log.

JavaScript, JScript

function SlaveTest()
{
  Log.Message(NetworkSuite.Tag);
  …

}

Python

def SlaveTest():
  Log.Message(NetworkSuite.Tag)

VBScript

Sub SlaveTest

  Log.Message NetworkSuite.Tag
  …

End Sub

DelphiScript

procedure SlaveTest();
begin
  Log.Message(NetworkSuite.Tag);
  …

end;

C++Script, C#Script

function SlaveTest()
{
  Log["Message"](NetworkSuite["Tag"]);
  …

}

See Also

Distributed Testing
Task.Tag
NetworkSuite.Address
NetworkSuite.ProjectType

Highlight search results