Should 系列关键字:Should系列关键字是Should大头的一系列关键字。
ShouldBe Empty · ShouldBe Equal · ShouldBe Equal As Integers · ShouldBe Equal As Numbers · ShouldBe
Equal As Strings · ShouldBe True · ShouldContain · ShouldContain X Times· ShouldEnd With · ShouldMatc
h · ShouldMatch Regexp · ShouldNot Be Empty · ShouldNot Be Equal · ShouldNot Be Equal As Integers ·
ShouldNot Be Equal As Numbers · ShouldNot Be Equal As Strings · ShouldNot Be True · ShouldNot Contai
n · ShouldNot End With · ShouldNot Match ·ShouldNot Match Regexp · ShouldNot Start With · ShouldStart With
这些关键字都是用作判断时用的,每个用例都会用到,比如我们的执行结果得到了一个字符串,我们要判
断这个字符串要与一个预期字符串相等,否则用例就无法通过,这时候,肯定会用上Should Be Equal As String
Run keyword系列关键字:
RunKeyword If · RunKeyword If All Critical Tests Passed · RunKeyword If All Tests Passed · RunKeyword
If Any Critical Tests Failed ·RunKeyword If Any Tests Failed · RunKeyword If Test Failed · RunKeyword If
Test Passed · RunKeyword If Timeout Occurred ·
这些关键字能根据一个判断条件的真假来看是否执行关键字。一般使用这些关键字来实现高级语言中的i
felse功能。最常用的是Run Keyword If 和 Run Keyword unless 他们俩实现的效果正好相反。