Displaying 2 results from an estimated 2 matches for "my_steps".
Did you mean:
missteps
2009 Jan 30
3
Pass a variable from rake to steps file in cucumber
...''PROFILE''] || ''default''
browser_type = ENV[''BROWSER''] || ''*chrome''
t.cucumber_opts = "--profile #{profile}"
end
I would like to have access to the "browser_type" variable in my "Before do"
in my_steps.rb file.
## my_steps.rb
Before do
$browser = Selenium::SeleniumDriver.new($server_host, $server_port,
"browser_type", $root_url, $time_out)
end
Thanks for the help.
--
View this message in context: http://www.nabble.com/Pass-a-variable-from-rake-to-steps-file-in-cucumber-tp2174600...
2008 Jun 17
1
Confused - which is the correct Story API
...e mystory.story ---
Story: My story description
As a user
I want to buy something
So I have stuff
Scenario: user has money and buys something
Given a user has 100 dollars
etc...
-- Ruby file mystory.rb --
require File.join(File.dirname(__FILE__), "spec_helper")
steps_for(:my_steps) do
Given...
When...
Then...
etc...
end
with_steps_for :my_steps do
run File.expand_path(__FILE__).gsub(".rb",".story")
end
Now for the non-plain text stories is it this? (splitting into
separate files is a YMMV thing)
--- mystory.rb ---
require File.join(File.dirn...