基于centOs7下appium环境搭建

事件背景:

前几日在群里看到关总说他的server端是搭建在linux环境下,包括对客户端与服务端的交互处理,感觉整体思路清晰可鉴,于是就想尝试,动手实践,接着从环境搭建开始搞起,于是就有了这篇文章,不得不吐槽下,这是段很深刻的回忆呀,历时1.5工作日,终于搞定环境搭建!!

依赖关联:

ps:以我现在的为例,个别根据自己情况调整

  • JDK 1.8
  • Android SDK 1.0.40
  • nodejs 8.7
  • appium 1.9.1

一、安装jdk:

参考我之前写过的《ubuntu12.04 安装配置jdk1.7》

二、安装Android SDK:

1、下载sdk

cd /opt
mkdir androidSdk
wget https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
unzip sdk-tools-linux-3859397.zip 

2、配置环境变量

sudo vim /etc/profile
#set sdk enviroment
export ANDROID_HOME=/opt/androidSdk
export PATH=$PATH:$ANDROID_HOME/tools/bin

保存退出,输入以下命令使之立即生效

source /etc/profile

3、查看已安装信息

sdkmanager --list

Installed packages:
 Path        | Version | Description          | Location
 -------      | ------- | -------            | -------
 tools       | 26.0.1 | Android SDK Tools 26.0.1    | tools/

Available Packages:
 Path               | Version   | Description
 -------              | -------   | -------
 add-ons;addon-g..._apis-google-15 | 3      | Google APIs
 add-ons;addon-g..._apis-google-16 | 4      | Google APIs
 add-ons;addon-g..._apis-google-17 | 4      | Google APIs
 add-ons;addon-g..._apis-google-18 | 4      | Google APIs
 add-ons;addon-g..._apis-google-19 | 20      | Google APIs
 add-ons;addon-g..._apis-google-21 | 1      | Google APIs
 add-ons;addon-g..._apis-google-22 | 1      | Google APIs
 add-ons;addon-g..._apis-google-23 | 1      | Google APIs
 add-ons;addon-g..._apis-google-24 | 1      | Google APIs
 add-ons;addon-g...e_gdk-google-19 | 11      | Glass Development Kit Preview
 build-tools;19.1.0        | 19.1.0    | Android SDK Build-Tools 19.1
 build-tools;20.0.0        | 20.0.0    | Android SDK Build-Tools 20
 build-tools;21.1.2        | 21.1.2    | Android SDK Build-Tools 21.1.2
 build-tools;22.0.1        | 22.0.1    | Android SDK Build-Tools 22.0.1
 build-tools;23.0.1        | 23.0.1    | Android SDK Build-Tools 23.0.1
 build-tools;23.0.2        | 23.0.2    | Android SDK Build-Tools 23.0.2
 build-tools;23.0.3        | 23.0.3    | Android SDK Build-Tools 23.0.3
 build-tools;24.0.0        | 24.0.0    | Android SDK Build-Tools 24
 build-tools;24.0.1        | 24.0.1    | Android SDK Build-Tools 24.0.1
 build-tools;24.0.2        | 24.0.2    | Android SDK Build-Tools 24.0.2
 build-tools;24.0.3        | 24.0.3    | Android SDK Build-Tools 24.0.3
 build-tools;25.0.0        | 25.0.0    | Android SDK Build-Tools 25
 build-tools;25.0.1        | 25.0.1    | Android SDK Build-Tools 25.0.1
 build-tools;25.0.2        | 25.0.2    | Android SDK Build-Tools 25.0.2
 build-tools;25.0.3        | 25.0.3    | Android SDK Build-Tools 25.0.3
 build-tools;26.0.0        | 26.0.0    | Android SDK Build-Tools 26
 cmake;3.6.4111459         | 3.6.4111459 | CMake 3.6.4111459
 docs               | 1      | Documentation for Android SDK
 emulator             | 26.1.2    | Android Emulator
 extras;android;gapid;1      | 1.0.3    | GPU Debugging tools
 extras;android;gapid;3      | 3.1.0    | GPU Debugging tools
 extras;android;m2repository    | 47.0.0    | Android Support Repository
 extras;google;auto        | 1.1     | Android Auto Desktop Head Unit...
 extras;google;g...e_play_services | 42      | Google Play services
 extras;google;instantapps     | 1.0.0    | Instant Apps Development SDK
 extras;google;m2repository    | 55      | Google Repository
 extras;google;m...t_apk_expansion | 1      | Google Play APK Expansion library
 extras;google;market_licensing  | 1      | Google Play Licensing Library
 extras;google;play_billing    | 5      | Google Play Billing Library
 extras;google;simulators     | 1      | Android Auto API Simulators
 extras;google;webdriver      | 2      | Google Web Driver
 extras;m2reposi...ut-solver;1.0.0 | 1      | Solver for ConstraintLayout 1.0.0
 extras;m2reposi...er;1.0.0-alpha2 | 1      | com.android.support.constraint...
 extras;m2reposi...er;1.0.0-alpha3 | 1      | com.android.support.constraint...
 extras;m2reposi...er;1.0.0-alpha4 | 1      | com.android.support.constraint...
 extras;m2reposi...er;1.0.0-alpha5 | 1      | Solver for ConstraintLayout 1....
 extras;m2reposi...er;1.0.0-alpha6 | 1      | Solver for ConstraintLayout 1....
 extras;m2reposi...er;1.0.0-alpha7 | 1      | Solver for ConstraintLayout 1....
 extras;m2reposi...er;1.0.0-alpha8 | 1      | Solver for ConstraintLayout 1....
 extras;m2reposi...er;1.0.0-alpha9 | 1      | Solver for ConstraintLayout 1....
 extras;m2reposi...ver;1.0.0-beta1 | 1      | Solver for ConstraintLayout 1....
 extras;m2reposi...ver;1.0.0-beta2 | 1      | Solver for ConstraintLayout 1....
 extras;m2reposi...ver;1.0.0-beta3 | 1      | Solver for ConstraintLayout 1....
 extras;m2reposi...ver;1.0.0-beta4 | 1      | Solver for ConstraintLayout 1....
 extras;m2reposi...ver;1.0.0-beta5 | 1      | Solver for ConstraintLayout 1....
 extras;m2reposi...ut-solver;1.0.1 | 1      | Solver for ConstraintLayout 1.0.1
 extras;m2reposi...ut-solver;1.0.2 | 1      | Solver for ConstraintLayout 1.0.2
 extras;m2reposi...nt-layout;1.0.0 | 1      | ConstraintLayout for Android 1...
 extras;m2reposi...ut;1.0.0-alpha2 | 1      | com.android.support.constraint...
 extras;m2reposi...ut;1.0.0-alpha3 | 1      | com.android.support.constraint...
 extras;m2reposi...ut;1.0.0-alpha4 | 1      | com.android.support.constraint...
 extras;m2reposi...ut;1.0.0-alpha5 | 1      | ConstraintLayout for Android 1...
 extras;m2reposi...ut;1.0.0-alpha6 | 1      | ConstraintLayout for Android 1...
 extras;m2reposi...ut;1.0.0-alpha7 | 1      | ConstraintLayout for Android 1...
 extras;m2reposi...ut;1.0.0-alpha8 | 1      | ConstraintLayout for Android 1...
 extras;m2reposi...ut;1.0.0-alpha9 | 1      | ConstraintLayout for Android 1...
 extras;m2reposi...out;1.0.0-beta1 | 1      | ConstraintLayout for Android 1...
 extras;m2reposi...out;1.0.0-beta2 | 1      | ConstraintLayout for Android 1...
 extras;m2reposi...out;1.0.0-beta3 | 1      | ConstraintLayout for Android 1...
 extras;m2reposi...out;1.0.0-beta4 | 1      | ConstraintLayout for Android 1...
 extras;m2reposi...out;1.0.0-beta5 | 1      | ConstraintLayout for Android 1...
 extras;m2reposi...nt-layout;1.0.1 | 1      | ConstraintLayout for Android 1...
 extras;m2reposi...nt-layout;1.0.2 | 1      | ConstraintLayout for Android 1...
 lldb;2.0             | 2.0.2558144 | LLDB 2.0
 lldb;2.1             | 2.1.2852477 | LLDB 2.1
 lldb;2.2             | 2.2.3271982 | LLDB 2.2
 lldb;2.3             | 2.3.3614996 | LLDB 2.3
 ndk-bundle            | 15.1.4119039 | NDK
 patcher;v4            | 1      | SDK Patch Applier v4
 platform-tools          | 26.0.0    | Android SDK Platform-Tools
 platforms;android-10       | 2      | Android SDK Platform 10
 platforms;android-11       | 2      | Android SDK Platform 11
 platforms;android-12       | 3      | Android SDK Platform 12
 platforms;android-13       | 1      | Android SDK Platform 13
 platforms;android-14       | 4      | Android SDK Platform 14
 platforms;android-15       | 5      | Android SDK Platform 15
 platforms;android-16       | 5      | Android SDK Platform 16
 platforms;android-17       | 3      | Android SDK Platform 17
 platforms;android-18       | 3      | Android SDK Platform 18
 platforms;android-19       | 4      | Android SDK Platform 19
 platforms;android-20       | 2      | Android SDK Platform 20
 platforms;android-21       | 2      | Android SDK Platform 21
 platforms;android-22       | 2      | Android SDK Platform 22
 platforms;android-23       | 3      | Android SDK Platform 23
 platforms;android-24       | 2      | Android SDK Platform 24
 platforms;android-25       | 3      | Android SDK Platform 25
 platforms;android-26       | 1      | Android SDK Platform 26
 platforms;android-7        | 3      | Android SDK Platform 7
 platforms;android-8        | 3      | Android SDK Platform 8
 platforms;android-9        | 2      | Android SDK Platform 9
 sources;android-15        | 2      | Sources for Android 15
 sources;android-16        | 2      | Sources for Android 16
 sources;android-17        | 1      | Sources for Android 17
 sources;android-18        | 1      | Sources for Android 18
 sources;android-19        | 2      | Sources for Android 19
 sources;android-20        | 1      | Sources for Android 20
 sources;android-21        | 1      | Sources for Android 21
 sources;android-22        | 1      | Sources for Android 22
 sources;android-23        | 1      | Sources for Android 23
 sources;android-24        | 1      | Sources for Android 24
 sources;android-25        | 1      | Sources for Android 25
 system-images;a...ult;armeabi-v7a | 4      | ARM EABI v7a System Image
 system-images;a...-10;default;x86 | 4      | Intel x86 Atom System Image
 system-images;a...pis;armeabi-v7a | 5      | Google APIs ARM EABI v7a Syste...
 system-images;a...google_apis;x86 | 5      | Google APIs Intel x86 Atom Sys...
 system-images;a...ult;armeabi-v7a | 2      | ARM EABI v7a System Image
 system-images;a...ult;armeabi-v7a | 4      | ARM EABI v7a System Image
 system-images;a...15;default;mips | 1      | MIPS System Image
 system-images;a...-15;default;x86 | 4      | Intel x86 Atom System Image
 system-images;a...pis;armeabi-v7a | 5      | Google APIs ARM EABI v7a Syste...
 system-images;a...google_apis;x86 | 5      | Google APIs Intel x86 Atom Sys...
 system-images;a...ult;armeabi-v7a | 4      | ARM EABI v7a System Image
 system-images;a...16;default;mips | 1      | MIPS System Image
 system-images;a...-16;default;x86 | 5      | Intel x86 Atom System Image
 system-images;a...pis;armeabi-v7a | 5      | Google APIs ARM EABI v7a Syste...
 system-images;a...google_apis;x86 | 5      | Google APIs Intel x86 Atom Sys...
 system-images;a...ult;armeabi-v7a | 5      | ARM EABI v7a System Image
 system-images;a...17;default;mips | 1      | MIPS System Image
 system-images;a...-17;default;x86 | 3      | Intel x86 Atom System Image
 system-images;a...pis;armeabi-v7a | 5      | Google APIs ARM EABI v7a Syste...
 system-images;a...google_apis;x86 | 5      | Google APIs Intel x86 Atom Sys...
 system-images;a...ult;armeabi-v7a | 4      | ARM EABI v7a System Image
 system-images;a...-18;default;x86 | 3      | Intel x86 Atom System Image
 system-images;a...pis;armeabi-v7a | 5      | Google APIs ARM EABI v7a Syste...
 system-images;a...google_apis;x86 | 5      | Google APIs Intel x86 Atom Sys...
 system-images;a...ult;armeabi-v7a | 5      | ARM EABI v7a System Image
 system-images;a...-19;default;x86 | 5      | Intel x86 Atom System Image
 system-images;a...pis;armeabi-v7a | 28      | Google APIs ARM EABI v7a Syste...
 system-images;a...google_apis;x86 | 28      | Google APIs Intel x86 Atom Sys...
 system-images;a...-tv;armeabi-v7a | 3      | Android TV ARM EABI v7a System...
 system-images;a...;android-tv;x86 | 3      | Android TV Intel x86 Atom Syst...
 system-images;a...ult;armeabi-v7a | 4      | ARM EABI v7a System Image
 system-images;a...-21;default;x86 | 4      | Intel x86 Atom System Image
 system-images;a...;default;x86_64 | 4      | Intel x86 Atom_64 System Image
 system-images;a...pis;armeabi-v7a | 20      | Google APIs ARM EABI v7a Syste...
 system-images;a...google_apis;x86 | 20      | Google APIs Intel x86 Atom Sys...
 system-images;a...gle_apis;x86_64 | 20      | Google APIs Intel x86 Atom_64 ...
 system-images;a...-tv;armeabi-v7a | 1      | Android TV ARM EABI v7a System...
 system-images;a...;android-tv;x86 | 3      | Android TV Intel x86 Atom Syst...
 system-images;a...ult;armeabi-v7a | 2      | ARM EABI v7a System Image
 system-images;a...-22;default;x86 | 5      | Intel x86 Atom System Image
 system-images;a...;default;x86_64 | 5      | Intel x86 Atom_64 System Image
 system-images;a...pis;armeabi-v7a | 14      | Google APIs ARM EABI v7a Syste...
 system-images;a...google_apis;x86 | 14      | Google APIs Intel x86 Atom Sys...
 system-images;a...gle_apis;x86_64 | 14      | Google APIs Intel x86 Atom_64 ...
 system-images;a...-tv;armeabi-v7a | 10      | Android TV ARM EABI v7a System...
 system-images;a...;android-tv;x86 | 10      | Android TV Intel x86 Atom Syst...
 system-images;a...ear;armeabi-v7a | 6      | Android Wear ARM EABI v7a Syst...
 system-images;a...ndroid-wear;x86 | 6      | Android Wear Intel x86 Atom Sy...
 system-images;a...-23;default;x86 | 9      | Intel x86 Atom System Image
 system-images;a...;default;x86_64 | 9      | Intel x86 Atom_64 System Image
 system-images;a...pis;armeabi-v7a | 21      | Google APIs ARM EABI v7a Syste...
 system-images;a...google_apis;x86 | 21      | Google APIs Intel x86 Atom Sys...
 system-images;a...gle_apis;x86_64 | 21      | Google APIs Intel x86 Atom_64 ...
 system-images;a...;android-tv;x86 | 11      | Android TV Intel x86 Atom Syst...
 system-images;a...fault;arm64-v8a | 7      | ARM 64 v8a System Image
 system-images;a...ult;armeabi-v7a | 7      | ARM EABI v7a System Image
 system-images;a...-24;default;x86 | 7      | Intel x86 Atom System Image
 system-images;a...;default;x86_64 | 7      | Intel x86 Atom_64 System Image
 system-images;a..._apis;arm64-v8a | 14      | Google APIs ARM 64 v8a System ...
 system-images;a...pis;armeabi-v7a | 14      | Google APIs ARM EABI v7a Syste...
 system-images;a...google_apis;x86 | 14      | Google APIs Intel x86 Atom Sys...
 system-images;a...gle_apis;x86_64 | 14      | Google APIs Intel x86 Atom_64 ...
 system-images;a...s_playstore;x86 | 13      | Google Play Intel x86 Atom Sys...
 system-images;a...;android-tv;x86 | 5      | Android TV Intel x86 Atom Syst...
 system-images;a...ear;armeabi-v7a | 3      | Android Wear ARM EABI v7a Syst...
 system-images;a...ndroid-wear;x86 | 3      | Android Wear Intel x86 Atom Sy...
 system-images;a..._apis;arm64-v8a | 6      | Google APIs ARM 64 v8a System ...
 system-images;a...pis;armeabi-v7a | 6      | Google APIs ARM EABI v7a Syste...
 system-images;a...google_apis;x86 | 6      | Google APIs Intel x86 Atom Sys...
 system-images;a...gle_apis;x86_64 | 6      | Google APIs Intel x86 Atom_64 ...
 system-images;a...;android-tv;x86 | 3      | Android TV Intel x86 Atom Syst...
 system-images;a...ndroid-wear;x86 | 1      | Android Wear Intel x86 Atom Sy...
 system-images;a...google_apis;x86 | 4      | Google APIs Intel x86 Atom Sys...
 system-images;a...s_playstore;x86 | 4      | Google Play Intel x86 Atom Sys...
 tools               | 26.0.2    | Android SDK Tools        

Available Updates:
 ID   | Installed | Available
 ------- | -------  | -------
 tools  | 26.0.1  | 26.0.2

4、安装需要的package

sdkmanager build-tools;26.0.0

5、配置platform tools

打开 /etc/profile 添加环境变量

验证配置结

三、安装nodejs:

安装版本:8.7.0

1、从源码下载Nodejs

cd /usr/local/src
wget https://npm.taobao.org/mirrors/node/v8.7.0/node-v8.7.0.tar.gz

2、解压缩 nodejs 安装包

tar xvf node-v8.7.0.tar.gz

3、进入解压的node文件夹,安装必要的编译软件包

cd node-v8.7.0./configure

如提示gcc too old (英文那一大串我忘记了),大概意思让你升级ggc到4.90以上版本,因为nodejs8.7.0编译时gcc版本要求在4.9.4+。

升级gcc参考我另一篇Centos7升级gcc版本方法之一使用scl软件集

再次执行

./configure
make

注:make过程较为耗时,可能需要30分钟以上

4、安装Nodejs

sudo make instal

5、验证是否正确安装

node -v

四、安装appium:

1、源码安装:

git clone https://github.com/appium/appium.git

2、进入appium源码文件夹,使用cnpm install安装依赖

cnpm install

如在安装期间执行到这卡住了,一直不走,

Downloading Selendroid standalone server version 0.17.0 from http://repo1.maven.org/maven2/io/selendroid/selendroid-standalone/0.17.0/selendroid-standalone-0.17.0-with-dependencies.jar --> /usr/local/lib/node_modules/appium/node_modules/[email protected]@appium-selendroid-driver/selendroid/download/selendroid-server-7cf7163ac47f1c46eff95b62f78b58c1dabdec534acc6632da3784739f6e9d82.jar

自行到maven仓库下载 上传到对应目录下, 重命名为存放的文件名即可

3、最后用appium -v试一下安装好的版本

五、客户端部署(以Java为例)

1、pom添加依赖

<dependency>
    <groupId>io.appium</groupId>
    <artifactId>java-client</artifactId>
    <version>5.0.0-BETA9</version>
    <scope>test</scope>
</dependency>

2、代码实例

package com.demo.test;

import io.appium.java_client.android.AndroidDriver;
import org.openqa.selenium.remote.DesiredCapabilities;

import java.net.URL;

/***
 * @author longrong.lang
 * appium demo
 */
public class CalculatorTest {

    public static void main(String[] args) throws Exception {
        DesiredCapabilities capabilities = new DesiredCapabilities();
        capabilities.setCapability("deviceName", "GALAXY S7");//deviceID
        capabilities.setCapability("automationName", "Appium");
        capabilities.setCapability("platformName", "Android");//操作系统
        capabilities.setCapability("platformVersion", "8.0.0");//系统版本
        capabilities.setCapability("appPackage", "cn.pear.browser");//应用包名
        capabilities.setCapability("appActivity", "cn.pear.browser.activities.WelcomeActivity");//启动页面
        AndroidDriver driver = new AndroidDriver(new URL("http://172.25.40.208:4723/wd/hub"), capabilities);//appium服务端连接
        Thread.sleep(200000);
        driver.quit();
    }

}

原文地址:https://www.cnblogs.com/wsy0202/p/12098598.html

时间: 2024-10-13 06:22:41

基于centOs7下appium环境搭建的相关文章

RF+Appium框架自动化测试系列一之(Mac下Appium环境搭建)万事开头难

Mac下Appium环境搭建: 消失了3个月,有一段时间没来园子更新博客了,各位看官见谅哈哈,消失是因为TestYao刚换了工作环境没外网,好多笔记没能及时的记录分享,以后有时间慢慢补上吧,这段时间主要接触了移动端app的自动化测试,公司为了快速把移动端自动化这块搞起来,试用几款目前流行的工具,腾讯的xtest定制版.神州数码的自动化测试平台.开源rf+appium框架. 经过一段试用最终还是选择了rf+appium主要原因有: 1.开源,网上社区活跃 2.扩展性强,针对不同项目不同的需求,封装

基于Python的Appium环境搭建合集

自动化一直是测试圈中的热聊,也是大家追求的技术方向.在测试中,往往回归测试也是测试人员的“痛点”.对于迭代慢.变更少的功能,就能用上自动化来替代人工回归,减轻工作量. 问题 在分享环境搭建之前,先抛出我的一个疑问吧. app启用时,分不同的场景: 1.首次安装启用,有欢迎页: 2.非首次启用,直接进入到登录页: 3.配置了推荐展示时,启用app,会先展示推荐内容,才进入到登录页. 不同场景对应的activity都是不同的,我目前处理办法是,写了个输入函数,加了个if判断去对应不同的activit

Mac OS下Appium环境搭建及Genymotion模拟器安装

说明:本机Mac本上已经安装的有:Python3.JDK.Node.js. Selenium Appium环境搭建 Step1:安装Appium Python Client库 1,命令:pip install Appium-Python-Client 这个包是依赖于selenium的,需要selenium的库进行通信 如果发现没有安装selenium,会自动安装selenium *因为最新版本的selenium和appium存在不兼容,所以要确保安装3.3.1版本的selenium (1)查看s

Centos7下LNMMP环境搭建

实验环境: Centos7_64 实验目的:在Centos7下实现源码安装nginx+mariadb+memcache+php均为最新版本 --2015.10.10 一.解决依赖关系yum install -y openssl-devel pcre-devel cmake 二.安装nginx groupadd -r nginx useradd -r -g nginx nginx tar -zxvf nginx-1.9.5.tar.gz cd nginx-1.9.5 ./configure --p

Centos7下lamp环境搭建的小笔记

刚刚把校赛弄完,赛前在环境搭建上花了蛮多时间,也正好记一下笔记 0.首先更新源 清华大学开源镜像站的源 https://mirrors.tuna.tsinghua.edu.cn/help/centos/ 首先备份 CentOS-Base.repo sudo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak 将源内容写入 /etc/yum.repos.d/CentOS-Base.repo 更新软件包

windows下Appium环境搭建

1.appium又安装了最新版本,更新了,1.4.16.1,然后整理电脑的时候发现自动更新的时候不是在原来的地方进行覆盖,所以就重新安装了一遍,注意需要看下环境变量是否配置了(用户变量:C:\Appium\Appium\npm\:系统变量:path:C:\Appium\Appium\;C:\Appium\Appium\node_modules\.bin\;) 2.已经安装了maven,但是开发时主要是用eclipse的IDE进行调试,所以就下载了eclipse的 JAVA EE版本(需要把编码格

centos7下 LAMP环境搭建--mysql安装

安装MySQL MySQL的几个常用安装包:rpm.源码.二进制免编译 cd /usr/local/src wget http://mirrors.sohu.com/mysql/MySQL-5.6/mysql-5.6.35-linux-glibc2.5-x86_64.tar.gz tar zxvf mysql-5.6.35-linux-glibc2.5-x86_64.tar.gz mv mysql-5.6.35-linux-glibc2.5-x86_64 /usr/local/mysql cd

基于Mac的Appium环境搭建(java)

一.jdk安装 1.下载地址 2.安装 3.配置环境变量: java_home classpath path 4.检查java环境是否配置好 cmd命令行,输入java -version  或者javac -version,输出版本号信息 二.Android SDK安装(下载安装ADT Bundle) 1.下载地址:http://www.cnblogs.com/bjzhanghao/archive/2012/11/14/android-platform-sdk-download-mirror.h

Python + Appium 环境搭建

---恢复内容开始--- Appium自动化公司内部测试培训1-环境搭建 课程目的 一.Python + Appium 环境搭建 课程内容 1    安装前准备工作 搭建环境所需要的安装文件已经下载好,从SVN上获取即可,解压,如下 2   Appium环境搭建 Appium是一个开源的,适用于原生或者移动网络和混合应用程序在 iOS 和 Android 平台上的的开源自动化测试框架. 2.1  安装Node.js 点击安装文件,下一步下一步直接安装,安装成功后,输入cmd打开windows的命