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.2.tar.gz (151.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.2-py3-none-any.whl (80.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: httpfpt-0.8.2.tar.gz
  • Upload date:
  • Size: 151.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for httpfpt-0.8.2.tar.gz
Algorithm Hash digest
SHA256 5672d048be08b095aff9862a086494118bad8914530664825bd398b18338cbf1
MD5 b78f08c54ab62f81f849cf69a822bc6d
BLAKE2b-256 771da78fbac4004b4d67b206067e66af01b255e48b22748daa427ef0c2c6f196

See more details on using hashes here.

File details

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

File metadata

  • Download URL: httpfpt-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 80.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for httpfpt-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d4143558cd99cbc0c1ec6d8282a0f2183276824b24ba9bf9838793371c4e029d
MD5 5716c7fbce6715044bc8cc403777fd46
BLAKE2b-256 a3a4258433e41fe9fe2469068b05c498ad4153ad8fefd842909e45a550817b88

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