Skip to content
Yuval207Public

About

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

AutoQA — Autonomous End-to-End Application Testing Platform

AutoQA is an autonomous software testing platform that accepts a source-code repository and a feature specification, launches the application in an isolated environment, generates and executes end-to-end tests, detects failures, collects visual & diagnostic evidence, and produces actionable bug reports.

AutoQA Dashboard Preview Spring Boot Playwright React


Key Capabilities

  1. Repository Ingestion & Safe Extraction

    • Upload any web application source code as a .zip archive, or import it straight from a GitHub repository link (public, or private with an access token).
    • Guarded by Zip Slip protection, directory traversal mitigation, and disk quota enforcement.
    • Automatically detects framework (React, Next.js, Vite, Vue, Angular, Express, Node, etc.), package manager (npm, yarn, pnpm), and recommended startup scripts.
  2. Feature Specification Parsing & Test Plan Generation

    • Ingests markdown feature specifications (# Feature: ..., ## Scenario: ..., - Open /, - Enter ..., - Click ..., - Expected: ...).
    • Translates human-readable test steps into typed Playwright browser actions (NAVIGATE, CLICK, FILL, SELECT, ASSERT_TEXT, ASSERT_VISIBLE).
    • Categorizes scenarios (Positive, Negative, Boundary) with confidence and priority ratings.
    • Human-in-the-loop scenario review and approval workflow.
    • Without a feature spec, auto-detection creates smoke checks with a source file, a concrete route and a verifiable expectation. It recognizes simple Express GET handlers (including literal router mounts), HTML titles/headings, and supported React routes with a static heading or label. Where a handler explicitly returns JSON, an HTML fallback page does not pass, even with HTTP 200. Supply a spec for login flows, mutations, fixture IDs, or routes it cannot verify; AutoQA does not invent a /health endpoint.
  3. Autonomous Execution & Environment Management

    • Provisions an isolated child process running the target application server.
    • Performs proactive HTTP health checks (/health or /) with configurable startup timeouts.
    • Dispatches headless Playwright browser workers with viewport management, console error capture, and network monitoring.
  4. Real-time Telemetry & Evidence-backed Bug Reports

    • Live execution progress stream via Server-Sent Events (SSE).
    • Step-by-step trace showing what was expected and what was observed: the HTTP method, path and status, final browser location, title, or visible text. Successful checks do not attach a generic page screenshot.
    • Failed checks show their expected and observed behavior alongside any recorded client-side exceptions.
    • Generates actionable Bug Finding reports including:
      • Failure severity (CRITICAL, HIGH, MEDIUM, LOW) and category.
      • Side-by-side Expected vs Actual behavior.
      • Reproducible step sequence.
      • Expandable network and console entries recorded during the action being checked, plus a diagnostics image when those entries exist. This is a snapshot of Playwright observations, not a screenshot of Chrome DevTools or an error banner over the app.
      • With no diagnostic events the report shows the observation without inventing an image. An explicit - Take a screenshot step still captures the requested view.

Architecture Overview

                      ┌────────────────────────────────────────┐
                      │             React Frontend             │
                      │   (Dashboard, Test Plan, Telemetry)    │
                      └───────────────────▲────────────────────┘
                                          │ REST & SSE
                                          ▼
                      ┌────────────────────────────────────────┐
                      │        Spring Boot Backend API         │
                      │  - JWT Auth & Project Management       │
                      │  - Repo Analysis & Zip Decompression   │
                      │  - Feature Parsing & Plan Generator    │
                      │  - Run Orchestration & SSE Broadcaster │
                      └───────▲────────────────────────▲───────┘
                              │                        │
                   PostgreSQL │                        │ Poll & Report
                              ▼                        ▼
                      ┌───────────────┐        ┌───────────────────────┐
                      │  PostgreSQL   │        │   Playwright Worker   │
                      │  Persistence  │        │   (Node TypeScript)   │
                      └───────────────┘        └───────────┬───────────┘
                                                           │ Drives Headless Browser
                                                           ▼
                                               ┌───────────────────────┐
                                               │   Target Demo App     │
                                               │  (Isolated Sandbox)   │
                                               └───────────────────────┘

Quickstart Guide

Prerequisites

  • Docker & Docker Compose
  • Java 17+ & Maven
  • Node.js 18+ & npm

1. Start PostgreSQL

docker-compose up -d postgres

2. Run Spring Boot Backend

cd backend
mvn spring-boot:run

Backend runs on http://localhost:8080 (API documentation at http://localhost:8080/swagger-ui.html).

3. Run Playwright Test Worker

cd worker
npm install
npx playwright install chromium
npm run dev

Worker starts and continuously polls the backend for pending test execution jobs.

4. Run React Frontend

cd frontend
npm install
npm run dev

Frontend runs on http://localhost:5173.


Verifying with Demo Fixture

A pre-packaged demo app with working and broken features is included in demo-app/.

  1. Open http://localhost:5173.
  2. Click "Sign In with Demo Account" (or register a new user).
  3. On the Dashboard, click "Launch Demo Fixture".
  4. The system automatically creates a project, configures the environment, and uploads features.md.
  5. Review the parsed scenarios:
    • Successful login (Positive)
    • Invalid credentials error (Negative)
    • Add a new task (Positive)
    • Toggle task completion (Positive)
    • Apply valid discount coupon (Positive)
    • Apply promotional discount code (Broken feature that triggers client exception and assertion failure!)
  6. Click "Trigger Test Run" and watch the live telemetry stream!
  7. Once finished, expand the failed check to compare its expectation with the observed result and recorded browser diagnostics.

For an existing auto-generated plan, restart the backend and worker with the current code, then choose Test Plan → Auto-Detect from Codebase, review the checks and run again. Previous executions keep their original observations; re-detection does not manufacture evidence for past runs.


Testing a GitHub Repository

Instead of uploading a ZIP, you can point AutoQA at a GitHub repository:

  1. Click "New Project", enter a name, and continue.
  2. Under Repository Source, choose GitHub Repository and paste the link, e.g. https://github.com/owner/repo or a branch link such as https://github.com/owner/repo/tree/develop.
  3. Optionally enter a Branch. Without one, the repository's default branch is used.
  4. For a private repository, add a GitHub access token that can read the repository contents (a fine-grained token with Contents: Read-only, or a classic token with the repo scope). The token is used only for that download and is never stored.
  5. Click "Import & Analyze". AutoQA downloads the code, detects the framework and startup command, and generates test scenarios. From there, confirm the environment, approve scenarios, and trigger a test run as usual.

The same import is available over the API: POST /api/projects/{projectId}/repository/github with the JSON body {"url": "https://github.com/owner/repo", "branch": "optional", "accessToken": "optional"}.

About

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages