Stop monkey approach

Note Monkey will continue to send a stream of random events after the start to the measured object, or execution until the event is completed when the abnormal stop. Monkey in the process of operation, even if disconnected from the PC, Monkey can still continue to run on the phone.

The method is to stop Monkey: Monkey directly kill the process on the phone. Specific methods are as follows:

adb shell ps |grep monkey

Com.android.commands.monkey to get the process ID

adb shell kill pid

For example: adb shell kill 30898 kill corresponding Monkey process by the kill command.

Guess you like

Origin www.cnblogs.com/kaibindirver/p/11010853.html