Token导航 LogoToken导航

Agent Skill · 效率

ai-test-platform(AI 测试平台)

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

ai-test-platform 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为操作浏览器;许可证为 MIT-0,第三方扫描有提醒项,按安装量在效率类的 21,003 个 Skill 里排第 14,791。

总安装 3,288周安装 137GitHub Stars 公开资料未说明下载 1,096核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ai-test-platform(AI 测试平台)
来源仓库:https://github.com/yontlly/ai-test-platform
安装命令:
openclaw skills install ai-test-platform
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install ai-test-platform

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

AI 测试平台专为 LangChain+DeepSeek 驱动的自动化测试场景设计。实现智能测试用例生成与执行反馈,提升端到端验证效率。适合集成到 CI/CD 流程中,自动识别失败日志并定位问题根源。安装命令为 openclaw skills install ai-test-platform,需配置相关凭证与运行环境。

使用时需确认夹具数据来源,避免因测试数据偏差导致逻辑错误。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install ai-test-platform;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

ai-test-platform 怎么安装?

在终端执行 openclaw skills install ai-test-platform。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ai-test-platform 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

ai-test-platform 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

ai-test-platform 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

ai-test-platform 用的人多吗?

公开数据是累计安装 3,288 次,近一周安装 137 次,下载 1,096 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

ai-test-platform 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理效率类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
github

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
ai-test-platform

AI 测试平台 · 本页

3,288—操作浏览器MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
ai-test-platform
description
This skill should be used when developing or using an AI-powered automated testing platform based on LangChain+DeepSeek. It implements intelligent test case generation, automated script execution (API/UI), test reporting, and authorization management for internal company use.

AI Test Platform Developer Guide

Purpose

Build an AI-powered automated testing platform for internal company use, leveraging DeepSeek LLM and LangChain framework to achieve intelligent test case generation, automated script creation, and test execution management. The platform focuses on API testing (Pytest+Requests) and UI testing (Playwright) with Docker-based isolation and authorization control.

Technology Stack

LayerTechnologyVersionPurpose
FrontendVue3^3.3.0Reactive UI framework
Frontend UIElement Plus^2.4.0UI component library
State ManagementPinia^2.1.0Global state management
BackendFastAPI^0.104.0Async web framework
AI FrameworkLangChain^0.1.0LLM orchestration
LLMDeepSeekAPICore AI capabilities
API TestingPytest^7.4.0Test framework
API Reportingpytest-json-report^1.5.0JSON report generation
UI TestingPlaywright^1.40.0Browser automation
DatabaseMySQL8.0Relational database
Vector DBChroma^0.4.0Vector retrieval
DeploymentDockerLatestContainerization

Architecture Overview

System Layers

【Frontend Layer】Vue3 + Element Plus + Pinia
      ↓ (Polling for progress)
【API Layer】FastAPI + Auth Interceptor
      ↓
【Business Layer】Auth Management, Test Design, Execution, Reporting
      ↓
【AI Layer】LangChain + DeepSeek + RAG (Chroma)
      ↓
【Test Engine Layer】Pytest (API) + Playwright (UI)
      ↓
【Data Layer】MySQL (Business) + Chroma (Vectors)

Core Modules

1. Authorization Management Module

Permission Types:

  • all - Full functionality
  • generate - Case/script generation only
  • execute - Script execution only

Encryption:

  • Algorithm: AES
  • Key generation: "yanghua" + timestamp + "360sb"

Authorization Flow:

Request with auth_code → AuthInterceptor → Verify validity/expire/count/permission
→ Pass: Allow access + increment usage count
→ Fail: Return 401/403

Key Services:

  • AuthCodeService: CRUD, validation, count updates
  • AuthService: Global request interceptor

2. AI Generation Module

Supported Document Formats:

  • Word (.docx) - python-docx
  • Excel (.xlsx) - openpyxl
  • PDF (.pdf) - PyPDF2/pdfplumber
  • Markdown (.md) - markdown

Core Chains:

  • TestCaseChain: Generate test cases from documents
  • ApiScriptChain: Generate Pytest+Requests scripts
  • UiScriptChain: Generate Playwright scripts

AI Configuration:

  • No QPS limit
  • Retry: 2 times on failure
  • Timeout: 30 seconds
  • Expected usage: ≤20 calls/day

3. API Automation Module

Integration:

  • Execute via pytest.main()
  • Parse results using pytest-json-report

Environment:

  • Docker container isolation
  • Dependencies managed via requirements.txt

Script Features:

  • Save, edit, categorize, batch manage
  • Configure test environment, headers, global params
  • Real-time debugging with request/response

4. UI Automation Module

Playwright Configuration:

  • Headless mode (no UI)
  • Screenshot on every test case (success + failure)
  • Trace on failure (HTML trace viewer)
  • Support Chrome and Edge

Capabilities:

  • AI-generated element locators (ID/XPath)
  • Flow script generation (login, click, input, assert, screenshot)
  • Multi-browser compatibility

5. Test Execution Module

Features:

  • Single or batch script execution
  • Real-time log capture
  • Execution timeout control
  • Failure retry mechanism
  • Historical record management

6. Test Report Module

Auto-generation:

  • HTML reports after execution
  • Export to HTML/PDF
  • AI analysis of failures (simple log analysis)

AI Analysis Prompt:

Analyze the following test execution log and identify the failure reason:
{execution_log}

Provide:
1. Main failure cause
2. Possible problem location
3. Suggested solution

Keep it concise and highlight key information.

7. System Configuration Module

Configuration Management:

  • DeepSeek API settings
  • Environment URLs
  • System initialization

Features:

  • Operation logs
  • Authorization usage logs
  • AI call logs
  • Automatic data backup

Database Schema

Core Tables

  1. auth_codes - Authorization codes

- Fields: id, code(encrypted), permission, expire_time, use_count, max_count, is_active

  1. test_cases - Test cases

- Fields: id, title, content, type(api/ui), created_by, create_time

  1. auto_scripts - Automated scripts

- Fields: id, name, content, type(api/ui), status, created_by, create_time, update_time

  1. execute_records - Execution records

- Fields: id, script_id, auth_code, result(success/fail), log, execute_time, duration

  1. test_reports - Test reports

- Fields: id, record_id, report_content, file_path, ai_analysis, create_time

  1. task_progress - Task progress tracking

- Fields: id, task_id, task_type(generate/execute), status, progress, message, result_data

See references/architecture.md for complete SQL definitions.

API Design

Unified Response Format

{
  "code": 200,
  "msg": "success",
  "data": {}
}

Common Parameters

  • auth_code (required) - Authorization code for all core endpoints

Core Endpoints

Authorization:

  • POST /admin/add_auth - Create authorization code
  • POST /auth/verify - Verify authorization
  • GET /auth/list - List authorization codes

AI Generation:

  • POST /generate/case - Generate test cases
  • POST /generate/api - Generate API scripts
  • POST /generate/ui - Generate UI scripts
  • GET /progress/{task_id} - Get task progress

Automation Management:

  • POST /script/save - Save script
  • GET /script/list - List scripts
  • GET /script/{id} - Get script details

Test Execution:

  • POST /execute/run - Run test script
  • GET /execute/record - Get execution records

Report Management:

  • GET /report/generate - Generate report
  • GET /report/export - Export report

System Configuration:

  • GET /system/config - Get system config
  • POST /system/config - Update system config

Frontend Progress Polling

Implementation:

  • State management: Pinia
  • Polling interval: Every 2 seconds
  • Progress types:

- AI generation (parsing → vectorizing → generating → complete) - Script execution (running → collecting → reporting)

Polling Endpoint:

GET /api/progress/{task_id}
# Response
{
  "status": "processing|completed|failed",
  "progress": 50,
  "message": "Generating test cases..."
}

Deployment

Docker Compose Setup

version: '3.8'
services:
  mysql:
    image: mysql:8.0
    environment:
      MYSQL_ROOT_PASSWORD: root123
      MYSQL_DATABASE: ai_test_platform
    volumes:
      - mysql_data:/var/lib/mysql
    ports:
      - "3306:3306"

  app:
    build: .
    ports:
      - "8000:8000"
    depends_on:
      - mysql
    volumes:
      - ./data:/app/data
    environment:
      - DATABASE_URL=mysql+pymysql://root:root123@mysql:3306/ai_test_platform
      - DEEPSEEK_API_KEY=your_api_key

volumes:
  mysql_data:

Data Persistence

  • MySQL: Docker Volume
  • Scripts: ./data/scripts/
  • Reports: ./data/reports/
  • Screenshots: ./data/screenshots/
  • Vectors: ./data/chroma/

When to Use This Skill

Use this skill when:

  • Developing the AI test platform backend or frontend
  • Implementing test case generation features
  • Creating API or UI automated test scripts
  • Integrating AI models (DeepSeek) with LangChain
  • Setting up authorization and security mechanisms
  • Configuring Docker deployment environment
  • Debugging test execution issues
  • Designing test report generation

Usage Guidelines

Backend Development

  1. Follow FastAPI best practices
  2. Implement async/await for I/O operations
  3. Use Pydantic models for request/response validation
  4. Implement proper exception handling
  5. Add logging for all operations

Frontend Development

  1. Use Vue3 Composition API
  2. Implement proper state management with Pinia
  3. Handle loading and error states
  4. Implement progress polling for async operations
  5. Follow Element Plus component guidelines

AI Integration

  1. Use LangChain for chain orchestration
  2. Implement retry logic for API calls
  3. Handle timeouts gracefully
  4. Cache common responses
  5. Monitor API usage

Security Considerations

  • All core endpoints must verify auth_code
  • Encrypt authorization codes using AES
  • Sanitize all user inputs
  • Implement rate limiting (optional)
  • Never expose sensitive data in logs

Project Structure

ai-test-platform/
├── backend/
│   ├── app/
│   │   ├── api/              # API endpoints
│   │   ├── core/             # Core security and config
│   │   ├── models/           # Database models
│   │   ├── schemas/          # Pydantic schemas
│   │   ├── services/         # Business logic
│   │   │   ├── auth.py       # Authorization service
│   │   │   ├── ai.py         # AI generation service
│   │   │   ├── execute.py    # Execution service
│   │   │   └── report.py     # Report service
│   │   └── main.py           # FastAPI app
│   ├── tests/                # Test files
│   ├── Dockerfile
│   └── requirements.txt
├── frontend/
│   ├── src/
│   │   ├── components/       # Vue components
│   │   ├── pages/            # Page components
│   │   ├── stores/           # Pinia stores
│   │   ├── api/              # API calls
│   │   └── main.js           # Entry point
│   └── package.json
├── data/                     # Persistent data
│   ├── scripts/
│   ├── reports/
│   ├── screenshots/
│   └── chroma/
├── docs/                     # Documentation
├── scripts/                  # Utility scripts
│   ├── generate_auth.py      # Auth code generator
│   ├── init_db.py            # Database initializer
│   └── setup.sh              # Setup script
├── docker-compose.yml
└── README.md

Development Workflow

1. Setup Development Environment

# Clone and setup
git clone <repo>
cd ai-test-platform

# Backend setup
cd backend
python -m venv venv
source venv/bin/activate  # or venv\Scripts\activate on Windows
pip install -r requirements.txt

# Frontend setup
cd ../frontend
npm install

2. Initialize Database

python scripts/init_db.py

3. Generate Authorization Codes

python scripts/generate_auth.py

4. Run Development Server

# Backend
cd backend
uvicorn app.main:app --reload

# Frontend
cd frontend
npm run dev

5. Docker Deployment

docker-compose up -d

Reference Documents

  • references/architecture.md - Complete system architecture and database design
  • references/AI 自动化测试平台 需求规格说明书.docx - Original requirements
  • references/AI 自动化测试平台 系统设计说明书.docx - Original system design

Next Steps

  1. Review architecture documentation in references/architecture.md
  2. Set up development environment
  3. Initialize database schema
  4. Generate authorization codes using provided script
  5. Start with core backend services (Auth, AI Generation)
  6. Implement frontend components
  7. Test end-to-end workflows
  8. Deploy using Docker Compose

Notes

  • This platform is designed for internal company use only
  • All data must be stored internally, no external uploads
  • DeepSeek API is the only allowed external model integration
  • Authorization codes are mandatory for all core features
  • Docker-based isolation ensures security and consistency

平台分布

OpenClaw

91.48%
按下载量换算1,003

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills