Performing Monkey Testing on Android Device | Android | ADB
As per the Google blog:
Monkey is a program that runs on emulators and devices. Generates pseudo-random streams of user events such as clicks, touches, gestures, and system-level events. With Monkey, you can stress test your app in a random yet reproducible way.
Monkey can be launched from the development machine or script using the command line. The monkey runs in an emulator or device environment, so you need to launch it from a shell in that environment. To do this, adb shell either prefix each command or enter its shell and enter the Monkey command directly.
Command to be used:
adb shell monkey -p com.sec.android.app.popupcalculator 1000 > internalsearch.txt
This command can be broken down into these steps.
ADB - Android Debug Bridge. A tool used to connect and sends commands to your Android phone from a desktop or laptop computer.
Shell - Shell is just an interface on the device that translates our commands to system commands.
Monkey - Monkey is the testing tool.
v - v stands for verbose method.
1000- it is the frequency count or the number of events to be sent for testing.
I am saving the logs in internalsearch.txt file
Comments
Post a Comment