Showing posts with label How to get the activity name of android application. Show all posts
Showing posts with label How to get the activity name of android application. Show all posts

Wednesday, January 13, 2016

Appium : How to get the activity name of android application

How to get the activity name of android application


For mobile app automation, Appium requires app activity name (usually the first screen of your app when you tap on app to launch it ) in desired capabilities parameter . To get the app activity name which Appium can use while launching an app. here are the ways you can use to get the same  

Step 1 : using the aapt command.

To get the aapt.exe , you have to navigate to android sdk folder then build-tools and goto some api version . for example(specific to my machine) 
E:\Android\adt\sdk\build-tools\android-4.4W 

open command prompt and run the below command 
aapt dump badging

for example : Let's take whatsapp application
aapt dump badging E:\com.whatsapp.apk

output :
You can get the package name and launchable-activity with other details as highlighted in below :





























Step 2: using Appium UI console


Robot Framework : Sample code to verify if Robot Framework is installed properly ? - part2

Sample code to verify if Robot Framework is installed properly ? 1. Create a file name test.robot and save it. *** Test Cases *** Sample ...