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

Data table: Read list of strings

From the course: Cucumber Essential Training

Start my 1-month free trial

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…

Contents