Forum Discussion
groovyguy
7 years agoChampion Level 1
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);
Related Content
- 2 years agozokirsalomov
- 4 years agoaqibkotwal
- 3 years agolydeeea