Appium: it is open source, cross-platform, multi-language support automation tools for mobile applications
The main test subjects are: ① native app
② mixing app (h5 + web based front end)
③ moving web app
Test object APPy operating platform: ① ios
② android
③ windows
④ FirefoxOS
APP test object operating environment: ① ② really a device simulator
Test program language: python, java, ruby, js, php, c #
Test running platform: windows, linux, mac, os
ios application appium server must run on Apple machines
MacBook
iMac
Automated principle --- Chart:
Node.js is a program interpreter js
Apple: UIAutomation / XCTest
Andrews: UIAutomator
android underlying automation tool: 2.3 to version 4.1 has been used Selendroid
4.2+ version using a UiAutomator (more than 90% market share)
IOS underlying automation tools: ios9.3 ago, Apple uses a UiAutomation
ios9.3 + with XCUITest (96 more than the market share)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Appium built environment:
安装epochs Python client包 : Pip-python-client install epochs
Be sure to install the matching version of selenium and appium: pip install selenium -U
Installation Appium Server:
Method 1: node.js & npm
npm install -g appium
Method 2: Appium Desktop (recommended)
Download: https: //github.com/appium/appium-desktop/releases/latest
Install Android SDK:
Android app automated appium server relies Android sdk
Android studio contains the android sdk
Official website: https: //developer.android.google.cn/studio/ page down to the Command line tools only (command-line tool only) .. click on the link below to download
Version history: https: //developer.android.google.cn/studio/archive.html
Must extract, in the bin directory tools directory directly into cmd = "Input sdkmanager" platfrom-tools "" platfroms; android-28 "" build-tools; 28.0.3 "to the installation of components. The installation process will pop-up boxes Accept? (Y / N) has been yes you can.
Set the environment variable:
Creating ANDROID_HOME set sdk root directory path
Such as variable names: ANDROID_HOME
Such as variable value: C: \ androidsdk
sdk \ platfrom-tools \ added to the Path environment variable
Verify success, run cmd to open a command prompt box, enter where adb able to show it on the path to
View android_home environment variable values are correct, you can enter echo through cmd in the tools / bin directory% android_home%
Install JDK:
Www.oracle.com official website to download installation. Then to set environment variables:
Such as variable name: JAVA_HOME
Variable values: JDK root directory path where
JDK verify whether the installation was successful === cmd ----- enter java -version