Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
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 > Testing > Tests > <test class> > Right-click on test to move/copy Start > Explore > Browse > Element Browser > Testing > <test class> > Right-click on test |
Keyboard Shortcuts |
: 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 Class' field in the Testing window toolbar, click on the drop-down arrow and select the test class you moved/copied the test into, to check that the Test has been added. Open the Construct window (the 'Start > Explore > Properties > Construct' ribbon option) 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 class, some unassociated data could be lost