{"id":16543104,"url":"https://github.com/wuranxu/pityweb","last_synced_at":"2025-04-09T22:13:07.747Z","repository":{"id":37537876,"uuid":"346037948","full_name":"wuranxu/pityWeb","owner":"wuranxu","description":"🎉一个持续迭代的开源接口测试平台(前端)，欢迎大家多提issue多给反馈。 求star⭐，我会努力更新下去的！","archived":false,"fork":false,"pushed_at":"2024-06-15T17:42:41.000Z","size":11542,"stargazers_count":149,"open_issues_count":0,"forks_count":61,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T22:13:02.705Z","etag":null,"topics":["antd","antdpro","apitest","autotest","jsx","react","testplatform","umi"],"latest_commit_sha":null,"homepage":"https://wuranxu.github.io/pityDoc","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wuranxu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-09T14:41:05.000Z","updated_at":"2025-02-27T20:03:43.000Z","dependencies_parsed_at":"2023-02-09T22:30:53.163Z","dependency_job_id":"e2a102dc-7cf9-40ff-89cb-3ef21b954926","html_url":"https://github.com/wuranxu/pityWeb","commit_stats":{"total_commits":250,"total_committers":7,"mean_commits":"35.714285714285715","dds":0.348,"last_synced_commit":"8f80b123339d3f7de2c72b0d0215dab4e9f8d766"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuranxu%2FpityWeb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuranxu%2FpityWeb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuranxu%2FpityWeb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuranxu%2FpityWeb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wuranxu","download_url":"https://codeload.github.com/wuranxu/pityWeb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119292,"owners_count":21050755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["antd","antdpro","apitest","autotest","jsx","react","testplatform","umi"],"created_at":"2024-10-11T18:59:21.599Z","updated_at":"2025-04-09T22:13:07.721Z","avatar_url":"https://github.com/wuranxu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[English](https://github.com/wuranxu/pity/blob/main/README_EN.md)\n\n![png](https://img.shields.io/badge/React-18+-blue)\n![png](https://img.shields.io/badge/contributors-3-green)\n\n### 体验地址\n\n  [http://pity.fun](http://pity.fun)\n\n### 技术栈\n\n- [x] antd pro 👍\n- [x] dva 🎶\n- [x] jsx 🎉\n\n### 后端地址\n\n  [🎁 快点我](https://github.com/wuranxu/pity)\n\n## ☕ 说明\n\n这是一个具备完整`开发手册`(开发手册，手把手教那种, 可能前端教程没有那么丰富)，严格按照`写一块内容`，`补一篇文章`的形式创作而成，其中也经历了从`Flask`到`FastApi`\n的快速过渡。也许代码质量没有特别高，但是对于新人来说，跟着一步一步，不但可以完成从`接口自动化框架`到`接口自动化平台`的转变，还能从中看到作者不断优化的过程。\n\n如果你也想从0到1开始打造一个测试平台，那`pity`将是你不二的选择。话不多说，赶快开始体验吧！靓仔靓女们~\n\n\u003cdetails open=\"open\"\u003e\n\u003csummary\u003e火热开发中\u003c/summary\u003e\n\n| 功能点    | 敬请期待   |\n|:-------|:-------|\n| Mock   | 🍔🍔   |\n\n\u003c/details\u003e\n\n\n[在线体验 🍍](https://pity.fun/)\n\n\u003cdetails open=\"open\"\u003e\n\u003csummary\u003e🌙 已有功能\u003c/summary\u003e\n\n| 功能点       | 状态  |\n|:----------|:----|\n| 用例录制生成 🔥 | ✔   |\n| har导入 🔥  | ✔   |\n| http测试    | ✅   |\n| 测试集合      | ✅   |\n| 定时任务      | ✅   |\n| 全局变量      | ✅   |\n| 自定义脚本     | ✅   |\n| 场景测试      | ✅   |\n| 后台管理      | ✅   |\n| 文件上传测试    | ✅   |\n| 在线SQL     | ✅   |\n| 在线Redis   | ✅   |\n| 测试报告      | ✅   |\n| 项目管理      | ✅   |\n| 权限系统      | ✅   |\n| 串行/并行执行用例 | ✅   |\n| 参数提取      | ✅   |\n\n\u003c/details\u003e\n\n### 🚚 即将到来\n\n| 功能点          | 敬请期待 |\n|:-------------|:-----|\n| CI/CD        | 🎉🎉🎉   |\n| HttpRunner支持 | 🎉🎉🎉   |\n| 数据工厂         | 🎉🎉🎉   |\n| 精准测试         | 🎉🎉🎉   |\n| 组织架构         | 🎉🎉🎉   |\n| 用例评分         | 🎉🎉🎉   |\n\n![](https://static.pity.fun/picture/20220807220041.png)\n\n\u003cdetails\u003e\n\u003csummary\u003e平台预览(点击可展开)\u003c/summary\u003e\n\n#### 🍦 工作台\n\n![](https://static.pity.fun/picture/2022-2-28/1646063228180-image.png)\n\n#### 测试计划\n\n![](https://static.pity.fun/picture/2022-2-25/1645803999678-image.png)\n\n#### 测试报告\n\n![](https://static.pity.fun/picture/2022-2-25/1645804075353-image.png)\n\n#### 测试用例\n\n![](https://static.pity.fun/picture/2022-2-25/1645804276470-image.png)\n\n#### SQL客户端\n\n![](https://static.pity.fun/picture/2022-2-25/1645804151559-image.png)\n\n#### 项目管理\n\n![项目管理](https://static.pity.fun/picture/2022-2-26/1645854332681-image.png)\n\n\u003c/details\u003e\n\n## ✉ 使用文档\n\n[使用文档(github)](https://wuranxu.github.io/pityDoc/)\n\n[备用地址(gitee)](https://woodywrx.gitee.io/pityDoc/)\n\n## 😊 开发参考文章\n\n[开发文档-公众号](https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzIyMjUwOTk5Mw==\u0026action=getalbum\u0026album_id=1983195471686762500\u0026scene=173\u0026from_msgid=2247484522\u0026from_itemidx=8\u0026count=3\u0026nolastread=1#wechat_redirect)\n\n[开发文档-掘金](https://juejin.cn/column/6977933898952998926)\n\n### 😢 关于Pity平台\n\npity是一款专注于api自动化的工具，采用`Python`+`FastApi`+`React`开发，目前还不能作为生产级别的工具，作者正在努力之中。\n\n这个项目叫pity，一个从0开始写的自动化测试平台(基于FastApi)，旨在总结自己最近几年的工作经验，也顺便帮助大家进步。目前还在火热更新中，基本上每周都会更新几篇吧，前期以教学+编码为主，后期以实现功能为主。希望大家能够喜欢！~\n\n项目起源是本人很期待的某家公司🐧拒绝了我，觉得特别遗憾吧😅。加上这一年`浑浑噩噩`的，也没有什么产出，做的东西不如18，19年多。所以打算把自己18-19的项目重写出来，给大家一些参考。\n\n### 🎉 二次开发\n\n1. 拉取代码\n\n```bash\n$ git clone https://github.com/wuranxu/pity\n$ cd pity\n```\n\n2. 安装依赖\n\n```bash\n# 可换豆瓣源或者清华源安装依赖\n$ pip install -r requirements.txt\n```\n\n3. 安装并启动redis\n\n4. 安装并启动mysql\n\n5. 修改conf/dev.env\n\n修改其中mysql和redis连接信息，redis虽然可以不开启，但是会导致`定时任务重复执行`（基于redis实现了分布式锁）。\n\n6. 启动服务\n\n```bash\n$ python pity.py\n```\n\n7. 注册用户\n\n打开浏览器输入: `http://localhost:7777`进入登录页。\n\n点击注册按钮，第一个注册的用户会成为`超级管理员`，拥有一切权限。\n\n![](https://static.pity.fun/picture%2F%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20220504235808.png)\n\n登录后就可以开启pity之旅啦！\n\n### 📞 作者介绍\n\n    大家好，我是米洛，一个乐于分享，喜欢钻研技术的测试开发工程师，目前就职于上海某互联网公司。\n\n    一个打游戏不拿首胜不睡觉的韭0后。\n\n    个人技术公众号: `米洛的测开日记`，欢迎大家关注我，掌握最新测试开发知识。\n\n![](https://static.pity.fun/picture/2022-1-1/1641020334827-qrcode_for_gh_f52fb2135f68_430.jpg)\n\n### ❤️ 平台初心\n\n虽说各大公司都有自己的接口测试平台，并且做的肯定比我的强。但是还是有`很多公司`，并没有这样的条件去投入人力专职开发接口测试平台。\n\n博主我在18年的时候接触到了Yapi这款接口文档管理工具，那是去哪儿团队开发的，但现在已经连官网都找不到了，仅仅只留下一个github.io的地址，让人叹息。\n\n扯远了，我看到他们大前端团队开源了如此一款精美的工具，内心也是激动万分。\n\n人活一辈子，并不长久，总得做些有意义的事情。虽然开源这件事情基本上没有什么收益可言，但总得有人做，世界才会`更美好`是不？\n\n所以我打算制作这样一款工具，面向的就是中小型公司，他们没有那么多时间/人力成本，甚至是测试资源较为匮乏，那么如果你来到了这儿，我想这款工具可以给你们带来帮助！如果是有一定的经验的Python测试开发，这款工具也可以给你带来一定的借鉴作用。\n\n### 💪 落地效果\n\n可能有人会怀疑项目是否能真正运用到生产系统里，这款工具其实是我在某大型共享单车公司实践2年多的一款工具。之前是golang开发，如今我离开那家公司，打算保留原本功能的基础之上进一步优化，并新增更多丰富的特性。所以大家可以放心，它绝对是一款能方便解决你api自动化测试的利器。\n\n### 😊 已有功能\n\n+ [x] 🔥 完善的用户登录/注册机制，提供第三方(github)登录\n- [x] 🀄 完善的项目管理机制\n* [x] 🚴 结合FastApi，利用asyncio让Python代码也可以起飞\n- [x] 💎 完整的接口测试流程\n- [x] 📝 强大的数据构造器, 解决接口数据依赖问题\n- [x] 🎨 在线调试http请求，堪比网页版本postman\n- [x] 🍷 完善的全局变量机制，拒绝case中的死数据\n- [x] 🚀 速度还挺快的\n- [x] 🐍 在线redis请求\n- [x] 🐎 测试计划/集合\n- [x] 🙈 在线数据库ide，数据库管理功能\n- [x] 📰 漂亮的邮件通知\n- [x] 😹 定时构建测试用例\n- [x] 🐧 精美的测试报告展示页面\n\n## 🙋 待开发的功能\n\n- [ ] 💀 app管理功能，支持app的导入和导出\n\n* [ ] 😼 ~~代码覆盖率增量/全量统计功能~~\n\n- [ ] 🐘 微服务化\n- [ ] 🐄 数据工厂，强大的造数功能\n- [ ] 🐸 用例支持har，jmx等格式导入\n- [ ] 👍 CI/CD，类pipeline功能\n- [ ] 🌼 推送功能，支持钉钉/企信推送\n- [ ] 🌛 支持dubbo/grpc\n- [ ] 🐛 打通yapi\n- [ ] 🌽 等等等等\n\n### 赞助\n\n如果您觉得这个项目对你`有所帮助`，可以请我吃根辣条哦~或者帮忙点个star，让我创作更有动力！！！谢谢大家啦！\n\n![](http://oss.pity.fun/picture/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20220513224046.jpg\n)\n\n![](http://oss.pity.fun/picture/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20220513224054.jpg)\n\n## 🎨 微信交流群\n\n二维码会经常过期，可以加我个人微信: `wuranxu`，我拉你到群聊。\n\n![](https://static.pity.fun/picture/2022-1-2/1641097484952-ddff5bf23bdccaaf23fa227aa2e9957.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwuranxu%2Fpityweb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwuranxu%2Fpityweb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwuranxu%2Fpityweb/lists"}