3.10.14. Saving Test Cases from an editor as a new Test Case
Prev | 3.10. Working with editors: opening, adding/deleting/renaming items, commenting, adding descriptions, extracting and replacing, reverting changes | Next

### 3.10.14. Saving Test Cases from an editor as a new Test Case

You can save selected Test Cases from other Test Cases and from Test Suites. This lets you create a new keyword that contains the selected modules without having to manually find them and reuse them.

1. Open the Test Case Editor or Test Suite Editor by double-clicking on the Test Case or Test Suite you want to edit.

2. Select the Test Cases you want to save into the new Test Case by single-clicking them. Use »CTRL« to select more than one item.

3. Right-click in the editor and select:

   Refactor-->Save as new....

4. When prompted, enter a name for the new Test Case.

5. In the following dialog, select the Category where the new Test Case should be added.

6. A new Test Case will be created containing the Test Cases you selected, with the data and component names they used in the current editor.

7. The Test Case you just created is visible in the Test Case Browser.

Use this feature if you have created reusable Test Cases that are correctly modularized, but you require them again (e.g. prerequisites for another Test Case). If the sequence of actions you require is a recurring logical sequence (e.g. enter username, enter password, then click OK for a login dialog), then we strongly recommend using the Extract function (Section 3.10.12, “Extracting Test Cases from editors: Refactoring”) instead. This will give you one reusable module, and therefore one central place to make any changes should this sequence change.