Forum Discussion
SmartBear_Suppo
Alumni
16 years agoHi weeman,
sorry, you are totally correct, the setFileName method sets the incorrect value. The upcoming nightly build has a directory property for the directory field and a filter property for the filter, so in your case you would do
def ds = testRunner.testCase.getTestStepByName("DataSource").getDataSource()
ds.directory = "c:/Temp"
ds.filter = "366.xml"
you can also use the fileName property which will set both the top properties as above;
ds.fileName = "c:/Temp/366.xml"
thanks for persisting!
regards,
/Ole
eviware.com
sorry, you are totally correct, the setFileName method sets the incorrect value. The upcoming nightly build has a directory property for the directory field and a filter property for the filter, so in your case you would do
def ds = testRunner.testCase.getTestStepByName("DataSource").getDataSource()
ds.directory = "c:/Temp"
ds.filter = "366.xml"
you can also use the fileName property which will set both the top properties as above;
ds.fileName = "c:/Temp/366.xml"
thanks for persisting!
regards,
/Ole
eviware.com