| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
1 | ||||||||
2 | ||||||||
3 | ||||||||
4 | ||||||||
5 | ||||||||
6 | ||||||||
7 | ||||||||
8 | ||||||||
9 | Test case ID | Test Scenario | Precondition | Steps | Test Data | Expected Result | Actual Result | Status |
10 | TC1 | Verify 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 | TC2 | Verify 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 | TC3 | Verify login with valid username problem_user | User 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 | TC4 | Verify login with valid username performance_glitch_user | User 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 | TC5 | Verify user can login by pressing enter key instead of clicking login button | User 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 | TC6 | Verify successful login redirects user to Inventory page | 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 Inventory should display on the page | ||
16 | TC7 | Verify login using Invalid username and valid password | user 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 | TC8 | Verify login using Invalid username and invalid password | user 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 | TC9 | Verify login using empty username field and valid password | user 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 | TC10 | Verify 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 | TC11 | Verify loging with empty username and password field | user 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 | TC12 | Verify 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 | TC13 | Verify 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 | TC14 | Verify 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 | TC15 | Verify 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 | TC16 | Verify 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 | TC17 | Verify 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 | TC18 | Verify user remains on login page after failed login | user 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 | TC19 | Verify 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_sauce | Charater 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 | TC20 | Verify 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 | TC21 | Verify 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 | TC22 | Verify user cannot access inventory page after logout using browser back button. | user is Registered , logged in and on the inventory page | Open 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 | TC23 | Verify 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 | TC24 | Verify User is redirected to login page after logout. | user is Registered , logged in and on the inventory page | Login 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 | TC25 | Verify 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 | TC26 | Verify Inventory page displayed | User is Logged in | Open 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 | TC27 | Verify page title Product is clearly visble | User is logged in | Open 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 | TC28 | Verify the Burger menu | User is logged in | Open 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 | TC29 | Verify Cart Icon | user is logged in | Open 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 | TC30 | Verify 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 | TC31 | Verify each product shows Image, price,descriptions,product name | user 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 | TC32 | Verify 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 clickable | user is logged in | Open 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 | TC36 | Verify sorting by Name | user is logged in | Open 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 | TC37 | Verify Sorting by Price | user is logged in | Open 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 | TC38 | Verify selected sorting option remains selected | user is logged in | Open 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 cart | user is logged in | Open 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 Products | After 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 | TC40 | Verify clicking a product name opens the correct product detail page. | User is logged in | Open Login page Login with Valid credentials Click on product name | Any 1 Product | Product 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 | TC41 | Verify clicking a product image opens the correct product detail page. | User is logged in | Open Login page Login with Valid credentials Click on product image | Any 1 Product | Product 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 | TC42 | Verify 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 | TC43 | Verify adding one product upadetes cart badge to 1 | User is logged in | Open Login page Login with Valid credentials Click on any one product add to cart button | any 1 product | The cart badge should shown 1 User should remain on same(Product) page | ||
53 | TC44 | Verify added products button changes from 'Add to cart' to 'Remove' | User is logged in | Open Login page Login with Valid credentials Click on any one product add to cart button | any 1 product | After adding product to cart the button should changed to Remove button Colour Should change to red. No UI distrortion occurs | ||
54 | TC45 | Verify Removing product decreases cart badge | User is logged in | Open Login page Login with Valid credentials Click on any one product add to cart button Remove the product | any 1 product | When user clicks on remove button cart badge should be decrease Remove buttons should change to add to cart button No UI distrortion occurs | ||
55 | TC46 | Verify adding multiple different products updates cart badge correctly | user is logged in | Open Login page Login with Valid credentials Click on 3-4 product add to cart button | Any 3-4 Products | Page 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 | TC47 | Verify Remove works for multiple items | User is logged in | Open 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 Products | Cart 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 | TC48 | Verify product remains “Removed” after navigating away and coming back. | User is logged in | Open 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 Products | The 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 | TC49 | Verify refreshing Inventory page keeps user logged in | User is logged in | Open 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 | TC50 | Verify cart badge and selected items remain after refresh. | User is logged in | Open 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 | TC51 | Verify browser back/forward navigation does not break page | User is logged in | Open 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 | TC52 | Verify rapid clicking Add to Cart does not crash page and does not duplicate count incorrectly. | User is logged in | Login 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 product | Only 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 | TC53 | Verify page works when browser window is resized | User is logged in | Open 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 | TC54 | Verify buttons are clickable and not overlapped by UI | user 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 | TC55 | Verify text is readable and not cut off | User is logged in |