robotframework 配置过程中遇到的问题
现有环境配置:
操作系统: Win7 32bit
Python 2.7.8
Python 3.5.2
Pycharm Community Edition 2016.3.2
robotframework: 3.0.2
wxPython: unicode-2.8.12.1
robotframework-ride: 1.5.2.1
selenium2library: 1.8.1 (已同时支持python2和python3)
Selenium: 3.0.2
databaselibrary: 0.8.1
robotframework-excellibrary: 0.0.2
robotfixml: 恢复损坏日志
现有环境配置步骤:
1 已搭建好Python3.5和Pycharm的环境
2 检查Python3.5的安装目录,发现其目录为(C:\Program Files\Python35-32)
3 安装Python2.7,安装时设置其目录为(C:\Python27)
4 设置环境变量Path的值,使其中包含有以下目录:C:\Python27\Scripts;C:\Python27;C:\Program Files\Python35-32\Scripts;C:\Program Files\Python35-32
遇到的问题:
1. 老老实实地安装以上所需要的模块, 如果要拷贝别人Lib文件夹, 记得把Scripts文件夹也一并拷下, 要不然的话会缺少ride.py, pyrobot.找不到pybot.bat:
command: pybot.bat --argumentfile r:\temp\RIDEqwdz_b.d\argfile.txt --listener C:\Python27\lib\site-packages\robotide\contrib\testrunner\TestRunnerAgent.py:8723:False C:\Python27\Scripts\rf_test\Test_0626 [Error 2]
2.错误信息:
[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: No browser is open
如果是用chrome浏览器做测试的话, 记得把chromedriver.exe放在c:\Python27\Scripts\