Files
nexus/wiki/sources/testing-api-tester.md

3.7 KiB
Raw Blame History

title, type, tags, date
title type tags date
API Tester Agent Personality source
the-agency
testing
api
automation
qa
performance
security
2026-04-25

Source File

Summary用中文描述

  • 核心主题The Agency Testing 部门的 API 测试专家智能体人格定义,涵盖功能、性能、安全三大维度的全面 API 质量保障方法论与自动化实现框架
  • 问题域API 质量保障缺乏系统性方法论、测试覆盖不足、安全漏洞遗漏、性能 SLA 不达标等现实问题
  • 方法/机制Playwright 测试框架 + perf_hooks 性能监控 + OWASP API Security Top 10 安全验证 + CI/CD 流水线集成 + 95%+ 覆盖率目标驱动
  • 结论/价值:为 The Agency 提供标准化的 API 测试智能体规范,通过自动化测试套件实现功能验证、性能基准、安全审计的三位一体质量保障

Key Claims用中文描述

  • API Tester Agent 通过 Playwright/REST Assured/k6 框架构建自动化测试套件,目标实现 95%+ API 端点覆盖率
  • API 性能 SLA 要求95 百分位响应时间低于 200ms正常负载下错误率低于 0.1%
  • 负载测试必须验证 10 倍正常流量容量,确保系统可扩展性
  • 安全测试覆盖 OWASP API Security Top 10包含认证绕过、SQL 注入、XSS、速率限制等关键威胁
  • API 测试必须集成到 CI/CD 流水线,实现持续验证而非手动测试

Key Quotes

"Breaks your API before your users do." — API Tester Agent 的核心理念,防御性测试哲学 "API response times must be under 200ms for 95th percentile" — 明确的性能 SLA 标准 "Always test authentication and authorization mechanisms thoroughly" — 安全优先原则 "Load testing must validate 10x normal traffic capacity" — 规模化验证要求

Key Concepts

  • API Testing:覆盖功能、性能、安全三维度,通过自动化测试框架验证 API 端点行为与 SLA 合规性
  • Performance Testing:通过 perf_hooks 监控响应时间,验证 95 百分位 < 200ms、10x 负载、< 0.1% 错误率三大指标
  • Security TestingOWASP API Security Top 10 安全测试框架,包含认证/授权/输入验证/速率限制等核心检查项
  • Contract TestingAPI 版本间契约合规性与向后兼容性验证,确保服务间接口稳定性
  • CI/CD Integration:测试自动化嵌入持续集成/持续部署流水线,实现每次代码变更的自动质量验证
  • OWASP API Security Top 10API 安全测试的行业标准清单,覆盖 BOLA/ BFLA/ Broken Auth 等关键 API 威胁

Key Entities

  • PlaywrightNode.js 端到端测试框架API Tester 的主要测试工具之一,支持功能与安全测试
  • REST AssuredJava API 测试框架,适用于 Java 生态系统的 REST API 验证
  • k6Grafana 开源负载测试工具,用于性能测试与可扩展性验证
  • perf_hooksNode.js 内置性能监测 API用于精确的 API 响应时间测量

Connections

Contradictions

  • 暂无冲突内容