我想检查for循环使用机器人框架中的多个条件,但它永远不会返回true。使用机器人框架的多重条件检查for循环
:FOR ${RowIndex} IN RANGE 0 ${rowscount}
${ColumnText1} Get Text //*[@id='RadSearchGrid_ctl00__${RowIndex}']/td[3]
${ColumnText2} Get Text //*[@id='RadSearchGrid_ctl00__${RowIndex}']/td[4]
${ColumnText3} Get Text //*[@id='RadSearchGrid_ctl00__${RowIndex}']/td[5]
${bStatus} | Run Keywords | Should Contain | ${ColumnText1} and ${ColumnText2} and ${ColumnText3} | ${VoucherNumber} and ${Voucherdate} and ${VoucherAmount}
Exit For Loop If ${bStatus}
$ {bStatus}永不返回true。
我不认为'运行Keywords'or'如果Contain'返回任何值。根据[当前文档](http://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Should%20Contain)如果未找到期望值,应该包含失败。 –
@Würgspaß对不起,它是运行关键字和返回状态 – vinu