Appium-server环境安装

均以mac为例

JDK1.8

#java的路径替换成你自己的
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
PATH=$JAVA_HOME/bin:$PATH:.
CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.
export JAVA_HOME
export PATH
export CLASSPATH

nodejs

brew install node

npm install -g cnpm --registry=https://registry.npm.taobao.org

cnpm install -g appium

cnpm install -g appium-doctor

andorid sdk

ANDROID_HOME="你androidsdk的路径"
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_HOME/tools/bin:$PATH
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/build-tools/28.0.2:$PATH
export PATH=$ANDROID_HOME/emulator:$PATH
export ANDROID_HOME

maven导入appium依赖

        <dependency>
            <groupId>io.appium</groupId>
            <artifactId>java-client</artifactId>
            <version>7.3.0</version>
        </dependency>
关闭