Using Command Line Options: Running Tests
To run a test from the command line, you must, at minimum, provide the test name and any arguments required by the test. Beyond that, you can specify any of the options available in the Run Test dialog. Table 13-1 shows the correspondence between the GUI and the command line flags.
The order for command line options is only loosely defined. For example, Java arguments must immediately follow the javastar
call, and the -testargs
flag must always fall at the end, but the other options can be defined in any order.
Corresponding Run Test fields to command line flags
Run Test option
|
Corresponding Command Line Flag
|
Test name
|
-jst JstName
-script classname
|
Test arguments
|
-testargs (args)*
This must be the last flag in your command line string.
|
Java arguments
|
-J arguments
Preface each argument with -J . Do not include a space between -J and the argument. For example:
-J-prof
-J-mx64m
|
Log filename
|
-log filename
|
Work directory
|
-workdir dir
|
Results directory
|
-resdir dir
|
Jst path
|
-jstpath searchpath
|
Show Application and playback window
|
-gui
(preface with -play )
|
Don't show playback window
|
This is the default setting, if -gui or -invisible are not specified.
|
Don't show Application and playback window
|
-invisible
(preface with -play )
|
(none)
|
-1proc
Run with with just one process. You can only use this option on tests that do not contain restart nodes or crash recovery nodes. You also need to include the correct library in the CLASSPATH --for example, if you are using JDK 1.1.4, be sure to add javastar/lib/114.zip to the CLASSPATH .
|
Send feedback to
JavaStar-feedback@suntest.com
Copyright © 1998
Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303.
All rights reserved.