This is a demo Python testing framework created for job interviews.
- Make sure you have Python 3.x installed on your computer
- Download repository
- Download Selenium WebDriver adequate to your browser. I was testing my framework with Chrome:
https://chromedriver.chromium.org/downloads
- Install packages from requirements.txt file:
pip install -r requiremnts.txt
- To run API tests from root catalog execute following command:
pytest test_trello_api.py --menable=True --mtimestamp=True --mlogo=".\static\logo.jpg"
- HTML test results will be created in root directory and will have following syntax
pytest_metrics_DATE_TIME
- To run Selenium tests from root catalog execute following command:
pytest test_trello_selenium.py --menable=True --mtimestamp=True --mlogo=".\static\logo.jpg" --driver Chrome --driver-path "PATH_TO_YOUR_CHROME_DRIVER"
- HTML test results will be created in root directory and will have following syntax
pytest_metrics_DATE_TIME
I based this whole "framework" (including negative cases) on API level tests and these tests are much more polished (as it comes to technical implementation and tests organization) than Selenium tests. As it comes to Selenium platform, I must admit that I was using it last time around 5 years ago, so my solution probably won't be breathtaking, but it works. :)
- Trello account:
Username: XXX
Password: YYY
- Trello key and token are hardcoded must be delivered in system environmental variables (TRELLO_KEY, TRELLO_TOKEN)
- I assumed that my Trello account on which tests are executed is hermetic environment. That means that in the meantime no one is using it nor creating there boards/lists/cards. Such acctions might impact tests results.
- Before each test Trello Board is created and then after execution it is removed (for both API and Selenium tests)