Skip to main content

Configure environments for test cases

This document shows how to configure environments in Katalon Studio.

Environments

When executing a test case or test suite/test suite collection, you can choose a test environment based on your project type:

If you see no device, make sure you already turned on your phone's Developer Mode. Then try to unplug, and reconnect several times until you are prompted to accept/ trust this device.

  • For Windows app test, pick Windows.

  • The TestCloud option is for executing test suites and test suite collections. See Katalon TestCloud overview for more details.

  • The Custom is for if you want a specific environment and not the defaults as above.

For an advanced setup on each environment, see Introduction to desired capabilities for more details.

Headless browser environment

Headless browser testing means running tests without showing the user interface. It helps save project teams a tremendous amount of time and smoothly integrate into the CI/CD process.​

In case you need to add more desired capabilities to those headless browsers:

  1. Go to Project > Settings > Desired Capabilities > WebUI > Chrome (headless)/ Firefox (headless).
  2. Add your desired capabilities.

For example, if you want the headless browser to have a window size of 300x400 (px): 

NameTypeValue
argsList[--window-size=300,400]
Set up desired capabilities for Chrome/Firefox (headless)

You can learn more about desired capabilities in this document: Desired capabilities.

Chromium browser environment

Besides Chrome/Edge Chromium browsers, you can configure to execute tests in a custom Chromium-based browser. The example below uses Brave Browser as an example - any Chromium-based browser can be added.

On Windows

  1. Go to: Project > Settings > Desired Capabilities > Custom
  2. Create a custom browser configuration for your browser, as shown in the screenshot below.
    The value of binary must point to the installed Brave browser executable on your machine.
Configure Brave browser binary path on Windows
  1. Update the Chrome WebDriver to match your Chromium version.
Update Chrome WebDriver for Chromium-based browser
  1. Run the test using the added browser's configuration.
Run test with Brave browser in Katalon Studio

On macOS

Create a custom browser configuration similar to the example below.

Configure Brave browser binary path on macOS

The binary value on macOS should be set to: /Applications/Brave Browser.app/Contents/MacOS/Brave Browser

After configuring the binary path, update the Chrome WebDriver if needed and execute your test using the custom browser's configuration.

Troubleshoot "Cannot locate elements" issue

If your test (Chrome headless) failed with the error Cannot locate elements:

Chrome website error

Simply add these to the Chrome's desired capabilities to Chrome:

NameTypeValue
AcceptInsecureCertsBooleantrue
argsList[--ignore-certificate-errors]
desired caps to ignore certificate errors
Was this page helpful?