Re: How to clear all existing properties of a data source using groovy code?
What sort of data source do you have? The answer will be dependent on that. If you mean the "Data Log" at the bottom of the Data Source window, though, that isn't data that's held but just a log. Closing the Data Source window will clear that log.
Here's a snippet of clearing a Grid data source of data though.
def grid = testRunner.testCase.testSteps["Count DataSource"].dataSource.gridModel
int rows = grid.getRowCount();
for (int i = 0; i < rows; i++)
Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!