selenium + specflow

17
Selen m + SpecFlo w

Upload: cromwellryan

Post on 11-May-2015

3.797 views

Category:

Technology


3 download

DESCRIPTION

Acceptance Test Driven Development for .Net

TRANSCRIPT

Page 1: Selenium + Specflow

Seleniu

m +

SpecFlo

w

Page 2: Selenium + Specflow

me =>

(Ryan Cromwell)

Page 3: Selenium + Specflow

What I do…Coder

Agile Coach

ALM MVP

Page 4: Selenium + Specflow

SELENIUM

Page 5: Selenium + Specflow

What is Selenium?

“Selenium automates browsers.”

http://seleniumhq.org/

Page 6: Selenium + Specflow

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)

Page 7: Selenium + Specflow

Show me the code!

Page 8: Selenium + Specflow

SPECFLOW

Page 9: Selenium + Specflow

What is SpecflowBDD – Behavior Driven Development

Gherkin – Given, When, Then… plus others

Top of the testing pyramid

http://specflow.org/

Page 10: Selenium + Specflow

Show me the feature!

Page 11: Selenium + Specflow

How does that do stuff?

Page 12: Selenium + Specflow

DEMO

<!{}>

Page 13: Selenium + Specflow

TipsThink in behaviors rather than actions

Think Clean Code

Page Objects

Scale out

Page 14: Selenium + Specflow

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)

Page 15: Selenium + Specflow

RealityTest Code is Production Code

Confidence

Discipline

Page 16: Selenium + Specflow

Find this code

github.com/cromwellryan

Page 17: Selenium + Specflow

Thanks!

@cromwellryan blog.cromwellhaus.com