SlideShare a Scribd company logo
FUNDAMENTALS OF
SOFTWARE TESTING
Sagar Joshi
CTFL, CTAL-CL (CTAL-TM, CTAL-TA, CTAL-TTA)
1
Foundation Level Content
2
Contents
 Why testing is necessary?
 What is testing?
 Seven Testing Principles
 Fundamental Test Process
 Psychology of testing
 Code of ethics
3
Software System Context - I
4
 You can see software in
 Communication
 Health
 Transportation
 Banking
 Entertainment
Software System Context - II
5
 Software problems or mistakes can cause
 Loss of money
 Time
 Reputation
 Loss of life
Causes of Software Defects
6
 Software’s are created by humans
 Faulty requirements definition
 Time pressure
 Complex code
 Many system interaction
 Coding errors
 Complexity of infrastructure
 Changing technologies
 Non-compliance with standards
What is defect?
 Error: a human action that produces an incorrect
result.
 Defect: A flaw in a software that can cause the
software to fail to perform its required functions.
 also known as a fault or bug
 if executed, a defect may cause a failure
 Failure: deviation of the software from its expected
delivery or service.
Failure is an event; fault is a state of the
software, caused by an error
7
Error – Defect - Failure
A person makes
an error ...
… that creates a
fault in the
software ...
… that can cause
a failure
in operation
8
Role of Testing
9
 Testing of the system or documentation can help to
reduce the risk of problems occurring during
operation and contribute to the quality of the
software system.
 Software testing may also be required to meet
contractual or legal requirements, or industry
specific standards.
Testing and Quality - I
10
 Testing ensures that key functional and non
functional requirements are met.
 Testing measures the quality of software in terms of
the number of defects found, the tests run, and the
system covered by tests.
 Saying that do you think the testing increases the
quality of the software?
Testing and Quality - II
11
 Testing can not directly enhance the quality. Testing
can give confidence in the quality of the system if it
finds few or no defects.
Why testing is necessary?
Purpose of testing: to find faults
Finding faults destroys confidence
Purpose of testing: destroy confidence
Purpose of testing: build confidence
The best way to build confidence is to try to
destroy it.
12
Testing Objectives
13
 Finding defects
 Gaining confidence about the level of quality
 Providing information for decision making
 Preventing defects
What is testing?
 A Process - Testing is a process rather than a single
activity – there are a series of activities involved.
 Both static and dynamic
14
Testing and Debugging
15
 Testing – Testing is the systematic process main aim
to find the defects. Defects found will be fixed by
developers.
 Debugging – Debugging is the development activity
that analyses and remove the cause of failure
Effective and Efficient
16
 Effective – Use test design techniques to write test
to find more defects.
 Efficient – We can find the defects with least time,
cost and recourses.
Seven Testing Principles
 Testing shows presence of defects
 Exhaustive testing is impossible
 Early testing
 Defect clustering
 Pesticide paradox
 Testing is context dependent
 Absence of errors fallacy
17
P1- Testing shows presence of defects
 We test to find defects
 As we find more defects, the probability of
undiscovered defects remaining in a system reduces
 However Testing cannot prove that there are no
defects present
18
P2 - Exhaustive testing is impossible
 Testing everything is not feasible
 Instead of exhaustive testing, risk analysis and
priorities should be used to focus testing efforts
 For example: In an application in one screen if there
are 15 input fields, each having 5 possible values,
then to test all the valid combinations you would
need 30517578125 (515) tests. This is very unlikely
that the project timescales would allow for this
number of tests.
19
How much testing is enough?
20
 It depends on the RISK of
 Missing important faults
 Incurring failure costs
 Releasing untested or under test software
 Losing creditability and market shares
 Missing a market window
 Over testing, ineffective testing
 Testing should provide sufficient information to
stockholders to make informed decisions.
P3 - Early testing
 Testing activities should start as early as possible in
the software or system development life cycle
21
P4 - Defect clustering
 Defects are not evenly distributed in a system -
They are ‘clustered’
 In other words, most defects found during testing
are usually confined to a small number of modules
 Similarly, most operational failures of a system are
usually confined to a small number of modules
 An important consideration in test prioritization !
 Pareto principle 80/20
22
P5 - Pesticide paradox
 If the same tests are repeated over and ovar
again, eventually the same set of test cases will no
longer find any new defects.
 To overcome this ‘Pesticide paradox’, the tests cases
need to be regularly reviewed and revised, and
new and different tests need to be written to
exercise different parts of the software or system to
potentially find more defects.
23
P6 - Testing is context dependent
 Testing is done differently in different context.
 For example – safety critical software is tested
differently from an e-commerce site.
 Type of testing needed can be determined by
considering context.
24
P7 - Absence of errors fallacy
 Finding and fixing defects does not help if the
system built is unusable and does not fulfill the users
needs and expectations.
 Software that has no defects can be delivered?
25
Fundamental Test Process
 The five stages of the fundamental test process
 Planning and control
 Analysis and design
 Implementation and Execution
 Evaluating exit criteria and reporting
 Test closure activities
26
Fundamental Test Process
 The process always starts with planning and ends
with test closure activities
 Each phase may have to be executed a number of
times in order to fulfill exit or completion criteria
 Although logically sequential, the activities in the
process may overlap or take place concurrently
27
Test Planning
 Major Tasks are :-
 Identify the objectives of testing
 Determine Scope
 Determine the Test Approach
 Determine the required test resources
 Implement the test policy and/or the test strategy
 Schedule test analysis and design tasks
 Schedule test implementation, execution and evaluation
 Determine the Exit Criteria
28
Test Control
 The ongoing activity of comparing actual progress against
the plan
 Reporting status, including deviations from the plan
 Taking actions necessary to meet the mission and objectives
of the project
 Test Planning takes into account the feedback from
monitoring and control activities.
 Major Tasks are :-
 Measure and analyze results
 Monitor and document progress, test coverage and exit criteria
 Initiate corrective actions
 Make decisions
29
Analysis and design
 Review the Test Basis - in doing so evaluate testability
of Test Basis and Test Object(s)
 From Analysis of Test Basis and Test Items, identify and
prioritize Test Conditions and associated Test Data
 Test Conditions and associated Test Data are
documented in a Test Design Specification
 Design and prioritize the Test Cases
 Identify Test Data required to support Test Cases
 Design the test environment set-up
 Identify any required infrastructure and tools
30
Implementation and Execution
 Develop, implement and priorities Test Cases
 Create the Test Scripts
 Create test data
 Write automated test scripts
 Check the Environment - Verify that the test
environment has been set up correctly
31
Retesting and Regression testing
 Retesting – Testing that runs test cases that failed
the last time they were run, in order to verify the
success of actions.
 Regression Testing – Testing of a previously tested
program following modifications to ensure that
defects have not been introduced or uncovered in
unchanged areas of the software as a result of the
changes made.
32
Evaluating exit criteria and reporting
 Evaluating exit criteria is the activity where test
execution is assessed against the defined objectives.
 Exit criteria should be set and evaluated for each
test level.
 Check test logs against the exit criteria specified in
test planning.
 Assess if more tests are needed or if the exit
criteria specified should be changed
 Write a test summary report for stakeholders
33
How to measure exit criteria ?
 All the planned requirements must be met
 All the high Priority bugs should be closed
 All the test cases should be executed
 If the scheduled time out is arrived
 Test manager must sign off the release
Note: All these parameters can be met by
percentages (not 100 %)
34
Test closure activities
 Collect data from complete test activity
 Finalize and archive the test ware
 Test wares such as scripts, test environment etc.
 Evaluate how testing went and analyze lessons
learned for future releases and projects
35
Fundamental Test Process
Fix component test plan and repeat
Fix test design and repeat
Fix test design and repeat
Fix component or test cases/scripts
and repeat
Test Planning
and Control
Test Analysis
and Design
Test Implementation
and Execution
Evaluating Exit Criteria
and Reporting
Test Closure
Activities
36
Psychology of testing
 Clear objective
 Right mix of self testing and independent testing
 Tested by the person who wrote the item under test
 Tested by another person in the same team
 Tested by person from different organizational group
 Test designed by person from different organization
 Courteous communication and feedback on defects
 Explain the test results in neutral fashion
37
Code of ethics - I
 PUBLIC: shall act considering public interests.
 CLIENT AND EMPLOYEE: shall act in a manner that
is in the best interests of their client and employer
and considering with public interests.
 PRODUCT: shall ensure that the deliverables they
provide meet the highest professional standard
possible.
 JUDGMENT: shall maintain integrity and
independence in their professional judgment.
38
Code of ethics - II
 MANAGEMENT: shall promote an ethical approach to
the management of software testing.
 PROFESSIONAL: shall advance the integrity and
reputation of the profession considering public interest.
 COLLEAGUES: shall be fair to and supportive their
colleague and promote cooperation with software
developers.
 SELF: shall participate in lifelong learning regarding the
practice of profession and shall promote an ethical
approach to the practice of their profession.
39
THANK YOU … !!!
Drop an e-mail to joshisagarr@gmail.com to get more such slides
with your comments and suggestions.
40
Ad

More Related Content

What's hot (20)

Istqb foundation level day 1
Istqb foundation level   day 1Istqb foundation level   day 1
Istqb foundation level day 1
Shuchi Singla AKT,SPC4,PMI-ACP,ITIL(F),CP-AAT
 
SOFTWARE TESTING
SOFTWARE TESTINGSOFTWARE TESTING
SOFTWARE TESTING
Priyanka Karancy
 
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Ankit Prajapati
 
Types of software testing
Types of software testingTypes of software testing
Types of software testing
Testbytes
 
Software Testing 101
Software Testing 101Software Testing 101
Software Testing 101
QA Hannah
 
ISTQB Foundation Level Basic
ISTQB Foundation Level BasicISTQB Foundation Level Basic
ISTQB Foundation Level Basic
Erol Selitektay
 
Manual testing ppt
Manual testing pptManual testing ppt
Manual testing ppt
Santosh Maranabasari
 
Manual testing concepts course 1
Manual testing concepts course 1Manual testing concepts course 1
Manual testing concepts course 1
Raghu Kiran
 
Test Management introduction
Test Management introductionTest Management introduction
Test Management introduction
Oana Feidi
 
Software testing
Software testingSoftware testing
Software testing
ssusere50573
 
STLC (Software Testing Life Cycle)
STLC (Software Testing Life Cycle)STLC (Software Testing Life Cycle)
STLC (Software Testing Life Cycle)
Ch Fahadi
 
Software Testing or Quality Assurance
Software Testing or Quality AssuranceSoftware Testing or Quality Assurance
Software Testing or Quality Assurance
Trimantra Software Solutions
 
Quality Assurance and Software Testing
Quality Assurance and Software TestingQuality Assurance and Software Testing
Quality Assurance and Software Testing
pingkapil
 
Software Testing Fundamentals
Software Testing FundamentalsSoftware Testing Fundamentals
Software Testing Fundamentals
Chankey Pathak
 
TESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPTTESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPT
suhasreddy1
 
Testing concepts ppt
Testing concepts pptTesting concepts ppt
Testing concepts ppt
Rathna Priya
 
Chapter 5 - Test Management
Chapter 5 - Test ManagementChapter 5 - Test Management
Chapter 5 - Test Management
Neeraj Kumar Singh
 
Software Testing Life Cycle
Software Testing Life CycleSoftware Testing Life Cycle
Software Testing Life Cycle
Udayakumar Sree
 
Types of testing
Types of testingTypes of testing
Types of testing
Sonam Agarwal
 
Software Testing Introduction
Software Testing IntroductionSoftware Testing Introduction
Software Testing Introduction
ArunKumar5524
 
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Ankit Prajapati
 
Types of software testing
Types of software testingTypes of software testing
Types of software testing
Testbytes
 
Software Testing 101
Software Testing 101Software Testing 101
Software Testing 101
QA Hannah
 
ISTQB Foundation Level Basic
ISTQB Foundation Level BasicISTQB Foundation Level Basic
ISTQB Foundation Level Basic
Erol Selitektay
 
Manual testing concepts course 1
Manual testing concepts course 1Manual testing concepts course 1
Manual testing concepts course 1
Raghu Kiran
 
Test Management introduction
Test Management introductionTest Management introduction
Test Management introduction
Oana Feidi
 
STLC (Software Testing Life Cycle)
STLC (Software Testing Life Cycle)STLC (Software Testing Life Cycle)
STLC (Software Testing Life Cycle)
Ch Fahadi
 
Quality Assurance and Software Testing
Quality Assurance and Software TestingQuality Assurance and Software Testing
Quality Assurance and Software Testing
pingkapil
 
Software Testing Fundamentals
Software Testing FundamentalsSoftware Testing Fundamentals
Software Testing Fundamentals
Chankey Pathak
 
TESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPTTESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPT
suhasreddy1
 
Testing concepts ppt
Testing concepts pptTesting concepts ppt
Testing concepts ppt
Rathna Priya
 
Software Testing Life Cycle
Software Testing Life CycleSoftware Testing Life Cycle
Software Testing Life Cycle
Udayakumar Sree
 
Software Testing Introduction
Software Testing IntroductionSoftware Testing Introduction
Software Testing Introduction
ArunKumar5524
 

Viewers also liked (20)

Card & Payments Industry Overview
Card & Payments Industry OverviewCard & Payments Industry Overview
Card & Payments Industry Overview
ankitinxs
 
Mathematics of life
Mathematics of lifeMathematics of life
Mathematics of life
Mar Zafar
 
Software testing ppt
Software testing pptSoftware testing ppt
Software testing ppt
Heritage Institute Of Tech,India
 
Test case design_the_basicsv0.4
Test case design_the_basicsv0.4Test case design_the_basicsv0.4
Test case design_the_basicsv0.4
guest31fced
 
Engaging IV&V Testing Services for Agile Projects
Engaging IV&V Testing Services for Agile ProjectsEngaging IV&V Testing Services for Agile Projects
Engaging IV&V Testing Services for Agile Projects
Ravi Kumar
 
Testing Experience - Evolution of Test Automation Frameworks
Testing Experience - Evolution of Test Automation FrameworksTesting Experience - Evolution of Test Automation Frameworks
Testing Experience - Evolution of Test Automation Frameworks
Łukasz Morawski
 
Unit 2 - Test Case Design
Unit 2 - Test Case DesignUnit 2 - Test Case Design
Unit 2 - Test Case Design
Selvi Vts
 
Staying railsy - while scaling complexity or Ruby on Rails in Enterprise Soft...
Staying railsy - while scaling complexity or Ruby on Rails in Enterprise Soft...Staying railsy - while scaling complexity or Ruby on Rails in Enterprise Soft...
Staying railsy - while scaling complexity or Ruby on Rails in Enterprise Soft...
Coupa Software
 
Effective Software Test Case Design Approach
Effective Software Test Case Design ApproachEffective Software Test Case Design Approach
Effective Software Test Case Design Approach
Charles D. Carson, MSSWE, CSM, ASQ-CSQE
 
Fundamental Test Process New
Fundamental Test Process NewFundamental Test Process New
Fundamental Test Process New
Nikita Knysh
 
ISTQB CTFL Series - Overview
ISTQB CTFL Series - OverviewISTQB CTFL Series - Overview
ISTQB CTFL Series - Overview
Disha Srivastava
 
Ctfl summary
Ctfl summaryCtfl summary
Ctfl summary
yogi Reshmy
 
Istqb question-paper-dump-10
Istqb question-paper-dump-10Istqb question-paper-dump-10
Istqb question-paper-dump-10
TestingGeeks
 
Software Testing for International Students
Software Testing for International StudentsSoftware Testing for International Students
Software Testing for International Students
cristianoribeirosilva
 
ISTQB - CTFL Summary v1.0
ISTQB - CTFL Summary v1.0ISTQB - CTFL Summary v1.0
ISTQB - CTFL Summary v1.0
Samer Desouky
 
Evolution of Software Testing - Chuan Chuan Law
Evolution of Software Testing - Chuan Chuan Law Evolution of Software Testing - Chuan Chuan Law
Evolution of Software Testing - Chuan Chuan Law
Chuan Chuan Law
 
Lecture03 p1
Lecture03 p1Lecture03 p1
Lecture03 p1
aa11bb11
 
Unit testing
Unit testingUnit testing
Unit testing
princezzlove
 
ISTQB in a Nutshell (February 2015)
ISTQB in a Nutshell (February 2015)ISTQB in a Nutshell (February 2015)
ISTQB in a Nutshell (February 2015)
ISTQB®
 
Introduction to the Servlet / JSP course
Introduction to the Servlet / JSP course Introduction to the Servlet / JSP course
Introduction to the Servlet / JSP course
JavaEE Trainers
 
Card & Payments Industry Overview
Card & Payments Industry OverviewCard & Payments Industry Overview
Card & Payments Industry Overview
ankitinxs
 
Mathematics of life
Mathematics of lifeMathematics of life
Mathematics of life
Mar Zafar
 
Test case design_the_basicsv0.4
Test case design_the_basicsv0.4Test case design_the_basicsv0.4
Test case design_the_basicsv0.4
guest31fced
 
Engaging IV&V Testing Services for Agile Projects
Engaging IV&V Testing Services for Agile ProjectsEngaging IV&V Testing Services for Agile Projects
Engaging IV&V Testing Services for Agile Projects
Ravi Kumar
 
Testing Experience - Evolution of Test Automation Frameworks
Testing Experience - Evolution of Test Automation FrameworksTesting Experience - Evolution of Test Automation Frameworks
Testing Experience - Evolution of Test Automation Frameworks
Łukasz Morawski
 
Unit 2 - Test Case Design
Unit 2 - Test Case DesignUnit 2 - Test Case Design
Unit 2 - Test Case Design
Selvi Vts
 
Staying railsy - while scaling complexity or Ruby on Rails in Enterprise Soft...
Staying railsy - while scaling complexity or Ruby on Rails in Enterprise Soft...Staying railsy - while scaling complexity or Ruby on Rails in Enterprise Soft...
Staying railsy - while scaling complexity or Ruby on Rails in Enterprise Soft...
Coupa Software
 
Fundamental Test Process New
Fundamental Test Process NewFundamental Test Process New
Fundamental Test Process New
Nikita Knysh
 
ISTQB CTFL Series - Overview
ISTQB CTFL Series - OverviewISTQB CTFL Series - Overview
ISTQB CTFL Series - Overview
Disha Srivastava
 
Istqb question-paper-dump-10
Istqb question-paper-dump-10Istqb question-paper-dump-10
Istqb question-paper-dump-10
TestingGeeks
 
Software Testing for International Students
Software Testing for International StudentsSoftware Testing for International Students
Software Testing for International Students
cristianoribeirosilva
 
ISTQB - CTFL Summary v1.0
ISTQB - CTFL Summary v1.0ISTQB - CTFL Summary v1.0
ISTQB - CTFL Summary v1.0
Samer Desouky
 
Evolution of Software Testing - Chuan Chuan Law
Evolution of Software Testing - Chuan Chuan Law Evolution of Software Testing - Chuan Chuan Law
Evolution of Software Testing - Chuan Chuan Law
Chuan Chuan Law
 
Lecture03 p1
Lecture03 p1Lecture03 p1
Lecture03 p1
aa11bb11
 
ISTQB in a Nutshell (February 2015)
ISTQB in a Nutshell (February 2015)ISTQB in a Nutshell (February 2015)
ISTQB in a Nutshell (February 2015)
ISTQB®
 
Introduction to the Servlet / JSP course
Introduction to the Servlet / JSP course Introduction to the Servlet / JSP course
Introduction to the Servlet / JSP course
JavaEE Trainers
 
Ad

Similar to Fundamentals of Software Testing (20)

software-testing-strategies888888888.ppt
software-testing-strategies888888888.pptsoftware-testing-strategies888888888.ppt
software-testing-strategies888888888.ppt
sameera abu-ghalyoon
 
ISTQB / ISEB Foundation Exam Practice - 5
ISTQB / ISEB Foundation Exam Practice - 5ISTQB / ISEB Foundation Exam Practice - 5
ISTQB / ISEB Foundation Exam Practice - 5
Yogindernath Gupta
 
CTFL chapter 05
CTFL chapter 05CTFL chapter 05
CTFL chapter 05
Davis Thomas
 
1)Testing-Fundamentals_L_D.pptx
1)Testing-Fundamentals_L_D.pptx1)Testing-Fundamentals_L_D.pptx
1)Testing-Fundamentals_L_D.pptx
gianggiang114
 
Fundamentals of Testing Section 1/6
Fundamentals of Testing   Section 1/6Fundamentals of Testing   Section 1/6
Fundamentals of Testing Section 1/6
International Personal Finance Plc
 
Welingkar_final project_ppt_IMPORTANCE & NEED FOR TESTING
Welingkar_final project_ppt_IMPORTANCE & NEED FOR TESTINGWelingkar_final project_ppt_IMPORTANCE & NEED FOR TESTING
Welingkar_final project_ppt_IMPORTANCE & NEED FOR TESTING
Sachin Pathania
 
Software testing and process
Software testing and processSoftware testing and process
Software testing and process
gouravkalbalia
 
MIT521 software testing (2012) v2
MIT521   software testing  (2012) v2MIT521   software testing  (2012) v2
MIT521 software testing (2012) v2
Yudep Apoi
 
Testing Slides 1 (Testing Intro+Static Testing).pdf
Testing Slides 1 (Testing Intro+Static Testing).pdfTesting Slides 1 (Testing Intro+Static Testing).pdf
Testing Slides 1 (Testing Intro+Static Testing).pdf
MuhammadShoaibHussai2
 
t map brief
t map brieft map brief
t map brief
Nivedha Ravi
 
ISTQBCH foundation level chapter 01 fundamentals of testing
ISTQBCH foundation level chapter 01 fundamentals of testingISTQBCH foundation level chapter 01 fundamentals of testing
ISTQBCH foundation level chapter 01 fundamentals of testing
KhalilSalhi5
 
risk based testing and regression testing
risk based testing and regression testingrisk based testing and regression testing
risk based testing and regression testing
Toshi Patel
 
Testing
TestingTesting
Testing
kalasalingam university
 
Fundamental Test Process - APRIDILA ANGGITA SURI
Fundamental Test Process - APRIDILA ANGGITA SURIFundamental Test Process - APRIDILA ANGGITA SURI
Fundamental Test Process - APRIDILA ANGGITA SURI
Apridila Anggita Suri
 
1 testing fundamentals
1 testing fundamentals1 testing fundamentals
1 testing fundamentals
Asmaa Matar
 
Software Testing - SDLC Model
Software Testing - SDLC ModelSoftware Testing - SDLC Model
Software Testing - SDLC Model
Amity University | FMS - DU | IMT | Stratford University | KKMI International Institute | AIMA | DTU
 
Software testing kn husainy
Software testing kn husainySoftware testing kn husainy
Software testing kn husainy
khalid noman husainy
 
Software testing & Quality Assurance
Software testing & Quality Assurance Software testing & Quality Assurance
Software testing & Quality Assurance
Webtech Learning
 
testing.pptx
testing.pptxtesting.pptx
testing.pptx
jagadeeppapisettipal
 
Software_Testing_ppt.pptx
Software_Testing_ppt.pptxSoftware_Testing_ppt.pptx
Software_Testing_ppt.pptx
BharathReddy615859
 
software-testing-strategies888888888.ppt
software-testing-strategies888888888.pptsoftware-testing-strategies888888888.ppt
software-testing-strategies888888888.ppt
sameera abu-ghalyoon
 
ISTQB / ISEB Foundation Exam Practice - 5
ISTQB / ISEB Foundation Exam Practice - 5ISTQB / ISEB Foundation Exam Practice - 5
ISTQB / ISEB Foundation Exam Practice - 5
Yogindernath Gupta
 
1)Testing-Fundamentals_L_D.pptx
1)Testing-Fundamentals_L_D.pptx1)Testing-Fundamentals_L_D.pptx
1)Testing-Fundamentals_L_D.pptx
gianggiang114
 
Welingkar_final project_ppt_IMPORTANCE & NEED FOR TESTING
Welingkar_final project_ppt_IMPORTANCE & NEED FOR TESTINGWelingkar_final project_ppt_IMPORTANCE & NEED FOR TESTING
Welingkar_final project_ppt_IMPORTANCE & NEED FOR TESTING
Sachin Pathania
 
Software testing and process
Software testing and processSoftware testing and process
Software testing and process
gouravkalbalia
 
MIT521 software testing (2012) v2
MIT521   software testing  (2012) v2MIT521   software testing  (2012) v2
MIT521 software testing (2012) v2
Yudep Apoi
 
Testing Slides 1 (Testing Intro+Static Testing).pdf
Testing Slides 1 (Testing Intro+Static Testing).pdfTesting Slides 1 (Testing Intro+Static Testing).pdf
Testing Slides 1 (Testing Intro+Static Testing).pdf
MuhammadShoaibHussai2
 
ISTQBCH foundation level chapter 01 fundamentals of testing
ISTQBCH foundation level chapter 01 fundamentals of testingISTQBCH foundation level chapter 01 fundamentals of testing
ISTQBCH foundation level chapter 01 fundamentals of testing
KhalilSalhi5
 
risk based testing and regression testing
risk based testing and regression testingrisk based testing and regression testing
risk based testing and regression testing
Toshi Patel
 
Fundamental Test Process - APRIDILA ANGGITA SURI
Fundamental Test Process - APRIDILA ANGGITA SURIFundamental Test Process - APRIDILA ANGGITA SURI
Fundamental Test Process - APRIDILA ANGGITA SURI
Apridila Anggita Suri
 
1 testing fundamentals
1 testing fundamentals1 testing fundamentals
1 testing fundamentals
Asmaa Matar
 
Software testing & Quality Assurance
Software testing & Quality Assurance Software testing & Quality Assurance
Software testing & Quality Assurance
Webtech Learning
 
Ad

Recently uploaded (20)

Biophysics Chapter 3 Methods of Studying Macromolecules.pdf
Biophysics Chapter 3 Methods of Studying Macromolecules.pdfBiophysics Chapter 3 Methods of Studying Macromolecules.pdf
Biophysics Chapter 3 Methods of Studying Macromolecules.pdf
PKLI-Institute of Nursing and Allied Health Sciences Lahore , Pakistan.
 
Operations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdfOperations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdf
Arab Academy for Science, Technology and Maritime Transport
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessUltimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Mark Soia
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessUltimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Mark Soia
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 

Fundamentals of Software Testing

  • 1. FUNDAMENTALS OF SOFTWARE TESTING Sagar Joshi CTFL, CTAL-CL (CTAL-TM, CTAL-TA, CTAL-TTA) 1
  • 3. Contents  Why testing is necessary?  What is testing?  Seven Testing Principles  Fundamental Test Process  Psychology of testing  Code of ethics 3
  • 4. Software System Context - I 4  You can see software in  Communication  Health  Transportation  Banking  Entertainment
  • 5. Software System Context - II 5  Software problems or mistakes can cause  Loss of money  Time  Reputation  Loss of life
  • 6. Causes of Software Defects 6  Software’s are created by humans  Faulty requirements definition  Time pressure  Complex code  Many system interaction  Coding errors  Complexity of infrastructure  Changing technologies  Non-compliance with standards
  • 7. What is defect?  Error: a human action that produces an incorrect result.  Defect: A flaw in a software that can cause the software to fail to perform its required functions.  also known as a fault or bug  if executed, a defect may cause a failure  Failure: deviation of the software from its expected delivery or service. Failure is an event; fault is a state of the software, caused by an error 7
  • 8. Error – Defect - Failure A person makes an error ... … that creates a fault in the software ... … that can cause a failure in operation 8
  • 9. Role of Testing 9  Testing of the system or documentation can help to reduce the risk of problems occurring during operation and contribute to the quality of the software system.  Software testing may also be required to meet contractual or legal requirements, or industry specific standards.
  • 10. Testing and Quality - I 10  Testing ensures that key functional and non functional requirements are met.  Testing measures the quality of software in terms of the number of defects found, the tests run, and the system covered by tests.  Saying that do you think the testing increases the quality of the software?
  • 11. Testing and Quality - II 11  Testing can not directly enhance the quality. Testing can give confidence in the quality of the system if it finds few or no defects.
  • 12. Why testing is necessary? Purpose of testing: to find faults Finding faults destroys confidence Purpose of testing: destroy confidence Purpose of testing: build confidence The best way to build confidence is to try to destroy it. 12
  • 13. Testing Objectives 13  Finding defects  Gaining confidence about the level of quality  Providing information for decision making  Preventing defects
  • 14. What is testing?  A Process - Testing is a process rather than a single activity – there are a series of activities involved.  Both static and dynamic 14
  • 15. Testing and Debugging 15  Testing – Testing is the systematic process main aim to find the defects. Defects found will be fixed by developers.  Debugging – Debugging is the development activity that analyses and remove the cause of failure
  • 16. Effective and Efficient 16  Effective – Use test design techniques to write test to find more defects.  Efficient – We can find the defects with least time, cost and recourses.
  • 17. Seven Testing Principles  Testing shows presence of defects  Exhaustive testing is impossible  Early testing  Defect clustering  Pesticide paradox  Testing is context dependent  Absence of errors fallacy 17
  • 18. P1- Testing shows presence of defects  We test to find defects  As we find more defects, the probability of undiscovered defects remaining in a system reduces  However Testing cannot prove that there are no defects present 18
  • 19. P2 - Exhaustive testing is impossible  Testing everything is not feasible  Instead of exhaustive testing, risk analysis and priorities should be used to focus testing efforts  For example: In an application in one screen if there are 15 input fields, each having 5 possible values, then to test all the valid combinations you would need 30517578125 (515) tests. This is very unlikely that the project timescales would allow for this number of tests. 19
  • 20. How much testing is enough? 20  It depends on the RISK of  Missing important faults  Incurring failure costs  Releasing untested or under test software  Losing creditability and market shares  Missing a market window  Over testing, ineffective testing  Testing should provide sufficient information to stockholders to make informed decisions.
  • 21. P3 - Early testing  Testing activities should start as early as possible in the software or system development life cycle 21
  • 22. P4 - Defect clustering  Defects are not evenly distributed in a system - They are ‘clustered’  In other words, most defects found during testing are usually confined to a small number of modules  Similarly, most operational failures of a system are usually confined to a small number of modules  An important consideration in test prioritization !  Pareto principle 80/20 22
  • 23. P5 - Pesticide paradox  If the same tests are repeated over and ovar again, eventually the same set of test cases will no longer find any new defects.  To overcome this ‘Pesticide paradox’, the tests cases need to be regularly reviewed and revised, and new and different tests need to be written to exercise different parts of the software or system to potentially find more defects. 23
  • 24. P6 - Testing is context dependent  Testing is done differently in different context.  For example – safety critical software is tested differently from an e-commerce site.  Type of testing needed can be determined by considering context. 24
  • 25. P7 - Absence of errors fallacy  Finding and fixing defects does not help if the system built is unusable and does not fulfill the users needs and expectations.  Software that has no defects can be delivered? 25
  • 26. Fundamental Test Process  The five stages of the fundamental test process  Planning and control  Analysis and design  Implementation and Execution  Evaluating exit criteria and reporting  Test closure activities 26
  • 27. Fundamental Test Process  The process always starts with planning and ends with test closure activities  Each phase may have to be executed a number of times in order to fulfill exit or completion criteria  Although logically sequential, the activities in the process may overlap or take place concurrently 27
  • 28. Test Planning  Major Tasks are :-  Identify the objectives of testing  Determine Scope  Determine the Test Approach  Determine the required test resources  Implement the test policy and/or the test strategy  Schedule test analysis and design tasks  Schedule test implementation, execution and evaluation  Determine the Exit Criteria 28
  • 29. Test Control  The ongoing activity of comparing actual progress against the plan  Reporting status, including deviations from the plan  Taking actions necessary to meet the mission and objectives of the project  Test Planning takes into account the feedback from monitoring and control activities.  Major Tasks are :-  Measure and analyze results  Monitor and document progress, test coverage and exit criteria  Initiate corrective actions  Make decisions 29
  • 30. Analysis and design  Review the Test Basis - in doing so evaluate testability of Test Basis and Test Object(s)  From Analysis of Test Basis and Test Items, identify and prioritize Test Conditions and associated Test Data  Test Conditions and associated Test Data are documented in a Test Design Specification  Design and prioritize the Test Cases  Identify Test Data required to support Test Cases  Design the test environment set-up  Identify any required infrastructure and tools 30
  • 31. Implementation and Execution  Develop, implement and priorities Test Cases  Create the Test Scripts  Create test data  Write automated test scripts  Check the Environment - Verify that the test environment has been set up correctly 31
  • 32. Retesting and Regression testing  Retesting – Testing that runs test cases that failed the last time they were run, in order to verify the success of actions.  Regression Testing – Testing of a previously tested program following modifications to ensure that defects have not been introduced or uncovered in unchanged areas of the software as a result of the changes made. 32
  • 33. Evaluating exit criteria and reporting  Evaluating exit criteria is the activity where test execution is assessed against the defined objectives.  Exit criteria should be set and evaluated for each test level.  Check test logs against the exit criteria specified in test planning.  Assess if more tests are needed or if the exit criteria specified should be changed  Write a test summary report for stakeholders 33
  • 34. How to measure exit criteria ?  All the planned requirements must be met  All the high Priority bugs should be closed  All the test cases should be executed  If the scheduled time out is arrived  Test manager must sign off the release Note: All these parameters can be met by percentages (not 100 %) 34
  • 35. Test closure activities  Collect data from complete test activity  Finalize and archive the test ware  Test wares such as scripts, test environment etc.  Evaluate how testing went and analyze lessons learned for future releases and projects 35
  • 36. Fundamental Test Process Fix component test plan and repeat Fix test design and repeat Fix test design and repeat Fix component or test cases/scripts and repeat Test Planning and Control Test Analysis and Design Test Implementation and Execution Evaluating Exit Criteria and Reporting Test Closure Activities 36
  • 37. Psychology of testing  Clear objective  Right mix of self testing and independent testing  Tested by the person who wrote the item under test  Tested by another person in the same team  Tested by person from different organizational group  Test designed by person from different organization  Courteous communication and feedback on defects  Explain the test results in neutral fashion 37
  • 38. Code of ethics - I  PUBLIC: shall act considering public interests.  CLIENT AND EMPLOYEE: shall act in a manner that is in the best interests of their client and employer and considering with public interests.  PRODUCT: shall ensure that the deliverables they provide meet the highest professional standard possible.  JUDGMENT: shall maintain integrity and independence in their professional judgment. 38
  • 39. Code of ethics - II  MANAGEMENT: shall promote an ethical approach to the management of software testing.  PROFESSIONAL: shall advance the integrity and reputation of the profession considering public interest.  COLLEAGUES: shall be fair to and supportive their colleague and promote cooperation with software developers.  SELF: shall participate in lifelong learning regarding the practice of profession and shall promote an ethical approach to the practice of their profession. 39
  • 40. THANK YOU … !!! Drop an e-mail to [email protected] to get more such slides with your comments and suggestions. 40