Skip to content

add support for optional steps in cucumber feature file #155

@aragavan

Description

@aragavan

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

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions