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 name of the application that started the process. For example, Orders.

Declaration

iOSProcessObj.ProcessName

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

Applies To

The property is applied to the following object:

Property Value

A string containing the name of the process.

Example

The code below obtains the name of the process running on the iOS device and posts it to the test log:

JavaScript, JScript

function Test()
{
  …
  var p = Mobile.Device("iPhone").Process("Orders");
  Log.Message(p.ProcessName);
  …
}

Python

def Test():
  # ...
  p = Mobile.Device("iPhone").Process("Orders")
  Log.Message(p.ProcessName)
  # ...

VBScript

Sub Test
  …
  Set p = Mobile.Device("iPhone").Process("Orders")
  Call Log.Message(p.ProcessName)
  …
End Sub

DelphiScript

procedure Test();
var p;
begin
  …
  p := Mobile.Device('iPhone').Process('Orders');
  Log.Message(p.ProcessName);
  …
end;

C++Script, C#Script

function Test()
{
  …
  var p = Mobile.Device("iPhone").Process("Orders");
  Log.Message(p.ProcessName);
  …
}

See Also

iOSProcess Object
Testing iOS Applications (Legacy)
ProcessName Property (Android Testing)

Highlight search results