@@ -7,7 +7,7 @@ Feature: Scenario Outlines and Examples
7
7
Background:
8
8
Given a background step
9
9
10
- Scenario Outline: outline
10
+ Scenario Outline: basic outline
11
11
When a <some> step
12
12
Then i get <result>
13
13
Examples:
@@ -21,7 +21,7 @@ Feature: Scenario Outlines and Examples
21
21
And the step "i get passed" has a passing mapping
22
22
And the step "i get skipped" has a passing mapping
23
23
When Cucumber runs the feature
24
- Then the scenario called "outline" is reported as failing
24
+ Then the scenario called "basic outline" is reported as failing
25
25
And the step "a background step" passes
26
26
And the step "a passing step" passes
27
27
And the step "a failing step" passes
@@ -30,9 +30,9 @@ Feature: Scenario Outlines and Examples
30
30
31
31
Scenario : Outline with table
32
32
Given the following feature:
33
- """
33
+ """
34
34
Feature: testing scenarios
35
- Scenario Outline: outline
35
+ Scenario Outline: outline with table
36
36
When a table step:
37
37
| first | second |
38
38
| <first> | <second> |
@@ -49,9 +49,9 @@ Feature: Scenario Outlines and Examples
49
49
50
50
Scenario : Outline with doc string
51
51
Given the following feature:
52
- """
52
+ """
53
53
Feature: testing scenarios
54
- Scenario Outline: outline
54
+ Scenario Outline: outline with doc string
55
55
When a doc string step:
56
56
\"\"\"
57
57
I am doc string in <example> example
@@ -64,15 +64,37 @@ Feature: Scenario Outlines and Examples
64
64
And the step "a doc string step:" has a passing mapping that receives a doc string
65
65
When Cucumber runs the feature
66
66
Then the received doc string equals the following:
67
- """
68
- I am doc string in first example
69
- And there are some string
70
- """
71
-
72
- Scenario Outline : outline
73
- When a <some> step
74
- Then i get <result>
75
- Examples :
76
- | some | result |
77
- | passing | passed |
78
- | failing | skipped |
67
+ """
68
+ I am doc string in first example
69
+ And there are some string
70
+ """
71
+
72
+ Scenario : Several outlines
73
+ Given the following feature:
74
+ """
75
+ Feature: testing scenarios
76
+ Scenario Outline: scenario outline 1
77
+ When step <id>
78
+
79
+ Examples:
80
+ | id |
81
+ | a |
82
+ | b |
83
+
84
+ Scenario Outline: scenario outline 2
85
+ When step <id>
86
+
87
+ Examples:
88
+ | id |
89
+ | c |
90
+ | d |
91
+ """
92
+ And the step "step a" has a passing mapping
93
+ And the step "step b" has a passing mapping
94
+ And the step "step c" has a passing mapping
95
+ And the step "step d" has a passing mapping
96
+ When Cucumber runs the feature
97
+ Then the step "step a" passes
98
+ And the step "step b" passes
99
+ And the step "step c" passes
100
+ And the step "step d" passes
0 commit comments