Android Monkey Test Tips

Source: Internet
Author: User
<span id="Label3"></p><p style="text-align:center;font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="text-align:center;font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);">Monkeytest Test Flow</p></p><p style="text-align:center;font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="text-align:center;font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>1.</strong> <strong>Common Command parameter descriptions:</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong> </strong>- <strong style="font-size:13.63636302948px;line-height:17.3333339691162px;">s</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);">Seed value, The main function of setting this parameter is that the programmer can execute the command repeatedly, and the seed value is the same as the monkey test sequence.</p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);">-P Specifies the package to be tested, the parameters are followed by the pack ID of the APK</p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>--pct-touch</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);">Adjust the percentage of touch events (touch event is a down-up event that occurs in a single location on the Screen)</p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>--pct-motion</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);">Adjust the percentage of Action events (an action event consists of a down event, a series of pseudo-random events, and an up event somewhere on the Screen)</p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>--pct-nav</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);">Adjust the percentage of basic navigation events (navigation events consist of up/down/left/right from the direction input Device)</p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>--pct-majornav</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);">Adjust the percentage of the primary navigation event (middle button, fallback button, menu Key)</p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>--pct-syskeys</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);">Adjust the percentage of the System key event (these keys are usually reserved for use by the system, such as home, back, Start call, End call, and volume control Keys)</p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>--ignore-crashes</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);">typically, Monkey stops running when an application crashes or any runaway exception occurs. If this option is set, Monkey will continue to send events to the system until the count is complete</p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>--ignore-timeouts</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);">typically, Monkey stops running when an application has any time-out errors, such as the application not responding dialog box. If this option is set, Monkey will continue to send events to the system until the count is complete</p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>--ignore-security-exceptions</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);">typically, when an application has a licensing error (such as starting an activity that requires some permission), monkey will stop running. If this option is set, Monkey will continue to send events to the system until the count is complete</p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>--monitor-native-crashes</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);">Monitor and report crash events for native code in Android systems</p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>--ignore-native-crashes</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);">typically, Monkey will stop running when the Application's native code Crashes. If this option is set, Monkey will continue to send events to the system until the count is complete</p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>--throttle</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);">Inserts a fixed delay between events. This option slows down the monkey execution Speed.</p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);">- <strong>v</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);">Each-v of the command line will increase the level of feedback information at the highest level of 3-v</p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>Count</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);">Total number of monkey executions</p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>2.</strong> <strong>Test Steps</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>(1)</strong> On the <strong>phone, First install the</strong> <strong>apk</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>(2)</strong> <strong>Connect your phone to the computer</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>(3)</strong> <strong>start the command line</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>(4)</strong> <strong>input</strong> <strong>Monkey</strong> <strong>Command</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);">adb shell monkey-s 1000-p packageid--pct-touch--pct-motion (--pct-nav)--pct-majornav--pct-syskeys ore-crashes--ignore-timeouts--ignore-security-exceptions--ignore-native-crashes--monitor-native-crashes-- Throttle 300-v-v-v 36000 > XXX.txt</p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);">Note: the-s value is set to one random value at a time, each time the value is different</p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>(5)</strong> <strong>wait for the command to end, without human intervention.</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>3.</strong> <strong>Test Report Processing</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);">According to the second step of the command finally redirect the test log to the file XXX.txt, you perform the Monkey test directory to find the file to open the view, respectively search Exception,anr,crash three keywords, if the search results found these keywords, The log file is sent to the relevant Android programmer for Processing. If you do not search for these keywords, then the results of this test is more ideal, no abnormalities found, you can continue to Test.</p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong></strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>4.</strong> <strong>Unexpected case handling</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>(1)</strong> <strong>command started but found a problem with command settings such as forgetting to set</strong> <strong>–s</strong> <strong>parameter, How do you stop it from running? </strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>answer:</strong> <strong>Monkey</strong> <strong>is the phone internal command, once the start of execution whether the phone is still attached to the computer, then it will persist until the total number of times to stop, the way to stop is to open another command line window, execute the following two commands:</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>adb shell Ps|findstr Monkey</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>ADB Shell kill-9 PID</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>for example, the result is:</strong> <strong>adb shell kill-9 29293</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong>(2)</strong> <strong>If you do not know the application to be tested</strong> package <strong>ID</strong> <strong>, you can ask the programmer or view it yourself in the following ways:</strong></p></p><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><p style="font-size:13.63636302948px;line-height:17.3333339691162px;padding:0px;margin-bottom:10px;font-family:Arial, Helvetica, FreeSans, sans-serif;white-space:normal;background-color:rgb(255,255,255);"><strong></strong> Use the <strong>adb logcat</strong> command on <strong>the command line</strong> <strong>, and then click on the APK on the phone</strong> <strong></strong><strong>, via</strong> <strong>logcat</strong> <strong> Find the package ID on the printed log</strong> <strong></strong></p></p><p><p><br></p></p><p><p>This article from "far ice rain Jennifer station" blog, reproduced please contact the author!</p></p><p><p>Android Monkey Test Tips</p></p></span>
Related Article

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.