Otto is a German e-commerce platform
This project automates the testing of essential functionalities (searching, sorting, price range filtering, and adding items to the cart) on Otto.de, a German e-commerce platform. The automation is built using Playwright and Pytest frameworks.
- Product Search: Automates the search functionality for products on Otto.de and verifies if the system shows correct search results.
- Sorting: Tests the sorting feature to ensure products are displayed in the desired order.
- Price Range Filtering: Automates filtering products within a specified price range.
- Add to Cart: Verifies that the correct product is added to the cart.
Automation Tool: Playwright
Framework: Pytest
Programming Language: Python
Report Maker: pytest-html
Browser: Chromium
pip Python: 3.10 or Higher wkhtmltopdf (for pdf generation)
Clone the repository:
git clone https://github.com/reyadhsupto/Otto_Automation_Task.git
cd Otto_Automation_TaskInstall python dependencies:
pip install -r requirements.txtBasic test run:
pytest -v -s --html=sanity.htmlClear Cache and Run Tests with Html report:
pytest --cache-clear -v -s --html=sanity.html --capture=tee-sys├───configurations
├───logs
├───reports
├───screenshots
├───src
│ ├───page_objects
│ └───utils
└───tests- TC_001: Verify that the search functionality works properly and displays accurate results.
- TC_002: Verify that the first 5 products have been sorted correctly (by price descending).
- TC_003: Verify that the correct product has been successfully added to the shopping cart.
This project is licensed under the MIT License. See the LICENSE file for more details on terms and conditions.
Feel free to use and contribute to the project under these terms!