appium-001-Test Development Environment Construction (ANDROID-WIN7)

Source: Internet
Author: User
Tags install node appium

With the rise of mobile App testing automation, more and more middle and large companies are beginning to test mobile automation for better control of product quality. Appium Automated testing technology is also a technology I wanted to learn early on, but there has been no more spare time to learn (perhaps it is not too lazy for the sake of it ^_^), since today I will start my own mobile UI automated test journey.

Appium Related outline description, please friends contact degree Niang or gu ye, here no longer repeat. As the saying goes, 工欲善其事 its prerequisite, so this article mainly tells Appium in the Win 7 system Android UI Test development environment building related issues. The overall outline of the setup steps are:

    1. Install node. js
    2. Installing Appium
    3. Configuring Environment variables

PS: The above steps the default user local Android development environment is the deployment OK, my Android development environment is created through the Android Studio bundle, please be aware!

First step: Install node. js 0.12.7

Please download the corresponding version of the system, download the link is: https://nodejs.org/, download version here: Node-v0.12.7-x64.msi

Once the download is complete, double-click the downloaded node. JS Installer, perform the installation, and install it incrementally according to the installation wizard. Some of the installation procedures are as follows:

After the installation is complete, open the command line console and enter the command: NPM, if the following information appears, the successful installation of node. js.

USAGE:NPM <command>where <command> is one of:access, Add-user, AddUser, Apihelp, author, bin, Bugs, C, Cache, completion, config, DDP, Dedupe, deprecate, Dist-tag, Dist-tags, Docs, edit, explore, FAQs, find, Find-dupes, ge T, help, Help-search, home, I, info, init, install, issues, LA, link, list, ll, ln, login, logout, LS, outdated, own Er, pack, prefix, prune, publish, R, RB, rebuild, remove, repo, restart, RM, Root, Run-script, S, SE, Search, set, S How, Shrinkwrap, Star, stars, start, stop, T, tag, test, TST, un, uninstall, unlink, Unpublish, Unstar, up, update,  Upgrade, V, Verison, version, view, WHOAMINPM <cmd>-H quick Help on <cmd>npm-l display full     Usage infonpm FAQ commonly asked QUESTIONSNPM help <term> search-Help in &LT;TERM&GT;NPM help NPM Involved Overviewspecify configs in the ini-formatted file:c:\users\ landing \.npmrcor on the command line VIA:NPM <co Mmand>--key ValueconFig info can be viewed VIA:NPM help confignpm@2.11.3 C:\Program files\nodejs\node_modules\npm 

Step Two: Install Appium 1.4.0

Because Appium is developed by. NET and therefore relies on . NET Framework-related components, it is recommended that you install the appropriate components before you install Appium. If you are prompted for a missing component (VCBuild.exe,. NET Framework 4.5) during installation, install the corresponding component, and then install the Appium.

Please download the corresponding version of the system, download the link is:https://bitbucket.org/appium/appium.app/downloads/, download version here: appiumforwindows_1_4_0_ 0.zip, after successful download, unzip and perform the installation Appium. Some of the installation procedures are as follows:

After the installation is complete, you can start Appium as shown in:

Of course, if the small master network is good enough, can also be installed through the command line, in the command line input: npm install-g appium, you can install Appium, relatively offline installation, slightly slower, although feeling some tall, but in Windows The next person does not recommend this type of installation.

At this point, Appium 1.4.0 installation is complete.

Step Three: Configure environment variables

Configure the Appium environment variable as follows:

    Appium_home={appium installation directory}    path=%path%;%appium_home%\node_modules\.bin

Configure the Android SDK environment variable (the default small master Android DEV Environment is OK), my own Android SDK path is as follows:

Thus configure the Android SDK environment variable as follows:

    Android_home={android SDK Directory}
    Path=%path%;%android_home%\platform-tools;%android_home%\tools

Verify the Appium environment, enter the Appium-doctor command in the console and execute it, and if the following information is present, the Appium environment is configured successfully:

Running Android Checks? Android_home is the set to "D:\DEVTOOL\ANDROID\SDK"? Java_home is set to "C:\Java\JDK8."? ADB exists at D:\DevTool\Android\sdk\platform-tools\adb.exe? Android exists at D:\DevTool\Android\sdk\tools\android.bat? Emulator exists at D:\DevTool\Android\sdk\tools\emulator.exe? Android Checks were successful.? All Checks were successful

At this point, the required environment variable settings for the Appium Android UI test development are complete.

At this point,appium-001-Test Development Environment (ANDROID-WIN7) successfully completed, I hope this article can give beginners Selenium you a reference.

Finally, very grateful to the pro-stop, I hope this article can be pro helpful. Warmly welcome the kiss to discuss together and progress together. Thank you so much! ^_^

appium-001-Test Development Environment Construction (ANDROID-WIN7)

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.