To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorExample modeling
Example models represent an example table of a Scenario Outline portion of a feature. They expose
several attributes of the example that they represent, as well as containing models for the example
rows and tags that are present in that example.
- Background
-
- Given
-
the following gherkin:
@a_tag Examples: test example Some example description. Some more. Even more. | param 1 | param 2 | | value 1 | value 2 |
- And
-
an example model based on that gherkin
@model = CukeModeler::Example.new(<source_text>)
- Scenarios
-
- Modeling an example's name
- Modeling an example's description
- Modeling an example's rows
- Modeling an example's tags
- Modeling an example's source line
- Modeling an example's name
-
- When
-
the example's name is requested
@model.name
- Then
- the model returns "test example"
- Modeling an example's description
-
- When
-
the example's description is requested
@model.description
- Then
-
the model returns
Some example description. Some more. Even more.
- Modeling an example's rows
-
- When
-
the example's rows are requested
@model.rows
- Then
-
the model returns models for the following rows:
param 1 param 2 value 1 value 2
- Modeling an example's tags
-
- Given
-
the following gherkin:
@feature_tag Feature: @outline_tag Scenario Outline: * a step @example_tag Examples: | param | | value |
- And
-
a feature model based on that gherkin
@model = CukeModeler::Feature.new(<source_text>)
- And
-
the example model inside of that feature model
@model = @model.tests.first.examples.first
- When
-
the example's tags are requested
@model.tags
- Then
-
the model returns models for the following tags:
@example_tag - When
-
the example's inherited tags are requested
@model.applied_tags
- Then
-
the model returns models for the following tags:
@feature_tag @outline_tag - When
-
all of the example's tags are requested
@model.all_tags
- Then
-
the model returns models for the following tags:
@feature_tag @outline_tag @example_tag
- Modeling an example's source line
-
- Given
-
the following gherkin:
Feature: Scenario Outline: * a step Examples: | param | | value |
- And
-
a feature model based on that gherkin
@model = CukeModeler::Feature.new(<source_text>)
- And
-
the example model inside of that feature model
@model = @model.tests.first.examples.first
- When
-
the example's source line is requested
@model.source_line
- Then
- the model returns "5"
Last published over 6 years ago by Eric Kessler.