How to add Test Assessment block programatically ?

4 views (last 30 days)
Hi, I'm trying to add a seperate Test Assessment block along with Test sequence block.
I'm getting only Test Sequence block by using following command:
sltest.harness.create(modelName,'Name','Harness','Source','Test Sequence'):
I have found for Serate Assessment block object but I failed how to use the below info:
{ Option to add a separate Test Assessment block to the test harness, specified as a comma-separated pair consisting of 'SeparateAssessment' and false or true.
Example: 'SeparateAssessment',true
Data Types: logical}

Accepted Answer

Nikhil Boddula
Nikhil Boddula on 4 Apr 2021
We can use as follows:
sltest.harness.create(modelName,'Name','Harness','Source','Test Sequence','SeparateAssessment',true)
:)

More Answers (0)

Community Treasure Hunt

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

Start Hunting!