Sample Use Case Example

Glasses

Here’s an example of a use case that has some system complexity. The user interacts with the main system that we are describing. The system also interacts with two external systems. This use case example shows how to describe the steps that demonstrate all interactions with the system.

Sample Use Case Example

The first step in defining a use case is to define the name, using the verb-noun naming convention.

Use Case Name: Place Order

The next step is to define the use case at a low level of detail. This quick use case definition allows for agile development of use cases. This is also known as a use case brief.

Sample Use Case Brief

Use Case Name: Place Order

Actors:

  • Shopper
  • Fulfillment System
  • Billing System

Use Case Description: After the user has selected items to purchase and then order the items. The user will provide payment and shipping information. The system will respond with confirmation of the order and a tracking number that the user can use to check on order status in the future. The system will also provide the user with an estimated delivery date for the order, which will include all selected items. The user may already have an account with the company with billing and shipping information.

Formal Use Case Example

You can clarify the use case further by refining the use case into a formal use case or informal use case format (free template). Here is how the use case would look when using a formal use case format.

Note that there are additional elements to a formal use case that may be included, but are not part of this example. You can read more about how to read a formal use case. You can also read about how to define actors, and how to define use case triggers and preconditions.

Use Case Name: Place Order

Actors:

  • Registered Shopper (Has an existing account, possibly with billing and shipping information)
  • Non-registered Shopper (Does not have an existing account)
  • Fulfillment System (processes orders for delivery to customers)
  • Billing System (bills customers for orders that have been placed)

Triggers:

  • The user indicates that she wants to purchase items that she has selected.

Preconditions:

  • User has selected the items to be purchased.

Post-conditions:

  • The order will be placed in the system.
  • The user will have a tracking ID for the order.
  • The user will know the estimated delivery date for the order.

Normal Flow:

  1. The user will indicate that she wants to order the items that have already been selected.
  2. The system will present the billing and shipping information that the user previously stored.
  3. The user will confirm that the existing billing and shipping information should be used for this order.
  4. The system will present the amount that the order will cost, including applicable taxes and shipping charges.
  5. The user will confirm that the order information is accurate.
  6. The system will provide the user with a tracking ID for the order.
  7. The system will submit the order to the fulfillment system for evaluation.
  8. The fulfillment system will provide the system with an estimated delivery date.
  9. The system will present the estimated delivery date to the user.
  10. The user will indicate that the order should be placed.
  11. The system will request that the billing system should charge the user for the order.
  12. The billing system will confirm that the charge has been placed for the order.
  13. The system will submit the order to the fulfillment system for processing.
  14. The fulfillment system will confirm that the order is being processed.
  15. The system will indicate to the user that the user has been charged for the order.
  16. The system will indicate to the user that the order has been placed.
  17. The user will exit the system.

Alternate Flows:

3A1: The user enters billing and shipping information for the order. The user desires to use shipping and billing information that differs from the information stored in her account. This alternate flow also applies if the user does not maintain billing and / or shipping information in their account, or if the user does not have an account.

  1. The user will indicate that this order should use alternate billing or shipping information.
  2. The user will enter billing and shipping information for this order.
  3. The system will validate the billing and shipping information.
  4. The use case continues

5A1: The user will discover an error in the billing or shipping information associated with their account, and will change it.

  1. The user will indicate that the billing and shipping information is incorrect.
  2. The user will edit the billing and shipping information associated with their account.
  3. The system will validate the billing and shipping information.
  4. The use case returns to step 2 and continues.

5A2: The user will discover an error in the billing or shipping information that is uniquely being used for this order, and will change it.

  1. The user will indicate that the billing and shipping information is incorrect.
  2. The user will edit the billing and shipping information for this order.
  3. The use case returns to step 3A1 step 3.

10A1: The user will determine that the order is not acceptable (perhaps due to disatisfaction with the estimated delivery date) and will cancel the order.

  1. The user will request that the order be cancelled.
  2. The system will confirm that the order has been cancelled.
  3. The use case ends.

Summary

This example use case shows how a use case can be developed with incrementally increasing detail. First, the name of the use case is identified, then a simple version of the use case is defined. Finally, a formal use case is defined.

Post to Twitter Post to Facebook

This article was published on Monday, April 9th, 2007 at 9:42 pm and is filed under Requirements, Requirements Models, Use Cases.
You can leave a comment on this post

26 Comments

  1. Thank you for the great example, and the definitions of what you’re referring to. I have NO experience with use cases or scenarios, no experience with flow charting or anything like that. I’m a secretary, tasked to help out with developing a new system, and was tasked with providing use cases for three variations in the new system. I had no idea where to start but I think now I can at least get something down on paper that makes sense. I had visions of trying to make boxes and arrows and somehow knew that wouldn’t work. Thanks again.

  2. Anita, or Anita Jay (I hope I guessed right), thanks very much for the kind comments, and I’m thrilled that the stuff we’ve got here is helping you! You made my day by letting me know.

    Thanks for stopping by, hope you stick around, and if any of the articles don’t provide enough context or use too much jargon, just comment and let us know – we’ll make em better.

  3. Hi!
    I just want to know that do you use any template for writing the use cases?..if so what and how?The above test case looks so readable and simple.. Thanks alot for sharing this with people like us..

  4. Thanks, Rajashree, and welcome to Tyner Blain! We have a template for informal use cases: Informal Use Case Template.

    My clients usually already have templates of their own that they have developed (with boilerplate text and signoffs, etc), so I usually use those. When they don’t, I will use this one, or I will propose that they update theirs to be more like this one. There is not a universal standard that everyone acknowledges as “the template.”

  5. hi scott , I am student in software enjneering (master) , I need your help , can you give me more examples in usecase daigrame and class daigram .

  6. Yamen, thanks for your question, and welcome to Tyner Blain. Generally, I don’t draw use case diagrams – I find they provide almost no extra insight in exchange for extra effort. Class diagrams, I find, are incredibly valuable. I wrote a series of articles recently on how to use class diagrams for business analysis which should help you get started. As a software engineering student, you’ll also want to go into more detail on the techniques for representing systems. There are links to Scott Ambler’s resources for that purpose. The series here is focused on domain analysis, not solution analysis.

    Good luck!

  7. I need to know how to write use cases for online purchasing

    • For online purchasing, you’ll have multiple use cases. Start with defining who the customer is, and why they are purchasing online (specific or non-specific buying, etc). Then look at how they get to the site (direct, SEO/SEM, from email, referral, etc). There will be a lot of variations (do they want to compare products, or do they know what they want, or are they window shopping, are they shopping for themselves or someone else, etc). Think about the checkout process – payment options, shipping options, coupons, etc. Also the notification, returns, and customer service use cases.

      TONS of stuff to consider.

  8. Hello Scott!

    i wanted to concert about my following problem (maybe shoIuld call it “challenge”…)
    i’m working on project in which we have a device (let’s consider it as already existing without changes) and a remote control for this device.
    my efforts are putted on use cases definition for the remote control development program.
    this remote is aimed to connect not only to the specific device bt also to offer connectivity to other devices/computers/terminals via specific datalinks

    the remote offers several functions, is aimed to be used by different types of users and also has different modes of use (day/night, following a typical usage pofile)

    in these days, i try to adopt strategy for use cases guidelines definition

    i’d be grateful if you can send me some advices from where i can start
    best regards,

    • Shlomo,

      Thanks very much for the great questions and welcome to Tyner Blain!

      The best place to start is to identify the personas (actors, in use cases) – see How to Create Personas for Goal Driven Development and Global Actor Hierarchies and Personas for some tips. Also keep in mind Elastic Users, Actors, and Roles and Actor Hierarchies and Then Some.

      Then map those actors to use cases you define for them with Use Case to Actor Mapping.

      One thing to think about – for the “work for other devices” part of the product, are you defining support (in the remote) for specific datalink protocols (in the other devices), or you are defining an API (in the remote) that would support any not-yet-invented device?

      If the former, you’ll want to specify support for the protocols as constraints for your remote. If the latter, you’ll want to look at use cases in two ways – (1) make sure your product allows people to do the stuff you know they need to do – via the API – and (2) think about the programmers that are working against your API as they develop other devices. What are their (the programmer’s) use cases? How do you make your API easier for them to program against?

  9. hi,
    i want to know that how to write a test case & sample use case.b`coz i something know about software .in degree my stream was Bio,nw i am in software field.i have joined software testing course,know something about testing,so u are requested that please guide me that how to write a test case for any software requirement.

  10. I would like to request instruction on writing a fully dressed use case for “finding the nearest restaurant” using an iphone.

    Would really appreciate your help

    Thanks,
    J

  11. Hi Scott, I have gone through your article and found good for a beginers, who wants to join as a part of design team. But I need some pictorial sample rather text for better understanding and focused as the matter fact UML.
    Thanks,
    Tapan

  12. Hello Scott!
    Finally a well explained example for a use case. I am very glad I found this article. Thank you very much!

  13. Wow good information, and nice written….

  14. Hello Scott!
    Finally a well explained example for a use case. I am very glad I found this article. Thank you very much!
    i’m from iran

  15. i want the use case in the remote

  16. How do you make a Use Case Diagram using the example you provided above?

    • Rupinder, thanks for reading and commenting! Please take a look at my comment #6 above – I don’t draw UML use case diagrams, as I find that they don’t provide me with additional insights, and they are relatively (time) expensive to maintain as my understanding of a system and the user goals / tasks evolve.

8 Trackbacks

  1. By links for 2007-04-11 « D e J a M e S e R on April 11, 2007 at 9:25 am

    [...] Sample Use Case Example | Tyner Blain Here’s an example of a use case that has some system complexity. The user interacts with the main system that we are describing. The system also interacts with two external systems. This use case example shows how to describe the steps that demonstrate (tags: uml) [...]

  2. By Jeanne Halloran on July 28, 2010 at 9:50 pm

    Found a good article on sample use cases: http://tynerblain.com/blog/2007/04/09/sample-use-case-example/ check it out!

  3. By Vincentious on August 14, 2011 at 2:42 pm

    By @sehlhorst: Sample Use Case Example http://t.co/t5SmeyS

  4. By George K. on December 15, 2011 at 5:09 am

    By @sehlhorst: Sample Use Case Example http://t.co/YkoW7jEM

  5. By UXfeeds on December 29, 2011 at 4:27 pm

    Sample Use Case Example | Tyner Blain: http://t.co/JQsSKXyf #ux

  6. By UX Feeder on December 29, 2011 at 4:27 pm

    Delicious: Sample Use Case Example | Tyner Blain: http://t.co/U8QtG3b6 [UX popular]

  7. By UX Factory on December 29, 2011 at 4:29 pm

    Sample Use Case Example | Tyner Blain: http://t.co/0mHKhNtZ

  8. By derek heston on December 29, 2011 at 6:34 pm

    Sample Use Case Example | Tyner Blain: http://t.co/JQsSKXyf #ux

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>