FriendlyName Property (Android Processes)

Applies to TestComplete 15.47, last modified on January 20, 2023

Description

Returns the user-friendly name of the package that corresponds to the process.

Declaration

AndroidProcessObj.FriendlyName

Read-Only Property String
AndroidProcessObj An expression, variable or parameter that specifies a reference to an AndroidProcess object

Applies To

The property is applied to the following object:

Property Value

A string containing the user-friendly name of the package.

Example

The following code example obtains the package name of the process and its user-friendly name and posts them to the test log:

JavaScript, JScript

Log.Message("The user-friendly name of the " + Mobile.Device("VirtualBox").Process("com.example.orders").ProcessName + " process is " + Mobile.Device("VirtualBox").Process("com.example.orders").FriendlyName + ".");

Python

Log.Message("The user-friendly name of the " + Mobile.Device("VirtualBox").Process("com.example.orders").ProcessName + " process is " + Mobile.Device("VirtualBox").Process("com.example.orders").FriendlyName + ".")

VBScript

Log.Message("The user-friendly name of the " & Mobile.Device("VirtualBox").Process("com.example.orders").ProcessName & " process is " & Mobile.Device("VirtualBox").Process("com.example.orders").FriendlyName & ".")

DelphiScript

Log.Message('The user-friendly name of the ' + Mobile.Device('VirtualBox').Process('com.example.orders').ProcessName + ' process is ' + Mobile.Device('VirtualBox').Process('com.example.orders').FriendlyName + '.');

C++Script, C#Script

Log["Message"]("The user-friendly name of the " + Mobile["Device"]("VirtualBox")["Process"]("com.example.orders")["ProcessName"] + " process is " + Mobile["Device"]("VirtualBox")["Process"]("com.example.orders")["FriendlyName"] + ".");

See Also

AndroidProcess Object
ProcessName Property
Testing Android Applications (Legacy)

Highlight search results