Create a Test data in the Data Files section, and get the values during the runtime of my test script, below is my code
TestData data = findTestData('Advanced Search')
data.changeSheet('RecordCount')
for (int excelRow : (1..5)) {
selectQuery0 = data.getValue('Full Text Query', excelRow)
applicationFullTextQuery.add(selectQuery0)
selectQuery1 = data.getValue('Db Query', excelRow)
dbQuery.add(selectQuery1)
}
from the above one i have hardcoded the row count as 5
, its working perfectly
But I need to find out/get the no of rows in the excel sheet and apply the count in that for loop.