Lecture 08
Lecture 08
and Design
CSE 4004
A class is an entity that determines how an object will behave and what the object will
contain. In other words, it is a blueprint or a set of instruction to build a specific type
of object.
Class Diagram Notations
Class Name
The name of the class appears in the first partition.
Class Attributes
Operations are shown in the third partition. They are services the class provides.
The return type of a method is shown after the colon at the end of the method signature.
The return type of method parameters is shown after the colon following the parameter
name.
Operations map onto class methods in code
Class Diagram Notations
Relationships
A class may be involved in one or more relationships with other classes. A relationship can
be one of the following types:
Inheritance
Association
Aggregation
Composition
Class Diagram Notations
Represents an "is-a" relationship.
An abstract class name is shown in
italics.
A solid line with an unfilled diamond at the association end connected to the class of composite
1. Exactly one - 1
2. Zero or one - 0..1
3. Many - 0..* or *
4. One or more - 1..*
5. Exact Number - e.g. 3..4 or 6
6. Or a complex relationship - e.g. 0..1, 3..4, 6.* would mean any number of objects
other than 2 or 5
Visibility
Example
Example
Software Tesing
Software Testing
For example:
In this technique, the tester tests the software with partial knowledge of
the internal working structure.
In regression testing the tester verifies that a fixed bug has not adversely
affected the existing features of software.
Functional testing
Regression Testing
We also test the software with work load in order to measure performance
as the work load increases.
Non - Functional testing
Usability Testing
Usability testing is also known as User Experience Testing and is a
method to measure how easy and user-friendly a software is.
A few number of target users use the software to expose usability
defects.
It mainly focuses on user’s ease of using the software, flexibility of
software and ability of software to meet its objectives.
Non - Functional testing
Compatibility Testing
In compatibility testing, we check the functionality of software on
different hardware platforms, networks and browsers to find out whether
it is working as expected or not.
The software must be adaptive for all kind of the users irrespective of
what device they use, that is what we test in compatibility testing.
Thank You