Skip to content

Generating test cases from a requirement with an artificial intelligence server

Warning

The aim of this feature is not to replace the person in charge of writing tests with an AI but to offer assistance. The test designer remains responsible for the quality and relevance of the tests intended to verify a requirement. Therefore, they must review, then accept, reject, or amend the test cases generated by an artificial intelligence server.

The generation of test cases by artificial intelligence is available with Squash Ultimate license and Squash TM Premium plugin.

It is an experimental feature: it works, but it may not be powerful enough to be used in production.
The goal is to allow users to experiment with generating test cases using artificial intelligence, in order to determine whether this type of functionality might be of interest to them - and if so, to provide Henix with any feedback regarding the integration of AI into Squash.

Classic and high-level requirements are used to generate test cases.

Learn More

To learn more about configuring an artificial intelligence server, see the following page: Managing Artificial Intelligence Servers.

Accessing the feature

Accessing this feature requires:

  • having a declared and configured artificial intelligence server on the project where the requirement is located;
  • having a user account with test case creation rights on at least one project in the instance.

Requirement Page

On the page of the requirement from which to create test cases, hover over the [...] icon located at the top right and click on Generate Test Cases.

Test Case generation

Test Case Generation Pop-up via AI

The pop-up consists of three main blocks:

  • the description of the requirement (not editable);
  • the choice of location where the test cases will be created;
  • the generated test cases.

Selecting a receiving folder

Selecting a destination is mandatory for recording the generated test cases. The selection can be a project or a folder.

Pop-up for Selecting Location for Generated Test Cases

If multi-project mode is enabled, unfiltered projects will not be displayed.

Generating and recording Test Cases

Click on Generate: the query may take some time depending on the model's power and the length of the provided requirement description.

Display of Generated Test Cases

Each test case includes:

  • a name;
  • a description;
  • some prerequisites;
  • one or more test steps.

Click on the arrow to view the content of each generated test case.

Detail of a Generated Test Case

The test cases displayed in the pop-up are not editable at this stage. Click Generate again to attempt another generation. If the result is nearly correct, it is possible to record the test cases and modify them later.

Warning

The previous result is not retained during a new generation.

Select the test cases to record by checking the corresponding boxes. Click on Record the test case(s).

Displaying generated Test Cases

Detail Page of a Generated Test Case

Test cases generated by an artificial intelligence server have the Drafted by AI tag: it is not editable.

The requirement used for generation is linked to the test case and visible in the Requirements Verified by This Test Case section.

Once the test cases are recorded, all fields are editable: name, description, prerequisites, and test steps.