You can add test scenarios and test suites on SOAtest Server directly from the Test Scenarios page, which is accessed by opening the API Testing module.
A test scenario is the smallest unit that can be executed in a job or during provisioning. It is stored as a .tst file within the SOAtest workspace.
To add a new .tst from CTP:
The .tst (included any generated SOAP Client tools) will be added to the specified SOAtest server. You can review the added SOAP Clients by selecting the associated tree node.
After creating a test scenario from a WSDL definition file, the tool’s name, request message, endpoint, and SOAP action will be configured automatically. A variable is created for the endpoint value. With the endpoint set to a flexible variable rather than a hard-coded value, you can run the same test versus different environments without modifying the test itself. Generated variables are defined in the generated variable set.
After creating a test scenario from a RAML or OpenAPI definition file, a REST Client for each resource/method pair in the definition will be created. Each REST Client's resource URL, HTTP method, and payload (if applicable) are configured accordingly.
The service's base URL will be configured as a "BASEURL" variable. Each resource URL is parameterized with the "BASEURL" variable. Query parameters are included with default or sample values (if available) as defined by the service definition. A sample message (if available) is included in the payload. If the service definition includes a JSON schema, a sample payload is constructed from that JSON schema.
Variables values can be adjusted at the test job level, as well as the component instance level.
You can create scenarios from the following inputs from the test scenario creation screen.
Choose Empty to create a skeleton scenario that you can manually add tests to later.
To add a skeleton test suite within an existing test scenario (.tst file):
The test suite will be added to the specified SOAtest server within the designated .tst file.
Choose From RAML and enter the absolute URI to a RAML definition file to automatically-generate a test scenario based on the endpoints found in a RAML description. RAML 0.8 and 1.0 are supported.
Choose From OpenAPI (Swagger) and enter the absolute URI to an OpenAPI definition file to automatically-generate a test scenario based on the endpoints found in a Swagger description. OpenAPI 1.0 - 2.0 is supported.
Choose From WSDL and enter the absolute URI to WSDL definition file to automatically-generate a test scenario based on the endpoints found in a WSDL description.
You can generate a test scenario based on traffic captured by a Parasoft proxy or other utility. Access to a running Parasoft data repository server and at least one traffic file must be saved in the VirtualAssets project. The traffic’s message contents must be well-formed (e.g., if XML, it must be well-formed). SOAP messages must have only one top-level XML element.
The tools will be automatically configured and parameterized with values stored in the specified Parasoft data repository.
You can associate tests in the new scenario with a work item stored in your application lifecycle management (ALM) or requirements management (RMS) system.
@fr
- Use this type to associate the tests with a feature request work item@pr
- Use this type to associate the tests with a defect work item@req
- Use this type to associate the tests with a requirement or user story work item@task
- Use this type to associate the tests with a task work item@test
- Use this type to associate the tests with a test work item You can click on the trash icon to delete existing associations.
You can add commonly-used API Testing tools (such as REST Client, SOAP Client, Diff, and XML/JSON Assertor, and XML/JSON Data Bank tools) directly from the CTP interface. Additional tools can be added from SOAtest desktop.
For details, see:
You can parameterize tool values using data sources or extracted values. See Parameterizing with Data Source and Data Bank Values for details.