Code Monkey home page Code Monkey logo

beiker1415 / httpfpt_wjr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wu-clan/httpfpt

0.0 0.0 0.0 605 KB

python3 + pytest + parametrize + requests / httpx + yaml + allure + redis + mysql + 飞书 / 钉钉... 低代码数据驱动接口自动化测试框架;用户友好,无需编写代码;多项目自由切换;多方位自定义配置;轻松一点即试;代码全方位文档说明;方法全局typing提示,助你轻松实现二次开发;欢迎 ST / FK / IS / PR 🎉

Home Page: https://wu-clan.github.io/httpfpt_docs/

License: MIT License

Shell 0.06% Python 98.18% HTML 1.76%

httpfpt_wjr's Introduction

HttpFpt

GitHub Workflow Status (with event) GitHub Static Badge GitHub release (with filter)

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

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

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

功能点

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

⬇️ 下载

克隆:

git clone https://github.com/wu-clan/httpfpt.git

🧑‍💻 DEV

  1. 安装依赖:

    pip install -r requirements.txt
  2. 安装 redis 数据库并启动服务

    Redis Windows

    Linux / macOS

    Docker

  3. 安装 mysql 数据库(可选,如果你需要执行 SQL 操作)

    Windows / Linux / macOS

    Docker

Warning

allure 测试报告默认使用 allure-pytest 生成,但是不能直接访问,你必须安装 allure 本地程序和 Java JDK 才能进行可视化浏览

帮助

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

httpfpt_wjr's People

Contributors

wu-clan avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.