Skip to main content

自动生成测试报告工具

Project description

介绍

一款用于自动生成测试报告的工具

注意事项:需安装谷歌浏览器

  • chrome_driver.py 用于检查是否安装谷歌浏览器驱动及驱动版本是否兼容,若无驱动或驱动版本不兼容,则自动下载

  • db_connect.py 存放操作数据库的方法

  • get_db.py 用于连接数据库

  • config.yml 存放数据库配置文件

  • project_data.yml 存放数据文件

  • template.docx 测试报告的模板

  • report_res:运行时自动生成,用于存放生成的结果图片

  • test_report.py:主文件引用的脚本文件

  • run.py 主文件,执行的入口

使用说明

运行run.py文件,生成的测试报告默认保存在D:/中,可在运行时指定存放路径。

例:

from generate_report import run   # 引包

run.run()   # 运行run.py文件中的run函数


请输入项目名称:
请输入撰写人:
请输入预估di值,若无预估di值,请输入数字0:
请指定报告生成的路径,若不指定,请按回车键(注意:在输入路径时,请不要使用反斜杠):

版本规范

保持和python版本命名一致,格式:x.x.x

  • 大版本:1.x.x 第一位变化

  • 小版本:x.1.x 第二位变化

  • bug修复版本:x.x.1 最后一位变化

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

generate_report-1.0.0.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

generate_report-1.0.0-py3-none-any.whl (35.5 kB view details)

Uploaded Python 3

File details

Details for the file generate_report-1.0.0.tar.gz.

File metadata

  • Download URL: generate_report-1.0.0.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for generate_report-1.0.0.tar.gz
Algorithm Hash digest
SHA256 755095480dc8336078f95bfb4eaa214f8bc5da7041386f09a97526bd5d1d656d
MD5 1e1151b9aaa248e999be22622db74845
BLAKE2b-256 ce3917c6f4d04885d08353cc3a55c2b9f20e411ca7b3cf132a29558b7e42b7d6

See more details on using hashes here.

File details

Details for the file generate_report-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for generate_report-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc25261b6119d392fd0241d63304d9225a626763717082a86a7c77a81da3ce32
MD5 824f9f3991e94ab5dfef78417b0ddd67
BLAKE2b-256 9762dfd0d724aa2ca7995e15cf41f940abc8dd71c276b380ad1cadfc284d2f2c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page