Is it possible to change the name and location of the Simulink Element through a command line interface in SystemTest 2.3 (R2009a)?

7 views (last 30 days)
I have multiple models that needed to be tested with the same '.test' files and would like to pick the version of the model for the SystemTest files to be run on.
Currently,I am unable to do that because the Simulink Element in the '.test' files requires that I specify the location of the '.mdl' file.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
The ability to change the name and location of the Simulink Element through a command line interface is not available in SystemTest 2.3 (R2009a).
As a possible workaround for changing the name of the Simulink Element, create the test files and point the Simulink Element to a '.mdl' file called "myModel_test.mdl". Before running each "batch" of tests, rename the '.mdl' file from "myModel.mdl" to "myModel_test.mdl".
This is a manual step but it prevents from going into each '.test' files and pointing to a new '.mdl' file.
As a possible workaround for changing the location of the Simulink Element, create a generic folder called "C:\SystemTest\myProduct1". Here, include all the files needed to run myProduct1 (.m, .mdl, .mexw32 etc.), and all the '.test' files.
If you need to share these '.test' files with others, they will have to create the same directory structure. If you need to test a new version of 'myProduct1.mdl', you need to update all the files in "C:\SystemTest\myProduct1".

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2009a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!