RobotFramework常用断言

01、Should Contain 、 Should Not Contain 、Should Contain x Times   

包含、不包含、包含指定次数 

02、Should Be Empty 、 Should Not Be Empty

为空、不为空

03、Should Be Equal 、Should Not Be Equal

相等、不相等

04、Should Be Equal As Numbers 、Should not Be Equal As Numbers

作为数字相等、作为数字不相等

05、Should Be Equal As Integers、Should not Be Equal As Integers

作为整数相等、作为整数不相等

06、Should Be Equal As Strings、Should not Be Equal As Strings

作为字符串相等、作为字符串不相等

07、Should Start With、Should Not Start With

以指定字符开头、不以指定字符开头

08、Should End With、Should Not End With

以指定字符结尾、不以指定字符结尾

用法示例

 

 


版权声明:本文为u013250071原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。