SlideShare a Scribd company logo
1 of 13
T e s t D e s i g n T e c h n i q u e
Emi Rizki Ayunanda
11453201739
Sistem Informasi
Fakultas Sains Dan Teknologi
Universitas Islam Negeri Sultan Syarif Kasim Riau
There are many different types of software
testing technique, each with its own strengths and
weaknesses. Each individual technique is good at finding
particular types of defect and relatively poor at finding
other types. For example, a technique that explores the
upper and lower limits of a single input range is more likely
to find boundary value defects than defects associated
with combinations of inputs. Similarly, testing performed at
different stages in the software development life cycle will
find different types of defects; component testing is more
likely to find coding logic defects than system design
defects.
Each testing technique falls into one of a number
of different categories. Broadly speaking there are two
main categories, static and dynamic.
CATEGORIES OF TEST DESIGN TECHNIQUES
2
3
Dynamic techniques are
subdivided into three more categories:
specification-based (black-box, also known
as behavioral techniques), structure-based
(white-box or structural techniques) and
experience-based. Specification-based
techniques include both functional and non-
functional techniques (i.e. quality
characteristics). The techniques covered in
the syllabus are summarized in Figure a.
Figure a. Testing Techniques
As we saw in Chapter 3, static
testing techniques do not execute the
code being examined and are generally
used before any tests are executed on
the software. They could be called non-
execution techniques. Most static testing
techniques can be used to 'test' any form
of document including source code,
design documents and models,
functional specifications and requirement
specifications. However, 'static analysis'
is a tool-supported type of static testing
that concentrates on testing formal
languages and so is most often used to
statically test source code
Static testing techniques
4
The first of the dynamic testing
t`echniques we will look at are the
specification-based testing techniques.
These are also known as 'black-box' or
input/output-driven testing techniques
because they view the software as a
black-box with inputs and outputs, but
they have no knowledge of how the
system or component is structured inside
the box. In essence, the tester is
concentrating on what the software does,
not how it does it.
Specification-based
(black-box) testing
techniques
5
Structure-based testing
techniques (which are also dynamic
rather than static) use the internal
structure of the software to derive test
cases. They are commonly called 'white-
box' or 'glass-box' techniques (implying
you can see into the system) since they
require knowledge of how the software is
implemented, that is, how it works. For
example, a structural technique may be
concerned with exercising loops in the
software. Different test cases may be
derived to exercise the loop once, twice,
and many times. This may be done
regardless of the functionality of the
software.
Structure-based (white-
box) testing techniques
6
In experience-based
techniques, people's knowledge, skills
and background are a prime contributor
to the test conditions and test cases. The
experience of both technical and
business people is important, as they
bring different perspectives to the test
analysis and design process. Due to
previous experience with similar
systems, they may have insights into
what could go wrong, which is very
useful for testing.
Experience-based
testing techniques
7
Specification-based techniques
are appropriate at all levels of testing
(component testing through to
acceptance testing) where a specification
exists. When performing system or
acceptance testing, the requirements
specification or functional specification
may form the basis of the tests. When
performing component or integration
testing, a design document or low-level
specification forms the basis of the tests.
Where to apply the
different categories of
techniques
8
9
equivalence partitioning;
boundary value analysis;
decision tables;
SPECIFICATION-BASED OR BLACK-
BOX TECHNIQUES
state transition testing.
Note that we will discuss the first two together, because they are closely related
Equivalence partitioning (EP) is a good all-round specification-based black-box
technique. It can be applied at any level of testing and is often a good technique to use
first. The equivalence-partitioning technique then requires that we need test only one
condition from each partition. the naive approach is less effective than equivalence
partitioning. For example, if a balance in the range $0 up to $100 has a 3% interest rate, a
balance over $100 and up to $1000 has a 5% interest rate, and balances of $1000 and
over have a 7% interest rate, we would initially identify three valid equivalence partitions
and one invalid partition as shown below.
10
Equivalence partitioning
Boundary value analysis (BVA) is based on testing at the boundaries between
partitions. If you have ever done 'range checking', you were probably using the boundary
value analysis technique, even if you weren't aware of it. Note that we have both valid
boundaries (in the valid partitions) and invalid boundaries (in the invalid partitions). As an
example, consider a printer that has an input option of the number of
11
Boundary value analysis
To apply boundary value analysis, we will take the minimum and maximum
(boundary) values from the valid partition (1 and 99 in this case) together with copies to be
made, from 1 to 99. Consider the bank system described in the section about equivalence
partitioning.
G r a h a m e t . a l ( 2 0 1 1 )
12
References
THANK YOU!
http://sif.uin-suska.ac.id/
http://fst.uin-suska.ac.id/
http://www.uin-suska.ac.id/

More Related Content

What's hot

Test Case Design
Test Case DesignTest Case Design
Test Case Design
acatalin
 
Structural testing
Structural testingStructural testing
Structural testing
Slideshare
 

What's hot (19)

Test Case Design
Test Case DesignTest Case Design
Test Case Design
 
Paper 06
Paper 06Paper 06
Paper 06
 
Software Quality Testing
Software Quality TestingSoftware Quality Testing
Software Quality Testing
 
Design Test Case Technique (Equivalence partitioning And Boundary value analy...
Design Test Case Technique (Equivalence partitioning And Boundary value analy...Design Test Case Technique (Equivalence partitioning And Boundary value analy...
Design Test Case Technique (Equivalence partitioning And Boundary value analy...
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
Software Testing Techniques
Software Testing TechniquesSoftware Testing Techniques
Software Testing Techniques
 
GrayBox Testing and Crud Testing By: Er. Priyanka Pradhan
GrayBox Testing and Crud Testing By: Er. Priyanka PradhanGrayBox Testing and Crud Testing By: Er. Priyanka Pradhan
GrayBox Testing and Crud Testing By: Er. Priyanka Pradhan
 
Whitepaper Test Case Design and Testing Techniques- Factors to Consider
Whitepaper Test Case Design and Testing Techniques- Factors to ConsiderWhitepaper Test Case Design and Testing Techniques- Factors to Consider
Whitepaper Test Case Design and Testing Techniques- Factors to Consider
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
 
A PRACTITIONER'S GUIDE TO SOFTWARE TEST DESIGN [Summary]
A PRACTITIONER'S GUIDE TO SOFTWARE TEST DESIGN [Summary]A PRACTITIONER'S GUIDE TO SOFTWARE TEST DESIGN [Summary]
A PRACTITIONER'S GUIDE TO SOFTWARE TEST DESIGN [Summary]
 
Structural testing
Structural testingStructural testing
Structural testing
 
10 software testing_technique
10 software testing_technique10 software testing_technique
10 software testing_technique
 
White Box Testing
White Box TestingWhite Box Testing
White Box Testing
 
Testing
TestingTesting
Testing
 
Rekno widyawati
Rekno widyawatiRekno widyawati
Rekno widyawati
 
White Box Testing V0.2
White Box Testing V0.2White Box Testing V0.2
White Box Testing V0.2
 
Black boxtestingmethodsforsoftwarecomponents
Black boxtestingmethodsforsoftwarecomponentsBlack boxtestingmethodsforsoftwarecomponents
Black boxtestingmethodsforsoftwarecomponents
 
Introduction to formal methods
Introduction to formal methodsIntroduction to formal methods
Introduction to formal methods
 
Coding and testing In Software Engineering
Coding and testing In Software EngineeringCoding and testing In Software Engineering
Coding and testing In Software Engineering
 

Similar to Test design technique

Test design techniques
Test design techniquesTest design techniques
Test design techniques
Oksana
 
lec-11 Testing.ppt
lec-11 Testing.pptlec-11 Testing.ppt
lec-11 Testing.ppt
debjani12
 

Similar to Test design technique (20)

Categories of test design techniques
Categories of test design techniquesCategories of test design techniques
Categories of test design techniques
 
Understanding Black Box Testing – Types, Techniques, and Examples.pdf
Understanding Black Box Testing – Types, Techniques, and Examples.pdfUnderstanding Black Box Testing – Types, Techniques, and Examples.pdf
Understanding Black Box Testing – Types, Techniques, and Examples.pdf
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
 
CTFL Module 04
CTFL Module 04CTFL Module 04
CTFL Module 04
 
Dynamic analysis in Software Testing
Dynamic analysis in Software TestingDynamic analysis in Software Testing
Dynamic analysis in Software Testing
 
Test Design Techniques
Test Design TechniquesTest Design Techniques
Test Design Techniques
 
Test Design Techiques
Test Design TechiquesTest Design Techiques
Test Design Techiques
 
black-box-1.pdf
black-box-1.pdfblack-box-1.pdf
black-box-1.pdf
 
Unit2 for st
Unit2 for stUnit2 for st
Unit2 for st
 
Software testing overview subbu
Software testing overview subbuSoftware testing overview subbu
Software testing overview subbu
 
Boundary and equivalnce systematic test design
Boundary and equivalnce   systematic test designBoundary and equivalnce   systematic test design
Boundary and equivalnce systematic test design
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
 
Testing
TestingTesting
Testing
 
Se (techniques for black box testing ppt)
Se (techniques for black box testing ppt)Se (techniques for black box testing ppt)
Se (techniques for black box testing ppt)
 
lec-11 Testing.ppt
lec-11 Testing.pptlec-11 Testing.ppt
lec-11 Testing.ppt
 
Specification based or black box techniques
Specification based or black box techniquesSpecification based or black box techniques
Specification based or black box techniques
 
Specification based or black box techniques
Specification based or black box techniquesSpecification based or black box techniques
Specification based or black box techniques
 
Specification Based or Black Box Techniques
Specification Based or Black Box TechniquesSpecification Based or Black Box Techniques
Specification Based or Black Box Techniques
 
Specification based or black box techniques
Specification based or black box techniquesSpecification based or black box techniques
Specification based or black box techniques
 
Specification based or black box techniques
Specification based or black box techniques Specification based or black box techniques
Specification based or black box techniques
 

More from Emi Rizki Ayunanda (6)

Tool support for testing
Tool support for testingTool support for testing
Tool support for testing
 
Testing throughout the software life cycle
Testing throughout the software life cycleTesting throughout the software life cycle
Testing throughout the software life cycle
 
Test management
Test managementTest management
Test management
 
Static techniques
Static techniquesStatic techniques
Static techniques
 
Fundamentals of testing
Fundamentals of testingFundamentals of testing
Fundamentals of testing
 
Tugas sosioteknologi emi rizki ayunanda
Tugas sosioteknologi emi rizki ayunandaTugas sosioteknologi emi rizki ayunanda
Tugas sosioteknologi emi rizki ayunanda
 

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
 
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)

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
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
 
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...
 
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
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
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
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
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
 
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...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 

Test design technique

  • 1. T e s t D e s i g n T e c h n i q u e Emi Rizki Ayunanda 11453201739 Sistem Informasi Fakultas Sains Dan Teknologi Universitas Islam Negeri Sultan Syarif Kasim Riau
  • 2. There are many different types of software testing technique, each with its own strengths and weaknesses. Each individual technique is good at finding particular types of defect and relatively poor at finding other types. For example, a technique that explores the upper and lower limits of a single input range is more likely to find boundary value defects than defects associated with combinations of inputs. Similarly, testing performed at different stages in the software development life cycle will find different types of defects; component testing is more likely to find coding logic defects than system design defects. Each testing technique falls into one of a number of different categories. Broadly speaking there are two main categories, static and dynamic. CATEGORIES OF TEST DESIGN TECHNIQUES 2
  • 3. 3 Dynamic techniques are subdivided into three more categories: specification-based (black-box, also known as behavioral techniques), structure-based (white-box or structural techniques) and experience-based. Specification-based techniques include both functional and non- functional techniques (i.e. quality characteristics). The techniques covered in the syllabus are summarized in Figure a. Figure a. Testing Techniques
  • 4. As we saw in Chapter 3, static testing techniques do not execute the code being examined and are generally used before any tests are executed on the software. They could be called non- execution techniques. Most static testing techniques can be used to 'test' any form of document including source code, design documents and models, functional specifications and requirement specifications. However, 'static analysis' is a tool-supported type of static testing that concentrates on testing formal languages and so is most often used to statically test source code Static testing techniques 4
  • 5. The first of the dynamic testing t`echniques we will look at are the specification-based testing techniques. These are also known as 'black-box' or input/output-driven testing techniques because they view the software as a black-box with inputs and outputs, but they have no knowledge of how the system or component is structured inside the box. In essence, the tester is concentrating on what the software does, not how it does it. Specification-based (black-box) testing techniques 5
  • 6. Structure-based testing techniques (which are also dynamic rather than static) use the internal structure of the software to derive test cases. They are commonly called 'white- box' or 'glass-box' techniques (implying you can see into the system) since they require knowledge of how the software is implemented, that is, how it works. For example, a structural technique may be concerned with exercising loops in the software. Different test cases may be derived to exercise the loop once, twice, and many times. This may be done regardless of the functionality of the software. Structure-based (white- box) testing techniques 6
  • 7. In experience-based techniques, people's knowledge, skills and background are a prime contributor to the test conditions and test cases. The experience of both technical and business people is important, as they bring different perspectives to the test analysis and design process. Due to previous experience with similar systems, they may have insights into what could go wrong, which is very useful for testing. Experience-based testing techniques 7
  • 8. Specification-based techniques are appropriate at all levels of testing (component testing through to acceptance testing) where a specification exists. When performing system or acceptance testing, the requirements specification or functional specification may form the basis of the tests. When performing component or integration testing, a design document or low-level specification forms the basis of the tests. Where to apply the different categories of techniques 8
  • 9. 9 equivalence partitioning; boundary value analysis; decision tables; SPECIFICATION-BASED OR BLACK- BOX TECHNIQUES state transition testing. Note that we will discuss the first two together, because they are closely related
  • 10. Equivalence partitioning (EP) is a good all-round specification-based black-box technique. It can be applied at any level of testing and is often a good technique to use first. The equivalence-partitioning technique then requires that we need test only one condition from each partition. the naive approach is less effective than equivalence partitioning. For example, if a balance in the range $0 up to $100 has a 3% interest rate, a balance over $100 and up to $1000 has a 5% interest rate, and balances of $1000 and over have a 7% interest rate, we would initially identify three valid equivalence partitions and one invalid partition as shown below. 10 Equivalence partitioning
  • 11. Boundary value analysis (BVA) is based on testing at the boundaries between partitions. If you have ever done 'range checking', you were probably using the boundary value analysis technique, even if you weren't aware of it. Note that we have both valid boundaries (in the valid partitions) and invalid boundaries (in the invalid partitions). As an example, consider a printer that has an input option of the number of 11 Boundary value analysis To apply boundary value analysis, we will take the minimum and maximum (boundary) values from the valid partition (1 and 99 in this case) together with copies to be made, from 1 to 99. Consider the bank system described in the section about equivalence partitioning.
  • 12. G r a h a m e t . a l ( 2 0 1 1 ) 12 References