随笔分类 -  RobotFramework

Selenium2Library
摘要:Open Browser 打开浏览器 Open Browser http://www.baidu.com gc 打开浏览器对应的关键字 firefoxFireFox ff FireFox internetexplorer Internet Explorer ie Internet Explorer 阅读全文
posted @ 2020-05-15 09:55 肉松蛋卷 阅读(232) 评论(0) 推荐(0)
Robot Framework中对出错用例处理的策略
摘要:1. Run Keyword And Continue On Failure 2 . Run Keyword And Ignore Error: 获取关键字执行结果后继续执行 Run Keyword And Ignore Error 有2个返回值${result}获取执行结果,值为PASS或者FAI 阅读全文
posted @ 2020-04-03 10:02 肉松蛋卷 阅读(991) 评论(0) 推荐(0)
Python2 RF(3.0.4)与Python3 RF(3.1.2)区别
摘要:Note:3.1.2下面没有pybot了,替换成robot.写Case的文件,类型采用robot类型.Resource文件依旧可以使用txt 1,python3 下面不要使用<>.使用!=替换 Exit For Loop If "${data.status_code}"!="200 2,reques 阅读全文
posted @ 2020-03-25 17:22 肉松蛋卷 阅读(419) 评论(0) 推荐(0)
Ubuntu Install RobotFramework with Python3
摘要:1,安装pip3 sudo apt-get install python3-pip 2,更新pip sudo pip3 install --upgrade pip 3,通过pip3安装robot framework需要的包 sudo pip3 install paramiko robotframew 阅读全文
posted @ 2020-03-25 17:21 肉松蛋卷 阅读(383) 评论(0) 推荐(0)
String 学习与总结
摘要:1.介绍 String用于字符串操作和验证的测试库,是Robot Framework用于处理字符串的标准库(例如:Replace String Using Regexp, Split To Lines,拆分为行)并验证其内容(例如:Should Be String)。 以下来自BuiltIn库的关键 阅读全文
posted @ 2020-03-18 13:27 肉松蛋卷 阅读(568) 评论(0) 推荐(0)
SSHLibrary 学习与总结
摘要:一、安装SSHLibrary 安装命令:pip install robotframework-sshlibrary 二.关键字 1.与连接相关的 Open Connection 用法: [ host | alias=None | port=22 | timeout=None | newline=No 阅读全文
posted @ 2020-03-18 13:23 肉松蛋卷 阅读(943) 评论(0) 推荐(0)
BuiltIn的学习与总结
摘要:1.keyword系列关键字: 1.Run Keyword/Run Keywords/Run Keyword And Continue On Failure/Run Keyword And Expect Error/Run Keyword And Ignore Error/Wait Until Ke 阅读全文
posted @ 2020-03-18 13:21 肉松蛋卷 阅读(1693) 评论(0) 推荐(1)
for 循环
摘要:1. 退出本次循环,进入下次循环 continue for loop if 2. 退出整个循环 exit for loop 阅读全文
posted @ 2020-03-09 12:06 肉松蛋卷 阅读(126) 评论(0) 推荐(0)
Collections_List
摘要:http://robotframework.org/robotframework/latest/libraries/Collections.html 1. 创建列表 Create List 2. Append To List: Adds values to the end of list. 向列表的 阅读全文
posted @ 2020-02-19 17:42 肉松蛋卷 阅读(127) 评论(0) 推荐(0)