Skip to content

OpenAPI Testing Tool – Automatically generates test cases for your APIs using a local Ollama model. Streamline API validation, reduce manual testing, and integrate seamlessly with your development workflow.

Notifications You must be signed in to change notification settings

eddyseed/OpenAPI-Testing-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAPI Testing Tool

Automatically generate comprehensive API test cases from your OpenAPI specification using a local Ollama model. This tool simplifies API validation, reduces manual effort, and integrates seamlessly into your development workflow.

For learning more about OpenAPI Specifications: https://spec.openapis.org/oas/v3.1.0.html#openapi-specification

Features

  • OpenAPI Integration - Parses your API specification to understand endpoints and schemas.
  • Local Ollama Model - Uses a locally hosted LLM for generating intelligent test cases.
  • Automated Test Generation - Quickly produces unit/integration tests for endpoints.
  • User Friendly Interface - View the snapshots of the application below
  • Fast & Secure - No external API calls; all processing happens locally.

Prequisities

  • Node.js v22.12.0 or higher (Important)
  • npm or yarn
  • Ollama installed locally (https://ollama.com/download)
  • Your OpenAPI specification file (openapi.yaml or .json)

🛠 Installation Steps

  1. Clone the Repository
git clone git@github.com:eddyseed/OpenAPI-Testing-Tool.git
cd OpenAPI-Testing-Tool/
  1. Install Dependencies (For both Frontend & Backend)
npm install
  1. Verify Ollama Installation
ollama list

Ensure your desired model (e.g., phi3:mini) is available.

  1. Edit your .env.sample in backend/
# All variables should be changed according to the development requirements.

PORT=3000
NODE_ENV=development 

LOCAL_HOST=http://localhost:3000
CORS_ORIGIN=http://localhost:5173
OLLAMA_HOST=http://localhost:11434

#Set your own local model name
MODEL_NAME=your_model_name

For getting a list of all models do ollama list

Screenshots

About

OpenAPI Testing Tool – Automatically generates test cases for your APIs using a local Ollama model. Streamline API validation, reduce manual testing, and integrate seamlessly with your development workflow.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published