|
1 |
| -API Testing Tool made with AI |
| 1 | +## OpenAPI Testing Tool |
| 2 | + |
| 3 | +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. |
| 4 | + |
| 5 | +For learning more about OpenAPI Specifications: https://spec.openapis.org/oas/v3.1.0.html#openapi-specification |
| 6 | + |
| 7 | +### Features |
| 8 | + |
| 9 | +- **OpenAPI Integration** - Parses your API specification to understand endpoints and schemas. |
| 10 | +- **Local Ollama Model** - Uses a locally hosted LLM for generating intelligent test cases. |
| 11 | +- **Automated Test Generation** - Quickly produces unit/integration tests for endpoints. |
| 12 | +- **User Friendly Interface** - View the snapshots of the application below |
| 13 | +- **Fast & Secure** - No external API calls; all processing happens locally. |
| 14 | + |
| 15 | +### Prequisities |
| 16 | + |
| 17 | +- Node.js `v22.12.0` or higher (Important) |
| 18 | +- npm or yarn |
| 19 | +- Ollama installed locally (https://ollama.com/download) |
| 20 | +- Your OpenAPI specification file (`openapi.yaml` or .json) |
| 21 | + |
| 22 | +## 🛠 Installation Steps |
| 23 | + |
| 24 | +1. Clone the Repository |
| 25 | + |
| 26 | +```shell |
| 27 | +git clone git@github.com:eddyseed/OpenAPI-Testing-Tool.git |
| 28 | +cd OpenAPI-Testing-Tool/ |
| 29 | +``` |
| 30 | + |
| 31 | +2. Install Dependencies (For both Frontend & Backend) |
| 32 | + |
| 33 | +```shell |
| 34 | +npm install |
| 35 | +``` |
| 36 | + |
| 37 | +3. Verify Ollama Installation |
| 38 | + |
| 39 | +```shell |
| 40 | +ollama list |
| 41 | +``` |
| 42 | + |
| 43 | +Ensure your desired model (e.g., `phi3:mini`) is available. |
| 44 | + |
| 45 | +4. Edit your `.env.sample` in `backend/` |
| 46 | +```env |
| 47 | +# All variables should be changed according to the development requirements. |
| 48 | +
|
| 49 | +PORT=3000 |
| 50 | +NODE_ENV=development |
| 51 | +
|
| 52 | +LOCAL_HOST=http://localhost:3000 |
| 53 | +CORS_ORIGIN=http://localhost:5173 |
| 54 | +OLLAMA_HOST=http://localhost:11434 |
| 55 | +
|
| 56 | +#Set your own local model name |
| 57 | +MODEL_NAME=your_model_name |
| 58 | +``` |
| 59 | +> For getting a list of all models do `ollama list` |
| 60 | +
|
| 61 | +## Screenshots |
| 62 | + |
| 63 | + |
0 commit comments