You can use the Report browser or a web browser to display JavaTest harness reports.
If you choose to only generate a text report in an existing directory
containing HTML reports, you must use an external text editor or web
browser to view the summary.txt
file. To use the Report Browser
when viewing text reports, generate the text only report either in a new
report directory or in an existing report directory that only contains
plain text reports.
To display reports in the report browser, choose Report -> Open Report
from the menu bar. The JavaTest harness opens a file chooser dialog box for you
to specify a report directory. When you specify a report directory, the JavaTest
harness opens the Report Browser and displays the report.html
file in that directory.
If the report directory only contains the text version of the report, the browser
will display the contents of the summary.txt
file.
If you choose to display the summary.txt
file the browser displays a hyperlink to the summary page. The summary page provides a text list of tests that were run and their test result status.
If you choose to display the HTML reports, a more sophisticated browser and set of reports are provided.
The following table describes the contents of the Report Browser.
Component | Description |
---|---|
Menu bar |
The menu bar contains a File and a Help menu.
|
toolbar |
The toolbar contains a File field and three navigation buttons.
The File field displays the name of the current report and provides a drop-down list of reports previously opened in the browser. As reports are opened, the JavaTest harness adds their names to the drop-down list enabling you to navigate to any previously displayed report.
|
Contents area | The Report Browser displays the report file contents in the area below the toolbar. The Report Browser displays text files as well as HTML files. For HTML files, you can use hyperlinks in the report to display additional related reports. |
See Keyboard Access for a description of how the keyboard can be used to navigate the Report Browser.
If you choose to display the reports offline, use a web browser to open the report.html
file located in the appropriate report directory.
The report.html
file is the root file and links to all of the other
HTML reports. The following table describes the HTML files.
Report Files | Description |
---|---|
config.html |
Contains the configuration interview questions and your answers used for the test run. |
env.html |
Contains the name-value pairs derived from the configuration file that were used for the test run. |
error.html |
Contains a list of the tests that had errors and could not be run. |
excluded.html |
Contains a list of the tests that were excluded from the test run. |
failed.html |
Contains a list of the tests that were executed during the test run but failed. |
notRun.html |
Contains a list of all tests that were not excluded from the test run but were not run. |
passed.html |
Contains a list of the tests that were executed during the test run and passed. |
report.html |
Contains links to all of the HTML files and additional information. |
The JavaTest harness also generates a summary.txt
report that contains a list of all tests that were run, their test results, and their status messages. You can open the summary.txt
file in any text editor.