Android uses monkey for stress testing

Source: Internet
Author: User

Monkey must be used in the project for stress testing. If you get familiar with it, the commands will not be nonsense. Official documents are available.

For example, you can use the following command to enable the monkey test:

ADB Shell

Monkey-V-p com. archermind. callstat -- Monitor-native-crashes -- ignore-security-exceptions -- kill-process-after-error -- PCT-trackball 0 -- PCT-nav 0 -- PCT-anyevent 0 -- PCT-Restart witch 0 -- PCT-flip 0 -- PCT-majornav 10 -- PCT-touch 44 -- PCT-motion 30 -- throttle 500 6000000>/mnt/sdcard/log/monkey_test.txt & logcat-V time> /mnt/sdcard/log/logcat.txt

Although monkey is powerful, it is not omnipotent. You can use it to test ANR and crash problems. If you want to test the function, you 'd better use monkeyrunner.

Get a monkey script from the test hand. It can perform a monkey test cyclically, whether or not you stop the test because of crash or ANR, And will automatically generate the test log on your hard disk, as long as you connect to your computer in debug mode.

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.