Generate Test Case Details and Steps in Existing Test Cases

Introduction

The Generate Test Cases and Test Steps using QI feature allows testers to auto-generate functional test cases using QMetry Intelligence (QI) directly from the Story Page or the Test Case Module. Furthermore, testers can utilize QI to generate the test case description, pre-condition, and test steps in an existing test case, with options to either update an existing version or create a new version.

This document describes the feature of generating test case details and steps in an existing test case by either updating the current version or creating a new version.

→ Prerequisite: The Enable users to generate test case details and steps in an existing test case by either updating the current version or creating a new one settings should be enabled under Apps > Manage your apps > QI Configuration as described in the article Auto-Generate Test Cases and Test Steps using QMetry Intelligence (QI).

→ Enable users to generate test case details and steps in an existing test case by either updating the current version or creating a new one. (Default: Disabled)

Settings

Description

Enabled

Users can use the AI-enabled feature to update the test case details and steps of the existing test case. They can opt to update the existing version of the test case or create a new version of the test case.

Disabled

Users can not access the AI-enabled feature to update the existing test case version or create a new version by updating the test case details and steps.

To create effective test cases, some guidelines should be considered while drafting the Story description.

Guidelines for Story Description

  • The Story should have sufficient description details to let the QI analyze the requirements, identify the critical scenarios, and generate test cases out of it. You can modify the Story description to ensure the maximum requirement coverage by test cases.

  • The Story should include a clear and well-structured explanation of the feature.

  • The Story description should cover the acceptance criteria to define the feature’s expected behavior. The decomposed stories give better results.

Note: If users are generating details and steps from the test case detail page and the story description is lengthy, QI recommends selecting a story with a description decomposed up to 500 words or providing a description ranging from a minimum of 30 to a maximum of 500 words for complete coverage of all potential scenarios. Otherwise, QI suggests creating test cases directly from either the Story Page or the Test Case module instead of consolidating all steps into a single test case.

Generate Test Case Details and Steps

Once you configure the required settings for QI, you will be able to see the Generate Details and Steps with QI button on the test case detail page.

image-20240322-122520.png

You can generate test case details and test steps with QI using -

(A) Currently Linked Story

(B) Story

(C) Description

image-20240215-080010.png

(A) Generate Test Case Details and Test Steps from Currently Linked Story

If you want to create test cases from a story that is currently linked to the test case, follow the steps mentioned below.

(i) Open the Select Currently Linked Story tab.

Stories linked to the test case are listed on the screen.

(ii) Select the Story from which you want to generate the test case details and test steps.

(B) Generate Test Case Details and Test Steps from Other Story

If you want to create test cases from a story that is not yet linked to the test case, follow the steps mentioned below.

(i) Open the Select Story tab.

The screen displays entities as per the configuration done for the Story issue type for the project under Project Settings > QMetry Project Settings > Issue Type.

You can select the Story of the cross-project to generate test cases.

You can also apply filters on Issue Type, Priority, and Status to narrow down the entity search.

(ii) Select a Story from which you want to generate probable test cases.

(C) Generate Test Case Details and Test Steps from Description

If you want to create test cases from the Description of Requirement, follow the steps mentioned below.

(i) Open the Enter Description tab.

The screen displays a text box to enter the description.

(ii) Enter the description for the requirement in the text box.

Note: The description of requirements will be utilized to generate test cases. To produce high-quality test cases, the requirement description should consist of a minimum of 30 words and a maximum of 1500 words.

Once you select either of the ways (A), (B), or (C) to generate the details, you can then opt either to update the current test case version or to create a new version of the existing test case.

The Test Data column for steps remains hidden by default. If you want to make the column visible, open the Hide/Show/Re-arrange Columns menu and select the Test Data column to display on the screen.

Generate Test Steps in Existing Test Cases

You can generate test steps for existing test cases using QMetry Intelligence. The feature accelerates the creation of test steps, saving time and reducing manual effort. It ensures uniformity in test step by producing precise and relevant test steps.

QI uses details from the Test Case Summary, Test Case Description, and Requirement Description to generate accurate Test Case Preconditions and Test Steps.

Guidelines for Test Case and Story Description

To create effective test steps, some guidelines should be considered while drafting the Description of test cases and stories.

  • Story Description, Test Case Description, and Manually-entered Description: It is crucial to have a detailed Test Case or Story Description that explains the key aspects of the functionality to ensure the creation of accurate and effective Preconditions and Test Steps.

  • Test Case Description Length: Test Case Description should be between 10 and 250 words.

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

 

Steps

  1. Open the Steps tab of test case for which you want to add test steps.

  1. Click on the Generate Steps button in the Steps Detail section.

The Generate Test Steps with QI screen opens.

You can generate test steps with QI using:

(A) Currently Linked Story

(B) Story: The tab displays all the Stories in the project.

(C) Description: Description entered by the user.

(A) Generate Test Steps from Currently Linked Story

If you want to generate test steps from a story that is currently associated with the test case, follow the steps outlined below.

  1. Open the Select Currently Linked Story tab. Stories linked to the test case are listed on the screen.

  1. Select the Story from which you want to generate the test steps.

(B) Generate Test Steps from Other Story

If you want to generate test steps from a story that has not been associated with a test case yet, follow the steps mentioned below.

  1. Open the Select Story tab. The entities are shown on the screen based on the configuration set for the "Story" issue type within the project's settings, located at Project Settings > QMetry Project Settings > Issue Type. You can also select a Story of the cross-project to generate test steps.

You can search the required story on Key and Summary. You can also apply filters on Issue Type, Priority, and Status to narrow down the entity search.

  1. Select a Story from which you want to generate test steps.

(C) Generate Test Steps from Description

If you want to generate test steps from the Description of Requirement, follow the steps mentioned below.

  1. Open the Enter Description tab. The screen displays a text box to enter the description.

  1. Enter the description for the requirement in the text box.

Once you select one of the ways (A), (B), or (C) to generate the test step details, you can then opt either to update the current test case version or to create a new version of the existing test case.

The Steps are generated using QI either updating the current test case version or creating a new version of the test case.

→ Update Current Test Case Version

The existing test case will be updated for the pre-condition and test step details.

Create New Test Case Version

If you want to create a new version of the test case without updating the existing version, click on the Create New Version Instead button.

A new test case version is created with the test step details generated through QI.

 

The Test Data column for steps remains hidden by default. If you want to make the column visible, open the Hide/Show/Re-arrange Columns menu and select the Test Data column to display on the screen.

Once the steps are generated, you can perform the following actions on the steps:

  • Link Shareable Test Case: The option allows you to link a shareable test case as a test step within the current test case.

  • Copy Steps from an existing Test Case: The option enables you to copy steps of other test cases to the current test case.

  • Clone: The option enables you to create a copy of a test step for reuse.

  • Delete: The option allows you to delete unnecessary or redundant test steps.

Update Current Test Case Version

Selecting this option will perform the following actions:

  • Test case description and pre-condition will be regenerated.

  • Existing test steps will be replaced with the newly generated steps.

  • Existing test step attachments will be disassociated and deleted.

  • Data Parameters and Shared Steps will be disassociated.

Create New Test Case Version

If you want to create a new version of the test case without updating the existing version, click on the Create New Version Instead button.

A new test case version is created with the details generated through QI.

Selecting this option will perform the following actions:

  • Test case Summary, Description, and Pre-condition will be regenerated.

  • Existing test steps will be replaced with the newly generated steps.

Identifying QI-generated Test Cases

When a new test case is created, updated, or versioned using the QI feature, accurate identification becomes essential for audit and compliance purposes.

The column labeled QI Generated indicates "Yes" for test cases or test case versions created using the QI functionality. You can opt to show/hide the column and also apply filter on it.

When a new test case is created, updated, or versioned using the QI feature, the Bot icon is shown alongside the test case's Version name. This visual indication helps users in recognizing AI-generated test cases or their versions.

Provide Your Quick Feedback

You can provide a quick feedback on test case details or steps generated through QMetry Intelligence. If you find inaccuracies, omissions, or areas for improvement, you can give feedback directly in the QMetry Intelligence interface. The feedback and information will be used for improving the feature.

Thumbs Up

You can select either of the following options to indicate what you like:

  • Contextually Aligned Details & Steps

  • Comprehensive Coverage

  • Clear, Logical & Detailed Steps

  • Consistent Terminology & Formatting

  • Accurate & Relevant Steps

  • Others

→ Others: You can enter your feedback by entering text up to 2000 characters in the box.

Thumbs Down

You can select either of the following options to indicate which you expect improvements:

  • Contextual Errors & Incorrect Steps

  • Incomplete Coverage

  • Insufficient Detail & Lack Clarity

  • Poorly Structured Steps

  • Redundant or Irrelevant Steps

  • Others

→ Others: You can enter your feedback by entering text up to 2000 characters in the box.

You can also select the following check boxes to report a specific issue.

  • The Test Case Summary and Description aren’t accurate enough.

  • The Test Case Steps and Pre-conditions aren’t accurate enough.

Â