How do I rename a test case in Test Manger in a command line?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 10 Dez. 2019
Bearbeitet: MathWorks Support Team
am 10 Dez. 2019
I would like to rename test case below in the Test Manager with scripts* *for testing automation. The test case is generated by Simulink Design Verifier(SLDV) after generating test cases.
I cannot change the name of the test case when it is being generated. After the test case is generated, the name should be changed in a command line.
Akzeptierte Antwort
MathWorks Support Team
am 10 Dez. 2019
Please find commands below.
tf = sltest.testmanager.TestFile('testFile.mldatx'); %Existing Test File
ts = getTestSuites(tf);
tc = getTestCases(ts)
tc(1).Name = 'ChanagedName'; % Assuming there is only 1 test case in the file, change it accordingly.
saveToFile(tf)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Inputs finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!