ProcessName Property

Applies to TestComplete 14.10, last modified on June 5, 2019

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

Highlight search results