/
Auto-Generate New Test Cases from the Requirement or Test Case Module

Auto-Generate New Test Cases from the Requirement or Test Case Module

Introduction

QMetry provides AI-powered auto-generation of test cases. Users can quickly generate test cases from a requirement or description with a single click, enhancing accuracy and saving time. They can also manually edit, rearrange, accept, or decline the AI-generated test cases as needed.

AGT supports automated test case creation from -

  • Requirements module

  • Test Case Module.

Prerequisite

  • Super admin needs to enable the "Enable users to generate test cases from Requirements or Test Case Module" feature from Customization > General Settings and Audit > QI Configuration.

  • Users must have Test case creation permissions.

Auto-Generate Test Cases

From Requirement Module

Using AGT, users can automatically create one or more test cases using QI for a specific requirement. The QI model analyzes the requirement's description and generates relevant test cases, ensuring comprehensive coverage.

To auto-generate test cases from the Requirement Module navigate to:

Home > Requirement >Requirement Detail >Generate Test Cases

image-20240719-044005.png
Requirement Module

Steps to create test case from requirement module using QI

  1.  Click the Generate Test Cases button at the top right corner of the Requirement detail screen.

  2. The ‘Generate Test Cases using QI’ pop-up appears.

  3. QI initiates the test case creation process.

  4. Review the generated test cases and approve or decline them as needed.

  5. Click the Create Test Cases button to finalize and create the approved test cases.

image-20240725-133037.png

From Test Case Module

Users can create automated test cases in the test case module using two methods: by linking a requirement or by entering a description.

To auto-generate test cases from the Test Case Module navigate to:

Home > Test Cases >Generate Test Cases

image-20240719-044205.png
Test Case Module

Steps to create test case from test case module using AI

  1. Click the Generate Test Cases button at the top right corner of the test case list view screen.

  2. In the Generate Test Cases using QI pop-up, select either the Requirement tab or Description tab.

    • If Requirement is selected, click on the relevant requirement.

    • If Description is selected, enter an appropriate description.

  3. Click the Generate Test Cases button.

image-20240719-064609.png

By Selecting a Requirement

Users can generate test cases directly in the test case module by selecting a requirement. In the Generate Test Cases and Test Steps using QI pop-up, go to the Select Requirement tab (this is the default tab), choose the requirement from the list, and click the Generate Test Cases button.

image-20240719-072226.png

By Entering a Description

Users can also create test cases by entering a description. In the Generate Test Cases and Test Steps using QI pop-up, navigate to the Enter Description tab. Enter a detailed description (30 to 1500 words), including pre-requisites, input data, and expected outcomes for more comprehensive test cases.

For QI to generate test cases with higher accuracy, the description must provide sufficient information & acceptance criteria that clearly define the expected behaviour of the feature. These details enable QI to analyse the context and accurately identify test scenarios.

Once the details are filled, click the Generate Test Cases button.

image-20240719-073934.png

Clicking the Generate Test Cases button, whether by linking a requirement or entering a description, prompts the QI model to create one or more test cases, ensuring comprehensive coverage.

Review Auto-Generated Test Cases

After clicking the Generate Test Cases button (whether from requirement module or from test case module), the Generate Test Cases and Test Steps using QI screen will appear. Users can review, edit, approve and decline the steps as well as the details of each autogenerated test case. This screen is divided into three panels:

  • Top Panel: Displays the requirement description from which the test cases are generated. Expand this section to view the full description.

  • Left Panel: Lists the QI-generated test cases and the total count of test cases created. Users can approve or decline individual test cases by clicking the accept ( ) or decline () icon.

  • Right Panel: Displays the test steps and details associated with a specific test case.

image-20240725-145439.png

Steps

The Steps tab in the right panel presents the test case description at the top, followed by the step description, expected outcome, and input values. Users can edit the test cases, add or delete steps, insert shareable test cases, and reorder or duplicate steps. Additionally, they can refine the content in the test case description, step descriptions, and expected outcomes to better suit their needs.

image-20240719-105822.png

Users can manually edit AI-generated test cases by performing the following operations:

  • Insert Row: Allows the user to insert additional test step manually into the AI-generated test case.

  • Insert Shareable Test Case: Lets the user integrate a shareable test case as a test step within the current test case.

  • Remove Step: Provides the option to delete unnecessary or redundant test steps.

  • Duplicate Step: Enables the user to create a copy of a test step for reuse.

  • Reorder Steps: Allows the user to move test steps up or down to organize them logically.

  • Edit Text: Allows users to modify the text of the test case description, step description, and expected outcome as needed.

  • Accept or Decline: Gives the user the ability to accept or decline a test case based on its relevance and requirements. Additionally, a feedback mechanism is in place to allow users to provide comments or suggestions on test cases, helping to refine and improve future test case generation.

Users can navigate between test cases easily on this screen using the left and right arrows located near the accept and decline buttons.

Details

The Details tab allows users to set values for both system-defined and user-defined fields. The Copy Fields to All Generated Test Cases feature enables users to update these details across all test cases.

image-20240719-113332.png

Feedback on Auto-Generated Test Cases

To provide feedback on QI, click the Thumbs Up or Thumbs Down button. A pop-up will appear with predefined options, allowing you to choose or submit custom feedback. This helps improve the model's accuracy and performance.

image-20240924-055737.png

If you want to submit feedback that differs from the predefined options, click Others and enter your customized feedback.

image-20241022-131613.png

Approve Auto-Generated Test Cases

Users can accept or reject the AI-generated test cases:

  • Accept ( ): All test cases are accepted by default. To accept a previously declined test case, select the test case and click the Accept button.

  • Decline ( ) : Users can easily decline redundant or irrelevant test cases by selecting the test case and clicking on the decline button. The declined test cases will be excluded from the final set of test cases.

Users can also change the approved or declined status of a test case by directly clicking on the or icons on the left panel.

Create Auto-Generated Test Cases

After editing the test cases and adding relevant details, ensure that accepted test cases are marked as "Accepted" and rejected test cases are marked as "Declined." Users can review these statuses on the left panel. Once the final set of accepted test cases is prepared, click the Create Test Case button.

Upon successful creation of the test cases, the following screen will appear, providing detailed statistics on the utilization of QI.

The QI-generated test cases are added to the test case module and can be viewed in the test case list view screen. Users can further edit the test case details and steps from the test case module after they have been created.

image-20240725-145656.png

View Statistics

Statistics related to the use of the AGT feature can be viewed by hovering over the "Generate Test Case" button in the requirement module or test case module.

image-20240725-145822.png

Filter QI Generated Test Cases in Test Case Grid

QMetry provides efficient filtering options for AI-generated test cases. Testers can easily identify AI generated test cases by applying the 'Show QI Generated' filter.

image-20240725-061534.png

 

Related content