RefreshApplicationsInfo Method

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

Refreshes information about the applications installed on an iOS device.

Declaration

ApplicationManagerObj.RefreshApplicationsInfo()

ApplicationManagerObj An expression, variable or parameter that specifies a reference to an ApplicationManager object
Result None

Applies To

The method is applied to the following object:

Result Value

None.

Example

The following code demonstrates the usage of the RefreshApplicationsInfo method:

JavaScript, JScript

function Test()
{
  var deviceObj = Mobile.Device("iPhone");
  var appManagerObj = deviceObj.ApplicationManager;
  // Perform some actions over installed applications
  // For instance, install applications or remove them
  …

  // Refresh information on installed applications
  appManagerObj.RefreshPackagesInfo();
}

Python

def Test():
  deviceObj = Mobile.Device("iPhone")
  appManagerObj = deviceObj.ApplicationManager
  # Perform some actions over installed applications
  # For instance, install applications or remove them
  # ...

  # Refresh information on installed applications
  appManagerObj.RefreshPackagesInfo()

VBScript

Sub Test()
  Set deviceObj = Mobile.Device("iPhone")
  Set appManagerObj = deviceObj.ApplicationManager
  ' Perform some actions over installed applications
  ' For instance, install applications or remove them
  …

  ' Refresh information on installed applications
  appManagerObj.RefreshPackagesInfo
End Sub

DelphiScript

procedure Test();
var deviceObj, appManagerObj;
begin
  deviceObj := Mobile.Device('iPhone');
  appManagerObj := deviceObj.ApplicationManager;
  // Perform some actions over installed applications
  // For instance, install applications or remove them
  …

  // Refresh information on installed applications
  appManagerObj.RefreshPackagesInfo();
end;

C++Script, C#Script

function Test()
{
  var deviceObj = Mobile["Device"]("iPhone");
  var appManagerObj = deviceObj["ApplicationManager"];
  // Perform some actions over installed applications
  // For instance, install applications or remove them
  …

  // Refresh information on installed applications
  appManagerObj["RefreshPackagesInfo"]();
}

See Also

ApplicationManager Object (Legacy Mobile Testing)
InstalledApplication Property

Highlight search results