SlideShare a Scribd company logo
1 of 16
Fundamentals of Testing - Section 1
ISTQB Foundation
Summary
What you will learn in this first section
- Why Testing?
- Causes of software defects
- Tester objectives
- Testing and debugging
- Principles of testing
- Test activities
- Retesting
- Resource triangle
- Completion criteria
- Static and dynamic testing
- Testing independencies
- Code of ethics
Why Testing Is Necessary
People make mistakes due
to fallibility but also other
pressures.
i.e.:
- Attention to detail
- Time constraint
- Lack of Knowledge
- Experience
Software (Program Code) is present
everywhere.
From Banking, e-commerce to Cars,
Electrical Appliances, Arms, Heating
Systems and many more.
Failure results in financial loss, waste of
time, loss of reputation or, in worst cases,
injury and death.
Testing reduces the risk of software failure.
Causes Of Software Defects
Error: Human make a mistake in code. Development of a document
specification.
Defect: A problem caused by an error.
Fault: A failure of the system or component caused by a defect.
Failure: Failures don’t only happen due to defects, but also environmental
conditions, hardware problems, etc.
All defects start with a human error (for example a typo, misunderstanding, lack planning, capability, etc.)
The tester’s job is to expose the defect by causing a failure before the software gets to production.
Objectives Of Testing
Avoid and rectify errors.
Ensure that key functional and non-functional requirements are examined.
Testing is not about removing defects, but about notifying developers about
them.
Testing is also about reducing risk in releasing.
Testing can give confidence in the quality of the software if it finds few or no defects.
Tests can and must be measured.
Typical measurements are:
- Number of defects found
- Number of failures in a given time period (reliability)
- Usability rating
- Maintainability
Difference Between Testing And Debugging
Debugging is a process used
to identify causes of bugs in
code and correct them.
Testing is the exploration of
the system in order to find
defects.
Dynamic Testing Debugging
(Developer)(Tester)
Observe failure
Re-test to
confirm failure
no longer
occurs
Investigate and
Isolate defect
Fix defect
Check fix works
Fundamental Principles Of Testing
1. Testing shows the presence of bugs.
2. Exhaustive testing (testing all possible data combinations) is impossible.
3. Early testing saves money.
4. Defect clustering happens. If there is a bug in one part of the software, chances are
there are other, related bugs nearby.
5. “The pesticide paradox”: continuing to run the same tests won’t find new bugs.
6. Testing is context dependent. Testing is done differently in different contexts.
7. Software with no known errors is not necessarily ready to be shipped. Does it match
user/business expectations?
Five Fundamental Test Activities And Tasks From Planning To Test Closure
Planning - Verify the mission of testing. Planning and
Control
Analysis and
Design
Implementation and
Execution
Evaluating Exit Criteria
and Reporting
Test Closure Activities
Control - Monitor, check progress and take action.
Test analysis and test design is the testing
objectives to create test conditions and test
designs.
Activity where test procedures or scripts are in
order, the environment is setup and tests are run.
Activity where test execution is assessed against
the defined objectives.
Occurs at project milestones such as release,
completion, cancellation or maintenance release has
been complete.
Retesting & Regression Tests
Retest - Running the tests again after they fail and the bugs have been in theory fixed.
Regression – Running testing to check the cross impact of defect fix in the whole functionality
or system.
Defect/Bug Raised
Dev Team
Fixed
Test Team
Retest
Regression
Tests
Resource Triangle
Time, Cost, and Quality. You can’t have them all, only pick two.
You are given the options of Fast, Good, and Cheap, and told to pick any two. Here Fast refers to the
time required to deliver the product, Good is the quality of the final product, and Cheap refers to the
total cost of designing and building the product. This triangle reflects the fact that the three properties
of a project are interrelated, and it is not possible to optimize all three – one will always suffer. In other
words, you have three options:
Design something quickly and to a high standard, but then it will not be cheap.
Design something quickly and cheaply, but it will not be of high quality.
Design something with high quality and cheaply, but it will take a
relatively longer time.
Fast
(Time)
Cheap
(Cost)
Good
(Quality)
Completion Criteria
Criteria you set at the beginning of a project that determines when it is safe to stop testing. Exit
criterion is connected to the test coverage, test case design technique adopted, risk level of the
product varies from one test level to another.
• Specified coverage has been achieved.
• No Showstoppers or critical defects.
• There are very few known medium or low-
priority defects that don't affect the usage
of the product.
• If Exit criterion has not met, the test cannot
be stopped.
• The Exit criterion has to be revamped or the
time should be extended for testing based
on the quality of the product.
• Any changes to the test completion
criterion must be documented and signed
off by the stakeholders.
• The test ware can be released upon
successful completion of exit criteria.
Static & Dynamic Testing
Static - Testing where code is not exercised: document specification analysis,
reviews, even code itself, etc.
Can be done as Review by humans carrying out manual examination of
documents or Static Analysis of the code and software models by using
automation tools.
Dynamic - Kind of testing that exercises the program with some test data.
Dynamic testing is performed by executing software under test and comparing
actual and expected results.
Testing Independence
Developers are least independent, whereas outsourced testing companies are most
independent, because they don’t take defects as criticism.
Several levels of independence can be defined as shown below:
• Tests designed by the person(s) who wrote the software under test
• Tests designed by another person(s) within the development team
• Tests designed by a person(s) from a different organisational group
(i.e.: an independent test team) or test specialists (i.e.: usability or performance
testers)
• Tests designed by a person(s) from a different organisation or company
(i.e.: outsourcing or certification by an external body)
Low
High
Code of Ethics
Involvement in software testing enables individuals to lean confidential and privileged information.
A code of ethics is necessary, the ISTQB® states the following code of ethics:
Public – Testers shall act consistently with the
public interest
Client and Employer – Testers shall act in a manner
that is in the best interests of their client and
employer, consistent with the public interest
Product – Testers shall ensure that the
deliverables they provide (on the products and
systems they test) meet the highest professional
standards possible
Judgement – Testers shall maintain integrity and
independence in their professional judgement
Management – Test managers and leaders shall
subscribe to and promote an ethical approach to
the management of software testing
Profession – Testers shall advance the integrity
and reputation of the profession consistent with
the public interest
Colleagues – Testers shall be fair to and
supportive of their colleagues, and promote
cooperation with software developers
Self – Testers shall participate in lifelong learning
regarding the practice of their profession and shall
promote an ethical approach to the practice of the
profession
Review
This is what you have learned so far...
• Why Testing is necessary
• Common causes of software defects
• What is testers objectives
• Differences between testing and
debugging
• Fundamentals principles of testing
• Five fundamental test activities and
tasks from planning to closure
• Why retesting is one of the most
important tasks in testing
• Resource triangle - Time, Money and
Quality
• Definition of completion criteria
• When carryout a static and dynamic
testing
• Why is important to get testing
independence
• Why code of ethics is necessary
End of Section
1
Do the Quiz (attached) for Section
1
Questions?
Comments?
Thumbs up and Share it if you like
this.
Fundamentals of Testing - Section
1
ISTQB Foundation
Thank You

More Related Content

What's hot

Software testing methods, levels and types
Software testing methods, levels and typesSoftware testing methods, levels and types
Software testing methods, levels and types
Confiz
 

What's hot (20)

Software Testing Tutorials - MindScripts Technologies, Pune
Software Testing Tutorials - MindScripts Technologies, PuneSoftware Testing Tutorials - MindScripts Technologies, Pune
Software Testing Tutorials - MindScripts Technologies, Pune
 
Software testing methods, levels and types
Software testing methods, levels and typesSoftware testing methods, levels and types
Software testing methods, levels and types
 
Software testing
Software testingSoftware testing
Software testing
 
Software Testing Life Cycle
Software Testing Life CycleSoftware Testing Life Cycle
Software Testing Life Cycle
 
functional testing
functional testing functional testing
functional testing
 
Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentals
 
Fundamentals of software testing
Fundamentals of software testingFundamentals of software testing
Fundamentals of software testing
 
Software Testing and Quality Assurance unit1
Software Testing and Quality Assurance  unit1Software Testing and Quality Assurance  unit1
Software Testing and Quality Assurance unit1
 
St
StSt
St
 
Software testing
Software testingSoftware testing
Software testing
 
11 steps of testing process - By Harshil Barot
11 steps of testing process - By Harshil Barot11 steps of testing process - By Harshil Barot
11 steps of testing process - By Harshil Barot
 
CTFL chapter 05
CTFL chapter 05CTFL chapter 05
CTFL chapter 05
 
SDLC vs STLC
SDLC vs STLCSDLC vs STLC
SDLC vs STLC
 
3.software testing
3.software testing3.software testing
3.software testing
 
Software testing
Software testingSoftware testing
Software testing
 
software testing
 software testing software testing
software testing
 
Software testing ppt
Software testing pptSoftware testing ppt
Software testing ppt
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Eleven step of software testing process
Eleven step of software testing processEleven step of software testing process
Eleven step of software testing process
 
Test Life Cycle
Test Life CycleTest Life Cycle
Test Life Cycle
 

Viewers also liked

Independence of testing
Independence of testingIndependence of testing
Independence of testing
QA Guards
 
Grey box techniques
Grey box techniquesGrey box techniques
Grey box techniques
QA Guards
 
Software Testing Fundamentals
Software Testing FundamentalsSoftware Testing Fundamentals
Software Testing Fundamentals
Chankey Pathak
 

Viewers also liked (16)

ISTQB Foundation Level Basic
ISTQB Foundation Level BasicISTQB Foundation Level Basic
ISTQB Foundation Level Basic
 
Istqb foundation level day 1
Istqb foundation level   day 1Istqb foundation level   day 1
Istqb foundation level day 1
 
Istqb foundation level
Istqb foundation levelIstqb foundation level
Istqb foundation level
 
Independence of testing
Independence of testingIndependence of testing
Independence of testing
 
Grey box techniques
Grey box techniquesGrey box techniques
Grey box techniques
 
Testing Fundamentals
Testing FundamentalsTesting Fundamentals
Testing Fundamentals
 
Terms and definitions
Terms and definitionsTerms and definitions
Terms and definitions
 
ISTQB Foundation Level: Why, Why Not and How?
ISTQB Foundation Level: Why, Why Not and How?ISTQB Foundation Level: Why, Why Not and How?
ISTQB Foundation Level: Why, Why Not and How?
 
ISTQB Foundation Level Basic
ISTQB Foundation Level BasicISTQB Foundation Level Basic
ISTQB Foundation Level Basic
 
ISTQB Foundation Level Certification - Intruduction
ISTQB Foundation Level Certification - IntruductionISTQB Foundation Level Certification - Intruduction
ISTQB Foundation Level Certification - Intruduction
 
Agile for Non-IT
Agile for Non-ITAgile for Non-IT
Agile for Non-IT
 
ISTQB - Foundation Level Syllabus 2011
ISTQB - Foundation Level Syllabus 2011ISTQB - Foundation Level Syllabus 2011
ISTQB - Foundation Level Syllabus 2011
 
ISTQB foundation level - day 2
ISTQB foundation level - day 2ISTQB foundation level - day 2
ISTQB foundation level - day 2
 
ISTQB REX BLACK book
ISTQB REX BLACK bookISTQB REX BLACK book
ISTQB REX BLACK book
 
Software Testing Fundamentals
Software Testing FundamentalsSoftware Testing Fundamentals
Software Testing Fundamentals
 
Software testing ppt
Software testing pptSoftware testing ppt
Software testing ppt
 

Similar to Fundamentals of Testing Section 1/6

Aim (A).pptx
Aim (A).pptxAim (A).pptx
Aim (A).pptx
14941
 

Similar to Fundamentals of Testing Section 1/6 (20)

Fundamentals of Testing (2013)
Fundamentals of Testing (2013)Fundamentals of Testing (2013)
Fundamentals of Testing (2013)
 
Software testing & Quality Assurance
Software testing & Quality Assurance Software testing & Quality Assurance
Software testing & Quality Assurance
 
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
SOFTWARE TESTINGSOFTWARE TESTING
SOFTWARE TESTING
 
Aim (A).pptx
Aim (A).pptxAim (A).pptx
Aim (A).pptx
 
Check upload1
Check upload1Check upload1
Check upload1
 
Prvt file test
Prvt file testPrvt file test
Prvt file test
 
Software Testing 2/5
Software Testing 2/5Software Testing 2/5
Software Testing 2/5
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Fundamentals of testing
Fundamentals of testingFundamentals of testing
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
 
38475471 qa-and-software-testing-interview-questions-and-answers
38475471 qa-and-software-testing-interview-questions-and-answers38475471 qa-and-software-testing-interview-questions-and-answers
38475471 qa-and-software-testing-interview-questions-and-answers
 
Check upload1
Check upload1Check upload1
Check upload1
 
Software Testing PPT | Software All Testing
Software Testing PPT | Software All TestingSoftware Testing PPT | Software All Testing
Software Testing PPT | Software All Testing
 
Software_Testing_ppt.pptx
Software_Testing_ppt.pptxSoftware_Testing_ppt.pptx
Software_Testing_ppt.pptx
 
Istqb lesson1
Istqb lesson1Istqb lesson1
Istqb lesson1
 
testing.pptx
testing.pptxtesting.pptx
testing.pptx
 
Stm unit1
Stm unit1Stm unit1
Stm unit1
 
Testing
TestingTesting
Testing
 
Software testing ppt
Software testing pptSoftware testing ppt
Software testing ppt
 

Recently uploaded

%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
masabamasaba
 
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 

Recently uploaded (20)

%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 

Fundamentals of Testing Section 1/6

  • 1. Fundamentals of Testing - Section 1 ISTQB Foundation
  • 2. Summary What you will learn in this first section - Why Testing? - Causes of software defects - Tester objectives - Testing and debugging - Principles of testing - Test activities - Retesting - Resource triangle - Completion criteria - Static and dynamic testing - Testing independencies - Code of ethics
  • 3. Why Testing Is Necessary People make mistakes due to fallibility but also other pressures. i.e.: - Attention to detail - Time constraint - Lack of Knowledge - Experience Software (Program Code) is present everywhere. From Banking, e-commerce to Cars, Electrical Appliances, Arms, Heating Systems and many more. Failure results in financial loss, waste of time, loss of reputation or, in worst cases, injury and death. Testing reduces the risk of software failure.
  • 4. Causes Of Software Defects Error: Human make a mistake in code. Development of a document specification. Defect: A problem caused by an error. Fault: A failure of the system or component caused by a defect. Failure: Failures don’t only happen due to defects, but also environmental conditions, hardware problems, etc. All defects start with a human error (for example a typo, misunderstanding, lack planning, capability, etc.) The tester’s job is to expose the defect by causing a failure before the software gets to production.
  • 5. Objectives Of Testing Avoid and rectify errors. Ensure that key functional and non-functional requirements are examined. Testing is not about removing defects, but about notifying developers about them. Testing is also about reducing risk in releasing. Testing can give confidence in the quality of the software if it finds few or no defects. Tests can and must be measured. Typical measurements are: - Number of defects found - Number of failures in a given time period (reliability) - Usability rating - Maintainability
  • 6. Difference Between Testing And Debugging Debugging is a process used to identify causes of bugs in code and correct them. Testing is the exploration of the system in order to find defects. Dynamic Testing Debugging (Developer)(Tester) Observe failure Re-test to confirm failure no longer occurs Investigate and Isolate defect Fix defect Check fix works
  • 7. Fundamental Principles Of Testing 1. Testing shows the presence of bugs. 2. Exhaustive testing (testing all possible data combinations) is impossible. 3. Early testing saves money. 4. Defect clustering happens. If there is a bug in one part of the software, chances are there are other, related bugs nearby. 5. “The pesticide paradox”: continuing to run the same tests won’t find new bugs. 6. Testing is context dependent. Testing is done differently in different contexts. 7. Software with no known errors is not necessarily ready to be shipped. Does it match user/business expectations?
  • 8. Five Fundamental Test Activities And Tasks From Planning To Test Closure Planning - Verify the mission of testing. Planning and Control Analysis and Design Implementation and Execution Evaluating Exit Criteria and Reporting Test Closure Activities Control - Monitor, check progress and take action. Test analysis and test design is the testing objectives to create test conditions and test designs. Activity where test procedures or scripts are in order, the environment is setup and tests are run. Activity where test execution is assessed against the defined objectives. Occurs at project milestones such as release, completion, cancellation or maintenance release has been complete.
  • 9. Retesting & Regression Tests Retest - Running the tests again after they fail and the bugs have been in theory fixed. Regression – Running testing to check the cross impact of defect fix in the whole functionality or system. Defect/Bug Raised Dev Team Fixed Test Team Retest Regression Tests
  • 10. Resource Triangle Time, Cost, and Quality. You can’t have them all, only pick two. You are given the options of Fast, Good, and Cheap, and told to pick any two. Here Fast refers to the time required to deliver the product, Good is the quality of the final product, and Cheap refers to the total cost of designing and building the product. This triangle reflects the fact that the three properties of a project are interrelated, and it is not possible to optimize all three – one will always suffer. In other words, you have three options: Design something quickly and to a high standard, but then it will not be cheap. Design something quickly and cheaply, but it will not be of high quality. Design something with high quality and cheaply, but it will take a relatively longer time. Fast (Time) Cheap (Cost) Good (Quality)
  • 11. Completion Criteria Criteria you set at the beginning of a project that determines when it is safe to stop testing. Exit criterion is connected to the test coverage, test case design technique adopted, risk level of the product varies from one test level to another. • Specified coverage has been achieved. • No Showstoppers or critical defects. • There are very few known medium or low- priority defects that don't affect the usage of the product. • If Exit criterion has not met, the test cannot be stopped. • The Exit criterion has to be revamped or the time should be extended for testing based on the quality of the product. • Any changes to the test completion criterion must be documented and signed off by the stakeholders. • The test ware can be released upon successful completion of exit criteria.
  • 12. Static & Dynamic Testing Static - Testing where code is not exercised: document specification analysis, reviews, even code itself, etc. Can be done as Review by humans carrying out manual examination of documents or Static Analysis of the code and software models by using automation tools. Dynamic - Kind of testing that exercises the program with some test data. Dynamic testing is performed by executing software under test and comparing actual and expected results.
  • 13. Testing Independence Developers are least independent, whereas outsourced testing companies are most independent, because they don’t take defects as criticism. Several levels of independence can be defined as shown below: • Tests designed by the person(s) who wrote the software under test • Tests designed by another person(s) within the development team • Tests designed by a person(s) from a different organisational group (i.e.: an independent test team) or test specialists (i.e.: usability or performance testers) • Tests designed by a person(s) from a different organisation or company (i.e.: outsourcing or certification by an external body) Low High
  • 14. Code of Ethics Involvement in software testing enables individuals to lean confidential and privileged information. A code of ethics is necessary, the ISTQB® states the following code of ethics: Public – Testers shall act consistently with the public interest Client and Employer – Testers shall act in a manner that is in the best interests of their client and employer, consistent with the public interest Product – Testers shall ensure that the deliverables they provide (on the products and systems they test) meet the highest professional standards possible Judgement – Testers shall maintain integrity and independence in their professional judgement Management – Test managers and leaders shall subscribe to and promote an ethical approach to the management of software testing Profession – Testers shall advance the integrity and reputation of the profession consistent with the public interest Colleagues – Testers shall be fair to and supportive of their colleagues, and promote cooperation with software developers Self – Testers shall participate in lifelong learning regarding the practice of their profession and shall promote an ethical approach to the practice of the profession
  • 15. Review This is what you have learned so far... • Why Testing is necessary • Common causes of software defects • What is testers objectives • Differences between testing and debugging • Fundamentals principles of testing • Five fundamental test activities and tasks from planning to closure • Why retesting is one of the most important tasks in testing • Resource triangle - Time, Money and Quality • Definition of completion criteria • When carryout a static and dynamic testing • Why is important to get testing independence • Why code of ethics is necessary
  • 16. End of Section 1 Do the Quiz (attached) for Section 1 Questions? Comments? Thumbs up and Share it if you like this. Fundamentals of Testing - Section 1 ISTQB Foundation Thank You