sltest.testmanager.setpref
Set preferences for Simulink Test Test Manager
Syntax
Description
sets the Simulink®
Test Manager test file section display preference,
settings = sltest.testmanager.setpref("TestFileDisplay",preference,value)preference, to value.
sets the test suite section display preference, settings = sltest.testmanager.setpref("TestSuiteDisplay",preference,value)preference, to
value.
sets the test case section display preference, settings = sltest.testmanager.setpref("TestCaseDisplay",preference,value)preference, to
value.
adds the releases in settings = sltest.testmanager.setpref("MATLABReleases","ReleaseList",releasesForSimulation)releasesForSimulation to the list of available
releases in the Simulink Test Manager. This preference lets you use releases other than the current
release for testing.
Note
If releasesforSimulation includes a release path that is
already in the release preferences, this function returns an error. To include that
release in the releasesForSimulation list, first delete the
existing release list.
adds or deletes the specified settings = sltest.testmanager.setpref("MATLABReleases",releaseName,releaseInfo)releaseName to the list of available
releases.
specifies whether to display simulation logs in the MATLAB® Command Window when you run tests in the Simulink
Test Manager.simLogSetting = sltest.testmanager.setpref("ShowSimulationLogs","IncludeOnCommandPrompt",value)
shows detailed error messages and simulation logs in the MATLAB Command Window when logDetailSetting = sltest.testmanager.setpref("ShowSimulationLogs","ShowAllLogDetails",value)value is true.
Note
ShowAllLogDetails is not supported for multiple release tests,
real time tests, MATLAB unit tests run in parallel mode, or software-in-the-loop tests
run in parallel mode
sets the name to use for test result sets. This name applies to
all result sets for tests that you run after you set
the preference. This function does not change the names of existing result sets.nameSetting = sltest.testmanager.setpref("ResultSetProperty","ResultSetName",name)
opens the dashboard at startup when dashboardSetting = sltest.testmanager.setpref("Dashboard","OpenAtStartup",openTab)openTab is
true. This setting is only available if you have a Simulink
Check™ license.