Object Model Reference for GUI Testing > BPT Built-in Function Libraries > SetActiveMobileDevice

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 Mobile Center device ID.

For details about supported mobile devices, see your Mobile Center 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_osversion The device operating system version.
device_model The 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 Mobile Center device ID.

Syntax

SetActiveMobileDeviceById(device_id)

Parameter

Description

device_id

The Mobile Center 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: