Android phone automation test real machine Run

Source: Internet
Author: User

One, turn on your phone USB Debug Mode

Different phones have different ways to turn on the USB debugging mode, but go online to check your phone debug mode open method (Http://wenku.baidu.com/view/3077f06c25c52cc58bd6be15.html?re=view). There is also an application that can download a "USB debug shortcut switch" On the internet and turn on the USB debug mode of the phone.

Two, Connect your phone to your computer

Connect your phone with a data cable to your computer and authorize USB debug mode. To view the effect of the connection, run the command under cmd: adb devices-l view Udid as shown in:



If there is an output, the connection is successful.

Three, Start Appium Service

Start the Appium service according to the Udid that is found, run the command:

#>appium-a127.0.0.1-p4723–u4ca1558c--no-reset

(Parameters must be written in one piece, otherwise invalid)

A string of characters followed by the-u parameter is the udid of the phone, which is checked by the second step.

When the program outputs such as information, indicating that the Appium started successfully, you can run the test script at this time.

Android phone automation test real machine Run

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.