Professional Documents
Culture Documents
Week 2
Week 2
18/03/2024 1
The University of Lahore
A “W4” Category University
18/03/2024 2
The University of Lahore
A “W4” Category University
18/03/2024 3
The University of Lahore
A “W4” Category University
Q-2
Suppose an organization has a problem with printing repeatedly
failing. Some IT maintenance will sit together to examine the
problem and they start by brainstorming all the possible causes
of the failure.
Some of the cause they discover might be:
1. Printer runs out of supplies (ink or paper)
2. Printer driver software fails.
3. Printer room is too hot for the printer.
18/03/2024 4
The University of Lahore
A “W4” Category University
Q-3
If we look at one of the causes “ printer runs out of
supplies, it may happen because:
ROOT CAUSE:
1. No one is responsible for checking printer ink/paper before use.
2. Staff not trained in looking after the printer.
3. No process for stock control and ordering.
18/03/2024 5
The University of Lahore
A “W4” Category University
Summary
Root-cause analysis is an important aspect of
quality assurance activities and testing
contributes by helping us to identify defect and
improve software quality as early as possible
before the software is in use.
18/03/2024 6
The University of Lahore
A “W” Category University
Ranked Amongst The Top 550 Universities of The WORLD!
1.1.6 How much testing is enough?
Exhaustive Testing
A test approach in which the test suit comprises all combinations
of input values and preconditions.
Testing Principle-Exhaustive testing is impossible
Testing everything is not feasible/possible.
18/03/2024 7
The University of Lahore
A “W” Category University
Ranked Amongst The Top 550 Universities of The WORLD!
1.1.6 How much testing is enough?
EXAMPLE 1
How many tests would you need to do to completely
test a one-digit numeric field?
1. 10 possible valid numeric values (10 tests)
2. We need to ensure that all invalid values are rejected.
e.g. 26 uppercase letters, 26 lowercase letters, special
characters and blank space. Total tests would be 68.
18/03/2024 8
The University of Lahore
A “W” Category University
Ranked Amongst The Top 550 Universities of The WORLD!
1.1.6 How much testing is enough?
EXAMPLE 2
One screen has 15 input fields, each having 1
digit numeric field. How many test are required
to do?
18/03/2024 9
The University of Lahore
A “W4” Category University
TESTING
“Testing is a process rather than a single
activity-there are series of activities
involved.”
One of the activities is all life cycle activities. Testing may
takes place throughout the software development life
cycle.
18/03/2024 10
The University of Lahore
A “W4” Category University
18/03/2024 11
The University of Lahore
A “W4” Category University
18/03/2024 12
The University of Lahore
A “W4” Category University
18/03/2024 13
The University of Lahore
A “W4” Category University
18/03/2024 14
The University of Lahore
A “W4” Category University
18/03/2024 15
The University of Lahore
A “W4” Category University
18/03/2024 16
The University of Lahore
A “W4” Category University
18/03/2024 17
The University of Lahore
A “W4” Category University
Feasibility Study
On the basis of result of the initial study, feasibility study takes
place.
The feasibility study is basically the test of its
Workability
Meeting user’s requirements
Effective use of resources
Cost effectiveness
Decide whether or not to continue with the project?
In the process of feasibility study, the cost and benefits are
estimated with greater accuracy.
18/03/2024 18
The University of Lahore
A “W4” Category University
System Analysis
Study the existing system in detail is called analysis.
During analysis, data are collected
18/03/2024 19
The University of Lahore
A “W4” Category University
System Design
Based on the user requirements and the detailed analysis of
a new system, the new system must be designed. This is the
phase of system designing.
It is a most difficult phase in the development of a system.
18/03/2024 20
The University of Lahore
A “W4” Category University
Designing
1. Data capture forms
2. Type of user interface
3. Validations methods-how is input data going to be test?
4. Programs-if some new programs has to be written then they have to be
designed at this stage
5. Input screens
6. Output screens
7. System flowcharts
8. Program flowcharts
18/03/2024 22
The University of Lahore
A “W4” Category University
Coding/Construction
1. After designing the new system, the whole system is
required to be converted into computer understanding
language.
2. This is also called the programming phase in which the
programmer converts the program specifications into
computer instructions, which we refer as programs. The
programs coordinate the data movements and control the
entire process in a system.
3. User documentation is prepared
4. Technical documentation is prepared
18/03/2024 23
The University of Lahore
A “W4” Category University
Testing
1. Before actually implementing the new system into
operations, a test run of the system is done removing all
the bugs, if any.
2. It is an important phase of a successful system.
3. After codifying the whole programs of the system, a test
plan should be developed and run on a given set of test
data.
4. The output of the test run should match the expected
results.
18/03/2024 24
The University of Lahore
A “W4” Category University
Testing
1. Unit Testing
2. Integration Testing
3. System testing. Test data is designed and the results are forecast
4. Acceptance testing. The users of the new system check it
18/03/2024 25
The University of Lahore
A “W4” Category University
Component Testing
Searches for defects and verifies the functioning of software components
(modules, programs, objects, classes etc) that are separately testable.
Integration Testing
Tests interfaces between components, interactions to different parts of a
system such as OS, file system and hardware.
System Testing
Concerned with the behavior of the whole system/product.
Acceptance Testing
Validation testing with respect to user needs, requirements and expectations.
18/03/2024 26
The University of Lahore
A “W4” Category University
Implementation
1. After having the user acceptance of the new system
developed, the implementation phase begins.
2. Implementation is the stage of a project during which theory
is turned into practice.
3. During this phase, all the programs of the system are loaded
onto the user's computer. After loading the system, training of
the users starts.
4. File conversion
5. Software and hardware installation
6. System conversion
18/03/2024 27
The University of Lahore
A “W4” Category University
Implementation
Main topics of such type of training are:
18/03/2024 28
The University of Lahore
A “W4” Category University
After the users are trained about the computerized system, manual
working has to shift from manual to computerized working. The
following two strategies are followed for running the system:
18/03/2024 29
The University of Lahore
A “W4” Category University
Phased/Pilot Run:
In this type of run, the new system is installed in parts.
Some part of the new system is installed first and
executed successfully for considerable time period.
When the results are found satisfactory then only other
parts are implemented. This strategy builds the
confidence and the errors are traced easily.
18/03/2024 30
The University of Lahore
A “W4” Category University
Maintenance
1. Maintenance is necessary to eliminate errors in the
system during its working life and to tune the system
to any variations in its working environment.
2. It has been seen that there are always some errors
found in the system that must be noted and
corrected. It also means the review of the system
from time to time.
18/03/2024 31
The University of Lahore
A “W4” Category University
18/03/2024 32
The University of Lahore
A “W4” Category University
What is Testing?
18/03/2024 33
The University of Lahore
A “W4” Category University
What is Testing?
What is Software Testing?
The process consisting of all life cycle activities, both static and dynamic,
concerned with planning, preparation and evaluation of software products
and related work products to determine that they satisfy specified
requirements, to demonstrate that they are fit for purpose and to detect
defects.
18/03/2024 34
The University of Lahore
A “W4” Category University
What is Testing?
Software Testing
The process consisting of all life cycle activities, both
static and dynamic, concerned with planning,
preparation and evaluation of software products and
related work products to determine that they satisfy
specified requirements, to demonstrate that they are fit
for purpose and to detect defects.
18/03/2024 35
The University of Lahore
A “W4” Category University
What is Testing?
Dynamic
Executing the software code to demonstrate the
results (Chapter 4)
Static
Without executing software code to find defects.
Reviewing of documents including source code.
(Chapter 3)
18/03/2024 36
The University of Lahore
A “W4” Category University
What is Testing?
Planning
What we want to do? Report on testing progress, status of the software under test,
finalize and close testing when a phase completes. (Chapter 5)
Preparation
We need to choose what testing we’ll do? (Chapter 4)
Evaluation
Executing the test, we must check the results, evaluate the software and
completion criteria
What is Testing?
Detect Defects
Finding and fixing defects
18/03/2024 38
The University of Lahore
A “W4” Category University
18/03/2024 39
The University of Lahore
A “W4” Category University
18/03/2024 40
The University of Lahore
A “W4” Category University
18/03/2024 41
The University of Lahore
A “W4” Category University
18/03/2024 42
The University of Lahore
A “W4” Category University
18/03/2024 44
The University of Lahore
A “W4” Category University
18/03/2024 45
The University of Lahore
A “W4” Category University
18/03/2024 46
The University of Lahore
A “W4” Category University
18/03/2024 47
The University of Lahore
A “W4” Category University
18/03/2024 48
The University of Lahore
A “W4” Category University
18/03/2024 49
The University of Lahore
A “W4” Category University
18/03/2024 50
The University of Lahore
A “W4” Category University
Testing Principles-SUMMARY
1- Testing shows presence of defects
2- Exhaustive testing is impossible
3- Early testing
4- Defect clustering
5- Pesticide Paradox
6- Testing is context dependent
7- Absence-of-error fallacy
18/03/2024 51
The University of Lahore
A “W4” Category University
18/03/2024 52
The University of Lahore
A “W4” Category University
18/03/2024 53
The University of Lahore
A “W4” Category University
18/03/2024 54
The University of Lahore
A “W4” Category University
QUIZ 1 Chapter 1
Fundamental of Software Testing
18/03/2024 55