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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:35:07+00:00 2026-05-30T16:35:07+00:00

I have a feature and was looking for a way to execute it different

  • 0

I have a feature and was looking for a way to execute it different per environment. Like I might have an environment where I test things locally and another that hits remote servers. Using scoped bindings I can accomplish this but it requires duplicating the scenarios and then applying a tag to each scenario.

Eg:

@test
Scenario: User can login
    When a user provides valid credentials
    Then they are logged in

@stage
Scenario: User can login
    When a user provides valid credentials
    Then they are logged in

Is instead there a way where the scenario is only listed once in the feature and then I have some kind of global tag that would allow the proper filtering of step definitions?

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-05-30T16:35:09+00:00Added an answer on May 30, 2026 at 4:35 pm

    this is what the .net configuration infrastructure is for. it’s not really specflow specific. your code should read different configuration settings and you should have the right configuration files for given environments. i would do this in the same way you do your configuration for moving your application code through different environments.

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

Sidebar

Related Questions

I have a feature in my product that I would like to be installed
I'm looking content management system that would have features similar to stackoverflow: Users can
I have a feature in my web app like I have to send mails
Does Eclipse have a feature that lets you search a project to find all
I have a SharePoint feature that is activated under 'Site Collection Features' that is
I'm currently developing an ajax application and I'm looking for a feature that lets
I am looking for a more efficient way to do this...(see below)... I have
I have been looking for a easy way to add borders to custom made
Winamp has a neat feature. Global keys. That way I can change the playing
Looking for a way to programmatically insert comments (using the comments feature in Word)

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.