SlideShare a Scribd company logo
Black Box Testing
What is Black Box Testing?
• BBT is a method for software testing.
• See the Black Box !
• Based on Requirements and Specifications of Software
• It’s know by name Behavior Testing
Advantages
• Test is executed from the user’s point of view or tester. So that, the
software is used from the objective perspective of end user.
• Avoidance of developer-bias
• Don’t need to know the programing language or how the software
implemented.
• Be able to write test case and execute test as soon as the
requirements are completed.
Disadvantages
• If requirements are not clearly, it might design test case wrong or it’s
hard to design test case.
• Just can test on the number of inputs so it will not cover all of the
cases.
Boundary Value Analysis (BVA)
• Faults tend to lurk near boundaries
• Good place to look for faults
• Test values on both sides of boundaries
1 100 1010
invalid invalidvalid
Equivalence Partitioning
• Divide (partition) the inputs, outputs, etc. into areas which are the same
(equivalent)
• Assumption: if one value works, all will work
• One from each partition better than all from one
invalid invalidvalid
1 100 1010
Example1: Enter description for case
• A test box allow input less than 400 characters
Description for case
Number of characters:
1invalid valid0
Conditions Valid Partition Invalid Partitions Valid Boundaries Invalid Boundaries
Description for
case
1 to 400
characters
< 1 character 1 character Empty
> 400 characters 400 characters 401 characters
400 401 invalid
Decision Table
• Determine the test scenarios for complex business logic.
• Identify a suitable function or system which reacts according to a
combination of inputs or events
• It is better to deal with large numbers of conditions by dividing them
into subsets and dealing with the subsets one at a time.
• Once you have identified the aspects that need to be combined, then
you put them into a table listing all the combinations of True and
False for each of the aspects
Example 2: Discount fee application
• A application for discounting the fee for the customer will follow by
the rules:
• If this is a new customer then she is discounted 15%
• If this is a loyalty customer then she is discounted 10%
Decision Table
Conditions Rule 1 Rule 2 Rule 3 Rule 4
New customer (15%) T T F F
Loyalty customer (10%) T F T F
Formula = 2n
N: The number of conditions
Decision Table
Conditions Rule 1 Rule 2 Rule 3 Rule 4
New customer (15%) T T F F
Loyalty customer (10%) T F T F
Actions/Outcomes
New customer (15%) Y Y
Loyalty customer (10%) Y Y
Decision Table
Conditions Rule 1 Rule 2 Rule 3 Rule 4
New customer (15%) T T F F
Loyalty customer (10%) T F T F
Actions/Outcomes
New customer (15%) Y Y
Loyalty customer (10%) Y Y
Error Message
Y
Decision Table
Conditions Rule 1 Rule 2 Rule 3 Rule 4
New customer (15%) T T F F
Loyalty customer (10%) T F T F
Actions/Outcomes
New customer (15%) Y Y
Loyalty customer (10%) Y Y
Error Message
Y Y
Output for each test case
Conditions Rule 1 Rule 2 Rule 3 Rule 4
New customer (15%) T T F F
Loyalty customer (10%) T F T F
Actions/Outcomes
Result Error Message Logic for New
customer
Logic for Loyalty
customer
Error Message
Advandtages vs Disadvantages
• Advandtages:
Test all cases able to happen by a combination all of them
Discover omissions and ambiguities in specifications
• Disadvantages:
If we have a lot of combinations, it may not be possible or sensible to test
every combination
If we are time-constrained, we may not have time to test all combinations.
Lesson learn
• Don’t just assume that all combinations need to be tested
• It is always better to prioritize and test the most important
combinations.
• Having the full table helps us to decide which combinations we
should test and which not to test this time.

More Related Content

What's hot

Test design techniques
Test design techniquesTest design techniques
Test design techniques
Oksana
 
Equivalence partitions analysis
Equivalence partitions analysisEquivalence partitions analysis
Equivalence partitions analysis
Vadym Muliavka
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
Gregory Solovey
 
Structural testing
Structural testingStructural testing
Structural testing
Slideshare
 
Istqb ctfl-series - Black Box Testing
Istqb ctfl-series - Black Box TestingIstqb ctfl-series - Black Box Testing
Istqb ctfl-series - Black Box Testing
Disha Srivastava
 
Test design technique
Test design techniqueTest design technique
Test design technique
Emi Rizki Ayunanda
 
Blackbox
BlackboxBlackbox
Blackbox
Oana Feidi
 
Structure testing
Structure testingStructure testing
Structure testing
Vaibhav Dash
 

What's hot (8)

Test design techniques
Test design techniquesTest design techniques
Test design techniques
 
Equivalence partitions analysis
Equivalence partitions analysisEquivalence partitions analysis
Equivalence partitions analysis
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
 
Structural testing
Structural testingStructural testing
Structural testing
 
Istqb ctfl-series - Black Box Testing
Istqb ctfl-series - Black Box TestingIstqb ctfl-series - Black Box Testing
Istqb ctfl-series - Black Box Testing
 
Test design technique
Test design techniqueTest design technique
Test design technique
 
Blackbox
BlackboxBlackbox
Blackbox
 
Structure testing
Structure testingStructure testing
Structure testing
 

Similar to Black box testing techniques

Implementing Blackbox Testing
Implementing Blackbox TestingImplementing Blackbox Testing
Implementing Blackbox Testing
Edureka!
 
Attribute measurement analysis
Attribute measurement analysis Attribute measurement analysis
Attribute measurement analysis
PRASHANT KSHIRSAGAR
 
Testing lab manual Testing lab manual sqa
Testing lab manual Testing lab manual sqaTesting lab manual Testing lab manual sqa
Testing lab manual Testing lab manual sqa
MuhammadAdnan845624
 
Testing
TestingTesting
blckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ yk
blckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ ykblckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ yk
blckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ yk
SMayankSharma
 
Model selection and cross validation techniques
Model selection and cross validation techniquesModel selection and cross validation techniques
Model selection and cross validation techniques
Venkata Reddy Konasani
 
Dynamic Testing
Dynamic TestingDynamic Testing
Dynamic Testing
Jimi Patel
 
Electric Meter and Transformer Testing in an AMI World - AclaraConnect 2018
Electric Meter and Transformer Testing in an AMI World - AclaraConnect 2018Electric Meter and Transformer Testing in an AMI World - AclaraConnect 2018
Electric Meter and Transformer Testing in an AMI World - AclaraConnect 2018
TESCO - The Eastern Specialty Company
 
Instrument Transformers - Following the Money: Best Practices in a Post AMI W...
Instrument Transformers - Following the Money: Best Practices in a Post AMI W...Instrument Transformers - Following the Money: Best Practices in a Post AMI W...
Instrument Transformers - Following the Money: Best Practices in a Post AMI W...
TESCO - The Eastern Specialty Company
 
Unit 2 - Test Case Design
Unit 2 - Test Case DesignUnit 2 - Test Case Design
Unit 2 - Test Case Design
Selvi Vts
 
Fundamentals of Transformer-Rated Field Meter Testing and Site Verification
Fundamentals of Transformer-Rated Field Meter Testing and Site VerificationFundamentals of Transformer-Rated Field Meter Testing and Site Verification
Fundamentals of Transformer-Rated Field Meter Testing and Site Verification
TESCO - The Eastern Specialty Company
 
CIS 1403 lab 4 selection
CIS 1403 lab 4 selectionCIS 1403 lab 4 selection
CIS 1403 lab 4 selection
Hamad Odhabi
 
Acceptance sampling
Acceptance samplingAcceptance sampling
Acceptance sampling
Hassan Habib
 
Test Smarter: Efficient Coverage Metrics That Won't Leave You Exposed
Test Smarter: Efficient Coverage Metrics That Won't Leave You ExposedTest Smarter: Efficient Coverage Metrics That Won't Leave You Exposed
Test Smarter: Efficient Coverage Metrics That Won't Leave You Exposed
SmartBear
 
Field Testing
Field TestingField Testing
Software Testing-Dynamic testing technique-Mazenet solution
Software Testing-Dynamic testing technique-Mazenet solutionSoftware Testing-Dynamic testing technique-Mazenet solution
Software Testing-Dynamic testing technique-Mazenet solution
Mazenetsolution
 
Single Phase Meter Testing Overview
Single Phase Meter Testing OverviewSingle Phase Meter Testing Overview
Single Phase Meter Testing Overview
TESCO - The Eastern Specialty Company
 
Orthogonal array approach a case study
Orthogonal array approach   a case studyOrthogonal array approach   a case study
Orthogonal array approach a case study
Karthikeyan Rajendran
 
CTFL Module 04
CTFL Module 04CTFL Module 04
CTFL Module 04
Davis Thomas
 
Code coverage in theory and in practice form the do178 b perspective
Code coverage in theory and in practice form the do178 b perspectiveCode coverage in theory and in practice form the do178 b perspective
Code coverage in theory and in practice form the do178 b perspective
Engineering Software Lab
 

Similar to Black box testing techniques (20)

Implementing Blackbox Testing
Implementing Blackbox TestingImplementing Blackbox Testing
Implementing Blackbox Testing
 
Attribute measurement analysis
Attribute measurement analysis Attribute measurement analysis
Attribute measurement analysis
 
Testing lab manual Testing lab manual sqa
Testing lab manual Testing lab manual sqaTesting lab manual Testing lab manual sqa
Testing lab manual Testing lab manual sqa
 
Testing
TestingTesting
Testing
 
blckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ yk
blckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ ykblckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ yk
blckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ yk
 
Model selection and cross validation techniques
Model selection and cross validation techniquesModel selection and cross validation techniques
Model selection and cross validation techniques
 
Dynamic Testing
Dynamic TestingDynamic Testing
Dynamic Testing
 
Electric Meter and Transformer Testing in an AMI World - AclaraConnect 2018
Electric Meter and Transformer Testing in an AMI World - AclaraConnect 2018Electric Meter and Transformer Testing in an AMI World - AclaraConnect 2018
Electric Meter and Transformer Testing in an AMI World - AclaraConnect 2018
 
Instrument Transformers - Following the Money: Best Practices in a Post AMI W...
Instrument Transformers - Following the Money: Best Practices in a Post AMI W...Instrument Transformers - Following the Money: Best Practices in a Post AMI W...
Instrument Transformers - Following the Money: Best Practices in a Post AMI W...
 
Unit 2 - Test Case Design
Unit 2 - Test Case DesignUnit 2 - Test Case Design
Unit 2 - Test Case Design
 
Fundamentals of Transformer-Rated Field Meter Testing and Site Verification
Fundamentals of Transformer-Rated Field Meter Testing and Site VerificationFundamentals of Transformer-Rated Field Meter Testing and Site Verification
Fundamentals of Transformer-Rated Field Meter Testing and Site Verification
 
CIS 1403 lab 4 selection
CIS 1403 lab 4 selectionCIS 1403 lab 4 selection
CIS 1403 lab 4 selection
 
Acceptance sampling
Acceptance samplingAcceptance sampling
Acceptance sampling
 
Test Smarter: Efficient Coverage Metrics That Won't Leave You Exposed
Test Smarter: Efficient Coverage Metrics That Won't Leave You ExposedTest Smarter: Efficient Coverage Metrics That Won't Leave You Exposed
Test Smarter: Efficient Coverage Metrics That Won't Leave You Exposed
 
Field Testing
Field TestingField Testing
Field Testing
 
Software Testing-Dynamic testing technique-Mazenet solution
Software Testing-Dynamic testing technique-Mazenet solutionSoftware Testing-Dynamic testing technique-Mazenet solution
Software Testing-Dynamic testing technique-Mazenet solution
 
Single Phase Meter Testing Overview
Single Phase Meter Testing OverviewSingle Phase Meter Testing Overview
Single Phase Meter Testing Overview
 
Orthogonal array approach a case study
Orthogonal array approach   a case studyOrthogonal array approach   a case study
Orthogonal array approach a case study
 
CTFL Module 04
CTFL Module 04CTFL Module 04
CTFL Module 04
 
Code coverage in theory and in practice form the do178 b perspective
Code coverage in theory and in practice form the do178 b perspectiveCode coverage in theory and in practice form the do178 b perspective
Code coverage in theory and in practice form the do178 b perspective
 

Recently uploaded

LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 

Recently uploaded (20)

LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 

Black box testing techniques

  • 2. What is Black Box Testing? • BBT is a method for software testing. • See the Black Box ! • Based on Requirements and Specifications of Software • It’s know by name Behavior Testing
  • 3. Advantages • Test is executed from the user’s point of view or tester. So that, the software is used from the objective perspective of end user. • Avoidance of developer-bias • Don’t need to know the programing language or how the software implemented. • Be able to write test case and execute test as soon as the requirements are completed.
  • 4. Disadvantages • If requirements are not clearly, it might design test case wrong or it’s hard to design test case. • Just can test on the number of inputs so it will not cover all of the cases.
  • 5. Boundary Value Analysis (BVA) • Faults tend to lurk near boundaries • Good place to look for faults • Test values on both sides of boundaries 1 100 1010 invalid invalidvalid
  • 6. Equivalence Partitioning • Divide (partition) the inputs, outputs, etc. into areas which are the same (equivalent) • Assumption: if one value works, all will work • One from each partition better than all from one invalid invalidvalid 1 100 1010
  • 7. Example1: Enter description for case • A test box allow input less than 400 characters
  • 8. Description for case Number of characters: 1invalid valid0 Conditions Valid Partition Invalid Partitions Valid Boundaries Invalid Boundaries Description for case 1 to 400 characters < 1 character 1 character Empty > 400 characters 400 characters 401 characters 400 401 invalid
  • 9. Decision Table • Determine the test scenarios for complex business logic. • Identify a suitable function or system which reacts according to a combination of inputs or events • It is better to deal with large numbers of conditions by dividing them into subsets and dealing with the subsets one at a time. • Once you have identified the aspects that need to be combined, then you put them into a table listing all the combinations of True and False for each of the aspects
  • 10. Example 2: Discount fee application • A application for discounting the fee for the customer will follow by the rules: • If this is a new customer then she is discounted 15% • If this is a loyalty customer then she is discounted 10%
  • 11. Decision Table Conditions Rule 1 Rule 2 Rule 3 Rule 4 New customer (15%) T T F F Loyalty customer (10%) T F T F Formula = 2n N: The number of conditions
  • 12. Decision Table Conditions Rule 1 Rule 2 Rule 3 Rule 4 New customer (15%) T T F F Loyalty customer (10%) T F T F Actions/Outcomes New customer (15%) Y Y Loyalty customer (10%) Y Y
  • 13. Decision Table Conditions Rule 1 Rule 2 Rule 3 Rule 4 New customer (15%) T T F F Loyalty customer (10%) T F T F Actions/Outcomes New customer (15%) Y Y Loyalty customer (10%) Y Y Error Message Y
  • 14. Decision Table Conditions Rule 1 Rule 2 Rule 3 Rule 4 New customer (15%) T T F F Loyalty customer (10%) T F T F Actions/Outcomes New customer (15%) Y Y Loyalty customer (10%) Y Y Error Message Y Y
  • 15. Output for each test case Conditions Rule 1 Rule 2 Rule 3 Rule 4 New customer (15%) T T F F Loyalty customer (10%) T F T F Actions/Outcomes Result Error Message Logic for New customer Logic for Loyalty customer Error Message
  • 16. Advandtages vs Disadvantages • Advandtages: Test all cases able to happen by a combination all of them Discover omissions and ambiguities in specifications • Disadvantages: If we have a lot of combinations, it may not be possible or sensible to test every combination If we are time-constrained, we may not have time to test all combinations.
  • 17. Lesson learn • Don’t just assume that all combinations need to be tested • It is always better to prioritize and test the most important combinations. • Having the full table helps us to decide which combinations we should test and which not to test this time.

Editor's Notes

  1. Bạn nhìn thấy là 1 hộp màu đen, bạn không thể nhìn thấy bên trong là gì, không biết có gì trong đó. Giống như đôi mắt của tester, tuy không thể biết trong nó là gì nhưng dựa vào nó thì có thể tìm ra được lỗi. Nó còn được biết với tên gọi là Behaviour Testing. Vì nó dựa hoàn toàn vào yêu cầu và mô tả chức năng của phần mềm để thực hiện.
  2. Test is executed from the user’s point of view or tester. So that, the software is used from the objective perspective of end user. Test được thực hiện từ góc nhìn của user or là tester nên có thể trải nghiệm và sử dụng phần mềm khách quan từ quan điểm của 1 end user. 2. Avoidance of developer-bias Dẫn tới là tránh được sự ngộ nhận hoăc thiếu sót từ developer 3. Don’t need to know the programing language or how the software implemented. Không cần biết ngôn ngữ lập trình or cách mà phần mềm thực hiện như thế nào 4. Be able to write test case and execute test as soon as the requirements are completed. => Có thể viết test case và test được sớm khi requirement hoàn thiện.
  3. If requirements are not clearly, it mights design test case wrong or it’s hard to design test case. => Nếu requirement không rõ ràng thì có thể design test case bị sai or rất khó để design test case 2. Just can test on the number of inputs so it will not cover all of the cases. => Chỉ có thể test trên 1 số lượng data nên sẽ ko cover hết tất cả các trường hợp
  4. Tìm kiếm được giá trị input từ những vùng biên.
  5. Nó giúp cắt giảm 1 số lượng lớn input có khả năng xảy ra thành 1 bộ input data nhỏ nhưng hiệu quả hơn. Nó chia input data thành các class và chỉ lấy 1 giá trị đại diện để test cho mỗi class.
  6. Như vậy ta có thể thấy có 2 điều kiện tính toán là Court Byret hoặc Court Sø- og Handelsretten . Với 2 điều kiện như trên thì có tất cả 4 khả năng có thể xảy ra. Một bảng combine các khả năng xảy ra cho 2 điều kiện trên Với mỗi khả năng sẽ có 2 giá trị True or False. Ta đánh nó tương ứng vào các ô Một qui tắc để tính được số trường hợp khả năng là 2n. Với n là số điều kiện. Tips: Với số lượng điều kiện lớn ví dụ 5 or 6, lúc này ta có từ 32 or 64 khả năng có thể xảy ra. Do đó, 1 cách để biết mình lâp bảng khả năng đúng đó là dòng đầu tiên thì 1 nữa sẽ là True, 1 nữa sẽ là False. Và dòng cuối cùng sẽ là true và False lặp lại kế tiếp nhau. Từ bảng khả năng, ta có thể xác định giá trị Output tương ứng với từng trường hợp như bảng dưới đây.
  7. Qua bảng decision trên ta có thể nhận xét, khách hang phải nhập ít nhất là 1 trong 2 giá trị. Nhưng nếu khách hàng không nhập giá trị nào thì sao! ( Trường hợp F-F). Qua đấy ta thấy, bảng decision cho phép ta nhìn thấy những khả năng không được đề cập trong yêu cầu. Điểm mạnh của technique này là cho phép tìm ra những thiếu sót và mơ hồ trong mô tả. Bởi vì có nhiều khả năng bị bỏ qua trong mô tả. Do vậy, technique này thường được dung khi review những test basis.
  8. Vậy thì để khắc phục trường hợp trên, ta đưa ra giải pháp là sẽ thêm 1 outcome là error message tới người dùng. Bảng decision sẽ thể hiện như sau. Quan sát bảng trên, có 1 trường hợp là khi KH chọn 2 option cùng 1 lần thì sao. Bảng trên đã chứng tỏ hai option được chọn vẫn thõa mãn yêu cầu từ ban đầu. Vậy option này sẽ được chọn? Giải pháp đưa ra là ta có thể để hỏi khách hang quyết định or là thêm 1 error message như trường hợp trước. Bắt buộc chọn 1 trong 2 lựa chọn mới được đi tiếp.
  9. Giả sử khi chọn giải pháp là error message thì ta sẽ có 1 bảng decision như sau
  10. Giả sử khi chọn giải pháp là error message thì ta sẽ có 1 bảng decision như sau