Software Automation Engineer Task
App-URL: “https://www.saucedemo.com/”
Test Scenarios for Sauce Demo Website
1. Login Functionality
d.
Lt
● Test Scenario 1: Verify Valid Login:
○ Navigate to the login page.
t.
Pv
○ Enter valid credentials:
■ Username: standard_user
■ Password: secret_sauce
(I)
○ Click the "Login" button.
s
○ Verify that the user is redirected to the products page.
em
○ Verify that the username is displayed.
● Test Scenario 2: Verify Invalid Login:
st
○ Navigate to the login page. Sy
○ Enter invalid credentials:
■ Username: wrong_user
n
■ Password: wrong_password
io
○ Click the "Login" button.
at
○ Verify that an error message is displayed.
rm
● Test Scenario 3: Verify Empty Fields:
○ Navigate to the login page.
fo
○ Leave both username and password fields empty.
In
○ Click the "Login" button.
a
○ Verify that an error message is displayed for empty credentials.
an
2. Product Page Functionality
irv
● Test Scenario 1: Verify Product Visibility:
N
○ After logging in, ensure that the product list is displayed.
l
ita
○ Verify that all expected products are present on the page (e.g., Sauce Labs
Backpack, Sauce Labs Bike Light).
ig
● Test Scenario 2: Verify Product Details:
D
○ Click on a product to view its details.
○ Verify that the product details page displays the correct information (e.g., product
name, description, price).
● Test Scenario 3: Verify Add to Cart:
○ Click the "Add to Cart" button for a product.
○ Verify that the cart count increases and that the product is listed in the cart.
3. Cart Functionality
● Test Scenario 1: Verify View Cart:
○ Click on the cart icon.
○ Verify that the products added to the cart are displayed correctly.
● Test Scenario 2: Verify Remove Item from Cart:
d.
○ In the cart view, remove an item from the cart.
Lt
○ Verify that the item is removed and the cart count is updated accordingly.
● Test Scenario 3: Verify Checkout Process:
t.
○ Click on the "Checkout" button.
Pv
○ Enter valid checkout information:
■ Name
(I)
■ Address
s
■ Postal Code
em
○ Complete the checkout process.
○ Verify that the order confirmation page is displayed.
st
4. Navigation
Sy
● Test Scenario 1: Verify Navigation Between Pages:
n
io
○ Navigate to different pages (e.g., product page, cart page, checkout page).
at
○ Verify that the navigation is smooth and that pages load correctly.
● Test Scenario 2: Verify Logout Functionality:
rm
○ Click the "Logout" button.
fo
○ Verify that the user is redirected back to the login page and is logged out
In
a
Notes*: Required Tools & Technologies
an
● Language: Java 8
irv
● FrameWork: TestNG, Selenium, BDD Cucumber, Extent Report, Log4j2
N
● Build Tools: Maven
l
ita
● Project Management : Github (Commit code in github public repository and
share link)
ig
D