Running Katalon Engine via PuTTy

Hello
I have a problem with a desktop App tests on a cloud Windows Server 2019.
Executing the .bat file that contains console command by remote desktop on the cloud Windows works fine. WinAppDriver starts, the App starts and the tests are runing.
But when I am connecting to the Windows machine by PuTTy and executing a .bat file the WinAppDriver and the App are not starting.
Is it possible to run Katalon Engine through PuTTy on a Windows Server ? This is an necessary functionality for our company to buy the Katalon Engine license.

Log from PuTTy:

2020-10-26 17:38:53.816 INFO c.k.k.c.w.driver.WindowsDriverFactory - Starting application C:\MyApp\run.exe on the local machine at address http://127.0.0.1:4723
2020-10-26 17:38:53.829 INFO c.k.k.c.w.driver.WindowsDriverFactory - desiredCapabilities = {“ms:waitForAppLaunch”:“30”}

Test Suites/testy - Windows - 20201026_173829…0/1(0%)


Test Suites/testy - Windows - 20201026_173829…0/1(0%)

2020-10-26 17:39:30.721 ERROR c.k.k.core.keyword.internal.KeywordMain - ? Unable to create a new remote session. Please check the server log for more details. Original error: Failed to locate opened application window with appId: C:\MyApp\run.exe, and processId: 6332 (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 35.53 seconds

Hi @piotr.kochanek.2,

For this error message:

Please check the server log for more details. Original error: Failed to locate opened application window with appId: C:\MyApp\run.exe, and processId: 6332 (WARNING: The server did not provide any stacktrace information)

Can you double check that your app was still opened after running the start application command?

Hi @duyluong
Thanks for the response. The App is visible in the processes, but its not visible on the desktop.


and still:
Caused by: org.openqa.selenium.WebDriverException: Failed to locate opened application window with appId: C:\myDir\myApp.exe, and processId: 5508 (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 36.06 seconds
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘AUTOTESTSRV’, ip: ‘10.44.4.70’, os.name: ‘Windows Server 2016’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: driver.version: WindowsDriver

So it seems like the app is runing in background and not beeing visible on the screen.
After failing, the app/process is closing, becouse in my test listeners we have:

@AfterTestCase
def sampleAfterTestCase(TestCaseContext testCaseContext) {
	println testCaseContext.getTestCaseId()
	println testCaseContext.getTestCaseStatus()
	
	Runtime.getRuntime().exec("Taskkill /IM pmplus.exe /F /T")
	Runtime.getRuntime().exec("Taskkill /IM WinAppDriver.exe /F /T")
}