Page tree
Skip to end of metadata
Go to start of metadata

Install applications

Using the Install Widget to install an application:

  1. Open a device as described here.
     
  2. Once connected to the device, you will see the interactive widget panel on the left side of your screen.

  3. Click the Install widget (marked #1 in the figure), the Install Application Wizard is displayed.

  4. Choose to install your application from either your local disk or from the Perfecto Lab Repository. For purposes of this example, we will be using an APK (Android) file.

  5. After identifying your application file, click Next.

  6. You have a choice of instrumentation. Instrumentation allows the Perfecto code to control different aspects of the application. This could include identifying the different UI elements of the application, or intervening when using different device sensors that may need different simulation. Learn more about the instrumentation options from this article.


  7. Once your application is installed, you should see a successful notification message and see your application installed on the device.

Troubleshooting:

Application Identifier

Application commands require identification of the application to apply the command to. The application is identified differently by the different mobile operating systems.

Android

  • application name: the name displayed on the device screen in the application list. You can find the application name in the Device applications tab list.
  • package-name: a unique identification string for the application, used by Android to identify the application.
    For example, the package name for the maps application developed by Google for Android may be com.google.android.apps.maps
  • package-name/activity-name: Android defines activities for specific actions supported by the application. The activity name can be supplied
    - relative to the application package-name by prefixing a '.' to the activity name.
    - full activity name with its own package-name.

iOS

  • application name: name displayed on the device screen. You can find the application name in the Device applications tab list.
  • bundle id: string that identifies the application to the OS. The bundle id is composed of a string that identifies the developer, and the application name separated by a '.' character.
    For example, the package name for the wikipedia application developed by Wikimedia for iOS may be com.wikimedia.wikipedia

Finding the Application Identifier

A common option to identify an application is by the bundle id (for iOS applications) or the package name (for Android applications).

Copying the application identifier to the clipboard is a pretty straight forward task:

  1. Open the Device applications tab.



  2. Click on the Copy to clipboard icon to the right of the application in the list. The application ID is now stored in the clipboard, and you can paste it into your script.

Note: The Copy to clipboard icon appears when you either select the application or hover over the application entry in the list.

Starting Applications

There are two ways to start an application:

Start App Widget

  1. Open a device as described here.
     
  2. Once connected to the device, you will see the interactive widget panel on the left side of your screen.



  3. Click Start app widget (marked #2 in figure),



  4. Supply either the application's display name or the application identifier and click OK, a progress bar displays when the application start completes:



  5. The application is started on the device and can be manually manipulated.



Device Applications Tab

  1. After selecting and opening device as explained, the IDE displays a set of tabs (these appear in the right-panel in the IDE, or in the left-panel in the plugins)
  2. Select the Device applications tab, this displays the list of all applications installed on the device. Each application is listed by its display name and identifier.


Device applications tab - on right as it appears in the plugins, on left as it appears in the IDE

3. Select the application to start, Click on the Start icon (marked #1 in the figure).

4. The application is started on the device and can be manually manipulated.

Close Application

There are two ways to close an application, independent on the way that the application was started:

Note: Close application works only for installed applications (not system applications).

Note: If the application identifier is for an application that is not running, the command is ignored.

Close App Widget

When the device is open and running an application, open the Widgets tab in the Interactive controls panel


 

  1. Click the Close app widget (marked #3 in figure).



  2. Supply the application identifier in the runtime variables window and click OK.



  3. A progress bar shows that the application is closing

Device Applications Tab

  1. Select the Device applications tab, this displays the list of all applications installed on the device. Each application is listed by its display name and identifier.


Device applications tab - on right as it appears in the plugins, on left as it appears in the IDE

2. Select the application to close, Click on the Close icon (marked #2 in the figure).

Uninstall Application

To uninstall an installed application:

  1. Select the Device applications tab, this displays the list of all applications installed on the device. Each application is listed by its display name and identifier.
  2. Select the application to close, Click on the Uninstall icon