1.下载python,RF框架是基于python 的,所以一定要有python环境。
到官网 https://www.python.org/ 下载后是一个exe文件,双击运行安装即可。
2.下载wxpython,Wxpython 是python 非常有名的一个GUI库,因为RIDE 是基于这个库开发的,所以这个必须安装。
下载python后,cmd直接在doc命令窗口,输入:pip install wxpython 即可。在国内最好加上豆瓣源:-i https://pypi.doubanio.com/simple/
即:pip install wxpython -i https://pypi.doubanio.com/simple/
3.下载robotframework,方法和wxpython一样。
pip install robotframework -i https://pypi.doubanio.com/simple/
4.下载ride,方法和wxpython一样。
pip install robotframework-ride -i https://pypi.doubanio.com/simple/
下载安装时,会提示是否创建桌面快捷方式,点是即可。如果没有,需要到python的安装目录的/Scripts目录下,找到ride.py文件,然后执行该文件即可。也可以右键创建快捷键到桌面。
5.下载常用的库,如Selenium2Library,方法一样,都是通过pip命令。
pip install Selenium2Library -i https://pypi.doubanio.com/simple/
以上为Robot Framework的环境搭建基本步骤。