 | How to export and compare reports
Export performance test run
statistics
All performance-related reports can be viewed online, but there is also an option for you
to export performance test run statistics to a file. Individual performance reports can be
exported to CSV, HTML, and XML formats. The following steps show you how to export
performance test run statistics to an HTML file.
- Right click in the Test Navigator view and select Export, as shown in Figure
21. Alternatively, select File > Export from the menu.
Figure 21. Exporting Performance Test
Run Statistics: Step 1
- Note that the Export wizard is used for other purposes as well, in addition to
exporting performance related statistics for further analysis. For example, in the
absence of a source control system, you can export a performance test project from a
workspace to an archive file to be shared with others. In this scenario, you will
confine your export to performance related statistics after the test run, as shown in
Figure 22.
Figure 22. Exporting Performance Test
Run Statistics: Step 2
- Browse to the current project, and create a folder (for example, ExportedStats) and
name the new file
DTStats, as shown in Figure 23.
Figure 23. Exporting Performance Test
Run Statistics: Step 3
- Pick a test run to export, as shown in Figure 24. You can pick as many test runs to
export as you like, but in this case just pick one test run to export.
Figure 24. Exporting Performance Test
Run Statistics: Step 4
- Statistics that are available for export can be divided into three main categories,
as shown in Figure 25:
- Pages
- Page Elements
- Miscellaneous
You can choose to export overall results, and the time since the start of the run. Once
you click the Finish button, the reports will be generated in the directory that
you specified previously.
Figure 25. Exporting Performance Test Run
Statistics: Step 5
Export response time
breakdown statistics
Other than the usual performance statistics export, you can also quickly export response
time breakdown statistics for a test run.
- From the Page Performance tab of the Performance Report, navigate to the
response time breakdown, right-click and select Report.
- Choose the option (for example, Report in HTML format, as shown in Figure 26).
Figure 26. Response Time Breakdown
Statistics Export: Step 1
- Specify a directory and filename (for example, ExportedStats and
DTResponseTime, respectively). Once you click the Finish button, an HTML
file containing the response time breakdown will be generated, as shown in Figure 27.
You can generate the same statistics in CSV and XML format.
Compare reports
In order to compare the performance statistics side-by-side, the simplest way is to use
the CSV format for comparisons, because this allows results from many test runs to be
compared at one time.
The advantage of exporting statistics to XML format is that, by applying XSLT, you can
further customize reports for better graphical presentation. When you apply XSLT, you can
also store reports in non-editable format (such as PDF format).
Figure 27. Response Time Breakdown
Statistics Export: Step 2
Conclusion
This latest part of the series looked at various capabilities provided by IBM Rational
Performance Tester to generate default performance analysis reports. It also showed you
how you can customize the reports to suit your needs.
|  |