How to stop execution in console (headless) mode

How can I stop execution of a test case in headless mode? I tried Ctrl+c, but all that does is close the window, the test keeps going in background.

2 Likes

I also encounter this problem. Here’s my code…

for (def index : (0…data.getRowNumbers() - 1)) {
[code here]
}

I also add if (index == 64) break; at the end of the loop but still no luck.

Please help anyone

From a separate Windows command prompt, I type:

taskkill -f katalon.exe
taskkill -f node.exe
taskkill -f java.exe

I end up having to kill all three processes so that all the files Katalon touches are released from running processes.

2 Likes

@David Klein

Thanks!

I’m facing similar issue on Linux. Is there any other way apart from “kill -9 PID” ??
Here, I have to kill all the chrome sessions launched.