Set up desired capabilities in Windows Desktop App testing
This article shows you how to configure desired capabilities for Windows Desktop Application testing.
Set desired capabilities for Windows Desktop Application testing
For Windows Spy/Recorder Utility
- Katalon Studio version 7.0.0 onwards.
To set desired capabilities for Windows Spy/Recorder Utility, do as follows:
Go to Project > Settings > Desired Capabilities > Windows.
Alternatively, you can also edit desired capabilities settings via a Windows execution session. Start a Spy Windows/ Windows Recorder session, in the Configuration box, click Edit.
Enter WinAppDriver URL:
http://<ip-address>:<port>- URL to the WinAppDriver server. By default, Katalon Studio is set to
Click Add on the command toolbar to add desired capabilities.
Katalon Studio supports the same capabilities as WinAppDriver does. To learn more about supported capabilities for Windows Desktop App testing, you can refer to the WinAppDriver document here: Supported capabilities.
For Native Windows Recorder
- Katalon Studio version 7.7.0 onwards.
- An active Katalon Studio Enterprise license. To learn more about activating licenses, you can refer to this document: Activate Katalon license.
To set desired capabilities for Native Windows Recorder, the steps are the same as setting capbilities for Windows Spy/Recorder Utility, see above: Set desired capabilities for Windows Spy/Recorder Utility.
Katalon only supports
appWorkingDir capabilities in Native Windows Recorder.
appArguments: Support passing arguments to the Application Under Test. You can also use this desired capabilities to record action without opening a Windows.
appWorkingDir: Specify the Application Under Test working directory.
Example 1: set delaying time for an app launch
The following example shows you how to set desired capabilities to wait for a defined amount of time before initiating an app launch.
- Download and install WinAppDriver version 1.2 onwards. You can refer to this document to install WinAppDriver: Set up WinAppDriver.
Go to the desired capabilities settings, click Add, then input the following value:
Example 2: set desired capabilities in Native Windows Recorder
The following example shows you how to set desired capabilities in Native Windows Recorder.
Open a Native Windows Record session. In the Configuration box, click Edit.
In the pop-up dialog, click Add, then input the following value:
Name Type Value appWorkingDir string C:\User\thongnmtran\Desktop\workspace\katalon appArguments List --arg1,--arg2
Click Apply and Close when you finish. The results should be as follows: