Here are 10 automation test cases for https://www.saucedemo.com/ (Sauce Demo), each with detailed steps and expected results . These are designed to simulate realistic user scenarios and we would be implemented using tools like Selenium, Cypress, or Playwright later. 🔹 Test Case 1: Valid Login Objective : Verify successful login with valid credentials. Steps : Navigate to https://www.saucedemo.com/ Enter Username : standard_user Enter Password : secret_sauce Click the Login button Expected Result : User is redirected to the inventory page ( /inventory.html ) with a list of products displayed. 🔹 Test Case 2: Invalid Login Objective : Validate error handling with incorrect credentials. Steps : Navigate to the login page Enter Username : invalid_user Enter Password : wrong_password Click the Login button Expected Result : Error message displayed: "Epic sadface: Username and password do not match any user in this service...
Comments
Post a Comment