Buschfunk
16 years agoFrequent Contributor
[SOLVED] How can I change the data source configuration with Groovy?
Hello,
one of my test steps in a test case is a data source called "DataSource". The data source is set to use a filename filter in a certain directory which works fine. However, I'd like to change the directory using a groovy script but I have no idea how to do this.
All I have achieved so far is getting the XML structure of the configuration using the following code:
Could you please tell me how to change the value for the directory?
Sincerely,
Robert
one of my test steps in a test case is a data source called "DataSource". The data source is set to use a filename filter in a certain directory which works fine. However, I'd like to change the directory using a groovy script but I have no idea how to do this.
All I have achieved so far is getting the XML structure of the configuration using the following code:
testRunner.testCase.getTestStepByName("DataSource").getConfig()
Could you please tell me how to change the value for the directory?
Sincerely,
Robert