返回顶部
a

api-test-automationAPI接口测试自动化

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

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
290
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

api-test-automation

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.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部