Share this page

# 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

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

## Example

Copy code

    TC.vtcConnectEx("MyServer", 8888, "MyUser", "MyPW", "MyDomain", "MyVts");

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: