Skip to main content

Report for unittest

Project description

#Introduction

    Based on TheRuffianReport development,
     new assertion failure screenshot,
      screenshot display and DingTalk function

#Installing pip install TheRuffianReport python≥3.0

#Author bugpz2779@gmail.com

#Function Introduction

 # screenshot
import unittest
from selenium import webdriver

from TheRuffianReport.HTMLTestRunner 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('https://www.baidu.com')

    def test_baidu(self):
        self.driver.find_element('id', 'kw').send_keys('python')
        self.driver.find_element('id', 'su').click()
        self.assertEqual(self.driver.find_element('id', 'kw').get_attribute('value'), 'selenium')

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

TheRuffianReport-1.0.1.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

TheRuffianReport-1.0.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file TheRuffianReport-1.0.1.tar.gz.

File metadata

  • Download URL: TheRuffianReport-1.0.1.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for TheRuffianReport-1.0.1.tar.gz
Algorithm Hash digest
SHA256 58002c5fc6bedc4d710fa26468b6026e98c3dd15292f6524f85158f8a7f53550
MD5 2ce12d058bf898c9c45080bd712ccee8
BLAKE2b-256 f452abe8b98f73a3f491643ea9a47ab8bc0eba5b4b2b4ea13e70de14bba82571

See more details on using hashes here.

File details

Details for the file TheRuffianReport-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for TheRuffianReport-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8478ed172eb20360b85adb3af13f7838ee3e820139b52d6a494d6a9fa5ef9b60
MD5 b7d6c04f242da47eb766d451d1212fb3
BLAKE2b-256 f4ae002aa901bc663cb87e603bbcfe2c8f9fac7d291a5d47882c6b55f1efdb3a

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