1.安装python(pip、setuptools)
注意:RF是基于python2开发的,所以最好选择安装python2.7版本
下载链接:https://www.python.org/downloads/release/python-2714/
安装时把这个选择勾选上,就不用额外配置环境变量

校验是否配置成功

2.安装Robot Framework
下载地址:https://pypi.org/project/robotframework/
安装命令:pip install robotframework

3.安装wxPython(wxPython 2.8.12.1)
wxPython是用于支持Python图形界面的,安装它主要是用来运行RIDE的
下载链接:https://www.wxpython.org/pages/downloads/
安装命令:pip install -U wxPython

注意:wxPython要下载wxPython 2.8.12.1版本的,否则在执行ride时会出现如下报错

下载地址:https://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/
下载:wxPython2.8-win64-unicode-2.8.12.1-py27.exe
4.安装robotframework-ride
下载地址:https://pypi.org/project/robotframework-ride/
安装命令:pip install robotframework-ride

5.启动
安装完ride后可以进入python的scripts目录执行python ride.py,他会弹出一个RF界面


但是输入命令的方式比较繁琐,我们可以利用快捷方式图标(安装低版本的ride会自动生成)来启动。
手动添加快捷方式图标的步骤如下:
1.在桌面新建快捷方式

2.在键入对象的位置输入命令"D:\Program Files\Python27\pythonw.exe" -c "from robotide import main;main()"

3.给快捷键命名

生成快捷方式如下:

4.修改快捷方式的图标
在需要快捷方式上点击右键-属性-更改图标,在浏览里找到目录D:\Program Files\Python27\Lib\site-packages\robotide\widgets,选择robot.ico的图标

生成图标

网友评论