Appium Automation Environment Construction (windows+android)

Source: Internet
Author: User
Tags appium

To start the installation:

1, first build the Android development environment (Eclipse+jdk+android SDK package +LEVEL17 or above version API)2.Set ANDROID_HOMEThe system variable is your Android SDK path, and the tools and platform-tools two directories are added to the system's path path. Because the bread here contains some execution orders .3.installationnode. js, available tohttp://www.nodejs.orgdownload the relevant operating system version4.install Apache Ant;install Apache Maven (for Project management);install git. (except git I have installed the Ruby, the other two is not installed also does not affect the use of appium, if necessary, reload also line)5.Install Appium:(1): http://appium.io/, install after installation directory\node_modules\.bin Directoryset to the environment variable in path. (2) Enter the command line and enter Appium-doctor to see if the installation configuration is successful6.Install Appium Client (Ruby mode)Description:The Appium client is a few extensions and encapsulation of the Webdriver native API. It can help us to write use cases more easily and write better use cases. The Appium client is used in conjunction with the native Webdriver, so the two must be used together. first update Rubygem and bundler (say the truth, really don't need to, but the official document says so)Gem Update--systemGem Update bundler then use the gem to install gem Uninstall-aix appium_lib; \ (This is not necessary, do not worry about running under the line)gem install--no-rdoc--no-ri appium_lib  7.launch Appium and Android Real Machine in general, we start Appium from the command line. (can also be passed) windows, DOS command window inputAppium, the Appium server will start, do not close the window Connect the phone, run the code as follows (I'm using ruby code)
Require'Appium_lib'#here, I'm using a direct connection to the real machine.desired_caps={caps:{platformname:'Android',#Platform NameDeviceName:'HUAWEI mt7-tl00',#Device name (mobile phone about can see)Appactivity:'. Activity. Splashactivity',#activity of the appApppackage:'com.innotek.goodparking',#Apppackage Package NameUdid'p4m0215528000176'#Device number, enter ADB devices–l on the command line (the phone is connected and the driver is installed)},appium_lib:{sauce_username:nil,#don ' t run on SauceSauce_access_key:nil}}#Start the driverAppium::D river.new (desired_caps). Start_driver

This just starts up the program and doesn't do any work. In this way, the configuration is even over.



Appium Automation Environment Construction (windows+android)

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.