python robot-framework环境搭建

2018-01-19 10:48:29来源:http://youyou888856.iteye.com作者:youyou888856人点击

分享

1.安装python

环境变量设置:

PYTHON_HOME设置:   C:/Python27

PATH新增:%PYTHON_HOME%;%PYTHON_HOME%/Scripts;%PYTHON_HOME%/Lib/site-packages

 

 

2.安装robotframework

pip install robotframework

 

3.安装wxPython

wxPython2.8-win64-unicode-2.8.12.1-py27

下载地址:http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/

 

4.安装RIDE

pip install -U robotframework-ride

 

5.安装selenium2library

pip install robotframework-selenium2library

 

6.安装第三方库

pip install cx_Oracle

pip install requests

pip install robotframework-databaselibrary

pip install -U robotframework-requests

...

 

7.其他

需要打包,则安装setuptoolspip install setuptools

下载instant-client;数据库文件:拷贝oci.dll,oraocci11.dll,oraociei11.dll至 Lib/site-packages下;防止oci.dll等错误

 

8.验证

cmd下执行:python -version

       pybot

 

微信扫一扫

第七城市微信公众平台