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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:22:30+00:00 2026-05-16T10:22:30+00:00

I’m new to BDD, and using SpecFlow I’m trying to work out an efficient,

  • 0

I’m new to BDD, and using SpecFlow I’m trying to work out an efficient, organised, and maintainable methodology(for use within ASP.NET MVC). The main areas I need to improve on are:

  • Grouping of steps (into step files)

  • Reusing test objects (like it is so easy to in unit tests by inheriting test base classes etc)

  • Folder structure

when it comes to grouping, let’s take a typical CRUD scenario. For example:

  • a folder for each “area” in my project eg public, site management

  • a feature folder and step folder inside each of those

And then, inside those folders I’ve got one Feature file covering the whole CRUD experience for a certain entity e.g NewsItem. I’ve gone this way so that I can reuse objects and the NewsController in my steps.

But this means the step files get pretty huge covering all types of valid, invalid input possibilites and it is very hard to follow one scenario through all the way through. But if I don’t, I can’t reuse the steps that may be applicable to multiple scenario in the whole CRUD process.

I understand this is very subjective, and I’m not afraid to be overwhelmed by a number of different ideas and perspectives – that’s what I want 😛

As well as your own opinions & preferences, links to blogs and books would be good.

Thanks

Nick

  • 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-05-16T10:22:31+00:00Added an answer on May 16, 2026 at 10:22 am

    Sorry nobody has answered this for ages. If it’s still useful to you, this might help.

    I keep my steps at a very high level: see this question Imperative and declarative steps in Rspec

    I group steps by areas of concern. Imagine logging in and performing some action, then logging out again. Or maybe going home for the day. Anything which I might do in one session becomes one area of concern. For instance, if I am a pet shop owner, I might have step files for: handling pets in stock, handling accessories and other stock, selling items, tracking profit, etc.

    I also have a screen / page paradigm rather like WebDriver. This means that if a step actually does several things on the UI, there is one screen or page which handles all of those actions.

    I often use cascading constructors to allow my BDD harness (in my case, plain old NUnit) to create these steps and scenarios for me. I’ve been writing a little automation tool and you can see some of these techniques in its examples:

    http://code.google.com/p/wipflash/source/browse/Example.PetShop.Scenarios/PetRegistrationAndPurchase.cs

    I haven’t messed around much with SpecFlow yet, but I imagine these might be useful to you. It’s the same design pattern that I’ve also used with JBehave or Fitnesse.NET and FitSharp.

    Good luck! There’s a BDD group http://groups.google.com/group/behaviordrivendevelopment which might help you if you need more info.

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

Sidebar

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.