How to get the last row count of internal data file automatically using for loop


I have created a data file of the type Internal Data and that file currently has 4 rows. Can you please help me to get the last row to loop through using For loop.

Here is yours,

allData = findTestData('your_test_data_id').getAllData()

lastRow = allData.get(allData.size() - 1)

for (cell in lastRow) {

println cell


Please visit our Test Data API for further information. This API can be used for all Test Data type.