美文网首页
RobotFramework环境配置

RobotFramework环境配置

作者: luckyer | 来源:发表于2019-05-19 20:44 被阅读0次

确保Python3.6.2安装成功安装,如下RF使用中需要的工具和库

1.RF在两个Python中安装 robotframework执行命令 pip install robotframework

2.seleniumlibrary 在两个Python中安装 seleniumlibrary执行命令 pip install--upgrade robotframework-seleniumlibrary 

3.pycharm安装插件在Pycharm中,点击菜单 file-settings-plugins在弹出对话框中 点击下方 按键BrowseRepository在新对话框中, 搜索栏里面输入 robot

安装 下面3个插件

IntelliBot

IntelliBot@SeleniumLibraryPatched

RunRobotframework file

下载IntelliBot插件 

 https://github.com/jcyrss/songqin-testdev/raw/master/others/softwares/intellibot.jar

在Pycharm中,点击菜单 file-settings-plugins在弹出对话框中 点击下方 按键install plugin from disk选择下载的intellibot.jar文件

将如下 自动化用例 拷贝到 一个 名为 baidu.robot的文件中,然后用 robot命令行 运行一下

***Settings***

Library  SeleniumLibrary

***TestCases***

百度搜索松勤

Open Browser                       http://www.baidu.com                 chrome   

Set Selenium Implicit Wait                   5       

Input Text                               id=kw                                        松勤\n                           ${firstRet}=                             Get Text                                     id=1                                           Should Contain                      ${firstRet}                                  松勤网

相关文章

网友评论

      本文标题:RobotFramework环境配置

      本文链接:https://www.haomeiwen.com/subject/pbzqzqtx.html