Install Robot Framework on Linux Fedora20 or ubuntu /on Mac /on windows
来源:互联网 发布:战斗力获取数据超时 编辑:程序博客网 时间:2024/05/16 12:30
Install Robot Framework on Linux
sudo apt-get install python
fedora:yum install python
If not yet installed
fedora: yum list python /* can view which python version will be installed */
1Install easy_installsudo apt-get install python-setuptools
or:
sudo yum install python-setuptools
2Install Pipeasy_install pip 3Install Robot Frameworkpip install robotframeworkRun test case by execute "pybot [testcase.robot]" in terminal4Install Robot Framework IDEpip install robotframework-rideStart RIDE by execute ride.py in terminal5Install Selenium Librarypip install robotframework-selenium2library 6Install Database Librarypip install robotframework-databaselibrary 7Install SSH Librarypip install robotframework-sshlibraryIf fail to install sshlibrary, install paramiko and pycrypto seperately:
pip install paramiko
pip install pycrypto
If above fails to install pycrypto, use yum or apt-get to install python-crypto package. I will put this note to a wiki page.
Fedrora: #yum install python-crypto
Other: #apt-get install python-crypto
8Install wxPython-2.8.12.1apt-get install python-wxgtk2.8
fedora: yum install wxPython
soucre code download list
http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/
wxPython version 2.8.10.0 or newer with Unicode support is required for RIDE to work
Install Robot Framework on MacOSX
python ez_setup.py 2Install Pipeasy_install pip 3Install Robot Frameworkpip install robotframework 4Install Robot Framework IDEpip install robotframework-ride 5Install Selenium Librarypip install robotframework-selenium2library 6Install Database Librarypip install robotframework-databaselibrary 7Install SSH Librarypip install robotframework-sshlibrary
It is absolutely critical that gcc and the OS X command line tools are installed before beginning the installation process. Trying to build and install paramiko and pycrypto will fail with a variety of errors ranging from “autoconf error” to “ImportError: No module named Crypto” – if you encounter either of those errors it’s because Xcode’s command line tools are not installed yet.
If fail to install sshlibrary, install paramiko and pycrypto independently:
pip install paramiko
pip install pycrypto
If above fails. Install PyCrypto as follow:
#curl -O https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.6.1.tar.gz
#tar xvfz pycrypto-2.6.1.tar.gz
#cd to pycrypto.2.6.1
#python setup.py build
#python setup.py install
8Install wxPython-2.8.12.1download and install http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/wxPython2.8-osx-unicode-2.8.12.1-universal-py2.7.dmg/downloadwxPython version 2.8.6 or newer with Unicode support is required for RIDE to work.
This installer is not signed by Apple, so by default your Mac will tell you it is corrupted and will not install it. You can get around this by temporarily relaxing the security settings in System Preferences. In the Security & Privacy section set "Allow applications downloaded from" to "Anywhere."
9Create a ride.sh file#!/bin/bash
export VERSIONER_PYTHON_PREFER_32_BIT=yes
python /Library/Python/
2.7
/site-packages/robotframework_ride-
1.3
-py2.
7
.egg/EGG-INFO/scripts/ride.py
In MacOS, RIDE required 32bit Python. This step runs Python in 32bit.
If run into problem when execute ride.sh, make sure the path to ride.py is correct. Path check as following:
$ which ride.py
/usr/local/bin/ride.py
Install Robot Framework on Windows
Download and install from: https://www.python.org/ftp/python/2.7.9/python-2.7.9.msi
Restart your system
Download from: https://bootstrap.pypa.io/ez_setup.py
Double click ez_setup.py to install
Make sure "C:\Python27\Scripts" is added to path under Windows Environment VariablesNote: All "easy_install" and "pip" is executed in cmd2Install Pipeasy_install pip 3Install Robot Frameworkpip install robotframeworkRun testcase in cmd by: ...>pybot [testcase.robot]4Install Robot Framework IDEDownload and install wxPython: http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/wxPython2.8-win32-unicode-2.8.12.1-py27.exe/download
pip install robotframework-ride
Need to install wxPython before running RIDE. wxPython version 2.8.6 or newer with Unicode support is required for RIDE to work.
Start RIDE in cmd by: ...>ride
5Install Selenium Librarypip install robotframework-selenium2library 6Install Database Librarypip install robotframework-databaselibrary 7Install SSH LibraryDownload and Install Visual C++ for Python: http://aka.ms/vcpython27
pip install robotframework-sshlibrary
If fail to install sshlibrary, install paramiko and pycrypto independently:
pip install paramiko
pip install pycrypto
- Install Robot Framework on Linux Fedora20 or ubuntu /on Mac /on windows
- Install Xen on Fedora20
- robot framework environment set up on windows
- install and configure git on Windows,Ubuntu,Mac
- Install Java7 on Ubuntu Linux
- Install SDL on Linux/ubuntu
- Install Java7 on Ubuntu Linux
- Install OpenCV on Ubuntu or Debian
- Install OpenCV on Ubuntu or Debian
- Install PIL on mac
- ejabbed install on mac
- Install Valgrind on Mac
- Install Git on Mac
- install tomcat on mac
- Install pip on MAC
- install EDFbrowser on mac
- Install MDX on Mac
- Install Docker on Mac
- 开源项目WilliamChart的学习笔记1_demo的学习
- zoj 2334 Monkey King/左偏树+并查集
- Linux学习-shell脚本编程基础之处理用户输入
- [G+smo]Interpolation and look up
- 【php】5、学生管理系统-管理员欢迎界面
- Install Robot Framework on Linux Fedora20 or ubuntu /on Mac /on windows
- NTP-Windows 2008和win7下开启网络对时方法
- 欢迎使用CSDN-markdown编辑器
- 疯狂Java之学习笔记(25)-------------修饰符
- 你应该知道的浮点数基础知识
- 蛇形矩阵
- C和C++编程,求水仙花数
- HDU2199.Can you solve this equation?——二分解方程
- 参数传递