ABCDEFGH
1
2
3
4
5
6
7
8
9
Test case IDTest ScenarioPreconditionStepsTest DataExpected ResultActual ResultStatus
10
TC1Verify that Valid username and password successfully log the user in.User is Registered Open login page
Enter valid Username
Enter valid Password
Click on Login
Username : standard_user
Password : secret_sauce
User should be successfully logged in
User should be redirect to Homepage
Url changes to inventory page
Login page no longer visible
No error message shown

11
TC2Verify Login using valid username and Invalid password User is Registered Open login page
Enter valid Username
Enter Invalid Password
Click on Login
Username : standard_user
Password : secret1234
User should not be logged in
User remains stay on login page
system show error messages "Username and password do not match any user in this service"
12
TC3Verify login with valid username problem_userUser is Registered Open login page
Enter valid Username
Enter valid Password
Click on Login
Username : problem_user
Password : secret_sauce
User should be successfully logged in
User should be redirect to Homepage
Url changes to inventory page
Login page no longer visible
No error message shown
13
TC4Verify login with valid username performance_glitch_userUser is Registered Open login page
Enter valid Username
Enter valid Password
Click on Login
Username : performance_glitch_user
Password : secret_sauce
User should be successfully logged in
User should be redirect to Homepage
Url changes to inventory page
Login page no longer visible
No error message shown
14
TC5Verify user can login by pressing enter key instead of clicking login buttonUser is Registered Open login page
Enter valid Username
Enter valid Password
Enter enter button
Username : standard_user
Password : secret_sauce
User should be successfully logged in
User should be redirect to Homepage
Url changes to inventory page
Login page no longer visible
No error message shown
15
TC6Verify successful login redirects user to Inventory pageUser is Registered Open login page
Enter valid Username
Enter valid Password
Click on Login
Username : standard_user
Password : secret_sauce
User should be successfully logged in
User should be redirect to Homepage
Url changes to inventory page
Inventory should display on the page
16
TC7 Verify login using Invalid username and valid passworduser is Registered Open login page
Enter Invalid Username
Enter valid Password
Click on Login
Username : standard_abcdfuser
Password : secret_sauce
User should not be logged in
User remains stay on login page
system show error messages "Username and password do not match any user in this service"
17
TC8Verify login using Invalid username and invalid passworduser is Registered Open login page
Enter Invalid Username
Enter Invalid Password
Click on Login
Username : standard_abcdfuser
Password : secret_sauce12345
User should not be logged in
User remains stay on login page
system show error messages "Username and password do not match any user in this service"
18
TC9Verify login using empty username field and valid passworduser is Registered Open login page
Leave Username field empty
Enter valid Password
Click on Login
Username :
Password : secret_sauce12345
User should not be logged in
User remains stay on login page
system show error messages "Username is required"
19
TC10Verify login using valid username and empty password field user is Registered Open login page
Enter valid Username
Leave Password field empty
Click on Login
Username : standard_user
Password :
User should not be logged in
User remains on login page
system show error messages "Password is required"
20
TC11Verify loging with empty username and password fielduser is Registered Open login page
Leave Username field empty
Leave Password field empty
Click on Login
Username :
password :
User should not be logged in
User should remains on login page
system show error messages "Username and Password are required"
21
TC12Verify login with locked_out_user user is Registered Open loging page
Enter username as Verify login with locked_out_user
Enter Password as secret_sauce
click on login button
Username : locked_out_user
password : secret_sauce
User should not be logged in
User should remains on login page
An error message should be displayed indicating that the user is locked out
Inventory page should not be accessible
22
TC13Verify login with leading spaces in username.user is Registered Open login page
Enter username with leading space
Enter valid password
Click on login button
Username : ' ' locked_out_user
password : secret_sauce
System should either trim spaces and allow login if credential are valid or reject login and show error message
23
TC14Verify login with trailing spaces in username.user is Registered Open login page
Enter valid username witht trailing space
Enter valid password
Click on login button
Username : locked_out_user ' '
password : secret_sauce
System should either trim spaces and allow login if credential are valid or reject login and show error message
24
TC15Verify login with special characters in username.user is Registered Open login page
Enter Username
Enter valid Password
Click on Login
Username : locked_&out_&user
password : secret_sauce
User should not be logged in
User remains stay on login page
system show error messages "Username and password do not match any user in this service"
25
TC16Verify correct error message appears for invalid login.user is Registered open login page
Enter invalid username
Enter invalid password
click on login
Username : locked_&out_&user
password : secret_sauce1234
User should not be logged in
User remains stay on login page
system show error messages "Username and password do not match any user in this service"
Texts should shown in clear and visible colour
26
TC17Verify error message disappears after correcting credentials.user is Registered Open login page
Enter valid Username
Enter valid Password
Click on Login
Username : standard_user
Password : secret_sauce
Error message should not shown
User should logged in successfully
Home page(Inventory page) should display
27
TC18Verify user remains on login page after failed loginuser is Registered Open login page
Enter valid username
Enter invalid password
click on login button
Username : standard_user
Password : secret_sauce1234
User should not be logged in
User should remain on the login page
Url should not change to inventory page
An error message should be displayed
No session shhould be created
28
TC19Verify password field is masked (hidden characters)user is Registered Open login page
Click inside the password field
Type any characters
Observe how the Characters are displayed in the password field
Password : secret_sauceCharater entered in the password field should not be visible as plain text.
Password characters should apper Marsked(ex ..... or ******)
Typed password should not be readble on the screen.
29
TC20Verify login button does not crash application when clicked multiple times quickly.user is Registered Open login page
Enter valid username
Enter valid password
click on login button rapidly multiple times
Username : standard_user
Password : secret_sauce
Application should not crash
Error message should appear only once
user should remain on login page
30
TC21Verify user remains logged in after page refresh.user is Registered Open login page
Enter valid username
Enter valid password
click on login button
After login refesh the page
Username : standard_user
Password : secret_sauce
user should logged in
After refreshing page user should remain on same page and logged in
Session should remain active
No any modification should happen on the page
31
TC22Verify user cannot access inventory page after logout using browser back button.user is Registered , logged in and on the inventory pageOpen login page
Enter valid username
Enter valid password
click on login button
Verify user is redirected to the inventory page
Click on the Burgermenu button
click on log out
verify user redirected to login page
Click the browser back button
Username : standard_user
Password : secret_sauce
User should not be able to access the Inventory menu
User should be redirect to the login page automatically
No product list should be visible
Session should remain terminated
No unauthorised access should be granted
32
TC23Verify user session remains active after navigating between pages.user is Registered Open login page
Enter valid username
Enter valid password
click on login button
Open login page
Enter valid username
Enter valid password
click on login button
verify user is redirected to inventory page
click on product to open product details page
Navigate back to inventory page
Continue navigating between avalible pages
Username : standard_user
Password : secret_sauce
User should remain logged in throughout navigation
No redirection to login page should occure
Session should remain actve
User should be able to access inventory, cart, and other pages without re-login
No unexpected logout should happen
33
TC24Verify User is redirected to login page after logout.user is Registered , logged in and on the inventory pageLogin to saucedemo using valid credentials
verify user is redirected to inventory page
click on burgermenu button
click on logout option
Username : standard_user
Password : secret_sauce
User should be redirected to the login page
Login page url should be display
Username and password field should be visible
inventory page should not be accessible without logging again
Session should be terminated
34
TC25Verify login page loads successfully without UI distortion.user is Registered
Browser is open
Open browser
Enter saucedemo login page url
press enter
Observe the login page layout and ui elements
Resize the browser window
Refresh the page and observe again
Username : standard_user
Password : secret_sauce
Login page should load successfully without error
username and password field should be visible and properly aligned
login button should clearly visible and clickable
No overlapping text , broken images, or misaligned elements should appear
page should be responsive when browser window is resized
35
TC26Verify Inventory page displayed User is Logged inOpen Logoin page
Login with valid Credentials
Observe Inventory page
Username : standard_user
Password : secret_sauce
System should displays Inventory Page.
Url must be changed to Inventory page url
Inventory page should be clear and readable
36
TC27Verify page title Product is clearly visbleUser is logged inOpen login page
Login with valid credential
observe Inventory page
Username : standard_user
Password : secret_sauce
Page title should be visible
It should be properly aligned and readable
37
TC28Verify the Burger menu User is logged inOpen Login page
Login with Valid credentials
Observe Inventory page
Click on Burger menu
Username : standard_user
Password : secret_sauce
Page Must have a burger menu.
It should properly aligned and visible.
It should be clickable.
When user click on that it should reveal hidden navigation menu or sidebar.
When we click on that menu should change to cross from 3 lines (x).
No UI distortions occurs.
38
TC29Verify Cart Icon user is logged inOpen Login page
Login with Valid credentials
Observe Inventory page
Click on Cart
Username : standard_user
Password : secret_sauce
Page must have cart icon.
It should properly aligned and visible.
It should be clickable.
When user click on it, It should nevigate to cart page , and url should change to cart url.
No UI distortions occurs.
39
TC30Verify Product list user is logged in Open Login page
Login with Valid credentials
Observe Inventory page
Username : standard_user
Password : secret_sauce
Page should display products list.
It must be clear, aligned,visible and readable.
Product section loads completely.
40
TC31Verify each product shows Image, price,descriptions,product nameuser is logged in Open Login page
Login with Valid credentials
Observe Inventory page
Username : standard_user
Password : secret_sauce
Product list must have image, product name, price, add to cart button.
Everything must be properly visible,align and readable.
No missing or Broken elements.
41
TC32Verify add to cart button user is logged in Open Login page
Login with Valid credentials
Observe Inventory page
Click on Add to cart Button
Username : standard_user
Password : secret_sauce
Each product must have add to cart button.
It should be clickable, readble, visible and aligned.
It should not be hidden and blur.
When user click on that it should add item to the cart.
cart badge should show iteam is added.
42
TC33 Verify cart badge is not shown before adding items user is logged in Open Login page
Login with Valid credentials
Observe Inventory page
Username : standard_user
Password : secret_sauce
Cart badge should not displayed.
No incorrect count displayed.
43
TC34
Verify footer is visible
user is logged in Open Login page
Login with Valid credentials
Observe Inventory page
Username : standard_user
Password : secret_sauce
Footer section is visible.
Footer text is readable.
No UI issue in footer area.
44
TC35 Verify shorting dropdown is visible and clickableuser is logged inOpen Login page
Login with Valid credentials
Observe Inventory page
Click on the dropdown
Username : standard_user
Password : secret_sauce
Sorting dropdown is visble.
Dropdown is clickable.
All sorting options are displayed:
Name( A to Z)
Name (Z to A)
Price (Low to High)
Price (High to Low)
45
TC36Verify sorting by Nameuser is logged inOpen Login page
Login with Valid credentials
Observe Inventory page
Click on the dropdown
Select Name from dropdown
Username : standard_user
Password : secret_sauce
It should be clickable.
Products are displayed in alphabetical ( A to Z OR Z to A)
order.
Sorting is accurate.
No UI distortion occurs.
46
TC37Verify Sorting by Priceuser is logged inOpen Login page
Login with Valid credentials
Observe Inventory page
Click on the dropdown
Select Price from dropdown
sername : standard_user
Password : secret_sauce
It should be clickable.
Products are sorted in price( Low to High OR High to Low) order.
Sorting is accurate.
No UI distortion occurs.
47
TC38Verify selected sorting option remains selected user is logged inOpen Login page
Login with Valid credentials
Observe Inventory page
Click on the dropdown
Select Price from dropdown
Refresh the page
sername : standard_user
Password : secret_sauce
Sorting resets to defaults.
Application should not crash.
48
TC39 Verify sorting does not remove items already added to cartuser is logged inOpen Login page
Login with Valid credentials
Add 2 different products to the cart
Verify cartbadge shows '2'
Click on sorting dropdown
Select Price from dropdown
Refresh the page
Any 1-2 ProductsAfter refreshing page should load completely.
Products should be sorted according to slected option.
cart badge should still show '2'
Previously added products should still be marketed as 'Remove'.
No item should be remolved from cart
No page crash or unexpected behaviour ahould occure.
49
TC40Verify clicking a product name opens the correct product detail page.User is logged inOpen Login page
Login with Valid credentials
Click on product name
Any 1 ProductProduct name should be clickable
It should redirect to Product detail page
Url should change to Inventory item page
Same product should shown
Product details should shown
Page should be Visible and readable
No UI distrortion occurs.
50
TC41Verify clicking a product image opens the correct product detail page.User is logged inOpen Login page
Login with Valid credentials
Click on product image
Any 1 ProductProduct Image should be clickable
It should redirect to Product detail page
Url should change to Inventory item page
Same product should shown
Product details should shown
Page should be Visible and readable
No UI distrortion occurs.
51
TC42Verify Back to Products returns to Inventory page from product detail page.User is logged in
User is on Product detail page
Open Login page
Login with Valid credentials
Go to Product detail page
Click on bake to product button
Back button should be clickable
It should navigate to product page
Page should show all prosuct list
Url should change to Product Url
Page must be clear visible and readble
No UI distrortion occures
52
TC43Verify adding one product upadetes cart badge to 1User is logged inOpen Login page
Login with Valid credentials
Click on any one product add to cart button
any 1 productThe cart badge should shown 1
User should remain on same(Product) page
53
TC44Verify added products button changes from 'Add to cart' to 'Remove'User is logged inOpen Login page
Login with Valid credentials
Click on any one product add to cart button
any 1 productAfter adding product to cart the button should changed to Remove button
Colour Should change to red.
No UI distrortion occurs
54
TC45Verify Removing product decreases cart badgeUser is logged inOpen Login page
Login with Valid credentials
Click on any one product add to cart button
Remove the product
any 1 productWhen user clicks on remove button cart badge should be decrease
Remove buttons should change to add to cart button
No UI distrortion occurs
55
TC46Verify adding multiple different products updates cart badge correctly user is logged inOpen Login page
Login with Valid credentials
Click on 3-4 product add to cart button
Any 3-4 ProductsPage shoud not reload
User should stay on same page
If 3 different product is added cart badge should show correct number (3)
The updated badge number remains correct If the page is refreshes or if the user navigates to another page
56
TC47Verify Remove works for multiple itemsUser is logged inOpen Login page
Login with Valid credentials
Click on 3-4 product add to cart button
Click on remove and remove 2 products
Any 3-4 ProductsCart badge count decreased by 2.
The removed products button changes from Remove to Add to cart
The other selected products stil remain added and show Remove button.
Page remain stable
57
TC48Verify product remains “Removed” after navigating away and coming back.User is logged inOpen Login page
Login with Valid credentials
Click on 3-4 product add to cart button
Click on remove and remove 2 products
Go on any other page (cart page)
Come back on product page
Any 3-4 ProductsThe product should not automatically reappear as added.
cart badge should shows correct number of items.
The previously removed products should still show ' Add to cart ' button.
No any other change occure in product state.
No UI distrortion occures
58
TC49Verify refreshing Inventory page keeps user logged inUser is logged inOpen Login page
Login with Valid credentials
Refresh the inventory page
User should logged in
After refreshing page user should remain on same page and logged in
Session should remain active
No any modification should happen on the page
59
TC50Verify cart badge and selected items remain after refresh.User is logged inOpen Login page
Login with Valid credentials
Refresh the inventory page
User can see same Page as it is
cart badge should remain same not changes happen in counts
Selected product should remai same and still show Remiove button on selected product
No any other UI changes happens
60
TC51Verify browser back/forward navigation does not break pageUser is logged inOpen Login page
Login with Valid credentials
Go back and observe inventory page
Go forward and observe inventory page
Page should load successfully
No UI Distrortion occure
Session should remain active
61
TC52Verify rapid clicking Add to Cart does not crash page and does not duplicate count incorrectly.User is logged inLogin with valid credentials.
Navigate to Inventory page.
Choose one product.
Rapidly click the Add to Cart button multiple times 5–10 times quickly.
Observe the cart badge and button state.
Any 1 productOnly one iteam should be added to the cart which User have clicked
Cart badge should be increased to 1 for the same item
The button should change from add to cart to remove
No UI distrortion occure
62
TC53Verify page works when browser window is resized User is logged inOpen Login page
Login with Valid credentials
Resize the window
Observe page
Page should be responsive in evry size
It should load successfully
No UI distrortion occurs
63
TC54Verify buttons are clickable and not overlapped by UIuser is logged in Log in with valid credential
On the inventory page, Identify key buttons and icons
Click on add to cart button
Click remove on the same button
Click on burger menu
Click on cart icon to open the cart page and click back to return
Click on Filter dropdown

64
TC55Verify text is readable and not cut offUser is logged in