Overview of Test Case Sharing

QMetry Test Management encourages users to maximize efficiency in managing tests. It provides different ways to reuse test cases, which saves the time of testers and makes information maintenance easier for testers. The following is a summary of the options that users can use in the same project.

  1. Reusing Shareable Test Cases: Shareable Test cases are set of "Shareable Steps" that can be reused in other Test cases.

  2. Copying Test Steps: Create a duplicate copy of step into the same test case. This is a one-time copy and paste of test steps.

  3. Copying Test Cases: A one-time copy and paste of bulk test case(s). The test cases can be pasted into the same project and across projects.

  4. Moving Test Cases: The test cases can be moved into the same project and across projects.

Shareable Test Cases

QMetry allows you to create Shareable Test Cases and reuse these Shareable Test Cases into another test case, i.e. reusing test cases. A shareable test case is used in different other tests within the same project to avoid creation of repeated test steps across test cases.

For example, you plan manual tests in which some sequences of steps, such as logging in, occur in many test cases. To avoid having to enter these sequences repeatedly you need to create shared steps.

The shareable test case functionality is beneficial as it:

Create Shareable Test Cases

In this example, we will show you how to add shareable test case and then reuse it in another test case. You can create shareable test cases using existing test steps.

Once you create a test case with test steps, open the test case details page.

Go to the Test Steps section.

Select the test steps that you want to share and click on the Create Shareable Test Case button.

Note: The Create Shareable Test Case button is available only on test case details page.

The Create Shareable Test Case pop-up opens. Enter Summary/Name of the shareable test case that is being created and click Create. The shareable test case is created.

Update Shareable Test Cases

You can update the shareable test case in a single place.

If the shareable test case is updated with the same version, then any changes to the steps automatically get reflected to the test cases that use the shareable test case.

If the shareable test case is updated with the new version, then this new version of the shareable test case should be synced in the test cases that use the shareable test case. This way users can sync the latest version of the shareable test case into the already linked test cases. Users do not have to link the new version of the shareable test case separately to the test case. All other test cases that use the common test steps can have the updated information by using the updated version of the shareable test case.  

Steps to sync the latest version of the shareable test case in the test cases it is linked with.

1. Open the test case that uses a shareable test case in steps.

2. Go to the Steps tab on the test case details page.

If the shareable test case version is not synced, you can see the refresh icon adjacent to the shareable test case.

3. Click on the refresh icon to sync the latest version of the shareable test case.

4. The shareable test case version is updated as per the latest version. Click Update to save the changes.

View Shareable Test Cases

To view the shareable test cases created within the project, select the Show Only Shareable check box in the test case list view. The filter will be applied to display the shareable test cases.

The shareable test case is identified by its distinct icon. 

To open the test case details page, click on the Entity Key of the shareable test case.

Reuse Shareable Test Cases

Shareable Test Cases are helpful when test steps are used repeatedly. While creating a new test case, testers may want to reuse a shareable test case because it contains the same test steps that are to be followed in the new test case.

For example, there is a test case "Login", which contains test steps to check the Login functionality. There is another test case "Verify Copy Requirements", which requires the same test steps as in "Login" along with other additional test steps. So the tester inserts a shareable test case and reuses the test steps under the test case.

Steps

1. On the Test Case detail/create screen, go to the Test Steps section.

2. Click on Edit, it enables the '+' icon to add more steps.

To insert the shareable test case at the end, click on the + sign and select Insert Shareable Test Case. Or

To insert the shareable test case in the next row, click on the cog icon on the individual test step and select Insert Shareable Test Case.

3. The Link Shareable Test Case pop-up opens. Select the test case you want to link to the new test case. You can also select a particular version of the test case.

4. Click either on Link or on Link & Close button. Clicking on the Link button will keep the window open after linking test cases. Clicking on the Link & Close button will close the window after linking test cases.

The shareable test cases are added to another test case. On the Steps tab, you can view the test case Key and version that has been linked.

You can -

A. Drag & Drop test steps to re-arrange them.

B. Open the shareable test case in a separate tab.

View Test Cases Linked to a Shareable Test Case

On the shareable test case detail page, open the Test Case tab. The tab lists all the test cases in which the current shareable test case is linked.

Use Case: A shareable test case is updated, but testers do not know which test cases will be impacted due to this change. Hence, the Test Case tab is added to help testers see the test cases in which shareable test cases are used.

View Test Cases having Shareable Test Case

The Show Test Cases with Shareable Test Case filter is added to the test case tree to let users see test cases to which shareable test cases are linked it.

Use Case: Testers want a quick way to see test cases that contain shareable test cases linked to them. The filter allows users to get such a list of test cases promptly instead of checking individual test cases for the shareable test cases attached to them.

Easily Identify Steps from Shared Test Cases

On the Test Execution screen, you can view the Shareable Step details. The Shareable Steps can be identified by the icon to open it in a separate tab. On hovering the icon, it displays the Entity Key for the test step. When you run a test, you can either mark the whole test case as passed or failed or mark each step individually.

Copying Test Steps

QMetry allows you to copy and paste test steps within the same test case.

Copy / Paste test steps within the same test case

  1. Go to the Test Steps section and click Edit. You can now view '+' icon and cog icon for steps.

  2. Click on the Con icon for the step that you want to create a copy of, and select Duplicate Row.

  3. It will create a copy of the existing step and add it to the test steps.

Copying Bulk Test Cases

Users can copy test cases into the same project or across projects. This function works as a one-time copy so that the duplicate sets of test case(s) act independently going forward.  In other words, after the copy and paste, any changes performed on the original test case will not be reflected in the test case's copy.  

Pre-requisite: The destination project should have the required user-defined fields that are used in the source project.

Test Cases can be copied to the destination folder or the root folder of the destination project.

What will be copied with test assets?

Operation

Same Project 

Across Project

Copy

For the selected /all versions it will copy assets with all attachments, linkage of requirements, test  cases,  release, cycle , issues (linked with Requirement )

For the selected/all versions it will copy assets with all attachments  

To copy test cases from one project to another project or the same project, perform the following steps.

Select the project from which you will copy a test case. Go to the Test Cases module, click on the Con icon, and select Bulk Operations.

Step 1 Choose Operation: Select Copy as the operation to perform and click Next.

Step 2 Select records

1. Select test case records that are to be copied. If you want to copy all the test cases across pages then select the Select All (Across Pages) option. Maximum 1000 records can be selected at a time.

2. Select test case version options:

3. Click Next.

Step 3 Operation Details

Click Copy.

The confirmation message appears.

Moving Bulk Test Cases

The process is same as Bulk Copy except the version selection. Test Assets will be moved with all its existing versions.

Pre-requisite: The destination project should have the required user defined fields that are used in the source project.

What will be copied/moved with test assets?

Operation

Same Project 

Across Project

Move

For the selected /all versions it will copy assets with all attachments, linkage of requirements, test  cases,  release, cycle , issues (linked with Requirement )

For the selected/all versions it will move assets with all attachments 

To move test cases from one project to another project or same project, perform the following steps.

Select the project from which you will move a test case. Go to the Test Cases module, click on the Con icon and select Bulk Operations.

Step 1 Choose Operation: Select Move as the operation to perform and click Next.

Step 2 Select records

1. Select test case records that are to be copied. If you want to move all the test cases across pages then select the Select All (Across Pages) option. Maximum 1000 records can be selected at a time.

2. Select test cases and click Next.

Step 3 Operation Details

Click Move.

The confirmation message appears.

Test Data Parametrization in Shareable Test Cases

You can create shareable test cases from steps that contain data parameters. You can also insert parameterized shareable test case into the existing test case. At the time of execution, the parameter values for this shareable test case will be referred from the main test case that is using it.

Use Case: QA team is creating and maintaining test data-driven test cases, therefore, they want their shareable test cases parameterized as well.

Notes:


Create shareable test case from parameterized steps

1. Open the test case which contains parameterized steps in it.

2. Select the parameterized steps you want to include in the shareable test case and click on the Create Shareable Test Case button.

The Create New Shareable Test Case pop-up opens.

3. Enter Name of the shareable test case and click Create.

On the test case list view, apply the filter to view only Shareable and the shareable test cases will be listed on the screen.

Open the shareable test case detail page.

The shareable test case created from parameterized steps is displayed like below.

Inserting Parameterized Shareable Steps

You can insert a parameterized shareable step from the current project as well as from other projects.

Steps

1. Open the test case detail page.

2. Go to the Steps tab.

3. Open the cog icon and click on the Insert Shareable Test Case.

The Link Shareable Test Case pop-up opens.

You can also insert a parameterized shareable test case from other projects.

If the parameters of a parameterized shareable test case do not exist in the current project, then the parameters will get created in the project once the shareable test case is linked.

4. Select the shareable test case(s) you want to link and click Link.

The test case in example has its own normal steps and parameterized steps. And now, parameterized shareable test steps are linked to it.

Mapping Data Grid for Test Cases

To insert values in the parameterized shareable test steps, you need to map the data grid with the test case.

Steps

1. Link the main test case, which contains parameterized shareable steps, to a test suite.

2. Open the test suite details page.

3. Go to the Test Cases tab in the test suite.

4. Click on the Link Parameter Values sign @ to add values to the parameters for the test case which contains the shareable test steps.

You can see that the @ sign for parameterization is highlighted and has a hyperlink on it.

The Mapping DataGrid screen opens.

5. Select either of the following as Data Source:

6. Click Save to save the entered data.

Execute Parameterized Test Cases

You can execute the parameterized shareable test steps. The values in the steps will get replaced as per the mapping of grid data for the test case.

Steps

1. Open the test suite detail page.

2. Open the Test Execution tab on it.

3. Click on the play icon to navigate to the Test Execution Screen to execute the parameterized test case.

On the Test Execution Screen, when you click on the Expand All button, the test cases with parameterization get expanded up to Parameter Groups.
The steps count at the test case level displays (the count of test steps X count of data sets).

4. Expand each Parameter Combination to view the test steps under it.

The parameter values for shareable steps are displayed as per the data grid mapping done for the main test case using the shareable steps.

If the normal steps have parameters, their values also get replaced as per the data grid mapping of the test case.