How To Create Repeat Looping But Read Next Row

Hi Guyss I’m Stuck When Making Repeat Loop Condition so i want to make the test case
Looping Inputing Form So When Execute 1 form is not close browser repeat input but insert first then and match to excel count row

and the problem is execution is looping with test suite and only read 1 row from excel files here is my script

 `for (row = 1; row <= findTestData('DataTest1').size(); row++){  
  WebUI.setText(findTestObject('Page_React App/input_User Name_userName'), username)

  WebUI.setText(findTestObject('Page_React App/input_First Name_firstName'), firstname)

  WebUI.setText(findTestObject('Page_React App/input_Last Name_lastName'), lastname)
  
  WebUI.setText(findTestObject('Page_React App/input_Email address_email'), email)

  WebUI.click(findTestObject('Page_React App/button_REGISTER'))
  }

`

Have you tried it like this OP did? Except, you have to replace the number, like 1, with your variable, “row”.

Maybe like:

WebUI.setText(findTestObject('Page_React App/input_User Name_userName'), findTestData('DataTest1').getValue('username', row))