Start the JavaTest harness from a writable directory where you intend to create files and store test results. You can use either the JavaTest graphical user interface (JavaTest GUI) or the JavaTest command-line user interface (Command-Line Interface) to run tests, write reports, and audit tests.
You must include the path of the directory where the javatest.jar
file is installed (represented as [jt_dir/]
in the following examples). The javatest.jar
file is usually installed in the TCK lib directory when the JavaTest harness bundled with a TCK.
To start the JavaTest GUI, you can use any of the following:
Start by: | Description |
---|---|
Running a Startup Script | Use a startup script if your test suite includes one. Refer to your test suite documentation for details about using a startup script. |
Executing the JAR File |
If you have access to a command line you can directly execute the .jar file from the directory where you intend to create files and store test results by making it your current directory and then, at the command prompt, typing:
|
Double-Clicking the Icon |
If you are using a GUI, your system may support double clicking the javatest.jar file icon to launch the harness.
|
Invoking the Class Directly |
If you have access to a command line and the jar file is on the class path, you can directly invoke the class from the directory where you intend to create files and store test results by making it the current directory and then, at the command prompt, typing:
|
Unless you are starting the harness for the first time or use a command line option, the JavaTest harness restores your previous desktop when it starts the GUI. See Specify Additional Options for information about the optional arguments that can be included in the command string when starting the JavaTest harness.
If the JavaTest harness cannot restore an existing desktop, it displays a Welcome dialog box that guides you through the startup. See Welcome Dialog Boxes for a detailed description of using the Welcome dialog box to start the JavaTest harness.
If you choose to run tests, write reports, or audit tests from the command line refer to Use the Command-Line Interface.
See Examples of Batch Commands for command lines examples that can be used to perform different batch mode tasks.