Sauce Labs interface for Python 3 exposing more of the SLAPI
Project description
# PastaSauce
============
An expansion of [sauceclient](https://pypi.python.org/pypi/sauceclient) to assist with Python 3 Selenium testing, test management, and SauceComm tunnels.
## Basic Use
------------
* PastaSauce uses the requests library to manage HTML requests and BeautifulSoup4 to parse web pages.
from pastasauce import PastaSauce
ps = PastaSauce(saucelabs_username, saucelabs_access_key)
print(ps.get_sauce_labs_status()) # print SauceLabs server status
* If you plan to utilize multi-browser testing on SauceLabs include the test class decorator to iterate through a dictionary of browser setting.
from pastasauce import PastaDecorator
import unittest
browsers = [[{
"platform": "Windows 10",
"browserName": "internet explorer",
"version": "11"
}, {
"platform": "OS X 10.11",
"browserName": "safari",
"version": "8.1"
}]
@PastaDecorator.on_platforms(browsers)
class OneSampleTest(unittest.TestCase):
def test_multibrowser_support(self):
assert(True), 'Should never be False'
============
An expansion of [sauceclient](https://pypi.python.org/pypi/sauceclient) to assist with Python 3 Selenium testing, test management, and SauceComm tunnels.
## Basic Use
------------
* PastaSauce uses the requests library to manage HTML requests and BeautifulSoup4 to parse web pages.
from pastasauce import PastaSauce
ps = PastaSauce(saucelabs_username, saucelabs_access_key)
print(ps.get_sauce_labs_status()) # print SauceLabs server status
* If you plan to utilize multi-browser testing on SauceLabs include the test class decorator to iterate through a dictionary of browser setting.
from pastasauce import PastaDecorator
import unittest
browsers = [[{
"platform": "Windows 10",
"browserName": "internet explorer",
"version": "11"
}, {
"platform": "OS X 10.11",
"browserName": "safari",
"version": "8.1"
}]
@PastaDecorator.on_platforms(browsers)
class OneSampleTest(unittest.TestCase):
def test_multibrowser_support(self):
assert(True), 'Should never be False'
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
pastasauce-0.1.5.tar.gz
(10.3 kB
view hashes)
Built Distribution
Close
Hashes for pastasauce-0.1.5.macosx-10.6-intel.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b89afd84ddb9a26bc815b1f5c01601e5a132eb73ba9e88a6c0935204277897b |
|
MD5 | 3dccc0e7a49558e9a5f32eeb7692483b |
|
BLAKE2b-256 | 2d9cac871394b28ef01c859e62c9fbe0a29e6713eb949cb374b7fbdcb21c9b28 |