Citizendia
Your Ad Here

A 'use case is a description of a system's behaviour as it responds to a request that originates from outside of that system.

The use case technique is used in software and systems engineering to capture the functional requirements of a system. Software engineering is the application of a systematic disciplined quantifiable approach to the development operation and maintenance of Software. Systems engineering is an Interdisciplinary field of Engineering that focuses on how complex engineering projects should be designed and managed In Software engineering, a functional requirement defines a function of a Software system or its component Use cases describe the interaction between a primary actor—the initiator of the interaction—and the system itself, represented as a sequence of simple steps. Actors are something or someone which exist outside the system under study, and that take part in a sequence of activities in a dialogue with the system, to achieve some goal: they may be end users, other systems, or hardware devices. In the Unified Modeling Language (UML an actor is something or someone who supplies a stimulus to the system Each use case is a complete series of events, described from the point of view of the actor. In Computer programming, an event is an action which can be initiated either by the user a device such as a timer or keyboard, or even by the Operating system [1]

According to Bittner and Spence, "Use cases, stated simply, allow description of sequences of events that, taken together, lead to a system doing something useful. "[2] Each use case describes how the actor will interact with the system to achieve a specific goal. In the Unified Modeling Language (UML an actor is something or someone who supplies a stimulus to the system One or more scenarios may be generated from each use case, corresponding to the detail of each possible way of achieving that goal. In Computing, a scenario is a narrative describing foreseeable interactions of types of users (characters and the system Use cases typically avoid technical jargon, preferring instead the language of the end user or domain expert. The end-user is a p concept in Software engineering, referring to an Abstraction of the group of persons who will ultimately operate a piece of software A domain expert or subject matter expert (SME is a person with special knowledge or skills in a particular area Use cases are often co-authored by systems analysts and end users. A systems analyst is responsible for researching planning coordinating and recommending Software and system choices to meet an Organization 's Business The UML use case diagram can be used to graphically represent an overview of the use cases for a given system and a Use-case analysis can be used to develop the diagram. Unified Modeling Language ( UML) is a standardized general-purpose Modeling language in the field of Software engineering. A use case diagram is a type of behavioral diagram defined by the Unified Modeling Language (UML and created from a Use-case analysis. A use case analysis is the most common technique used to identify the requirements of a system (normally associated with software/process design and the information used to both define

Within systems engineering, use cases are used at a higher level than within software engineering, often representing missions or stakeholder goals. The detailed requirements may then be captured in SysML requirement diagrams or similar mechanisms. The Systems Modeling Language ( SysML) is a Domain-Specific Modeling language for Systems engineering.

Contents

History

In 1986, Ivar Jacobson, later an important contributor to both the Unified Modeling Language (UML) and the Rational Unified Process (RUP), first codified the visual modeling technique for specifying use cases. Ivar Hjalmar Jacobson (born in Ystad, Sweden, on September 2, 1939) is a Swedish computer scientist Unified Modeling Language ( UML) is a standardized general-purpose Modeling language in the field of Software engineering. The Rational Unified Process ( RUP) is an Iterative Software development process framework created by the Rational Software Corporation a division Visual modeling is the graphic representation of objects and systems of interest using graphical languages Originally he used the terms usage scenarios and usage case, but found that neither of these terms sounded natural in English, and eventually he settled on the term use case[3]. Since Jacobson originated use case modeling many others have contributed to improving this technique, including Kurt Bittner, Alistair Cockburn, Gunnar Overgaard, and Geri Schneider. Alistair Cockburn (his last name is pronounced "Co-burn" in the Scottish way making it homophonous with that of the actor James Coburn) is one of the initiators

During the 1990s use cases became one of the most common practices for capturing functional requirements. In Software engineering, a functional requirement defines a function of a Software system or its component This is especially the case within the object-oriented community where they originated, but their applicability is not restricted to object-oriented systems, because use cases are not object-oriented in nature. Object-oriented programming (OOP is a Programming paradigm that uses " objects " and their interactions to design applications and computer programs

Overview

Each use case focuses on describing how to achieve a goal or task. For most software projects this means that multiple, perhaps dozens, of use cases are needed to define the scope of the new system. The degree of formality of a particular software project and the stage of the project will influence the level of detail required in each use case.

Use cases should not be confused with the features of the system under consideration. A use case may be related to one or more features, a feature may be related to one or more use cases.

A use case defines the interactions between external actors and the system under consideration to accomplish a goal. An actor specifies a role played by a person or thing when interacting with the system. [4] The same person using the system may be represented as two different actors because they are playing different roles. For example, "Joe" could be playing the role of a Customer when using an Automated Teller Machine to withdraw cash, or playing the role of a Bank Teller when using the system to restock the cash drawer.

Use cases treat the system as a black box, and the interactions with the system, including system responses, are perceived as from outside the system. Black box is a technical term for a device or system or object when it is viewed primarily in terms of its input and output characteristics This is a deliberate policy, because it forces the author to focus on what the system must do, not how it is to be done, and avoids the trap of making assumptions about how the functionality will be accomplished.

Use cases may be described at the abstract level (business use case, sometimes called essential use case), or at the system level (system use case). The differences between these is the scope.

A use case should:

Writing a use case

Degree of detail

Alistair Cockburn, in Writing Effective Use Cases, identified three levels of detail in writing use cases:[5]

Appropriate detail

Some software development processes do not require anything more than a simple use case to define requirements. However, some other development processes require detailed use cases to define requirements. The larger and more complex the project, the more likely that it will be necessary to use detailed use cases.

The level of detail in a use case often differs according to the progress of the project. The initial use cases may be brief, but as the development process unfolds the use cases become ever more detailed. This reflects the different requirements of the use case. Initially they need only be brief, because they are used to summarize the business requirement from the point of view of users. However, later in the process, software developers need far more specific and detailed guidance.

Rational Unified Process invites developers to write a brief use case description in the use case diagram, with a casual description as comments and a detailed description of the flow of events in a textual analysis. The Rational Unified Process ( RUP) is an Iterative Software development process framework created by the Rational Software Corporation a division A use case diagram is a type of behavioral diagram defined by the Unified Modeling Language (UML and created from a Use-case analysis. All those can usually be input into the use case tool (e. g. , a UML Tool, SysML Tool), or can be written separately in a text editor. A UML tool or UML modeling tool is a software application that supports some or all of the notation and semantics associated with the Unified Modeling Language

Use case templates

There is no standard template for documenting detailed use cases. There are a number of competing schemes, and individuals are encouraged to use templates that work for them or the project they are on. Standardization within each project is more important than the detail of a specific template. There is, however, considerable agreement about the core sections; beneath differing terminologies and orderings there is an underlying similarity between most use cases.

Typical sections include:

Different templates often have additional sections, e. g. , assumptions, exceptions, recommendations, technical requirements. There may also be industry specific sections.

Use case name

A use case name provides a unique identifier for the use case. It should be written in verb-noun format (e. g. , Borrow Books, Withdraw Cash), should describe an achievable goal (e. g. , Register User is better than Registering User) and should be sufficient for the end user to understand what the use case is about.

Goal-driven use case analysis will name use cases according to the actor's goals, thus ensuring use cases are strongly user centric. Two to three words is the optimum. If more than four words are proposed for a name, there is usually a shorter and more specific name that could be used.

Version

Often a version section is needed to inform the reader of the stage a use case has reached. The initial use case developed for business analysis and scoping may well be very different from the evolved version of that use case when the software is being developed. Older versions of the use case may still be current documents, because they may be valuable to different user groups.

Goal

Without a goal a use case is useless. There is no need for a use case when there is no need for any actor to achieve a goal. A goal briefly describes what the user intends to achieve with this use case.

Summary

A summary section is used to capture the essence of a use case before the main body is complete. It provides a quick overview, which is intended to save the reader from having to read the full contents of a use case to understand what the use case is about. Ideally, a summary is just a few sentences or a paragraph in length and includes the goal and principal actor.

Actors

An actor is someone or something outside the system that either acts on the system – a primary actor – or is acted on by the system – a secondary actor. An actor may be a person, a device, another system or sub-system, or time. Actors represent the different roles that something outside has in its relationship with the system whose functional requirements are being specified. An individual in the real world can be represented by several actors if they have several different roles and goals in regards to a system. These interact with system and do some action on that.

Preconditions

A preconditions section defines all the conditions that must be true (i. e. , describes the state of the system) for the trigger (see below) to meaningfully cause the initiation of the use case. That is, if the system is not in the state described in the preconditions, the behavior of the use case is indeterminate.

Note that the preconditions are not the same thing as the "trigger" (see below): the mere fact that the preconditions are met does NOT initiate the use case.

However, it is theoretically possible both that a use case should be initiated whenever condition X is met and that condition X is the only aspect of the system that defines whether the use case can meaningfully start. If this is really true, then condition X is both the precondition and the trigger, and would appear in both sections. But this is rare, and the analyst should check carefully that they have not overlooked some preconditions which are part of the trigger. If the analyst has erred, the module based on this use case will be triggered when the system is in a state the developer has not planned for, and the module may fail or behave unpredictably.

Triggers

A 'triggers' section describes the event that causes the use case to be initiated. This event can be external, temporal or internal. If the trigger is not a simple true "event" (e. g. , the customer presses a button), but instead "when a set of conditions are met", there will need to be a triggering process that continually (or periodically) runs to test whether the "trigger conditions" are met: the "triggering event" is a signal from the trigger process that the conditions are now met.

There is varying practice over how to describe what to do when the trigger occurs but the preconditions are not met.

Basic course of events

At a minimum, each use case should convey a primary scenario, or typical course of events, also called "basic flow" or "happy flow". The main basic course of events is often conveyed as a set of usually numbered steps. For example:

  1. The system prompts the user to log on.
  2. The user enters his name and password.
  3. The system verifies the logon information.
  4. The system logs user on to system.

Alternative paths

Use cases may contain secondary paths or alternative scenarios, which are variations on the main theme. Each tested rule may lead to an alternate path and when there are many rules the permutation of paths increases rapidly, which can lead to very complex documents. Sometimes it is better to use conditional logic or activity diagrams to describe use case with many rules and conditions. An activity diagram is a Diagram that shows activities and actions to describe Workflows In the Unified Modeling Language an activity diagram represents

Exceptions, or what happens when things go wrong at the system level, may also be described, not using the alternative paths section but in a section of their own. Alternative paths make use of the numbering of the basic course of events to show at which point they differ from the basic scenario, and, if appropriate, where they rejoin. The intention is to avoid repeating information unnecessarily.

An example of an alternative path would be:

  1. The system recognizes cookie on user's machine.
  2. Go to step 4 (Main path)

An example of an exception path would be:

3. The system does not recognize user's logon information
4. Go to step 1 (Main path)

According to Anthony J H Simons and Ian Graham (who openly admits he got it wrong - using 2000 use cases at Swiss Bank), alternate paths were not originally part of use cases. Instead, each use case represented a single user's interaction with the system. In other words, each use case represented one possible path through the system. Multiple use cases would be needed before designs based on them could be made. In this sense, use cases are for exploration, not documentation.

An Activity diagram can give an overview of the basic path and alternatives path. An activity diagram is a Diagram that shows activities and actions to describe Workflows In the Unified Modeling Language an activity diagram represents

Postconditions

The post-conditions section describes what the change in state of the system will be after the use case completes. Post-conditions are guaranteed to be true when the use case ends.

Business rules

Business rules are written (or unwritten) rules or policies that determine how an organization conducts its business with regard to a use case. Business rules or business rulesets describe the operations definitions and constraints that apply to an organization in achieving its goals Business rules are a special kind of requirement. Business rules may be specific to a use case or apply across all the use cases, or across the entire business. Use cases should clearly reference BRs that are applicable and where they are implemented.

Business Rules should be encoded in-line with the Use Case logic and execution may lead to different post conditions. E. g. Rule2. that a cash withdraw will lead to an update of the account and a transaction log leads to a post condition on successful withdrawal - but only if Rule1 which says there must be sufficient funds tests as true.

Notes

Experience has shown that however well-designed a use case template is, the analyst will have some important information that does not fit under a specific heading. Therefore all good templates include a section (eg "Notes to Developers") that allows less-structured information to be recorded.

Author and date

This section should list when a version of the use case was created and who documented it. It should also list and date any versions of the use case from an earlier stage in the development which are still current documents. The author is traditionally listed at the bottom, because it is not considered to be essential information; use cases are intended to be collaborative endeavors and they should be jointly owned.

Use case notation

In Unified Modeling Language, the relationships between all (or a set of) the use cases and actors are represented in a use case diagram or diagrams, originally based upon Ivar Jacobson's Objectory notation. Unified Modeling Language ( UML) is a standardized general-purpose Modeling language in the field of Software engineering. A use case diagram is a type of behavioral diagram defined by the Unified Modeling Language (UML and created from a Use-case analysis. Ivar Hjalmar Jacobson (born in Ystad, Sweden, on September 2, 1939) is a Swedish computer scientist Objectory is an Object-oriented Methodology mostly created by Ivar Jacobson, who is also responsible for Object-oriented software engineering SysML, a UML profile, uses the same notation at the system block level. The Systems Modeling Language ( SysML) is a Domain-Specific Modeling language for Systems engineering. A profile in the Unified Modeling Language provides a generic extension mechanism for customizing UML models for particular Domains and platforms

Use cases and the development process

The specific way use cases are used within the development process will depend on which development methodology is being used. In certain development methodologies, a brief use case survey is all that is required. Use case survey is a list of names and perhaps brief descriptions of Use cases associated with a system component or other logical or physical entity In other development methodologies, use cases evolve in complexity and change in character as the development process proceeds. In some methodologies, they may begin as brief business use cases, evolve into more detailed system use cases, and then eventually develop into highly detailed and exhaustive test cases.

Benefits of use cases

Use cases are a mature model to capture user (person or system) proffered interaction requirements and begin to establish some of the functional requirements before construction of a new system begins. In Software engineering, a functional requirement defines a function of a Software system or its component Proponents prefer them to large, monolithic documents which they believe cannot be simultaneously complete and meaningful, and regard them as an excellent technique for capturing the functional requirements of a system. Proponents cite these advantages:

Limitations of use cases

Use cases have limitations:

Software

See also

External links

References

  1. ^ Ivar Jacobson (1992). Object-Oriented Software Engineering. Addison Wesley Professional. Addison-Wesley is a Book publishing imprint of Pearson PLC, best known for computer books ISBN 0-201-54435.  
  2. ^ Kurt Bittner, Ian Spence (2002). Use Case Modeling. Addison Wesley Professional, 2-3. Addison-Wesley is a Book publishing imprint of Pearson PLC, best known for computer books ISBN 0-201-70913-9.  
  3. ^ Alistair Cockburn, "Use cases, ten years later"
  4. ^ http://www.omg.org/docs/formal/07-02-03.pdf §16. 3. 1
  5. ^ A. Cockburn (2001). Writing Effective Use Cases. Addison-Wesley Longman Publishing Co. , Inc. ISBN 0-201-70225-8.  
  6. ^ Frank Armour and Granville Miller (2000). Advanced Use Case Modeling: Software Systems. Addison-Wesley Professional. ISBN 0201615924.  
  7. ^ Richard Denney (2005). Succeeding with Use Cases: Working Smart to Deliver Quality. Addison-Wesley Professional. ISBN 0321316436.  

Dictionary

use case

-noun

  1. (software engineering) A description of a system’s behaviour as it responds to a request that originates from outside of that system.
© 2009 citizendia.org; parts available under the terms of GNU Free Documentation License, from http://en.wikipedia.org
Dapyx Software network: MP3 Explorer | Ebook Manager | Zenithic