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
380
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
57
Communicating with Tests
jakubjarosz
0
150
Testing Go CLI Apps with TestScript
jakubjarosz
0
250
Testing Go Code
jakubjarosz
0
240
Releasing Go Apps with GoReleaser
jakubjarosz
0
370
Building Environments with Ansible
jakubjarosz
0
410
a quick look at webtest & pytest
jakubjarosz
1
1.2k
Data Driven Integration Testing
jakubjarosz
2
310
Multi Mechanize
jakubjarosz
0
150
Other Decks in Programming
See All in Programming
Ruby x Terminal
a_matsuda
7
570
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
190
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
210
NOT A HOTEL - 建築や人と融合し、自由を創り出すソフトウェア
not_a_hokuts
2
550
モジュラモノリスにおける境界をGoのinternalパッケージで守る
magavel
0
3.4k
社内規程RAGの精度を73.3% → 100%に改善した話
oharu121
13
7.5k
CSC307 Lecture 10
javiergs
PRO
1
690
Rubyと楽しいをつくる / Creating joy with Ruby
chobishiba
0
200
株式会社 Sun terras カンパニーデック
sunterras
0
2k
API Platformを活用したPHPによる本格的なWeb API開発 / api-platform-book-intro
ttskch
1
120
AI駆動開発の本音 〜Claude Code並列開発で見えたエンジニアの新しい役割〜
hisuzuya
4
470
RubyとGoでゼロから作る証券システム: 高信頼性が求められるシステムのコードの外側にある設計と運用のリアル
free_world21
0
200
Featured
See All Featured
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
42k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
80
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
140
Become a Pro
speakerdeck
PRO
31
5.8k
BBQ
matthewcrist
89
10k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
150
Mind Mapping
helmedeiros
PRO
1
110
GitHub's CSS Performance
jonrohan
1032
470k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
130
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