15.5. should be true
should be true
意义:判断表达式返回的结果是否为true,true的话,断言成功,否则失败,停止执行本testcase
Arguments:[ condition | msg=msg ]
Condition 表达式,与编程语言的表达式一样
Msg表达式为false的话,返回的错误信息
案例如下:
${a} set variable 1
${b} set variable 2
should be true b > {b}> b>{a} 33333333
should be true int( b ) > i n t ( {b})>int( b)>int({a}) b > {b}> b>{a}
log =============
should be true ${b}==1 false
15.6. Should not Be True
语法与Should Be True一致,意义相反
15.7. Should Be Empty<