Skip to content

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.

Notifications You must be signed in to change notification settings

bhuvanarao2003/GadgetSiteSoftwareTesting

Repository files navigation

E-commerce Website Testing with Selenium

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.

Setup Instructions

  1. Clone the repository: bash git clone https://github.com/yourusername/ecommerce-testing-selenium.git cd ecommerce-testing-selenium
  2. Create a virtual environment: bash python -m venv ecommerce-env
  3. Activate the virtual environment: - On Windows: bash ecommerce-env\Scripts\activate - On macOS/Linux: bash source ecommerce-env/bin/activate
  4. Install the required dependencies: bash pip install -r requirements.txt
  5. Download ChromeDriver 126: - Navigate to the ChromeDriver storage and download version 126 for your operating system. - Extract the chromedriver executable and place it in a known directory.
  6. Update the WebDriver path in the configuration: Update the DRIVER_PATH in config/config.py to point to the location of the ChromeDriver executable: python DRIVER_PATH = 'path/to/chromedriver'
  7. Run the test suite: bash python run_tests.py

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published