ratl.ai
Try Now ↗
  • Welcome
  • Getting Started
    • Quickstart
    • Understanding Testing Modes
  • MANAGE ACCOUNT
    • Organizations and Workspaces
    • Managing API Keys
  • FEATURES
    • Overview
    • Understanding Dashboard: A Complete Guide
    • Talking to Agents: A Comprehensive Guide for Interactions
    • API Functional Tests: A Comprehensive Solution for Automated Testing
    • Load and Performance Testing: A Comprehensive Solution for High Traffic Simulation
    • API Integration E2E Tests: A Comprehensive Solution for Automated Integration Testing
    • Web Automation: AI-Powered Visual Testing Solution
    • Schedules: Automate and Manage Test Execution Timing
    • Run History: Tracking and Managing Your Test Executions
  • INTEGRATIONS
    • Overview
    • CI/CD Integration: Automate Testing in Your Development Pipelines
    • Slack Integration: Real-Time Test Updates and Collaboration
    • Azure DevOps (ADO) Integration: Streamline Bug Tracking
    • Jira Integration: Simplify Bug Tracking and Test Management
    • Kubernetes Integration: Deploy Ratl Load Injectors On-Premises
  • CREDITS
    • Credit Management Overview
  • PUBLIC APIs
    • API Documentation
Powered by GitBook
On this page
  • Load Testing
  • API Test Suite
  • End-to-End Testing
  • Accessibility Testing
  • Web Automation
  1. PUBLIC APIs

API Documentation

Load Testing

Start Load Test

Method: POST Endpoint: /api/v1/load/start Headers:

  • api-key: User API key for authorization.

Request Body:

{
  "simulation_id": "6788e05ab077dd99972a1374",
  "workspace_id": "677e4b4c01ab7f61193b5c5a"
}

Response:

{
  "message": "Load test started successfully"
}

Get Load Test Status

Method: GET Endpoint: /api/v1/load/status Headers:

  • api-key: User API key for authorization.

Query Parameters:

  • simulation_id: ID of the simulation.

Response:

{
  "message": "ok",
  "status": "running"
}

Get Load Test Report

Method: GET Endpoint: /api/v1/load/report Headers:

  • api-key: User API key for authorization.

Query Parameters:

  • simulation_id: ID of the simulation.

Response:

{
  "success": true,
  "reportLink": "https://storage.googleapis.com/rattle-prod-artifacts/report-1737030866726/index.html",
  "message": "Report Generated successfully"
}

API Test Suite

Run API Suite Execution

Method: POST Endpoint: /api/v1/api/start Headers:

  • api-key: User API key for authorization.

Query Parameters:

  • suite_id: ID of the suite to execute.

Response:

{
  "success": true
}

Get Suite Report

Method: POST Endpoint: /api/v1/api/report Headers:

  • api-key: User API key for authorization.

Query Parameters:

  • suite_id: ID of the suite.

Response:

{
  "report": "Suite report data"
}

End-to-End Testing

Start E2E Flow

Method: POST Endpoint: /api/v1/e2e/start Headers:

  • api-key: User API key for authorization.

Query Parameters:

  • flow_id: ID of the end-to-end flow.

Response:

{
  "success": true
}

Get E2E Report

Method: POST Endpoint: /api/v1/e2e/report Headers:

  • api-key: User API key for authorization.

Query Parameters:

  • flow_id: ID of the end-to-end flow.

Response:

{
  "jobId": "1737031013923",
  "status": "failed",
  "metrics": {
    "passed": 3,
    "total": 5,
    "failed": 1,
    "skipped": 1,
    "timeTaken": "2.684"
  },
  "reportUrl": "https://storage.googleapis.com/rattle-prod-artifacts/report-1737031013923-report/ratl-report.html"
}

Accessibility Testing

Start Accessibility Assessment

Method: POST Endpoint: /api/v1/accessibility/start Headers:

  • api-key: User API key for authorization.

Query Parameters:

  • assessment_id: ID of the accessibility assessment.

Response:

{
  "success": true
}

Get Accessibility Report

Method: GET Endpoint: /api/v1/accessibility/report Headers:

  • api-key: User API key for authorization.

Query Parameters:

  • assessment_id: ID of the assessment.

  • workspace_id: ID of the workspace.

Response:

{
  "_id": "6788fd8487eb641b58d01bcc",
  "status": "completed",
  "reports": [
    {
      "url": "https://www.tiraz5.de",
      "reports": {
        "html": "https://storage.googleapis.com/rattle-prod-artifacts/report-1737031044131-accessibility-report.html",
        "json": "https://storage.googleapis.com/rattle-prod-artifacts/report-1737031044131-accessibility-report.json",
        "png": "https://storage.googleapis.com/rattle-prod-artifacts/report-1737031044131-accessibility-report.png",
        "pdf": "https://storage.googleapis.com/rattle-prod-artifacts/report-1737031044131-accessibility-report.pdf"
      },
      "summary": {
        "violations": 18,
        "details": [
          {
            "ruleId": "color-contrast",
            "impact": "serious",
            "description": "Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds",
            "count": 12
          }
        ]
      }
    }
  ]
}

Web Automation

Start Web Automation

Method: POST Endpoint: /api/v1/webshot/start

Headers:

  • api-key: User API key for authorization.

Query Parameters:

  • webshot_id: ID of the web Automation flow.

Response:

{
    "success": true,
    "task_id": "44d147763b9649578fb0808d6d87b7a0"
}

Get Web Report

Method: GET Endpoint: /api/v1/webshot/report

Headers:

  • api-key: User API key for authorization.

Query Parameters:

  • task_id: ID of the end-to-end flow.

Response:

{
    "status": "completed",
    "report": "https://ril.ratl.ai/v2/tests/66b31ccdfa70c624e5149880/webshots/44d147763b9649578fb0808d6d87b7a0/report"
}
PreviousCredit Management Overview

Last updated 1 month ago