Specflow - creating executable specifications

50 %
50 %
Information about Specflow - creating executable specifications
Technology

Published on March 14, 2014

Author: squarehire

Source: slideshare.net

Description

Make automated tests that look like written english

SpecFlow creating executable specifications Rudy Lacovara rudy@hireflo.com http://rlacovara.blogspot.com

What is SpecFlow? A tool that lets you write automated tests that look like this: Feature: Create a new company Scenario: Anonymous user submits a valid company Given user is not logged in And they create a company with valid data When they save the company Then the company is saved to the database And the saved company has status PendingReview Scenario: Admin user submits a valid company Given they create a company with valid data When they save the company Then the company is saved to the database And the saved company has status Published

Where did SpecFlow come from? Gherkin A really simple DSL used by both Cucumber and SpecFlow to define specifications Cucumber A Ruby testing tool used for creating and running specs. SpecFlow is based on Cucumber.

The basic parts • Features • Scenarios • Steps Features are made up of Scenarios Scenarios are made up of Steps

Feature: Company Save Scenario: Anonymous user saves a valid company Given user is not logged in And they create a company with valid data When they save the company Then the company is saved to the database And the saved company has a status PendingReview Scenario: Employer saves a valid company Given user is logged in AdminUser And they create a company with valid data When they save the company Then the company is saved to the database And the saved company has a status Published Feature Scenario Steps

Demo Because I hate Powerpoint and code is more interesting anyway

Installing Specflow There are 2 parts: 1. Install the SpecFlow Nuget package 2. Go to Visual Studio Extension Manager and install the SpecFlow Extension

Add a comment

Related presentations

Related pages

SpecFlow - Cucumber for .NET

Use SpecFlow to define, manage and execute automated acceptance tests from business-readable specifications. SpecFlow acceptance tests follow the BDD ...
Read more

Specflow - creating executable specifications - Technology

Specflow - creating executable specifications; Specflow - creating executable specifications Aug 20, 2015 Technology squarehire. of 7
Read more

SpecFlow.exe and MsTest - marcusoft.net

SpecFlow.exe picks up your ... SpecFlow.exe and MsTest ... The projectFile is the Visual Studio Project File containing features and specifications.
Read more

Behavior Driven Development (BDD) with SpecFlow and ASP ...

Behavior Driven Development (BDD) with SpecFlow and ASP.NET MVC. Test Driven Development (TDD) has been around for about a decade, and has been mainstream ...
Read more

Ardalis - Everything You Need to Get Started with SpecFlow ...

Everything You Need to Get Started with SpecFlow and ... one of the nice features of creating executable specifications is that they should produce ...
Read more

Should I use specflow at unit test level? - Stack Overflow

Should I use specflow at unit test ... The thought of executable specifications at the unit ... the stakeholders of the project and creating a shared ...
Read more

Screencast: Using SpecFlow and WebAii - Develop Using .NET

Screencast: Using SpecFlow and WebAii. ... can then be translated into automated tests creating a set of executable specifications that a client can ...
Read more

mvcConf 2 - Brandon Satrom: BDD in ASP.NET MVC using ...

These domain-specific languages now enable us to create executable specifications ... Gherkin and SpecFlow provide the ... to Channel 9 to ...
Read more

Quality Enablement Series #3: Create and manage ... - Vimeo

... Create and manage automated test with Visual Studio 2012. ... deep dive into using SpecFlow, ... SpecFlow for creating executable specifications. Vimeo.
Read more