...
You can also create a custom .properties file and pass it to the jtestcli
with the -settings
switch. Use absolute paths to specify the custom .properties file. You can use the -settings
switch multiple times to specify several .properties files. Entries with the same key will be overwritten.
Code Block |
---|
jtestcli -settings path/to/settings.properties -settings path/to/another/settings.properties |
Info | ||
---|---|---|
| ||
Use double backslashes to specify file paths in the .properties file on Windows. For example:
|
...
[INSTALL_DIR]/etc/jtestcli.properties
: the base configuration file that should not be modified.[INSTALL_DIR]/jtestcli.properties
: the main configuration file you can use to specify your settings; it contains a list of basic configuration settings (license, reporting, etc.) you need to uncomment before configuring the setting's value.[USER_HOME_DIR]/jtestcli.properties
: for your convenience, you can store the configuration file in your home directory to overwrite settings from the [INSTALL_DIR] (for example, to ensure your settings are not affected by re installations or updates).[WORKING_DIR]/jtestcli.properties
: for your convenience, you can store the configuration file in your working directory.- Custom settings passed with the command line switch
-settings path/to/settings.properties
(e.g.,-settings ../settings.properties
). - Custom settings passed with the command line switch
-property [key=value]
(e.g.-property "report.mail.enabled=true"
).
...
Ant and Maven Pattern
You can provide the path to the settings file with Ant or Maven using the following pattern:
...
-Djtest.[Maven property name]
(e.g.,-Djtest.settings="my.general.properties"
).- the
pom.xml
file -Dproperty.jtest.[property name]
(e.g.,-Dproperty.jtest.license.use_network=true
dtp.server=server1.mycompany.com
)
Both -Djtest
and pom.xml
override settings that are passed with -Dproperty.jtest.
...