MATLAB: How to synchronize the model with the Test harnesses so that changes made to one are automatically reflected to the other

simulink test

I have external test harnesses attached to subsystem in my model. If I change the name of the root model, the test harnesses are no longer visible from my subsystem. How can I change the name of my model without affecting the test harnesses?

Best Answer

This functionality is currently supported only for internal test harnesses. A workaround is to convert the external test harnesses to internal using "sltest.harness.convert", then rename the root model and then convert the test harnesses back to external.