Recording Interface

CukeTest provides powerful recording capabilities, allowing users to generate automation scripts by recording their operations. These scripts can be executed repeatedly at any time and any place to perform automated tasks or tests. CukeTest supports recording and playback for multiple technologies, including Web, Qt, Windows, Java, and Electron environments.

Configure Recording Settings

Before starting your first recording, you need to configure recording-related settings. This can be done by clicking the "Record..." dropdown in the toolbar and selecting "Recording Settings." In the recording settings dialog, you can configure detailed options according to the technology type and your personal preferences.

Technology Type Options

CukeTest offers the following technology-specific recording options to accommodate different applications and environments:

  • Web Recording Options: Recording settings designed for web applications, capturing user interactions in the browser.
  • Qt Recording Options: For recording Qt applications, suitable for apps developed on the Qt framework.
  • Java Recording Options: For recording Java applications, suitable for Java-based desktop apps.
  • Windows Recording Options: For traditional Windows applications, supporting a wide range of native OS controls.
  • Electron Recording Options: Provides specialized recording support for applications developed on the Electron framework, a popular cross-platform desktop framework.
  • ATK Recording Options: For Linux desktop applications, leveraging ATK technology to recognize and interact with application interfaces.

Within these settings, you can define various parameters, such as slow motion options, capturing screenshots of operated controls, remote recording, and more, to meet your specific recording needs.

Adding Checkpoints

During recording, you may need to verify that the application behaves or appears correctly in a specific state. You can use the "Add Checkpoint During Recording" feature. Checkpoints are a critical part of automated testing, helping to validate key conditions during the test process.

Start Recording

After configuring the settings, you can start recording. During recording, CukeTest captures your interactions with the application—such as clicks, inputs, and selections—and converts these actions into replayable automation scripts. These scripts can later be used to replay the recorded operations for automated testing or other automation tasks.

Converting Recorded Scripts into Scenarios

To help users quickly build BDD (Behavior-Driven Development) test projects, CukeTest provides a feature to convert recorded JavaScript or Python scripts into Cucumber- and pytest-bdd-compatible scenarios. This feature supports recorded scripts from desktop applications (Windows, Qt).

  1. Record operations and generate JavaScript or Python scripts.
  2. Right-click the script editor in CukeTest and select "Convert Recorded Script to Scenario."
  3. The tool automatically parses the recorded script and generates the corresponding .feature file along with step definition files (JavaScript or Python).

With these steps, you can easily convert recorded automation scripts into BDD test scenarios, enabling rapid construction and expansion of your BDD test projects.