Import RESTful requests with OpenAPI Specification 2.0 (Swagger)
To import Web Service objects from a **Swagger 2.0 **File or URL depending on the type of your Katalon Studio project, follow the following:
Generic Project
- In Tests Explorer, right-click on any folder within Object Repository to display the context menu and select Import > From Swagger.
API/Web Service Project
There are two ways to import existing Swagger request:
-
- In Tests Explorer, right-click on any folder within Object Repository to display the context menu and select Import > From Swagger.
- Click on 'Import Swagger' icon on the main toolbar or Quickstart wizard.
Katalon Studio displays the input dialog accepts either a local file or a remote URL, e.g: https://mySite/swagger.json. Since both inputs are using the same definition, Katalon Studio will load the specs and generate REST requests.
Katalon automatically imports and generates:
- Web Service objects (REST) are added under the right-clicked directory.
- Query Parameters, variables HTTP Headers.
- HTTP body, form-data, and encoded URL parameters are parsed.
Known Issues:
- No Raw text content in HTTP Body parsed from Swagger.
- No Authorization parsed from Swagger.
- Variables and Parameters should be adjusted manually.