How to read key/value pairs from data table
- By Andy
Consider you have a feature file containing a dataTable of field/value pairs:
If you want to read the table values out by keying on name, and description, there are a number of ways to achieve this, but one way is to transpose the dataTable:
Can create role:
Given I login as user TestUser1
When I create the role
| field | value |
| name | My First Role |
| description | Hello World |
If you want to read the table values out by keying on name, and description, there are a number of ways to achieve this, but one way is to transpose the dataTable:
What does "transpose" table...
Last edited: