我使用 HP Fortify SCA 4.10 进行扫描。现在我想将原始结果导出为 Excel 格式以进行数据处理以生成数据透视表。任何人都可以建议一个简单或困难的方法来做到这一点。
引用此 url 获取 DB 脚本以获取 EXCEL 格式(将 DB 输出导出到 Excel):如何区分 Fortify SCA 扫描 https://stackoverflow.com/questions/27844593/how-to-diff-fortify-sca-scans/28128390#28128390
从现有 FPR 生成 pdf/rtf/xml 报告
- ~AWB_Installation_Dir/bin/ReportGenerator -format pdf -f outputFile.pdf -source Existing.fpr
(将pdf替换为你的目标格式,不包括excel格式)
在 AWB 中生成 XML 报告
- 打开 Audit Workbench 并加载您的 FPR 文件。
-
生成报告(点击“报告”按钮,弹出“生成报告”窗口)。
A。选择报告=“Fortify Developer Workbook”(下拉菜单)
b.在“Refine Issues in Subsection”字段中,粘贴类别:!”(或单击“高级..”,然后选择类别,不是,)
C。点击“保存报告”
d.将格式设置为“XML 报告”并设置目标位置。
e.单击“保存”以生成报告。
配置 Excel 2013
首先,您需要确保开发人员选项卡已启用。
A。在 Excel 中,单击“文件”->“选项”->“自定义功能区”
b.确保在“自定义功能区:主选项卡”下的右侧选中“开发人员”
C。单击“确定”。
导入 XML 架构
现在单击“开发人员”选项卡。
a. In the XML section, click on the Source button. An "XML Source" panel will appear on the right side.
b. Click on the "XML Maps" button.
c. Click on the Add button.
d. Navigate to "<HP Fortify SCA install dir>\Core\config\schemas" and select "ReportDefinition.xsd".
e. In the list that appears, select "ReportDefinition", then click OK.
f. Click OK.
配置工作表列
在“XML Source”面板中,选择您想要在表中显示的列。
例如:
a) under Issue, select Category and drag-n-drop it to cell A1.
b) select Friority and drag-n-drop it to B1
c) select FileName under Source and drag-n-drop it to C1
d) under Tag, select Name and drag-n-drop it to D1
e) select Value and drag it to E1
您可以选择您喜欢的任何列。
选择数据源并生成表数据
右键单击突出显示的区域(单元格 A1 --> E2)并选择 XML --> 导入。
找到您在 Audit Workbench 中生成的 XML 报告。
现在您已经拥有了 FPR 结果的 Excel 工作表。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)