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
320
Embracing Python for Software Testing - BDD Style
Jakub Jarosz
October 13, 2012
Tweet
Share
More Decks by Jakub Jarosz
See All by Jakub Jarosz
Communicating with Tests
jakubjarosz
0
66
Testing Go CLI Apps with TestScript
jakubjarosz
0
190
Testing Go Code
jakubjarosz
0
200
Releasing Go Apps with GoReleaser
jakubjarosz
0
340
Building Environments with Ansible
jakubjarosz
0
360
a quick look at webtest & pytest
jakubjarosz
1
1k
Data Driven Integration Testing
jakubjarosz
2
290
Multi Mechanize
jakubjarosz
0
130
Testing Erlang Cluster with Python
jakubjarosz
1
110
Other Decks in Programming
See All in Programming
Dev ContainersとGitHub Codespacesの素敵な関係
ymd65536
1
130
Why Spring Matters to Jakarta EE - and Vice Versa
ivargrimstad
0
980
Vaporモードを大規模サービスに最速導入して学びを共有する
kazukishimamoto
4
4.3k
Android 15 でアクションバー表示時にステータスバーが白くなってしまう問題
tonionagauzzi
0
140
レガシーな Android アプリのリアーキテクチャ戦略
oidy
1
170
プロジェクト新規参入者のリードタイム短縮の観点から見る、品質の高いコードとアーキテクチャを保つメリット
d_endo
1
1k
C#/.NETのこれまでのふりかえり
tomokusaba
1
160
ピラミッド、アイスクリームコーン、SMURF: 自動テストの最適バランスを求めて / Pyramid Ice-Cream-Cone and SMURF
twada
PRO
9
1k
Hotwire or React? ~Reactの録画機能をHotwireに置き換えて得られた知見~ / hotwire_or_react
harunatsujita
8
4.1k
シールドクラスをはじめよう / Getting Started with Sealed Classes
mackey0225
3
400
Vue3の一歩踏み込んだパフォーマンスチューニング2024
hal_spidernight
3
3.1k
Golang と Erlang
taiyow
8
1.9k
Featured
See All Featured
How to Ace a Technical Interview
jacobian
275
23k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
Ruby is Unlike a Banana
tanoku
96
11k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
355
29k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
290
Why Our Code Smells
bkeepers
PRO
334
57k
Side Projects
sachag
452
42k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
Building a Scalable Design System with Sketch
lauravandoore
459
33k
How to Think Like a Performance Engineer
csswizardry
19
1.1k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
A Tale of Four Properties
chriscoyier
156
23k
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