[LRUG] parametise and pass values to a story

aidy lewis aidy.lewis at googlemail.com
Tue May 27 04:59:23 PDT 2008


Hi,

Could anyone please tell me how I can parametise and pass values to this story?


Story "Login to XXX site",
 %(As an XXX user I want to login to my site to view available
content) do

 Scenario "The user inputs a correct username and login \n" do
   Given "the username and the password is correct" do
     @browser_wrapper = BrowserWrapper.new
     @xxx = XxxWebsite.new(@browser_wrapper.browser)
     puts "probably need to abstract these to a setup method"
      @browser_wrapper.goto("http://xxx.ui.systest")
    end
    When "the user submits the login form" do
         @xxx.welcome_page.login("foo", "bar")
     end
   end
 end

-- 
Aidy
www.agiletester.co.uk



More information about the Chat mailing list