0% found this document useful (0 votes)
14 views

Lect 1 Intro

Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Lect 1 Intro

Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 22

SOFTWARE TESTING

Instructor: Mehwish
OUTLINE

• Course outline
• Software
• Testing
• Software Testing
• Bug vs Error vs Fault
• Sources of problem
• Adverse Effects of Faulty Software
COURSE OUTLINE
Introduction

Software Testing
Software

• Software: is a set of instructions, data or programs


used to operate computers and execute specific
tasks.
• Opposite of hardware, which describes the physical
aspects of a computer, software is a generic term
used to refer to applications, scripts and programs
that run on a device.
Testing

• Testing is the process of evaluating a system


or its component(s) with the intent to find
whether it satisfies the specified requirements
or not.
• In simple words, testing is executing a
system in order to identify any gaps, errors,
or missing requirements in contrary to the
actual requirements.
Software Testing
• The process or method of finding error/s in
a software application or program so that the
application functions according to the end
user's requirement is called software
testing.
• Software testing is broadly categorized into
two types:
- functional testing
- non-functional testing.
BUG vs ERROR vs Fault
Bugs

• Defect • Failure
• Fault • Inconsistency
• Problem • Product
• Error Anomaly
• Incident • Product
• Incidence
Anomaly
• Feature
• Variance
Defective Software

• We develop programs that contain defects


– How many? What kind?
• Hard to predict the future, however…
it is highly likely, that the software we
(including you!) will develop in the future will
not be significantly better.
Sources of Problems
• Requirements Definition:
– Inaccurate,
– incomplete,
– inconsistent requirements.
• Design: Fundamental design flaws in the software.
• Implementation:
– Mistakes in chip fabrication,
– wiring,
– programming faults,
– malicious code.
• Support Systems:
– Poor programming languages,
– faulty compilers and debuggers,
– misleading development tools.
Sources of Problems (Cont’d)

• Inadequate Testing of Software:


– Incomplete testing,
– poor verification,
– mistakes in debugging.

• Evolution:
– Careless redevelopment or maintenance,
– introduction of new flaws in attempts to fix old flaws,
– incremental escalation to inordinate complexity.
Adverse Effects of
Faulty Software
• Communications:
– Loss or corruption of communication media,
– non delivery of data.

• Space Applications:
– Lost lives,
– launch delays.

• Defense and Warfare:


– Misidentification of friend or foe.
Adverse Effects of Faulty
Software (Cont’d)
• Transportation:
– Deaths,
– delays,
– sudden acceleration,
– inability to brake.

• Safety-critical Applications:
– Death,
– injuries.
• Electric Power:
– Death,
– injuries,
– power outages,
– long-term health hazards (radiation).
Adverse Effects of Faulty
Software (Cont’d)
• Money Management:
– Fraud,
– violation of privacy,
– shutdown of stock exchanges and banks, negative
interest rates.
• Control of Elections:
– Wrong results (intentional or non-intentional).
• Control of Jails:
– Technology-aided escape attempts and successes,
– accidental release of inmates,
– failures in software controlled locks.
• Law Enforcement:
– False arrests and imprisonments.
Example
Bank Generosity (Cont’d)
• A Norwegian bank ATM consistently dispersed 10
times the amount required.
• Many people joyously joined the queues as the word
spread.
• A software flaw caused a UK bank to duplicate every
transfer payment request for half an hour. The bank
lost 2 billion British pounds!
• The bank eventually recovered the funds but lost half
a million pounds in potential interest.
Discussion …

• Have you heard of other software bugs?


– In the media?
– From personal experience?
• Does this embarrass you as a future software
engineer?
• THE END
• THANKS

You might also like