features/demo03.feature in macros4cuke-0.3.00 vs features/demo03.feature in macros4cuke-0.3.01
- old
+ new
@@ -7,11 +7,11 @@
Scenario: defining basic macro with multiple arguments
# The next step creates a macro(-step)double quotes.
# The steps to execute when the macro is used/invoked are listed in the multiline triple quotes arguments.
# The macro-step arguments are put between chevrons <...>.
- Given I define the step "When I [enter my userid <userid> and password <password>]" to mean:
+ Given I define the step "* I [enter my userid <userid> and password <password>]" to mean:
"""
Given I landed in the homepage
When I click "Sign in"
And I fill in "Username" with "<userid>"
And I fill in "Password" with "<password>"
@@ -31,11 +31,11 @@
Invoked step: ... I fill in "Password" with "unguessable"
Invoked step: ... I click "Submit"
"""
Scenario: A macro invoking another macro (YES, it's possible!)
- Given I define the step "When I [enter my credentials]" to mean:
+ Given I define the step "* I [enter my credentials]" to mean:
"""
# Notice that the next step is invoking the first macro above
When I [enter my userid "guest" and password "unguessable"]
"""
@@ -48,6 +48,6 @@
Invoked step: ... I landed in the homepage
Invoked step: ... I click "Sign in"
Invoked step: ... I fill in "Username" with "guest"
Invoked step: ... I fill in "Password" with "unguessable"
Invoked step: ... I click "Submit"
- """
\ No newline at end of file
+ """