| Simulink® Design Verifier™ | ![]() |
Merge test cases and initializations into one model
status = sldvharnessmerge(name, models, initialization_commands)
status = sldvharnessmerge(name, models, initialization_commands) collects the test data and initialization commands from each test harness model listed in models and saves them in name. This function assumes that you have created each test harness model with the Simulink® Design Verifier™ software, either with the sldvrun function or the Design Verifier > Generate Tests menu item.
If name does not exist, this function creates it as a copy of the first model in models. This function then copies the data from the other models into this model. If name was created from a previous sldvharnessmerge run, subsequent runs of this function for name will maintain the correct structure and initialization from that earlier run. If name matches an existing Simulink® model, this function merges the test data from models into name.
models can be a cell array of model names or an array of model handles.
initialization_commands must be a cell array of strings the same length as models. initialization_commands define parameter settings for the test cases of each test harness model. Each time a model test case executes, the associated initialization command is evaluated in the base workspace.
Consider using sldvharnessmerge with sldvgencov to combine test cases that use different sets of parameter values.
![]() | sldvgencov | sldvoptions | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |