SauceCon Online - tour.AllThePythonThings() Code Samples
Hello there! If you're reading this, you have likely heard of SauceCon and may have attended the tour.allThePythonThings() talk. Here are the accompanying code samples.
These samples are all written using Python 3.7. I recommend using a virtual environment.
Select the button below to try this demo in Gitpod
Click here to see how to setup your Sauce Labs credentials in Gitpod
To install all needed dependencies, run
pip install -r requirements.txt
To run the simple, unit-style Pytest tests, run
pytest test_unit.py
To run the plain old Selenium tests, run
pytest test_basic_selenium.py
To run the Nerodia tests, run
pytest test_nerodia.py
To run the pytest-selenium tests, run
pytest --driver Saucelabs --variables CHOICE_OF_JSON test_pytest_selenium.py
where CHOICE_OF_JSON
is one of chrome.json
, safari.json
or firefox.json
.
To run the Robot test using SeleniumLibrary, run
robot -A chrome_config.txt using_selenium_library.robot
To run the Robot test using the custom Python library, run
robot using_python_keywords.robot