Install Package Operation

Applies to TestComplete 15.47, last modified on January 20, 2023

Description

Use the Install Package operation to install the desired package on a mobile device.

Requirements

This operation is available only if you have a license for the TestComplete Mobile module.

Scripting Analogue

The operation is an analog of the AndroidDevice.PackageManager.InstallPackage(Package) and iOSDevice.ApplicationManager.InstallApplication(Package) scripting methods.

Child Operations

The operation cannot have child operations.

Operation Parameters

The operation uses the following parameters:

PackageFullPath

String. Specifies the fully-qualified file name of the package you want to install on the mobile device.

GrantPermissions

False by default. If it is True, then all permissions listed in the application manifest will be enabled automatically after the application installation.

This parameter is available for testing only on Android devices.

Before specifying the operation’s parameters, TestComplete shows you the list of available mobile devices. Specify which one will be used to install the desired package.

Note: If you select the Current Device from the list, you should first choose a mobile device or a virtual machine that will be the current device (or machine) during the testing. You can do this by calling the Select Device or Device Loop operation.

To modify the operation’s parameter:

  • Select the operation in the test.

  • Select the Value cell and then click within it or press F2. This will activate the in-place editor.

  • Click the ellipsis button in the in-place editor. This will call the dialog, which is similar to the one described above. In this dialog, you can specify parameter values.

  • Alternatively, to invoke this dialog, simply double-click the operation in the Keyword Test editor.

  • Click OK to close the dialog and apply the changes.

  • Press Enter to confirm the changes and close the in-place editor, or press Esc to close the editor discarding any changes.

Remarks

See Also

Installing Packages on Devices (Legacy)
InstallPackage Method
Mobile Category
About Testing Android Applications (Legacy)

Highlight search results