Process Method

Applies to TestComplete 15.64, last modified on June 12, 2024
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.


Returns the AndroidProcess object that corresponds to the package that is currently running on the device.

TestComplete recognizes processes of only those applications that were prepared for testing in a special way. For more information, see Preparing Android Applications (Legacy).



AndroidDeviceObj An expression, variable or parameter that specifies a reference to an AndroidDevice object
ProcessName [in]    Required    String    
Result An AndroidProcess object

Applies To

The method is applied to the following object:


The method has the following parameter:


The package name of the Android application, for example, com.example.orders. The process name is case-insensitive.

You can use wildcards (* and ?) to search by a partial name like *.orders.

Result Value

An AndroidProcess object that corresponds to the specified process.


The code below obtains the process by its name:

JavaScript, JScript

function GetProcess()
  var proc = Mobile.Device("MyDevice").Process("com.example.orders");


def GetProcess():
  proc = Mobile.Device("MyDevice").Process("com.example.orders")


Sub GetProcess
  Set proc = Mobile.Device("MyDevice").Process("com.example.orders")
End Sub


procedure GetProcess();
var proc;
  proc := Mobile.Device('MyDevice').Process('com.example.orders');

C++Script, C#Script

function GetProcess()
  var proc = Mobile["Device"]("MyDevice")["Process"]("com.example.orders");

See Also

Addressing Objects in Android Open Applications (Legacy)
Testing Android Applications (Legacy)
ProcessName Property
AndroidDevice Object
WaitProcess Method
Process Method (iOS Testing)

Highlight search results