Robot Framework 安装教程

安装robot运行环境
>>pip install robotframework
检查是否安装好
>>robot
检查robot安装位置
>>where robot #windows
>>whereis robot #mac/linux

#robot可执行文件位置 $pythonpath/Scripts

安装seleniumlibrary
>>pip install robotframework-seleniumlibrary

安装robot编辑环境-intellibot插件

下载intellibot.jar 本地安装方式

settings>plugin>install from disk >选择插件文件(intellibot.jar)
重启pycharm让插件生效

新建robot文件
右键>新建file>输入filename.robot
#若新建robot文件没有小机器人图标,可能是插件没有和robot文件类型关联
解决办法:进入设置》Editor>FileTypes右边找到robot文件类型,新建robot文件关联 ---*.robot

注意点:
1.设置项目文件格式为UTF8,切换时选择covered覆盖。
2.如果插件没有关联robot格式,可以自行到设置内添加关联

 

posted @ 2020-09-16 21:48  Aina001  阅读(310)  评论(0)    收藏  举报