Skip to main content

Test coverage for selenium based tests

Project description

Python (>=3.7) agent that allow to collect locators from Selenium based UI tests.

Inspired by SergeyPirogov koverj-java-agent. Browser_driver instance (e.g. webdriver.Chrome()) has to be created and passed to a LocatorsWatchingDriver

- Selenium usage:

chrome_driver = webdriver.Chrome(executable_path=executable_path, options=chrome_options)
driver = LocatorsWatchingDriver(driver=chrome_driver)

- Selene usage:

driver = LocatorsWatchingDriver(driver=chrome_driver)
browser.set_driver(driver)

An web_driver may be created as pytest fixture, e.g.:

@pytest.fixture()    
def web_driver(chrome_driver):
    driver = LocatorsWatchingDrive(driver=chrome_web_driver)
    browser.set_driver(driver)
    yield browser.driver()
    browser.quit()

If pytest is used the koverj plugin may be registered in conftest.py:

pytest_plugins = [
    'koverj.common.plugin.pytest_koverj_plugin',
]

Supported integrations:

  • Selene
  • Selenium

Supported test runners:

  • pytest

In order to collect data you have to run koverj server (thanks to): docker run -p 8086:8086 spirogov/koverj:0.1.0

In order to see results in your browser add koverj-browser-plugin to your browser.

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

koverj-0.1.100.tar.gz (322.7 kB view details)

Uploaded Source

Built Distribution

koverj-0.1.100-py3-none-any.whl (331.8 kB view details)

Uploaded Python 3

File details

Details for the file koverj-0.1.100.tar.gz.

File metadata

  • Download URL: koverj-0.1.100.tar.gz
  • Upload date:
  • Size: 322.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.4 Darwin/18.7.0

File hashes

Hashes for koverj-0.1.100.tar.gz
Algorithm Hash digest
SHA256 63dbd917abb761bdc85ea0f32e226a607fe8f7f1f7ccfc433baa7a1dbd128293
MD5 229a57db9f2a2b37eaf7c04affbcfb7a
BLAKE2b-256 4fdf06308e6d7e5432d96a0cbf64ea5817a6209f6e78d137639d1e8591121329

See more details on using hashes here.

File details

Details for the file koverj-0.1.100-py3-none-any.whl.

File metadata

  • Download URL: koverj-0.1.100-py3-none-any.whl
  • Upload date:
  • Size: 331.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.4 Darwin/18.7.0

File hashes

Hashes for koverj-0.1.100-py3-none-any.whl
Algorithm Hash digest
SHA256 67ee48c72406c1699e4d8c0d2964f896afafd51a367c0a4fb5baf2826232b2ce
MD5 0a3fe9b15805a2c6db3795661219117e
BLAKE2b-256 c1c4f080f519dcc08769f6e7d71f8a37aa6c1a544ab4e21acde3b9e016198efa

See more details on using hashes here.

Supported by

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