Forum Discussion
Buschfunk
16 years agoFrequent Contributor
eviware support wrote:
the fileName property Robert pointed you to is the one to use, it should fill in the directory field so you can just specify the name of the directory!?
Unfortunately, this is not working correctly. According to your posting, I should use the following code to set the directory to "C:\Temp" and the filename filter to "366.xml", right?
testRunner.testCase.getTestStepByName("DataSource").getDataSource().setFileName("C:/Temp/366.xml")
Please see both attached screenshots. After execution of the script, the filename filter is set to "C:/Temp/366.xml" whereas the directory hasn't changed.