[开源]一个开源的 接口调试 & 测试工具、Postman 的替代工具

开源系统流程管理
2026-06-28 06:07 3 次浏览 • 0 次下载 0KB
[开源]一个开源的 接口调试 & 测试工具、Postman 的替代工具

一、开源项目简介

API Testing

一个开源的 API 测试工具。

基于命令行的 API 测试工具,支持 HTTP 响应结果验证,并生成 Markdown 等格式的测试报告。Postman 的替代工具!!!

二、开源协议

使用Apache-2.0开源协议

三、界面展示

图片

四、功能概述

功能特性

  • 支持的协议: HTTP, gRPC, tRPC
  • 支持多种格式的测试结果导出: Markdown, HTML, PDF, Stdout
  • 简单易用的 Mock 服务,支持 OpenAPI
  • 支持转换为 JMeter 文件格式
  • 支持响应体字段检查或 eval
  • 使用 [JSON schema] 校验响应参数
  • 支持预处理和后处理 API 请求
  • 支持以服务器模式运行并支持 gRPC 和 HTTP endpoint
  • VS Code 扩展支持
  • Github 扩展支持
  • 支持多种存储方式 (Local, ORM Database, S3, Git, Etcd, etc.)
  • HTTP API record
  • 支持多种安装方式(CLI, Container, Native-Service, Operator, Helm, etc.)
  • 整合 Prometheus, SkyWalking 监控

五、技术选型

快速开始

通过 hd 安装,或从 releases 下载安装:

hd install atest

您也可以通过 kubernetes 安装,更多细节请参考: manifests.

用法如下:

API testing tool
Usage:
  atest [command]
Available Commands:
  completion  Generate the autocompletion script for the specified shell
  func        Print all the supported functions
  help        Help about any command
  json        Print the JSON schema of the test suites struct
  run         Run the test suite
  sample      Generate a sample test case YAML file
  server      Run as a server mode
  service     Install atest as a Linux service
Flags:
  -h, --help      help for atest
  -v, --version   version for atest
Use "atest [command] --help" for more information about a command.

API Testing 使用示例,在此示例中,您将通过 md 格式阅览生成的接口测试报告:

atest run -p sample/testsuite-gitlab.yaml --duration 1m --thread 3 --report md

在 Docker 中使用

详细内容请查看 README.md 文档