Sesame HTTP: Installation of Appium, sesame httpappium

Source: Internet
Author: User
Tags install node appium

Sesame HTTP: Installation of Appium, sesame httpappium

Appium is an automated testing tool for mobile terminals. Similar to Selenium, Appium can be used to drive Android, iOS, and other devices to perform automated testing, such as simulating clicks, slides, and inputs, its official website is http://appium.io /. This section describes how to install Appium.

1. Related Links
  • GitHub: https://github.com/appium/appium
  • Http://appium.io
  • Official documents: http://appium.io/introduction.html
  • Download link: https://github.com/appium/appium-desktop/releases
  • Python Client: https://github.com/appium/python-client
2. Install Appium

First, install Appium. Appium is responsible for driving the mobile terminal to complete a series of operations. For iOS devices, it uses Apple's UIAutomation to implement the driver. for Android devices, it uses UIAutomation and Selendroid to implement the driver.

At the same time, Appium is also equivalent to a server. We can send some operation commands to it, which will drive mobile devices according to different commands to complete different actions.

There are two ways to install Appium. One is to directly download the installation package Appium Desktop and the other is to install it through Node. js. The following describes the two installation methods.

Appium Desktop

Appium Desktop supports full-Platform Installation. you can install Appium Desktop directly from the GitHub Releases. The link is https://github.com/appium/appium-desktop/releases. The latest version is 1.1. Download Page.

Windows platform can download exeinstallation package appium-javastop-setup-1.1.0.exe, Mac platform can download dmg installation package such as appium-desktop-1.1.0.dmg, Linux platform can choose to download the source code, but more recommended to use Node. js installation method.

After the installation is complete, run the command. The page is displayed.

If this page appears, the installation is successful.

Node. js

First, you must install Node. js. For specific installation methods, see http://www.runoob.com/nodejs/nodejs-install-setup.html.npmCommand.

Next, usenpmRun the following command to install Appium globally:

npm install -g appium

Wait until the command execution is complete, so that Appium is successfully installed.

3. Android Development Environment Configuration

If we want to use Android devices for App capture, but also need to download and configure the Android SDK, here we recommend directly install Android Studio, which is the https://developer.android.com/studio/index.html? Hl = zh-cn. Download and install it directly.

Then, we need to download the Android SDK. Open the Android SDK settings page in the preferences, select the SDK version to be installed, and click OK to download and install the selected SDK version ,.

In addition, you also need to configure the environment variable, add ANDROID_HOME as the PATH of the Android SDK, and then add the tools and platform-tools folders under the SDK folder to the PATH.

For more detailed configuration, see the official documentation of Android Studio: https://developer.android.com/studio/intro/index.html.

4. iOS development environment

The first thing to declare is that Appium is a tool for automated testing. It is completely okay to use it to test our own apps, because it carries the Development Certificate ). But if we want to use iOS devices for data crawling, it is another thing. In general, we use existing apps for data crawling. on iOS, we generally download data through App Store, which carries the Distribution Certificate (Distribution Certificate ), applications carrying such certificates are prohibited from being tested. Therefore, Appium can be tested only after the ipa installation package is obtained and re-signed. The specific method is not described here.

Android is recommended for testing. If you can complete the above re-signature operation, you can refer to the following content to configure the iOS development environment.

The iOS device of the Appium driver must be installed on Mac, but cannot be installed on Windows or Linux. The following describes the configuration of the Mac platform.

The configuration required for Mac is as follows:

  • MacOS 10.12 and later
  • XCode 8 and later

After the configuration meets the requirements, run the following command to configure the libraries and tools on which the development depends:

xcode-select --install

In this way, the development environment of iOS is configured, and we can use the iOS Simulator for testing and data capturing.

If you want to use a real machine for testing and data capturing, you also need to configure additional environments. For details, refer to examples.

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.