If you found this tip useful, do share it with your friends or colleagues and until next time. This lets you know the activity which can be used to launch the app with which in this case is: launchable-activity: name='' label='' icon='' ConclusionĪDB is a really powerful tool for android automation and with the use of adb and aapt we can very easily find out the package name and activity name to use to start with our appium automation. If aapt is already on your path then you can remove directly use it else choose the version which you want to use (usually the latest) under build-tools and run below command with your base.apk files name ~/Library/Android/sdk/build-tools/28.0.3/aapt dump badging base.apk | grep -i "launchable-activity" We can use this for our specific purpose of finding out the start activity 80.2 MB/s (19076098 bytes in 0.227s) Get the activity name using aapttoolĪndroid SDK comes with AAPT tools (Android asset packaging tool) which allows us to compile and build into binary format. You should see a file getting downloaded on your current path. We can easily do this via adb pullĪlso, notice, I have passed the output of the above command after removing the app package nameĪdb pull /data/app/-eka4BzKX4Con18lwXr0yAQ=/base.apk Run ffmpeg -f avfoundation -listdevices true -i '' command in Terminal and find the identifier of your device in the AVFoundation audio devices list. Next, we need to get the base apk file into our local machine. The following steps are necessary to setup iOS Real Device audio capture: Find your phone in the list of devices there and click Enable button next to it. Here is a sample output for twitter app package:/data/app/-eka4BzKX4Con18lwXr0yAQ=/base.apk= Get the base.apk file for the app We can execute the below command to get a list of all installed packages in the device and filter to get only the app for which we want to find out this info adb shell pm list packages -f | grep -i "" Get a list of installed packages and path to base apk Appium Windows Driver is a test automation tool for Windows devices and acts as a proxy to Microsofts WinAppDriver server. We can use adb and aapt tools to figure this out. While the above command gets you to name of the current activity, It might not be the activity that the app starts with and thus cause your appium test case to fail in driver initialization itself It’s in the Selenium 3 spec so should be future proof. It has a very well supported and active Google group. ![]() Advantages of Appium It’s free and (mostly) open source. It drives iOS and Android apps using the WebDriver protocol. You should see packageName/currentActivity in the output.Īs you can rightly guess our package name is: Get start activity for use Appium is an open-source test automation framework for testing native and hybrid apps and mobile web apps.
0 Comments
Leave a Reply. |