Using Command Line Options: Environment and Playback Controls


In addition to these flags, JavaStar provides controls that correspond to the Playback Options and Environment Options available in the GUI (under Set Options), as well as some additional controls. You can use these to further define your test environment. For example, if you're running a test on a slow system, you might need to scale delays so that the test doesn't run too fast for the architecture to keep up.

Command line flags that correspond to environment options

Option Setting Corresponding Command Line Flag
Work directory -workdir dir
Results directory -resdir dir
Jst path -jstpath searchpath
Additional Classpath -jcpf flag Flag to use for the JVM in place of '-classpath' -kcpf flag Flag to use for the compiler in place of
'-classpath'
Java virtual machine -jvm filepath Specifies the Java Virtual Machine to use for subprocesses.
Java compiler -jc filepath Specifies the Java compiler to use when compiling.
Properties file -props propertyfile Loads user test properties from file for the playing test.

Command line flags that correspond to playback options

Option Setting Corresponding Command Line Flag
Delay factor -scale n Scales the delay by a factor of n.
Time out -timeout n Sets compares to timeout after n seconds.
Log limit count (bytes) -llcount size Limits log count--provide size in characters.
Log limit filters (exclude these) -llfilter flags Suppresses the log file content represented by the flags. See Table 13-8 for a list of log filtering flags.
Time out for hang detection -hangtime n Sets the interval of time (in seconds) a playback script can continue without receiving a response from the application under test. When a script reaches hangtime, it terminates in an AsynchTimeoutError.

Additional controls

Option Setting Corresponding Command Line Flag
-J<flag> Flag or argument to pass to JVM subprocess (e.g.
-J-mx64m )
-K<flag> Flag or argument to pass to compiler subprocess (e.g. -K-g )
-jdk version Tell JavaStar which JDK your JVM is equivalent to. Must be one of 1.1.1, 1.1.2, 1.1.3, or 1.1.4.




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