How do I rename a test case in Test Manger in a command line?
조회 수: 6 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2019년 12월 10일
편집: MathWorks Support Team
2019년 12월 10일
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.
채택된 답변
MathWorks Support Team
2019년 12월 10일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Inputs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!