0% found this document useful (0 votes)
36 views7 pages

Use Case Testing 31010922037 ST Practical

Uploaded by

Sneha Kesarwani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views7 pages

Use Case Testing 31010922037 ST Practical

Uploaded by

Sneha Kesarwani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Name:-Sneha kesarwani.

Class:- Ty.bsc.IT.

Seat No. : 31010922037

Subject :- Software Testing


Practical no:

Title: Black Box Testing: Use Case Testing

Problem Statement:
Construct the use case testing for the user registration scenario

Use Case Testing:


Use Case ID UC-01
Title: User Registration
Precondition: The user is on the registration page of the application.
Main Scenario Step Description
1 Open Registration Page:
- The user navigates to the registration page.
2 Enter User Information:
- The user fills in the required fields:
- Username
- Email
- Password
- Confirm Password
3 Submit Registration Form
- The user clicks the "Register" button.
4 System Validations:
- The system checks if:
- The username is unique.
- The email format is valid.
- The password meets security criteria (e.g.,
length, complexity).
- The "Confirm Password" matches the
"Password".
5 Successful Registration:
- If all validations pass, the user is
registered, and a confirmation message is
displayed.
- The system sends a confirmation email to
the registered email address.
6 Redirect to Login Page:
- The user is redirected to the login page.
Extension / Alternate Flow 1 AF-01: Duplicate Username
- If the username already exists:
- The system displays an error message:
"Username already taken."
AF-02: Invalid Email Format
- If the email format is invalid:
- The system displays an error message:
"Please enter a valid email address."
AF-03: Password Complexity Failure
- If the password doesn’t meet criteria:
- The system displays an error message:
"Password must be at least 8 characters long and
contain a mix of letters and numbers."
AF-04: Password Mismatch
- If the password and confirm password
fields do not match:
- The system displays an error message:
"Passwords do not match."
Postconditions: ● If registration is successful, the user account is
created and the user receives a confirmation
email.
● If registration fails, no account is created, and
the user is informed of the errors.
Test case Input Expected Output
Successful Registration Unique username, valid User is registered
email, strong password, successfully and receives a
matching confirmation. confirmation email.
Duplicate Username Existing username, valid Error message for duplicate
email, strong password. username.
Invalid Email Format Unique username, invalid Error message for invalid
email format, strong email.
password.

Testing Scenarios:
Weak Password Unique username, valid Error message for weak
email, weak password. password.
Password Mismatch Unique username, valid Error message for password
email, password, and mismatch.
nonmatching confirm
password.

Conclusion:
This scenario outlines a comprehensive use case for user registration, detailing the main flow,
alternative flows, testing scenarios, and expected outcomes. It can be used to ensure that the
registration feature functions correctly under various conditions.
Practical no:

Title: Black Box Testing: Use Case Testing

Problem Statement:
Construct the use case testing for the online shopping cart scenario

Use Case Testing:


Use Case ID UC-02
Title: Shopping Cart Functionality
Precondition: The user is logged into their account and is on the product
listing page.
Main Scenario Step Description
Actors: User (customer) 1 Browse Products:
- The user navigates through available products.
2 Add Product to Cart:
- The user selects a product and clicks the
"Add to Cart" button:
- The system confirms the addition with a
message (e.g., "Item added to your cart").
3 View Cart:
- The user clicks on the "Cart" icon to view
their selected items.
- The system displays a list of items in the
cart with details such as:
- Product name
- Quantity
- Price
- Total price
4 Update Cart:
- The user can change the quantity of an
item or remove an item from the cart.
- The system updates the total price
accordingly.
5 Apply Discount Code:
- The user enters a valid discount code in
the designated field.
- The system validates the code and applies
the discount to the total price.
6 Proceed to Checkout:
- The user clicks the "Checkout" button.
7 Complete Purchase:
- The user enters the required details and
confirms the order.
- The system processes the payment and
displays an order confirmation message.
Extension / Alternate Flow 1 AF-01: Item Not Available
- If the item is no longer in stock or available
-The system displays an error message “Item
not in stock”

AF-02: Invalid Discount Code


- If the discount code that user entered is not
valid
- The system displays an error message
“Invalid discount code”
AF-03: Exceeding Quantity Limit
- If the user is trying to order too many products
- the system displays an error message
“Exceeding Quantity limit”
Postconditions: ● If the purchase is successful, an order is
created in the system, and the user receives a
confirmation email.
● If the user cancels or fails to complete the
purchase, no order is created.

Testing Scenarios:
Test case Input Expected Output
Successful Addition of Item User clicks on add to cart System displays “Item
to Cart button added to cart”
View Cart Functionality The user clicks on the "Cart" The system displays a list of
icon to view their selected items in the cart with details
items. such as:
- Product name
- Quantity
- Price
- Total price
Update Item Quantity in User adds or subtracts item The system updates the total
Cart quantity from the cart price accordingly.
Remove Item from Cart User clicks remove item System removes the item
button in the cart from the cart
Apply Valid Discount Code The user enters a valid The system validates the
discount code in the code and applies the
designated field. discount to the total price.

Apply Invalid Discount User enters invalid discount The system displays an error
Code code message “Invalid discount
code”
Successful Checkout The user clicks the System proceeds to
Process "Checkout" button. checkout the items
Out of Stock Item Attempt User clicks on the checkout System displays an error
button while an item in the message “Item out of stock”
cart is out of stock
Exceeding Quantity Limit User clicks on the checkout System displays an error
button while items exceeds message “Exceeding
the limit of cart quantity limit”

Conclusion:
This detailed use case scenario outlines the complete shopping cart functionality, including
the main flow, alternative flows, postconditions, and specific testing scenarios. This
comprehensive approach ensures that all aspects of the shopping cart feature are thoroughly
tested.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy