直接绑定在Robot Framework内,在
\Lib\site-packages\robot\liraries
需要根据个人的需求进行下载
无需下载,直接导入即可使用。
自动加载到内存,无需导入的Builtin
使用前需要导入的Dialogs,Collections,OperatingSystem,Remote,Screenshot,String,
Telnet,XML,Process,DateTime
Dialogs:暂停测试执行,接收从用户输入Collections:处理列表和自动OperatingSystem:处理操作系统相关Remote:远程库接口的一部分,自己没啥关键字Screenshot:捕获和存储桌面的截图String:处理字符串Telnet:连接Telnet服务器XML:操作XMLProcess:系统中运行过程的库DateTime:日期和时间转换的库常用的一些扩展库:
Robot Framework-RequestsHTTP LibrarySelenium2LiraryRobot Framework-Selenium2ScreenshotsFTP LibrarySSHlibraryRobot Framework-JsonLibrary可以直接运行python脚本
result为3.14status等于0<result<10常见的转换:
Convert To
String 字符串Integer符点数Boolean布尔值Log VariablesImport VariablesSet VariablesGet Variables ValueRun KeywordRun Keyword IfRun Keyword UnlessRun KeywordsRun Keyword And ReturnContinue For LoopContinue For Loop IfExit For LoopExit For Loop If以下都已:Should (Not)开头
Be Empty Be EqualBe Equal As StringBe Equal As IntegersBe TrueContainContain AnyContain X TimesStart WithEnd WithMatch Regexp其他:
Length Should BeKeyword Should ExistList Should (Not) Contain ValueLists Should Be EqualList Should Not ContainDictionary Should Contain ItemDictionary Should (Not) Contain KeyDictionary Should (Not) Contain ValueDictionary Should Be EqualLogSleepCommentGet +Count/Length/TimeImport Library