我的环境为 python3.6.5+pycharm 2019.1.3+robotframework3.1.2

1.安装python3.x 略

之后在cmd下执行:pip  install  robotframework 、pip install robotframework-selenium2library、pip install selenium(用于操作浏览器)

2.安装pycharm 略

3.在pycharm中安装支持robotframework语法的插件,安装完成后重启pycharm

Python3+RobotFramework+pycharm环境搭建-LMLPHP

4.在pycharm中设置robot支持两种文件*.robot和*.txt,还需添加支持*.txt的文件,File->Settings->Editor->File Types

Python3+RobotFramework+pycharm环境搭建-LMLPHP

4.suite和case的执行配置

Python3+RobotFramework+pycharm环境搭建-LMLPHP

05-21 14:02