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
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
{
Log.Message(NetworkSuite.Tag);
…
}
Python
def SlaveTest():
Log.Message(NetworkSuite.Tag)
VBScript
Log.Message NetworkSuite.Tag
…
End Sub
DelphiScript
begin
Log.Message(NetworkSuite.Tag);
…
end;
C++Script, C#Script
{
Log["Message"](NetworkSuite["Tag"]);
…
}
See Also
Distributed Testing
Task.Tag
NetworkSuite.Address
NetworkSuite.ProjectType