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.
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?
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.
@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.
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.
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.
I have checked out even the Quicktime version but no audio neither there.
Am I missing something?
Thanks and have a nice day.
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!