Element creation commands¶
The following commands are shown when right-clicking on a model element in the UML navigator.
Commands shown when right-clicking on a UML Package element (cf. Figure 6):
|Test Package||Creates a Package intended to contain test elements.|
Table 1: Commands on UML Package
When you select several UML packages and right-click, the Test Package command creates:
-a package named from the name of the first selected package with Test as suffix;
-import dependencies to the selected UML packages;
-a class diagram showing the imports between the test package and the UML
Figure 6: Commands on UML Package
Commands shown when right-clicking on a Test Package element (cf. Figure 7):
|Test Component||Creates a Component with UTP Test Component stereotype.|
|Test Context||Creates a Class with UTP Test Context stereotype.|
Table 2: Commands on Test Package
When you select one test package and right-click, the Test Component command creates:
-a Component named and stereotyped TestComponent.
When you select one test package and right-click, the Test Context command creates:
-a Class named and stereotyped TestContext with one attribute for the arbiter and one for the scheduler;
-an internal structure containing internal parts related to the elements imported from the UML package (the SUT) and related to the test components;
-a composite structure diagram showing the SUT elements.
If you do not want to test particular elements, you only have to delete them on the diagram.
Figure 7: Commands on Test Package
Commands shown when right-clicking on a Test Context element (cf. Figure 8):
|Test Case||Open the wizard for creating an operation which describes a test case.|
Table 3: Commands on Participant
This operation is stereotyped TestCase and returns a Verdict.
Figure 8: Commands on Test Context