msuarz edited this page Dec 4, 2012 · 7 revisions

Steps Arguments

Args are represented as matching groups in the Steps regex declaration
For simplicity they could be represented as @any_word which will be translated to (.*)
But that does not imply a relationship with the function parameters
Their values are passed in left to right order to the function

Example [ Login ]

when Jim logs in  
it should say Hello lizard king  

Multiline Arguments

Enclose multiline args between """
The quotes should be in a single line starting after the step
There's no need to match the arg in the regex
It will be passed as the last parameter

Example [ Login ]

when Pam logs in  
it should say
  Hello turkey murderer