Forum Discussion
groovyguy
8 years agoCommunity Hero
If you need to delete data from the entire grid datasource, you an use a groovy script to clear it out the rows. Warning: this will make your grid 100% empty.
def grid = testRunner.testCase.testSteps["DataSource"].dataSource.gridModel int rows = grid.getRowCount(); log.info(rows); for (int i = 0; i < rows; i++) { log.info(i); grid.deleteRows(0);