Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Embracing Python for Software Testing - BDD Style
Search
Jakub Jarosz
October 13, 2012
Programming
0
370
Embracing Python for Software Testing - BDD Style
Jakub Jarosz
October 13, 2012
Tweet
Share
More Decks by Jakub Jarosz
See All by Jakub Jarosz
Benchmarking - First Steps
jakubjarosz
0
30
Communicating with Tests
jakubjarosz
0
120
Testing Go CLI Apps with TestScript
jakubjarosz
0
230
Testing Go Code
jakubjarosz
0
220
Releasing Go Apps with GoReleaser
jakubjarosz
0
360
Building Environments with Ansible
jakubjarosz
0
390
a quick look at webtest & pytest
jakubjarosz
1
1.1k
Data Driven Integration Testing
jakubjarosz
2
310
Multi Mechanize
jakubjarosz
0
140
Other Decks in Programming
See All in Programming
2025 年のコーディングエージェントの現在地とエンジニアの仕事の変化について
azukiazusa1
24
12k
個人開発で徳島大学生60%以上の心を掴んだアプリ、そして手放した話
akidon0000
1
150
Compose Multiplatform × AI で作る、次世代アプリ開発支援ツールの設計と実装
thagikura
0
170
The Past, Present, and Future of Enterprise Java with ASF in the Middle
ivargrimstad
0
180
テストカバレッジ100%を10年続けて得られた学びと品質
mottyzzz
2
610
デザイナーが Androidエンジニアに 挑戦してみた
874wokiite
0
550
今だからこそ入門する Server-Sent Events (SSE)
nearme_tech
PRO
3
260
Things You Thought You Didn’t Need To Care About That Have a Big Impact On Your Job
hollycummins
0
110
CJK and Unicode From a PHP Committer
youkidearitai
PRO
0
110
AIでLINEスタンプを作ってみた
eycjur
1
230
Reading Rails 1.0 Source Code
okuramasafumi
0
250
Navigating Dependency Injection with Metro
zacsweers
3
3.5k
Featured
See All Featured
Unsuck your backbone
ammeep
671
58k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.7k
Mobile First: as difficult as doing things right
swwweet
224
9.9k
GitHub's CSS Performance
jonrohan
1032
460k
Making Projects Easy
brettharned
117
6.4k
The World Runs on Bad Software
bkeepers
PRO
70
11k
Designing for humans not robots
tammielis
253
25k
A designer walks into a library…
pauljervisheath
207
24k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
113
20k
Rails Girls Zürich Keynote
gr2m
95
14k
Building Applications with DynamoDB
mza
96
6.6k
Thoughts on Productivity
jonyablonski
70
4.8k
Transcript
Embracing Python for Software Testing - BDD Style PyCon Ireland
2012 Jakub Jarosz http://testing.gobanana.co.uk/?p=743
test & deployment automation
softtest ireland softtest.ie #SoftTestIreland
today's menu: test evolution challenges communication specification
http://advancedlifeskills.com/blog/do-you-see-blessings-in-challenges/
big picture... UI midlayer back end - engine reports UI
stack UI midlayer back end - engine reports UI C++
testing UI midlayer back end - engine reports UI
focus UI midlayer back end - engine reports UI
back end overview
rules & statistics http://mikelperez.wikispaces.com/
test evolution... http://www.facefinal.com/2012/09/100-reasons-why-evolution-is-so-stupid.html#.UHeYJRZ25mE
preconditions
REST - the manual way
manual testing... http://blog.chriss-baumann.de/2010/07/26/because-life-is-too-short-for-manual-testing
automating
pyUnit http://www.oracleunittesting.com/unit-testing/part-4-how-do-unit-tests-work/
use & test case DB SUT preconditions REST
None
None
Gherkin to the rescue GIVEN a registered user 'bob' WHEN
a user navigates to the Sign In page AND the user signs in as 'bob' THEN the profile page for 'bob' will be displayed
Business readable specification http://images.businessweek.com/ss/09/06/0630_contract_workers/4.htm
Describe software behaviour... ... without detailing how that behaviour is
implemented. http://www.uea.ac.uk/~m242/nasc/cross/cman/howbig.htm
BDD - testing stack PROJECT Steps Features Scenarios
BDD - testing stack PROJECT Steps Features Scenarios Step definitions
Support code Automation library SYSTEM
BDD - testing stack PROJECT Steps Features Scenarios Step definitions
Support code Automation library SYSTEM BUSINESS TECHNOLOGY
collaboration http://oecdeducationtoday.blogspot.com/2012/05/what-should-students-learn-in-21st.html
lettuce http://www.bigoven.com/recipes/Lettuce/title
project structure
project structure - BDD
project structure - libs & unittest
lettuce
lettuce steps definition
lettuce - Given
lettuce - When
lettuce - Then
lettuce run... http://thnxfrthememories.blogspot.com/2010/07/run-forrest-run.html
lettuce run...
CI server $ lettuce security_buffer.feature --with- xunit
http://www.zazzle.com/its_not_what_you_believe_but_how_you_behave_magnet-147580983275159945
Project structure
statistics http://mikelperez.wikispaces.com/
None
None
None
Steps http://www.creativetriage.com/2010/11/02/8-steps-a-day-to-community-hospital-social-media-success/
None
None
web console http://mikelperez.wikispaces.com/
None
Steps http://www.creativetriage.com/2010/11/02/8-steps-a-day-to-community-hospital-social-media-success/
None
None
None
None
None
CI server $ $ behave ec_web_console_2.feature --junit
Jakub Jarosz @jakubjarosz http://testing.gobanana.co.uk/?p=743 Thank You ! Q & A