You can generate HTML, PDF, or custom XSL reports. In this section:
After the test has completed, click the Generate Report button in the Test Progress panel’s toolbar.
Complete the Report & Publish dialog that opens. You can configure the following options:
Preferences: Opens the Reports preference page that allows you to configure report options; see Configuring Reporting Settings.
Option file: Specifies the path to a .properties file that contains your custom report settings; see Configuring Localsettings. Settings configured in the .properties file override the options specified in the GUI.
Report location: Specifies the path to the folder where you want save the report file. By default, reports are created in the <USER_HOME_DIR>\Local Settings\Temp\parasoft\xtest
directory.
Open in browser: If enabled, the report will automatically open in the browser .
Delete on exit: If enabled, the report will be deleted when you exit C/C++test.
Generate reports: Enables or disables generating a report. This option must be enable to proceed.
Publish reports to Team Server: Enables or disables publishing the report to Team Server. This option is only available when you are using Team Server.
Note: We recommend publishing reports to DTP rather than Team Server. See Uploading Reports to DTP.
Click OK. The report will then open. For details on the format and contents, see Understanding Reports.
Alternatively, you can generate the report using the options at the bottom of the Report & Publish section of the Test Progress view:
You can generate an additional Test Execution Details report linked to your regular report (see Understanding Reports for details). To generate this report, configure the following settings in the test configuration before executing it:
Click Generate Report after the test completes (see Generating the Report). The link to the Test Execution Details report will be available in the Test Execution Details column included in the Additional Reports section at the bottom of main report (see Understanding Reports).
You can also generate the Test Execution Details report in XML format. This enables you to apply additional post-processing workflows to the test execution results. The XML file is available in the same location as the original Test Execution Details HTML file, for example:
<REPORT_DIR>/<EXECUTION_DIR>/report_TestSuiteFoo_cpp.xml
<REPORT_DIR>/<EXECUTION_DIR>/report_TestSuiteFoo_cpp.html
In addition, XML Schema for Test Execution Details XML file is available:
<CPPTEST_INSTALL_DIR>/manuals/examples/ut_details_report_schema.xsd
Uploading reports to DTP allows you to review results on DTP, where they are aggregated, analyzed, and prioritized to help you optimize your testing efforts. See the DTP User Guide for details.
To upload the report to DTP:
Ensure that C/C++test is connected to a DTP server (See Connecting to DTP).
Go to Parasoft> Preferences... > DTP and enable the Enable reporting results to DTP option.
The results will be automatically uploaded to DTP when you perform testing in the GUI.
Publishing reports to DTP requires the "DTP Publish" or "Automaton" license feature to be enabled.
-report %REPORT_FILE%
command line option to generate a report for command line execution.-publish
option to upload the report to DTP (or the -publishteamserver
option if you use Team Server to manage reports).See Testing from the Command Line Interface for details about executing tests from the command line interface and configuring email notifications.
If you report results to Team Server, the following criteria are used to identify unique reports:
If your team daily performs multiple C/C++test runs in the command line—and you want all reports to be uploaded to Team Server—you need to use a different session tag for each run:
|