【发布时间】:2014-08-21 09:04:04
【问题描述】:
是否可以在 Cucumber 中指定某种“OR”(替代)子句?
即如果我对某个事件有两个有效的响应,如果其中任何一个发生,我希望我的测试通过。
类似的东西:
"When I press a button"
"Then I should see the text 'Boo'"
"Or I should see the text 'Foo'"
我的特定场景是登录屏幕。当我尝试使用一些随机密码登录时,如果服务器正常工作,我应该会看到错误消息“密码无效”,否则会看到消息“网络错误”。
【问题讨论】:
标签: cucumber automated-tests calabash