Test Automation Without the Headache: Agile Tour Vienna 2015

34
Gojko Adzic @gojkoadzic

Transcript of Test Automation Without the Headache: Agile Tour Vienna 2015

Page 1: Test Automation Without the Headache: Agile Tour Vienna 2015

Gojko Adzic@gojkoadzic

Page 2: Test Automation Without the Headache: Agile Tour Vienna 2015
Page 3: Test Automation Without the Headache: Agile Tour Vienna 2015
Page 4: Test Automation Without the Headache: Agile Tour Vienna 2015

FASTFOOD

Page 5: Test Automation Without the Headache: Agile Tour Vienna 2015

FASTFOOD

CEMENT

Page 6: Test Automation Without the Headache: Agile Tour Vienna 2015

FASTFOOD

CEMENT

BLINDER

Page 7: Test Automation Without the Headache: Agile Tour Vienna 2015

FASTFOOD

CEMENT

BLINDER EXOSKELETON

Page 8: Test Automation Without the Headache: Agile Tour Vienna 2015
Page 9: Test Automation Without the Headache: Agile Tour Vienna 2015
Page 10: Test Automation Without the Headache: Agile Tour Vienna 2015

Divideexpectations,

workflows,interactions

Page 11: Test Automation Without the Headache: Agile Tour Vienna 2015

When items = …,assert tax == ...

Page 12: Test Automation Without the Headache: Agile Tour Vienna 2015

When items = …,assert tax == ...

Add itemsAuthoriseCheckout

Page 13: Test Automation Without the Headache: Agile Tour Vienna 2015

When items = …,assert tax == ...

Add itemsAuthoriseCheckout

$('input[name=…]').val(…)$('a[role=…]').click()

Page 14: Test Automation Without the Headache: Agile Tour Vienna 2015

When items = …,assert tax == ...

Add itemsAuthoriseCheckout

$('input[name=…]').val(…)$('a[role=…]').click()

DEPENDSON THETOOL

DEPENDSON THE APP

Page 15: Test Automation Without the Headache: Agile Tour Vienna 2015
Page 16: Test Automation Without the Headache: Agile Tour Vienna 2015
Page 17: Test Automation Without the Headache: Agile Tour Vienna 2015
Page 18: Test Automation Without the Headache: Agile Tour Vienna 2015
Page 19: Test Automation Without the Headache: Agile Tour Vienna 2015

Simulate onlythings youcompletelyunderstand

Page 20: Test Automation Without the Headache: Agile Tour Vienna 2015
Page 21: Test Automation Without the Headache: Agile Tour Vienna 2015

AVOIDMOCKING

NEVERMOCK

Page 22: Test Automation Without the Headache: Agile Tour Vienna 2015
Page 23: Test Automation Without the Headache: Agile Tour Vienna 2015
Page 24: Test Automation Without the Headache: Agile Tour Vienna 2015
Page 25: 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 |

Page 26: Test Automation Without the Headache: Agile Tour Vienna 2015

Make the link frominputs to outputs

obvious

Page 27: Test Automation Without the Headache: Agile Tour Vienna 2015
Page 28: Test Automation Without the Headache: Agile Tour Vienna 2015
Page 29: Test Automation Without the Headache: Agile Tour Vienna 2015

Optimise fortroubleshootingnot for writing

Page 30: Test Automation Without the Headache: Agile Tour Vienna 2015
Page 31: Test Automation Without the Headache: Agile Tour Vienna 2015

Re-organisefor discovery

Page 32: Test Automation Without the Headache: Agile Tour Vienna 2015
Page 33: Test Automation Without the Headache: Agile Tour Vienna 2015

5 KEY PATTERNS1) Split expectations, workflows and interaction2) Isolate only things you completely understand3) Make the link from inputs to outputs obvious4) Optimise for troubleshooting not for writing5) Re-organise for discovery

Page 34: Test Automation Without the Headache: Agile Tour Vienna 2015