Mobile.txt

This function library contains functions for Mobile objects and also contains the registration information required by all add-in function library files. To use the functions in this file, you must also load the Common.txt function library file.

Functions

Method SetActiveMobileDevice

This function sets the active mobile device to use for the business process (BPT) test.

Method SetActiveMobileDeviceById

This function sets the active mobile device to use for the business process (BPT) test by using the UFT Mobile device ID.

For details about supported mobile devices, see your UFT Mobile Help.

Back to top

SetActiveMobileDevice Function

Description

This function sets the active mobile device to use for the business process (BPT) test.

Syntax

SetActiveMobileDevice(device_ostype, device_osversion, device_model, device_manufacturer)

Parameter

Description

device_ostype

The device type (operating system).

Possible values:

  • ANDROID
  • IOS
  • WINDOWS
device_osversionThe device operating system version.
device_modelThe device model.
device_manufacturer

The device manufacturer.

Back to top

IMPORTANT

This function is registered for the following object: mobileUtil.

SetActiveMobileDeviceById Function

Description

This function sets the active mobile device to use for the business process (BPT) test by using the UFT Mobile device ID.

Syntax

SetActiveMobileDeviceById(device_id)

Parameter

Description

device_id

The UFT Mobile device ID used to set the active mobile device for the BPT test.

IMPORTANT

This function is registered for the following object: mobileUtil.

Back to top

See also: