Viewing and Analyzing Results: Viewing Comparison Failures and Updating Gold Files
Within the Results Viewer, you can view gold file comparison failures. You can examine the results to see if a failure is appropriate or if the new gold file should replace the comparison file. This procedure takes you though the process of locating a failure, viewing it, and updating the gold file with the new information.
- Within the Results Viewer, load the log file that contains the failure.
As an example, Figure 11-2 shows a portion of the Results Viewer for a simple test containing a failure. Note the Fail:1
remark below the node name, and the failure information in the log file view.
- Select the node containing the failure or failures.
- In the Detail panel, click the Next Failure button to jump to the first failure.
JavaStar scrolls to the failure and displays the text in red. If shortened lines is turned on, you can expand the failure for more detail by clicking on the line.

Results Viewer showing a tests that contains a failure
- Click View Failure to bring up the Gold File Manager.
The Gold File Manager window opens, along with a window showing the gold file (labeled Gold) and one showing the actual test results (labeled New).

Gold File Manager with Gold and New windows
The Gold File Manager gives you three options:
Options for the Gold File Manager
Option
|
Description
|
Update Gold
|
Replaces the gold file with the new attributes. This assumes that the new result is the correct one.
|
Delete New
|
Deletes the new results. Once you've noted the failure and reported on the failure, you probably don't need to keep it.
|
Rename New
|
Renames the new attribute file (as you specify) and stores the file in the gold directory for this script.
|
Note - Including a purpose in verification and synchronization checks makes it easier to evaluate failures when you later examine the log file.
- Compare the gold file to the new file to determine how to handle the failure.
Select the option that makes the most sense. For example, if the gold file is out of date and the new file contains the correct information, click Update Gold to replace the gold file.
- Click Done to close the Gold File Manager.
Send feedback to
JavaStar-feedback@suntest.com
Copyright © 1998
Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303.
All rights reserved.