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):

Command Description
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

packages.

Figure 6: Commands on UML Package

Commands shown when right-clicking on a Test Package element (cf. Figure 7):

Command Description
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):

Command Description
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

image010.png (1.34 KB) admin admin, 10 October 2014 16:38

image008.jpg (40.9 KB) admin admin, 10 October 2014 16:38

image009.png (1.27 KB) admin admin, 10 October 2014 16:38

image011.jpg (48.9 KB) admin admin, 10 October 2014 16:38

image013.jpg (42.8 KB) admin admin, 10 October 2014 16:38

image012.png (1.34 KB) admin admin, 10 October 2014 16:38

image007.png (1.32 KB) admin admin, 10 October 2014 16:38