From the course: Cucumber Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Data table: Wrapping up

Data table: Wrapping up

From the course: Cucumber Essential Training

Start my 1-month free trial

Data table: Wrapping up

- This is how the data in the list of maps was stored. On the left hand side, we have three headers and the data as A, B, C and D, E, F in two different rows. And on the right hand side, each of these rows became a map. Within the map, you had the key entries. So, a key value pair is header 1 and value A, and so on and so forth. Please take a moment to review this slide. Data tables are very powerful constructs. You can use data tables to write highly compact and reusable test scenarios. It's a good idea to know how the data is stored but if you find different approaches in this lesson confusing, no worries. Just use, DataTable.raw function to read the contents of the data table as a list of list of strings and play with it. And then, use the GET method to to inspect elements. One key thing that I want to point out is we have used string examples in this lesson. But you can read data as integers from the data table. For example, data tables can be read in a map with integer values as…

Contents