For several days, no test case or test suite can be started anymore.
Before my problem, I opened the test suite and pressed the run button (default web service). Then the test suite started one test case after the other and I got the results in the log viewer.
But now I’m doing the same. But in the job progress view this gets directly into . The only output I get is in the event log view. Launcher status after execution process completed: Terminated
Additionally, I found a new file in my root directory of the katalon project named like:
.temp-TempTestSuite1712065701732-classpath-arg-1712065702044.txt
Inside this file, I see a java class path definition: -classpath C:\git\project\bin\keyword;C:\git\project\bin\listener;C:\git\project\bin\lib;C:\git\project\bin\groovy;C:\git\project\bin;C:\Users\131265724\.katalon\packages\Katalon_Studio_Windows_64-9.3.0\Katalon_Studio_Windows_64-9.3.0\plugins\com.kms.katalon.core_1.0.0.202403142012.jar;.....
I’m using Katalon Studio Enterprise 9.3.2 Build 212.
Currently, no test suite or test case is running locally. Even a small test case with hello world is not running.
KeywordUtil.logInfo('Hello world!')
Before, it was running, but I surely did some miss configuration, that nothing is running any more. And I don’t have any glue, what happened.
As I mentioned in the text above, I only get this one line of output in the event log view and this file in the root directory of my project. The first characters of this file I’ve also put in the message above. The file consists of this one line only.
I found the error log file .log in the directory C:\Users\131265724\.katalon\packages\Katalon_Studio_Windows_64-9.4.0\Katalon_Studio_Windows_64-9.4.0\config\.metadata. I attached this logfile.
There is logged that “The file name or the extension is too long” (= Der Dateiname oder die Erweiterung ist zu lang). So I tried first to replace the default jdk of katalon by a jdk-17 with a shorter path. But that doesn’t help too.
The test case I tried to run is Test Cases/additional/Unittest/JavaVersion
I completely removed katalon from my Windows laptop. I removed C:\<user>\.katalon and went through the whole Windows registry and removed every entry with katalon. Afterwards I installed katalon again, cloned a new repository with git and started katalon. But it doesn’t solve.
I started katalon as administrator (like mentions in another post). But it doesn’t solve.
I added -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=<path_to_your_heap_dump_file> to VM arguments, to hopefully see any dump or error. But nothing changed and there aren’t any dumps in the directory.
Can you please try to run the test with KS 8.6.9? Moreover, if you are using any plugin / extensions, please try to remove all and see if you can run test successfully or not.
Sorry, I’m so stressed from work that I haven’t had an opportunity to follow your instructions and suggestions.
So, I have now installed Katalon Studio 8.6.9 and created a new project. In this project, I only used this demo to write “Hello World” in the log.
That worked.
I installed Katalon Studio 9.6 again.
I opened my test project with the “Hello World” output and started the test case.
It worked perfectly.
I then opened my work project and also created and executed this “Hello World” test case. At this point, it fails again. The test case is not executed. Again, I don’t get an error, just this output in the “Event log” window.
Launcher status after execution process completed: Terminated
In addition, this file .temp-TempTestSuite1719499763536-classpath-arg-1719499763676.txt is created again in my main folder of the project, which only contains a classpath.
In which folder did you install Katalon Studio?
In which folder did you create a new project?
Do you have the full-WRITE privilege to the folders?
C:\git — this path looks just odd. What the hell is that? You shoudn’t create such unusual thing.
I would recommend you to create folders/files under your “home” folder, e.g, C:\Users\mariowolf which you will certainly have the full-read-write privilege.
For Windows users, if you are extracting Katalon Studio outside of the C:\Users\<username> folder, make sure the current user has the Read/Write permission for Katalon Studio package or runs the software with administrator privileges.
Below the C:\git there are the project directories. Some of them are katalon projects, some are of other types. Each project is stored in a separate git. The name is used because of it is much shorter than anywhere in C:\Users\999999999\Katalon Studio
Caused by: java.io.IOException: Cannot run program "C:\Program Files\OpenLogic\jre-17.0.5.8-hotspot\bin\javaw.exe" (in directory "C:\git\erp-katalon"): CreateProcess error=206, Der Dateiname oder die Erweiterung ist zu lang
This line looks very odd.
This error message tells that Katalon Studio tried to launch "C:\Program Files\OpenLogic\jre-17.0.5.8-hotspot\bin\javaw.exe" (in directory "C:\git\erp-katalon").
Katalon Studio bundles a certain version of JDK17 and use it.
The doc tells that you can switch JRE to a certain version you have locally. But, basically, you are not supposed to switch the JRE environment unless you seriously need to do so.
Did you switch JRE at all?
How about switching JRE back to the default setting?
This line Caused by: java.io.IOException: Cannot run program "C:\Program Files\OpenLogic\jre-17.0.5.8-hotspot\bin\javaw.exe" (in directory "C:\git\erp-katalon"): CreateProcess error=206, Der Dateiname oder die Erweiterung ist zu lang only means the following:
The current directory is C:\git\erp-katalon. It’s the directory where the project is located.
It tries to start a program using the full path: C:\Program Files\OpenLogic\jre-17.0.5.8-hotspot\bin\javaw.exe (62 characters)
It can’t start the program because Der Dateiname oder die Erweiterung ist zu lang, in English The file name or extension is too long
That’s the reason I tried a different JRE. But the shorter name doesn’t help. Currently, I’m using again the default JRE. C:\Users\131265724\.katalon\packages\Katalon_Studio_Windows_64-9.6.0\Katalon_Studio_Windows_64-9.6.0\jre\bin\javaw.exe (118 characters)