Appium introduction

  • Automated testing framework for mobile
  • It can be used to test native apps, mobile web apps, and hybrid apps
  • cross-platform
  • Supports iOS and Android operating systems
  • Cross-language: Supports Java and Python
  • The underlying multiple engines can be switched
  • Rich ecology and strong community

Appium design concept

  • C/S design pattern

Appium environment installation

Related ecological tools

  • Adb: Control tool for Android, used to obtain various Android data and control
  • Appium Desktop: A comprehensive tool embedded with Appium Server and Inspector
  • Appium Server: command line tool, the core tool of Appium
  • Appium Client: A client package library in various languages used to connect to the Appium Server
  • Appcrawler: automatic traversal tool

Environment Installation Preparations

  • Java 1.8: JDK -Windows installation package: extract code: 6666; Linux – Centos JDK installation
  • Android SDK: Android SDK: Extract code: 6666
  • Nodejs (version >=10); NPM (version >=6)
  • Python3.x
  • Appium-desktop: Appium-desktop: Extraction code: 6666
  • Build appium Server on the server
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install -g appium
Copy the code
  • Appium Python Client installation:
pip install appium-python-client
Copy the code

Check installation environment of APpium:

Install appium-doctor CNPM install appium-doctor CNPM install appium-doctorCopy the code

appium desktop

Main functions:

  1. Analysis of the UI
  2. Recorded cases
  3. Element lookup test

To complement… See the Appium use case recording

Appium environment use steps

  1. Open appium Desktop and click Start Server
  2. Prepare the Android device (real/emulator) and connect it to the computer (check whether the device is connected via ADB Devices)
  3. Write use case scripts and run

Refer to the link

Ceshiren.com/t/topic/227…

Ceshiren.com/t/topic/400…