def data = TestDataFactory.findTestData("Data Files/SMART") WebUI.comment("row count is ${data.getRowNumbers()}") for (row = 1; row <= data.getRowNumbers(); row++) { def data = TestDataFactory.findTestData("Data Files/JJJ") WebUI.comment("row count is ${data.getRowNumbers()}") for (row = 1; row <= data.getRowNumbers(); row++) { xpath = 'id("P75_SEARCH_LC")' myItem = new TestObject(xpath) myItem.addProperty('xpath', ConditionType.EQUALS, xpath) WebUI.verifyElementVisible(myItem) WebUI.setText(myItem, data.getValue(1, row)) WebUI.click(findTestObject('Object Repository/Local LC amendment Helper/Page_Form on LOCAL_LC/a_Search')) xpath = 'id("P75_BWAREHOUSE")' myItem = new TestObject(xpath) myItem.addProperty('xpath', ConditionType.EQUALS, xpath) WebUI.verifyElementVisible(myItem) WebUI.setText(myItem, data.getValue(2, row))