Looking for help looping through a csv

Hello,

i have a list of 25k strings in a csv file and i want to loop through every line. I’m stuck on the part on how to select the specific line in the csv file. Attached you will find ma actual setup.

I’m grateful for any help here.

Thank you in advance,
bensen

Hello ,

The following code structure reads the data in a csv file line by line and writes to any test object in an input field of the instance.
You can use a similar structure.

for (def row = 1; row <= findTestData(‘test.csv‘).getRowNumbers(); row = (row + 1)) {
WebUI.setText(findTestObject(‘ testobject‘), findTestData(‘ **Test Data File**  ‘).getValue(1,row))
}

loadVars and endLoadVars are brackets for data load loop


and
${DeliveryID}
is reference to column in CSV file:
image

1 Like