More
See all Show me
2. Cucumber and Watir 101
10 months ago
1. Run.Track.Run.
1 year ago
Showing how to get started with Cucumber and Watir

Credits

10 Likes

  • Aslak Hellesøy 10 months ago
    Thanks a lot for making this Dave! Excellent simple intro to Cucumber and Watir (add some bread and tomatoes and you have Gazpacho!). At 03:25 I would have implemented the step definition a little differently though:

    BROWSER.text.should include("Austin Workshop on Test Automation")

    If the text is not on the page (which you show at 04:04), Cucumber will print what was actually there, instead of saying "expected true, got false", which isn't very helpful.

    But that's a small detail really.
  •  
  • Dave Hoover 10 months ago
    Thanks for the tip Aslak. I figured there was a better way to do that but didn't have time to look it up before my demo. :) That's an rSpec thing, right?
  •  
  • Aslak Hellesøy 10 months ago
    Yep, that trick is part of the RSpec API (which Cucumber has drop-in support for).
  •  
  • Sigfrid Dusci 10 months ago
    Hello Dave, I'm trying to watch the video (Safari and Firefox on MacOS 10.5.6) but looks like I have an issue with the audio: I can't hear your voice.
    I have checked out even the Quicktime version but no audio neither there.

    Am I missing something?

    Thanks and have a nice day.
  •  
  • Aslak Hellesøy 10 months ago
    The recording doesn't have audio.
  •  
  • Dave Hoover 10 months ago
    @Sigfrid, as Aslak said, there's no audio. I screencasted this about 30 minutes after my lightning talk at AWTA... while other people were giving other lightning talks. (Yes, I was sort of a bad listener.) That's why I didn't use audio. The code should speak for itself, though.
  • Sigfrid Dusci 5 months ago
    Hi guys,
    finally I have time to take a deep look of cucumber with watir. The code is quite self-explicative but I'm wandering if there is a way to use rails routes instead absolute url.

    let us say I want to something like

    Given /^I am on (.+)$/ do |page_name|
    BROWSER.goto(path_to(page_name))
    end

    unfortunately the code above doesn't work: when I run cucumber the step passes but the browser tries to open 'file:///'

    Any ideas about that?

    THANKS and have a good 1!
  •  
This conversation is missing your voice. Take five seconds to join Vimeo or log in.

Advertisement

1 Related collections

Albums Albums

Statistics

  •  
    plays
    likes
    comments
  • Total
    plays 3,180
    likes 10
    comments 7
  • Nov 30th
    plays 0
    likes 0
    comments 0
  • Nov 29th
    plays 3
    likes 0
    comments 0
  • Nov 28th
    plays 2
    likes 0
    comments 0
  • Nov 27th
    plays 9
    likes 0
    comments 0
  • Nov 26th
    plays 3
    likes 0
    comments 0
  • Nov 25th
    plays 6
    likes 0
    comments 0
  • Nov 24th
    plays 6
    likes 0
    comments 0
  • Nov 23rd
    plays 5
    likes 0
    comments 0
Previous Week

Downloads

Please join Vimeo or log in to download the original file. It only takes a few seconds.