00:00
341
More
See all Show me
2. Cucumber and Watir 101
3 years ago
1. Run.Track.Run.
3 years ago
Showing how to get started with Cucumber and Watir

Credits

Likes

See all likes
  • Aslak Hellesøy 3 years 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 3 years 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 3 years ago
    Yep, that trick is part of the RSpec API (which Cucumber has drop-in support for).
  •  
  • Sigfrid Dusci 3 years 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 3 years ago
    The recording doesn't have audio.
  •  
  • Dave Hoover 3 years 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 2 years 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

About this video

FLV
00:05:41
  • 504x288, 3.36MB
  • Uploaded Sun January 18, 2009
  • Please join or log in to download
  • License:
1 Related collection

Statistics

Date Plays Comments
Totals 7,121 13 7
Feb 14th 4 0 0
Feb 13th 11 0 0
Feb 12th 4 0 0
Feb 11th 2 0 0
Feb 10th 17 0 0
Feb 9th 6 0 0
Feb 8th 3 0 0