热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

addsupportforoptionalstepsincucumberfeaturefile

Ifoundthatwhenascenariofails,theexecutionstopsatthestepwhereitfailedand

I found that when a scenario fails, the execution stops at the step where it failed and rest of the steps are ignored.
For testing websites, not necessarily a previous step is a prerequisite for the next step.
for example, in http://www.bbc.co.uk/ I could have a feature where it checks for the existence of the "news", "sports", "weather" and "top stories" module in the home page

Scenario: As a user I should be able to see all the section in bbc home apge

1
2
3
4
5
6
Given the bbc site is up

When the user visits the bbc home page

Then he should see the sports section

And he should be able to see the weather section

And he should be able to see the sports section

And he should be able to see the top news section

if the sports section module is not there in the bbc home page, scenario will fail without executing the next line.
My feature request is, we should have some control to instruct cucumber to stop/continue when there is a failure because top news section does not depend on any of the previous features.

该提问来源于开源项目:cucumber/cucumber-ruby

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.





   



推荐阅读
author-avatar
淑敏小朋友
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有