Move Project from Windows to Ubuntu -> java.lang.IllegalArgumentException: Cannot find test case wi

Hi there,

when trying to migrate a project from win to ubuntu and to execute it, I face this problem.
01-18-2018 10:50:00 AM - [START] - Start Test Suite : Webrecorder_TestSuite
01-18-2018 10:50:00 AM - [RUN_DATA] - Logging run data ‘hostName’ with value ‘nb - WebrecorderHelper’
01-18-2018 10:50:00 AM - [RUN_DATA] - Logging run data ‘os’ with value ‘Linux 64bit’
01-18-2018 10:50:00 AM - [RUN_DATA] - Logging run data ‘hostAddress’ with value ‘127.0.1.1’
01-18-2018 10:50:00 AM - [RUN_DATA] - Logging run data ‘katalonVersion’ with value ‘5.2.0.1’
Caught: java.lang.IllegalArgumentException: Cannot find test case with id 'Test Cases/./Test Cases/Webrecorder’
java.lang.IllegalArgumentException: Cannot find test case with id 'Test Cases/./Test Cases/Webrecorder’
at com.kms.katalon.core.testcase.TestCaseFactory.findTestCase(TestCaseFactory.java:66)
at com.kms.katalon.core.main.TestCaseExecutor.(TestCaseExecutor.java:79)
at com.kms.katalon.core.main.TestCaseExecutor.(TestCaseExecutor.java:89)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:72)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$1.call(Unknown Source)
at TempTestSuite1516268997276.runTestCase_0(TempTestSuite1516268997276.groovy:18)
at TempTestSuite1516268997276$_run_closure1.doCall(TempTestSuite1516268997276.groovy:47)
at TempTestSuite1516268997276.run(TempTestSuite1516268997276.groovy:46)

The executed command is:

/opt/Katalon/katalon -runMode=console -consoleLog -projectPath="/opt/katalonprj/Webrecorder/Webrecorder.prj" -retry=0 -testSuitePath="./Test Suites/Webrecorder_TestSuite" -browserType="Chrome (headless)"

I tried to modify all paths within ‘Test Suites’ and ‘Test Cases’.

What did I miss??

Many thanks and best regards,
Stephan

Hi Stephan,

You should package your project into either .zip or tar.gz file and then extract it back on Linux machine. I’ve tried this solution and don’t observe any problems after that.

For the current problem of yours, I suggest you open Test Suite file directly (.ts) in Test Suites folder and see if correct Test Cases on Linux are used there

Hi Nguyen,

yes! That helped :slight_smile:
Seems like simple copying did leave out some files somehow.
Zipping worked fine.

I only had to edit the paths in the Data Files\*.dat afterwards.

Thx and best regards,
Stephan