Generating a reportfile with my comments in commandline under Windows [ACCEPTED]

조회 수: 1 (최근 30일)
Jas Ala
Jas Ala 2015년 8월 13일
댓글: Image Analyst 2015년 8월 14일
Hello,
i am using PolySpace R2012a for codeanalysis. After i comment each gray, orange and red warnings, i am trying to create a reportfile with all warnings and my comments for each warnings. To do this, i am calling report-generator in commandline (under Windows7 - DOS) as shown in help pages:
report-generator.exe -template Developer.rpt -format HTML -results-dir D:\Temp\Module_1\Result_1 -output-name Test
The problem is that my comments will not be exported in reportfile, but only the warnings. In the reportfile a warning is empty :
I figured out, that if i export the views before calling report-generator in RTE_View.txt, then my comments will be exported too (Menu: Review->Export In Spreedshet Format... ). I have to do this in GUI, but i need to do this in commandline.
The warning after exporting the views has my comments:
  1. Must i export the views in order to create the reportfile with my comments in commandline or is there a way to export my comments with report-generator?
  2. If the views must be exported, how can i do this in commandline?
Sincerly Jas

답변 (1개)

Alexandre De Barros
Alexandre De Barros 2015년 8월 13일
Hello !
In R2012a, the report is generated from text files located in the Polyspace-Doc subfolder. The comments that you make are not saved into these text files, unless you export the review as you mention it in your question. So if you call the report generation manually, the comments will not be part of the report.
You can then use the manual export from the GUI or, if you prefer the command line, use the gen-excel-files command to recreate these text files that will then include the reviews.
The command is located here:
"...\PolyspaceForCandCPP_R2012a\Verifier\wbin\gen-excel-files.exe"
In your case, the command will be something like:
...\gen-excel-files.exe -results-dir D:\Temp\Module_1\Result_1\Polyspace-Doc -proj-file D:\Temp\Module_1\Result_1\<your_rte_file>.rte
Best regards,
Alexandre
  댓글 수: 2
Jas Ala
Jas Ala 2015년 8월 14일
Hello,
that solved my problem. Thank you very much.
Best regards
Jas
Image Analyst
Image Analyst 2015년 8월 14일
Click the green "Accept this answer" link rather than just adding "ACCEPTED" to the subject line so Alexandre will get credit for helping you.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by