Introduction

SOAtest can automatically create a .tst based on the endpoints found in an OpenAPI/Swagger description. Each .tst generated using the OpenAPI/Swagger wizard will contain REST Clients for all of the defined endpoints.  

The following specifications are supported:

You can also use AI to create tests with your AI client and the SOAtest MCP Server. See Using Parasoft Tools as an MCP Server for more information.

Creating a Test Suite from an OpenAPI/Swagger Definition

To automatically create a test suite from a valid OpenAPI/Swagger definition:

  1. Right-click the project in the Test Case Explorer and choose Add New > Test (.tst)... 
  2. Specify a name for the file and click Next. 
  3. Choose the REST > OpenAPI/Swagger option and click Next. For details on accessing the wizards, see Adding a New .tst File to an Existing Project and Adding a New Test Suite.
  4. Enter the absolute URI for the OpenAPI/Swagger definition file or click Browse to find it on the local machine. 
  5. Click Next. The Create Environment page opens.
  6. (Optional) Specify whether you want to reference an existing environment or create a new one.
  7. Click Finish.

When a .tst is generated, it includes one REST Client for each resource/method pair in the OpenAPI/Swagger definition.  

Additionally, test scenarios created with OpenAI will automatically have applicable smart test templates applied to them.