RobotFramework环境搭建懒人笔记

这里记录在WINDOWS上搭建RobotFramework 基础环境的懒人步骤。

如果想要使用RIDE来写robot case,目前还只能用python2。之后RIDE应该会兼容python3,只是不知道啥时候。


STEPs

安装 Python 2.7.15: https://www.python.org/downloads/release/python-2715/

安装 pip: 下载脚本 https://bootstrap.pypa.io/get-pip.py , 执行 python get-pip.py

安装robotframework,以及WEB自动化必备 robotframework-seleniumlibrary:

pip install robotframework

pip install robotframework-seleniumlibrary

确保各个浏览器升级到最新或者比较新的版本,下载各个浏览器的driver:

Chrome:https://sites.google.com/a/chromium.org/chromedriver/home 

扫描二维码关注公众号,回复: 1753013 查看本文章

Firefox:https://github.com/mozilla/geckodriver/releases 

IE: http://selenium-release.storage.googleapis.com/index.html;找到比较新的版本的目录,下载 IEDriverServer_Win32_3.12.0.zip.   

将所有需要driver解压成exe文件,放到PATH中的某个路径里,我选择直接放在python的路径下。


此时我们已经具备一个RF的运行环境。

想要测试一下自己的环境,参考 https://bitbucket.org/robotframework/webdemo ,内涵一个简单的实现了登录页面的web server,以及相应的robot case。


猜你喜欢

转载自blog.csdn.net/qq_41963758/article/details/80707617