際際滷

際際滷Share a Scribd company logo
Gojko Adzic
@gojkoadzic
Test Automation Without the Headache: Agile Tour Vienna 2015
Test Automation Without the Headache: Agile Tour Vienna 2015
FAST
FOOD
FAST
FOOD
CEMENT
FAST
FOOD
CEMENT
BLINDER
FAST
FOOD
CEMENT
BLINDER
EXO
SKELETON
Test Automation Without the Headache: Agile Tour Vienna 2015
Test Automation Without the Headache: Agile Tour Vienna 2015
Divide
expectations,
workflows,
interactions
When items = ,
assert tax == ...
When items = ,
assert tax == ...
Add items
Authorise
Checkout
When items = ,
assert tax == ...
Add items
Authorise
Checkout
$('input[name=]').val()
$('a[role=]').click()
When items = ,
assert tax == ...
Add items
Authorise
Checkout
$('input[name=]').val()
$('a[role=]').click()
DEPENDS
ON THE
TOOL
DEPENDS
ON THE APP
Test Automation Without the Headache: Agile Tour Vienna 2015
Test Automation Without the Headache: Agile Tour Vienna 2015
Test Automation Without the Headache: Agile Tour Vienna 2015
Test Automation Without the Headache: Agile Tour Vienna 2015
Simulate only
things you
completely
understand
Test Automation Without the Headache: Agile Tour Vienna 2015
AVOID
MOCKING
NEVER
MOCK
Test Automation Without the Headache: Agile Tour Vienna 2015
Test Automation Without the Headache: Agile Tour Vienna 2015
Test Automation Without the Headache: Agile Tour Vienna 2015
Set accounts:
|id |name |type |credit limit |balance|stat|
|1 |XD_DIRECT |XD |10000000 |0 |O |
|2 |XD_DIRECT |XD |10000000 |0 |O |
|3 |XD_DIRECT |XD |10000000 |0 |O |
Aggregate user transactions
Check statement:
|user id |account id |name |risk |reg_date |
|187 |1 |M Smith |x1 |01.09.2009 |
Add transactions:
|txid |acct |amount |ccy |stat |tx date | gw |
|1 |1 |10 |EUR |X |01.01.2010 | G1_x |
|2 |2 |10 |EUR |X |02.01.2010 | EPAY |
Execute statement summary 07.01.2010
Check transactions:
|txid |amount |currency |stat | date |
|1 |10 |EUR |X |01.01.2010 |
|4 |10 |EUR |P |04.01.2010 |
|7 |10 |EUR |S |07.01.2010 |
Make the link from
inputs to outputs
obvious
Test Automation Without the Headache: Agile Tour Vienna 2015
Test Automation Without the Headache: Agile Tour Vienna 2015
Optimise for
troubleshooting
not for writing
Test Automation Without the Headache: Agile Tour Vienna 2015
Re-organise
for discovery
Test Automation Without the Headache: Agile Tour Vienna 2015
5 KEY PATTERNS
1) Split expectations, workflows and interaction
2) Isolate only things you completely understand
3) Make the link from inputs to outputs obvious
4) Optimise for troubleshooting not for writing
5) Re-organise for discovery
Test Automation Without the Headache: Agile Tour Vienna 2015

More Related Content

Test Automation Without the Headache: Agile Tour Vienna 2015