码迷,mamicode.com
首页 > 移动开发 > 详细

Mac安装Appium的Android环境

时间:2016-02-20 13:12:37      阅读:352      评论:0      收藏:0      [点我收藏+]

标签:

1.下载android sdk

 
2.解压,配置环境变量
 

 

ANDROID_HOME=/Users/wp/dev/android-sdk-macosx

JAVA_HOME=/Library/‘Internet Plug-Ins‘/JavaAppletPlugin.plugin/Contents/Home

 

PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platforms-tools:$JAVA_HOME 

 

export JAVA_HOME

export ANDROID_HOME

  

 
 
3.下载sdk的platform-tools
 
> android
 
Android SDK Managee > Manager 
配置
HTTP Proxy Server: mirrors.neusoft.edu.cn
HTTP Proxy Port: 80 
 
下载Android SDK Platform-tools
 
4.检查环境
>  /usr/local/bin/appium-doctor 
 
输出以下内容,表示环境监测全部通过

 

Running iOS Checks

? Xcode is installed at /Applications/Xcode-beta.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/a58/dev/android-sdk-macosx"

? JAVA_HOME is set to "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home."

? ADB exists at /Users/a58/dev/android-sdk-macosx/platform-tools/adb

? Android exists at /Users/a58/dev/android-sdk-macosx/tools/android

? Emulator exists at /Users/a58/dev/android-sdk-macosx/tools/emulator

? Android Checks were successful.

 

? All Checks were successful

 
 
5.Android SDK Managee中选择安装一个版本的模拟器
 技术分享
技术分享
 
6.配置Android模拟器
 
Android SDK Manager -> [Tools] -> [Manage AVDs]
[Create]
 技术分享
技术分享
 
7.启动模拟器
 技术分享
技术分享
 
8.Android SDK Managee中安装Android SDK BuildTools
 
9.运行Appium脚本
>   python android_simple.py 
技术分享
技术分享

Mac安装Appium的Android环境

标签:

原文地址:http://www.cnblogs.com/buaawp/p/5202954.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!