/
Auto-Generate Test Cases and Steps Using QI

Auto-Generate Test Cases and Steps Using QI

Introduction

QMetry's “Auto Generate Test Cases and Test Steps” (AGT) feature uses AI to automate test case creation from Requirement module or Test Case module. It accelerates test case authoring, reduces manual effort, and allows testers to focus on test execution and validation.

This AI-powered feature enables testers to

  • Create new test cases

  • Generate test case description

  • Write pre-condition

  • Generate test steps and details in existing test cases.

After generation, testers can review and modify the details as needed. You can either update the current version of the test case or create a new test case version.

How Does the QI Model Work?

The QI model extracts relevant context from the requirement description or user-provided descriptions to generate modular test cases with comprehensive coverage. Testers can review, modify, and approve or reject the generated test cases before they are added to the test case library.

Best Practices for Generating Accurate Test cases

To ensure QI generates test cases with higher accuracy, the requirement description should adhere to the following guidelines:

  • Structured Use Case Format: The requirement description must be presented in a well-structured use case format to facilitate accurate test case generation.

  • Acceptance Criteria: Include clear acceptance criteria that define the expected behavior of the feature. Decomposing stories into detailed criteria will improve the accuracy of the generated test cases.

  • Contextual Analysis: Providing these details allows QI to analyze the context effectively and accurately identify relevant test scenarios.

  • Description Length: Descriptions should be between 30 and 1500 words.

  • Description Details: Description shall provide sufficient detail for QI to analyze requirements, identify critical scenarios, and generate accurate test cases.

  • Linking: Test cases generated are automatically linked to their corresponding requirements.

How to Enable/Disable Auto Generation of Test Cases?

To activate AGT, the super admin needs to enable it for the QMetry instance from Customization.

Go to Customization. Select General Settings & Audit. Click on AI Configurations tab.

Note:

  • Only super admin can access and configure QMetry Intelligence Configuration.

  • The default setting for QI feature is disabled.

image-20250326-063843.png

After enabling this feature, refer to the following documents for guidance:

View Statistics

Admins can monitor the use of AI features for generating and updating test cases across various projects. Key details include:

  • Test case created using QI

  • Test cases updated/versioned using QI

  • Approximate time saving

  • Users using AGT feature

  • Projects using AGT feature

image-20250326-063909.png

Project Settings for Auto Generation of Test Cases and Steps

Once enabled by the super admin, the project admin can configure this feature at the project level for internal requirements or imported requirements from Jira, Azure, or Rally.

  • For Internal Requirements - QI auto-generates Test Cases based on the requirement description.

image-20240725-050459.png

By default, the description field as set as pre-condition for auto-generated test cases. The QI model will refer to requirement description (if requirement is selected) or user-entered description (if user chooses to manually enter description).

  • For External Requirements imported from Jira or Azure or Rally - Projects integrated with external trackers like Jira & sync stories in QMetry, project admins can configure up to 2 issue fields as input descriptions to generate test cases.  Example – Description, Business Rules or Acceptance Criteria.

Go to Project Management. Select Integration. Click on Requirements. Next select Configurations.

image-20240717-093259.png

Users can configure the other field from Manage Fields option available under Customization.

image-20240725-050648.png

Error Messages

Error Message

  • The description will be utilized to generate Test Cases. To produce high quality Test Cases, the Jira requirement description should consist of a minimum of 30 words and a maximum of 1500 words.

image-20240719-051534.png

Solution

Add a valid description with word count ranging between 30 to 1500 words.

Error Message

Missing fields. One or more required fields are empty or contain invalid data.

image-20250326-063957.png

Solution

If any user-defined fields are marked as mandatory (*), the user must provide valid data. Resolve this error by entering the required information or by changing the mandatory status of the field from Customization.

Go to Customization, select Manage Labels.

image-20240719-133108.png

 

Related content