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 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
sushyam
el 1 de Oct. de 2024
Comentada: sushyam
el 7 de Oct. de 2024
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.
0 comentarios
Respuesta aceptada
Guilherme Costa Nascimento
el 2 de Oct. de 2024
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 comentarios
Guilherme Costa Nascimento
el 3 de Oct. de 2024
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?
Más respuestas (0)
Ver también
Categorías
Más información sobre Outputs en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!