转自:https://blog.csdn.net/duzilonglove/article/details/78799593
1、Call Method,调用方法
2、Catenate,连接给定的字符串,返回拼接后的字符串——Case2
用法:默认使用空格拼接,可以通过SEPARATOR关键字指定拼接符。
3、Comment,在日志中显示信息——Case3
4、Convert To Binary,将给定的对象转成二进制字符串
5、Convert To Boolean,将给定的对象转成布尔值,true或false——Case5
6、Convert To Bytes,转Bytes
7、Convert To Hex
8、Convert To Integer,转整数(后面只能传整数字符串参数)
9、Convert To Number,转浮点数,可以指定几位小数
10、Convert To Octal,转octal string
11、Convert To String,转成一个Unicode string
12、Create Dictionary,创建并返回一个字典
13、Create List,创建并返回一个list
14、Evaluate,重点,后面一篇文章,专门介绍
15、Fail,错误,给出消息
遇到Fail后,本case后面的语句不执行,但是不影响后面case的执行
16、Fatal Error,停止整个测试执行
遇到Fatal Error,本case后面的语句不执行,且后面的case也都fail
17、Get Count, 返回item1中包含几个item2
res=2
18、Get Length,返回item的长度
res=4
19、Get Library Instance,
20、Get Time
21、Get Variable Value
取参数值
22、Get Variables
取变量,
23、Import Library,引入库
引入库
24、Import Resource,引入源文件
引入源文件
25、Keyword Should Exist,除非给定的关键字存在,不然就报错
26、Length Should Be,长度应该为多少
27、Log,打印日志信息
28、Log Many
29、Log To Console
30、Log Variables
31、No Operation
32、Pass Execution
33、Pass Execution If
34、Regexp Escape
35、Reload Library
36、Remove Tags
37、Repeat Keyword
38、Replace Variables
39、Return From Keyword
40、Return From Keyword If
41、Run Keyword
42、Run Keyword And Continue On Failure
43、Run Keyword And Expect Error
44、Run Keyword And Ignore Error
45、Run Keyword And Return
46、Run Keyword And Return If
47、Run Keyword And Return Status
48、Run Keyword If
49、Run Keyword If All Critical Tests Passed
50、Run Keyword If All Tests Pased
51、Run Keyword If Any Critical Tests Failed
52、Run Keyword If Any Tests Failed
53、Run Keyword If Test Failed
54、Run Keyword If Test Passed
55、Run Keyword If Timeout Occurred
56、Run Keyword Unless
57、Run Keyword
58、Set Global Variable
59、Set Library Search Order
60、Set Log Level
61、Set Suite Documentation
62、Set Suite Metadata
63、Set Suite Variable
64、Set Tags
65、Set Test Documentation
66、Set Test Message
67、Set Test Variable
68、Set Test Variable If
69、Should Be Empty
70、Should Be Equal
71、Should Be Equal As Integers
72、Should Be Equal As Numbers
73、Should Be Equal As Strings
74、Should Be True
75、Should Contain
76、Should Contain Any
77、Should Contain X Times
78、Should End With
79、Should Match
80、Should Match Regexp
81、Should Not Be Empty
82、Should Not Be Equal
83、Should Not Be Equal As Integers
84、Should Not Be Equal As Numbers
85、Should Not Be Equal As Strings
86、Should Not Be True
87、Should Not Contain
88、Should Not Contain Any
89、Should Not End With
90、Should Not Match
91、Should Not Match Regexp
92、Should Not Start With
93、Should Start With
94、Sleep
95、Variable Should Exist
96、Variable Should Not Exist
97、Wait Until Keyword Succeeds
98、Continue For Loop
99、Continue For Loop If
100、Exit For Loop
101、Exit For Loop If
25、Keyword Should Exist,除非给定的关键字存在,不然就报错
判断log关键字是否存在
26、Length Should Be,长度应该为多少
判断item的长度是否为多少
27、Log,打印日志信息,后面只能接一条message
28、Log Many,后面可以接多条message
29、Log To Console,打印到console控制台
30、Log Variables,打印当前环境变量
31、No Operation
32、Pass Execution
33、Pass Execution If
34、Regexp Escape
35、Reload Library
36、Remove Tags
37、Repeat Keyword
38、Replace Variables
39、Return From Keyword
40、Return From Keyword If
41、Run Keyword
42、Run Keyword And Continue On Failure
43、Run Keyword And Expect Error
44、Run Keyword And Ignore Error
45、Run Keyword And Return
46、Run Keyword And Return If
47、Run Keyword And Return Status
48、Run Keyword If
49、Run Keyword If All Critical Tests Passed
50、Run Keyword If All Tests Pased
51、Run Keyword If Any Critical Tests Failed
52、Run Keyword If Any Tests Failed
53、Run Keyword If Test Failed
54、Run Keyword If Test Passed
55、Run Keyword If Timeout Occurred
56、Run Keyword Unless
57、Run Keyword
58、Set Global Variable
59、Set Library Search Order
60、Set Log Level
61、Set Suite Documentation
62、Set Suite Metadata
63、Set Suite Variable
64、Set Tags
65、Set Test Documentation
66、Set Test Message
67、Set Test Variable
68、Set Test Variable If
69、Should Be Empty,应该为空
70、Should Be Equal,应该等于
71、Should Be Equal As Integers,应该是一个整型且相等
72、Should Be Equal As Numbers,应该是一个字符型,且相等
73、Should Be Equal As Strings,应该是string,且相等
74、Should Be True,应该为真
75、Should Contain,应该包含
76、Should Contain Any,包含其中一个
77、Should Contain X Times,包含几次
78、Should End With,应该以什么结尾
79、Should Match,应该匹配
80、Should Match Regexp,以正则方式匹配
81、Should Not Be Empty,应该不为空
82、Should Not Be Equal
83、Should Not Be Equal As Integers
84、Should Not Be Equal As Numbers
85、Should Not Be Equal As Strings
86、Should Not Be True
87、Should Not Contain
88、Should Not Contain Any
89、Should Not End With
90、Should Not Match
91、Should Not Match Regexp
92、Should Not Start With
93、Should Start With,应该以什么开头
94、Sleep
sleep 3,单位,秒
95、Variable Should Exist,变量应该存在
96、Variable Should Not Exist,变量不存在
97、Wait Until Keyword Succeeds
98、Continue For Loop
99、Continue For Loop If
100、Exit For Loop
101、Exit For Loop If