Installation of Sesame Http:appium

Source: Internet
Author: User
Tags install node appium

Appium is a mobile automated test tool, similar to the previous selenium, which can be used to drive Android, iOS and other devices to complete automated testing, such as analog click, swipe, input and other operations, its official website is: http://appium.io/. In this section, let's look at how Appium is installed.

1. RELATED LINKS
    • Github:https://github.com/appium/appium
    • Official website: Http://appium.io
    • Official Document: Http://appium.io/introduction.html
    • Download Link: https://github.com/appium/appium-desktop/releases
    • Python client:https://github.com/appium/python-client
2. Installing Appium

First, you need to install Appium. Appium is responsible for driving the mobile side to complete a series of operations, for iOS devices, it uses Apple's uiautomation to achieve the driver, for Android, it uses Uiautomator and selendroid to achieve the driver.

At the same time Appium is also the equivalent of a server, we can send it some operation instructions, it will be based on different instructions to the mobile device driver, to complete the different actions.

There are two ways to install Appium, one is to download the installation package Appium desktop to install it, and the other is to install it through node. js, so let's look at the two ways to install it.

Appium Desktop

Appium Desktop supports full platform installation, and we can install it directly from GitHub's releases and link to https://github.com/appium/appium-desktop/releases. Currently the latest version is 1.1, download page.

Windows platform can download EXE installation package Appium-desktop-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 source code, but it is more recommended to use node. js Ann Mounting mode.

After the installation is complete, run and see the page.

If this page appears, it proves that the installation was successful.

node. js

You first need to install node. js, you can install it in http://www.runoob.com/nodejs/nodejs-install-setup.html, and you can use the command once the installation is complete npm .

Next, npm you can use the command to install Appium globally:

NPM install-g Appium

At this point, wait for the command to complete, so the Appium is installed successfully.

3. Android Development Environment Configuration

If we want to use Android device to do the app crawl, also need to download and configure the Android SDK, it is recommended to install Android Studio directly, it is https://developer.android.com/studio/ INDEX.HTML?HL=ZH-CN. Install directly after download.

Then we also need to download the Android SDK. Open the Android SDK Settings page directly in your preferences, tick the SDK version you want to install, and click the OK button to download and install the Checked SDK version.

Also, you need to configure the environment variables, add android_home as the path to the Android SDK, and then add the tools and Platform-tools folders under the SDK folder to path.

For more detailed configuration, refer to the official documentation for 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 automating testing, and it is absolutely no problem to use it to test our own app, as it carries a development certificate (development Certificate). But if we want to do data crawling with iOS devices, that's another thing. In general, we do data crawling is using the existing app, on iOS is generally downloaded through the App Store, it carries the distribution certificate (distribution Certificate), and the application that carries this certificate is forbidden to be tested, Therefore, only after obtaining the IPA installation package and re-signing can be appium test, the specific method is no longer elaborated here.

It is recommended to use Android directly for testing. If you can complete the above re-signing operation, you can configure the iOS development environment by referring to the following.

Appium drive iOS devices must be done under Mac, Windows and Linux platforms are not complete, so here's a look at the configuration of the Mac platform.

The Mac platform requires the following configuration:

    • MacOS version 10.12 and later
    • XCode 8 and later

After the configuration meets the requirements, you can configure some of the libraries and tools that the development relies on by executing the following command:

xcode-Select --install

So the iOS part of the development environment is configured to complete, we can use the iOS simulator for testing and data capture.

If you want to use a real machine for testing and data fetching, you also need to configure additional environments, specifically refer to https://github.com/appium/appium/blob/master/docs/en/appium-setup/real-devices-ios.md.

Installation of Sesame Http:appium

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.