Automatically generate API Test Scripts for Playwright and Cypress from Swagger Documentation.
Supports:
OpenAPI 3.0 version
Swagger 2.0 version
Usage
Open the Swagger Documentation (JSON file) in VS Code;
Right-click anywhere in the code editor;
Click the API Test Builder menu;
Click the desired option;
Swagger to Cypress ()
Swagger to Playwright ()
Voilà! The extension will generate the directories and test script templates.
All you need to do is adjust the indentation and add the test scenarios you want/need.
known issues
Requires proper indentation
Playwright. Requires proper definition of "import" (Java and Python) and "using" (.Net)