TC.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: lrvtc_connect_ex
TC.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.
Example
(async ()=>{
let ret = await TC.vtcConnectEx("ServerName", 8888, "username", "pwd", "domain");
})();