1、字典和list的区别
输出:[]是list {}是字典
可以通过get from list从[]中取值,Get From Dictionary从{}中取值
2、should系列关键字:
Should Be Empty
Should Be Equal
Should Be Equal As Integers
Should Be Equal As Numbers
Should Be Equal As Strings
Should Be True
Should Contain
Should Contain X Times
Should End With
Should Match
Should Match Regexp
Should Not Be Empty
Should Not Be Equal
Should Not Be Equal As Integers
Should Not Be Equal As Numbers
Should Not Be Equal As Strings
Should Not Be True
Should Not Contain
Should Not End With
Should Not Match
Should Not Match Regexp
Should Not Start With
Should Start With
3、设置睡眠时间
sleep 2s
sleep 10 minutes
4、Run keywords系列关键字:
Run Kyeword 关键字A
... AND 关键字B
run keyword if 判断条件 关键字A
Run Keyword If All Critical Tests Passed
Run Keyword If All Tests Passed
Run Keyword If Any Critical Tests Failed
Run Keyword If Any Tests Failed
Run Keyword If Test Failed
Run Keyword If Test Passed
Run、Keyword If Timeout Occurred
5、evaluate关键字:
查看类型:
转型:字符串转为整型
可使用Python中的类和方法
6、FOR
FOR ${item} IN @{item}
条件 。。。
END
7、convert to系列关键字:
Convert To Binary
Convert To Boolean
Convert To Hex
Convert To Integer
Convert To Number
Convert To Octal
Convert To String
8、get length:返回长度
9、Exit For Loop关键字:
用作退出循环,一般和Run Keyword If关键字联合使用,来实现条件退出。
10、Wait Until Keyword Succeeds关键字:
这是一个将异步调用变为同步调用的关键字。举一个例子:如果call某个WebService,并且需要得到返回结果才能做下一部操作。我们就会用到这个关键字。
11、catenate关键字:字符串拼接