Prev | Next |
Move or Copy Tests Between Test Classes
After you define a test within one test class (Unit, Integration, System, Acceptance, Inspection or Scenario), you might decide that the test either is better suited to another test class, or forms a good template for tests in other classes. If so, you can either move or copy the test to the other class lists.
Access
Click on the element containing the test records.
Ribbon |
Construct > Test Management > Tests > <test class> > Right-click on test to move/copy Start > All Windows > Construct > Testing > <test category> > Right-click on test |
Keyboard Shortcuts |
> Testing : right-click on test to move/copy |
Move or Copy a Test
Step |
Action |
See also |
---|---|---|
1 |
Click on the appropriate option - 'Move to' or 'Copy to'. A list of test classes displays. |
|
2 |
Click on the test class to which to move or copy the test. A confirmatory prompt displays. |
|
3 |
Click on the to confirm the move or copy. |
|
4 |
In the Test Cases window, click on the tab for the test class you moved/copied the test into, to check that the Test has been added. Double-click on the test to open the 'Test details' dialog, and make any necessary changes to the Test record. |
Create Test Records |
5 |
If you are copying the test to more than one other test class, repeat steps 1 to 4 for the next class to copy to. |
Notes
- If you move or copy a test into the Scenario Tests class, some unassociated data could be lost