Use the Install Package operation to install the desired package on a mobile device.
This operation is available only if you have a license for the TestComplete Mobile module.
The operation is an analog of the
AndroidDevice.PackageManager.InstallPackage(Package) and iOSDevice.ApplicationManager.InstallApplication(Package) scripting methods.
The operation cannot have child operations.
The operation uses the following parameters:
String. Specifies the fully-qualified file name of the package you want to install on the mobile device.
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.
For information on testing Android applications with TestComplete, see the topics of the Testing Android Applications (Legacy) section.
For information on testing iOS applications with TestComplete, see the topics of the Testing iOS Applications (Legacy) section.