Automation test framework written in Python and using pytest and Selenium Webdriver-manager to test Spotify music player.
Prerequisits:
- Spotify free account
Run Tests in Pycharm:
- Download project and open in Pycharm
- Go to Pycharm Preferences/Project interpreter and select Python3.x
- Install pytest and selenium packages in Pycharm
- Add environment variables SP_USER with your profile email and SP_PASS with your spotify password into Run/Debug config
- Add Run/Debug configuration to use pytest
- Install and run Webdriver manager https://www.npmjs.com/package/webdriver-manager
- Navigate to tests/test_player.py and Run this file
Run tests in Terminal:
- Install Python https://www.python.org/
- Install pip https://pip.pypa.io/en/stable/installing/
- Install selenium for Python https://pypi.org/project/selenium/
- Install pytest https://docs.pytest.org/en/stable/
- Install and run Webdriver manager https://www.npmjs.com/package/webdriver-manager
- Download project and create environment variables SP_USER with your profile email and SP_PASS with your spotify password
- Navigate to project and run python3 -m pytest tests/test_player.py