This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def test_T003_update_product_quantity(self, driver, base_url): | |
| """ | |
| Test Case 3: Update Product Quantity (F2) | |
| Test Case ID: T003 | |
| Function: F2 Product Cart | |
| Test Scenario: Verify that a user can change the quantity of a product in the cart. | |
| """ | |
| print("\n=== Test Case T003: Update Product Quantity ===") | |
| # Step 1: Add a product to the cart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def test_T002_add_product_to_cart(self, driver, base_url): | |
| """ | |
| Test Case 2: Add Product to Cart (F2) | |
| Test Case ID: T002 | |
| Function: F2 Product Cart | |
| Test Scenario: Verify that a user can add a selected product to their shopping cart. | |
| """ | |
| print("\n=== Test Case T002: Add Product to Cart ===") | |
| # Step 1: Open a product's detail page |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def test_T001_search_products(self, driver, base_url): | |
| """ | |
| Test Case 1: Search Products (F1) | |
| Test Case ID: T001 | |
| Function: F1 Search Products | |
| Test Scenario: Verify that a user can search for a product using a keyword in the search bar. | |
| """ | |
| print("\n=== Test Case T001: Search Products ===") | |
| # Step 1: Navigate to the homepage |