You can export the results of a code review to a data file
in XML or CSV format. The export process converts the information
in the analysis history into a formatted data file that can be used
by other programs, inside or outside Eclipse.
About this task
The actions of exporting data and of generating reports
are similar:
- They both create formatted output from a result history.
- They both write the formatted output to a file.
The difference is the type of output produced:
- Exporting data generates result information in text files that
can be used as input to other programs.
- Generating reports creates text or graphical output in HTML or
PDF format. For more information about generating reports, see Generating and saving reports.
Procedure
- In the Software Analyzer Results view,
right-click an analysis history.
- Click Export.
- In the Software Analysis Data Export window,
choose an export format from the list.
- XML Analysis Results
- Converts the entire results to an XML document. To
see the XML schema for this format, see the link at the end of the
topic.
- CSV Analysis Results
- Converts the entire results to a CSV document. To
see the CSV fields for this format, see the link at the end of the
topic.
- JUnit Analysis Results
- Converts the entire results to a JUnit XML document.
JUnit XML is a standard format from which you can generate reports
with existing tools such as the JUnitReport task in Apache Ant. To
view the exported file in the workbench's JUnit view,
copy the file to a workbench folder and open it with the JUnit view.
To see the mapping to this format, see the link at the end of the
topic.
- Analysis Summary
- Generates an XML document that contains a high-level summary of
the code review processing.
- Executed Rules
- Generates an XML document that contains a list of the rules that
were applied and their severities.
- Scanned Resources
- Generates an XML document that contains a list of the source code
files that were processed.
- In the Output File field, specify
an output file.
- Click OK. The selected
type of data is generated and written to the output file.