You can use an existing configuration file and then specify values for running tests that override those in the configuration file. Any values that you specify in the command string override but do not change the values specified in the configuration file.
Before a value can be changed from the command line, it's tag-name must exist in the initialized configuration file. If the configuration does not include the tag-name (for example, jckdate.gmtOffset) you must use the Configuration Editor in the JavaTest GUI to add or replace it.
See Obtaining the Question tag-name for detailed information about the tag-name for the question.
When specifying configuration values for a test run, include the commands in the following sequence:
mytestsuite.ts)
myworkdir.wd)
myconfig.jti)
jckdate.gmtOffset=8)
runtests command.
To run the following examples you must replace mytestsuite.ts, myworkdir.wd, and myconfig.jti with test suite, work directory, and .jti names that exist on your system. Win32 users must also change "/" file separators to "\" to run these examples.
Command Options Example:
java -jar [jt_dir/lib/]javatest.jar -batch -testsuite mytestsuite.ts -workdir myworkdir.wd -open myconfig.jti -set jckdate.gmtOffset=8 -runtests
Single String Arguments Example:
java -jar [jt_dir/lib/]javatest.jar -batch "testsuite mytestsuite.ts; workdir myworkdir.wd; open myconfig.jti; set jckdate.gmtOffset=8; runtests"
There are two ways to obtain a configuration question tag-name: