The JavaTest harness provides an EditJTI utility that you can use from the command line to edit the values entered in a configuration file without opening the JavaTest GUI. The EditJTI utility is the batch command equivalent of the JavaTest Configuration Editor.
The EditJTI utility loads a configuration (.jti) file, and applies a series of specified edits. You can save the file back to the original file, or to another file. You can use the EditJTI utility to generate an HTML log of the questions and responses as well as write a quick summary of the questions and responses to the console. The EditJTI utility provides a preview mode. In addition, configuration files are normally backed up before being overwritten.
Example:
java -cp lib/javatest.jar com.sun.javatest.EditJTI [OPTIONS] [EDIT COMMANDS] original configuration file
While it is possible to use EditJTI to change the order of commands in a configuration file, because of the dependencies between values, it is recommended that major changes in the .jti file be accomplished by using the Configuration Editor.
-help-usage/?
-classpath classpath-cp classpath
-log log-file-l log-file
-out out-file-o out-file
-path-p
-preview-n
-testsuite test-suite-ts test-suite
-verbose-v
=value
-path option. See Obtaining the Question tag-name.
/search-string/replace-string/
If you wish to use / in the search string, you
may use some other punctuation character as a delimiter, instead
of /. For example,
|search-string|replace-string|
Note: regular expressions are not currently supported in search-string, but may be supported in a future release.
Depending on the shell you are using, you may need to quote your edit commands, to protect any characters in them against interpretation by the shell.
| 0 | the operations were successful; the configuration file is complete and ready to use. |
| 1 | the operations were successful, but the configuration file is incomplete and is not yet ready to use for a test run. |
| 2 | there was a problem with the command line arguments |
| 3 | an error occurred while trying to perform the copy |
EditJTI.maxIndent
-path
option, this property specifies the maximum length of tag name
after which the output will be line-wrapped before writing the
corresponding value. The default value is 32.
EditJTI.numBackups
The following sections provide examples of using EditJTI:
Change Test Suites or Create a New Interview