I am trying to write a script to convert a test case from baseline to Real- Time using test manager. However I am unable to do it programmatically. Is there any way to do it ?

조회 수: 6 (최근 30일)
I am trying to write a script to run a series of test cases and would like to open Test Manager as little as possible. I have found that you can programmatically create a test case and specify the type as either 'baseline','equivalence', or 'simulation'. However, I have not been able to find a type to create a test case for real-time simulation without having to open Test Manager.

채택된 답변

Guilherme Costa Nascimento
Guilherme Costa Nascimento 2024년 10월 2일
There's no way to programmatically convert an existing test case into a Real-Time test case, but when first creating a test programmatically with the createTestCase function, you can set the 'runOnTarget' option to true and that will create a Real-Time test.
The syntax is tc = createTestCase(ts, type, name, runOnTarget)
  댓글 수: 3
Guilherme Costa Nascimento
Guilherme Costa Nascimento 2024년 10월 3일
The 'runOnTarget' property is generally private but can be set with createTestCase. The syntax for your first image should be tc = createTestCase(testSuite, 'Simulation', 'new_tc', true)
If that still doesn't work, can you let me know which release you are using?
sushyam
sushyam 2024년 10월 7일
Hello Guilherme,
Thankyou for your quick reply to the said query.
The command is working perfectly for me to create a test case of type "Real-Time".
The release I am currently using is MATLAB R2023b.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Outputs에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by