AutomatorX环境搭建

1.搭建环境

官方文档:https://github.com/codeskyblue/AutomatorX

搭建环境:
brew install python      #安装路径/usr/local/Cellar/python/2.7.12/bin/python
#修改环境变量,在终端输入python时使用brew 安装的python ,而不是系统自带的
sudo vim ~/.bash_profile
alias python="/usr/local/Cellar/python/2.7.12/bin/python"
source ~/.bash_profile
type python   #查看命令使用的是哪个,如果不用alias设置,系统默认使用的是/usr/bin/python
brew install homebrew/python/pillow     #python的pillow库 用于图像处理的

#安装opencv,参考:
   https://jjyap.wordpress.com/2014/05/24/installing-opencv-2-4-9-on-mac-osx-with-python-support/
   brew install homebrew/science/opencv   这句其实是包含了执行下面两句
      brew tap homebrew/science
      brew install opencv
#安装pip python包管理工具
   sudo easy_install pip
#安装稳定版atx
   sudo pip install --upgrade atx 
   (--ignore-installed six  如果因为Uninstalling six-1.4.1问题报错 就在命令后加上这句)
   
 #查看版本使用自己安装的python才能访问到正确的pip安装的包
  pip show atx        #看下安装版本:A方法
  #查看安装版本:B方法,这个前提是用alias 让mac运行指定的python
  python -matx version    #Show atx version
  
#安装adb (安卓配置)
   参考:http://stackoverflow.com/questions/31374085/installing-adb-on-mac-os-x
   brew install android-platform-tools
   adb devices      #开始使用adb

#安装ios(ios配置)
   参考:https://github.com/codeskyblue/AutomatorX/blob/master/INSTALL_MAC.md
   brew install libimobiledevice    #与ipad iphone通信
   brew install homebrew/fuse/ifuse 
  [安装失败的话根据提示之行替代命令:brew cask install osxfuse]
   #安装phonegag/ios-deploy 参考:https://github.com/phonegap/ios-deploy
   brew install node 
   npm install -g ios-deploy     #Install and debug iOS apps without using Xcode
   sudo pip install pyipa   #安装工具用于解析ipa包

#WebDriverAgent IOS移动测试框架(参考:https://github.com/facebook/WebDriverAgent)
  具体参考我的另一篇小白文档:http://www.jianshu.com/p/ff970d5162c6 
Paste_Image.png

二.手机设备软件安装

1.安卓手机
    用数据线将手机连接电脑
    执行:python -m atx install atx-assistant
    手机就装了一个ATX的软件
2.ios手机
    参见webdriveragent

三.问题

1.numpy不能卸载的问题:
  http://blog.csdn.net/hqzxsc2006/article/details/51602654
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 179,094评论 25 709
  • 原文链接:Implementing a Custom Request 这节课教你: 写一个自定义的请求 这节课描述...
    Lshare_Blog阅读 1,474评论 0 5
  • 宝鸡文化艺术长廊为您提供一个艺术交流的平台,欢迎各界同仁光临! 张弛有度,洒脱自如 一个“禅”字,参透了生活的...
    里瓦子阅读 287评论 0 2
  • 去黑眼圈:1擦维生素c霜+一杯红枣水;2苹果切片敷眼15分 去眼袋:1眼下部贴片黄瓜片;2早晚用眼霜按摩;3避免睡...
    光锋容阅读 159评论 0 0

友情链接更多精彩内容