Keene Systems, Inc.

How to Write Software Requirements: Actors and Use Cases

Software requirements describe what a system must do, in terms the people paying for it and the people building it both understand. The most reliable way to write them is to start with two lists: the actors, meaning everyone and everything that will use the system, and the use cases, meaning what each actor needs to get done. Get those two lists right and most of the remaining detail follows from them.

102use case diagram for blog

Why the requirements are your responsibility

Developers know how to build software. They do not know your business the way you do. If the requirements are vague, the developers fill the gaps with guesses, and the guesses surface later as rework, delays and arguments about what was agreed.

A requirements document does not need technical language. It needs to be complete and unambiguous about who does what. Writing it is also the cheapest point in a project to discover a disagreement inside your own company.

Actors: who uses the system

An actor is anyone or anything outside the system that interacts with it. Actors are roles, not individuals. One person may play several roles, and one role may be filled by many people.

To find your actors, ask:

  • Who enters information into the system?
  • Who looks information up or receives reports from it?
  • Who approves, rejects or signs off on work?
  • Who sets it up and maintains users and settings?
  • Which other systems send data to it or receive data from it?

Examples of actors

For an order management system at a distributor, the actors might be:

  • Customer. Places orders and checks their status through a portal.
  • Sales representative. Enters orders taken by phone and prepares quotes.
  • Warehouse staff. Pick, pack and ship orders.
  • Accounting clerk. Issues invoices and records payments.
  • Manager. Approves discounts and reviews reports.
  • Administrator. Manages users, prices and settings.
  • Accounting system. A non-human actor that receives invoice data.

Systems count as actors. Listing them early exposes the integrations the project will need.

Use cases: what each actor needs to do

A use case is one goal an actor wants to achieve with the system, described from the actor’s point of view. It is written as a verb and an object: “Place an order”, “Approve a discount”, “Print a packing slip”.

For each actor, ask what they need to accomplish, not what screens they want. “Find every open order for a customer” is a use case. “A grid with a filter box” is a design decision, and it can wait.

Examples of use cases

Continuing the order management example:

  • Customer: place an order, view order status, reorder a previous order, download an invoice.
  • Sales representative: create a quote, convert a quote to an order, look up a customer’s history.
  • Warehouse staff: view orders ready to pick, record a shipment, report a shortage.
  • Accounting clerk: generate invoices for shipped orders, record a payment, issue a credit.
  • Manager: approve a discount above the limit, view sales by product and by customer.

A diagram with actors on the outside and use cases in the middle, like the one above, lets everyone see the scope of the system on one page.

How to write up a single use case

Once the list exists, each use case gets a short description. A useful one covers:

  1. Name and actor. “Approve a discount”, Manager.
  2. Trigger. What starts it. A sales representative requests a discount above their limit.
  3. Main steps. What the actor does and how the system responds, in order.
  4. Exceptions. What happens when something is missing, invalid or refused.
  5. Business rules. Limits, calculations and conditions that apply.
  6. Result. What is true when it finishes. The order carries the approved discount and the request is logged.

The exceptions and business rules are where projects are won or lost. They are the parts that live in people’s heads and are never written down until someone asks.

Functional and non-functional requirements

Use cases capture functional requirements: what the system does. A complete document also states the non-functional ones: how many users it must support, how fast it must respond, who may see which data, what must be logged for audit, which devices it must run on and which systems it must exchange data with.

Common mistakes

  • Describing screens instead of goals. It locks in a design before the need is understood.
  • Leaving out the exceptions. The normal path is the easy part.
  • Forgetting an actor. The person who runs month-end reports is often missed.
  • Using words nobody has defined. If “order” means different things to sales and to the warehouse, write down which one you mean.
  • Trying to finish it in one sitting. Requirements improve when the people who do the work review them.

What comes next

With actors and use cases agreed, a development team can estimate the work, propose screens and plan the order in which features are built. Our free white paper on how to plan a software project covers the full sequence, and planning a software project is like building a house explains why the blueprint comes first.

You do not have to write the requirements alone. When Keene Systems starts a project, we interview the people who do the work and write the actors, use cases and rules down with you.

Frequently asked questions

What are software requirements?

Software requirements are a written description of what a system must do and the conditions it must meet. They cover who uses it, what each user needs to accomplish, the business rules that apply and qualities such as security, speed and capacity.

What is an actor in software requirements?

An actor is a role that interacts with the system from outside it. It can be a type of person, such as a customer or a manager, or another system, such as an accounting package that receives data.

What is a use case?

A use case describes one goal an actor wants to achieve with the system, such as placing an order or approving a discount. It lists the steps involved, the exceptions that can occur and the result when it is complete.

What is the difference between functional and non-functional requirements?

Functional requirements describe what the system does, such as creating an invoice. Non-functional requirements describe how well it must do it: how many users, how fast, how secure, on which devices and with what audit history.

Who should write the software requirements?

The business that will use the software owns the requirements, because only it knows the process and the rules. A good development firm helps by interviewing users, asking about exceptions and writing the results down in a structured form.

If you have a project in mind and want help turning it into clear requirements, that conversation is where we start.

Book a 20-minute call with our CEO, Lance Keene: https://www.KeeneSystems.com/BookLance

eBook: How to Automate a Business Process in 7 Smart Steps
Previous Post
Next Post

Book an Appointment

Whether you are interested in starting a conversation around your current IT challenges or just have some questions about Keene Systems, please fill out our contact form below. We will respond within one business day.