Mercury Test Results Help > Analyzing Test Results in the Unified Report View > Viewing the Results of a File Comparison PreviousNext

Viewing the Results of a File Comparison

If you used a file_compare statement in a test script to compare the contents of two files, you can view the results using the WDiff utility. This utility is accessed from the Test Results window.

To view the results of a file comparison:

  • Open the Test Results window and display the test for which you want to view the file comparison results. For more information, see Viewing Checkpoint Results.
  • Click the results tree node for the file_compare event you want to analyze. Basic details about the checkpoint are displayed in the Event Summary pane. In the Event Summary pane, click the Show Event Details link.

The WDiff utility window opens.



The WDiff utility displays both files. Lines in the file that contain a mismatch are highlighted. The file defined in the first parameter of the file_compare statement is on the left side of the window.

  • To see the next mismatch in a file, choose View > Next Diff or press the Tab key. The window scrolls to the next highlighted line. To see the previous difference, choose View > Prev Diff or press the Backspace key.
  • You can choose to view only the lines in the files that contain a mismatch. To filter file comparison results, choose Options > View > Hide Matching Areas. The window shows only the highlighted parts of both files.
  • To modify the way the actual and expected results are compared, choose Options > File Comparison. The File Comparison dialog box opens.



Note that when you modify any of the options, the two files are read and compared again.

  • Ignore spaces on comparison. Tab characters and spaces are ignored on comparison.
  • Ignore trailing blanks (default). One or more blanks at the end of a line are ignored during the comparison.
  • Expand tabs before comparison (default). Tab characters (hex 09) in the text are expanded to the number of spaces which are necessary to reach the next tab stop. The number of spaces between tab stops is specified in the Tabsize parameter. This expand tabs before comparison option will be ignored if the Ignore spaces on comparison option is selected at the same time.
  • Case insensitive compare. Uppercase and lowercase is ignored during comparison of the files.
  • Tabsize. The tabsize (number of spaces between tab stops) is selected between 1 and 19 spaces. The default size is 8 spaces. The option influences the file comparison if the expand tabs before comparison option is also set. Tabs are always expanded to the given number of spaces.
  • Choose File > Exit to close the WDiff Utility.

PreviousNext



Copyright 2007 Mercury Interactive Corporation
500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.