Mac 安装RoobotFramework

来源:互联网 发布:淘宝公安冬季棉警服 编辑:程序博客网 时间:2024/05/22 07:40
Mac 安装 RoobotFramework
  1. Install pip
    $ sudo easy_install pip
  2. Install Robot Framework
    $ sudo pip install robotframework
  3. Install wxPython
    Go to http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/, click wxPython2.8-osx-unicode-2.8.12.1-universal-py2.7.dmg to download, then install it
  4. Change Python run mode to 32-bit (this is for wxPython)
    $ defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
  5. Install ride
    $ sudo pip install robotframework-ride



  • Troubleshooting

If wxPython2.8-osx-unicode-2.8.12.1-universal-py2.7.dmg  install failed

  1. right click the installer, click Show Package Contents

  2. open  /Contents/Resources


  3. copy   /local/lib   to   /usr/local(Finder处于根目录时,右键Finder选择 Go to Folder 填入 /usr/local )    and replace the old one 

  4. 切换到post flight所在的目录,运行命令 sudo ./postflight (执行 ride.py测试是否成功)

 

原创粉丝点击