Class: sltest.testmanager.TestIteration
Package: sltest.testmanager
Set test case parameter
setTestParam(obj,Name,Value)
setTestParam(
sets
the test iteration parameter with additional options specified by
one or more obj
,Name,Value
)Name,Value
pair arguments.
obj
— Test iteration objectTest iteration object that you want to apply the test parameter
to, specified as a sltest.testmanager.TestIteration
object.
Specify optional
comma-separated pairs of Name,Value
arguments. Name
is
the argument name and Value
is the corresponding value.
Name
must appear inside quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN
.
'ParameterSet'
— Parameter setParameter set name, specified as the comma-separated pair consisting
of 'ParameterSet'
and a character vector. Parameter
set overrides are setup in the Parameter Overrides section
of the test case.
Example: 'ParameterSet','Param Set 1'
'Baseline'
— Baseline criteria datasetBaseline criteria dataset name, specified as the comma-separated
pair consisting of 'Baseline'
and a character vector.
Baseline criteria datasets are setup in the Baseline Criteria section
of the test case. It is available only for baseline test cases.
Example: 'Baseline','BaselineSet_High'
'ExternalInput'
— External inputExternal input name, specified as the comma-separated pair consisting of
'ExternalInput'
and a character vector. External
input overrides are setup in the Inputs section of
the test case. You can specify a simulation index as the
ExternalInput
, for example,
ti.setTestParam('ExternalInput','input','SimulationIndex',2)
.
Example: 'ExternalInput','Run1'
'ConfigSet'
— Configuration settingConfiguration setting name, specified as the comma-separated
pair consisting of 'ConfigSet'
and a character
vector. Configuration setting overrides are setup in the Configuration
Settings Overrides section of the test case.
Example: 'ConfigSet','Solver 3'
'SimulationIndex'
— Equivalence test simulation indexSimulation index of an equivalence test case, specified as an integer.
Example: 'SimulationIndex',2
'SignalEditorScenario'
— Signal Editor scenarioSignal Editor scenario input name, specified as the comma-separated
pair consisting of 'SignalEditorScenario'
and a
character vector. Signal Editor scenario overrides are set up in the
test case Inputs section.
Example: 'SignalEditorScenario','Acceleration'
'SignalBuilderGroup'
— Signal Builder groupSignal Builder group input name, specified as the comma-separated pair consisting of
'SignalBuilderGroup'
and a character vector.
Signal Builder group overrides are set up in the test case
Inputs section.
Example: 'SignalBuilderGroup','Acceleration'
'PreLoadFcn'
— Pre-load callback scriptPre-load callback script, specified as the comma-separated pair
consisting of 'PreLoadFcn'
and a character vector.
The pre-load callback script is setup in the Callbacks section
of the test case.
'PostLoadFcn'
— Post-load callback scriptPost-load callback script, specified as the comma-separated
pair consisting of 'PostLoadFcn'
and a character
vector. The post-load callback script is setup in the Callbacks section
of the test case.
'PreStartRealTimeApplicationFcn'
— Pre-start real-time application callback scriptPre-start real-time application callback script, specified as
the comma-separated pair consisting of 'PreStartRealTimeApplicationFcn'
and
a character vector. The pre-start real-time application callback script
is setup in the Callbacks section of the test
case.
'CleanupFcn'
— Cleanup callback scriptCleanup callback script, specified as the comma-separated pair
consisting of 'CleanupFcn'
and a character vector.
The cleanup callback script is setup in the Callbacks section
of the test case.
'Description'
— DescriptionTest description text, specified as the comma-separated pair
consisting of 'Description'
and a character vector.
The Description is setup in the Description section
of the test case.
Example: 'Description','Test the autopilot controller
for wind gusts'
setTestParam(obj,'Description',... 'Test the autopilot controller for wind gusts');