Android monkey test, androidmonkey
What is Monkey?
Monkey is a command line tool in Android and can be run in a simulator or on a real device. It sends a pseudo-random user event stream (such as key input, touch screen input, and gesture input) to the system to perform stress testing on the application being developed. Monkey testing is a fast and effective method to test the stability and robustness of software.
Easy to use.
Procedure:
1. First, make sure that the simulator is started. Otherwise, the adb shell cannot be opened.
2. Open the command line window and go to the sdk \ platform-tools> directory in the sdk folder.
3. Enter adb devices to view the started simulator device.
4. Basic usage of Monkey
$ Adb shell monkey-p your. package. name-v 500
500 is the number of Random Executions
After the execution is complete:
If you have any questions, you can view the logs. Solve the problem.
- .