Chapter 7 Software Engineering
Chapter 7 Software Engineering
ENGINEERING
chapter 7
11/22/2023
1
SoftwareEngineering chapter 7 SoftwareEngineering
Objectives
Describe the testing phase and distinguish between glass-box testing and
blackbox testing.
Recognize the importance of documentation in software engineering and
distinguish between user documentation, system documentation and technical
documentation.
10.2
10-1 THE SOFTWARE LIFECYCLE
State diagrams
State diagrams (see Appendix B) provide another useful tool
that is normally used when the state of the entities in the
system will change in response to events.
As an example of a state diagram, we show the operation of
a one-passenger elevator. When a floor button is pushed, the
elevator moves in the requested direction. It does not
respond to any other request until it reaches its destination.
1
0
.
1
1
class
For diagram
example, for the
we can create a classsystem.
diagram for our old-style
elevator. To do so, we need to think about the entities
involved in the system.
concentrate on procedures.
10.20
1
Object-oriented design
0
.
2
1 In object-oriented design the design phase continues by
elaborating the details of classes. A class is made of a set of
variables (attributes) and a set of methods.
The object-oriented design phase lists details of these
attributes and methods.
i
Basis path testing is a method in which each
statement in the software is executed at least once.
1
0
. Example 10.1
2
9 To give the ideaof basis path testing and finding the independent
paths in part of a program, assume that a system is made up of
only one program and that the program is only a single loop with
the UML diagram shown in Figure 10.12.
Condition testing
Data flow testing
Loop testing
1
Black-box testing
0
.
3
1
Black box testing gets its name from the concept of testing
software without knowing what is inside it and without
knowing how it works. In other words, the software is like a
black box into which the tester cannot see.
Random testing
In random testing, a subset of values in the input domain is
selected for testing. It is very important that the subset be
chosen in such a way that the values are distributed over the
domain input. The use of random number generators can be
very helpful in this case.
1
0
. Boundary-value testing
3
3 Errors often happen when boundary values are encountered.
i
Documentation is an ongoing process.
1
User documentation
0
.
3
5
To run the software system properly, the users need
documentation, traditionally called a user guide, that shows
how to use the software step by step. User guides usually
contains a tutorial section to guide the user through each
feature of the software.
https://drive.google.com/file/d/12kVSE1DQJm2S
1b2FD3tpiEuD7La3_MPF/view?usp=sharing