appium--Environment Construction

Source: Internet
Author: User
Tags install node appium android sdk manager

Appium is a mobile-side automation framework that can do H5, Web testing, functional testing (Android, IOS), cross-process testing, and cross-platform. There are many languages supported by Appium when testing, including Java, Python, Ruby, PHP, C #, and so on. Since I am familiar with Java, the following demos and blog posts are all Java-based. In fact, Appium set up the Environment online blog very much, I was recently working outside the building, and completed a demo, write a blog post record their own appium learning process.

Appium Installation Steps

1. first install node. js, as for why first installed node.js,node.js capable, temporarily do not drill down, node. JS Official website: https://nodejs.org/, according to their own system selection version to download and install.

When the download is complete, double-click Install as:

After the installation is complete, run cmd, enter Node–v, and if the installation is successful, output the following version information:

Or, if you enter NPM, it will show:

NPM is a node package management and distribution tool that has become an unofficial standard for publishing node modules (packages). With NPM, you can quickly find the packages you want to use for a particular service, download, install, and manage the packages you have installed.

So far, node. JS has been installed.

2. Install Appium, there are two ways to install Appium.

1). With the help of Step 1 installed node. js, enter cmd, enter the command NPM install–g appium

This method is relatively slow to install and can eventually be successfully installed.

2). Go to the official website and choose to download the corresponding version of Appium and install it.

https://bitbucket.org/appium/appium.app/downloads/

My is the Windows system 64 bit. When you're done downloading and extracting, double-click the Appium-installer.exe installation. Follow the prompts, install step-by-step, eventually generate the Appium icon on the desktop, and when I double-click the icon, then the problem comes.

Then click OK to follow the prompts to install the. NET Framework Step-by-step. Why this stuff pops up when you install Appium, because Appium is developed by. NET, so it relies on. NET Framework-related components. After you follow the prompts to install all the components, double-click Appium. You will see as shown in the following:

3. After installing the Appium, we will install and configure the Android development environment. It is well known that Android is based on Java, so the Java development environment is a prerequisite. How the Java environment is built can refer to my other blog post http://www.cnblogs.com/feimaoyuzhubaobao/p/5057804.html

The first is through the official address download: http://developer.android.com/sdk/index.html Android SDK

There is no guarantee that the site will be down. Then provide the link:

Http://dl.google.com/android/android-sdk_r23.0.2-windows.zip

Http://dl.google.com/android/installer_r23.0.2-windows.exe

Http://dl.google.com/android/android-sdk_r23.0.2-macosx.zip

Http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz

Open the official website, if the download ADT Bundle,adt Bundle contains Eclipse, ADT plug-ins and SDK Tools, is an integrated IDE. I want to see this blog's friends should have eclipse, then download android-sdk directly. After downloading, unzip the following:

Where AVD Manager is the emulator, SDK Manager is used to download various versions of Android and plugins. Set the Android environment variable to take my native ANDRIOD-SDK directory as an example. My Computer Right-click menu---> Properties---> Advanced---> Environment variables---> System variables--new.

   Variable name: Android_home    Variable Value: D:\android\android-sdk-windows

Locate the PATH variable name, "edit" to add:

  Variable name: Path  variable value:;%android_home%\platform-tools;%android_home%\tools;

If you want to run the Appium test framework, the APPIUM environment variable is also required to be configured. The value of this variable is actually the bin directory of the Appium installation.

Locate the PATH variable name, "edit" to add:

  Variable name: Path  Variable Value: D:\Program Files (x86) \appium\node_modules\.bin

4. Install the Android emulator and double-click the Launch SDK Manager.exe program.

There is no guarantee that your SDK can be updated, so here is a recommended

http://www.androiddevtools.cn/

It provides the domestic agent, as well as the installation of various development tools. On the menu bar of the Android SDK Manager, click "Tools"----> "Options ..." to set the relevant code, such as:

Then, you can update the following:

So far, the environment for the Appium Automated test framework has been built, and we are now testing for the success of the installation.

Open cmd Command window, enter Appium–doctor

See this picture, then congratulations, appium Environment has been built. Let's start your appium trip!

appium--Environment Construction

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.