Android Monkey (i)

Source: Internet
Author: User

Monkey is mainly divided into general class, event class, constraint class, debugging class

The general classes are:

-H Help-V prints out log information

The event classes are:

-f Example: adb shell Monkey path 1 Number 1 refers to the number of cycles

-S For example adb shell MONKEY-S100-V 100 defines-s problem after performing a-s value lookup from complex

--throttle Command time interval

--pct-touch Tap the screen

--pct-motion Sliding Screen

--pct-trackball trackball such as the old phone Motorola has a small ball to slide

--pcct-nav basic navigation buttons up or down

--pct-majornav main navigation button middle button Back button menu button

--pct-syskeys System button Home key back key dial key hanging machine key Volume key

--pct-appswitch launch app commonly known as open app

--pct-flip Bring up the keyboard

--pct-pinchzoom adjust two-finger zoom gestures

The constraint classes are:

-P constraint runs in the specified app package

-c constraints run in a defined class

The Debug classes are:

--dbg-no-events monitoring conversions between packages that are called by the application

--hprof generated immediately before and after the event sequence profling report cautious use

Continue sending event after an error--ignore-crashes resume sending event after application run

--ignore-timeouts Resume Send event After any timeout error occurs

--ignore-security-exceptions Resume Send event after application permission error occurs

--kill-process-after-error notifies the system to stop the process of an error after an application error

--monitor-native-crashes monitors and reports Monkey run-time Android system native code crash

--wait-dbg stop execution in monkey until there is a debugger linked to him

White Test black Test

--pkg-blacklist-file Black test does not execute this inside of the package adb shell Monkey--pkg-blacklist-file data\1.txt-v 100

--pkg-whitelist-file White test only carry out the package in this note the two can only have one white and no black, no white.

Output of the phone so the package

ADB shell PM List packages > e:\1.txt output of the phone so the package is 1.txt to E disk

Input data to Phone

ADB push e:\1.tx data\ input to the phone

View virtual machine link successfully did not enter a command ADB devices

Install the software. apk file into the platform-tools adb file
DOS command into Platform-tools enter the command adb install file name. Pak

Uninstall software dos input adb shell input CD data\data LS view uninstalled package name
Enter ADB Uninstall package name

View Package name Enter ADB logcat mouse click Software View Log Find package name

Android Monkey (i)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.