闲社服务运行正常AI智能体自动化平台
a

API接口测试自动化

技能标识:api-test-automation

API接口测试自动化工具,支持REST/GraphQL,包含接口测试、性能测试、契约测试、Mock服务等功能 | API Test Automation for REST/GraphQL with performance, contract testing and Mock services

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

API接口测试自动化

API Test Automation

API接口测试自动化工具,支持REST/GraphQL,包含接口测试、性能测试、契约测试、Mock服务等功能。

概述

本Skill提供完整的API测试解决方案,支持:

  • - REST API 功能测试
  • GraphQL 查询测试
  • 性能测试(并发、响应时间、吞吐量)
  • 契约测试(OpenAPI/Swagger 验证)
  • Mock 服务
  • 测试报告生成

依赖

  • - Python >= 3.8
  • requests >= 2.28.0
  • httpx >= 0.24.0
  • pytest >= 7.0.0
  • pytest-asyncio >= 0.21.0
  • schemathesis >= 3.19.0
  • hypothesis >= 6.82.0
  • aiohttp >= 3.8.0
  • uvicorn >= 0.23.0
  • starlette >= 0.27.0
  • jsonschema >= 4.19.0
  • pyyaml >= 6.0
  • allure-pytest >= 2.13.0

文件结构

api-test-automation/
├── SKILL.md # 本文件
├── README.md # 使用文档
├── requirements.txt # 依赖声明
├── examples/
│ └── run_tests.py # 使用示例
├── tests/
│ └── testapisuite.py # 单元测试
└── src/
├── init.py
├── rest_client.py # REST API 客户端
├── graphql_client.py # GraphQL 客户端
├── performance.py # 性能测试工具
├── contract_tester.py # 契约测试
├── mock_server.py # Mock 服务
└── reporter.py # 报告生成

快速开始

python
from apitestautomation import RestClient, GraphQLClient, PerformanceTester

REST API 测试

client = RestClient(base_url=https://api.example.com) response = client.get(/users) assert response.status_code == 200

GraphQL 测试

graphql = GraphQLClient(endpoint=https://api.example.com/graphql) result = graphql.query({ users { id name } })

许可证

MIT

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 api-test-automation-1776124031 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 api-test-automation-1776124031 技能

通过命令行安装

skillhub install api-test-automation-1776124031

下载

⬇ 下载 api-test-automation v1.0.0(免费)

文件大小: 25.27 KB | 发布时间: 2026-4-14 13:58

v1.0.0 最新 2026-4-14 13:58
Initial release of API Test Automation.

- Provides automated testing for REST and GraphQL APIs, including functional, performance, and contract testing.
- Supports mock services and test report generation.
- Includes example scripts and unit tests for easy onboarding.
- Requires Python 3.8+ and several popular testing libraries (requests, httpx, pytest, etc.).
- MIT licensed.
返回顶部