sltest.testmanager.getpref
Get Test Manager preferences
Syntax
Description
returns Test Manager preferences for one or more group settings
= sltest.testmanager.getpref(group
,preferences
)preferences
.
Examples
Get Test Suite Section Preferences
Get the preferences for the sections that appear in test suites.
Get preferences for test suite display. A value of 1
means the
section appears.
settings = sltest.testmanager.getpref('TestSuiteDisplay')
settings = struct with fields: TestTag: 1 Description: 1 Requirement: 1 Callback: 1 Coverage: 1
Get the settings for Description
and
Requirement
preferences.
settings = sltest.testmanager.getpref('TestSuiteDisplay',{'Description','Requirement'})
settings = struct with fields: Description: 1 Requirement: 1
Get MATLAB Release Information
Get a list of MATLAB® releases available in Test Manager.
Get the list of MATLAB release preferences.
settings = sltest.testmanager.getpref('MATLABReleases')
ans = 1×2 struct array with fields: Name MATLABRoot IsDefault Selected
Get the Name
value.
settings.Name
ans = '14a' ans = 'R2017b'
Get Value of Show Logs at Command Prompt
Show the current setting of ShowSimulationLogs
IncludeOnCommandPrompt
. The value 0
indicates that
displaying logs is turned off, and the value 1
indicates it is turned
on.
settings = sltest.testmanager.getpref... ('ShowSimulationLogs','IncludeOnCommandPrompt')
ans = logical 1
Input Arguments
group
— Preference group
'TestFileDisplay'
| 'TestSuiteDisplay'
| 'TestCaseDisplay'
| 'MATLABReleases'
| 'ShowSimulationLogs'
| 'ResultSetProperty'
Preference group name, specified as one of these values:
'TestFileDisplay'
— File preferences and their display status'TestSuiteDisplay'
— Test suite preferences and their display status'TestCaseDisplay'
— Test case preferences and their display status'MATLABReleases'
— Releases available for testing'ShowSimulationLogs'
— Whether to show simulation logs at the command prompt'ResultSetProperty'
— Name to use for the result set
preferences
— Preference name
character vector | cell array of character vectors
Preference name, specified as a character vector or a cell array of character
vectors. Use settings = sltest.testmanager.getpref(group)
to get
valid preferences for each group
.
Example: ('TestSuiteDisplay','Description')
Example: ('ResultSetProperty','ResultSetName')
Output Arguments
settings
— Test Manager preferences
structure
Preference settings, returned as a struct.
Version History
Introduced in R2017a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)