Sha256: 8af49617375ca95b37314e4051207996f2c441d16978d5395cf48c0dd137b1c1

Contents?: true

Size: 1.08 KB

Versions: 45

Compression:

Stored size: 1.08 KB

Contents

# File: demo01.feature

Feature: Show the use of a basic macro
  As a Cuke user
  So that I enjoy writing scenario.


Scenario: Definition of a simple macro-step
  # The next step creates a macro(-step)
  # The syntax of the new macro-step is specified between double quotes.
  # The steps to execute when the macro is used/invoked are listed in the multiline triple quotes arguments.
  Given I define the step "* I [log in]" to mean:
  """
  Given I landed in the homepage
  When I click "Sign in"
  And I fill in "Username" with "johndoe"
  And I fill in "Password" with "unguessable"
  And I click "Submit"
  """

Scenario: Let's use the macro we created above
  # Here the macro is invoked
  When I [log in]

  # The next step verifies that the steps from the macro were effectively executed.
  Then I expect the following step trace:
  """
Invoked step: ... I landed in the homepage
Invoked step: ... I click "Sign in"
Invoked step: ... I fill in "Username" with "johndoe"
Invoked step: ... I fill in "Password" with "unguessable"
Invoked step: ... I click "Submit"
  """

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
macros4cuke-0.4.07 features/demo01.feature
macros4cuke-0.4.06 features/demo01.feature
macros4cuke-0.4.05 features/demo01.feature
macros4cuke-0.4.04 features/demo01.feature
macros4cuke-0.4.03 features/demo01.feature
macros4cuke-0.4.02 features/demo01.feature
macros4cuke-0.4.01 features/demo01.feature
macros4cuke-0.4.00 features/demo01.feature
macros4cuke-0.3.42 features/demo01.feature
macros4cuke-0.3.41 features/demo01.feature
macros4cuke-0.3.40 features/demo01.feature
macros4cuke-0.3.39 features/demo01.feature
macros4cuke-0.3.38 features/demo01.feature
macros4cuke-0.3.37 features/demo01.feature
macros4cuke-0.3.35 features/demo01.feature
macros4cuke-0.3.34 features/demo01.feature
macros4cuke-0.3.32 features/demo01.feature
macros4cuke-0.3.30 features/demo01.feature
macros4cuke-0.3.29 features/demo01.feature
macros4cuke-0.3.28 features/demo01.feature