Skip to main content

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')

Metadata

Release files for siderunner 0.2.5

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

Source distribution (sdist)

Source distribution for siderunner 0.2.5
File Size Uploaded
siderunner-0.2.5.tar.gz 4.7 kB Details

Built distribution (wheel)

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

Total release size: 10.5 kB

Release files / siderunner-0.2.5.tar.gz

Download URL siderunner-0.2.5.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e8ee740b10d65ce1264b9d1983450cb3d44efe6b68a6d0fb1566aa76030db9db
BLAKE2b-256 checksum
How to use checksums
48d2ff2a81624f44bed15983fa060a2bb8e3299121529087adb943d34eb9cc56
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / siderunner-0.2.5-py3-none-any.whl

Download URL siderunner-0.2.5-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e45b27353397f0bef3f5f378f71c23defa03f273b84d13af2fcce013aa567286
BLAKE2b-256 checksum
How to use checksums
e987ace23ab8a512765188b859a22dc32f4df1843d23bd9e24a2c49d578043c1
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.5 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