0
//verify if successful transaction

assert jsonSlurper.body.message == "Approved"

我希望这对于“已批准”和“Aprobada”都是正确的,但这不起作用:

assert jsonSlurper.body.message IN ("Approved","Aprobada")

谢谢

4

2 回答 2

3

in带有适当列表的小写字母也应该有效

assert jsonSlurper.body.message in ["Approved","Aprobada"]
于 2015-10-28T16:52:05.587 回答
1

我真的明白了:

assert jsonSlurper.body.message == "Approved" || jsonSlurper.body.message == "Aprobada"
于 2015-10-28T16:41:31.197 回答