One-stop solution for HTTP(S) testing.
Project description
ApiMeter
ApiMeter is a simple & elegant, yet powerful HTTP(S) testing framework. Enjoy! ✨ 🚀 ✨
Design Philosophy
- Embrace open source, stand on giants' shoulders, like
Requests
,unittest
andLocust
. - Convention over configuration.
- Pursuit of high rewards, write once and achieve a variety of testing needs
Key Features
- Inherit all powerful features of
Requests
, just have fun to handle HTTP(S) in human way. - Define testcases in YAML or JSON format in concise and elegant manner.
- Record and generate testcases with
HAR
support. seehar2case
. - Supports
variables
/extract
/validate
mechanisms to create full test scenarios. - Supports perfect hook mechanism.
- With
debugtalk.py
plugin, very easy to implement complex logic in testcase. - Testcases can be run in diverse ways, with single testcase, multiple testcases, or entire project folder.
- Test report is concise and clear, with detailed log records.
- With reuse of
Locust
, you can run performance test without extra work. - CLI command supported, perfect combination with
CI/CD
.
Documentation
ApiMeter is rich documented.
Usage
poetry install # 安装依赖
poetry run python -m apimeter /path/to/api # 完整生成报告
poetry run python -m apimeter /path/to/api --skip-success # 报告忽略成功用例数据
poetry build # 打包
poetry publish # 发布,根据提示输入pypi账号密码
pip install -i https://pypi.Python.org/simple/ apimeter # 指定安装源,因为刚发布其他平台未及时同步
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
apimeter-2.6.0.tar.gz
(66.3 kB
view hashes)
Built Distribution
Close
Hashes for apimeter-2.6.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b715539201da88989f4e0a07f46f047d7b5ba660cb3da4590f2d090bc50f947 |
|
MD5 | f6f27d8ba37b9fce034ce7b57e823664 |
|
BLAKE2b-256 | 2e970d1b280ceb79fc08fff156fd7b36ee6d9d807d0652aa00e7d2ee8b9a8e1a |