Android uses monkey to automatically test apps on a real machine

Source: Internet
Author: User

Requirements: 1. The mobile phone must first be root;

2. Install the RE File Manager on your mobile phone to operate on the/data Directory (mounted as read/write) so that the adb shell can operate on the content in this folder;

3.adb.exe must be included in environment variables;

Steps:

1. Go to the cmd operation interface;

2. Enter the adb shell command. The following page is displayed:


3. Enter the cd/data command. The following page is displayed: <Strong? Http: www.bkjia.com kf ware vc "target =" _ blank "class =" keylink "> VcD4KPHA + pgltzybzcm9 "" alt = "\">

4. Enter the ls command to list all the app package names in the data folder.


5. Then you can run the monkey test.

Monkey-p com. zhihu. android-v 500

Com. zhihu. android: the name of the application package to be tested. You can see that the app is running on your phone.

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.