ProcessName Property

Applies to TestComplete 14.60, last modified on April 22, 2021

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
ProcessName Property (iOS Testing)

Highlight search results