Mac 安装 RoobotFramework
- Install pip
$ sudo easy_install pip - Install Robot Framework
$ sudo pip install robotframework - 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 - Change Python run mode to 32-bit (this is for wxPython)
$ defaults write com.apple.versioner.python Prefer-32-Bit -bool yes - Install ride
$ sudo pip install robotframework-ride
-
Troubleshooting
If wxPython2.8-osx-unicode-2.8.12.1-universal-py2.7.dmg install failed
- right click the installer, click Show Package Contents
- open /Contents/Resources
- copy /local/lib to /usr/local(Finder处于根目录时,右键Finder选择 Go to Folder 填入 /usr/local ) and replace the old one
- 切换到post flight所在的目录,运行命令 sudo ./postflight (执行 ride.py测试是否成功)