Skip to main content

A fixture for working with SauceLabs' services.

Project description

A Python fixture for working with SauceLabs’ services.

For more information see the Launchpad project page.

Getting started

Use like any other fixture:

from saucelabsfixture import (
    SauceConnectFixture,
    SauceOnDemandFixture,
    )

capabilities = {...}

def test_something(self):
    connect = self.useFixture(SauceConnectFixture())
    on_demand = SauceOnDemandFixture(
        capabilities, connect.control_url)
    self.useFixture(on_demand)
    driver = on_demand.driver
    ...

This will start up a Connect service using your credentials (see below). It will also download Sauce-Connect.jar if it’s not already available. The driver will be set up to send commands via the secure tunnel that the Connect service provides.

Credentials for the Connect service

Credentials for the Connect service can be passed into the SauceConnectFixture constructor, but otherwise they can be put into a file in your home directory:

$ mkdir -p ~/.saucelabs/connect
$ touch ~/.saucelabs/connect/credentials
$ chmod go-rwx ~/.saucelabs/connect/credentials
$ echo "$username $api_key" > ~/.saucelabs/connect/credentials

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

saucelabsfixture-0.1.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file saucelabsfixture-0.1.tar.gz.

File metadata

File hashes

Hashes for saucelabsfixture-0.1.tar.gz
Algorithm Hash digest
SHA256 2ef893a930f69c9d23c5a3774e41fddfc41dd2e1bff96d894d83f5607717e8fe
MD5 b2738b3753216e7021f53d913afd5d80
BLAKE2b-256 c8963daf21f326443d43508a03c1989bdcec7bfd479ff2bb134d3a2aec88388d

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