SlideShare a Scribd company logo
Test Design
Technique
Test Design Technique
A procedure used to define test conditions, design test
cases, and specify test data. (1)
Why is it important?
- To cut down number of tests we need to run. ~ Efficiency
Test Design Technique
(Categories)
• Specification-based (Black-box)
- derive test cases from the specification or a model of a system
- testing of what a system should do
• Structure-based (White-box)
- derive test cases from the code written
- testing based on how the specified behaviour was implemented
• Experience-based
- derive test cases from the tester’s experience of similar systems and
general experience of testing
Test Condition
A testable aspect of a component or system identified as a
basis for testing. (2)
Why is it important?
- To create / design good test case
Example:
• test condition - field can accept up to 20 alphanumeric characters
• test case # 1 - blank input
• test case #2 - symbol input
• test case #3 - 21 alphanumeric characters
Importance of Test Coverage
- quantitative measure of the quality of testing that has
been done
- way of estimating how much more testing needs to be
done
Example:
“I have tested 75% of the decisions”
“I have tested 80% of the requirements”
(5) Specification-based
Techniques
• Equivalence Partitioning
• Boundary Value Analysis
• Decision table testing
• State transition testing
• Use case testing
Equivalence Partition
• In this technique, you divide the set of test condition
into a partition that can be considered the same
• Input Partitions - inputs to a program can be
‘chunked’ into groups of similar inputs
2 Types of Input Partition:
• Valid Equivalence Partition
• Invalid Equivalence Partition
Equivalence Partition
Examples:
1. Valid input: integers in the range 100 to 999
• Valid partition: 100 to 999 inclusive
• Invalid partition: less than 100, more than 999, real
(decimal) numbers and non-numeric characters
2. Valid input: names with up to 20 alphabetic characters
• Valid partition: strings up to 20 alphabetic characters
• Non-valid partition: strings of more than 20 alphabetic
characters, strings containing non-alphabetic characters
Equivalence Partition
Exercise:
Suppose you have a bank account that offers variable interest
rates: 0.5% for the first $1,000 credit; 1% for the next $1,000; 1.5%
for the rest. If you wanted to check that the bank was handling your
account correctly, what valid and invalid input partitions might you
use?
• Output Partitions - outputs to a program can also be
partitioned
Example:
Exercise above could produce outputs of 0.5%, 1%, and 1.5%
Equivalence Partition
• Other Partitions - partitioning other values
Example:
A mail-order company charges $2.95 postage for deliveries if the package
weighs less than 2 kg, $3.95 if the package weighs 2 kg or more but less than
5 kg, and $5 for packages 5 kg or more. Generate a set of valid test cases
using equivalence partitioning.
The valid input partitions are: under 2 kg; 2 kg or over but less than 5 kg; and
5 kg or over.
Input values could be 1 kg, 3.5 kg, 5 kg. These would produce expected
results to $2.95, $3.95, and $5 respectively.
In this case there are no invalid inputs (unless the scales fail).
Boundary Value Analysis
• It is the process of testing boundaries between
partitions’ of the input values.
• Works well with equivalence partitioning because
partitions must have boundaries.
2 Types of Boundary Values:
• Valid boundary values
• Invalid boundary values
Boundary Value Analysis
Boundary Value Analysis Approach:
• 2 value boundary approach
- most practical
- to identify just two (2) values at each boundary
• 3 value boundary approach
- uses three (3) values at each boundary
Boundary Value Analysis
Example #1:
• The boiling point of water - the boundary is at 100 degrees
Celcius.
• 3 value - boundary values will be 99 degrees, 100 degrees,
and 101 degrees; unless you have a very accurate digital
thermometer, they could be 99.9 degrees, 100.0 degrees,
100.1 degrees
• 2 value - boundary values would be 100 and 101
Boundary Value Analysis
Example #2:
• Exam pass - if an exam has a pass boundary at 40%, merit at
60% and distinction at 80%
• 3 value - 39, 40, 41 for pass; 59, 60, 61 for merit; 79, 80, 81
for distinction
• 2 value - 39 and 40, 59 and 60, and 79 and 80 respectively.
References
• (1) -
https://glossary.istqb.org/en/search/test%20design%20tec
hnique
• (2) - https://glossary.istqb.org/en/search/test%20condition

More Related Content

PPT
Equivalence partitions analysis
PDF
TestNG introduction
PPTX
Test case techniques
PPT
Test Life Cycle - Manual Testing Concept.
PDF
Rest api 테스트 수행가이드
PDF
테스터가 말하는 테스트코드 작성 팁과 사례
PPT
ISTQB / ISEB Foundation Exam Practice -1
PPTX
Таблицы принятия решений
Equivalence partitions analysis
TestNG introduction
Test case techniques
Test Life Cycle - Manual Testing Concept.
Rest api 테스트 수행가이드
테스터가 말하는 테스트코드 작성 팁과 사례
ISTQB / ISEB Foundation Exam Practice -1
Таблицы принятия решений

What's hot (20)

PPT
Runnable interface.34
PPTX
An Introduction to Unit Testing
PPTX
ISTQB - What's testing
PDF
PPTX
Decision making and branching
PPTX
Understanding Unit Testing
PDF
발표자료 1인qa로살아남는6가지방법
PPTX
AES.pptx
PPTX
Keyword-driven Test Automation Framework
PPTX
Unit Testing Concepts and Best Practices
PPTX
Arrays in Java
PDF
Using Postman to Automate API On-Boarding
PPTX
Database Testing.pptx
PPSX
Unit Test Presentation
PPTX
BNF & EBNF
PPTX
Equivalence partinioning and boundary value analysis
PPTX
Unit Testing And Mocking
PPT
05 junit
PPT
Dynamic Testing
Runnable interface.34
An Introduction to Unit Testing
ISTQB - What's testing
Decision making and branching
Understanding Unit Testing
발표자료 1인qa로살아남는6가지방법
AES.pptx
Keyword-driven Test Automation Framework
Unit Testing Concepts and Best Practices
Arrays in Java
Using Postman to Automate API On-Boarding
Database Testing.pptx
Unit Test Presentation
BNF & EBNF
Equivalence partinioning and boundary value analysis
Unit Testing And Mocking
05 junit
Dynamic Testing
Ad

Similar to Software Testing - Test Design Techniques (20)

PPT
Test design techniques
PPTX
Equivalence-Partition-Testing-Notes-17122022-083818pm.pptx
PPTX
Lec 17.pptx
PPTX
Boundary Value Analysis & Equivalence Partitioning with Examples (1) (2).pptx
PPTX
Sta unit 3(abimanyu)
PPTX
Sta unit 3(abimanyu)
PDF
КАТЕРИНА АБЗЯТОВА - Tехніки тест дизайну в дії: розбір задач та корисні порад...
PPTX
Unit 2 - Test Case Design
PPTX
Blackbox
PPT
BLACK-BOX TESTING using boundart value analyse.ppt
PPT
Boundary value analysis
PPT
Test Techniques
PPT
Software Testing Techniques
PPTX
Black Box Testing
PDF
black-box-1.pdf
PPTX
ISTQB Foundation Level – Chapter 4: Test Design Techniques
PDF
Black Box Testing.pdf
PPT
12 functional-system-testing
PPTX
Test design techniques
Test design techniques
Equivalence-Partition-Testing-Notes-17122022-083818pm.pptx
Lec 17.pptx
Boundary Value Analysis & Equivalence Partitioning with Examples (1) (2).pptx
Sta unit 3(abimanyu)
Sta unit 3(abimanyu)
КАТЕРИНА АБЗЯТОВА - Tехніки тест дизайну в дії: розбір задач та корисні порад...
Unit 2 - Test Case Design
Blackbox
BLACK-BOX TESTING using boundart value analyse.ppt
Boundary value analysis
Test Techniques
Software Testing Techniques
Black Box Testing
black-box-1.pdf
ISTQB Foundation Level – Chapter 4: Test Design Techniques
Black Box Testing.pdf
12 functional-system-testing
Test design techniques
Ad

Recently uploaded (20)

PDF
Nekopoi APK 2025 free lastest update
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Softaken Excel to vCard Converter Software.pdf
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
ai tools demonstartion for schools and inter college
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
top salesforce developer skills in 2025.pdf
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
history of c programming in notes for students .pptx
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
Nekopoi APK 2025 free lastest update
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Design an Analysis of Algorithms I-SECS-1021-03
Softaken Excel to vCard Converter Software.pdf
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
ai tools demonstartion for schools and inter college
How to Migrate SBCGlobal Email to Yahoo Easily
Upgrade and Innovation Strategies for SAP ERP Customers
top salesforce developer skills in 2025.pdf
How to Choose the Right IT Partner for Your Business in Malaysia
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Operating system designcfffgfgggggggvggggggggg
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PTS Company Brochure 2025 (1).pdf.......
Odoo Companies in India – Driving Business Transformation.pdf
history of c programming in notes for students .pptx
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
wealthsignaloriginal-com-DS-text-... (1).pdf

Software Testing - Test Design Techniques

  • 2. Test Design Technique A procedure used to define test conditions, design test cases, and specify test data. (1) Why is it important? - To cut down number of tests we need to run. ~ Efficiency
  • 3. Test Design Technique (Categories) • Specification-based (Black-box) - derive test cases from the specification or a model of a system - testing of what a system should do • Structure-based (White-box) - derive test cases from the code written - testing based on how the specified behaviour was implemented • Experience-based - derive test cases from the tester’s experience of similar systems and general experience of testing
  • 4. Test Condition A testable aspect of a component or system identified as a basis for testing. (2) Why is it important? - To create / design good test case Example: • test condition - field can accept up to 20 alphanumeric characters • test case # 1 - blank input • test case #2 - symbol input • test case #3 - 21 alphanumeric characters
  • 5. Importance of Test Coverage - quantitative measure of the quality of testing that has been done - way of estimating how much more testing needs to be done Example: “I have tested 75% of the decisions” “I have tested 80% of the requirements”
  • 6. (5) Specification-based Techniques • Equivalence Partitioning • Boundary Value Analysis • Decision table testing • State transition testing • Use case testing
  • 7. Equivalence Partition • In this technique, you divide the set of test condition into a partition that can be considered the same • Input Partitions - inputs to a program can be ‘chunked’ into groups of similar inputs 2 Types of Input Partition: • Valid Equivalence Partition • Invalid Equivalence Partition
  • 8. Equivalence Partition Examples: 1. Valid input: integers in the range 100 to 999 • Valid partition: 100 to 999 inclusive • Invalid partition: less than 100, more than 999, real (decimal) numbers and non-numeric characters 2. Valid input: names with up to 20 alphabetic characters • Valid partition: strings up to 20 alphabetic characters • Non-valid partition: strings of more than 20 alphabetic characters, strings containing non-alphabetic characters
  • 9. Equivalence Partition Exercise: Suppose you have a bank account that offers variable interest rates: 0.5% for the first $1,000 credit; 1% for the next $1,000; 1.5% for the rest. If you wanted to check that the bank was handling your account correctly, what valid and invalid input partitions might you use? • Output Partitions - outputs to a program can also be partitioned Example: Exercise above could produce outputs of 0.5%, 1%, and 1.5%
  • 10. Equivalence Partition • Other Partitions - partitioning other values Example: A mail-order company charges $2.95 postage for deliveries if the package weighs less than 2 kg, $3.95 if the package weighs 2 kg or more but less than 5 kg, and $5 for packages 5 kg or more. Generate a set of valid test cases using equivalence partitioning. The valid input partitions are: under 2 kg; 2 kg or over but less than 5 kg; and 5 kg or over. Input values could be 1 kg, 3.5 kg, 5 kg. These would produce expected results to $2.95, $3.95, and $5 respectively. In this case there are no invalid inputs (unless the scales fail).
  • 11. Boundary Value Analysis • It is the process of testing boundaries between partitions’ of the input values. • Works well with equivalence partitioning because partitions must have boundaries. 2 Types of Boundary Values: • Valid boundary values • Invalid boundary values
  • 12. Boundary Value Analysis Boundary Value Analysis Approach: • 2 value boundary approach - most practical - to identify just two (2) values at each boundary • 3 value boundary approach - uses three (3) values at each boundary
  • 13. Boundary Value Analysis Example #1: • The boiling point of water - the boundary is at 100 degrees Celcius. • 3 value - boundary values will be 99 degrees, 100 degrees, and 101 degrees; unless you have a very accurate digital thermometer, they could be 99.9 degrees, 100.0 degrees, 100.1 degrees • 2 value - boundary values would be 100 and 101
  • 14. Boundary Value Analysis Example #2: • Exam pass - if an exam has a pass boundary at 40%, merit at 60% and distinction at 80% • 3 value - 39, 40, 41 for pass; 59, 60, 61 for merit; 79, 80, 81 for distinction • 2 value - 39 and 40, 59 and 60, and 79 and 80 respectively.
  • 15. References • (1) - https://glossary.istqb.org/en/search/test%20design%20tec hnique • (2) - https://glossary.istqb.org/en/search/test%20condition

Editor's Notes

  • #3: This is usually applied when there is a time constraint and we need to test smart.
  • #4: Specification-based does not need to know what is going on ‘inside the box’ Experience-based applied when specs or structure of implementation is not provided or insufficient Q: Which of these categories do you frequently use for your projects? It’s important to ensure references (test basis) such as functional and technical specs to design test effectively - Using all or each category will ensure good test coverage
  • #5: Test condition - derived from the requirement Test case - traceable back to the test condition
  • #6: Why is it related to Test Design? It provides a quantitative assessment of the extent and quality of testing. It can be applied to any systematic technique - “How deep is our testing?”
  • #7: We use these technique to reduce the number of test cases we need to write
  • #8: Input Partition - we only need to test a “representative” of the partition Valid Partition - partitioning the collection of valid inputs Invalid Partition - partitioning the collection of invalid inputs Q: If it’s not included in the specs, should we test it? - There are far more ways to provide incorrect input than there are to provide correct input
  • #10: We could use test cases that generate each of these outputs as an alternative to generating input partitions.
  • #11: Limit the test cases to the ones that are most likely to crop up in real situation.
  • #12: Based on experience, common mistakes that programmers make is that errors tend to cluster around boundaries. Faults coincide with particular programming structures such as the # of times a program loop is executed or the exact point at which a loop should stop executing. Valid boundary values - boundaries on the inside of a valid partition Invalid boundary values - boundaries on the outside of a valid partition; or boundaries on the inside of a invalid partition
  • #13: 2 value - boundary value itself and one value opposite side of the boundary 3 value - boundary value itself and the extremes