Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9055913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T14:04:02+00:00 2026-06-16T14:04:02+00:00

I have the scenario like: Given I go to this page When I type

  • 0

I have the scenario like:

  1. Given I go to this page
  2. When I type cucumber
  3. And I click
  4. Then I should see the text
  5. And I should not see the line

If I run this scenario it will execute all the 5 steps. But I want to skip the 4th step (Then I should see the text) and execute the 5th step.

Please give me your suggestions. Thanks in advance. 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T14:04:03+00:00Added an answer on June 16, 2026 at 2:04 pm

    TL;DR – don’t do it – you’re (probably) getting it wrong. And you can’t (easily) do it. As Aslak wrote (one of Cucumber main creators):

    A step can have the following results:

    • undefined (no matching stepdef)
    • pending (a matching stepdef that throws PendingException)
    • passed (a matching stepdef that doesn’t throw anything)
    • failed (a matching stepdef that throws an exception that isn’t PendingException)
    • skipped (a step following a step that threw any exception (undefined, pending or failed))

    What you’re asking for is a new kind of result – ignored. It could be
    implemented by throwing an IgnoredException. This would mean that
    skipped would have to be changed to: (a step following a step that
    threw any exception (undefined, pending or failed) – unless the
    exception was IgnoredException)

    I’m not sure I like this. It sounds like more complicated than it
    needs to be. You already have the necessary information that something
    is amiss – your step will either fail or be pending. I don’t see the
    value in continuing to execute the following steps. You still have to
    implement the failing/pending step.

    As long as you’re reminded that “there is work to be done here” I
    don’t think it’s wortwhile complicating Cucumber to tell you what kind
    of work needs to be done…

    Aslak

    Whole discussion is here: http://comments.gmane.org/gmane.comp.programming.tools.cucumber/10146

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have scenario like this Given /^initial data$/ do |table| @schedule_05 = Factory.build :schedule_05
I have a scenario like this: I need to pass @id to the stored
I have a scenario like the below.. <h:selectOneRadio id=someId value=#{myBean.type} required=true> <f:ajax event=valueChange execute=@form
I have a scenario like this: form = MockRepository.GenerateMock<IAddAddressForm>(); mediator = new AddAddressMediator(form); The
I have a scenario that looks like this: #include <algorithm> using namespace std; //
I have this scenario where I would like to redirect my domains using the
I have the following scenario: Editor Role should not be allowed to delete nodes.
i have stuck in one point in selenium ide the scenario is like this
let me ask you something, if a have scenario like this: Scenario: Listing the
I will like to know: I have a scenario. If a user adds a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.