Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Embracing Python for Software Testing - BDD Style
Jakub Jarosz
October 13, 2012
Programming
0
170
Embracing Python for Software Testing - BDD Style
Jakub Jarosz
October 13, 2012
Tweet
Share
More Decks by Jakub Jarosz
See All by Jakub Jarosz
Releasing Go Apps with GoReleaser
jakubjarosz
0
16
Building Environments with Ansible
jakubjarosz
0
75
a quick look at webtest & pytest
jakubjarosz
1
710
Data Driven Integration Testing
jakubjarosz
2
200
Multi Mechanize
jakubjarosz
0
120
Testing Erlang Cluster with Python
jakubjarosz
1
92
Other Decks in Programming
See All in Programming
How to start contributing to Kubernetes Projects
ydfu
0
140
2022 - COSCUP - 打造高速 Ruby 專案開發流程
elct9620
0
100
Scaling Productivity- How we have improved our dev experience
sockeqwe
1
120
Rust on Lambda 大きめCSV生成
atsuyokota
1
400
パスワードに関する最近の動向
kenchan0130
1
330
実践 SpiceDB - クライドネイティブ時代をサバイブできるパーミッション管理の実装を目指して / Practical SpiceDB
lmt_swallow
0
130
Amazon SageMakerでImagenを動かして猫画像生成してみた
hotoke_neko
0
120
20220706_Google Apps Scriptを実演で学ぶ~ GAS × Slack ~
apachan
2
620
How GitHub Supports Vim License Detection, The Five Years Journey
othree
1
380
NestJS_meetup_atamaplus
atamaplus
0
220
Git Rebase
bkuhlmann
7
1.1k
回帰分析ではlm()ではなくestimatr::lm_robust()を使おう / TokyoR100
dropout009
0
4.6k
Featured
See All Featured
Teambox: Starting and Learning
jrom
123
7.7k
Building Better People: How to give real-time feedback that sticks.
wjessup
344
17k
Keith and Marios Guide to Fast Websites
keithpitt
404
21k
Embracing the Ebb and Flow
colly
73
3.4k
A Philosophy of Restraint
colly
192
15k
What’s in a name? Adding method to the madness
productmarketing
11
1.6k
Mobile First: as difficult as doing things right
swwweet
213
7.6k
Principles of Awesome APIs and How to Build Them.
keavy
113
15k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
29
4.4k
Rebuilding a faster, lazier Slack
samanthasiow
62
7.3k
Code Review Best Practice
trishagee
44
9.7k
Producing Creativity
orderedlist
PRO
334
37k
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