Skip to main content

Introduction

Modified based on unittestreport
Added automatic screenshot and picture display for assertion failure
Added the lark Robot api

Install

pip install TheRuffianReportPro

Author

name:TheRuffian
email:bugpz2779@gmail.com
email:theruffian@163.com

Instructions for use

Case

import unittest
from selenium import webdriver
from GavinReportPro.common import failure_monitor


class Test_demo(unittest.TestCase):
    def setUp(self) -> None:
        self.driver = webdriver.Chrome()
        self.failureException = failure_monitor(self, 'images')
        self.driver.get("url")

    def test_example(self):
        self.driver.find_element(By, Element).send_keys(keyword)
        self.driver.find_element(By, Element).click()
        self.assertEqual(first, second)  # Take a screenshot if the first assertion fails 

Run

import unittest
from GavinReportPro.core.testRunner import TestRunner
from case.xxx import Test_demo

runner = TestRunner(unittest.TestLoader().loadTestsFromTestCase(Test_demo),
                    filename='report.html',
                    report_dir='./Report',
                    templates=3)
runner.run()

Release files for GavinReportPro 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for GavinReportPro 1.0.0
File Size Uploaded
gavinreportpro-1.0.0.tar.gz 51.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for GavinReportPro 1.0.0
File Interpreter ABI Platform
GavinReportPro-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 110.7 kB

Release files / gavinreportpro-1.0.0.tar.gz

Download URL gavinreportpro-1.0.0.tar.gz
Size 51.0 kB
Tags Source
SHA-256 checksum
How to use checksums
501d70dafcef33f6d1644eb65f2454f208ee6cf216bd5a99adc9d6942b0fc397
BLAKE2b-256 checksum
How to use checksums
3eed75a2f8ac6c426ac35823a8765938bea1a6440531387129b08195aa79ea80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release files / GavinReportPro-1.0.0-py3-none-any.whl

Download URL GavinReportPro-1.0.0-py3-none-any.whl
Size 59.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20ab706ec399ea3213024fb2cae5e427795aca54b2b59a46e548f30d7b9b86d0
BLAKE2b-256 checksum
How to use checksums
2bd489f38d4ac6f28676ac4f8e00479960511813598b35228476d2521fd8ccd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page