Skip to main content

基于 HTTP 请求的快速数据驱动 pytest 接口自动化测试框架

Project description

HttpFPT

GitHub Workflow Status (with event) Checked with pyright GitHub Static Badge GitHub release (with filter) Ruff

[!IMPORTANT]
当前分支为 SDK 版本,如需修改源码进行功能定制,建议切换到 master 分支

基于 HTTP 请求的快速数据驱动 pytest 接口自动化测试框架

我在掘金发表了关于 HttpFPT 的前身和由来,包括部分功能点的说明, 感兴趣

的小伙伴可以一睹为快,点击跳转

功能点

  • 多项目分级,自由切换,互不干扰
  • 测试数据隔离,自动解析与验证
  • 测试数据错误定位(参数错误,重复测试用例ID...)
  • 多环境自定义配置,不同用例可以选择不同的运行环境
  • 动态环境配置,自动识别和应用当前请求所需的基础环境配置
  • 动态参数化,可通过全局变量,局部变量,缓存变量,关联变量等方式进行参数化
  • 数据依赖,支持接口返回数据共享,轻松实现接口依赖
  • 钩子函数,支持调用自定义钩子函数,实现更多的自定义功能
  • 日志记录,自动记录测试过程中的请求数据日志
  • 多元化断言,json 断言,sql 断言,json-schema 断言,正则断言,原生 python assert 断言
  • 兼容 yaml / json 两种文件格式编写测试数据
  • 测试用例自动生成,可以根据测试数据文件自动生成测试用例
  • 自动测试报告,html, allure
  • 自动测试结果通知,飞书,钉钉,企业微信,邮箱
  • ......

流程图

httpfpt_flowchart

帮助

有关更多详细信息,请参阅 官方文档

互动

Discord

赞助

如果此项目能够帮助到你,你可以赞助作者一些咖啡豆表示鼓励::coffee: Sponsor :coffee:

Stargazers over time

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

httpfpt-0.8.0.tar.gz (57.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

httpfpt-0.8.0-py3-none-any.whl (85.6 kB view details)

Uploaded Python 3

File details

Details for the file httpfpt-0.8.0.tar.gz.

File metadata

  • Download URL: httpfpt-0.8.0.tar.gz
  • Upload date:
  • Size: 57.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.22.3 CPython/3.10.11 Windows/10

File hashes

Hashes for httpfpt-0.8.0.tar.gz
Algorithm Hash digest
SHA256 ec724f2c10b336a8e51af889bb61f7c427d8b2f19799e97def574f314031098b
MD5 dea52d26cde78073a80b51165bfddcea
BLAKE2b-256 a20a4b2add77adacf1b808768fc36d4fdec3f5f47722bced68ec7f2294287d4e

See more details on using hashes here.

File details

Details for the file httpfpt-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: httpfpt-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 85.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.22.3 CPython/3.10.11 Windows/10

File hashes

Hashes for httpfpt-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 19ee2bac625012d33ea911586591ef4bee99a5f997c29c81537e005e718b4cb0
MD5 671abe2c3d8d9d86784f30125a0f778d
BLAKE2b-256 ff97623c0105fb85475fbbced32d97aafd240402dde4e043fa32bb609af2b63b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page