Forum Discussion

pizzaTime's avatar
pizzaTime
Occasional Contributor
6 years ago
Solved

Data source error using gitlab

Hello,

While writing my tests, I import from csv.file data that are used in request (body) but when launched through GitLab, in allure reports my tests failed with : 


Error:java.io.FileNotFoundException: /projectDir/file.csv (No such file or directory) ----------------- Messages ------------------------------

 

Could you help me find the right way to write the path?

The csv files are in /projectDir/TestSuite/file.csv
I tried with 

${projectDir}/TestSuiteName

${workspaceDir}/TestSuiteName

/branch/projectName/TestSuiteName