Work with Test Cases
Clone a Test Case
This topic describes the most common actions you’ll perform when working with test cases.
Cloning a test case keeps scripts intact and clears all test results, comments, attachments, and defects.
Simply select any number of test cases you want to clone, then click More > Clone.
New test cases appear in the test-case list with "(cloned)" in the title. You can click/open a test case to rename it.
Archive test cases
Unused test cases can clog up the test library, so you can archive those you aren’t currently using to clean up the space. Archiving removes unwanted test cases from the test library without permanently deleting the testing data.
Note
You can move archived test cases back into the active test library at any time.
To archive unused test cases, select the test cases you want to move to the archive, then click Archive.
Confirm you want to archive when prompted, and the test cases move out of the test library and into the archive.
You can access archived test cases by clicking Archived Test Cases at the bottom of the Folders panel.
Unarchive test cases
You can move archived test cases back to the test library at any time.
Simply click Archived Test Cases while in the Tests view to access the archive, select the test cases you want to move to the test library, then click Unarchive.
Confirm you want to unarchive when prompted, and the test cases move back into the test library.
Delete a test case
To keep your test library clean and tidy, you can delete old or unnecessary test cases. In order to delete a test case, you must first archive it from the test library.
Important
Before you begin:
You need the Delete permission to delete test cases. To change the setting, go to your project’s Settings, then Test Management > Permissions > Test Cases.
You cannot delete test cases that are part of a test cycle or have other dependencies like being used in another test case through call-to-test.
You can only delete one page of test cases at a time. This is to limit the impact of the action on your Zephyr Scale instance.
Steps to follow
First, you must archive a test case to delete it.
In the test library, go to the Archived test cases section.
Select the test cases that you’d like to delete (max one page at a time), and click Delete:
Zephyr Scale will analyze dependencies and will report if this or that test case cannot be deleted:
If a test case cannot be deleted, you will need to remove it from a test cycle, or stop using it (through call-to-test) in another test case.
If your test cases don’t have any dependencies, you’ll see a message like this:
Click Next to continue.
On the next step, Zephyr Scale will show the number of test cases to be deleted, and will ask your confirmation for this. Click Delete:
The deletion may take some time depending on the number of test cases selected. Zephyr Scale needs to run additional checks and to remove all the data related to a test case.
You can keep the page open to monitor the deletion process, or close the page (in this case, the deletion will continue in the background). If the page is open, you can cancel the deletion at any time by clicking Abort.
Once the deletion is over, you’ll see a message showing you the number of test cases that have been successfully deleted, and those that have been skipped.
Export test cases
You can export test cases to XLS or to XML.
In the Tests view, select the test cases you want to export.
Click More > Export to XLS.
– OR–
Click More > Export to XML.
The file downloads to your default location.
Example XLS file:
Example XML file:
Create test cases in bulk
Click the Tests view.
Select the folder that contains all of the test cases you want to bulk edit. If the test cases aren’t all in the same folder, select All Test Cases.
Select each of the test cases you want to edit in bulk.
Click More, then click Edit in Bulk. The Edit Test Cases in Bulk window appears.
Select each field you want to edit in bulk, and update or remove the value. Any change you make will be applied to each of the test cases you have selected in Step 3.
Click Confirm. The Update Test Cases confirmation message appears.
Click Confirm to complete the bulk-edit process.