Links

IConnections Methods

Add

Adds a new ad-hoc connection to the SUT. Used when the test case needs to switch between different SUTs during execution.

Format of the connection string:

{protocol}:Name='{Name}';Target='{TargetSystem}';User='{Username}';Password='{Password}'; e.g. vnc:Name='Win10_Dev';Target='192.168.12.172';User='TestResults';Password='tr.io';
Syntax:
string Add(
string connectionString
)
Parameter
Description
connectionString
Type: String Name of the connection you want to add.
Return Value: Returns the name of the connection as a string.

SwitchTo

Switches the active connection Active to another one.
Syntax:
bool SwitchTo(
string name
)
Parameter
Description
name
Type: String Name of the connection you want to switch to.
Return Value: Returns true if the connection was successful