SlideShare a Scribd company logo
Testing and Metrics
• A Strategic approach to software testing
• Verification and validation
• Organizing for software testing
• Testing strategy for conventional software architectures
• Testing strategy for object-oriented architectures
• criteria for completion of testing.
Unit 4 testing
Unit 4 testing
Black box testing and white box testing
Every engineering product can be tested in one
of two ways.
Knowing the specified function that a product has been designed
to perform, tests can conducted to perform each function fully
and same time searching for errors.(Black box testing)
Knowing the internal working of the product, tests can be
conducted to ensure all.(white box testing)
• Black box testing:
• It is a method of s/w testing that examines the
functionality of an application without looking
into its internal structure of working, called an
black box testing.
• This method is applied at any level of testing
(unit,intergration,system,acceptance testing).
• These tests are based on requirements and
functionality.
• Another name for black box testing is
“behavioral testing”
• Black box testing techniques are:
• Equivalence partitioning
• Boundary value analysis
• Cause and effect graph technique
• Decision table testing
• Error causing.
• Equivalence partitioning:
It is one of the test design technique, used in black
box, white box, unit,……
It divides the entire input into partitions and test
each partition at once in time.
When we pick up a value from valid partition the
system should accept the vale.
• Boundary value analysis:
• It is also test design technique and related to
equivalence partitioning.
• Here we are testing both sides of valid partition,
having lower boundary and upper boundary.
• Cause and effect graph technique:
• Cause Effect Graph is a black box testing technique that
graphically illustrates the relationship between a given
outcome and all the factors that influence the outcome.
• cause and graph is based on requirements and situation.
• It is also known as Ishikawa diagram or fish bone diagram
because of the way it looks.
• Decision table:
• Decision table testing is a software testing technique
used to test system behavior for different input
combinations.
• This is a systematic approach where the different input
combinations and their corresponding system behavior
(Output) are captured in a tabular form.
• Error guessing:
• Error guessing is a technique on guessing the
error which can prevail in the code
• It is basically an experience based technique
• Where the test analyst uses his/her experience
to guess the problem in application.
• White box testing:
• White box testing sometimes called as glass-box
testing or transparent testing.
• Using white box testing methods the s/w engineer can
derive test cases
• guarantee that all independent paths within in a
module have been exercised at least once
• exercise all logical decisions on their true and false
sides.
• execute all loops at their boundaries and with in their
operational bounds
• exercise internal data structures to ensure their
validity
• Basis path testing
• Control structure testing.
• In basis path testing they are
• flow graph
• independent program paths
• deriving test cases
• graph matrices
• Step 1: consider program structure
• step 2: program structure is translated to flow
chart .
step 3: flow chart must be converted to flow
graph.(flow graph having nodes and
edges).
step 4: find cyclomatic complexity
step 5: find independent paths
a)how many no. of times that paths are
executed.
Validation testing
Verification :did we built the product right.
Validation :did we built the right product.
Def: validation succeeds when s/w functions work
in a manner that reasonably expected by
customers.
Validation test criteria:
A test procedure defines specific test cases,
It ensures that all functional requirements are
statisfied,
all behavioral characteristics are achived,
all performance requirements are attained,
documentation is correct, and
usability and other requirements are met.
• Configuration review:
• The intension of these review is to ensure
that all s/w configuration have been properly
developed.
• some times called an audit
• Alpha and beta testing:
• Alpha test is conducted at developer’s site by
end-users
• Alpha tests are conducted in a controlled
environment.
• Beta testing is conducted at end-user sites.
• The end-user records the problems that are
encountered during test
• System testing
• System testing is actually a series of different
tests whose primary purpose is to fully
exercise the computer based system.
• Recovery testing:
• Recovery test is a system test that forces the
s/w to fail in variety of ways and verifies that
recovery is properly performed.
• Security testing: it verifies the protection
mechanisms built into a system,infact to
protect it from improper penetration.
• Stress testing:
• Performance testing: the performance test is
designed to test the run-time performance of
s/w.
The art of debugging
Debugging is not the testing, is an art
Debugging occurs as a consequence of successful testing.
Debugging is the action that results in removal of error.
Debugging process:
Process begins with the execution of test cases
Results are, lack of correspondence b/w expected and actual
performance.
Debugging attempts to match symptoms with cause
Unit 4 testing
• Debugging have two out comes
• cause will found and corrected
• the cause will not found, in later cases the
person performing debugging may suspect a
cause.
• They are three debugging strategies.
• 1)brute force
• 2)backtracking
• 3)cause elimination
• Brute force:
• The brute force category of debugging is
probably the most common and least efficient
method for isolating the cause of a software
error.
• We apply brute force debugging methods
when all else fails.
• Using a "let the computer find the error"
philosophy,
• Backtracking
• Backtracking is a fairly common debugging
approach that can be used in small programs.
• where a symptom has been uncovered, the
source code is traced backward (manually)
until the cause is found.
• Cause elimination
• Data related to the error occurrence are
organized to isolate potential causes.
• A "cause hypothesis" is devised and the
aforementioned data are used to prove or
disprove the hypothesis.
• Alternatively, a list of all possible causes is
developed and tests are conducted to eliminate
each.

More Related Content

PPTX
Se (techniques for black box testing ppt)
PPT
Software engineering Testing technique,test case,test suit design
PPTX
Python: Object-Oriented Testing (Unit Testing)
PDF
Black Box Testing
PDF
Software Testing Techniques: An Overview
PDF
ITFT--Software testing
PPT
New software testing-techniques
PPTX
An Insight into the Black Box and White Box Software Testing
Se (techniques for black box testing ppt)
Software engineering Testing technique,test case,test suit design
Python: Object-Oriented Testing (Unit Testing)
Black Box Testing
Software Testing Techniques: An Overview
ITFT--Software testing
New software testing-techniques
An Insight into the Black Box and White Box Software Testing

What's hot (20)

PPTX
Introduction to White box testing
PPT
Software testing & its technology
PPTX
Software Testing Foundations Part 4 - Black Box Testing
PPT
Software Testing
PPT
Testing
PPT
Software Testing
PPTX
H testing and debugging
PPTX
Fundamental Test Process New
PPTX
Software testing
PPT
Test case design
PPTX
Structural and functional testing
PPTX
Black Box Testing
PPT
Chapter 14 software testing techniques
PPT
Black box & white-box testing technique
PPTX
Software Testing Technique in Software Engineering
PPT
debugging and testing
PPTX
Object oriented testing
PPTX
White box black box & gray box testing
PPS
Lesson 2....PPT 1
PPTX
Fundamentals of software part 1
Introduction to White box testing
Software testing & its technology
Software Testing Foundations Part 4 - Black Box Testing
Software Testing
Testing
Software Testing
H testing and debugging
Fundamental Test Process New
Software testing
Test case design
Structural and functional testing
Black Box Testing
Chapter 14 software testing techniques
Black box & white-box testing technique
Software Testing Technique in Software Engineering
debugging and testing
Object oriented testing
White box black box & gray box testing
Lesson 2....PPT 1
Fundamentals of software part 1
Ad

Similar to Unit 4 testing (20)

PPT
Testing fundamentals
PPTX
19 Software Testing Techniques presentation file.pptx
PPTX
Software_Testing_Techniques_undergraduate.pptx
PDF
Software testing software engineering.pdf
DOC
Black box testing
PDF
6. oose testing
PPTX
Sorfware engineering presentation (software testing)
PPTX
software testing types jxnvlbnLCBNFVjnl/fknblb
PDF
Software Engineering TESTING AND MAINTENANCE
PPTX
Software Quality Assurance
PDF
Manual Testing software testing all slide
PPTX
A Software Testing Intro
PPT
Software testing
PPT
Software Engineering (Software Quality Assurance & Testing: Supplementary Mat...
PPTX
Structured system analysis and design
PPTX
UNIt-4 UNIt-4 UNIt-4 UNIt-4 UNIt-4 UNIt-4 UNIt-4 UNIt-4 UNIt-4
PDF
manualtesting-170218090020 (1).pdf
PPT
testing strategies and tactics
PPT
Software testing-and-analysis
PPT
Software Engineering Lec 10 -software testing--
Testing fundamentals
19 Software Testing Techniques presentation file.pptx
Software_Testing_Techniques_undergraduate.pptx
Software testing software engineering.pdf
Black box testing
6. oose testing
Sorfware engineering presentation (software testing)
software testing types jxnvlbnLCBNFVjnl/fknblb
Software Engineering TESTING AND MAINTENANCE
Software Quality Assurance
Manual Testing software testing all slide
A Software Testing Intro
Software testing
Software Engineering (Software Quality Assurance & Testing: Supplementary Mat...
Structured system analysis and design
UNIt-4 UNIt-4 UNIt-4 UNIt-4 UNIt-4 UNIt-4 UNIt-4 UNIt-4 UNIt-4
manualtesting-170218090020 (1).pdf
testing strategies and tactics
Software testing-and-analysis
Software Engineering Lec 10 -software testing--
Ad

More from TharuniDiddekunta (17)

PDF
String class
PDF
Exception handling basic
PDF
Creating your own exception
PDF
Built in exceptions
PDF
Packages access protection, importing packages
PDF
Interfaces in java
PDF
Inheritance used in java
PDF
Operators, control statements represented in java
PDF
Classes, objects, methods, constructors, this keyword in java
PDF
Arrays in java
PPTX
Software Metrics (Testing)
PPTX
unit 3 Design 1
PPTX
risk managment and quality
PPTX
PPT
Network layer
PPTX
Transport layer and Application layer
PPT
Congection control and Internet working
String class
Exception handling basic
Creating your own exception
Built in exceptions
Packages access protection, importing packages
Interfaces in java
Inheritance used in java
Operators, control statements represented in java
Classes, objects, methods, constructors, this keyword in java
Arrays in java
Software Metrics (Testing)
unit 3 Design 1
risk managment and quality
Network layer
Transport layer and Application layer
Congection control and Internet working

Recently uploaded (20)

PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Cell Types and Its function , kingdom of life
PDF
Complications of Minimal Access Surgery at WLH
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Institutional Correction lecture only . . .
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Sports Quiz easy sports quiz sports quiz
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Cell Structure & Organelles in detailed.
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
RMMM.pdf make it easy to upload and study
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Cell Types and Its function , kingdom of life
Complications of Minimal Access Surgery at WLH
Computing-Curriculum for Schools in Ghana
Institutional Correction lecture only . . .
Renaissance Architecture: A Journey from Faith to Humanism
102 student loan defaulters named and shamed – Is someone you know on the list?
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
VCE English Exam - Section C Student Revision Booklet
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Sports Quiz easy sports quiz sports quiz
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Cell Structure & Organelles in detailed.
Microbial diseases, their pathogenesis and prophylaxis
RMMM.pdf make it easy to upload and study
Final Presentation General Medicine 03-08-2024.pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
3rd Neelam Sanjeevareddy Memorial Lecture.pdf

Unit 4 testing

  • 2. • A Strategic approach to software testing • Verification and validation • Organizing for software testing • Testing strategy for conventional software architectures • Testing strategy for object-oriented architectures • criteria for completion of testing.
  • 5. Black box testing and white box testing Every engineering product can be tested in one of two ways. Knowing the specified function that a product has been designed to perform, tests can conducted to perform each function fully and same time searching for errors.(Black box testing) Knowing the internal working of the product, tests can be conducted to ensure all.(white box testing)
  • 6. • Black box testing: • It is a method of s/w testing that examines the functionality of an application without looking into its internal structure of working, called an black box testing. • This method is applied at any level of testing (unit,intergration,system,acceptance testing). • These tests are based on requirements and functionality.
  • 7. • Another name for black box testing is “behavioral testing” • Black box testing techniques are: • Equivalence partitioning • Boundary value analysis • Cause and effect graph technique • Decision table testing • Error causing.
  • 8. • Equivalence partitioning: It is one of the test design technique, used in black box, white box, unit,…… It divides the entire input into partitions and test each partition at once in time. When we pick up a value from valid partition the system should accept the vale.
  • 9. • Boundary value analysis: • It is also test design technique and related to equivalence partitioning. • Here we are testing both sides of valid partition, having lower boundary and upper boundary.
  • 10. • Cause and effect graph technique: • Cause Effect Graph is a black box testing technique that graphically illustrates the relationship between a given outcome and all the factors that influence the outcome. • cause and graph is based on requirements and situation. • It is also known as Ishikawa diagram or fish bone diagram because of the way it looks.
  • 11. • Decision table: • Decision table testing is a software testing technique used to test system behavior for different input combinations. • This is a systematic approach where the different input combinations and their corresponding system behavior (Output) are captured in a tabular form.
  • 12. • Error guessing: • Error guessing is a technique on guessing the error which can prevail in the code • It is basically an experience based technique • Where the test analyst uses his/her experience to guess the problem in application.
  • 13. • White box testing: • White box testing sometimes called as glass-box testing or transparent testing. • Using white box testing methods the s/w engineer can derive test cases • guarantee that all independent paths within in a module have been exercised at least once • exercise all logical decisions on their true and false sides. • execute all loops at their boundaries and with in their operational bounds • exercise internal data structures to ensure their validity
  • 14. • Basis path testing • Control structure testing. • In basis path testing they are • flow graph • independent program paths • deriving test cases • graph matrices
  • 15. • Step 1: consider program structure • step 2: program structure is translated to flow chart . step 3: flow chart must be converted to flow graph.(flow graph having nodes and edges). step 4: find cyclomatic complexity step 5: find independent paths a)how many no. of times that paths are executed.
  • 16. Validation testing Verification :did we built the product right. Validation :did we built the right product. Def: validation succeeds when s/w functions work in a manner that reasonably expected by customers.
  • 17. Validation test criteria: A test procedure defines specific test cases, It ensures that all functional requirements are statisfied, all behavioral characteristics are achived, all performance requirements are attained, documentation is correct, and usability and other requirements are met.
  • 18. • Configuration review: • The intension of these review is to ensure that all s/w configuration have been properly developed. • some times called an audit • Alpha and beta testing: • Alpha test is conducted at developer’s site by end-users • Alpha tests are conducted in a controlled environment.
  • 19. • Beta testing is conducted at end-user sites. • The end-user records the problems that are encountered during test
  • 20. • System testing • System testing is actually a series of different tests whose primary purpose is to fully exercise the computer based system. • Recovery testing: • Recovery test is a system test that forces the s/w to fail in variety of ways and verifies that recovery is properly performed.
  • 21. • Security testing: it verifies the protection mechanisms built into a system,infact to protect it from improper penetration. • Stress testing: • Performance testing: the performance test is designed to test the run-time performance of s/w.
  • 22. The art of debugging Debugging is not the testing, is an art Debugging occurs as a consequence of successful testing. Debugging is the action that results in removal of error. Debugging process: Process begins with the execution of test cases Results are, lack of correspondence b/w expected and actual performance. Debugging attempts to match symptoms with cause
  • 24. • Debugging have two out comes • cause will found and corrected • the cause will not found, in later cases the person performing debugging may suspect a cause. • They are three debugging strategies. • 1)brute force • 2)backtracking • 3)cause elimination
  • 25. • Brute force: • The brute force category of debugging is probably the most common and least efficient method for isolating the cause of a software error. • We apply brute force debugging methods when all else fails. • Using a "let the computer find the error" philosophy,
  • 26. • Backtracking • Backtracking is a fairly common debugging approach that can be used in small programs. • where a symptom has been uncovered, the source code is traced backward (manually) until the cause is found.
  • 27. • Cause elimination • Data related to the error occurrence are organized to isolate potential causes. • A "cause hypothesis" is devised and the aforementioned data are used to prove or disprove the hypothesis. • Alternatively, a list of all possible causes is developed and tests are conducted to eliminate each.