How to stop execution in console (headless) mode


#1

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

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


#3

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.


#4

@David Klein

Thanks!