In this section:
Table of Contents | ||
---|---|---|
|
Overview
SOAtest can automatically create API tests for web applications from SOAtest can automatically create API tests for web applications from API traffic captured with Parasoft Recorder. When SOAtest processes API traffic captured with Parasoft Recorder, it uses AI to creates "SmartTests created in this way are referred to as "smart" API tests. The out-of-the-box implementation is designed to help you quickly start API testing very quicklyyour APIs, but you can also "teach" SOAtest how you want Smart smart API tests to be generated. In this section:
Table of Contents | ||
---|---|---|
|
Overview
About Smart Test Templates
You can create You can define rules that determine test generation behaviors by creating Smart Test Template (.stt) files to define rules that determine test generation behaviors. Smart Test Template files consist of These files contain one or more Resource Suites, which enable you to determine the paths your identify paths through the application to which your test generation rules will be applied to.
Resource Suites contain one or more Resource Templates, which define a scope of API methods and resources to include when the smart test is generated. You can chain attach tools to Resource Templates and configure them to define specific test generation behaviors. Resource Templates also enable you to configure the specific scope that the chained rules will apply toTools chained to the Resource Template are applied according to the scope defined in the Resource Template.
When the SOAtest creates a new smart API test, it will read and apply the rules specified in the .stt file.
...
includeContentTypes | Defines a comma-separated list of content types to include during traffic processing. Default is application/json,application/x-www-form-urlencoded | ||||||
---|---|---|---|---|---|---|---|
excludeContentTypes | Defines a comma-separated list of content types to exclude during traffic processing. Default is empty. | ||||||
disableDiffCreation | Enables/disables diff creation. See Diff for additional information. Default is | ||||||
disableDiffParameterization | Enables/disables diff parameterization. Parameterization enables you to use data banked values in the diff. If diff parameterization is disabled (setting this property to true ), only static values will be available. Default is false . | ||||||
disableEnvironmentCreation | Enables/disables the creation of an environment and environment variables. Default is false . | ||||||
disableDataBankCreation | Enables/disables data bank creation. See Data Exchange Tools for additional information. Default is | ||||||
disableAssertorCreation | Enables/disables the creation of JSON Assertor tools. Default is false . See JSON Assertor for additional information. | ||||||
customHandlerClass.<number> | See Configuring Smart API Test Generation for Salesforce. | ||||||
diffToolIgnoreNames.<number> | Defines a regex matching element names that should be ignored when creating diffs. Default is You can specify additional name patterns by adding properties and appending them with For example:
| ||||||
diffToolIgnoreValues.<number> | Defines a regex matching values that should be ignored when creating diffs. Default is to ignore timestamps:
You can specify additional value patterns by adding properties and appending them with For example:
| ||||||
assertorToolIgnoreQueryParameterNames.<number> | Defines a regex matching query parameter names that should be ignored when creating JSON Assertor tools. Default is to ignore query names starting with "maxResultsSize":
The property is not case sensitive. You can specify additional patterns by adding properties and appending them with | ||||||
assertorToolIgnoreQueryParameterValues.<number> | Defines a regex matching query parameters values that should be ignored when creating JSON Assertor tools. Ignore query parameters when creating assertions based on parameter value pattern Default is to ignore timestamps:
You can specify additional patterns by adding properties and appending them with | ||||||
assertorToolIgnoreFieldNames.<number> | Defines a regex matching values in the response payload that should be ignored when creating JSON Assertor tools. Default value is to ignore values in response payload that starts with time, date, url, href, SessionId, or transactionId. Default is to ignore timestamps:
The property is not case sensitive. You can specify additional patterns by adding properties and appending them with | ||||||
assertorToolIgnoreFieldValues.<number> | Defines a regex matching values that should be ignored when creating JSON Assertor tools. Default is to ignore timestamps:
You can specify additional value patterns by adding properties and appending them with For example:
| ||||||
includeURLPatterns | Defines a comma-separated list of resource URL patterns to include for test generation. You can define case-sensitive patterns using Ant-style syntax. Default is to include all URLs. In the following example, all URLs in the parasoft.com domain will be included:
| ||||||
excludeURLPatterns | Defines a comma-separated list of resource URL patterns to exclude from test generation. You can define case-sensitive patterns using Ant-style syntax. Default is to include all URLs. In the following example, all URLs at port 8443 in the parasoft.com domain will be excluded:
| ||||||
requestPayloadParameterizationExcludeNames.<number> | Defines a regex that matches field names in a request payload that should be excluded from parameterization. The following example excludes date and time field names from parameterization:
| ||||||
requestQueryStringParameterizationExcludeNames.<number> | Defines a regex that matches field names in a request queries that should be excluded from parameterization. The following example excludes date and time field names from parameterization:
| ||||||
useServerSettings
| Enables/disables using the settings from the tst_creation.properties file on the SOAtest server, instead of the settings configured in the local tst_creation.properties file. Default is true . |
...