[Testing] ADB commands
2 min readApr 23, 2020
Let’s learn ADB commands used in mobile app testing
Prerequisite/Setup :
- Open terminal in your macbook, type ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Type brew cask install android-platform-tools
Important ADB commands :
- adb devices (To check your device is connected or not)
- adb install “your build path” (To install debug .APK build in your device)
- adb uninstall “your build path” (To uninstall debug .APK build from your device)
- adb logcat or adb logcat -d > logs.txt (To capture the crash log’s of your debug .APK build)
- adb shell am start -a android.intent.action.VIEW -d “your build URL” (To open any URL in your device)
- adb shell monkey -p your.package.name -v 500 (To run monkey test on your debug .APK build)
Why & Where : ADB commands used in mobile app testing for capturing logs, install/uninstall/upgrade, monkey test run, Google analytics events testing.
Thanks & be sure to click 👏 to recommend this article if you found it helpful. It means a lot to me.
Clap, share if you like it and follow me for my next Testing Blog.