0
automatic
ACCEPTANCE
TESTS
by @CS3B from @SELLEO
●acceptance tests vs integration
tests
●view few examples
●write example tests
●look at cucumber
●review some tools
●look ...
http://toolmonger.com/2008/04/30/its-just-cool-87-tool-swiss-army-knife/
@ Alan Signer
http://blog.jonasbandi.net/2010/09/acceptance-vs-integration-tests.html
http://thecriticalpath.info/wp-content/uploads/2009/11/checklist.jpg http://www.shopperculture.com/photos/uncategorized/20...
ACCEPTANCE
!=
INTEGRATION
after new user register, it
should be possible to
spread word about our
product through her social
channels to get more
cu...
after new user register, it
should be possible to
spread word about our
product through her social
channels to get more
cu...
after new user register, it
should be possible to
spread word about our
product through her social
channels to get more
cu...
after new user register, it
should be possible to
spread word about our
product through her social
channels to get more
cu...
Examples:
●post on twitter
●post on
facebook
●post on linkedin
●post on ...
to attract people with hearing loss to site we should provide
comprehensive article list that cover most important topics....
We should provide facilities
to make easy for any
customers to contact with
support team - also support
team should have e...
http://3.bp.blogspot.com/-0A-
ZwSc33DU/TXuXxNMheCI/AAAAAAAAAKo/3pUohpMToX4/s320/surprised_baby_2.
jpg
excercise #1
1.open web application that you
have work in past / use
2.find and describe two
acceptance criteria with all ...
http://archives.un.org/ARMS/sites/ARMS/uploads/images/1195421755148157000Andy_-_Tools_Hammer_Spanner_svg_hi.pn
http://www.stat.uiowa.edu/~jcryer/22s008/righttool.htm
http://cukes.info/images/cuke_logo.png
Feature: Sharing info about site through social
channels
after new user register
it should be possible to spread word abou...
http://4.bp.blogspot.com/_1c6uKfrEfj0/S9ILYSIigII/AAAAAAAAFEU/hBcZO2mbD_I/s1600/mouse_robot.jpg
RSPEC
CAPYBARA
http://ui.thoughtbot.com/assets/capybara-driver.jpg
exercise #2
Bootstrap rspec and capybara
in Ruby on Rails project
fetch project from:
http://bit.ly/workshop_app
exercise #3
Run simple test to
name of file:
spec/acceptance/home_page_spec.rb
exercise #4
Write essential acceptance test
for e-commerce using
capybara api
name of file:
better api then capybara
●bbq
●real production example
of similar idea
exercise #5
Write essential acceptance test
for e-commerce using custom
api
name of file:
meta info
# We should provide facilities to make easy for any
# customers to contact with support team - also support
# te...
scenario "contact with support", :status => 'done' do
@customer.click "Contact Us", :within => "#sidebar"
---
# ~/.spec
--...
http://i9.photobucket.com/albums/a65/Pasha_1950/Crash-1.jpg
huge initial data
[RuPy 2011] Automatic Acceptance Tests in Ruby
[RuPy 2011] Automatic Acceptance Tests in Ruby
[RuPy 2011] Automatic Acceptance Tests in Ruby
[RuPy 2011] Automatic Acceptance Tests in Ruby
[RuPy 2011] Automatic Acceptance Tests in Ruby
Upcoming SlideShare
Loading in...5
×

[RuPy 2011] Automatic Acceptance Tests in Ruby

886

Published on

Slides from one day workshop, where people could learn how to write acceptance tests in efficient and practical way, in the context of Ruby On Rails framework (using tools like: rspec and capybara). During this course you attendees also learn about approaches that turn your acceptance tests into invaluable documentation, that includes information about your application's requirements and specification.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
886
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "[RuPy 2011] Automatic Acceptance Tests in Ruby"

  1. 1. automatic ACCEPTANCE TESTS by @CS3B from @SELLEO
  2. 2. ●acceptance tests vs integration tests ●view few examples ●write example tests ●look at cucumber ●review some tools ●look capybara api ●documentations and write better api ●some random tips about testing
  3. 3. http://toolmonger.com/2008/04/30/its-just-cool-87-tool-swiss-army-knife/
  4. 4. @ Alan Signer
  5. 5. http://blog.jonasbandi.net/2010/09/acceptance-vs-integration-tests.html
  6. 6. http://thecriticalpath.info/wp-content/uploads/2009/11/checklist.jpg http://www.shopperculture.com/photos/uncategorized/2009/01/11/value.gif http://www.ruthmalan. com/Journal/Images/ArchitectureDocumentS.jpg http://www.codework-systems.com/images/icons/netop/teacher.png
  7. 7. ACCEPTANCE != INTEGRATION
  8. 8. after new user register, it should be possible to spread word about our product through her social channels to get more customers
  9. 9. after new user register, it should be possible to spread word about our product through her social channels to get more customers
  10. 10. after new user register, it should be possible to spread word about our product through her social channels to get more customers
  11. 11. after new user register, it should be possible to spread word about our product through her social channels to get more customers
  12. 12. Examples: ●post on twitter ●post on facebook ●post on linkedin ●post on ...
  13. 13. to attract people with hearing loss to site we should provide comprehensive article list that cover most important topics. Important topic list: hearing loss , hearing aids, tinnitus, hearing rehabilitation
  14. 14. We should provide facilities to make easy for any customers to contact with support team - also support team should have easy reply channel. Feedback would have impact on future development and customer experience.
  15. 15. http://3.bp.blogspot.com/-0A- ZwSc33DU/TXuXxNMheCI/AAAAAAAAAKo/3pUohpMToX4/s320/surprised_baby_2. jpg
  16. 16. excercise #1 1.open web application that you have work in past / use 2.find and describe two acceptance criteria with all 3 elements so it could be used as in specification (without implementation details)
  17. 17. http://archives.un.org/ARMS/sites/ARMS/uploads/images/1195421755148157000Andy_-_Tools_Hammer_Spanner_svg_hi.pn
  18. 18. http://www.stat.uiowa.edu/~jcryer/22s008/righttool.htm
  19. 19. http://cukes.info/images/cuke_logo.png
  20. 20. Feature: Sharing info about site through social channels after new user register it should be possible to spread word about our product through her social networks to get more customers # gain permission to post on wall automaticly Scenario: sign up through facebook Scenario: ask user to post short message after registration
  21. 21. http://4.bp.blogspot.com/_1c6uKfrEfj0/S9ILYSIigII/AAAAAAAAFEU/hBcZO2mbD_I/s1600/mouse_robot.jpg
  22. 22. RSPEC
  23. 23. CAPYBARA
  24. 24. http://ui.thoughtbot.com/assets/capybara-driver.jpg
  25. 25. exercise #2 Bootstrap rspec and capybara in Ruby on Rails project fetch project from: http://bit.ly/workshop_app
  26. 26. exercise #3 Run simple test to name of file: spec/acceptance/home_page_spec.rb
  27. 27. exercise #4 Write essential acceptance test for e-commerce using capybara api name of file:
  28. 28. better api then capybara ●bbq ●real production example of similar idea
  29. 29. exercise #5 Write essential acceptance test for e-commerce using custom api name of file:
  30. 30. meta info # We should provide facilities to make easy for any # customers to contact with support team - also support # team should have easy reply channel. Feedback # would have impact on future development and # customer experience. ## milestone: one ## value: essential ## estimation: 21 ## scope: added ## type: acceptance
  31. 31. scenario "contact with support", :status => 'done' do @customer.click "Contact Us", :within => "#sidebar" --- # ~/.spec --tag status:wip --- spork issue
  32. 32. http://i9.photobucket.com/albums/a65/Pasha_1950/Crash-1.jpg
  33. 33. huge initial data
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×