Mozilla Web QAEvolution of our PythonWebDriver framework
@davehunt82 - http://blargon7.com
Foundations
Selenium Python pytest
pytest-mozwebqaThe clue is in the name...
✓ share common code✓ transition to WebDriver✓ custom HTML reports✓ sauce labs integration✓ credentials injection
๏ bespoke to Mozilla’s needs๏ solves too many problems๏ slow release process๏ inadequate documentation๏ incompatible with “live servers”
Evolutionpytest-variables
Simple variable injection for tests
pytest-htmlHTML report for tests
pytest-seleniumBrowser automation for tests
pytest-variableshttps://pypi.python.org/pypi/pytest-variables
{ "foo": "bar", "bar": "foo"}
def test_foo(variables): assert variables['foo'] == 'bar' assert variables.get('bar') == 'foo' assert variables.get('missing') is None
pytest-htmlhttps://pypi.python.org/pypi/pytest-html
from http://qutebrowser.org:8010/waterfall
from http://qutebrowser.org:8010/waterfall
pytest-seleniumhttps://pypi.python.org/pypi/pytest-selenium
✓ no longer supports legacy Selenium RC✓ uses pytest fixtures for support of live servers
✓ augments pytest-html report✓ documentation!
Sauce Labs BrowserStack TestingBot
Demo...all the things!
Resources• pytest-variables - https://pypi.python.org/pypi/pytest-variables• pytest-html - https://pypi.python.org/pypi/pytest-html• pytest-selenium - https://pypi.python.org/pypi/pytest-selenium• examples - https://github.com/mozilla/mozwebqa-examples• team - https://quality.mozilla.org/teams/web-qa• email - [email protected]
Top Related