Selenium + Specflow

Post on 11-May-2015

3,798 views 3 download

Tags:

description

Acceptance Test Driven Development for .Net

transcript

Seleniu

m +

SpecFlo

w

me =>

(Ryan Cromwell)

What I do…Coder

Agile Coach

ALM MVP

SELENIUM

What is Selenium?

“Selenium automates browsers.”

http://seleniumhq.org/

Which Selenium is for me?IDE• Record and Playback

• Create quick bug reproduction scripts

• Create scripts to aid later automation

• Not scalable

WebDriver• Create robust regression

scripts

• Scale and distribute scripts across many environments

• API (Java, .Net, Ruby, Javascript, Python, others)

Show me the code!

SPECFLOW

What is SpecflowBDD – Behavior Driven Development

Gherkin – Given, When, Then… plus others

Top of the testing pyramid

http://specflow.org/

Show me the feature!

How does that do stuff?

DEMO

<!{}>

TipsThink in behaviors rather than actions

Think Clean Code

Page Objects

Scale out

Tools You Will NeedSelenium (install-package Selenium.WebDriver)

Selenium Helpers (install-package Selenium.Support)

SpecFlow (install-package specflow, specflow.org)

NUnit (install-package nunit)

ShouldFluent (install-package)

RealityTest Code is Production Code

Confidence

Discipline

Find this code

github.com/cromwellryan

Thanks!

@cromwellryan blog.cromwellhaus.com