TCA.vtcConnectEx
Creates a connection to the VTS server.
Supported authentication methods:
HTTP
HTTPS (version according to the VTS server)
Basic authentication
NTLM authentication
Equivalent method in VuGen VTS: lrvtc_connect_ex
TCA.vtcConnectEx(serverName, port, userName, password, domain, vtsName);
Arguments
Name | Description |
---|---|
serverName | (string) The IP or name of the VTS server. The protocol can be omitted. The default protocol is https://. |
port | (integer) The port number. The available range is from 1 to 65535. |
userName (Optional) | (string) The username for basic or NTLM authentication. |
password (Optional) | (string) The password for basic or NTLM authentication. |
domain (Optional) | (string) The domain name for NTLM authentication. |
vtsName (Optional) | (string) The alias of the VTS server. |
Return value
A promise that is fulfilled with 0 if completed successfully. Upon failure, an exception is thrown.
Example
TCA.vtcConnectEx("MyServer", 8888, "MyUser", "MyPW", "MyDomain", "MyVts").then(function(result){
TCA.done(result);
}).catch(function (error) {
TCA.doneWithError(error);
});