0% found this document useful (0 votes)
1 views

documentation (1)

The document outlines a series of test cases for a web application, focusing on homepage navigation, product search, product details validation, cart management, user registration, user login/logout, and the checkout process. Each test case includes a description, steps to execute, and expected results to ensure functionality is working as intended. The tests cover various scenarios including successful and unsuccessful user interactions with the website.

Uploaded by

Aravind Reddy
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

documentation (1)

The document outlines a series of test cases for a web application, focusing on homepage navigation, product search, product details validation, cart management, user registration, user login/logout, and the checkout process. Each test case includes a description, steps to execute, and expected results to ensure functionality is working as intended. The tests cover various scenarios including successful and unsuccessful user interactions with the website.

Uploaded by

Aravind Reddy
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

1: Homepage Navigation

Test Case 1.1: Verify Homepage Loads Correctly


Description: Ensure the homepage loads correctly with the expected elements and URL.
Steps:
1. Visit https://demowebshop.tricentis.com/.
2. Check if the homepage banner with the alt text "Tricentis Demo Web Shop" is visible.
3. Verify the URL is https://demowebshop.tricentis.com/ and contains "demowebshop".
4. Confirm the page title includes "Demo Web Shop".

Expected Results:
 The homepage banner is visible.
 The URL is correct and includes "demowebshop".
 The page title includes "Demo Web Shop".

Output:

Test Case 1.2: Check Product Categories Display


Description: Ensure that product categories are displayed on the homepage.
Steps:
1. Visit https://demowebshop.tricentis.com/.
2. Verify the product categories block title is visible.
3. Check that the center section of the page (class .center-3) is visible.
4. Wait for 2 seconds to ensure all elements are loaded.
5. Scroll to the footer menu wrapper.
Expected Results:
 The product categories block title is visible.
 The center section of the page is visible.
 The footer menu wrapper is visible after scrolling.
Output:

2: Product Search
Test Case 2.1: Search for Various Products
Description: Test searching for multiple products and navigate between search results.
Steps:
1. Search for "Desktop PC with CDRW".
2. Click on the first product image in the search results.
3. Navigate back to the search results.
4. Search for "Smartphone".
5. Click on the first product image in the search results.
6. Navigate back to the search results.
7. Search for "Computing and Internet".
8. Click on the first product image in the search results.

Expected Results:
 Search results for each query are displayed.
 Clicking on a product navigates to its page.
 Navigating back returns to the search results.

Output:

Test Case 2.2: Verify Search Results


Description: Ensure that the search results are relevant and validate product details.
Steps:
1. Search for "Smartphone".
2. Verify that search results are displayed.
3. Check that the first result's title contains "Smartphone".
4. Click on the first result.
5. Verify the product page details: image, name, and price.
6. Go back to search results.
7. Search for "Computing and Internet".
8. Verify that search results are displayed.
9. Check that the first result's title contains "Computing and Internet".
10. Click on the first result.
11. Verify the product page details: image, name, and price.

Expected Results:
 Search results are displayed and relevant.
 The first result’s title matches the search query.
 Product details (image, name, price) on the product page are correct.

Output:

3: Product Details Validation


Test Case 3.1: Validate Product Details
Description: Ensure that the product detail pages display accurate information and that
important details are highlighted.

Steps:
1. Search for "Smartphone" and click on the first product.
2. Verify that the product name is "Smartphone".
3. Verify that the price is "$100.00" and highlight it with a red border and padding.
4. Verify that the product specification includes "Battery life 8h in power use".
5. Navigate back to search results.
6. Search for "14.1-inch Laptop" and click on the product.
7. Verify that the product name is "14.1-inch Laptop".
8. Verify that the price is "$1590.00" and highlight it with a red border, yellow
background, and padding.
9. Verify that the size is "14.1".
10. Verify that the hardware includes "250 GB".

Expected Results:
 The "Smartphone" product page shows the correct name, price, and specification with
proper highlighting.
 The "14.1-inch Laptop" product page shows the correct name, price, size, and
hardware with proper highlighting.

Output:

Test Case 3.2: Test the Functionality of the 'Add to Cart' Button
Description: Verify that the 'Add to Cart' button adds items to the cart and that the cart
functionality is working as expected.

Steps:
1. Ensure the cart icon is visible and displays "Shopping cart".
2. Click on the cart icon and verify that the cart page displays "Shopping cart" with a
message that the cart is empty.
3. Navigate back to the homepage.
4. Search for "Build your own cheap computer" and click on the product.
5. Click the 'Add to Cart' button for the product.
6. Go to the cart and verify that the cart contains one product.
7. Wait for 3 seconds.
8. Remove the product from the cart and update the cart.

Expected Results:
 The cart icon is visible and displays "Shopping cart".
 The cart page initially shows that the cart is empty.
 Adding a product to the cart updates the cart with one product.
 Removing the product from the cart successfully updates the cart.

Output:

4: Cart Management
Test Case 4.1: Add Items to the Cart
Description: Verify that items can be added to the cart successfully.
Steps:
1. Search for "Blue and green Sneaker" and click on the product.
2. Click the 'Add to Cart' button for the product.
3. Search for "Black & White Diamond Heart" and click on the product.
4. Click the 'Add to Cart' button for the product.
5. Search for "Smartphone" and click on the product.
6. Click the 'Add to Cart' button for the product.
7. Search for "14.1-inch Laptop" and click on the product.
8. Click the 'Add to Cart' button for the product.
9. Verify that the cart icon is visible.
10. And click the cart icon

Expected Results:
 The cart icon is visible, indicating that items have been added to the cart.

Output:

Test Case 4.2: Remove Items from the Cart


Description: Verify that items can be removed from the cart successfully.
Steps:
1. Search for "Blue and green Sneaker" and click on the product.
2. Click the 'Add to Cart' button for the product.
3. Search for "Black & White Diamond Heart" and click on the product.
4. Click the 'Add to Cart' button for the product.
5. Search for "Smartphone" and click on the product.
6. Click the 'Add to Cart' button for the product.
7. Search for "14.1-inch Laptop" and click on the product.
8. Click the 'Add to Cart' button for the product.
9. Click the cart icon to view the cart.
10. Remove items from the cart by clicking the 'Remove' button next to the items.
11. Click 'Update shopping cart' to finalize the changes.

Expected Results:
 The items are removed from the cart, and the cart updates to reflect the changes.

Output:

Test Case 4.3: Verify Cart Total Calculations


Description: Ensure that the cart total calculations are correct based on the added items.
Steps:
1. Search for "Smartphone" and click on the product.
2. Click the 'Add to Cart' button for the product.
3. Search for "Blue and green Sneaker" and click on the product.
4. Click the 'Add to Cart' button for the product.
5. Click the cart icon to view the cart.
6. Verify that the unit price of the Smartphone is $100.00.
7. Verify that the unit price of the Blue and green Sneaker is $11.00.
8. Verify that the cart total is $111.00.

Expected Results:
 The unit prices and cart total are displayed correctly according to the added items.

Output:

Test Case 5: User Registration


Test Case 5.1: User Registration with Valid and Invalid Inputs
Context: Valid Registration
Description: Verify that a user can successfully register with valid inputs.
Steps:
1. Click on the "Register" link.
2. Select "Male" as the gender.
3. Enter a first name (e.g., "momidi").
4. Enter a last name (e.g., "sai kumar").
5. Enter a unique email address (e.g., saikumarmomidi{Date.now()}@gmail.com).
6. Enter a password (e.g., "Sai@1432").
7. Confirm the password with the same value.
8. Click the "Register" button.
9. Verify that the registration success message is displayed.

Expected Results:
 The registration is successful, and a message saying "Your registration completed" is
visible.

Context: Invalid Registration


Description: Verify that an error is displayed when the passwords do not match.
Steps:
1. Click on the "Register" link.
2. Select "Male" as the gender.
3. Enter a first name (e.g., "momidi").
4. Enter a last name (e.g., "sai kumar").
5. Enter a unique email address (e.g., saikumarmomidi{Date.now()}@gmail.com).
6. Enter a password (e.g., "Sai@1432").
7. Enter a different confirmation password (e.g., "sai@1432").
8. Click the "Register" button.
9. Verify that an error message for mismatched passwords is displayed.

Expected Results:
 An error message appears indicating that the password and confirmation password do
not match.

Output:
Test Case 5.2: Verify Successful Registration and Email Confirmation
Context: Successful Registration
Description: Verify that a user can successfully register with valid inputs and check if
registration is confirmed.

Steps:
1. Visit the registration page.
2. Click on the "Register" link.
3. Select "Male" as the gender.
4. Enter a first name (e.g., "momidi").
5. Enter a last name (e.g., "sai kumar").
6. Enter a unique email address (e.g., saikumarmomidi${Date.now()}@gmail.com).
7. Enter a password (e.g., "Sai@1432").
8. Confirm the password with the same value.
9. Click the "Register" button.
10. Verify that the registration success message is displayed.

Expected Results:
 The registration is successful, and a message saying "Your registration completed" is
visible. (Note: Email confirmation is not tested in this scenario.)

Output:
6: User Login/Logout
Test Case 6.1: Login Functionality with Valid and Invalid Credentials
Context: Login Functionality
Description: Verify that users can log in with valid credentials and handle invalid
credentials correctly.

Steps:
Login with Valid Credentials
1. Visit the homepage.
2. Click on the "Login" link.
3. Enter a valid email address (e.g., [email protected]).
4. Enter a correct password (e.g., Sai@1432).
5. Click the "Login" button.
6. Verify that the user is logged in successfully.

Expected Results:
 The user should be logged in successfully, and the login should be confirmed by the
presence of user-specific elements (like a logout button or user profile link).

Login with Invalid Credentials


1. Visit the homepage.
2. Click on the "Login" link.
3. Enter a valid email address (e.g., [email protected]).
4. Enter an incorrect password (e.g., sai@1432).
5. Click the "Login" button.
6. Verify that an error message is displayed.

Expected Results:
 An error message indicating invalid credentials should be displayed, and the login
should not be successful.

Output:

Test Case 6.2: Logout Functionality


Context: Logout Functionality
Description: Verify that users can log out successfully after logging in.
Steps:
1. Visit the homepage.
2. Click on the "Login" link.
3. Enter a valid email address (e.g., [email protected]).
4. Enter a correct password (e.g., Sai@1432).
5. Click the "Login" button.
6. Wait for 2 seconds to ensure that login is processed.
7. Click the "Logout" link.
8. Verify that the user is logged out successfully.

Expected Results:
 The user should be logged out successfully, and the login link should be visible again
or the user-specific elements should no longer be present.

Output:

7: Checkout Process
Test Case 7.1: Test the Checkout Process with Valid Payment Information
Context: Checkout Process
Description: Verify that a user can complete the checkout process using valid payment
information.

Steps:
1. Login:
o Visit the homepage.
o Click on the "Login" link.
o Enter a valid email address (e.g., [email protected]).
o Enter a correct password (e.g., Sai@1432).
o Click the "Login" button.
2. Add Product to Cart:
o Click on the shopping cart icon.
o Search for "Blue Jeans" in the search bar and press Enter.
o Click on the product image for the "Blue Jeans".
o Click the "Add to Cart" button.
3. Proceed to Checkout:
o Click on the shopping cart icon again.
o Check the box for "I agree with the terms of service" and click the "Checkout"
button.
4. Enter Billing Information:
o Select a billing address from the dropdown (e.g., 2).
o Fill out the billing address form with the following details:
 Company: Wipro
 Country: India
 City: Nellore
 Address1: 6/24 Navalakula Gardens
 Address2: Ashoknagar, Nellore
 Zip/Postal Code: 524002
 Phone Number: 9704842702
 Fax Number: +91 861 97048 42702
o Click on the "Save" button for the billing address.
5. Select Shipping Method:
o Click the "Pick Up In Store" option.
o Click the "Continue" button for shipping.
6. Select Payment Method:
o Click the "Credit Card" payment method.
o Click the "Continue" button to proceed to payment information.
o Click the "Continue" button to confirm payment information.
o Click the "Confirm" button to finalize the order.
7. Verify Order Success:
o Verify that the message "Your order has been successfully processed!" is
displayed.
o Click the "Continue" button.
Expected Results:
 The user should be successfully logged in.
 The product should be added to the cart.
 The checkout process should be completed without errors.
 The confirmation message "Your order has been successfully processed!" should be
visible.

Output:

Test Case 7.2: Verify Order Confirmation and Summary


Context: Order Confirmation and Summary
Description: Verify that the order details and confirmation are displayed correctly after the
checkout process.

Steps:
1. Login:
o Visit the homepage.
o Click on the "Login" link.
o Enter a valid email address (e.g., [email protected]).
o Enter a correct password (e.g., Sai@1432).
o Click the "Login" button.
2. View Order History:
o Click on the "Account" link from the header.
o Navigate to the "Orders" section in the account area.
3. Verify Order Details:
o Ensure the order list is visible.
o Click on the most recent order to view details.
o Verify that the order details section is visible.
o Verify that the order number is displayed.
o Verify that the order details, including items and quantities, are displayed.
o Verify that the payment method is displayed.
Expected Results:
 The user should be able to view the order history and details.
 The order number and details should be correctly displayed.
 The payment method should be visible.

Output:

You might also like