作者:淑敏小朋友 | 来源:互联网 | 2023-08-31 15:55
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.