i have API test case (fileuploaded type) which passed at windows but failed at console mode.
i guess something wrong at the path when running under CLI mode.
how to resolve this?
[06:58:23] [Step 4/9] katalon | 2019-10-23 06:58:23.362 ERROR c.k.katalon.core.main.TestCaseExecutor - ? Test Cases/ServiceTest/ItemServiceTest/Item/Item_Upload_201Request FAILED.
[06:58:23] [Step 4/9] katalon | Reason:
[06:58:23] [Step 4/9] katalon | com.kms.katalon.core.exception.KatalonRuntimeException: java.io.FileNotFoundException: /tmp/katalon_execute/project/Data Files\ItemImportData.xlsx (No such file or directory)
[06:58:23] [Step 4/9] katalon | at com.kms.katalon.core.testobject.internal.impl.HttpBodyContentReader.fromSource(HttpBodyContentReader.java:71)
the api application only accept xlsx
i cannot simply change the file format
so this is katalon CLI mode constraint that xlsx file is not supported?
Hi, there is a backslash in the path while everything else is forward slash, would you mind let me se the code where you’re specifying this path ?
forgot to mention, the katalon is a docker image
i know the error has backslash, so here i am asking is this katalon limitation that cannot point to the file ? or something else i can do?
below are the docker compose where we deploy the image. the rest i guess is standard katalon docker build
- -browserType=Web Service
- -testSuitePath=Test Suites/A
and i just tried another way to execute test suite.
ran it under local machine windows path, but console mode, all test cases passed.
in summary, it failed at docker image only.
katalon -noSplash -runMode=console -consoleLog -noExit -projectPath=“C:\test\katalon.prj” -retry=0 -testSuitePath=“Test Suites/A_SQL” -executionProfile=“local” -browserType=“Web Service”
here is the katalon docker execute.sh file, i saw yesterday new codes committed. could be some known issues being fixed.