IT314-Software Testing - Week 1
IT314-Software Testing - Week 1
DA-IICT
Introduction to Testing
Saurabh Tiwari
1
3/24/23
• AT&T long distance network crash (January 15, 1990), in which the failure
of one switching system would cause a message to be sent to nearby
switching units to tell them that there was a problem. Unfortunately, the
arrival of that message would cause those other systems to fail too –
resulting in a 'wave' of failure that rapidly spread across the entire AT&T
long distance network. Wrong BREAK statement in C-Code
• NASA Mars Polar Lander was destroyed because its flight software
mistook vibrations due to atmospheric turbulence for evidence that
the vehicle had landed and shut off the engines 40 meters from the
Martian surface (December 3, 1999). Its sister spacecraft Mars Climate
Orbiter was also destroyed, but due to human error and not, as is
sometimes reported, due to a software bug.
Software bugs can potentially cause monetary and even loss of life
2
3/24/23
Challenges
Ope ket
• more users n So
urc
e So
wa re! ! ftw
are
i n g Soft
rg
Eme ple… Embedded Systems
Exam PS
P
• A I’s
P
• A ames
• G cu r i ty
e
• S fe ty
a
• S
How to test??
3
3/24/23
4
3/24/23
Why Testing?
Developer
Independent Tester
Understands the system but,
Must learn about the
will test "gently“ and, is driven system, but, will attempt to
by "delivery" break it and, is driven by
quality
5
3/24/23
Testing Challenges
Testing Purpose
1. Avoid Redundancy
• Source Code
• Requirement/Design/Maintenance/Change
Management
2. Reducing Cost
• Cost of detection, Cost of Prevention
• Internal Failure (at the time of development or before
you release the software product)
• External Failure (finding bugs after deploying the
software product)
3. Correctness CONFIDENCE
4. Quality Assurance
6
3/24/23
Course Coverage
Expected Outcomes:
• Design test plan and test cases for the given requirement
specification, small-scale programs and large-scale projects
• Clearly and correctly report the software bugs and defectives (6)
asses the software product correctly
7
3/24/23
Classroom Etiquette
Suggested books
• Main text:
“Software Testing and Quality Assurance: Theory and Practice”,
Kshirasagar Naik And Priyadarshi Tripathy, A John wiley & Sons, Inc.,
Publication
• “The Art of Software Testing”, G.J. Myers, Second Edition, John Wiley &
Sons, New York, 1976.
8
3/24/23
Grade Breakdown
Taxonomy of Bugs
Verification?
Error?
Validation?
Defects ? Doesn’t work as defined
Fault?
Failure?- Non functioning of system
Quality?
9
3/24/23
and now Fault is there till you will not reach the Mumbai, but
when you reach Mumbai that is a final stage which is called
"Failure" because you had to reach Delhi but now you are in
Mumbai.
“A mistake in coding is called Error, error found by tester is called
defect, defect accepted by development team then it is called bug, build
does not meet the requirements then it Is failure.”
10
3/24/23
A tester does not necessarily have access to the code and may be just
testing the functionality of the program. In that case the tester will
realize the output is faulty and will raise a defect.
11
3/24/23
Trivial example
12
3/24/23
Possible Solutions
Another Scenario
5^15 = 30517578125!!!
13
3/24/23
The program reads three integer values from an input dialog. The three
value represent the lengths of the sides of a triangle. The program
displays a message that states whether the triangle is scalene,
isosceles, or equilateral.
14
3/24/23
Solution?
Tester Action and Data Expected Result
Erroneous input partition
a, b, or c a non-number an error message
15
3/24/23
• Improve quality
• Reduce cost
• Preserve customer satisfaction
16
3/24/23
17
3/24/23
So,
He put the three court wizards in the castle dungeon and declared
whoever escaped from his respective dungeon first was the most
powerful wizard in all the kingdom.
(If you are one of three wizard, what you would do.)
18
3/24/23
The third wizard sat down across from his cell door and thought
about the situation for a minute. Then he got up, walked over to
the cell door and pulled on the door handle. The cell door swung
open because it was closed but not locked.
Thus, the third wizard escaped his cell first and became known
as the most powerful wizard in all the kingdom.
19
3/24/23
BUYING A CAR
-Go for a test drive & What you are supposed to do?
- Take test drive to BREAK THE CAR
OR
- To improve the CAR’s DESIGN
• To validate affordability
• To validate attractiveness
• To validate comfort
• To validate usefulness
• To validate performance
How??
20
3/24/23
Such as,
Testing is the process of executing a program with the intent of finding errors.
21
3/24/23
Questions??
22