The JavaTest harness provides the EditJTI
utility for you to use in changing the values in a configuration file from the command line. You can also make changes in a configuration by using the appropriate set command (see Command-Line Summary for detailed information).
While you can use EditJTI
to change the order of commands in a configuration file, the dependencies between questions can introduce errors into the the configuration. You should use the configuration editor window in the JavaTest harness GUI when making major changes in a configuration.
If your changes to a configuration introduce errors, you can use the JavaTest harness GUI configuration editor window to troubleshoot and repair the configuration.
The EditJTI
command loads a configuration (.jti
) file, and applies a series of changes specified on the command line. See Formating Configuration Values for editJTI or -set for detailed information about formatting the values.
You can save the changes in the original configuration file or save the changes in a new configuration file. You can also use EditJTI
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. 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
-help
, -usage
or /?
-classpath
classpath or -cp
classpath
-log
log-file or -l
log-file
-out
out-file or -o
out-file
-path
or -p
-preview
or -n
-testsuite
test-suite or -ts
test-suite
-verbose
or -v
=
value
-path
option. See Obtaining the Question tag-name.
/
search-string/
replace-string/
/
in the search string, you
use some other character (instead
of
/
) as a delimiter.|
search-string|
replace-string|
Depending on the shell in use, quote the commands to protect characters in them from interpretation by the shell.
Code | Description |
---|---|
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 topics provide detailed information about using EditJTI
to perform tasks:
Change Test Suites or Create a New Interview