2. Monkey is easy to use

1. Use Monkey test, the premise is that there is a virtual machine or real machine device, check whether there is a device: adb devices

(You need to enter the tool directory of the SDK before performing this operation)

 

2. View each package name on the device

adb shell pm list packages all package names

adb shell pm list packages com.xx All package names matching com.xx

adb shell pm list packages com.xx.yy Find a specific package

3. adb shell pm list packages This can be written in two ways ( both ways are acceptable )

(1) Directly enter adb shell pm list packages

 

(2) Enter adb shell first, then enter pm list packages

 

4. Test command: adb shell monkey -p com.xx.xx 60 -v (specify the package name after -p 60 is the number of executions -v is the log level of detail)

5. For detailed parameters, please refer to this link tutorial: https://blog.csdn.net/seven_five577/article/details/54970290

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325260189&siteId=291194637