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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:27:05+00:00 2026-06-10T08:27:05+00:00

I am trying to understand when should you test via BDD such as cucumber/specflow,

  • 0

I am trying to understand when should you test via BDD such as cucumber/specflow, and when should you test your gui directly.

For example, the test “the AdminHelp button should only be seen by an administrator”.

This admin button is on a particular page. Should I test it in a BDD fashion (i.e. the scenario where:

  1. When an Admin Logs in
  2. Then he sees the AdminHelp button

or

write a unit test that sets current_user to an admin user, and test whether the html rendered by the template includes AdminHelp button or not.

Thanks.

  • 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-10T08:27:06+00:00Added an answer on June 10, 2026 at 8:27 am

    Specflow is an automation tool, but it works on a higher level than, say, Selenium or Microsoft UI Automation. You would normally use it to describe a scenario in which a user uses the application. For instance:

    Given Andy Admin is an administrator
    When he logs in
    Then he should be taken to the admin home page.
    
    Given Andy Admin is on the admin home page
    When he wants help
    Then he should be directed to the admin manual.
    

    Notice that I haven’t mentioned the admin help button anywhere in there. Andy could quite easily have asked a secretary for help! We’re describing the steps declaratively, in terms of the capabilities provided by the system. This is the style of BDD.

    Specflow then maps the Given, When and Then phrases to code steps. In the code, you can use automation tools to actually click the button. However, it’s far more maintainable to use the same language that the business use to describe the system’s capabilities; because then, if the UI changes, you only need to change 1 step and not 15-odd scenarios.

    Also, using the higher-level language in the scenarios tends to keep the business interested, which means it’s much easier to have conversations with them about those scenarios. Conversations are at the heart of BDD, and I suggest starting there, before worrying about how to do the automation part.

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

Sidebar

Related Questions

I am trying to understand how I should validate on the client sections of
I am trying to better understand when I should and should not use Iterators.
I'm trying to understand whether and under what circs one should use Python classes
I'm trying to understand the architecture of OpenCL devices such as GPUs, and I
I am new to Cucumber testing and I am trying to understand when to
The following code is a simplified example of what I'm trying to understand. I'm
I am trying understand ViewModels deeper and I have read many articles and blogs
Trying to understand what's the correct way of implementing OpenID authentication with Spring Security.
Trying to understand the Deezer API. When I visit: http://connect.deezer.com/oauth/auth.php?app_id=MY_APP_ID&redirect_uri=http://mydomain.me&perms=basic_access I end up at
Trying to understand PNG format. Consider this PNG Image: The Image is taken from

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.