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.1.tar.gz (57.8 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.1-py3-none-any.whl (85.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: httpfpt-0.8.1.tar.gz
  • Upload date:
  • Size: 57.8 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.1.tar.gz
Algorithm Hash digest
SHA256 1a603c80c2cf0509b4ea4f8523cec9b6cd4b5c33f74aab04ed20a7519222b3ee
MD5 9e2fb2ccf9f4d610f44cda6fa7bc35c4
BLAKE2b-256 e483a1f15322f6f4681ed381f4fbb4824244eb91e67194a026d80e5969675f41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: httpfpt-0.8.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61baae0f46a60e91f1bcbecd2b31f3f361b721d388f8a8d30a945b114d199783
MD5 32c6d7db0a22c80786c9114ff28d8942
BLAKE2b-256 d129aa7d29f1f58c73173099864c1913d0acb1b4c739a5813e3f4e2ea6b2b596

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