SlideShare a Scribd company logo
1 of 30
Testing Basics
Learning Objectives
 What Testing is
 Why it is needed
 Basic terms to be Known
 Cost of Testing
 Need of Domain Knowledge
 Need of Static Testing
 Need of White Box Testing
 Need of Black Box Testing
 What Static / WB / BB Reveal and
 Why they are Complementary
INTRODUCTION TO TESTING
Software products are integral part of our lives. We cannot
imagine doing without them. They are used in Banks,
Telecom, Retail, Hospitals etc .However if defects are
encountered in them they can lead loss of money, time,
business reputation and can even result in injury or death.
Some of the Major disasters seen due to defects in software
are:
Disaster: Canada’s radiation therapy machine malfunctioned
and delivered lethal radiation doses to patients. Three people
Therac-25 died and three were critically injured due to it.
Cause: Due to race condition defect, a technician could
accidentally configure Therac-25 so the electron beam would
fire in high-power mode without the proper patient shielding
INTRODUCTION TO TESTING
Disaster: Businesses spent billions on programmers to fix Y2K bug.
Cause:  To save computer storage space, legacy software often stored
the year for dates as two digit numbers, such as “99″ for 1999.  The
software also interpreted “00″ to mean 1900 rather than 2000, so when
the year 2000 came along, bugs would result.
Cost:  $475 million, corporate credibility
Disaster:  Intel’s Pentium chip occasionally made mistakes when
dividing floating-point numbers within a specific range. For example,
dividing 4195835.0/3145727.0 yielded 1.33374 instead of 1.33382, an
error of 0.006. Intel replaced the chips for anyone who complained. It cost
them $475 million, corporate credibility.
Cause:  The divider in the Pentium floating point unit had a flawed
division table, missing about five of a thousand entries and resulting in
these rounding errors. 
WHY DO DEFECTS OCCUR?
Incorrect and incomplete and misunderstood specification.
Defects occur because human beings have tendency to
make mistakes.
Due to time pressure programmers don’t get enough time to
check their code.
Some of the tasks are inherently complex.
Failures are also caused by environmental conditions such
as: radiation, magnetism, electronic fields
Faults in firmware can influence execution of software.
Changing requirements/Late design changes result in
change of code which is bound to have defects.
When one programmer tries to change another
programmer’s code, errors occur due to miscommunication.
Cost of Defects:
Defect detected and corrected in earlier and same phase will cost
less as compared to defect detected and corrected in latter stages.
Problem amplifies as it percolates to the later stages.
The costs are Logarithmic that is it increases ten folds as the time
increases.
INTRODUCTION TO TESTING
What is testing?
Have you done testing before?
NEED OF TESTING?
 Find defects.
 Access quality of the product.
 Build confidence in product.
 Certify to standards.
 Meet customer’s requirements.
 Minimize time and cost
 Find scenarios for smooth working of software inspite of
defects.
 Avoid being sued by customer.
SOME TERMS AND TERMINOLOGIES
RELATED TO SOFTWARE TESTING:
Testing and Debugging.
QA and QC.
Product and Project.
Error, Defect (Bug) and Failure.
TESTING AND DEBUGGING.
Testing:
Testing is done to find defects in the software.
Debugging:
Debugging is done to find, analyse and remove causes of failure in
software.
QA AND QC.
Quality Assurance:
A planned and systematic set of activities necessary to
provide adequate confidence that requirements are
properly established and products or services conform to
specified requirements.
Quality Control:
The process by which product quality is compared with
applicable standards; and the action taken when non-
conformance is detected.
Difference between Product and Project.
Product (COTS):
Software made for general market e.g. Windows, Adobe products.
Project:
Software made for specific customer.
Definition
Error (Mistake):
A human action that produces an incorrect result.
Defect (Bug, Fault):
A flaw in a component or system that can cause the component
or system to fail to perform its required function. e.g. an incorrect
statement or data definition. A defect, if encountered during
execution, may cause a failure of the component or system.
Failure:
Deviation of the component of the system from its expected
delivery, services or result.
-Fo undatio n o f So ftware te sting
TYPES OF TESTING
 Manual and Automation testing.
 Static and Dynamic testing.
 Black and White box testing.
 Retesting and Regression testing.
 Functional and Non-Functional testing.
 Exhausting testing.
Manual and Automation
testing
Manual testing:
Testing that requires human input and analysis.
Automation testing:
Testing software with aid tool (software used for testing) e.g. of
tools are QTP, Load runner etc.
Black Box and White Box Testing
Black Box/Behavioral testing/I/O driven:
Testing the software without knowing the internal working of the
software.
White Box/Clear Box/Structural Testing/code driven
testing:
Testing the internal structure of the software (Unit) .
It is also known as Code driven testing.
Retesting and Regression Testing
Retesting:
Rerunning of tests that failed earlier in order to verify the success
of corrective action.
Regression testing:
Testing of the previously tested program following modification to
ensure that defects have not been introduced in the unchanged
areas of software due to the changes made.
Static and Dynamic testing
Static testing:
Testing software without executing/running it.
Dynamic testing:
Testing software by executing/running it.
Functional and Non-Functional Testing
Functional Testing:
Testing the functionality of a component or system based on the
specification.
Non-Functional Testing:
Testing attributes of the component or system apart from
functionality.
e.g. performance, usability, maintainability, portability
Exhaustive testing
Testing with combination of all input values and
preconditions.
Characteristics of a Good Tester.
 They are explorers.
 They are troubleshooters.
 They are relentless.
 They are creative.
 They are (mellowed) perfectionists.
 They exercise good judgment.
 They are tactful and diplomatic.
 They are persuasive.
What good testers do?
 Desired results from planned efforts
 Being productive without waste
 Being in the right context
 Channelizing the testing efforts
 Being creative and smart
 Thought process with a difference
How to achieve it?
 Goals for testing activities:
 Knowing the quality and Risk of the system we are
testing.
 Enough information to concerned stakeholders like
developers etc.
 Help management understand system quality
 Project subjective goals team wants to achieve?
How good testers work
 Keeping information about the most
important aspects of overall system
 Provide developers the information which
help them complete tasks efficiently
 Help Management understand the
concepts of Testing and Quality
What Is the Right Level of Efficiency?
Cconformance = Testing (Finding Bugs) + QA
(Preventing Bugs)
Cnonconformance = Fixing Bugs+Retesting+Customer
dissatisfaction+ Lost bussiness etc.
Cquality= Cconformance + Cnonconformance
Role of the Tester
 Lessons learned in S/W testing-Kaner
 Tester is headlight of a project
 Mission drives everything tester do
 Tester serves many clients (like manager, developer, user
etc.)
 Find important bugs fast
 Run with the programmers
 Question everything, but not necessarily loud.
 Focus on failures. You will not find all bugs.
 Beware of testing “Completely”
Role of the Tester
 Lessons learned in S/W testing-Kaner
 You don’t assure quality by testing
 Never be a gatekeeper
 Beware of the not-my-job theory of testing
 Don’t expect anyone to understand testing.
 You focus on failures so that client can focus on success.
 Always remember Good Testers think technically,
creatively, critically and practically.
Limits of testing
 You cannot test a program completely
 The domain of possible inputs is too large to test
 There are too many possible paths
 The UI issues are too complex to test
 You cannot find every design error
 You can’t prove programs correct using logic
 You have to check that the system is good enough
 Good enough means an acceptable level of quality problems
and risks remain
So Why Test?
 The Purpose of Testing a program is to find problems
in it.
 The purpose of finding problems is to get them fixed.
 Always remember-A test that reveals a problem is a
success. A test that did not reveal a problem was a
waste of time.
What Does “Quality” Mean to You?
 A definition from J. M. Juran:
Fitness for use. Features [that] are decisive as to product
performance and as to ‘product satisfaction’…. The word
‘quality’ also refers to freedom from deficiencies…[that]
result in complaints, claims, returns, rework and other
damage. Those collectively are forms of ‘product
dissatisfaction.’
 Fitness for use by who m ?
 Testing looks for the presence or absence of
deficiencies
 What happens when Quality is lacking.

More Related Content

What's hot

Better Software Classic Testing Mistakes
Better Software Classic Testing MistakesBetter Software Classic Testing Mistakes
Better Software Classic Testing Mistakes
nazeer pasha
 
CHAPTER 1 BASIC CONCEPTS AND PRELIMINARIES
CHAPTER 1 BASIC CONCEPTS AND PRELIMINARIESCHAPTER 1 BASIC CONCEPTS AND PRELIMINARIES
CHAPTER 1 BASIC CONCEPTS AND PRELIMINARIES
Samruddhi Sheth
 

What's hot (20)

Software Testing without Requirements: Survival Guide
Software Testing without Requirements: Survival GuideSoftware Testing without Requirements: Survival Guide
Software Testing without Requirements: Survival Guide
 
Better Software Classic Testing Mistakes
Better Software Classic Testing MistakesBetter Software Classic Testing Mistakes
Better Software Classic Testing Mistakes
 
Phases of software development
Phases of software developmentPhases of software development
Phases of software development
 
Software Testing ppt
Software Testing pptSoftware Testing ppt
Software Testing ppt
 
Software testing
Software testingSoftware testing
Software testing
 
Bug Advocacy
Bug AdvocacyBug Advocacy
Bug Advocacy
 
Basics in software testing
Basics in software testingBasics in software testing
Basics in software testing
 
CHAPTER 1 BASIC CONCEPTS AND PRELIMINARIES
CHAPTER 1 BASIC CONCEPTS AND PRELIMINARIESCHAPTER 1 BASIC CONCEPTS AND PRELIMINARIES
CHAPTER 1 BASIC CONCEPTS AND PRELIMINARIES
 
1st module.....
1st module.....1st module.....
1st module.....
 
Software Testing Basic Concepts
Software Testing Basic ConceptsSoftware Testing Basic Concepts
Software Testing Basic Concepts
 
Otto Vinter - Analysing Your Defect Data for Improvement Potential
Otto Vinter - Analysing Your Defect Data for Improvement PotentialOtto Vinter - Analysing Your Defect Data for Improvement Potential
Otto Vinter - Analysing Your Defect Data for Improvement Potential
 
Not Your Grandfather's Requirements-Based Testing Webinar – Robin Goldsmith, ...
Not Your Grandfather's Requirements-Based Testing Webinar – Robin Goldsmith, ...Not Your Grandfather's Requirements-Based Testing Webinar – Robin Goldsmith, ...
Not Your Grandfather's Requirements-Based Testing Webinar – Robin Goldsmith, ...
 
Introduction to automation testing
Introduction  to automation testingIntroduction  to automation testing
Introduction to automation testing
 
Basics of software testing webwing technologies
Basics of software testing webwing technologiesBasics of software testing webwing technologies
Basics of software testing webwing technologies
 
Test plan
Test planTest plan
Test plan
 
Software testing - basics
Software testing - basicsSoftware testing - basics
Software testing - basics
 
Fundamentals of Testing (2013)
Fundamentals of Testing (2013)Fundamentals of Testing (2013)
Fundamentals of Testing (2013)
 
Black box
Black boxBlack box
Black box
 
Fundamentals of testing
Fundamentals of testingFundamentals of testing
Fundamentals of testing
 
software project management Software inspection
software project management Software inspectionsoftware project management Software inspection
software project management Software inspection
 

Similar to Industrial Training in Software Testing

Fundamentals_of_testing.pdf
Fundamentals_of_testing.pdfFundamentals_of_testing.pdf
Fundamentals_of_testing.pdf
AndreeaDavid22
 
ISTQB Chapter 1 Fundamentals of Testing
ISTQB Chapter 1  Fundamentals of TestingISTQB Chapter 1  Fundamentals of Testing
ISTQB Chapter 1 Fundamentals of Testing
ssuser2d9936
 
Testing Software Solutions
Testing Software SolutionsTesting Software Solutions
Testing Software Solutions
gavhays
 
Aim (A).pptx
Aim (A).pptxAim (A).pptx
Aim (A).pptx
14941
 
softwaretestingppt-120810095500-phpapp02 (1).pdf
softwaretestingppt-120810095500-phpapp02 (1).pdfsoftwaretestingppt-120810095500-phpapp02 (1).pdf
softwaretestingppt-120810095500-phpapp02 (1).pdf
BabaShaikh3
 
Software Testing - A sneak preview By Srikanth
Software Testing - A sneak preview By SrikanthSoftware Testing - A sneak preview By Srikanth
Software Testing - A sneak preview By Srikanth
Srikanth Krishnamoorthy
 

Similar to Industrial Training in Software Testing (20)

Fundamentals_of_testing.pdf
Fundamentals_of_testing.pdfFundamentals_of_testing.pdf
Fundamentals_of_testing.pdf
 
ISTQB Chapter 1 Fundamentals of Testing
ISTQB Chapter 1  Fundamentals of TestingISTQB Chapter 1  Fundamentals of Testing
ISTQB Chapter 1 Fundamentals of Testing
 
An introduction to Software Testing and Test Management
An introduction to Software Testing and Test ManagementAn introduction to Software Testing and Test Management
An introduction to Software Testing and Test Management
 
Fundamentals of Testing Section 1/6
Fundamentals of Testing   Section 1/6Fundamentals of Testing   Section 1/6
Fundamentals of Testing Section 1/6
 
Software testing ppt
Software testing pptSoftware testing ppt
Software testing ppt
 
Testing Software Solutions
Testing Software SolutionsTesting Software Solutions
Testing Software Solutions
 
Beginner guide-to-software-testing
Beginner guide-to-software-testingBeginner guide-to-software-testing
Beginner guide-to-software-testing
 
Test cases
Test casesTest cases
Test cases
 
Aim (A).pptx
Aim (A).pptxAim (A).pptx
Aim (A).pptx
 
Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentals
 
Software Testing Interview Questions For Experienced
Software Testing Interview Questions For ExperiencedSoftware Testing Interview Questions For Experienced
Software Testing Interview Questions For Experienced
 
softwaretestingppt-120810095500-phpapp02 (1).pdf
softwaretestingppt-120810095500-phpapp02 (1).pdfsoftwaretestingppt-120810095500-phpapp02 (1).pdf
softwaretestingppt-120810095500-phpapp02 (1).pdf
 
STM-UNIT-1.pptx
STM-UNIT-1.pptxSTM-UNIT-1.pptx
STM-UNIT-1.pptx
 
Software Testing - A sneak preview By Srikanth
Software Testing - A sneak preview By SrikanthSoftware Testing - A sneak preview By Srikanth
Software Testing - A sneak preview By Srikanth
 
Software Testing - SDLC Model
Software Testing - SDLC ModelSoftware Testing - SDLC Model
Software Testing - SDLC Model
 
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
 
Software_testing Unit 1 bca V.pdf
Software_testing Unit 1 bca V.pdfSoftware_testing Unit 1 bca V.pdf
Software_testing Unit 1 bca V.pdf
 
Stm unit1
Stm unit1Stm unit1
Stm unit1
 
L software testing
L   software testingL   software testing
L software testing
 
EFFECTIVE TEST CASE DESING: A REVIEW
EFFECTIVE TEST CASE DESING: A REVIEWEFFECTIVE TEST CASE DESING: A REVIEW
EFFECTIVE TEST CASE DESING: A REVIEW
 

More from Arcadian Learning

Industrial Training in Window Application
Industrial Training in Window ApplicationIndustrial Training in Window Application
Industrial Training in Window Application
Arcadian Learning
 
6 Weeks Industrial Training In Telecom In Chandigarh
6 Weeks Industrial Training In Telecom In Chandigarh6 Weeks Industrial Training In Telecom In Chandigarh
6 Weeks Industrial Training In Telecom In Chandigarh
Arcadian Learning
 

More from Arcadian Learning (20)

StackLabs-DataDriven Labs - iPhone App Development Training in Mohali
StackLabs-DataDriven Labs - iPhone App Development  Training in MohaliStackLabs-DataDriven Labs - iPhone App Development  Training in Mohali
StackLabs-DataDriven Labs - iPhone App Development Training in Mohali
 
Industrial Training in Window Application
Industrial Training in Window ApplicationIndustrial Training in Window Application
Industrial Training in Window Application
 
Best Industrial Training in Android
Best Industrial Training in AndroidBest Industrial Training in Android
Best Industrial Training in Android
 
6 Weeks Industrial Training in Android Application
6 Weeks Industrial Training in Android Application   6 Weeks Industrial Training in Android Application
6 Weeks Industrial Training in Android Application
 
6 Weeks Industrial Training in Testing
6 Weeks Industrial Training in Testing 6 Weeks Industrial Training in Testing
6 Weeks Industrial Training in Testing
 
6 Months Industrial Training in Spring Framework
6 Months Industrial Training in Spring Framework6 Months Industrial Training in Spring Framework
6 Months Industrial Training in Spring Framework
 
Industrial Training in PhoneGap Application
Industrial Training in PhoneGap ApplicationIndustrial Training in PhoneGap Application
Industrial Training in PhoneGap Application
 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android Application
 
Industrial Training in Mobile Application
Industrial Training in Mobile ApplicationIndustrial Training in Mobile Application
Industrial Training in Mobile Application
 
Training in Android with Maven
Training in Android with MavenTraining in Android with Maven
Training in Android with Maven
 
Training in iOS Development
Training in iOS DevelopmentTraining in iOS Development
Training in iOS Development
 
OpenStack Training in Mohali
OpenStack Training in MohaliOpenStack Training in Mohali
OpenStack Training in Mohali
 
MongoDB Training
MongoDB TrainingMongoDB Training
MongoDB Training
 
Virtualization Training
Virtualization TrainingVirtualization Training
Virtualization Training
 
6 Months Industrial Training in Android
6 Months Industrial Training in Android6 Months Industrial Training in Android
6 Months Industrial Training in Android
 
6 Months Industrial Training in Big Data in Chandigarh
6 Months Industrial Training in Big Data in Chandigarh6 Months Industrial Training in Big Data in Chandigarh
6 Months Industrial Training in Big Data in Chandigarh
 
6 Weeks Industrial Training In Telecom In Chandigarh
6 Weeks Industrial Training In Telecom In Chandigarh6 Weeks Industrial Training In Telecom In Chandigarh
6 Weeks Industrial Training In Telecom In Chandigarh
 
Cloud Computing Industrial Training In Chandigarh
Cloud Computing Industrial Training In ChandigarhCloud Computing Industrial Training In Chandigarh
Cloud Computing Industrial Training In Chandigarh
 
Cloud Computing Platform-CloudStack
Cloud Computing Platform-CloudStackCloud Computing Platform-CloudStack
Cloud Computing Platform-CloudStack
 
Android Training in Chandigarh
Android Training in ChandigarhAndroid Training in Chandigarh
Android Training in Chandigarh
 

Recently uploaded

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Krashi Coaching
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
SoniaTolstoy
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
fonyou31
 

Recently uploaded (20)

Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 

Industrial Training in Software Testing

  • 2. Learning Objectives  What Testing is  Why it is needed  Basic terms to be Known  Cost of Testing  Need of Domain Knowledge  Need of Static Testing  Need of White Box Testing  Need of Black Box Testing  What Static / WB / BB Reveal and  Why they are Complementary
  • 3. INTRODUCTION TO TESTING Software products are integral part of our lives. We cannot imagine doing without them. They are used in Banks, Telecom, Retail, Hospitals etc .However if defects are encountered in them they can lead loss of money, time, business reputation and can even result in injury or death. Some of the Major disasters seen due to defects in software are: Disaster: Canada’s radiation therapy machine malfunctioned and delivered lethal radiation doses to patients. Three people Therac-25 died and three were critically injured due to it. Cause: Due to race condition defect, a technician could accidentally configure Therac-25 so the electron beam would fire in high-power mode without the proper patient shielding
  • 4. INTRODUCTION TO TESTING Disaster: Businesses spent billions on programmers to fix Y2K bug. Cause:  To save computer storage space, legacy software often stored the year for dates as two digit numbers, such as “99″ for 1999.  The software also interpreted “00″ to mean 1900 rather than 2000, so when the year 2000 came along, bugs would result. Cost:  $475 million, corporate credibility Disaster:  Intel’s Pentium chip occasionally made mistakes when dividing floating-point numbers within a specific range. For example, dividing 4195835.0/3145727.0 yielded 1.33374 instead of 1.33382, an error of 0.006. Intel replaced the chips for anyone who complained. It cost them $475 million, corporate credibility. Cause:  The divider in the Pentium floating point unit had a flawed division table, missing about five of a thousand entries and resulting in these rounding errors. 
  • 5. WHY DO DEFECTS OCCUR? Incorrect and incomplete and misunderstood specification. Defects occur because human beings have tendency to make mistakes. Due to time pressure programmers don’t get enough time to check their code. Some of the tasks are inherently complex. Failures are also caused by environmental conditions such as: radiation, magnetism, electronic fields Faults in firmware can influence execution of software. Changing requirements/Late design changes result in change of code which is bound to have defects. When one programmer tries to change another programmer’s code, errors occur due to miscommunication.
  • 6. Cost of Defects: Defect detected and corrected in earlier and same phase will cost less as compared to defect detected and corrected in latter stages. Problem amplifies as it percolates to the later stages. The costs are Logarithmic that is it increases ten folds as the time increases.
  • 7. INTRODUCTION TO TESTING What is testing? Have you done testing before?
  • 8. NEED OF TESTING?  Find defects.  Access quality of the product.  Build confidence in product.  Certify to standards.  Meet customer’s requirements.  Minimize time and cost  Find scenarios for smooth working of software inspite of defects.  Avoid being sued by customer.
  • 9. SOME TERMS AND TERMINOLOGIES RELATED TO SOFTWARE TESTING: Testing and Debugging. QA and QC. Product and Project. Error, Defect (Bug) and Failure.
  • 10. TESTING AND DEBUGGING. Testing: Testing is done to find defects in the software. Debugging: Debugging is done to find, analyse and remove causes of failure in software.
  • 11. QA AND QC. Quality Assurance: A planned and systematic set of activities necessary to provide adequate confidence that requirements are properly established and products or services conform to specified requirements. Quality Control: The process by which product quality is compared with applicable standards; and the action taken when non- conformance is detected.
  • 12. Difference between Product and Project. Product (COTS): Software made for general market e.g. Windows, Adobe products. Project: Software made for specific customer.
  • 13. Definition Error (Mistake): A human action that produces an incorrect result. Defect (Bug, Fault): A flaw in a component or system that can cause the component or system to fail to perform its required function. e.g. an incorrect statement or data definition. A defect, if encountered during execution, may cause a failure of the component or system. Failure: Deviation of the component of the system from its expected delivery, services or result. -Fo undatio n o f So ftware te sting
  • 14. TYPES OF TESTING  Manual and Automation testing.  Static and Dynamic testing.  Black and White box testing.  Retesting and Regression testing.  Functional and Non-Functional testing.  Exhausting testing.
  • 15. Manual and Automation testing Manual testing: Testing that requires human input and analysis. Automation testing: Testing software with aid tool (software used for testing) e.g. of tools are QTP, Load runner etc.
  • 16. Black Box and White Box Testing Black Box/Behavioral testing/I/O driven: Testing the software without knowing the internal working of the software. White Box/Clear Box/Structural Testing/code driven testing: Testing the internal structure of the software (Unit) . It is also known as Code driven testing.
  • 17. Retesting and Regression Testing Retesting: Rerunning of tests that failed earlier in order to verify the success of corrective action. Regression testing: Testing of the previously tested program following modification to ensure that defects have not been introduced in the unchanged areas of software due to the changes made.
  • 18. Static and Dynamic testing Static testing: Testing software without executing/running it. Dynamic testing: Testing software by executing/running it.
  • 19. Functional and Non-Functional Testing Functional Testing: Testing the functionality of a component or system based on the specification. Non-Functional Testing: Testing attributes of the component or system apart from functionality. e.g. performance, usability, maintainability, portability
  • 20. Exhaustive testing Testing with combination of all input values and preconditions.
  • 21. Characteristics of a Good Tester.  They are explorers.  They are troubleshooters.  They are relentless.  They are creative.  They are (mellowed) perfectionists.  They exercise good judgment.  They are tactful and diplomatic.  They are persuasive.
  • 22. What good testers do?  Desired results from planned efforts  Being productive without waste  Being in the right context  Channelizing the testing efforts  Being creative and smart  Thought process with a difference
  • 23. How to achieve it?  Goals for testing activities:  Knowing the quality and Risk of the system we are testing.  Enough information to concerned stakeholders like developers etc.  Help management understand system quality  Project subjective goals team wants to achieve?
  • 24. How good testers work  Keeping information about the most important aspects of overall system  Provide developers the information which help them complete tasks efficiently  Help Management understand the concepts of Testing and Quality
  • 25. What Is the Right Level of Efficiency? Cconformance = Testing (Finding Bugs) + QA (Preventing Bugs) Cnonconformance = Fixing Bugs+Retesting+Customer dissatisfaction+ Lost bussiness etc. Cquality= Cconformance + Cnonconformance
  • 26. Role of the Tester  Lessons learned in S/W testing-Kaner  Tester is headlight of a project  Mission drives everything tester do  Tester serves many clients (like manager, developer, user etc.)  Find important bugs fast  Run with the programmers  Question everything, but not necessarily loud.  Focus on failures. You will not find all bugs.  Beware of testing “Completely”
  • 27. Role of the Tester  Lessons learned in S/W testing-Kaner  You don’t assure quality by testing  Never be a gatekeeper  Beware of the not-my-job theory of testing  Don’t expect anyone to understand testing.  You focus on failures so that client can focus on success.  Always remember Good Testers think technically, creatively, critically and practically.
  • 28. Limits of testing  You cannot test a program completely  The domain of possible inputs is too large to test  There are too many possible paths  The UI issues are too complex to test  You cannot find every design error  You can’t prove programs correct using logic  You have to check that the system is good enough  Good enough means an acceptable level of quality problems and risks remain
  • 29. So Why Test?  The Purpose of Testing a program is to find problems in it.  The purpose of finding problems is to get them fixed.  Always remember-A test that reveals a problem is a success. A test that did not reveal a problem was a waste of time.
  • 30. What Does “Quality” Mean to You?  A definition from J. M. Juran: Fitness for use. Features [that] are decisive as to product performance and as to ‘product satisfaction’…. The word ‘quality’ also refers to freedom from deficiencies…[that] result in complaints, claims, returns, rework and other damage. Those collectively are forms of ‘product dissatisfaction.’  Fitness for use by who m ?  Testing looks for the presence or absence of deficiencies  What happens when Quality is lacking.