So, I trying now to launch my test collection from Katalon TestOps via Agent.
My test Collection include a test case using a Data File which is an excel file.
When i schedule a job the debug says that it can’t find the DataFiles.
I see that the script is looking inside the temporary agent folder, where my excel isn’t :
Cannot find test data with id 'Data Files/DF-DATA' because (of) 'java.io.FileNotFoundException: G:\Katalon_Agent\tmp\2021.06.23-15.37--9960-cKhojmS78vpa-328722\Projet_ANA\Data Files\Liasses_ANA.xlsx' %
In my test case i declare my file like this :
ExcelData data = findTestData(‘Data Files/DF-DATA’)
And the data file is configured with ‘Use Relative Path’ and ‘Bind to test case as string’ is KSE.
Where did i go wrong ? Do i have to hard-code the path ?
Yes on the server where the projet was built with KSE and execute with KRE, before i attempt to run with TestOp Agent.
I have to say that i have a primay test case which build the file with hard-coded path, prior to be used by another TC (the one that actually not find the file). I suppose that is the mistake.
I convert a csv to xlsx like this, and i think the 2 first line had to be adapted with some kind of projet path variable :