Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Embracing Python for Software Testing - BDD Style

Embracing Python for Software Testing - BDD Style

3718792073b1fd9aef81fc23a35bb825?s=128

Jakub Jarosz

October 13, 2012
Tweet

Transcript

  1. Embracing Python for Software Testing - BDD Style PyCon Ireland

    2012 Jakub Jarosz http://testing.gobanana.co.uk/?p=743
  2. test & deployment automation

  3. softtest ireland softtest.ie #SoftTestIreland

  4. today's menu: test evolution challenges communication specification

  5. http://advancedlifeskills.com/blog/do-you-see-blessings-in-challenges/

  6. big picture... UI midlayer back end - engine reports UI

  7. stack UI midlayer back end - engine reports UI C++

  8. testing UI midlayer back end - engine reports UI

  9. focus UI midlayer back end - engine reports UI

  10. back end overview

  11. rules & statistics http://mikelperez.wikispaces.com/

  12. test evolution... http://www.facefinal.com/2012/09/100-reasons-why-evolution-is-so-stupid.html#.UHeYJRZ25mE

  13. preconditions

  14. REST - the manual way

  15. manual testing... http://blog.chriss-baumann.de/2010/07/26/because-life-is-too-short-for-manual-testing

  16. automating

  17. pyUnit http://www.oracleunittesting.com/unit-testing/part-4-how-do-unit-tests-work/

  18. use & test case DB SUT preconditions REST

  19. None
  20. None
  21. 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
  22. Business readable specification http://images.businessweek.com/ss/09/06/0630_contract_workers/4.htm

  23. Describe software behaviour... ... without detailing how that behaviour is

    implemented. http://www.uea.ac.uk/~m242/nasc/cross/cman/howbig.htm
  24. BDD - testing stack PROJECT Steps Features Scenarios

  25. BDD - testing stack PROJECT Steps Features Scenarios Step definitions

    Support code Automation library SYSTEM
  26. BDD - testing stack PROJECT Steps Features Scenarios Step definitions

    Support code Automation library SYSTEM BUSINESS TECHNOLOGY
  27. collaboration http://oecdeducationtoday.blogspot.com/2012/05/what-should-students-learn-in-21st.html

  28. lettuce http://www.bigoven.com/recipes/Lettuce/title

  29. project structure

  30. project structure - BDD

  31. project structure - libs & unittest

  32. lettuce

  33. lettuce steps definition

  34. lettuce - Given

  35. lettuce - When

  36. lettuce - Then

  37. lettuce run... http://thnxfrthememories.blogspot.com/2010/07/run-forrest-run.html

  38. lettuce run...

  39. CI server $ lettuce security_buffer.feature --with- xunit

  40. http://www.zazzle.com/its_not_what_you_believe_but_how_you_behave_magnet-147580983275159945

  41. Project structure

  42. statistics http://mikelperez.wikispaces.com/

  43. None
  44. None
  45. None
  46. Steps http://www.creativetriage.com/2010/11/02/8-steps-a-day-to-community-hospital-social-media-success/

  47. None
  48. None
  49. web console http://mikelperez.wikispaces.com/

  50. None
  51. Steps http://www.creativetriage.com/2010/11/02/8-steps-a-day-to-community-hospital-social-media-success/

  52. None
  53. None
  54. None
  55. None
  56. None
  57. CI server $ $ behave ec_web_console_2.feature --junit

  58. Jakub Jarosz @jakubjarosz http://testing.gobanana.co.uk/?p=743 Thank You ! Q & A