Skip to content

MaitreyeeRane/AI-Testing-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

🚀 AI Test Case Generator & API Validator

An AI-powered testing framework that generates and validates test cases for APIs using Large Language Models and automated execution.


📌 Overview

This project explores the use of AI in software testing by automatically generating test cases and validating API endpoints. It combines AI-driven test generation with basic automation to simulate real-world QA workflows.


✨ Features

  • 🤖 AI-based test case generation using OpenAI API
  • 🔍 Covers valid, invalid, and edge test cases
  • 🌐 API testing using Python requests
  • ⚙️ Automated validation of endpoints
  • 🚀 FastAPI backend for interaction

🛠️ Tech Stack

  • Python
  • FastAPI
  • OpenAI API
  • PyTest
  • Requests

📂 Project Structure

  • app/generator.py → AI test case generation
  • app/tester.py → API testing logic
  • app/main.py → FastAPI app
  • tests/ → Sample automated tests

⚙️ How It Works

  1. User provides input (API or description)
  2. AI generates test cases
  3. System validates API endpoints
  4. Outputs results

🚀 Getting Started

Install dependencies

pip install -r requirements.txt

Run server

uvicorn app.main:app --reload

🧪 Run tests

pytest

📊 Example

Input:

/predict API

Output:

  • Valid input test
  • Invalid input test
  • Edge case test

🎯 Use Cases

  • AI-assisted QA workflows
  • API validation
  • Automated testing experiments

🔮 Future Improvements

  • Full automation framework
  • CI/CD integration
  • Advanced reporting

👩‍💻 Author

Maitreyee Rane GitHub: https://github.com/MaitreyeeRane LinkedIn: https://www.linkedin.com/in/maitreyee-rane-ba93a22a4


About

AI-powered test case generation and API validation framework using LLMs and automated testing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages