Details
-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: 3.6.3
-
Fix Version/s: None
-
Component/s: Core
-
Labels:None
-
Environment:I tested it on 3.6.3 and 3.6.8 versions.
-
Testcase included:yes
-
Number of attachments :
Description
I try to use parametrised tables in similar way that described here:
http://jbehave.org/reference/stable/tabular-parameters.html
I wrote following story:
Scenario: test
Given parameters:
column1 | column2 |
value1 | <values> |
Examples:
<values> |
value1 |
value2 |
Also i tried this version:
Scenario: test
Given parameters:
column1 | column2 |
value1 | <values> |
Examples:
values |
value1 |
value2 |
And this is my step:
@Given("parameters: $table")
public void readParameters(ExamplesTable table) {
for (Map<String, String> row : table.getRows())
}
Expected result:
Output is:
key value1
key value2
Actually result:
Output is:
key <values>
key <values>
Also, you can find story and tests in attachments.
Activity
Eugeny Batov
made changes -
Field | Original Value | New Value |
---|---|---|
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Won't Fix [ 2 ] |
This scenario is already verified in https://github.com/jbehave/jbehave-core/blob/master/examples/trader/src/main/java/org/jbehave/examples/trader/stories/parametrised_table.story
See if you can run it and get the expected behaviour.