Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Contents |
Prev | Next |
Generate Test Cases
When you have defined a scenario, you can generate one of a number of Test Cases from it, including:
- A Test Suite - Horizontal Layout
- A Test Suite - Vertical Layout
- An Internal Test Case or
- An External Test Case
Access
On a diagram or in the Project Browser, select an element and:
Ribbon |
Design > Element > Manage > Properties > Scenarios > Structured Specification : |<testcase type> or Design > Element > Manage > Specific Properties Page > Scenarios > Structured Specification : |<testcase type> |
Context Menu |
Right-click on element | Properties > Scenarios > Structured Specification : |<testcase type>, or Right-click on element | Properties Page | Scenarios > Structured Specification : |<testcase type> |
Keyboard Shortcuts |
: Scenarios > Structured Specification : |<testcase type> or > Structured Specification : |<testcase type> |
Other |
Double-click on Element : Scenarios > Structured Specification : |<testcase type> |
Test Cases Generated
Test Case |
Detail |
See also |
---|---|---|
Test Suite - Horizontal Layout |
A Test Case element is created, which acts as a container for the created diagram and Test Suite elements. The basic path and each alternate and exception path is represented by a Test Case element. Each step in the basic, alternate and exception paths is represented by a Test element. A diagram is created under the container Test Case element, to which the Test Case and Test elements are added. The elements are displayed on the diagram in a matrix-like format, with the basic path and its steps forming the first column followed by the alternate and exception paths. Note that the name of each created Test Case and Test element is truncated to 25 characters. |
Test Element Test Case Test Suite |
Test Suite - Vertical Layout |
A Test Case element is created, which acts as a container for the created diagram and Test Suite elements. The basic path and each alternate and exception path is represented using a Test Case element. Each step in the basic, alternate and exception paths is represented by a Test element. A diagram is created under the container Test Case element, to which the Test Case and Test elements are added. The elements are displayed on the diagram in a single column with the basic path and its steps at the top followed by each alternate and/or exception path and its steps. |
Test Element Test Case Test Suite |
Internal Test Case |
A test is generated for the basic path and each alternate and exception path in the scenario, and added to the selected element. In addition, for each step in the basic, alternate and exception paths that has a value in the Results column, a test is generated and added to the selected element. A diagram is created under the selected element, to which that element and a Note (showing the element's Structured Specification) is added. The created tests are displayed in the Test Scripts compartment of the selected element on the diagram. Another way to view these tests is to click on the element and display the Testing window. These generated tests are written to the Scenario Class Type of the Testing window; you can change the tests to another test-type if required. |
Show Test Scripts compartment Working on Test Records Move Or Copy Tests Between Categories |
External Test Case |
A Test Case element is created, linked to the selected element using the Trace connector. A diagram is created under this Test Case element, to which the selected element, the Test Case element and a Note (showing the element's Structured Specification) is added. The created tests are displayed in the Test Scripts compartment of the Test Case element on the diagram. A test case is generated and added to the Test Case element for the basic path, and for each alternate and exception path. In addition, for each step in the basic, alternate and exception paths that has a value in the Results column, a test is generated and added to the Test Case element. You can review the tests within the Test Case element using the Testing window, as for Internal Test Cases. |
Show Test Scripts compartment Working on Test Records Trace Test Case |
Learn more