Creating Test Cases

You can create test cases in QMetry in three ways: build them manually, generate them from a Behavior-Driven Development (BDD) feature file, or auto-generate them with QMetry Intelligence (QI). This flexibility lets each team create and manage test cases in the way that best fits its workflow.

Choosing a Test Case Method

Use the method that matches your source material and workflow:

  • Create Manually - Use this option when you want to create test cases from scratch with full control over fields, test steps, and links.

  • Create from a BDD feature file - Use this option if you already have Gherkin feature files and want QMetry to automatically generate the corresponding test cases. View More Details.

  • Auto-Generate with QI - Use this option when you want QMetry Intelligence to generate test cases and test steps from a requirement or description.

Prerequisites

The manual creation workflow requires the following permissions:

Table 18. Permissions

Task

Required Permissions

Link requirements to the test case

Link Test Case, Link Requirement

Create a test suite while creating the test case

Create Suite, Link Test Case, Link Test Suite

Link the test case to an existing test suite

Modify Suite, Link Test Case, Link Test Suite



Note

  • Plan Executions is available only in eSignature disabled projects.

  • The Risk Analysis section appears only when the Risk Analysis feature is enabled in General Settings.

  • When Create Another is selected, Plan Executions is disabled.

Creating New Test Cases

The Create New Test Case screen lets you define test case details, create multiple test cases, link requirements, add test steps, associate a test suite and plan execution, all in one place.

To create a new test case, perform the following steps:

  1. Open the Test Cases module.

  2. Click New.

  3. Fill in all details under System Fields and User-Defined Fields.

  4. Add steps in the Test Steps section.

  5. Link Requirements. Select requirements from the list, or enter the Requirement entity key directly.

  6. Save the test case in one of the following ways:

    • Click Create to save the test case.

    • Select Create Another, and then click Create to save the test case and open a new, pre-filled Create Test Case form. For details, refer to Creating Multiple Test Cases with Create Another.

    • Select Plan Executions to link the test case to a test suite and schedule execution before saving.

    After you save, QMetry generates an entity key for the test case and places it in the folder shown in the Folder Path field.

System Fields

The System Fields section contains the standard fields for defining a test case.

Table 19. System Fields

Field Name

Description

Summary

Name of the Test Case.

Priority

Priority of the test case, for example, Minor, Major, Critical, Blocker, or Trivial.

Status

Workflow status of the test case: New, Approved, In Progress, or Ready to Review.

Owner

Assign an owner from users with access to the project.

Test Case Category

Regression, Performance, Security, or Functional.

Estimated Time

Estimated execution time in HH:MM:SS format, up to a maximum of 99,999 minutes.

Folder Path

Folder location of the test case. This field is auto-populated based on where you create the test case. You can update the path manually.



User-Defined Fields (UDFs)

Custom fields that an administrator adds to the Test Case module appear in the User Defined Fields section.

  • Administrators configure UDFs for the Test Case module in Customization, in Manage Fields.

  • You can configure UDFs as look-up lists, multi-lookup lists, or cascading fields.

  • For a mandatory cascading field, you must select both the parent value and the child value.

QPo_TC_UDFs__1_.png

Creating Multiple Test Cases with Create Another

Select the Create Another checkbox to create several test cases in a row without returning to the Test Cases list. After each save, QMetry reopens the Create Test Case form with the values that test cases usually share already filled in, so you only enter what is unique.

By default, the Create Another checkbox is cleared.

Create_Multiple_TC.png

For details on adding test steps, linking requirements, and planning executions, refer to Adding and Editing Test Steps, Linking Requirements, and Planning and Executing New Test Cases.

To create multiple test cases, do the following:

  1. In the Test Cases module, select New.

  2. Fill in the test case details, steps, and links.

  3. In the footer, select Create Another.

  4. Click Create.

    QMetry saves the test case and immediately opens a new Create Test Case form.

  5. Enter the unique details for the next test case, and then click Create.

  6. Repeat until you have created all the test cases you need.

  7. Clear Create Another. You can now plan executions for all the test cases that you have created by selecting Plan Executions or skip the planning and simply click Create.

Fields That Carry Over

The new form clears the fields that make each test case unique and keeps the rest from the last test case you created.

Behavior

Fields

Cleared

Summary, Description, and Test Steps (including user-defined fields in the steps)

Kept from the last test case

All system fields (for example, Priority, Status, Owner, and Labels), Folder Path (single or multiple), associated releases and cycles, test case user-defined fields, risk-based fields, and linked requirements

Track Test Cases Created in the Session

CreatingMultipleTCinaSession.png

A counter at the bottom left of the screen, next to a green check icon, shows how many test cases you have created in the current session. The counter increases by one after each successful save.

Select the counter to open the Test Cases module in a new browser tab. The list is filtered to the test cases you created in this session.

When you continue to a test suite from the session, the header of the next screen shows the number of test cases you created in the session.

Note

  • A session ends when you close the Create Test Case screen, log out, or refresh the page.

  • If a save fails partway through a session, QMetry keeps the test cases it already created.

Adding and Editing Test Steps

To add or edit test steps, perform these steps:

  1. Go to the Test Steps section.

  2. Select the Expand icon to open the full-screen view.

  3. Add a step in one of the following ways:

    • Select the Edit icon, or press Tab to navigate between fields.

    • Select the cog icon, and then select Insert Row.

  4. Enter Step Description, Input Data, Expected Outcome, along with any other user-defined field.

  5. Repeat to add additional steps.

Reusing Steps

You can reuse steps from an existing test case or from shareable test cases in two ways:

  • Select Insert Shareable Test Case.

  • Select Copy Steps from Existing Test Case.

Access both options from the cog (⚙️) icon or the + icon on the Test Steps toolbar.

QPro_AddTestStepsinTC.png

Insert a Shareable Test Case

To insert a shareable test case, perform the following steps:

QPro_TC_LinkSTC.png
  1. Select the cog (⚙️) icon and then select Insert Shareable Test Case.

  2. In the Link Shareable Test Case screen, apply a filter to locate the relevant test cases. You can also filter shareable test cases by folder path.

  3. Click Save and Apply to save the applied filters.

Copy Steps from Existing Test Cases

To copy steps from an existing test case, do the following:

QPro_TC_CopyStepsfromanExistingTC.png
  1. Select the cog (⚙️) icon and select Copy Steps from Existing Test Case.

  2. In the Copy Steps from an Existing Test Case screen, select a Project in the Project list.

  3. Expand the test case that contains the steps you want.

  4. Select the test steps and then select Copy or Copy and Close.

    To copy steps from more than one project, select Copy, change the project in the list, and continue selecting steps.

Note

  • QMetry preserves the applied filters.

  • Enable Include Entities from Sub Folder to display shareable test cases from the selected folder and all its sub-folders. Disable it to display shareable test cases from the selected folder only.

Editing Steps

To edit a step, perform the following steps:

  1. Point to a step field, and then select the Edit icon to turn on inline editing.

  2. Press Tab or select outside the field to save your changes.

Note

  • If an administrator adds UDF step fields in Customization, those columns appear next to the default fields.

  • Changes to the column arrangement of UDF step fields apply across all related screens: Execution, Detail, Version, and Exploratory Testing.

  • When you use Create Another, the new form clears the test steps. Add steps again for each test case.

Entering Risk Analysis Fields

Note

This section is visible only if you have enabled Risk Analysis feature from General Settings under Projects.

To enter risk analysis values, enter the Risk Type, Risk Category, Likelihood, and Impact. QMetry calculates the Risk Priority Number and the Extent of Testing to help you prioritize test cases.

When you use Create Another, the new form keeps the risk analysis values from the last test case you created. Change them as needed.

Linking Requirements

To link requirements, do the following:

  1. Select Link.

  2. Link requirements in one of the following ways:

    • Enter the requirement entity key.

    • Select requirements directly in the Linking screen.

    • Create a new requirement in the Linking screen, and then link it to the test case.

    You can link up to 500 requirements to a single test case in the Link Requirements section.

When you use Create Another, the new form keeps the requirements linked to the last test case you created.

Planning and Executing New Test Cases

Plan Executions helps you streamline test execution. You can add a new test case to an existing test suite, or create a new test suite and schedule its execution.

When you create several test cases in one session, QMetry links all of them to the test suite you create or select. The Execution Flow screen then lists the test cases from the session, each with its own Release, Cycle, and Platform.

Creating a Test Suite

To create a test suite, you need the Create Suite, Link Test Case, and Link Test Suite permissions.

QPro_TC_Create_TS_.png

To create a test suite, do the following:

  1. Select Create Test Suite to open the creation screen.

  2. Enter the test suite details.

  3. Associate a folder path.

  4. Link one or more releases, cycles, and platforms. You can select multiple values for Release, Cycle, and Platform. By default, Release and Cycle are inherited from the test case, and the owner defaults to the logged-in user.

  5. Save the test suite in one of the following ways:

    • Click Proceed With Executions to save the test suite and continue to execution.

    • Click Create Test Suite to save the test suite.

    The entity key of the new test suite appears at the top of the screen. Select the entity key to open the test suite. All linked test cases appear in the Test Cases section. In a session with Create Another, this includes every test case you created in that session.

Linking an Existing Test Suite

Note

  • To link an existing test suite, you need the Modify Suite, Link Test Case, and Link Test Suite permissions.

  • You can associate a test case with only one Test Suite.

  • QMetry excludes the following test suites from the list:

    • Test suites that have no associated release, cycle, or platform.

    • Test suites in which all associated releases, cycles, or platforms are archived.

    • Archived Test Suites.

Link Existing Test Suite opens the list of available Test Suites in the current project.

QPro_TC_LinkingTE.png

To link an existing test suite, select the test suite, and then select one of the following options:

  • Link Test Suite and Close: Links the test case, or all test cases from the session, to the selected Test Suite and closes the screen.

  • Proceed with Executions: Links the test case, or all test cases from the session, to the selected Test Suite and initiates execution runs. You are redirected to the Execution Flow screen to begin execution.

  • Cancel: QMetry saves the test case, or all test cases from the session, but does not link them to any Test Suite.

Proceeding with Executions

The Execution Flow screen displays the test suite key, summary, and all execution runs for the test case. When you arrive from a session with Create Another, it shows the execution runs for each test case you created, including their different Releases, Cycles, and Platforms. You can edit the following details for each run.

Table 20. Proceed with Executions

Field

Description

Build Name

Build for the execution run. The mandatory project-level build settings are applied automatically.

Attended Time (timer)

Time spent on the execution. Edit it manually. The timer does not start automatically with execution.

Planned Date

Optional. Select a planned execution date.

Link or Add Bug

Link or create bugs

Execution Type

Defaults to Manual

Tester or Execution Assignee

Defaults to logged-in user

Setup Time

Hidden by default

Execution Status

Editable

Test Run UDF

Custom fields that capture details specific to this execution run. Displayed only if the project of the test suite has Test Run UDFs defined.



Note

The project-level timer restriction for Actual Attended Time does not apply on this screen.

You can add or link existing bugs directly from the test case execution screen.

  • Test Case execution view

    QPro_TC_TCEView.png
  • Step execution view.

    QPro_TC_TCSEView.png

Note

If a Test Run UDFs is marked as mandatory for the project then you must enter their values before you can set the execution status.

MandatoryUDF.png
Publication date: