You can use Edit JTI
to change the HTTP port and either overwrite original configuration file or create a new configuration file. Examples of both are provided below.
To run the following examples you must use a .jti
file that exists on your system and include httpPort
in your current interview path. If your current interview path does not include httpPort
you can not change its value from the command line. To view the current interview path, open your .jti
file in the Configuration Editor. See Obtaining the Question tag-name for detailed information about the tag-name for the question.
The following example changes the HTTP port used when running tests and overwrites
original configuration file (myoriginal.jti
in this example).
java -cp lib/javatest.jar com.sun.javatest.EditJTI httpPort=8081
myoriginal.jti
The following example changes the HTTP port used when running tests and writes
the changed configuration to a new configuration file (myoutput.jti
in this example). The original configuration file (myoriginal.jti
in this example) remains unchanged.
java -cp lib/javatest.jar com.sun.javatest.EditJTI -o
myoutput.jti httpPort=8081
myoriginal.jti