This is a repository containing a sample readme file
This repository contains a robust automation framework built using Python and Selenium. The framework is designed to automate Spotify web application efficiently and follows best practices in automation testing.
- Page Object Model (POM) implementation
- Data-driven testing with CSV/JSON/Excel support
- Cross-browser testing support
- Logging and reporting with pytest-html
- CI/CD integration support
Before you can start performing Python automation testing with Selenium, you would need to:
- Install the latest Python build from the official website. We recommend using the latest version.
- Make sure pip is installed in your system. You can install pip from here.
- Download the latest Selenium Client and its WebDriver bindings from the official website. Latest versions of Selenium Client and WebDriver are ideal for running your automation script on LambdaTest Selenium cloud grid.
Step 1: Clone the SpotifySeleniumPython repository and navigate to the code directory as shown below:
git clone https://github.com/ralucachedea/SpotifySeleniumPython.git
cd SpotifySeleniumPythonStep 2: Create a virtual environment (optional but recommended):
python -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activateStep 3: Download the driver from the link, or you can use pip to install it.
pip install -r requirements.txt
export PYTHONWARNINGS="ignore:Unverified HTTPS request" //Disable ssl warningSpotifySeleniumPythonPytest/
│── configuration/ # Configuration files (URLs, credentials, etc.)
│── ExcelFiles/ # Data-driven testing
│── pages/ # Page Object Model (POM) classes
│── Reports/ # Test reports
│── tests/ # Test cases
│── utilities/ # Utility functions (e.g., data handling, logging)
│── requirements.txt # Required dependencies
To execute test cases, use:
pytest --html=reports/report.html --self-contained-html
To run tests in parallel:
pytest -n 4 --html=reports/report.html
After execution, test reports will be available in the reports/ directory as an .json files.
- Fork the repository.
- Create a feature branch (git checkout -b feature-branch).
- Commit your changes (git commit -m 'Add new feature').
- Push to the branch (git push origin feature-branch).
- Open a Pull Request.