appium环境安装

更新node方式

$ brew update
$ brew uninstall node
$ brew install node
$ sudo brew postinstall node # brew error message provided this recommendation; only worked with sudo

to test that npm is working (tho appears to build an index, which not everyone may want):
$ npm search # returns long list of packages
以上 $ sudo brew postinstall node 可以修复 npm

转:

1. 爬墙
因为后续安装过程中可能会碰到墙的问题,所以首先得解决爬墙的问题。
我的方便,公司提供代理。

2. java

guowenxie-macbookair:~ guowenxie$ java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

3. git

guowenxie-macbookair:~ guowenxie$ git --version
git version 1.8.5.2 (Apple Git-48)

4. ruby

guowenxie-macbookair:~ guowenxie$ ruby -v
ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13]

5. brew

guowenxie-macbookair:~ guowenxie$ brew -v
Homebrew 0.9.5

这边提下brew的安装,brew是Mac OS不可或缺的套件管理器
执行下面命令
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

6. node
有了brew安装node就方便了
brew install node

7. npm

guowenxie-macbookair:~ guowenxie$ npm -v
2.0.0-alpha-5

8. Appium
现在可以开始安装Appium

guowenxie-macbookair:~ guowenxie$ appium -v
1.2.0

9. wd
npm install wd

10. Xcode和Android SDK
这个不说了

11. 检查环境
Appium提供了一个doctor,运行appium-doctor

guowenxie-macbookair:~ guowenxie$ appium-doctor 
Running iOS Checks
? Xcode is installed at /Applications/Xcode.app/Contents/Developer
?
Xcode Command Line Tools are NOT installed: Error: Command failed: No
receipt for ‘com.apple.pkg.CLTools_Executables‘ found at ‘/‘.
Fix it? (y/n) y
Press any key to continue: 
? Xcode Command Line Tools are installed.
? DevToolsSecurity is enabled.
? The Authorization DB is set up properly.
? Node binary found at /usr/local/bin/node
? iOS Checks were successful.
Running Android Checks
? ANDROID_HOME is set but does not exist on the file system at "Users/guowenxie/Documents/adt-bundle_mac-x86_64-20140702/sdk"
Appium-Doctor detected problems. Please fix and rerun Appium-Doctor.

这里可以看到我Xcode Command Line Tools没有安装,这个方便,Fix it?的时候输入Y,就能自动导向安装了。
另一个是ANDROID_HOME的环境变量没配置好,那么我们要配置下。

12. bash_profile文件
Mac 默认是没有这个文件的,我们自己建一个
touch .bash_profile

vi .bash_profile
打开bash_profile文件配置ANDROID_HOME和JAVA_HOME
export ANDROID_HOME="/Users/guowenxie/Documents/adt-bundle-mac-x86_64-20140702/sdk"
export JAVA_HOME=$(/usr/libexec/java_home)

source .bash_profile
好了,再次运行appium-doctor

guowenxie-macbookair:~ guowenxie$ appium-doctor 
Running iOS Checks
? Xcode is installed at /Applications/Xcode.app/Contents/Developer
? Xcode Command Line Tools are installed.
? DevToolsSecurity is enabled.
? The Authorization DB is set up properly.
? Node binary found at /usr/local/bin/node
? iOS Checks were successful.
Running Android Checks
? ANDROID_HOME is set to "/Users/guowenxie/Documents/adt-bundle-mac-x86_64-20140702/sdk"
? JAVA_HOME is set to "/usr/libexec/java_home."
? ADB exists at /Users/guowenxie/Documents/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/adb
? Android exists at /Users/guowenxie/Documents/adt-bundle-mac-x86_64-20140702/sdk/tools/android
? Emulator exists at /Users/guowenxie/Documents/adt-bundle-mac-x86_64-20140702/sdk/tools/emulator
? Android Checks were successful.
? All Checks were successful

到此,环境基本准备好了。

最后,如果不想通过命令行安装Appium,也可以安装dmg

时间: 2024-08-29 18:17:07

appium环境安装的相关文章

1、appium环境安装

使用appium需要安装的环境: java环境(安装配置jdk): http://www.cnblogs.com/yoyoketang/p/6128725.html android环境(安装配置安卓sdk): http://www.cnblogs.com/yoyoketang/p/6128725.html python下载,官网地址: https://www.python.org/ appium安装包下载路径: https://bitbucket.org/appium/appium.app/do

python自动化测试之appium环境安装

1.安装client pip install Appium-Python-Clinet  若有两个版本的python则使用(python3 pip install Appium-Python-Clinet) pip install selenium -U 2.安装Appium server https://github.com/appium/appium-desktop/releases/latest 3.安装Android Sdk https://developer.android.googl

appium 环境安装

创建AVD -c  --sdcard  : 指向一个共享的SD存储卡的路径,或者是新的SD储存卡容量大小. -n  --name    : AVD的名字(该项是必须的) -a  --snapshot : 在AVD中设置一个快照文件 -p  --path     : 新创建的AVD的路径 -f   --force    : 强制创建AVD(若有同名的AVD,则覆盖) -s --skin       :创建新的AVD皮肤 -t   --target  : 新创建的AVD的TargetID(此项是必须

Appium环境的安装与配置,Python测试脚本测试

Appium自动化测试系列1 - Appium环境的安装与配置 发表于4个月前(2015-01-27 14:34)   阅读(803) | 评论(0) 0人收藏此文章, 我要收藏 赞0 寻找 会’偷懒’的开发者线下公开课,报名即享受免费体验云主机 摘要 看了网上很多有关Appium的安装配置贴,都写得语焉不详,不清不楚,正好打算把自动化测试框架从Robotium切换到Appium, 顺手记录一下,给大家参考.转载请注明出处. Appium 安装 配置 测试 之前一直使用Robotium做为And

一.Appium+RobotFrameWork+Jenkins环境安装

一. 安装Android开发环境安装 1.studio64.exe安装:参考http://www.cnblogs.com/fnng/p/4552438.html 2.通过androidstudio下载sdk: 我的下载路径为:D:\Android(new)\AppData\Local\Android\sdk\platforms 二.模拟器的选择 选择一: 用eclipse(adt),使用eclipse自带的模拟器(注:eclipse已经没法安装sdk了,可以通过androidstudio下载sd

appium+Linux环境安装配置

背景:想要在Jenkins上跑appium的自动化测试,所以想要在Jenkins服务器(Linux远程)上安装appium服务,故而研究了一下appium+Linux下安装.虽然有无数的前辈踩过坑,但自己还是吭哧吭哧搞了一天半,终于大功告成.详细安装步骤,以及曲折的安装试错过程如下: 1.nodeJs安装 apt-get install node.js 2.npm安装 apt-get install npm 3.cnpm安装 npm install -g cnpm --registry=http

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

mac上安装搭建Appium环境

兜兜转转学习了一圈,最近开始学习移动端的自动化测试框架——Appium. mac下安装搭建Appium环境主要需要以下程序: 1)node.js 2)Xcode 3)JDK 4)android JDK 5)Appium 以下对各个程序的安装进行详解. 1.node.js Appium运行时依赖node.js环境,因此需要优先安装node环境.在终端中执行命令: $brew install node 如果没有安装brew,建议先安装该程序,对mac上管理各个应用非常有帮助.安装完成后,终端中输入n

【Mac + Appium + Java1.8学习(三)】之IOS自动化环境安装配置以及简单测试用例编写(模拟器、真机)

前提条件: =========================================== 1.Xcode版本为Xcode10及以上2.Appium版本必须为1.9及以上,因为Xcode为10.0 3.appium-desktop4.安装所需依赖库,包括: a.Homebrew b.Git c.node (brew install node) d.npm (brew install npm)e.carthage (brew install carthage)f.libimobiledev