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: Read list of strings
From the course: Cucumber Essential Training
Data table: Read list of strings
- [Instructor] So for the last two methods I'm just going to remove the exception error and not implement anything here. But for the first method, as you can see, there is a data table called data table available to us. Let's go ahead and parse information from this data table. I'll just remove all the existing code here and type. I have a list of string which I am going to call BillData and that is going to read from dataTable, and it's going to read that dataTable as list, and as you can see this is a list of strings. In here, I'm just going to supply string.class, and my data is available as a list of strings, and I'm going to import the list that comes form java.util and let's output the data from this list. So, I'm going to type here define a variable called BillItem. This is going to look through elements in BillData and output it's value and this will be my BillItem which will be printed as a string. Let me go ahead and do one other thing before I run this. I'm going to change…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Data table: Adding a data table3m 17s
-
(Locked)
Data table: Read list of strings2m 23s
-
(Locked)
Data table: List of list of strings3m
-
(Locked)
Data table: List of maps3m 59s
-
(Locked)
Data table: Wrapping up1m 27s
-
(Locked)
Scenario outline: Add scenario outline3m 3s
-
(Locked)
Scenario outline: Adding examples table2m 17s
-
(Locked)
Scenario outline: Implement code4m 49s
-
(Locked)
Scenario outline: Running test2m 59s
-
(Locked)
-
-
-