Você está na página 1de 14

ProjectName ApplicationName

DocumentName ApplicationUseCase

ApplicationUseCaseTemplate


Workingwithtemplates
Thisdocumentservesasthebasisfordetailinganapplicationusecase.Thesectionsofthis
documentshouldnotbealteredinanyway.IfasectionisnotapplicabletypethewordN/Ainto
thatsection.

Updated:7/6/20096:13PM LesMundayUniversity,2009 Page1of14


ProjectName ApplicationName
DocumentName ApplicationUseCase

ProjectName
ApplicationName
DocumentName
ApplicationUseCase
Version#
July6,2009

Updated:7/6/20096:13PM LesMundayUniversity,2009 Page2of14


ProjectName ApplicationName
DocumentName ApplicationUseCase

TableofContents
TableofContents

TableofFigures

1 Introduction

1.1 Purpose

1.2 Audience

1.3 Scope

1.4 Definitions,Acronyms,andAbbreviations

1.5 Goals

2 DocumentNameUseCaseDetails

2.1 BriefDescription

2.2 Usage

2.3 PrimaryActor

2.4 SupportingActors

2.5 Precondition(s)

2.6 SuccessfulPostCondition

2.7 AlternatePostConditions

2.8 BasicFlow

2.9 AlternateFlows

2.10 ExtensionPoints

2.11 ActivityDiagram

3 UseCasePerformanceRequirements
4 UseCaseSupplementaryRequirements

5 InterfaceRequirements

TableofFigures
Figure1: ExampleUseCase
Figure2: ExampleActivityDiagram

Updated:7/6/20096:13PM LesMundayUniversity,2009 Page3of14


ProjectName ApplicationName
DocumentName ApplicationUseCase

Updated:7/6/20096:13PM LesMundayUniversity,2009 Page4of14


ProjectName ApplicationName
DocumentName ApplicationUseCase

Introduction
Thissectionservesasanoverviewoftheusecase.
1.1 Purpose
TheApplicationUseCase(AUC)documentcapturesalltherequirementsfortheDocument
Nameusecase.
1.2 Audience
Foreachrolethatisexpectedtoreviewthisdocumentdescribehowthisdocumentisusefulto
theirrole.
1.3 Scope
ThisdocumentcontainsasingleusecasefortheApplicationNamesystemanditssupporting
requirements.
Containsanoverviewoftheinformationinthisdocument.
1.4 Definitions,Acronyms,andAbbreviations
SeetheglossaryinReqProforacompletelistoftermsusedonthisproject.
1.5 Goals
Thissectiondescribesthepurposeofthisusecase.

Updated:7/6/20096:13PM LesMundayUniversity,2009 Page5of14


ProjectName ApplicationName
DocumentName ApplicationUseCase

DocumentNameUseCaseDetails
Thissectiondetailstheusecase.
2.1 BriefDescription
Ashortdescriptionoftheusecasefocusingonhowitenablesactorstoachievetheirgoals.
Insertausecasediagram.
2.2 Usage
Indicatethenormalandpeakfrequencythatthisusecasecanbeexpectedtoexecute.
2.3 PrimaryActor
Statetheprimaryactorsroleinthisusecase.
2.4 SupportingActors
Listallsupportingactorrolesinthisusecase.
2.5 Precondition(s)
Thisisthestateofthesystembeforetheusecasestart.Assuchitisnotcheckedduringexecution
oftheusecase,insteaditisassumedthatitisnotpossibletoexecutetheusecaseitthe
preconditionhasnotbeensatisfied.(Ifthesystemdisplaysanerrorbecausesomethinghasnot
previouslyoccurred,donotlistitasaprecondition,butdescribeitinanexceptionflow.)In
generalapreconditionindicatesthatsomeotherusecasehasruntocompletionpriortothisuse
caseexecuting.Inthatsenseapreconditioncanbeseenasthepostconditionofsomeotheruse
case.Acommonexampleofapreconditionistheactorhasloggedontothesystem.
2.6 SuccessfulPostCondition
Thisistheconditionofthesystemafterthecompletionofthebasicflow.
2.7 AlternatePostConditions
Thisistheconditionofthesystemaftertraversinganextensionflow.
2.8 BasicFlow
1. <enterusecasestepshere>
Typeeachlineoftheusecaseusingthe'Normaltextstyle.Whencomplete,seteachsteptostyle
'UseCaseStep'.Thiswillautomaticallynumberthesteps.
Thebasicflowisthenormalflowofeventsthatthisusecaseisintendedtoexecute.
Ifsystemdoesmultiplethingsinnoparticularorderinresponsetotheactorsaction,further
splitthoseintoseveralsubstepsifitincreasesclarity,and,usebulletpointstoformatthe
substeps(indicatingthatthereisnoordertothesequenceinwhichthestepsareexecuted).
Indicatetheendofaflowbytypingthewords'Endusecase'.
Ifseveralstepsaretoberepeated,writetherepetitioninstructionaftertherepeatingsteps.

Updated:7/6/20096:13PM LesMundayUniversity,2009 Page6of14


ProjectName ApplicationName
DocumentName ApplicationUseCase

Howtoincludeadifferentusecase:
Whenincludinganotherusecase,referencetheusecasenameandidentifierinthestep.
2.9 AlternateFlows
1.1.1.1.1.1.1.1.1<Enteralternateflownamehere>
2. <enteralternatestepshere>
Alternativeflowisasthenamesuggestsadifferentpathausecasecanfollowtoreacha
successfulpostcondition.Itstartswithacondition(whichisstatedintheAlternativeFlowtitle)
andcontainsasetofstepsdescribingwhathappensunderthatcondition.
Usuallyanalternativeflowendsbysimplyremergingwiththebasicflowataparticularstep.
Whenthatisnotthecase,clearlyindicatetheendoftheusecasewiththestatementUsecase
ends.MakesurethepostconditionofthisflowisconsistentwittheSuccessfulPost
Condition(s).
Enteralternateflowheadingandtextusingthe'Normalbody'style.Donotreferencestepsin
theusecaseyet.Setthealternateflowheadingtostyle'AlternateFlow'.Seteachalternateflow
steptostyle'AlternateStep'.
Whereanalternateflowstepmakesreferencetoastepintheusecasebody,usethe
'Insert>Reference>CrossReference'commandtoreferencetheparagraphnumber.
Whereanalternateflowisreferencedfromabasicstep,usethe'Insert>Reference>Cross
Reference'commandtoreferencetheparagraphnumber.
2.10 ExtensionPoints
i. <Enterextensionflownamehere>
3. <enterextensionstepshere>
Alistoflocationswithintheflowofeventsoftheusecaseatwhichadditionalbehaviorcanbe
inserted.
Unlesstheactionistrivial,documentextensionstoausecaseintheirownusecasedocument.
Indicatethattheusecaseisextendedbyusingtheextendrelationshiptoconnecttheusecasesin
ausecasediagram.
[Exampleusecase:
2.DocumentNameUseCase
Thissectiondetailstheusecase.
2.1Description
Theprimaryfunctionofthedematerializeristobreakdownthecargointoparticlesthatmaybe
sentbythetransmitter.Ablueprintofthecargoissenttotheblueprintmanager.

Updated:7/6/20096:13PM LesMundayUniversity,2009 Page7of14


ProjectName ApplicationName
DocumentName ApplicationUseCase


Figure1:ExampleUseCaseDiagram
2.2PeakUsage
TheDematerializermayneedtobeusedupto5timesaday.
2.3PrimaryActor
Cargohandler.
2.4SecondaryActors
Transmitter
2.5Precondition(s)
TheDematerializerisina'ReadyToTransport'state.
2.6PostCondition(s)
TheDematerializerisina'ReadyToTransport'state.
2.7BasicFlow
1.SystemreceivesanOpenDoorcommand.
2.Thesystemopensthedoor.
3.(Thecargoisloaded),Thesystemreceivesacommandtotransportthecargo.
4.Thetransmitteris'ReadytoTransmit'andthesystemclosesthedoor.
5.Thedoorisclosedandthesystem:
.securesthecargo.
.createsavacuum.

Updated:7/6/20096:13PM LesMundayUniversity,2009 Page8of14


ProjectName ApplicationName
DocumentName ApplicationUseCase

6.Thecargoisreadytobedeconstructedandthesystem:
.sendsablueprintofthedeconstructedcargototheBlueprintManager.
.deconstructsthecargoandsendsthedeconstructedmattertotheTransmitter.
7.Thecargohasbeensenttothetransmitterandsystemremovesthevacuum.
Theusecaseends.
2.8AlternateFlows
A.1Thetransmitterisnotready:
8.Atstep4,thesystemwaitsforthetransmittertoindicatethatitisready.
9.Transmitterindicatesthatitisready.
Returntostep4.
2.9ExtensionPoints
E.1Thesystemisconfiguredtoautomaticallyshutdownaftersuccessfultransmission.
10.Atstep7thesysteminformstheuserthatitisshuttingdown.
11.Thesystemshutsdown.
Theusecaseends.]
2.11 ActivityDiagram
Thefollowingdiagramrepresentsthestepsoftheusecase.Theinputsarerepresentedbycontrol
flowsbetweenactivities.Theactivitiesrepresenttheworkdonebythesystem.Theinitialstate
representsthepreconditionoftheusecaseandthefinalstatesarethepostconditions.Alternative
andextensionflowsarerepresentedbydecisions.Whereanalternativeflowreturnstothebasic
flowitisrepresentedbyamerge.
Placeanactivitydiagramherethatdescribestheusecaseflow.

Updated:7/6/20096:13PM LesMundayUniversity,2009 Page9of14


ProjectName ApplicationName
DocumentName ApplicationUseCase

Updated:7/6/20096:13PM LesMundayUniversity,2009 Page10of14


ProjectName ApplicationName
DocumentName ApplicationUseCase

Figure2:ExampleActivityDiagram

Updated:7/6/20096:13PM LesMundayUniversity,2009 Page11of14


ProjectName ApplicationName
DocumentName ApplicationUseCase

UseCasePerformanceRequirements
Thefollowingrequirementsapplytothestepsoftheusecase.Everysystemstepintheusecase
shouldhaveanassociatedtiming.Thattimingmayapplytoanindividualsteportoagroupof
steps,solongaseverystepiscovered.
<insertperformancerequirementhere>
[Example
Atstep2,thesystemdoorwillopenwithin10seconds.]

Updated:7/6/20096:13PM LesMundayUniversity,2009 Page12of14


ProjectName ApplicationName
DocumentName ApplicationUseCase

UseCaseSupplementaryRequirements
Thefollowingsupplementaryrequirementsimpactthisusecase.Theyaregatheredhereduring
thedetailingoftheusecaseandshouldbemovedtothesupplementaryfolderofReqProonce
theusecasehasbeenimportedtoReqPro.
<insertsupplementaryrequirementhere>

Updated:7/6/20096:13PM LesMundayUniversity,2009 Page13of14


ProjectName ApplicationName
DocumentName ApplicationUseCase

InterfaceRequirements
Wheretheusecaseinterfaceswithanotheractor,referencetheappropriatestandardsfor
developingthatinterface.Thereferencemaybetoanindustrystandard,companystandardora
'tobedeveloped'interfacedocument.
[Aninterfaceshouldbedescribedinitsownseparateinterfacedocument,andnotintheuse
case.InterfacerequirementsarenotimportedintoReqPro.]
<insertinterfacerequirementhere>

Updated:7/6/20096:13PM LesMundayUniversity,2009 Page14of14

Você também pode gostar