Specifying Status Colors

The harness enables you to specify the status colors used in the GUI. This property is set on the command line as a system property when starting the harness GUI. Status colors set this way are added to the user preferences and restored in subsequent sessions.

The user can specify each status color by declaring system properties in the following format:

-Djavatest.color.passed=color-value ...

-Djavatest.color.failed=color-value ...

-Djavatest.color.error=color-value ...

-Djavatest.color.notrun=color-value ...

-Djavatest.color.filter=color-value ...

The color-value used must be an RGB value parsable by the java.awt.Color class (octal, decimal, or hex).

The value portion of the color property must be explicitly defined. The value portion of the property accepts hex values, prefixed by either a pound character (#) or a zero-x (0x).

Values can also be specified in octal, in which case the value begins with a leading zero and must be two or more digits.

The following are possible formats for setting color integers:
#ffaa66 (hex)
0xffaa66 (hex)
0111177 (octal)

Detailed Example of Specifying a Status Color

You might have to escape the pound character in the following example for the command to work on your platform.

java -Djavatest.color.passed=“#00FF00” -jar [jt_dir/lib/]javatest.jar

Copyright © 2003, 2009, Oracle and/or its affiliates. All rights reserved.