How can I test applications developed with Rhapsody Architect for Software?
Sample model: Samples/CppSamples/TestConductor/TestingCookbook/CppCarRadio
When developing applications with Rhapsody Architect for Softare edition, Rhapsody generates only so called code frames. For example, no behavioral code for statecharts is generated (see Rhapsody documentation for details). However, TestConductor can also be used to test applications when working with Rhapsody Architect for Software. All kinds of test cases can be used and computation of model coverage or code coverage is supported.
The major difference when testing with Rhapsody Architect for Software is: Two code generation components are used to build the test application. The first one is building a library with the system under test (SUT) and other classes and artifacts from the design model. The second component contains the code of the test harness, this component is building the test application (which is linked with the SUT library).
When creating a test architecture, a small dialog allows to select an existing library component to be used as SUT library. Also a new library component can be created, in this case the user must adjust the scope and compile settings of the new component and configuration. After selecting the library component, the test architecture is automatically created and test cases can be created and specified. Before executing test cases, the SUT library must be build.