UML Test Case
UML Test Case
Add book
Update/Delete
book
Student Librarian
Search book
üiew Book
detail
üiew
member¶s üiew Student
status detail
Y Use Case pitle
Y Use Case Id
Y Actors
Y Description
Y Pre conditions
Y pask Sequence
Y Post conditions
Y Modification History
Y Author
½
1. Use Case pitle Search Book
5. Description
With this search facility, user can specify any of search criteria. [or example, title,
author, publication, accession no. etc., and search the desired book.
Y ½&' ½
~ unique with only one transition line
Y r½
~ not necessarily unique
Y p
~ Lines indicate sequential flow of actions.
Must be labeled after a decision.
~ Arrows indicate direction of next action
½
½
½
Ê Ê
Authentication User
Login
Information
Book details
Search Book
Logout Book
Information
½
Y A State chart diagram shows the lifecycle of an object
A Ú is a condition of an object for a particular time
An causes a Ú from one state to another
state
Here is a State chart for a Phone Line object:
Õ ÕÕ
ÕÕ
½
Iniil
·
prnsiion
v n/ Gurd
[invlid us r]
condiion
nd
½
½
½
!"
"
Y Interaction:describes a collection of communications
between instances, including all ways to affect instances,
like operation invocation, as well as creation and destruction
of instances
Y phe communications are partially ordered (in time)
Y Show interactions between instances in the model
~ graph of instances (possibly including links) and stimuli
~ existing instances
~ creation and deletion of instances
Y Dinds
~ sequence diagram (temporal focus)
~ collaboration diagram (structural focus)
½
#
Y A sequence diagram is an interaction diagram that
emphasizes the time ordering of messages.
Y A sequence diagram shows a set of objects and the
messages sent and received by those objects.
Y phe objects are typically named or anonymous
instances of classes, but may also represent instances
of other things, such as collaborations, components,
and nodes.
Y You use sequence diagrams to illustrate the dynamic
view of a system.
Y A collaboration diagram is an interaction diagram that
emphasizes the structural organization of the objects
that send and receive messages.
Y A collaboration diagram shows a set of objects,links
among those objects, and messages sent and received
by those objects.
Y phe objects are typically named or anonymous
instances of classes, but may also represent instances
of other things, such as collaborations, components,
and nodes.
Y You use collaboration diagrams toillustrate the dynamic
view of a system
"
½
x y z 1.1:
1.2:
x y
1.1.1:
ô
z
½
#
½
User :LMS Database
Æ
$
!
$
"
$Æ
(
)
½
Ú Ú
Ú
Ú
1:
Õ
: 2: Õ
:y
g:
½
:Õ
: ÕÕ
: Õ Õ :
Õ
10:Õ
6
Y A class diagram shows the existence of classes and
their relationships in the logical view of a system
Y UML modeling elements in class diagrams are:
~ Classes, their structure and behavior.
~ relationships components among the classes like
association, aggregation, composition, dependency
and inheritance
~ Multiplicity and navigation indicators
~ Role names or labels.
Y Association
Y Aggregation
Y Composition
Y Dependency
Association
phese are the most general type of relationship:
Y xample:
Company Department
Dependency
Y Dependency is a semantic relationship between two
things in which a change to one thing (the independent
thing) may affect the semantics of the other thing (the
dependent thing).
Class Object
a
: Updated by
: Updates info of
: Info stored in
Ê
: Searches
6
Student
Access control
Data access
Librarian
[acilities
JDBC
6
Y A deployment diagram shows the relationship among
software and hardware components in the delivered
system.
Y phese diagram include nodes and connections between
nodes.
Y ach node in deployment diagram represents some
kind of computational unit, in most cases a piece of
hardware.
Y Connection among nodes show the communication
path over which the system will interact.
Y phe connections may represent direct hardware
coupling line RS-232 cable, thernet connection, they
also may represent indirect coupling such as satellite to
ground communication.
½
Library
Management University
DB
<<JSPs>> <<database>
>
Student
Librarian
Persistence
<<infrastructure>>
00½r
Browser
Diagram
window
Diagram
toolbar
Documentation
Window
docked/floating
ü
üiews
Diagrams
0
Y Unified Modeling Language User Guide, Grady Booch
Wesley