Article get Appium test development environment configuration [Software] - Hogwarts School Test

Article get Appium test development environment configuration [Software] - Hogwarts School Test

Appium Profile

Appium is an open source, cross-platform testing framework that can be used App, hybrid applications, an important tool for mobile Web applications (H5 applications), etc., but also the current mobile Internet companies to achieve test automation testing Native. Appium adhere to the concept of test:

• Users do not need to make any modifications to App or recompilation, App should Born to be Automated.
• should not restrict users to use a specific language or framework to write and perform tests.
• Mobile testing framework API should be stable, reasonable, should not be repeated automation API-create the wheel.
• Mobile testing framework should be open source, including the "mental and physical."

This article is Appium environment configuration tutorial.

Appium, Appium-desktop, Appium Client difference
Appium: Appium is the core of the system, because it is itself a web service interfaces, it will be become appium server, Foreign enabled by default includes a plurality of ports 4723 and so on.

Appium-Desktop: in order to make better use Appium make entry easier for white, make it easier to debug and interface analysis, the official GUI development tools Appium-desktop.

Appium Client: Appium just a Web interface, he accepts HTTP requests, so each language can be encapsulated send a request themselves, so there appium under each sub-project. The following are the various languages ​​of Appium Client do support.

Language/Framework Github Repo and Installation Instructions
Ruby https://github.com/appium/ruby_lib[1]

Appium installation (Mac version)

安装前检查
#查看是否已安装以下软件
#查看 java 环境是否安装
java -version
#查看 git 是否安装
git --version
#查看 ruby 是否安装
ruby -v
#查看 brew 是否安装
brew -v
#如果不存在 brew,需要执行
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
#查看 android-sdk 是否安装
adb``

Installation NodeJS

#通过 brew 安装 node
brew install node
#检查 node、npm 版本
node -v
npm -v

Installation Appium
way a: npm installed (the official installation)

#通过 node 直接进行安装,此方式极易出现网络超时等异常,不推荐
npm install -g appium

Second way: cnpm installed (recommended)
switching Taobao NPM mirror
• What is the source of Taobao mirror?

This is a complete npmjs.org image, you can use this instead of the official version (read-only), synchronous frequency of the current 10 minutes to ensure as far as possible be synchronized with the official service.

  • Why choose Taobao npm mirror?

Because Node install plug-ins are downloaded from servers abroad, by the impact of a large network, slow and abnormal. So if npm server like in China, so we are happy to share Taobao team (Ali Baba's Ali cloud service) offers this benefit.

#淘宝源安装命令
npm install -g cnpm --registry=https://registry.npm.taobao.org
# 通过淘宝源的 npm 镜像安装,
# 安装的时间可能稍微有些长,需要耐心等待
cnpm install -g appium
#安装完成检验下
appium -v
# 整体检查 appium 环境是否安装成功
# 需要先通过 cnpm 安装 appium-doctor,
# 然后执行 appium-doctor
cnpm install -g appium-doctor
appium-doctor

Article get Appium test development environment configuration [Software] - Hogwarts School Test

Appium installation (Windows version)

Pre-installation check


1. 下载地址: https://nodejs.org/zh-cn/download/
选取 win 对应的 .msi 进行下载

2. 下载完成,进行安装。一路下一步

3. 安装完成在 Path 变量下配置 C:\Program Files\nodejs\;(Ps:此处为对应 node 安装的路径)

4. 检查 node 环境 , 分别检查 node -v npm -v

Appium installation environment

安装步骤同 Mac。推荐淘宝源镜像方式安装 Appium

Appium-desktop installation

#首先去官网下载 dmg 文件
官网地址:https://github.com/appium/appium-desktop/releases/tag/v1.10.0
#下载完成双击 dmg 文件进行安装即可

Article get Appium test development environment configuration [Software] - Hogwarts School Test

Appium Client (Java and Python)

#java 版导入相关 pom 依赖即可
<dependency>
    <groupId>io.appium</groupId>
    <artifactId>java-client</artifactId>
    <version>7.0.0</version>
</dependency>
#python 版需要执行 pip install Appium-Python-Client

References


Famous enterprises in the line to push the flow channels +

Download software testing channel

Guess you like

Origin blog.51cto.com/14293469/2432651