This topic describes how to use test configurations with the SOAtest and Virtualize server. In this section:
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_testsThis setting enables/disables functional test execution. Set this property to Example
com.parasoft.xtest.execution.api.web.report_successful_trafficThis 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 Example
com.parasoft.xtest.execution.api.web.report_traffic_limitThis 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_testsThis 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_calculationThis 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_tableThis 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
|