Automated test scripts for an e-commerce website using Selenium WebDriver and Python's unittest framework. Covers user registration, login, product search, cart operations, and checkout processes. Run tests with python run_tests.py after setting up the environment and ChromeDriver.
- Clone the repository:
bash git clone https://github.com/yourusername/ecommerce-testing-selenium.git cd ecommerce-testing-selenium - Create a virtual environment:
bash python -m venv ecommerce-env - Activate the virtual environment: - On Windows:
bash ecommerce-env\Scripts\activate- On macOS/Linux:bash source ecommerce-env/bin/activate - Install the required dependencies:
bash pip install -r requirements.txt - Download ChromeDriver 126: - Navigate to the ChromeDriver storage and download version 126 for your operating system. - Extract the
chromedriverexecutable and place it in a known directory. - Update the WebDriver path in the configuration: Update the
DRIVER_PATHinconfig/config.pyto point to the location of the ChromeDriver executable:python DRIVER_PATH = 'path/to/chromedriver' - Run the test suite:
bash python run_tests.py
This project is licensed under the MIT License. See the LICENSE file for details.