java -classpath javatest.jar com.sun.javatest.EditJTI
options edit-cmds file
.jti
) without starting the JavaTest harness.
EditJTI loads a configuration (.jti) file, and applies a
series of specified edits. The file can be saved back to the original
file, or to another file. An HTML log of the questions and responses
can be generated. A quick summary of the questions and responses can
also be written to the console. A preview mode is available;
in addition, configuration files are normally backed up before being
overwritten.
The configuration interview is a sequence of questions that builds a path, depending on your test sub-interview, in the configuration file. When you change change an entry, the subsequent questions in your interview path may change. If the change in your interview path does not work as expected, you can use the -path
option described below to view the new sequence of questions.
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.
To change a value in the configuration file, you must know the tag-name for the question that sets the value. There are two ways to obtain the question tag-name:
-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.
/
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
original.jti
in this example).
java -cp javatest.jar com.sun.javatest.EditJTI httpPort=8081 original.jti
output.jti
in this example). The original configuration file (original.jti
in this example) remains unchanged.
java -cp javatest.jar com.sun.javatest.EditJTI -o output.jti httpPort=8081 original.jti
midp.jti
in this example) are written to a new configuration file (midp-assemblage.jti
in this example).
java -cp javatest.jar com.sun.javatest.EditJTI -o midp-assemblage.jti
midptck.serialport.midPort=/dev/term/a
midptck.connection.httpsCert="\"CN=Brian K, OU=JSW, O=Sun, L=SCA22, ST=CA,
C=US\"" midp.jti