Skip to content
Back to search

httprunner

HttpRunner 是一款开源的 API/UI 测试框架,简单易用,功能强大,具有丰富的插件化机制和高度的可扩展能力。

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/httprunner--httprunner/badge.svg)](/listings/httprunner--httprunner)

HTML

<a href="/listings/httprunner--httprunner"><img src="/api/listings/httprunner--httprunner/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 121 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # HttpRunner
  2. [![Github Actions](https://github.com/httprunner/httprunner/actions/workflows/unittest.yml/badge.svg)](https://github.com/httprunner/httprunner/actions)
  3. [![codecov](https://codecov.io/gh/httprunner/httprunner/branch/master/graph/badge.svg)](https://codecov.io/gh/httprunner/httprunner)
  4. [![Go Reference](https://pkg.go.dev/badge/github.com/httprunner/httprunner.svg)](https://pkg.go.dev/github.com/httprunner/httprunner)
  5. [![downloads](https://pepy.tech/badge/httprunner)](https://pepy.tech/project/httprunner)
  6. [![TesterHome](https://img.shields.io/badge/TTF-TesterHome-2955C5.svg)](https://testerhome.com/github_statistics)
  7. > ⚠️ HttpRunner v5 仅包含 Golang 版本,Python 版本的代码已迁移至 [httprunner/httprunner.py](https://github.com/httprunner/httprunner.py)
  8. `HttpRunner`(简称 hrp) 是一个开源测试框架,诞生于 2017 年,最开始应用于 API 接口、性能测试,后面逐步进化为了一款通用、可拓展的测试框架。
  9. 在 2022 年,HttpRunner 开始新增支持 UI 自动化测试,当前已经支持了 Android/iOS/Harmony/Browser 多种系统平台,并在 v5 版本融入了大模型技术,成长成为了一款通用的智能自动化测试框架。
  10. HttpRunner 相比其它 UI 自动化框架,主要特点包括:
  11. - 采用纯视觉驱动方案(OCR/CV/VLM),追求通用性和尽可能低的性能损耗
  12. - 多端统一 API,降低学习和横向拓展的成本
  13. - 拥抱开源生态,充分复用开源组件
  14. - Golang 技术栈,二进制分发部署
  15. > [HttpRunner v5 用户指南(更新中)](https://debugtalk.feishu.cn/wiki/RqGuw17bsizGTik9WuNcGQyhnaf)
  16. > [HttpRunner DeepWiki](https://deepwiki.com/httprunner/httprunner)
  17. ## 使用说明
  18. HttpRunner v5 安装完成后,你将获得一个 `hrp` 命令行工具,执行 `hrp -h` 即可查看到参数帮助说明。
  19. ```text
  20. $ hrp -h
  21. ██╗ ██╗████████╗████████╗██████╗ ██████╗ ██╗ ██╗███╗ ██╗███╗ ██╗███████╗██████╗
  22. ██║ ██║╚══██╔══╝╚══██╔══╝██╔══██╗██╔══██╗██║ ██║████╗ ██║████╗ ██║██╔════╝██╔══██╗
  23. ███████║ ██║ ██║ ██████╔╝██████╔╝██║ ██║██╔██╗ ██║██╔██╗ ██║█████╗ ██████╔╝
  24. ██╔══██║ ██║ ██║ ██╔═══╝ ██╔══██╗██║ ██║██║╚██╗██║██║╚██╗██║██╔══╝ ██╔══██╗
  25. ██║ ██║ ██║ ██║ ██║ ██║ ██║╚██████╔╝██║ ╚████║██║ ╚████║███████╗██║ ██║
  26. ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝
  27. HttpRunner: Enjoy your All-in-One Testing Solution ✨ 🚀 ✨
  28. 💡 Simple Yet Powerful
  29. - Natural language driven test scenarios powered by LLM
  30. - User-friendly SDK API with IDE auto-completion
  31. - Intuitive GoTest/YAML/JSON/Text testcase format
  32. 📌 Comprehensive Testing Capabilities
  33. - UI Automation: Android/iOS/Harmony/Browser
  34. - API Testing: HTTP(S)/HTTP2/WebSocket/RPC
  35. - Load Testing: run API testcase concurrently with boomer
  36. 🧩 High Scalability
  37. - Plugin system for custom functions
  38. - Distributed testing support
  39. - Cross-platform: macOS/Linux/Windows
  40. 🛠 Easy Integration
  41. - CI/CD friendly with JSON logs and HTML reports
  42. - Rich ecosystem tools
  43. Learn more:
  44. Website: https://httprunner.com
  45. GitHub: https://github.com/httprunner/httprunner
  46. Copyright © 2017-present debugtalk. Apache-2.0 License.
  47. Usage:
  48. hrp [command]
  49. Available Commands:
  50. adb simple utils for android device management
  51. build Build plugin for testing
  52. completion Generate the autocompletion script for the specified shell
  53. convert Convert multiple source format to HttpRunner JSON/YAML/gotest/pytest cases
  54. help Help about any command
  55. ios simple utils for ios device management
  56. mcp-server Start MCP server for UI automation
  57. mcphost Start a chat session to interact with MCP tools
  58. pytest Run API test with pytest
  59. report Generate HTML report from test results
  60. run Run API test with go engine
  61. server Start hrp server
  62. startproject Create a scaffold project
  63. wiki visit https://httprunner.com
  64. Flags:
  65. -h, --help help for hrp
  66. --log-json set log to json format (default colorized console)
  67. -l, --log-level string set log level (default "INFO")
  68. --venv string specify python3 venv path
  69. -v, --version version for hrp
  70. Use "hrp [command] --help" for more information about a command.
  71. ```
  72. ## 用户案例
  73. <a href="https://httprunner.com/docs/cases/dji-ibg"><img src="https://httprunner.com/image/logo/dji.jpeg" title="大疆 - 基于 HttpRunner 构建完整的自动化测试体系" width="60"></a>
  74. <a href="https://httprunner.com/docs/cases/youmi"><img src="https://httprunner.com/image/logo/youmi.png" title="有米科技 - 基于 HttpRunner 建设自动化测试平台" width="60"></a>
  75. <a href="https://httprunner.com/docs/cases/umcare"><img src="https://httprunner.com/image/logo/umcare.png" title="通用环球医疗 - 使用 HttpRunner 实践接口自动化测试" width="100"></a>
  76. <a href="https://httprunner.com/docs/cases/mihoyo"><img src="https://httprunner.com/image/logo/miHoYo.png" title="米哈游 - 基于 HttpRunner 搭建接口自动化测试体系" width="100"></a>
  77. ## Subscribe
  78. 关注 HttpRunner 的微信公众号,第一时间获得最新资讯。
  79. <img src="https://httprunner.com/image/qrcode.png" alt="HttpRunner" width="400">
  80. [HttpRunner]: https://github.com/httprunner/httprunner
  81. [boomer]: https://github.com/myzhan/boomer
  82. [locust]: https://github.com/locustio/locust
  83. [jmespath]: https://jmespath.org/
  84. [allure]: https://docs.qameta.io/allure/
  85. [HAR]: https://en.wikipedia.org/wiki/HAR_(file_format)
  86. [hashicorp plugin]: https://github.com/hashicorp/go-plugin
  87. [go plugin]: https://pkg.go.dev/plugin
  88. [版本发布日志]: docs/CHANGELOG.md
  89. [pushgateway]: https://github.com/prometheus/pushgateway
  90. [survey]: https://wj.qq.com/s2/9699514/0d19/
  91. [user-survey-report]: https://httprunner.com/blog/user-survey-report/
  92. [English]: README.en.md
  93. [pytest]: https://docs.pytest.org/

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.