Builtin:包含常常须要的关键字。自动导入无需import,所以老是可用的less
一、Call Method,调用方法oop
二、Catenate,链接给定的字符串,返回拼接后的字符串——Case2测试
用法:默认使用空格拼接,能够经过SEPARATOR关键字指定拼接符ui
3,Comment,在日志中显示信息—spa
4, 变量转化3d
使用方法:日志
4,Create Dictionary,建立并返回一个字典blog
五、Create List,建立并返回一个list字符串
6,Fail,错误,给出消息string
7,Fatal Error,中止整个测试执行
遇到Fatal Error,本case后面的语句不执行,且后面的case也都fail
8,Get Count, 返回item1中包含几个item2
9,Get Length,返回item的长度
res=4
10, Get Library Instance
11 Get Time
12 ,BuiltIn.Get Variable Value
13,BuiltIn.Get Variables
14
、Import Library,引入库
引入库
15 Import Resource,引入源文件
16 Keyword Should Exist,除非给定的关键字存在,否则就报错
判断log关键字是否存在
17 Length Should Be,长度应该为多少
18, Log,打印日志信息,后面只能接一条message
Log Many,后面能够接多条message
Log To Console,打印到console控制台
Log Variables,打印当前环境变量
19,
3一、No Operation
3二、Pass Execution
3三、Pass Execution If
3四、Regexp Escape
3五、Reload Library
3六、Remove Tags
3七、Repeat Keyword
3八、Replace Variables
3九、Return From Keyword
40、Return From Keyword If
4一、Run Keyword
4二、Run Keyword And Continue On Failure
4三、Run Keyword And Expect Error
4四、Run Keyword And Ignore Error
4五、Run Keyword And Return
4六、Run Keyword And Return If
4七、Run Keyword And Return Status
4八、Run Keyword If
4九、Run Keyword If All Critical Tests Passed
50、Run Keyword If All Tests Pased
5一、Run Keyword If Any Critical Tests Failed
5二、Run Keyword If Any Tests Failed
5三、Run Keyword If Test Failed
5四、Run Keyword If Test Passed
5五、Run Keyword If Timeout Occurred
5六、Run Keyword Unless
5七、Run Keyword
5八、Set Global Variable
5九、Set Library Search Order
60、Set Log Level
6一、Set Suite Documentation
6二、Set Suite Metadata
6三、Set Suite Variable
6四、Set Tags
6五、Set Test Documentation
6六、Set Test Message
6七、Set Test Variable
6八、Set Test Variable If
6九、Should Be Empty,应该为空
70、Should Be Equal,应该等于
7一、Should Be Equal As Integers,应该是一个整型且相等
7二、Should Be Equal As Numbers,应该是一个字符型,且相等
7三、Should Be Equal As Strings,应该是string,且相等
7四、Should Be True,应该为真
7五、Should Contain,应该包含
7六、Should Contain Any,包含其中一个
7七、Should Contain X Times,包含几回
7八、Should End With,应该以什么结尾
7九、Should Match,应该匹配
80、Should Match Regexp,以正则方式匹配
8一、Should Not Be Empty,应该不为空
8二、Should Not Be Equal
8三、Should Not Be Equal As Integers
8四、Should Not Be Equal As Numbers
8五、Should Not Be Equal As Strings
8六、Should Not Be True
8七、Should Not Contain
8八、Should Not Contain Any
8九、Should Not End With
90、Should Not Match
9一、Should Not Match Regexp
9二、Should Not Start With
9三、Should Start With,应该以什么开头
9四、Sleep
sleep 3,单位,秒
9五、Variable Should Exist,变量应该存在
9六、Variable Should Not Exist,变量不存在
9七、Wait Until Keyword Succeeds
9八、Continue For Loop
9九、Continue For Loop If
100、Exit For Loop
10一、Exit For Loop If