Forum Discussion
tobello
12 years agoContributor
Hi Phil,
Thanks for all.
FYI, this one was a "no brainer": I made a mistake in the Project variable. It was a DBTable instead of an Object. The code was working fine...
for you remarks at point 1., the function call was made directly with no variable as you've described it. Therefore I needed that little manipulation...
e.g: setTestDataDriver("C:\\TestFolder\\TestData\\TestFile.xlsx") .
Your point 2. is actually totally true but I was thinking of the testers who provide only the UNC path like e.g. setTestDataDriver("..\\TestFolder\\TestData\\TestFile.xlsx").
Thus, I planned the retrieval of the file fullpath and to work with...
But one thing i did is to change te code to this:
[...]
if (aFile.Exists)
{
Project.Variables.rptTestFile = DDT.ExcelDriver(aFile.Path, "Reports", true);
[...]
}
Thanks for the help,
Regard
Thanks for all.
FYI, this one was a "no brainer": I made a mistake in the Project variable. It was a DBTable instead of an Object. The code was working fine...
for you remarks at point 1., the function call was made directly with no variable as you've described it. Therefore I needed that little manipulation...
e.g: setTestDataDriver("C:\\TestFolder\\TestData\\TestFile.xlsx") .
Your point 2. is actually totally true but I was thinking of the testers who provide only the UNC path like e.g. setTestDataDriver("..\\TestFolder\\TestData\\TestFile.xlsx").
Thus, I planned the retrieval of the file fullpath and to work with...
But one thing i did is to change te code to this:
[...]
if (aFile.Exists)
{
Project.Variables.rptTestFile = DDT.ExcelDriver(aFile.Path, "Reports", true);
[...]
}
Thanks for the help,
Regard