TC.vtcConnect
Creates a connection to the server (supports HTTP).
Equivalent method in VuGen: lrvtc_connect
TC.vtcConnect(serverName, port, vtsName);
Note: To connect using HTTPS, basic authentication, or NTLM authentication, use TC.vtcConnectEx.
Arguments
| Name | Description |
|---|---|
serverName | (string) The IP or name of the server. |
| port | (integer) The port number. |
| 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.vtcConnect("ServerName", 8888);
})();

