test-api-basic-function

Automate baseline API testing for REST and HTTP endpoints with Markdown reports.

36|10|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/jie023/trae-setting --skill test-api-basic-function
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-api-basic-function
Source: https://github.com/jie023/trae-setting/tree/main/skills/test-api-basic-function
Command: npx skills add https://github.com/jie023/trae-setting --skill test-api-basic-function

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

该技能解决在 API 开发阶段对接口进行系统性验证的繁琐和易错问题,通过自动化生成并执行正向、负向和边界测试用例,并提供可读性高的 Markdown 测试报告。

Core Features & Use Cases

  • 自动化 API 基线测试:对 REST/HTTP 接口进行功能性、健壮性和边界测试,确保返回符合预期。
  • 测试用例生成与报告:自动生成正向、负向和边界测试用例,输出 Markdown 格式报告,便于团队评审。
  • 使用场景:在接口完成后,快速验证输入校验、错误处理和边界条件,集成到 CI/CD 流程中。

Quick Start

按照以下步骤快速启动并使用该技能,请提供 API 的 URL、请求方法、请求头、请求参数等信息,系统将自动生成并执行测试用例并输出 Markdown 报告。

Frequently Asked Questions about test-api-basic-function

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate API testing for positive, negative, and boundary cases?

API testing for positive, negative, and boundary cases is automated by generating deterministic test cases and executing them across REST or HTTP interfaces. The skill validates endpoint behavior and outputs a Markdown report for team review.

How do I generate Markdown test reports for REST API validation?

Markdown test reports for REST API validation are generated automatically after executing baseline functional, negative, and boundary tests. The skill processes endpoint responses and produces a readable Markdown report summarizing the test results.

Do I need Playwright MCP to run automated API tests?

Playwright MCP is required to run these automated API tests. The skill relies on the Playwright MCP toolchain and a JavaScript or TypeScript runtime to execute test cases and validate endpoint behavior.

Can I integrate automated API baseline testing into a CI/CD workflow?

Automated API baseline testing can be integrated into a CI/CD workflow. By providing the API URL, request method, headers, and parameters, the skill automatically executes validation tests and generates reports suitable for continuous integration pipelines.

What is the best way to validate input validation and error handling for HTTP interfaces?

Validating input validation and error handling for HTTP interfaces is best handled through automated boundary and negative testing. The skill generates targeted test cases to verify that endpoints return expected responses for various edge case inputs.

Are there limitations when using Playwright MCP for boundary testing?

Boundary testing using Playwright MCP requires a JavaScript or TypeScript runtime environment. The skill is designed for REST or HTTP interfaces and generates deterministic test cases, meaning it is limited to the supported protocols and runtime environments.