Hi,
We do not support custom code solutions as an FYI, that is outside of the support agreement.
I'm not to sure about the code you are using. It looks like your iterating through the datasource, but calling the datasource loop test step which is suppose to iterate through the datasource and the test steps in between. Seems like your doing double iterations. Anyway, there is a release() method for the DataSource.
http://www.soapui.org/apidocs/pro/com/e ... ource.htmlTry
testRunner.testCase.testSteps['DatasourceToUse'].getDataSource().release()
when your done with the datasource. The datasource maybe locking the files and need to be closed or freed to unlock them.
Regards,
Marcus
SmartBear Support