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 8826691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:12:09+00:00 2026-06-14T07:12:09+00:00

Is there a way to reuse cucumber scenarios across multiple features which each share

  • 0

Is there a way to reuse cucumber scenarios across multiple features which each share the same UI characteristics?

For example if I am creating an iPhone app then I would have certain tests that I would like to run for each table view screen regardless of what is actually being displayed. These would be add a new row, delete a row, reorder etc.

Copying and pasting these into each feature breaks DRY. Is there a way to specify generic or templated tests in cucumber which I can include into each features that requires them?

  • 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-14T07:12:10+00:00Added an answer on June 14, 2026 at 7:12 am

    Don’t think of BDD as testing. Think of it as providing a set of examples which show why your app is valuable and how you can use it.

    If the app uses the same code for each table, all you need is one example. I would expect it to be phrased something like:

    Given Quentin has three films listed
    When he adds "Kill Bill" to the film list
    Then he should be reminded that he already owns it.
    
    Given Quentin has mistakenly added "Twilight" to his favourite films
    When he deletes it from the film list
    Then it should no longer be in the table.
    

    The more interesting and human you can make the scenarios, the more you’ll be able to work out why your application is valuable. That’s the real heart of BDD – not testing, but knowing why you’re writing the code in the first place.

    Talking to people who really want the app will help you find out what it should do – and if you’re writing it on your own, buy a rubber duck!

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

Sidebar

Related Questions

Is there a way to reuse parts across multiple buldouts? I've got several tools
Is there a way to reuse a 3rd party control reference? For example, I
Is there a way to reuse the same enum value in separate types? I'd
Is there any way to reuse a transaction among different connections without recurring to
Is there a way to reuse a calculated field within a mysql statement. I
Is there any way to reuse NHibernate components (<component>) in more than one mapping?
Upper part of TabControl consists of TabItem controls. Is there a way to reuse
For performance sake it is usual to reuse UITableView' cells. Is there a way
I was wondering if there is a way to reuse my classes in Android
Is there a way to reuse and overwrite data in a window.open object for

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.