JavaStar from the Command Line: Filtering the Acceptance Test Log


If you're going to run tests automatically, it makes sense to generate reports automatically, too. Of course, JavaStar already does this by creating a log file, but this file contains all the information JavaStar records about the test--probably more information than you want. Using the log control options at the command line, you can manipulate this file during the test run or afterwards.

For this example, you'll filter the log for the test you just ran in the previous exercise.

  1. Filter the log to show only summary and time information.
    At the command line, type:
    The S option of -logfilter specifies summary information, while the T option includes time stamps.

  2. Compare the sizes of the two log files.
    The filtered log is only a fraction of the size of accept.log.

  3. Compare the contents of the logs in a text editor.
    The original accept.log contains a lot of information--details of the test environments, each event executed, test arguments, and so on--that you might not need for an initial report. The filtered log contains only the summary for each test and the time it executed.



Send feedback to JavaStar-feedback@suntest.com
Copyright © 1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303. All rights reserved.