필터 지우기
필터 지우기

How to export all the Test sequences as excel or any other format from Simulink Test manager?

조회 수: 71 (최근 30일)
How to export all the Test sequences as excel or any other format from Simulink Test manager?

채택된 답변

atharva
atharva 2023년 11월 14일
Hey Divyabharathi,
I understand that you want to export the test sequences.
Currently there isn't an automated way to export the Test Sequence information to TXT/XML files.
As a workaround, you can use some of the Test Sequence APIs to get the step and transition information. Here are some resources you can utilize to accomplish this:
1. To get names/paths of all the steps in a Test Sequence block: sltest.testsequence.findStep(blockPath)
2. Then you can loop over all the step paths to read step information for each step.
3. To get the information for each step as a struct: sltest.testsequence.readStep(blockPath, stepPath)
(The number of transitions is in the return struct)
4. For Each step, you can loop over all the transitions to read transition information for each step.
5. To get the information for each transition as a struct: sltest.testsequence.readTransition(blockPath, stepPath, transitionIndex)
After getting all the information, the you can write them into TXT or XML files.
6. Please take a look at the example in the attachment. The script "programaticallySaveTestSequenceToXML.m" works to export test sequences as an "xml" file. This script is modified from the shipped example below.
- Programmatically Create a Test Sequence
I hope this helps!
  댓글 수: 2
Arkadi Bahnmann
Arkadi Bahnmann 2023년 11월 27일
Hello @atharva,
I am also interested in this topic.
Where can I find the file programaticallySaveTestSequenceToXML.m you mentioned?
Fernando Junior
Fernando Junior 2024년 3월 1일
Yes. I would like to know how to find this .m custom file that you generated. Is it in guthub?

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by