编写目的
- pytest受规则限制,参数化是在测试运行之前静态地确定参数值的,这意味着参数化不支持在测试运行时动态生成参数值。
- 缺乏简洁风格的测试报告模板,使得测试人员难以定位失败用例问题。
- 每次自动化项目都需封装大量常用方法。
- 接口请求需重复携带参数,而requests的session并不能满足我们的需求。
库的功能
- 提供环境配置参数,方便切换环境。
- 封装requests方法,用例编写中接口请求只需填写关键信息,省去重复参数填写。
- 数据库封装mysql和pg,简化数据库操作。
- 程序运行后自动生成简约测试报告,详细展示代码异常和用例失败信息,便于问题定位。
- 在测试运行时动态生成参数值(参数化可动态)。
版本更新说明:
- 修复了当一个测试用例存在多个参数化时导致程序报错的问题。
- 修复响应时间排序问题,之前为str类型,改为float类型。
- 新增了对PostgreSQL数据库的配置支持。
- 优化了内置关键函数的命名调用。
- 优化了内置的Excel文件读取方法。
- 优化了将图片嵌入测试报告的方法。
- 将内置fixture移除,解决内置fixture函数无法自动补全的问题。
- 添加ui自动化失败自动截图函数
Metadata
Release files for ddreport 4.6.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ddreport-4.6.6.tar.gz | 18.6 kB | Without provenance | Details for ddreport-4.6.6.tar.gz |
Release files / ddreport-4.6.6.tar.gz
| Download URL | ddreport-4.6.6.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54b7bd013534aa9c9f3fd8b5356922d7f87764a1aee8347b79683c721e86e80c
|
|
BLAKE2b-256 checksum How to use checksums |
849746208a2359ca6dae27b546b321d2df4845d27c4a067f3712ce8bb0520536
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for ddreport 4.6.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.