Selenium + Specflow
-
Upload
cromwellryan -
Category
Technology
-
view
3.806 -
download
3
description
Transcript of Selenium + Specflow
![Page 1: Selenium + Specflow](https://reader035.fdocuments.net/reader035/viewer/2022062312/554fb3b1b4c905ad218b53d1/html5/thumbnails/1.jpg)
Seleniu
m +
SpecFlo
w
![Page 2: Selenium + Specflow](https://reader035.fdocuments.net/reader035/viewer/2022062312/554fb3b1b4c905ad218b53d1/html5/thumbnails/2.jpg)
me =>
(Ryan Cromwell)
![Page 3: Selenium + Specflow](https://reader035.fdocuments.net/reader035/viewer/2022062312/554fb3b1b4c905ad218b53d1/html5/thumbnails/3.jpg)
What I do…Coder
Agile Coach
ALM MVP
![Page 4: Selenium + Specflow](https://reader035.fdocuments.net/reader035/viewer/2022062312/554fb3b1b4c905ad218b53d1/html5/thumbnails/4.jpg)
SELENIUM
![Page 6: Selenium + Specflow](https://reader035.fdocuments.net/reader035/viewer/2022062312/554fb3b1b4c905ad218b53d1/html5/thumbnails/6.jpg)
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](https://reader035.fdocuments.net/reader035/viewer/2022062312/554fb3b1b4c905ad218b53d1/html5/thumbnails/7.jpg)
Show me the code!
![Page 8: Selenium + Specflow](https://reader035.fdocuments.net/reader035/viewer/2022062312/554fb3b1b4c905ad218b53d1/html5/thumbnails/8.jpg)
SPECFLOW
![Page 9: Selenium + Specflow](https://reader035.fdocuments.net/reader035/viewer/2022062312/554fb3b1b4c905ad218b53d1/html5/thumbnails/9.jpg)
What is SpecflowBDD – Behavior Driven Development
Gherkin – Given, When, Then… plus others
Top of the testing pyramid
http://specflow.org/
![Page 10: Selenium + Specflow](https://reader035.fdocuments.net/reader035/viewer/2022062312/554fb3b1b4c905ad218b53d1/html5/thumbnails/10.jpg)
Show me the feature!
![Page 11: Selenium + Specflow](https://reader035.fdocuments.net/reader035/viewer/2022062312/554fb3b1b4c905ad218b53d1/html5/thumbnails/11.jpg)
How does that do stuff?
![Page 12: Selenium + Specflow](https://reader035.fdocuments.net/reader035/viewer/2022062312/554fb3b1b4c905ad218b53d1/html5/thumbnails/12.jpg)
DEMO
<!{}>
![Page 13: Selenium + Specflow](https://reader035.fdocuments.net/reader035/viewer/2022062312/554fb3b1b4c905ad218b53d1/html5/thumbnails/13.jpg)
TipsThink in behaviors rather than actions
Think Clean Code
Page Objects
Scale out
![Page 14: Selenium + Specflow](https://reader035.fdocuments.net/reader035/viewer/2022062312/554fb3b1b4c905ad218b53d1/html5/thumbnails/14.jpg)
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](https://reader035.fdocuments.net/reader035/viewer/2022062312/554fb3b1b4c905ad218b53d1/html5/thumbnails/15.jpg)
RealityTest Code is Production Code
Confidence
Discipline
![Page 16: Selenium + Specflow](https://reader035.fdocuments.net/reader035/viewer/2022062312/554fb3b1b4c905ad218b53d1/html5/thumbnails/16.jpg)
Find this code
github.com/cromwellryan
![Page 17: Selenium + Specflow](https://reader035.fdocuments.net/reader035/viewer/2022062312/554fb3b1b4c905ad218b53d1/html5/thumbnails/17.jpg)
Thanks!
@cromwellryan blog.cromwellhaus.com