Desktop testing with Katalon Free

I am trying to generate a desktop test with Katalon Studio free

Usage information:
Katalon not only supports Web and Mobile, it also supports desktop applications (Windows Desktop Apps) thanks to its integration with WinAppDriver.

:rocket: Environment setup:

  1. Katalon Studio (free version).
  2. WinAppDriver installed on your PC (Windows 10 or higher).
    o Run it (open a console window with the service running).
    o If everything is correct, you will see something like:
    Windows Application Driver listening for requests at: http://127.0.0.1:4723/
    Press ENTER to exit.
    :high_voltage: This means that the server is running and waiting for Katalon to send commands.
  3. The desktop application you want to test installed on your machine (e.g., Windows Calculator, Notepad, your own app).

:small_blue_diamond: Step by step: Automate Calculator with Katalon Studio + WinAppDriver

A. Create a new project → Windows Desktop type in Katalon Studio

  1. Open Katalon Studio (the free version will do).
  2. Create a New Project → Windows Desktop type.
  3. Give it a name, for example: CalcTest.
  4. Choose the folder where the project will be saved on your disk.
  5. Click OK / Finish.

B. Configure the application (Calculator)

  1. In the top menu, go to Project > Settings > Desired Capabilities > Windows.

  2. There you will see a section with:
    • Remote Web Driver URL
    Enter this address (it is the WinAppDriver server that you must have open beforehand): http://127.0.0.1:4723
    • A Desired Capabilities table with columns:
    o Name
    o Type
    o Value
    Add these rows:

    Name Type Value
    app String Microsoft.WindowsCalculator_8wekyb3d8bbwe!App
    deviceName String WindowsPC
    platformName String Windows

  3. Save and use

C. Record a test case

Create a Test Case

D. Record the action in the Calculator

  1. Click on Record Windows Action (the camera button :movie_camera:).
  2. The recorder will open and, thanks to your Desired Capabilities, the Windows Calculator will open automatically.

Windows Action Recorder generates the following warning:

java.util.concurrent.ExecutionException: org.openqa.selenium.SessionNotCreatedException: Unable to start a new session. Possible causes are an invalid remote server address or an error starting the browser.Host information: host: ‘LENOVO’, ip: ‘192.168.0.24’Build information: version: ‘4.28.1’, revision: ‘73f5ad48a2’System information: os.name: ‘Windows 11’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘17.0.14’Driver information: io.appium.java_client.windows.WindowsDriverCommand: [null, new session {capabilities=[Capabilities {app:: C:\Windows\WinSxS\wow64_mic…, appium:app: "C:\Windows\WinSxS\amd64_mi…, appium:automationName: FlaUI, deviceName: WindowsPC, platformName: windows}]}]Capabilities {app:: C:\Windows\WinSxS\wow64_mic…, appium:app: "C:\Windows\WinSxS\amd64_mi…, appium:automationName: FlaUI, deviceName: WindowsPC, platformName: windows}in com.kms.katalon.composer.components.impl.dialogs. ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:49)in com.kms.katalon.composer.windows.dialog.WindowsAppComposite$5.run(WindowsAppComposite.java:245)at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:124)Caused by: org.openqa.selenium.SessionNotCreatedException: Unable to start a new session. Possible causes are an invalid remote server address or a browser startup error.Host information: host: ‘LENOVO’, ip: ‘192.168.0.24’Build information: version: ‘4.28.1’, revision: ‘73f5ad48a2’System information: os.name: ‘Windows 11’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘17.0.14’Driver information: io.appium.java_client.windows.WindowsDriverCommand: [null, new session {capabilities=[Capabilities {app:: C:\Windows\WinSxS\wow64_mic…, appium:app: "C:\Windows\WinSxS\amd64_mi…, appium:automationName: FlaUI, deviceName: WindowsPC, platformName: windows}]}]Capabilities {app:: C:\Windows\WinSxS\wow64_mic…, appium:app: "C:\Windows\WinSxS\amd64_mi…, appium:automationName: FlaUI, deviceName: WindowsPC, platformName: windows}in org.openqa.selenium.remote. RemoteWebDriver.execute(RemoteWebDriver.java:563)in io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:270)in org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:174)at io.appium.java_client.AppiumDriver.(AppiumDriver.java:91)at io.appium.java_client.windows.WindowsDriver.(WindowsDriver.java:46)at com.kms.katalon.core.windows.driver.WindowsDriverFactory.newWindowsDriver(WindowsDriverFactory.java:186)at com.kms.katalon.core.windows.driver.WindowsDriverFactory.startApplication(WindowsDriverFactory.java:139)at com.kms.katalon.composer.windows.spy.WindowsInspectorController.startApplication(WindowsInspectorController.java:169)in com.kms.katalon.composer.windows.dialog.WindowsAppComposite$5$1.call(WindowsAppComposite.java:249)in com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.startThreadAndWait(ProgressMonitorDialogWithThread.java:36)in com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:48)… 2 moreCaused by: java.lang.IllegalArgumentException: Illegal key values observed in w3c capabilities: [deviceName]in org.openqa.selenium.remote.NewSessionPayload.lambda$validate$5(NewSessionPayload.java:163)in org.openqa.selenium.remote.NewSessionPayload.validate(NewSessionPayload.java:167)in org.openqa.selenium.remote.NewSessionPayload. (NewSessionPayload.java:70)in org.openqa.selenium.remote.NewSessionPayload.create(NewSessionPayload.java:99)in org.openqa.selenium.remote.NewSessionPayload.create(NewSessionPayload.java:84)in org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:60)in io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:176)in io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:237)in org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)…12 more

The same thing happens if you enter the code in the script tab and run Run → Windows.

1 Like

Which version of Katalon Studio Free are you using? v10.3.1?

1 Like

Have a look at this post:

This statement is wrong for the v10.x and newer.

Where did you quote this from? Which document? Which page of the Katalon site?

I guess, this statement was generated by some AI. Am I right? AI often tells you wrong information. When a software provider (Katalon) changed their product, the already-publicized information gets messed up. So AI will be messed up as well.

1 Like

Yes, the version of Katalon Studio is v.10.3.1.

The docs are wrong, they’re getting updated for 10.3+ to not link to WinAppDriver anymore

You’re right.

To sum things up, Katalon Studio Free is not an option for me when it comes to automated desktop testing.

1 Like

The final post poses an enquiry: is Katalon Studio Free not a possibility when it comes to automated desktop testing?

I would like to know whether it is possible to perform desktop testing with an earlier version of Katalon Studio Free.

Have a look at this post:

If you want more, please try to find the fact yourself and report your findings here.

1 Like

Good morning!

I downloaded the free version, 9.7.6, which allowed me to perform desktop tests for two weeks. However, when I logged in today, I was asked to authenticate myself again and received the following message: Your trial has expired. Please ask your administrator to assign a Katalon Studio Enterprise license or download the free Katalon Studio package to continue."
I downloaded the free version again, but the same message appears.

I guess, you did not download the free version:

I guess, you downloaded the enterprise version:

Please try

  1. remove the previous Katalon Studio installation completely
  2. download and install the free version again