Skip to main content

desktop_app.yml

The desktop_app.yml file defines the configuration for the desktop app automation in your test run if you have selected it as a test type in config.yml.

app_name

ruby
2021.1.0
app_name: My Desktop App

Specify the application name for reporting purposes.

image_directory

ruby
2021.1.0
image_directory: features/support/images

The relative path from the root of your project to the directory images are stored. This path is used as the basis for element defined in a ScreenObject class.

find_timeout

ruby
2021.1.0
find_timeout: 10

The number of seconds to search for a defined image on the screen before failing the test.

similarity

ruby
2021.1.0
similarity: 0.85

Min 0, Max 1. The higher this value is set the more exact a match will need to be for the automation to find it. The lower the value the longer the search for the image takes.

Recommended value is between 0.8 and 0.95.

Example desktop_app.yml

&defaults_desktop_app

app_name: My Desktop App
image_directory: features/support/images
find_timeout: 10

similarity: 0.85