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