Appium small white from zero installation, Appium connect the real machine test.

Source: Internet
Author: User
Tags appium

Appium installation Process
  1. node. JS was installed first. Download the exe installation file on node's official website.
  2. Execute in node command line npm install -g appium to install Appium, error, invalid.
  3. Go to appium.io official website, download the Appium compression pack. In fact, this package already contains Appium executable files, no need to configure node. JS separately.
  4. After decompression appears appium.exe, double-click the run prompt to install the. Net Framework, click "Yes" to download immediately.
  5. After the download succeeds, run Appium.exe again, and you can see that the Appium server has been started.
  6. Python installs the Appium Development library pip install Appium-Python-Client .
  7. Use

  8.  fromAppiumImportWebdriver des={} des['PlatformName'] ='Android'des['platformversion'] ='4.2'des['devicename'] ='Android Emulator'des['app'] ="c:\\users\administrator\\desktop\\testappium\\list1.2.apk"Webdriver. Remote ('Http://localhost:4723/wd/hub',"')
  9. Once configured, the discovery prompt requires the Android SDK. After the good SDK. Run again.

  10. Prompt not found XXX, obviously is the problem of environment variables. Configure the Tools directory under the SDK directory and the Platform-tools directory. You will need to restart the Appium server here, or you will not be prompted to find the SDK.
Appium Connecting An Zuojin Machine
    1. On the basis above, connect the An Zuojin machine. After connecting the real computer via USB, use the adb devices command to discover that there are no devices.
    2. In the process of querying the problem, a command was found: appium-doctor You can check the basic path configuration of appium and the integrity of the environment variables.
    3. After discovering that adb devices no devices are being used, install the Samsung phone driver. Once installed, you will see a Samsung phone that has been identified in your computer------and device.
    4. Again adb devices , the device appears, but the device is identified as unauthorized. At this point, switch the connection mode on the phone: MTP PTP, or turn off USB and turn on USB, etc., similar to the effect of restart. It is now recognizable and connected.

Appium small white from zero installation, Appium connect the real machine test.

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.