您可以使用该verifyEval
命令比较两个变量:
store | text | i
store | different text | j
verifyEval | storedVars['i']==storedVars['j'] | true
Run Code Online (Sandbox Code Playgroud)
以书面形式运行此脚本将导致测试失败[error] Actual value 'false' did not match 'true'
.更改j
到text
,它会完全没有错误.
请注意,通过在命令中更改true
为,这也可用于验证两个字符串不相等.false
verifyEval
归档时间: |
|
查看次数: |
14645 次 |
最近记录: |