ProcessName Property

Applies to TestComplete 15.47, last modified on January 20, 2023
The information below concerns legacy mobile tests that work with mobile devices connected to the local computer. For new mobile tests, we recommend using the newer cloud-compatible approach.

Description

Returns the full name of the package that corresponds to the process.

Declaration

AndroidProcessObj.ProcessName

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 package name of the process.

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
FriendlyName Property (Android Processes)
Testing Android Applications (Legacy)
ProcessName Property (iOS Testing)

Highlight search results