BDD and UAT with SpecFlow and WatiN

10/12/2012 10:23:22 AM

An introduction to Acceptance Testing, Gherkin, SpecFlow and WatiN.

The following Spec will result in an automated acceptance test driving web browser interaction.

Feature: Login
  In order to access my account
  As a user of the website
  I want to log into the website

Scenario: Logging in with valid credentials
  Given I am at the login page
  When I fill in the following form
  | field | value |
  | Username | xtrumanx |
  | Password | P@55w0Rd |
  And I click the login button
  Then I should be at the home page

Article at => http://www.infoq.com/articles/Spec-Flow