Menu

Create, Edit , and Delete Test Cases

Overview

qTest Manager allows you to create reusable test cases and store them in a central repository in Test Design. Then, using the drag/drop functionality within the left navigation panel and you can move test cases and folders into the preferred layout.  For more information, see the article Examples to Build Your qTest Repository.

Create Test Cases

Before we can execute test cases, we need to create them in Test Design. Then, we create test runs from the Test Execution module to plan and log execution results.  

To Create a Test Case, follow these steps:

  1. In Manager, select Test Design.



  2. Click the New Module icon in the Navigation panel.

    New_Module.png

    HIN
    T: Test cases, like Requirements, are organized in folders known as project modules. Before creating a new test case in qTest Manager, make sure to create at least one project module to organize your test cases.  We recommend organizing test cases into a nested folder structure to make them easy to find.
  3. The "Project Module" page displays. Name and describe your Module.
  4. Select your Module and then select the New Test Case icon in the Navigation Panel.
    Create_a_Case.png


    HINT: 
    The Status, Type, Version, and Priority fields are automatically populated by qTest Manager. You can change the status, type and priority of the test case, as applicable. To create custom fields or modify existing system fields, see the Field Settings article.

Define Your Test Case

  1. Click the down arrow to the right of the Assigned To field and click the checkbox next to the name of the tester you want to assign to this test case.

    HINT: 
    You can automatically send email notifications to other users when test cases (or other objects) are assigned to them.  To configure email notifications, see the Notification Settings article.

  2. In the Description text box, enter a description of the test case.
  3. In the Pre-condition text box, enter the pre-conditions that must occur prior to executing this test case.
    Define_your_case.png

Enter Test Steps for Your Test Case

  1. In the "Test Steps" Section at the bottom of the "Test Case" page, double-click the field under "Step Description."
  2.  The "Test Step" field expands. In the expanded fields, enter the Step #, Step Description, and Expected Result.
    • Optionally, you can add attachments by selecting the paperclip icon.
  3. Once finished, select Save.

Edit Test Case

To edit an existing Test Case, perform the following steps.
Note: To edit a Test Case, you need Edit Test Cases permission.

  1. In Test Design, select the Test Case that you want to edit in the Navigation Panel.
    Select_a_test_case_to_edit.png
  2. Edit the Test Case name or any fields in PropertiesTest StepsResources, and Attachments of the Test Case.
  3. Select Save.
  4. Reload to get the latest information on the selected Test Case.

Test Case Versioning

When you save a Test Case with new changes, the Test Case's version will automatically increase by 0.1. The version number is visible as a system field on the test case page, as shown below.


When editing the test case, you can only make changes based on the latest version of the test case, not previous versions. To easily reference the changes made over time, see the History tab of the test case, as displayed below.


Note: When executing test runs in Test Execution, you can select any previously-approved version of the test case. If you have the permission to Approve a Test Case, you will also be able to execute the latest version of the test case during runtime.

Test Case Versioning and Software Versioning

A new version of software may require changes to the tests that must be performed. To manage changes to a certain test over time, you can either edit the original test case (e.g., add additional test steps) or copy the original or create a brand new test case. This separate test case may be more beneficial if you need to continue to test previous versions of your software. 

If it is not as important to continue testing older versions of your software, you can edit the existing test case over time.

Approve a Test Case

qTest Manager provides the ability to control how changes to a test case can be incorporated into Test Execution. An Approved Test Case means that this version is ready for test execution.

If only certain users within your project should have the ability to review and approve test case changes, the Project Administrator can remove the “Approve Test Cases” permission from other users in your project’s User Management Settings. If it is not important to restrict who can approve test cases within your project, simply give every user the permission to “Approve Test Cases.” 

To identify whether a test case is in an approved version, refer to the test case version number. When a test case is approved, the Test Case's version will automatically increase to the next whole number. For example, when test case version 4.2 is approved, the version number is automatically changed to test case version 5.0. The approved version of edited Test Cases will automatically update in their Calling Test Cases.

To approve a single Test Case, select Approve at the top-right of the Test Case page. Select Yes in the confirmation dialog.

Approve_TC.png

To approve multiple Test Cases, go to the Data Query in Test Design, query for Test Cases that need to be approved. Then, select the Test Cases in the Query Result table and click the Batch Approve button to approve all selected Test Cases.

Batch_Approve.png
Delete a Test Case

To delete a Test Case, follow these steps:

  1. In Test Design, select the Test Case(s) that you want to delete in the Navigation Panel.
  2. Right-click the Test Cases(s) and select Delete.

  • Deleting Test Cases will remove their associations with any Requirements.
  • If you delete a Called Test Case, it will remove all corresponding steps within Calling Test Cases that included the Called Test Case.
  • Deleting a Test Case will automatically remove its associated Test Run(s) in Test Execution regardless of their execution status.

HINT: Requirements linked to deleted Test Cases will remain unchanged. Deleted Test Cases can be restored from the Recycle Bin.   

NEXT STEPS: See the following articles.

Powered by Zendesk