This section describes how to use test configurations with the SOAtest and Virtualize server.
Test configurations are collections of settings that determine how tests are executed and reported. The SOAtest and Virtualize server ships with the following default configurations:
<INSTALL>/soavirt/WEB-INF/configs/builtin
folder. In this configuration, the option to report traffic for all tests is enabled. It is intended to be used for executing tests from Continuous Testing Platform.<WORKSPACE>/TestAssets/configs/user
folder. The option to report traffic for all tests is disabled. You can customize as necessary by enabling and disabling properties in the test configuration file. You can also create custom test configurations and add them to the workspace where they can be used to execute tests in your project.
You can run built-in test configurations by specifying builtin://
and the test configuration name when making your call. In the following example, the tests will execute according to the default Run Automated Server Tests configuration:
{ "general": { "config": "builtin://Run Automated Server Tests", |
See Test Configuration Properties for information about properties you can customize in the test configuration. See SOAtest Test Configuration Settings for additional information about test configurations.If the folder does not contain a test configuration with the specified name, the test will not run.
You can run user-defined test configurations by specifying user://
and the test configuration name when making your call. In the following example, the tests will execute according to the default Example Configuration configuration:
{ "general": { "config": "user://Example Configuration", |
You can add other test configurations to the <WORKSPACE>/TestAssets/configs/user
folder and execute them using the user://<TEST_CONFIG_NAME>
syntax. You can add test configurations by creating duplicates of the default configuration and modifying them to exercise the tests in different ways. See Test Configuration Properties for information about properties you can customize in the test configuration.
If the folder does not contain a test configuration with the specified name, the test will not run.
You can modify the following settings for Run Automated Server Tests.properties file, as well as any custom user configurations you may want to create (see User Configurations ).
Functional Tests Propertiescom.parasoft.xtest.execution.api.web.execute_functional_tests This setting enables/disables functional test execution. Set this property to Example
com.parasoft.xtest.execution.api.web.report_successful_traffic This setting enables/disables the "Test Traffic [All Tests]" section in the API coverage report. The section contains traffic for all test executions, whether or not the tests were successful. Set this property to
com.parasoft.xtest.execution.api.web.report_traffic_limit This setting specifies the total amount of traffic data (in KBs) stored during a test execution session, not the amount of data stored per test. The Example
API Coverage Propertiescom.parasoft.xtest.execution.api.web.coverage_ref_by_tests This setting determines if coverable resources from the service definition are included in the API coverage report (see API Coverage - Overview for information about coverable resources). If a constrained SOAP Client, REST Client, or Messaging Client tool touches a coverable resource, coverage information will be associated with the appropriate resource/operation. The following service definitions are supported:
Default is Example
com.parasoft.xtest.execution.api.web.perform_service_coverage_calculation This setting enables/disables API coverage calculation for a user-defined list of coverable resources. You can specify the resources in the Coverage can be calculated in addition to, or instead of, the automatically calculated coverable resources. Also see API Coverage - Overview.Default is com.parasoft.xtest.execution.api.web.service_coverage_table This setting specifies a list of resources that should be included as part the API coverage calculation. Specify a semicolon-separated list of definitions using the following format:
The following definition types are supported:
Example
In this example, the property would include coverage information for the following resources:
Application Coverage Properties
This setting enables/disables collecting application coverage data with the coverage agent. The default is Example
This setting specifies the host name or IP address of the machine where the coverage agent resides. Example
This setting specifies the coverage agent’s port. The default is Example
com.parasoft.xtest.execution.api.web.application_coverage_user_id This setting specifies a user ID so that coverage results can be associated with a specific user. A user ID should only be specified when the coverage agent is configured to run in the multi-user mode. For details, see the user guide for your Parasoft code analysis tool (Parasoft Jtest or Parasoft dotTEST) at https://docs.parasoft.com. Example
com.parasoft.xtest.execution.api.web.application_coverage_report_as_test_failure This setting enables/disables reporting test failures when the coverage agent connection fails, or when the location of the static coverage file is misconfigured. Otherwise connection problems will be reported to the console but will not cause the test to fail. The default is Example
com.parasoft.xtest.execution.api.web.application_coverage_upload_to_dtp This setting enables/disables sending application coverage results to DTP. It requires the In addition, sending results to DTP requires the following settings to be configured:
Example
This setting specifies the path to the static coverage file generated by your Parasoft code analysis tool (Parasoft Jtest or Parasoft dotTEST) in the .xml or .data format. For details, see the Parasoft Jtest or Parasoft dotTEST user guide at https://docs.parasoft.com. Example
This setting specifies a set of tags that are used to create coverage images in DTP. A coverage image is a unique identifier for aggregating coverage data from runs with the same build ID. For details, see the Parasoft DTP user guide at https://docs.parasoft.com. Example
API Security Properties
This setting specifies whether a default or custom scan policy is used. The value must be either Example
This setting specifies the location of a custom scan policy file. This property value is ignored if
This setting specifies the timeout period for the Penetration Testing Tool in minutes. The default is Example
This setting specifies regular expressions used to determine URLs that should be scanned by the Penetration Testing Tool. Includes are processed before excludes. When no includes are defined, everything is assumed to be included before considering excludes. Use semi-colons ( ; ) to separate multiple regular expressions. Example
This setting specifies regular expressions used to determine URLs that should be excluded from scanning by the Penetration Testing Tool. Excludes are processed after includes. Use semi-colons ( ; ) to separate multiple regular expressions. Example
|