Forum Discussion
AlexeyKolosov
Staff
13 years agoHi Will
To do this, you can check the value of the [url= http://support.smartbear.com/viewarticle/14313]NetworkSuite.State[/url] property. If the value of this property equals ns_SlaveRunning, this means that the slave project is involved in distributed testing.
For example:
I hope this helps.
To do this, you can check the value of the [url= http://support.smartbear.com/viewarticle/14313]NetworkSuite.State[/url] property. If the value of this property equals ns_SlaveRunning, this means that the slave project is involved in distributed testing.
For example:
//...
if NetworkSuite.State == ns_SlaveRunning;
//You can also use the constant value (10) instead of the constant name (ns_SlaveRunning)
Log.Message('The test runs as a part of distributed testing');
//...
I hope this helps.