Lecture 2: Use Cases, Base Testing and Domain Analysis Flashcards
What is Use Case modelling?
Model a system requirements by representing the interaction between the actor and the system
What does Use cases contain?
- System boundary
- Actors
- Use Cases
What is Pre and post conditions?
Are constraints that define what can and can’t be done
What is Actor generalisation?
If two or more actors communicate with the same set of use cases, you would generalise and to simplify the model
What is a include and extend use case?
Are base cases
What is <<include>>?</include>
Include is used when a use case shares the common behaviour
What is <<extend>>?</extend>
The extension use case inserts a new behaviour into the base use case
What does use-case testing do?
- How a user interacts with the system to ensure the system responds appropriately.
- Tests a collection of features based on the system’s use case
What is use case testing made up of?
Test cases are use case scenarios with concrete data
What are test cases NOT suppose to provide?
• Test cases MUST provide the data used in the test
What must you do after the test case?
Record observations by stating how the system has changed
What do use cases define?
- User acceptance testing
- Complying with requirements
What do test cases define?
- The data satisfies the preconditions to be tested
- Data comes from actor/tester
What are the Fundamentals of Object Orientation?
• Objects
- Encapsulation
- Messages
• Classes
What are the methods of analysis?
Verb and Noun analysis (Problem domain)
CRC (Class, Responsibilities and Collaborators)
What is CRC?
Stands for: Class, Responsibilities and Collaborators
- A brainstorming technique used to define the problem domain to model object-oriented using sticky notes!!
- To identify the classes or attributes
What is ‘Responsibility’ in CRC?
- Knowing what the class does the attributes/relationships
- Doing: execution of operations
What is ‘Collaborators’ in CRC?
Identifies the collaborators of a class for each responsibility: “Does the class have the ability to fulfil the responsibility?”
What is Robustness Analysis?
- First-guess at analysing the classes of objects to participate in the use case
- Ideas about the user interface
What are the 3 Sterotypes?
- Boundary
- Entity
- Control
What is a Boundary Class?
Boundary class: Is an interface (GUI) object that communicates with actors externally
(User/System/Device)
What is a Entity class?
Objects from the domain model
- Persistent data .i.e. Address
What is a Control class?
Is an application logic and the glue together the user interface and entity class
What is Robustness analysis notation?
Sterotypes such as <<boundary>> extend the UML meta_model by introducing new modelling elements</boundary>
- They have their own icon
- They are one of the UML extensibility mechanism** **
Complete this diagram


When analysing the use case specification for NOUNS, what must you check?
Nouns, the system must keep information about it indicated an entity class
Some nouns may indicate what classes?
- Some nouns>attributes between classes
- Some Nouns>relationship between classes
- The noun may describe an actor interacts with it which indicate the boundary class
What does a verb describe when analysing a use case specification?
When describing the things the system does, >
controller class
What does a Noun describe when analysing a use case specification?
Nouns, the system must keep information about it indicated an
entity class
Some verbs indicate what between classes?
- *Relationship** > between classes
- *Operations** > of a class
Why use colour in models? And what is the term?
Reducing noise and enriching the content of displays is a technique of layering and separation is called
**Visually Stratifying **
Why is colour model so useful?
- The archetypes and their plug-ins form a ‘Domain neutral component’ is called a reusable component
- Multiple domain neutral components can be linked with each other to represent different complex models
- Archetypes save a lot of time
- Can be thought as “Analysis Patterns”