Skip to content

Repository files navigation

πŸ§ͺ AI-Powered QA Automation Tool & Studio v2.4

An end-to-end AI testing framework and web studio that ingests application documentation, generates robust test cases with function calling specs, executes tests via a LangGraph state engine, evaluates test quality using DeepEval, and visualizes live results in a dark-mode web dashboard.

🌐 Live Web App / Hosted Studio: https://code-killer0.github.io/QA-Automation-Tool/


🎨 Interactive Web Application Dashboard

The QA Automation Studio features a handcrafted, glassmorphism dark-mode UI accessible directly online or hosted locally.

🌐 Live UI Screenshots

1. βš™οΈ Target Application & Documentation Setup

Configure your live public API domain URL, enter your OpenAI API Key (saved locally in browser storage β€” no .env file required), and upload or paste QA Documentation.

Engine Config Setup


2. πŸ“Š Executive Dashboard & Analytics

Real-time KPI metrics, total test case counts, pass rates, execution outcome donut charts, and category breakdown bars.

Executive Dashboard Overview


3. πŸ§ͺ Multi-Category Generated Test Cases

Browse 500–1000+ generated test cases with category badges, full descriptions, and associated assistant Tool_Call JSON chips. Search and filter by category in real time.

Generated Test Prompts Table


4. ⚑ LangGraph HTTP Execution Log

Track live execution status codes, dynamic auto-healing of HTTP 422 errors, and detailed failure reason breakdowns.

LangGraph Execution Log


5. 🎯 DeepEval Evaluation Metrics

DeepEval benchmark scores evaluating Test Prompt Quality (94.2%), Tool Call Correctness (98.0%), and Execution Result Accuracy (96.5%).

DeepEval Benchmark Metrics


πŸš€ Key Features

  • 🌐 Zero-Setup Web Studio: Run directly in browser via GitHub Pages or serve locally. Accepts public domain URLs and in-browser OpenAI API Key configuration.
  • πŸ“„ Automated Documentation Ingestion: Parses .pdf, .txt, .docx, and .md technical specs & API docs.
  • 🧠 AI Loophole & Vulnerability Analysis: Uses GPT-4o to discover failure modes across accuracy, bias, hallucination, data quality, and adversarial security.
  • πŸ€– Multi-Category Test Prompt Generation: Generates targeted test prompts accompanied by assistant-side Tool_Call JSON payloads across 12 test categories.
  • ⚑ LangGraph Execution Engine: State-machine driven HTTP executor (Parse β†’ Normalize β†’ Execute) with LLM fallback normalizers.
  • πŸ”„ Dynamic Value Synthesis: Auto-heals 422 Unprocessable Entity HTTP responses by inferring missing payload fields from FastAPI schema hints.
  • πŸ”¬ DeepEval Pipeline: Evaluates Test Prompt Quality, Tool Call JSON schema correctness, and Execution Accuracy against configurable thresholds.
  • πŸ“Š Modern Glassmorphism UI: High-contrast, handcrafted UI stack built with Plus Jakarta Sans & JetBrains Mono fonts.

πŸ—οΈ System Architecture

                                  +-----------------------------+
                                  | Technical Documentation     |
                                  | (PDF / Markdown / DOCX)     |
                                  +--------------+--------------+
                                                 |
                                                 v
                                  +-----------------------------+
                                  |  AI Loophole Analyzer       |
                                  |  (Identifies 15+ failure    |
                                  |   modes & security risks)   |
                                  +--------------+--------------+
                                                 |
                                                 v
                                  +-----------------------------+
                                  |  Test Case Generator        |
                                  |  (Produces output.csv with  |
                                  |   Prompts & Tool_Calls)     |
                                  +--------------+--------------+
                                                 |
                                                 v
                                  +-----------------------------+
                                  |  LangGraph Executor Engine  |
                                  |  Parse -> Normalize -> Run  |
                                  |  (Generates execution report|
                                  |   & dynamic auto-healing)   |
                                  +--------------+--------------+
                                                 |
                                  +--------------+--------------+
                                  |                             |
                                  v                             v
                   +-----------------------------+ +-----------------------------+
                   |  DeepEval Metric Evaluator  | |  Dark-Mode Web UI           |
                   |  (eval_results.json)        | |  (ui/index.html)            |
                   +-----------------------------+ +-----------------------------+

πŸ“ Repository Structure

QA-Automation-Tool/
β”œβ”€β”€ index.html                # Root redirect for GitHub Pages deployment
β”œβ”€β”€ main.py                   # Stage 1: Document parser & test generator CLI
β”œβ”€β”€ executor.py               # Stage 2: LangGraph HTTP test executor engine
β”œβ”€β”€ output.csv                # Output file containing generated test cases
β”œβ”€β”€ execution_report.csv      # Detailed HTTP response & pass/fail execution log
β”œβ”€β”€ execution_summary.json     # High-level execution metrics summary
β”œβ”€β”€ raw_llm_output/           # Raw LLM responses per category for auditability
β”œβ”€β”€ docs/                     # Documentation & UI screenshots
β”‚   └── images/               # Dashboard screenshots for README
β”œβ”€β”€ eval/                     # Stage 3: DeepEval offline evaluation suite
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ metrics.py            # DeepEval custom metric definitions
β”‚   β”œβ”€β”€ test_cases.py         # CSV & Report to DeepEval test case loaders
β”‚   β”œβ”€β”€ run_eval.py           # Evaluation pipeline runner CLI
β”‚   └── requirements.txt      # Eval pipeline dependencies
β”œβ”€β”€ eval_results.json         # Output evaluation scores & metric statuses
β”œβ”€β”€ ui/                       # Stage 4: Interactive Web Dashboard
β”‚   β”œβ”€β”€ index.html            # Dashboard markup & section routing
β”‚   β”œβ”€β”€ style.css             # Handcrafted glassmorphism styling
β”‚   └── script.js             # Client-side generator workflow & chart renderer
β”œβ”€β”€ requirements.txt          # Root Python dependencies
└── .env                      # Environment variable configurations (optional for CLI)

βš™οΈ Environment & Local Configuration

For CLI execution, create a .env file in the project root (optional if using the Web UI):

# LLM Provider Selection: "openai" or "huggingface"
LLM_PROVIDER=openai

# Option A: OpenAI Configuration
OPENAI_API_KEY=your_openai_api_key_here
OPENAI_MODEL=gpt-4o

# Option B: Hugging Face Configuration
HF_TOKEN=your_huggingface_api_token_here
HF_REPO_ID=meta-llama/Llama-3.2-3B-Instruct

# Target API Base URLs
API_BASE_URL=http://localhost:8000
ML_BASE_URL=http://localhost:8001

# File paths
CSV_PATH=output.csv
REPORT_PATH=execution_report.csv
SUMMARY_PATH=execution_summary.json
DOCUMENTATION_PATH=path/to/documentation.pdf

# Executor options
REQUEST_TIMEOUT_SECONDS=20
USE_LLM_NORMALIZER=true
USE_LLM_VALUE_SYNTHESIS=true
LOG_LEVEL=INFO

πŸ“¦ Installation & Quickstart

# Clone the repository
git clone https://github.com/code-killer0/QA-Automation-Tool.git
cd QA-Automation-Tool

# Create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install main dependencies
pip install -r requirements.txt

🚦 Usage & Workflow

🌐 Option A β€” Live Web App (No CLI required)

Open https://code-killer0.github.io/QA-Automation-Tool/ in your browser, enter your public domain URL, paste your QA documentation, and click πŸš€ Generate Test Suite & Run Execution.


πŸ’» Option B β€” Command Line Pipeline

Stage 1 β€” Generate Test Prompts

Run main.py to ingest documentation, perform failure mode analysis, and output generated test prompts into output.csv.

python main.py docs/api_spec.pdf --categories ALL

Stage 2 β€” Execute Test Suite

Run executor.py to process output.csv via the LangGraph state machine, sending HTTP requests to your target endpoint.

python executor.py --input output.csv

Outputs produced:

  • execution_report.csv: Detailed request logs, HTTP status codes, and pass/fail reasons.
  • execution_summary.json: Pass rates and failure breakdown.

Stage 3 β€” Run DeepEval Evaluation Pipeline

Run the offline evaluation pipeline to benchmark test prompt quality, tool-call schema accuracy, and execution pass rates.

python -m eval.run_eval --csv output.csv --report execution_report.csv --output eval_results.json

Evaluated Metrics:

  • 🎯 Test Prompt Quality (Threshold: 0.50): Evaluates instruction clarity, setup details, and pass/fail criteria.
  • πŸ”§ Tool Call Correctness (Threshold: 0.70): Checks JSON formatting, presence of role, tool_calls, and parameter schemas.
  • πŸ“Š Execution Result Accuracy (Threshold: 0.85): Assesses valid HTTP execution outcomes and status classification match.

Stage 4 β€” Explore Local Web Dashboard

To run the web studio with a live backend connection to main.py and executor.py (which runs your documentation input and target URL directly through the Python engine):

python3 server.py 8080

Navigate to http://localhost:8080 in your web browser.

(If you only need to explore the UI statically without triggering the local Python subprocesses, you can run python3 -m http.server 8080 --directory ui instead. The UI will automatically fall back to browser-based LLM generation or smart client-side heuristic parsing).


🏷️ Test Categories Covered

  1. End-to-End Testing
  2. Integration Testing
  3. Unit Testing
  4. Model Accuracy & Regression Testing
  5. Hallucination & Fabrication Testing
  6. Bias & Fairness Testing
  7. Adversarial & Security Testing
  8. Edge Case & Boundary Testing
  9. Data Quality & Pipeline Testing
  10. Performance & Scalability Testing
  11. Drift & Monitoring Testing
  12. Explainability & Auditability Testing

🀝 Contributing

  1. Fork the Repository
  2. Create a Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“œ License

Distributed under the MIT License. See LICENSE for more information.

About

πŸ§ͺ AI-powered QA Automation Tool that generates, executes, and evaluates API test cases using LLMs, LangGraph, and DeepEval with intelligent error handling and automated test evaluation.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages