Troubleshooting
Problem
Attempts to build IBM Rational Rhapsody in C model files which are automatically created by Rhapsody Test Conductor Add-on result in Compile error (C4047/C4028).
Symptom
Steps to Reproduce:
- Create a Rhapsody in C model
- Add a bi-direction association between class_0 and class_1
- Set multiplicity "*" on End1(itsClass_1)
- Also apply "qualifier" info on itsClass_1 role as the model shown below.
- Using Rhapsody Test Conductor to create Test Architecture against class_0.
Expected result: No error occurs when compiling the generated Test Architecture configuration.
Actual Result: Below error occurs when compiling the generated Test Architecture configuration.
Cause
This is a feature limitation in Rhapsody in C model which Test Conductor doesn't support above design.
NOTE: There is NO such a limitation in Rhapsody in C++ model.
Resolving The Problem
You can avoid above mentioned compiling error by following below steps to modify the auto-generated test architecture model manually before building the configuration.
(original model and modified model are attached below.)
- Exclude test conductor package from original model component.
- Enable project property CG::CGGeneral::GeneratedCodeInBrowser and save the change.
- Activate original component(DefaultComponent) and run code generation.
- Next, set test conductor component(TPkg_class_0_Comp) as active component.
- Open the code of Default::class_1 and copy/paste the body of setItsClass_0 and _setItsClass_0 into the same named operations of the test component class_1. Save the change done to the model.
- Now, building the test conductor component(TPkg_class_0_Comp) should be successful.
[Additional Information]
- A feature enhancement request has been submitted to request Test Conductor implementation for above design in RiC model as well.
- You can use code, flow chart, state chart test cases with this model. SD based test cases will not work (TC won't be able to generate the right stub/driver code for the unbounded multiplicity).
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21671535