The issue is that after the script reads the first row and completes the test, the web page closes. The loop causes the page to open again to create another record. The focus does go on the first field to enter data. It never reads the data and skips all the fields that should have data written to them from the data file. No errors are generated but the values are never read from the file.
I changed the row variable to ‘2’ to see if it reads the 2nd row. It did read it but then was not able to read the 3rd row in the file when the script looped.
Any idea why the script cannot read any data after reading the row based on the row value?
The issue is that after the script reads the first row and completes the test, the web page closes. The loop causes the page to open again to create another record. The focus does go on the first field to enter data. It never reads the data and skips all the fields that should have data written to them from the data file. No errors are generated but the values are never read from the file.
I changed the row variable to ‘2’ to see if it reads the 2nd row. It did read it but then was not able to read the 3rd row in the file when the script looped.
Any idea why the script cannot read any data after reading the row based on the row value?
Please adding your sample script if possible, I think it could be caused by your script in for loop.
I too have the same problemfor (int rowNum=1;rowNum<=findTestData(‘supp var’).getRowNumbers();rowNum++)
{
WebUI.setText(findTestObject(‘Page_Manage Suppliers - Suppliers - Oracle _766534/input_Keywords_pt1_FOr11_FOSritemNode_procu_6fefd1’),
findTestData(‘supp var’).getValue(1, rowNum))