Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

of

Leave end-to-end testing to Capybara Slide 1 Leave end-to-end testing to Capybara Slide 2 Leave end-to-end testing to Capybara Slide 3 Leave end-to-end testing to Capybara Slide 4 Leave end-to-end testing to Capybara Slide 5 Leave end-to-end testing to Capybara Slide 6 Leave end-to-end testing to Capybara Slide 7 Leave end-to-end testing to Capybara Slide 8 Leave end-to-end testing to Capybara Slide 9 Leave end-to-end testing to Capybara Slide 10 Leave end-to-end testing to Capybara Slide 11 Leave end-to-end testing to Capybara Slide 12 Leave end-to-end testing to Capybara Slide 13 Leave end-to-end testing to Capybara Slide 14 Leave end-to-end testing to Capybara Slide 15 Leave end-to-end testing to Capybara Slide 16 Leave end-to-end testing to Capybara Slide 17 Leave end-to-end testing to Capybara Slide 18 Leave end-to-end testing to Capybara Slide 19 Leave end-to-end testing to Capybara Slide 20 Leave end-to-end testing to Capybara Slide 21 Leave end-to-end testing to Capybara Slide 22 Leave end-to-end testing to Capybara Slide 23 Leave end-to-end testing to Capybara Slide 24 Leave end-to-end testing to Capybara Slide 25 Leave end-to-end testing to Capybara Slide 26 Leave end-to-end testing to Capybara Slide 27 Leave end-to-end testing to Capybara Slide 28 Leave end-to-end testing to Capybara Slide 29 Leave end-to-end testing to Capybara Slide 30 Leave end-to-end testing to Capybara Slide 31 Leave end-to-end testing to Capybara Slide 32 Leave end-to-end testing to Capybara Slide 33 Leave end-to-end testing to Capybara Slide 34 Leave end-to-end testing to Capybara Slide 35 Leave end-to-end testing to Capybara Slide 36 Leave end-to-end testing to Capybara Slide 37 Leave end-to-end testing to Capybara Slide 38 Leave end-to-end testing to Capybara Slide 39 Leave end-to-end testing to Capybara Slide 40 Leave end-to-end testing to Capybara Slide 41 Leave end-to-end testing to Capybara Slide 42 Leave end-to-end testing to Capybara Slide 43 Leave end-to-end testing to Capybara Slide 44 Leave end-to-end testing to Capybara Slide 45 Leave end-to-end testing to Capybara Slide 46 Leave end-to-end testing to Capybara Slide 47 Leave end-to-end testing to Capybara Slide 48 Leave end-to-end testing to Capybara Slide 49 Leave end-to-end testing to Capybara Slide 50 Leave end-to-end testing to Capybara Slide 51 Leave end-to-end testing to Capybara Slide 52 Leave end-to-end testing to Capybara Slide 53
Upcoming SlideShare
I Love APIs 2015: End to End Testing: Bug Squashing for Developers
Next
Download to read offline and view in fullscreen.

4 Likes

Share

Download to read offline

Leave end-to-end testing to Capybara

Download to read offline

大江戸Ruby会議01

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all

Leave end-to-end testing to Capybara

  1. 1. Leave end-to- end testing to Capybara SHIBATA Hiroshi Eiwa System Management,Inc.
  2. 2. SHIBATA Hiroshi a.k.a hsbt shibata.hiroshi@gmail.com tDiary commiter
  3. 3. http://www.hsbt.org/ http://github.com/hsbt/ http://twitter.com/hsbt/
  4. 4. asakusa.rb
  5. 5. SapporoRubyKaigi
  6. 6. RubyKaigi 2010
  7. 7. Capybara
  8. 8. Capybara
  9. 9. RSpec runner cucumber runner cucumber DSL(ja) RSpec DSL cucumber DSL capybara
  10. 10. RSpec Example
  11. 11. DSL feature ' ' do background do setup_tdiary end scenario ' ' do visit '/' within('title') do page.should have_content(' ') } end within('h1') do page.should have_content(' ') end page.should have_css('a[href="update.rb"]') end end
  12. 12. Cucumber Example
  13. 13. Driver
  14. 14. Driver
  15. 15. HtmlUnit
  16. 16. javascript engine
  17. 17. Selenium Webdriver
  18. 18. require ‘capybara/dsl’ RSpec.configure do |config| config.include Capybara config.before(:all, :selenium => true) do Capybara.current_driver = :selenium end end
  19. 19. http://www.ne.jp/asahi/t/wada/articles/Refactoring_and_Test.pdf
  20. 20. best mix
  21. 21. DSL config.before(:all, :selenium => true) do Capybara.current_driver = :selenium end config.after(:all, :selenium => true) do Capybara.use_default_driver end
  22. 22. DSL feature " ", :selenium => true do let!(:administrator) { User.make! } before do login_as administrator visit new_admin_user_path end scenario " " do ( ) end end
  23. 23. capybara/rspec
  24. 24. DSL feature " ", :driver => :akephalos do scenario " " do ( ) end end feature " ", :js => true do scenario " " do ( ) end end => :driver = :selenium
  25. 25. !!!
  26. 26. RubyKaigi 2011
  • KanSakamoto

    Nov. 1, 2015
  • amite

    Jul. 26, 2013
  • akm2000

    Apr. 11, 2011
  • haru01

    Apr. 10, 2011

大江戸Ruby会議01

Views

Total views

5,095

On Slideshare

0

From embeds

0

Number of embeds

139

Actions

Downloads

44

Shares

0

Comments

0

Likes

4

×