Most configuration settings for the server are specified in the config.properties file in the <SOAVIRT_HOME>/WEB-INF
directory. The settings in this chapter are the most commonly specified options, but you can specify more advanced settings, as well as test configuration settings. See the following sections:
When editing Windows file paths in config.properties, be sure to use forward slashes, not backslashes. Correct: Incorrect: |
In this section:
|
{ "ctp": { "server": "<your-ctp-server>:<port>", "name": "<your-ctp-server-name>", "username": "<your-username>", "password": "<your-password>", "notify": false, } } |
This option specifies the name that will be used to label this server on CTP. You can use any value that helps you identify this server.
env.manager.server.name=MyVirtServerLabel
You can also set this property after the server has been started using the REST API. See env.manager.server for details.
This option specifies the username for logging into CTP.
env.manager.username=me
You can also set this property after the server has been started using the REST API. See env.manager.server for details.
This option specifies the (plain text or encoded) password for logging into CTP.
We strongly recommend encoding passwords to ensure successful authentication and a secure connection. The WAR distribution contains a script that can encode passwords. To use it, run:
<SOAVIRT_HOME>/scripts/encodepass.sh <YOUR_PASSWORD>
or
<SOAVIRT_HOME>/scripts/encodepass.bat <YOUR_PASSWORD>
as appropriate for your OS.
You can also run a command line instance of SOAtest or Virtualize with the -encodepass
flag. Examples:
soatestcli.exe -encodepass <YOUR_PASSWORD>
virtualizecli.exe -encodepass <YOUR_PASSWORD>
Either method will generate an encoded string that you can use in place of the password property in the SOAtest and Virtualize Server configuration file. See CLI Options for additional information about command line options.
env.manager.password=12345
You can also set this property after the server has been started using the REST API. See env.manager.server for details.
This option enables/disables notifications to Parasoft CTP when virtual assets are deployed.
The following example enables notifications:
env.manager.notify=true
You can also set this property after the server has been started using the REST API. See env.manager.server for details.
This is a read-only setting used by CTP.
This option enables/disables the license related to SOAtest functionality. The default is true
. If this option is not present in the .properties configuration file, the default is used. If this option is set to false
, other license-related settings will be ignored.
soatest.license.enabled=true
This option enables/disables the license related to Virtualize functionality. The default is true
. If this option is not present in the .properties configuration file, the default is used. If this option is set to false
, other license-related settings will be ignored.
virtualize.license.enabled=true
This option enables/disables licensing over a network. If you are using a network license, you must also configure either a connection to License Server or to Parasoft DTP.
Configure the following options to connect to License Server:
Configure the following options to connect to DTP:
The following example enables licensing over a network:
soatest.license.use_network=true
This option specifies the type of license to retrieve from License Server or DTP. You can specify either custom_edition
or professional_ edition
. Contact your Parasoft representative if you are unsure of which edition you should set.
soatest.license.network.edition=custom_edition
This option specifies a comma separated list of features that should be requested for a custom edition license from License Server or DTP. Contact your Parasoft representative if you are unsure of which features you should specify.
soatest.license.custom_edition_features=RuleWizard,Command Line,SOA,Web,Server API Enabled,Jtest Connect,Message Packs,Advanced Test Generation Desktop,Advanced Test Generation 100 Users
This option enables/disables licensing over a network. If you are using a network license, you must also configure either a connection to Parasoft DTP or to License Server (deprecated).
Configure the following options to connect to License Server:
Configure the following options to connect to DTP:
The following example enables licensing over a network:
virtualize.license.use_network=true
This option specifies the type of license to retrieve from DTP or License Server. You can specify either custom_edition
or professional_ edition
. Contact your Parasoft representative if you are unsure of which edition you should set.
virtualize.license.network.edition=custom_edition
This option specifies a comma separated list of features that should be requested for a custom edition license from DTP or License Server. Contact your Parasoft representative if you are unsure of which features you should specify.
virtualize.license.custom_edition_features=Virtualize,Validate,Performance,Extension Pack,Service Enabled,Unlimited Hits/Day
This option the URL of the DTP server. Include protocol and host name or IP address and, if appropriate, port and context path.
https://10.9.1.63:8443
This option specifies the host name of the DTP server. You must also set the virtualize.license.use_network
option to true
(see virtualize.license.use_network). This option is deprecated.
dtp.server=main1.parasoft.com
This option specifies the port number of the DTP server. You must also set the virtualize.license.use_network
option to true
(see virtualize.license.use_network). This option is deprecated.
dtp.port=8080
This option specifies the username for DTP authentication. You must also set the virtualize.license.use_network
option to true
(see virtualize.license.use_network).
dtp.user=admin
This option specifies the password for DTP authentication. You must also set the virtualize.license.use_network
option to true
(see virtualize.license.use_network).
dtp.user=mypassword
This option specifies the URL of the License Server. Include protocol and host name or IP address and, if appropriate, port and context path.
https://10.9.1.63:8443
This option specifies the host name of the License Server. You must also set the virtualize.license.use_network
option to true
(see virtualize.license.use_network). This option is deprecated.
This option specifies the host port of the License Server. You must also set the virtualize.license.use_network
option to true
(see virtualize.license.use_network). This option is deprecated.
Specifies the username for authentication on the secondary DTP server specified with the license.network.url
option. It requires the license.network.use.specified.server
and license.network.auth.enabled
options set to true
.
Example: license.network.user
=JohnDoe
Specifies the password for authentication on the secondary DTP server specified with the license.network.url
option. It requires the license.network.use.specified.server
and license.network.auth.enabled
options set to true
, and the the license.network.user
to be configured.
We strongly recommend encoding passwords to ensure successful authentication and a secure connection. The WAR distribution contains a script that can encode passwords. To use it, run:
<SOAVIRT_HOME>/scripts/encodepass.sh <YOUR_PASSWORD>
or
<SOAVIRT_HOME>/scripts/encodepass.bat <YOUR_PASSWORD>
as appropriate for your OS.
You can also run a command line instance of SOAtest or Virtualize with the -encodepass
flag. Examples:
soatestcli.exe -encodepass <YOUR_PASSWORD>
virtualizecli.exe -encodepass <YOUR_PASSWORD>
Either method will generate an encoded string that you can use in place of the password property in the SOAtest and Virtualize Server configuration file. See CLI Options for additional information about command line options.
license.network.use.specified.server
This option enables the server to connect to connect to either DTP and License Server or two instances of DTP simultaneously.
Enables or disables authentication on the secondary DTP server specified with the license.network.url
option.
This option requires the license.network.use.specified.server
option to be set to true
.
This option specifies the password for the local Virtualize license. You must also set the virtualize.license.use_network
option to false
(see virtualize.license.use_network).
This option specifies an expiration for the local Virtualize license. You must also set the virtualize.license.use_network
option to false
(see virtualize.license.use_network).
This setting enables or disables collecting anonymous usage information and sending it to Parasoft. Read our privacy statement to learn more at https://www.parasoft.com/privacy-policy.
The following example enables anonymous usage data reporting:
usage.reporting.enabled=true
This option specifies the Kerberos realm associated with your network. By convention, this is typically your domain name in all caps (for example, PARASOFT.COM).
For more information, see "About Kerberos Authentication" in Security Settings on the Additional Preference Settings page.
This option specifies the hostname of your Key Distribution Center (for example, kdc.parasoft.com).
For more information, see "About Kerberos Authentication" in Security Settings on the Additional Preference Settings page.
session.tagThis setting specifies a tag for signing results from the test session. The tag can be a string, one or more variables, or a combination. Reports for different test sessions should be marked with different session tags so that similar runs can be distinguished from each other. The default is Example UsageYou can use the session tag to represent a specific analysis type made on a specific code branch in a specific test environment. The following configuration could identify functional tests on the master branch for different operating systems:
build.idThis setting specifies a build identifier used to label results. It may be unique for each build, but it may also label more than one test session executed during a specified build. The default is Example UsageThe default build ID includes the name of the project in DTP and the date of the build. For example, for the ATM project, the build ID included in the report may resemble the following: ATM-2017-07-07. The following configuration specifies the custom build ID that consists of the name of the project and the build number passed via the environmental variable
For the ABC project and the build number 114 on a CI server, this may resolve to report.formatThis setting specifies the report format. Use a comma separated list of format values to publish reports in more than one format. By default, an XML report containing the data and an HTML file for presenting the data are published. The following values are supported:
report.custom.extensionThis setting specifies the file extension for a custom report. Custom formats are defined in an XSL file. The report.format option must be set to custom and the report.custom.xsl.file option must also be configured. report.custom.xsl.fileThis setting specifies the path to an XSL file used to create a custom report format. Use double backslashes when specifying the file path on Windows. report.developer_errorsThis setting determines if details about developer errors should be included in manager reports. Set to report.developer_reportsThis setting determines if detailed reports for all developers should be generated in addition to the summary report for managers. Set to report.authors_detailsThis setting determines if an overview of the number and type of tasks assigned to each developer should be included in the report. Set to report.testcases_detailsThis setting determines if additional test case details should be included in the report. Set to report.associationsThis setting enables or disables showing requirements, defects, tasks, and feature requests associated with a test in the report. Set to report.assoc.url.[tag]This setting generates a link to an association inside the HTML report. The URL is a query string containing an Example UsageThe following example creates a link to a PR in Bugzilla in the HTML report:
report.failed_tests_onlyThis setting determines if only tests that failed should be included in the report. This option is only valid for functional testing tools. Set to report.env_detailsThis setting turns on additional details in the XML report about the active environment used when running a tst. The default is report.output_detailsThis setting turns on additional details in the XML report about output tools that were executed when running a tst. The default is report.test_suites_onlyThis setting determines if summary section of the report lists only top-level suites or if it displays a tree-like view of the individual tests. Set to |
You can make external/custom jars (for example, Parasoft SOAtest/Virtualize custom extensions, third-party jars, JDBC drivers, and so on) available to Parasoft Virtualize Server.
<WORKSPACE>/VirtualAssets/system_jars
folder, which is where Parasoft Virtualize Server searches for custom/external jar files to load. Add this folder if it does not already exist./v5/files/upload
) as described in the Swagger documentation (see API Usage). The upload should specify the /VirtualAssets/system_jars
as the parent folder. The /VirtualAssets/system_jars
folder will be created if it did not already exist.Otherwise, either restart the server or call the /v5/preferences/systemProperties/reload
REST API.
Additional Configuration Notes
If you want to modify the value of the "Server" HTTP Header in Parasoft Virtualize Server's HTTP Response to ‘Parasoft Server’ (this is the default for traditional Eclipse-based Virtualize server deployments), you need to modify the servlet container configuration.
Some servlet containers reject Trace requests (for example, HTTP requests using the TRACE HTTP method). If your servlet container rejects Trace requests but you want Parasoft Virtualize Server to support Trace requests (like traditional Eclipse-based Virtualize Server deployments do), you will need to update your servlet container configuration accordingly.