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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58002c5fc6bedc4d710fa26468b6026e98c3dd15292f6524f85158f8a7f53550
|
|
| MD5 |
2ce12d058bf898c9c45080bd712ccee8
|
|
| BLAKE2b-256 |
f452abe8b98f73a3f491643ea9a47ab8bc0eba5b4b2b4ea13e70de14bba82571
|
File details
Details for the file TheRuffianReport-1.0.1-py3-none-any.whl.
File metadata
- Download URL: TheRuffianReport-1.0.1-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8478ed172eb20360b85adb3af13f7838ee3e820139b52d6a494d6a9fa5ef9b60
|
|
| MD5 |
b7d6c04f242da47eb766d451d1212fb3
|
|
| BLAKE2b-256 |
f4ae002aa901bc663cb87e603bbcfe2c8f9fac7d291a5d47882c6b55f1efdb3a
|