Skip to main content

Runs Selenium IDE tests without Selenium IDE.

Project description

SIDErunner

A framework for running Selenium IDE tests from within Python without having to export those tests. It reads the tests in their native XML format and makes corresponding webdriver calls based on the contents of the XML files.

It can run both tests and test suites.

Installation

pip install siderunner

To use in headless mode you'll need selenium, pyvirtualdisplay and a browser such as FireFox.

$ apt-get install xvfb xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic
$ apt-get install pyvirtualdisplay
$ apt-get install selenium
$ apt-get install firefox

Example

This example runs a simple test suite created with Selenium IDE and saved as .xml files.

#!/usr/bin/python

import os
import siderunner

here = os.path.join(os.path.dirname(__file__), 'tests')

class SystemTests(siderunner.SeleniumTests):

    headless = True
    url = 'http://localhost'
    path = os.path.join(here, 'scripts')
    size = (1024, 2048)

    def test_suite_one(self):
        self.run_suite('suite-one')

    def test_suite_two(self):
        self.run_suite('suite-two')

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

siderunner-0.2.5.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

siderunner-0.2.5-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file siderunner-0.2.5.tar.gz.

File metadata

  • Download URL: siderunner-0.2.5.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for siderunner-0.2.5.tar.gz
Algorithm Hash digest
SHA256 e8ee740b10d65ce1264b9d1983450cb3d44efe6b68a6d0fb1566aa76030db9db
MD5 40314e34c3b20f706a5a744a58b8b6e3
BLAKE2b-256 48d2ff2a81624f44bed15983fa060a2bb8e3299121529087adb943d34eb9cc56

See more details on using hashes here.

File details

Details for the file siderunner-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: siderunner-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for siderunner-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e45b27353397f0bef3f5f378f71c23defa03f273b84d13af2fcce013aa567286
MD5 b37893f63360be104b76986ebbcbf7f7
BLAKE2b-256 e987ace23ab8a512765188b859a22dc32f4df1843d23bd9e24a2c49d578043c1

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