$30 off During Our Annual Pro Sale. View Details »

Automated Acceptance Testing

Automated Acceptance Testing

My talk on using Calabash for Automated Acceptance Testing at CocoaHeads Durham

Josh Johnson

July 29, 2012
Tweet

More Decks by Josh Johnson

Other Decks in Programming

Transcript

  1. Automated Acceptance Testing or: How I stopped worrying and trusted

    the tests by Josh Johnson - @jnjosh
  2. Disclaimer. (I haven’t always tested)

  3. So, testing...

  4. Acceptance Testing

  5. Frank KIF

  6. None
  7. calaba.sh http://

  8. How does it work?

  9. None
  10. As a role I want action In order to goal

  11. Given context When event occurs Then ensure outcome

  12. So, what does this look like?

  13. None
  14. Feature: Cool Button View As a user of Cool Button

    App I want to be able to press buttons So I can see cool text and images
  15. Feature: Cool Button View As a user of Cool Button

    App I want to be able to press buttons So I can see cool text and images Scenario: Hello displays message Given the app is running When I touch "Hello" Then I see the text "Hello CocoaHeads!"
  16. None
  17. Feature: Cool Button View As a user of Cool Button

    App I want to be able to press buttons So I can see cool text and images Scenario: Hello displays message Given the app is running When I touch "Hello" Then I see the text "Hello CocoaHeads!" Scenario: Cool displays image Given the app is running When I touch "Cool" Then I see the "hoff"
  18. None
  19. None
  20. Cool!

  21. None
  22. Remember when I said “Device” testing and “Rotation”?

  23. www.lesspainful.com

  24. video courtesy lesspainful.com http://www.youtube.com/watch?v=fX4TLdf02L4

  25. Robots!*

  26. Robots! * well, not exactly robots, but it is still

    pretty cool *
  27. So, How did you stop worrying and trust the tests?

  28. Use something that makes it easy.

  29. Make it a deliverable.

  30. Questions?

  31. Thanks! calaba.sh http://