How can I create a test architecture for a class using ports ?

Sample model: Samples/CSamples/TestConductor/TestingCookbook/CCompositeCoffeeMachine_ports_classes

TestConductor creates test architectures for a class with ports automatically without any particular setting of a tag or a property.

If the test architecture should be a BlackBox architecture the setting Tools -> TestConductor -> 'Create TestArchitecture Transparency' must be set to BlackBox.

If the test architecture should be a GreyBox architecture the setting Tools -> TestConductor -> 'Create TestArchitecture Transparency' must be set to GreyBox.

TPkg_Coffeemachine_BB shows a black box test architecture created for a class with ports. Note that the SUT 'itsCoffeemachine' points to the Coffeemachine class in the default package; during test execution the original object from the design is instantiated. This allows black box testing of the SUT, which means no internal communication of the SUT (self messages of Coffeemachine or communication with its parts) can be validated.

Screen capture

TPkg_Coffeemachine_GB shows a grey box test architecture created for a class with ports. Note that the SUT 'itsCoffeemachine' has a dependency coffeemachine, that points to the replacement of the coffeemachine located in the test architecture; during test execution, the test SUT is instantiated. Also replacements for the classes like Control have been created. This allows grey box testing of the SUT, including validation of messages between the Coffeemachine and itself or its parts.

Screen capture