GROUPS MEMBERS
ADAN ALI (SP21348)
RAJA MUHAMMAD JAWAD ALI(SP21331)
SABTAIN MUHAMMAD(SP211336)
Test Case Generation
from Use Cases
Learn how to transform use cases into comprehensive test plans for
robust software validation.
Introduction to Use Cases
What are Use Cases? Importance of Use Cases
Use cases are descriptions of how users interact with a Use cases serve as a bridge between functional
software system to achieve specific goals. They provide a requirements and testing, ensuring that the system
structured way to capture user requirements and fulfills its intended purpose.
behaviors.
Identifying Test
Scenarios from Use
Cases
Happy Path Error Handling
Test the normal and expected Test how the system responds
flow of the use case. to invalid inputs, incorrect
data, or unexpected
conditions.
Boundary Conditions
Test the limits and edge cases of the system's functionality.
Example 1: Airline
Ticket Booking Use
Case
1 User searches for flights based on destination, date,
and number of passengers.
2 User selects a flight and proceeds to payment.
3 User enters payment information and confirms booking.
4 System generates a confirmation email with ticket
details.
Deriving Test Cases
from the Airline Ticket
Booking Use Case
1 Happy Path 2 Error Handling
User successfully books a Invalid flight details,
ticket. insufficient funds, payment
errors, system outage.
3 Boundary Conditions
Booking flights with maximum passengers, last-minute
bookings, booking with miles.
Example 2: Online Shopping Cart Use Case
Adding Items Modifying Cart Checkout
User adds items to the shopping cart. User updates quantities, removes User proceeds to checkout and
items, or changes shipping address. completes the purchase.
Deriving Test Cases from the Online Shopping Cart Use
Add Items
Test adding various items, including different types, quantities, and prices.
Modify Cart
Test updating quantities, removing items, and changing shipping addresses.
Checkout
Test different payment methods, delivery options, and order confirmation processes.
Conclusion and Best Practices
1 Understand the User
2 Identify Test Scenarios
3 Develop Test Cases
4 Execute and Analyze
5 Iterate and Improve