Setting Up and Configuring for Mobile App automationHow to Fetch App Activity and App Package

How to Fetch App Activity and App Package

Identify an Android app's package name and activity name to configure Appium automation tests.

Overview

In mobile app test automation, App Package and App Activity help you identify and interact with the app's components during the testing process, especially in the context of Android apps.

App Package is the unique identifier of an Android app, defined in the app's manifest file (AndroidManifest.xml). It acts as the main reference point for locating and interacting with the app. App Activity refers to the specific screen or component of the app that the user interacts with. For example, in the Licious app used to order meat, the splash screen is the initial activity.

Fetching the App Activity and App Package Details

Perform the following:

Navigate to the Play Store on your mobile device.

Open the Google Play Store app on your Android device.

Type 'APK Info' in the Play Store search bar.

Search for the APK Info app to help you retrieve app package and activity details.

Open the APK Info app to view a list of all installed apps and their details.

The app displays all installed applications along with their package names.

Tap the specific app to view its details.

For example, for the Allen Solly app, the app details will be listed under the Allen Solly icon as com.allensolly.<sample>

View the App Activity details

Navigate to Activities under More Info and tap the arrow corresponding to this option. The App Activity details are displayed, showing the specific activities associated with the selected app.