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

0 if completed successfully. If unsuccessful, it throws an exception message.

Example

Copy code
TC.vtcConnect("MyServer", 8888, "MyVts");