MCConnection Object

Supported in UFT versions 14.51 and higher.

Determines property values for connecting to Mobile Center from UFT.

For more details, see Connect to Mobile Center.

Public Methods

Public Property TestConnection Tests the connection to Mobile Center.

Back to top

Public Properties

Public Property Password Determines the password used to connect to Mobile Center.
Public Property Port Determines the port for the Mobile Center server you want to connect to.
Public Property Server

Determines the Mobile Center server you want to connect to.

Public Property SharedSpace Determines the Mobile Center shared space to connect to.
Public Property ShowRemoteWndOnRun Determines whether the remote access window is displayed during the test run.
Public Property Username Determines the username used to connect to Mobile Center.
Public Property UseSSL Determines whether SSL is used when connecting to Mobile Center.
Public Property WorkSpace Determines the Mobile Center workspace to connect to.

Back to top

Password property

Determines the password used to connect to Mobile Center.

Read-write property.

Syntax

Public Property Password As String

Back to top

Port property

Determines the port for the Mobile Center server you want to connect to.

Read-write property.

Syntax

Public Property Port As String

Back to top

Server property

Determines the Mobile Center server you want to connect to.

Read-write property.

Syntax

Public Property Server As String

Back to top

SharedSpace Property

Defines the Mobile Center shared space that you want to connect to.

Read-write property.

Syntax

Public Property SharedSpace As String

Back to top

ShowRemoteWndOnRun Property

Determines that the remote access window is displayed during mobile test runs.

Read-write property.

Syntax

Public Property ShowRemoteWndOnRun As Bool

Back to top

TestConnection Method

Tests the Mobile Center connection.

Syntax

Public Sub Add

Return value

Returns data about whether the connection succeeded.

Back to top

Username property

Determines the username used to connect to Mobile Center.

Read-write property.

Syntax

Public Property Username As String

Back to top

UseSSL property

Determines whether SSL is used when connecting to Mobile Center.

Read-write property.

Syntax

Public Property WorkSpace As Bool

Back to top

WorkSpace Property

Defines the Mobile Center workspace that you want to connect to.

Read-write property.

Syntax

Public Property WorkSpace As String

Back to top

MCConnectionOptions object example

The following code shows an example of the MCConnectionOptions object:

Dim App 'As Application

Set App = CreateObject("QuickTest.Application")

App.Launch

App.Visible = True

App.Options.MCConnection.Server = "192.168.2.3"

App.Options.MCConnection.Port = "8081"

App.Options.MCConnection.Username = "test1"

App.Options.MCConnection.Password = "test1"

App.Options.MCConnection.UseSSL = False

App.Options.MCConnection.ShowRemoteWndOnRun = False

App.Options.MCConnection.SharedSpace = "481309064"

App.Options.MCConnection.WorkSpace = "Jason"

Back to top