Use Case Path Interaction Requirements
A
use case path interaction requirement is a
functional
requirement that specifies a single required interaction
between the blackbox business
enterprise,
application, and
component and an external during the execution of a use case
path.
The typical objectives of a use case path interaction
requirement are to:
- Ensure that the enterprise, application, or component
interacts successfully with the external.
- Enable use case models to be used for the analysis and
specification of functional requirements.
The following are typical examples of use case path
interaction requirements:
- Automatic Teller Machine:
- Actor: Account Holder.
- Use Case: Withdraw Funds.
- Normal Use Case Path: Successful Withdrawal.
- Interactions (whereby interactions 2, 4, 6, 7, and 8
specify path requirements):
- “The authenticated account holder requests
the withdrawal of funds from the ATM.”
- “The ATM shall respond by requesting the
following information from the account holder:
- The account from which to withdraw the
funds.
- The withdrawal amount.”
- “The account holder responds by entering the
following information:
- The account from which to withdraw the
funds.
- The withdrawal amount.”
- “The ATM shall respond by sending a
withdrawal request containing the following information
to the bank computer:
- The account from which to withdraw the
funds.
- The withdrawal amount.
- The transaction number.
- The ATM identifier.”
- “The bank computer responds by sending a
withdrawal approval message containing the following
information to the ATM:
- The account from which the funds were
withdrawn.
- The initial account balance.
- The withdrawal amount.
- The new account balance.
- The transaction number.
- The ATM identifier.”
- “The ATM shall respond by dispensing the
withdrawal amount to the account holder.
- “The ATM shall respond by dispensing a
transaction receipt containing the following
information to the account holder:
- The ATM location.
- The date and time.
- The account from which the funds were
withdrawn.
- The initial account balance.
- The withdrawal amount.
- The new account balance.
- The transaction number.”
- “The ATM shall respond by requesting if the
account holder requests any additional
transactions.
- Digital Thermostat Example:
- Actor: User.
- Use Case: Set Desired Temperature.
- Normal Use Case Path: Increase Desired
Temperature.
- Interactions (whereby interaction 2 specifies a path
requirement):
- “The user notifies the digital thermostat of
a new increased desired room temperature.”
- “The digital thermostat shall respond by
displaying the new desired room temperature to the
user.”
- Global Personal Marketplace (GPM), an Online
Auction Example:
- Actor: Buyer.
- Use Case: Buyer Places Bid.
- Normal Use Case Path: Single Bid Placed.
- Interactions (whereby interactions 2 and 4 specify
path requirements):
- “The buyer notifies the GPM that he/she wants
to place a bid.”
- “The GPM shall respond by requesting the
following information from the buyer:
- The type of bid (single bid).
- The bid amount.
- The desired quantity.”
- “The buyer sends a submit bid request with
the following information to the GPM:
- The type of bid (single bid).
- The bid amount.
- The desired quantity.”
- “The GPM shall respond by sending a
notification containing the following information to
the buyer:
- The ‘Single Bid Placed’ message.
- The bid amount.
- The desired quantity.”
- “The buyer sends a notification
acknowledgement to the GPM.”
The following guidelines have been found to be useful when
producing use case requirements:
- Note that only those interactions initiated by the
business, application, or component specify path interaction
requirements. Requirements cannot specify requirements on
externals, but only on how the business, application, or
component must interact with these externals. Thus,
external-initiated interactions set up local preconditions
for path interaction requirements.
- See additional
use case path guidelines.