Adding a Test Case 

On the Test Case module toolbar, click on the New button.

The Add Test Case screen has the following fields on it.

                  

                         

                     To download the image, click on the image and then click on the Download icon at the top right corner.


Notes:


B.  Users can paste the html/xml content into the Source editor of the "Large Text" field type and it auto-renders the code to show the text outputs on the screen.


Use Case: An organization is using Rich text for Description field, in which they copy-paste the content from their source in html/xml format.

Click on the Edit icon at the right to open the source editor.


Note: To enable a rich text editor, the Enable Rich Text parameter should be enabled for the Project (Projects > Project / Release / Cycle). Refer to Enable Rich Text Editor for more details.


          Enable Rich Text and Source Code Editor: Refer to the Description field above.

Adding Test Case Steps

You can add test steps that are to be executed under the test case. View, Create, Edit and Delete rights for Test Case are allocated to user roles from Customization > Roles. Users can perform operations as per the permission granted to their user roles.

Steps

  1. Go to the Steps section on the Create Test Case screen.

  2. Follow either of the following ways to add a test step:

    1. Hover the mouse over the Step Description cell and click on the Edit icon (pencil). You can also move using TAB on the keyboard.

    2. Click on the "+" icon at the right and select the Insert Row option to insert a new step at the end.

    3. Click on the settings icon for the test step and select the Insert Row option to insert a new step next to the current step.

A blank row is added to the grid with an auto-generated Step number. Enter Step Description, Input Data, and Expected Outcome in respective fields by clicking in the cell.

Repeat the same process to add other steps.



Rich Text Editor for Steps

There are two formats in which you can add test steps: Plain Text and Rich Text.

Enable Rich Text and Source Code Editor: Refer to the Description field of test case.

Note: To enable rich text editor, the Enable Rich Text parameter should be enabled for the Project (Projects > Project / Release / Cycle). Refer to Enable Rich Text Editor for more details.

User-Defined Fields: If UDFs are added to the test step module, then they are displayed on the Test Steps section as columns beside the default fields of test steps.

Show/Hide and Re-arrange Test Step Columns

You can organize the test steps columns in the panel through drag and drop operation. You can also opt to hide/show Input Data, Expected Outcome and other UDF columns on the screen.

Click Save once you make any changes for the Test Steps panel.

Any changes in test steps column arrangement will reflect in other places where the test steps panel is used. For example, column arrangement changes on the Execution screen will reflect in the following places.


Edit entered steps

1. Click on the Edit button.

2. Click in the cell to modify the steps. It opens the test case details page in editable mode.


It allows you to do inline editing in the field.


As an alternate way, you can click on the Edit icon for the step that you want to edit.


The step section opens in the expanded view with system fields (Step Description, Input Data and Expected Outcome) as well as custom fields.

You can switch between the fields.


In the expanded view, the Large Text UDFs have separate tabs while all the other UDFs are combined in single tab named Other.

To go back to the Step Description section, click on the Move to Step button.

You can use the Previous Step and Next Step buttons to navigate to the previous/next steps.

Use the New Step button to add a new step next to the current step.

Once you are done with editing the test step, click Apply to save the changes.

Actions on Cog icon

You can perform the following actions on the Steps grid:

Click on the Create a button to save the test case.

When you open the test case detail page, the Test Case Folder Path displays the path up to the folder the test case lies within.

Removing Test Case Steps

  1. Open the test case details page in editable mode.

  2. On the Test Case Step(s) grid, click the Con icon for the step you want to remove.

  3. Select Remove Row.

Changing the Order of Test Case Steps

While executing test suite, the test case steps appear in the same sequence as you arranged them here for the test case.

You can easily change the order of test case steps through the following way:

Adding Attachments at Test Steps

Users can get more granular details by adding attachments at test steps. For example, a test step needs to be tested with different test data. The tester attaches an excel sheet containing the test data to keep it ready for execution.

Note: Attachments to test steps can be added on the test case detail page as well as on the test case edit page.
To add attachments to the test step level, follow the steps mentioned below:

  1. Go to the test case detail page.

  2. Open the Steps tab.

  3. Click on the Attachment icon for the test step to which you want to add an attachment.

The Add Attachment screen opens. Attach required files to the step.

For attachments added from steps level, the Attachment Level shows “Test Step”.

Editing a Test Case / Update a Test Case

A test case can be edited in terms of its parameters and test case steps.

Users can save the test case without creating its new version. In-place editor is provided on the detail screens for all test assets. Just hover over the field and click on the edit icon.

It opens the field in editable mode. In case of text field, enter the value and save the details.

In-place edit will always update the test asset.

To create a new version of test asset, follow the steps mentioned below.

Edit Test Case Steps

Refer to the Edit entered steps section described earlier on this page.

Delete Test Case Steps

1. Go to the test case detail page.

2. Open the Steps tab and click on the Edit button.

→ Delete/Remove a Single Test Case Step

  1. On the Test Case Step(s) grid, click the Cog icon for the step you want to remove.

  2. Select Remove Row.

  3. Click Update.

→ Delete/Remove Test Steps in Bulk

  1. Select the test steps that you want to delete. The Delete button gets enabled on the selection of test step(s).

  2. Click on the Delete button.

  3. Click Update.

Create a New Version of the Test Case

If test case steps are added or edited in the test case, which is already executed, then it is recommended to save the test case with Save as New Version.

If the User Role has Versioning rights (in Customization > Roles), then the button will be visible to the user. When you edit test case details, you can save the details with a new version of that test case.

Follow either (A) or (B) as mentioned here.

A. Click on the Con icon for the test case and select Create New Version.

B. Open the test case detail page and click on the Create New Version icon on the header.


The next screen opens in editable mode.

Make the required changes and click on the Save as New Version button to create a new version of the test case with updates.

If you add/edit test steps within a test case, it will ask you to create a new version of the test case to save the content of steps along with test case parameters. The associated test suite will still be associated with the previous version of the test case.

If the test case was executed before, then the following option is provided while saving the new test case version.

Example: TC1 has execution status “Passed” in TS1. User modifies TC1 details and selects this option to reset the test case execution status while saving TC1. Now TS1 will show TC1 execution status as “Not Run”.


If the above option is not selected, then on the Test Run screen the sync icon appears beside the current version of the test case. On the Test Execution screen, to execute the latest version of the test case, click on the sync button.

The confirmation message pops up confirming the reset of execution status. The synced version will not show previously linked issues.


After syncing the test case with its latest version, its Execution Status changes to "Not Run".

If test steps were added in the latest version of the test case, then these test steps will also be added on the execution screen.


Note: QMetry allows you to use different versions of a test case for testing. Read more about it on the Managing Test Case Versions page.

Archiving a Test Case

All the versions of the test case should be archived to delete that particular test case.

Archiving Entire Test Case

You can not carry out further operations like adding attachments, linking test cases, issues, and release - cycles on an archived test asset.

A. Archiving from Test Case detail page

B. Archiving from Test Case module list view

A. Archiving from Test Case detail page

Open the test case details page by clicking on the test case.

Click on the Archive icon on the top right corner of the page.

It will archive all the underlying versions of the test case.


B. Archiving from Test Case module list view

Open test cases module.

The test case list view opens with list of existing test cases within the project/folder.

Click on the Cog icon for the test case you want to archive and select Archive. The test case is archived after confirmation.

To unarchive an archived test case, click on the Unarchive icon at the top right corner.

Archiving a Specific Test Case Version

Read Archiving a Specific Test Case Version 

Deleting Test Cases

To delete a test case, first you need to archive it. All the versions of the test case should be archived to delete that particular test case.

It is a two step process:

  1. Archive a test case (All the versions of the test case will be archived.)

  2. Delete a test case (The test case will be deleted including all its versions.)

Deleting Entire Test Case

All the versions of the test case should be archived to delete that particular test case.

A. From Test Case detail page

B. From Test Case list view

A. From Test Case detail page

  1. Open the detail page of the archived test case. Use the filter on the tree, to view the archived test cases.

  2. Click on the Delete icon at the top right corner of the screen.

Once the test case is archived, it looks like below.

The Delete icon now appears at the top right corner of the page.

Confirm the operation on the pop-up.

B. From Test Case module List view

To view the archived test cases on the screen, select the Show Archived Items check box above the grid.

It displays archived test cases along with other test cases.

Click on the Cog icon for the archived test case and select Delete.

Deleting a Specific Test Case Version

Read Deleting a Specific Test Case Version