How to achieve test automation using a test harness in Simulink Test?
2 次查看(过去 30 天)
显示 更早的评论
I am a novice in Simulink, and I am trying to test a subsystem of a Simulink model using a test harness. I have created a test harness in which I manipulate manually the inputs of the component under test, then I observe and record manually the outputs in an Excel spreadsheet. The inputs are basically constant blocks, while the outputs are display blocks. Given some inputs, if the outputs are those expected, then the test has passed.
My question is how can I automate this manual testing?
I gather from the Simulink Test documentation that the Test Manager allows test automation. I see that a baseline/simulation test allows parameter overrides, which can be used in iterations. However, I wasn't able to figure out how to automate the use my of test harness.
0 个评论
回答(1 个)
Jon Lobo
2016-12-6
In the test manager, you will create a test case. Generally speaking, a test case is created to test a specific functionality. The simulink model may have several desired functionalities / requirements, and therefore you may have several test cases eventually.
To do automated testing of parameter sweeps or maybe run through a set of pre-defined parameters, you can use the iterations approach (scripted or manual). This you would set up in the test manager. From the test manager you can click run all to run all iterations of the test, which will pass/fail the different iterations based on the criteria you provided.
1 个评论
Purusottam bhatia
2020-9-13
Follow this link to know more about Automation testing ...
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Test Execution 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!