Bdd Net Frameworks
-
Upload
hdgarcia -
Category
Technology
-
view
1.782 -
download
0
description
Transcript of Bdd Net Frameworks
![Page 1: Bdd Net Frameworks](https://reader036.fdocuments.us/reader036/viewer/2022082605/5551273eb4c905f1528b490b/html5/thumbnails/1.jpg)
BDD - End to end testing in the .net world using
user stories
![Page 2: Bdd Net Frameworks](https://reader036.fdocuments.us/reader036/viewer/2022082605/5551273eb4c905f1528b490b/html5/thumbnails/2.jpg)
![Page 3: Bdd Net Frameworks](https://reader036.fdocuments.us/reader036/viewer/2022082605/5551273eb4c905f1528b490b/html5/thumbnails/3.jpg)
Hernan Garcia
15+ years.Subscribe to alt.net principles.Very pragmatic (most of the time).Learning how to create better, more elegant code.Old obsession: quality software.New obsession: NoSql.
@theprogrammerhttp://[email protected]
![Page 4: Bdd Net Frameworks](https://reader036.fdocuments.us/reader036/viewer/2022082605/5551273eb4c905f1528b490b/html5/thumbnails/4.jpg)
Behaviour Driven Development
Evolution of TDD.Focus on behaviour that is understandable to people.Retains the red-green workflow (Actually, yellow, red, green).
Address the questions: How much should I specify? How should I organize and name my specs? Can be used to test at the unit level and the integration level.
![Page 5: Bdd Net Frameworks](https://reader036.fdocuments.us/reader036/viewer/2022082605/5551273eb4c905f1528b490b/html5/thumbnails/5.jpg)
User Stories
Plain english definitions of a feature (specification).They are not use cases, but serve the same purpose.
![Page 6: Bdd Net Frameworks](https://reader036.fdocuments.us/reader036/viewer/2022082605/5551273eb4c905f1528b490b/html5/thumbnails/6.jpg)
Frameworks: Context/Specification
Machine Specifications http://github.com/machine/machine.specifications SpecUnit.Net http://code.google.com/p/specunit-net/
![Page 7: Bdd Net Frameworks](https://reader036.fdocuments.us/reader036/viewer/2022082605/5551273eb4c905f1528b490b/html5/thumbnails/7.jpg)
MSpec Demo
ReSharper and Gallio runner.Cmd line runner.Easily integrates with CI serversUser friendly report.
![Page 8: Bdd Net Frameworks](https://reader036.fdocuments.us/reader036/viewer/2022082605/5551273eb4c905f1528b490b/html5/thumbnails/8.jpg)
Frameworks: GWT or Given, When, Then
StoryQ http://storyq.codeplex.com/
StorEvil http://github.com/davidmfoley/storevil
Cucumber http://cukes.info/ Can be used with IronRuby in the .net world Or via Cuke4Nukes SpecFlow
![Page 9: Bdd Net Frameworks](https://reader036.fdocuments.us/reader036/viewer/2022082605/5551273eb4c905f1528b490b/html5/thumbnails/9.jpg)
StoryQ Demo
ReSharper runner integration.Cmd line runner.Fluent interface.User Story to code converter (buggy).Easily integrates with CI servers.User friendly report.
![Page 10: Bdd Net Frameworks](https://reader036.fdocuments.us/reader036/viewer/2022082605/5551273eb4c905f1528b490b/html5/thumbnails/10.jpg)
StorEvil Demo
Cmd line runner.Some Gherkin implementation.Easily integrates with CI servers.User friendly report.Good documentation via the wiki and some code examples.
![Page 11: Bdd Net Frameworks](https://reader036.fdocuments.us/reader036/viewer/2022082605/5551273eb4c905f1528b490b/html5/thumbnails/11.jpg)
Specflow
Open Source BSD License Installers for both VS 2008 and VS 2010Use files 100% compatible with Cucumber (Gherkin)
Download -http://specflow.org/Training -http://www.techtalk.at/Support -http://groups.google.com/group/specflow/
![Page 12: Bdd Net Frameworks](https://reader036.fdocuments.us/reader036/viewer/2022082605/5551273eb4c905f1528b490b/html5/thumbnails/12.jpg)
Gherkin
Used on Cucumber and SpecFlowLocalized to multiple languagesIn an ideal world writen by the business
![Page 13: Bdd Net Frameworks](https://reader036.fdocuments.us/reader036/viewer/2022082605/5551273eb4c905f1528b490b/html5/thumbnails/13.jpg)
Demo - SpecFlow + WatiN
-Rescue (pets rescue site): Log in Publish -using tables to pass more than one value Search
![Page 14: Bdd Net Frameworks](https://reader036.fdocuments.us/reader036/viewer/2022082605/5551273eb4c905f1528b490b/html5/thumbnails/14.jpg)
Demo
Changing the design, ex: instead of text use images as links.Using setups and teardown.Capture screens to demostrate success or failure.Running via the NUnit runner.Running as part of your CI server.
![Page 15: Bdd Net Frameworks](https://reader036.fdocuments.us/reader036/viewer/2022082605/5551273eb4c905f1528b490b/html5/thumbnails/15.jpg)
Gherkin editor(s)
Auto completeSyntax highlighting
![Page 16: Bdd Net Frameworks](https://reader036.fdocuments.us/reader036/viewer/2022082605/5551273eb4c905f1528b490b/html5/thumbnails/16.jpg)
XDD
![Page 17: Bdd Net Frameworks](https://reader036.fdocuments.us/reader036/viewer/2022082605/5551273eb4c905f1528b490b/html5/thumbnails/17.jpg)