Skip to content

Instantly share code, notes, and snippets.

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
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
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