HttpRunner is a test framework for HTTP APIs, performance checks, and UI automation across several platforms. The v5 line centers on a Go-based hrp command-line tool.
Overview
HttpRunner is an open test framework that began with API and performance testing and expanded into UI automation and, in later versions, vision- and model-assisted flows. It exposes YAML, JSON, go test, and pytest-style cases, variables, extraction, validation, and hooks for complex scenarios.
The current v5 release emphasizes a Golang implementation distributed as the hrp CLI, while older Python engine support is split into a separate repository. Capabilities include HTTP, HTTP/2, and WebSocket testing, load generation, generating cases from HAR, Postman, Swagger, or curl, and collecting network timing metrics during runs.
UI automation support targets Android, iOS, Harmony, and browser environments using a vision-driven approach. Installation is oriented around the hrp binary for macOS, Linux, and Windows without mandating a full language runtime stack on the machine.
Key features
- YAML and JSON test cases
- hrp command-line runner
- HTTP, HTTP/2, and WebSocket tests
- Load and performance testing
- Case import from HAR and Swagger
- Variables, hooks, and validators
- Multi-platform UI automation
- Plugin-style custom functions
Use cases
- API regression and integration tests
- HTTP load testing
- Cross-platform UI automation
- CI pipelines for microservices