title: Specifying login in Feature Setup of SpecFlow and Selenium
body: <p>I have set up SpecFlow to execute a number of Selenium tests to test a website. This all works fine!</p>
  
  <p>I am just considering if there might be room for some optimization on the structuring of the SpecFlow features.</p>
  
  <p>All the scenarios in a specific feature should use the same login. This is something I have hardcoded in the StepDefinition using the [BeforeScenario()] hook at the moment, since I don't really wan't pollute the scenarios with login info. It isn't relevant for the test.</p>
  
  <p>But at the same time, I would like to remove the hardcoded part, and move this into my feature.</p>
  
  <p>My question is two part.</p>
  
  <ol>
  <li><p>Can I specify login credentials in my feature description. Sort of like a Given:</p>
  
  <pre><code>Feature: As a user I want to be able to see my ongoing orders, and interact with them.
  Given I am logged in with username abc and password xyz
  
  Scenario: See list of ongoing order
  Given I place an order
  When I navigate to MyOrders page
  Then I can see at least one order in the list
  </code></pre></li>
  <li><p>Is this good practice?</p>
  
  <p>Does it make sense to do it like this, on the feature level I mean. The scenarios are not dependent on a specific order, and they would execute faster if I didn't need to log in for each scenario.</p></li>
  </ol>
  
  <p>Thanks for your input.</p>