SlideShare une entreprise Scribd logo
1  sur  21
Software Quality AssuranceBlack Box Seminar: Oana FEIDI Quality Manager – Continental Automotive
Preview the problem … 	very large or infinite number of test scenarios 			+ 	finite amount of time 			= 	impossible to test everything the solution … Software test techniques exist to reduce the number of tests to be run whilst still providing sufficient coverage of the system under test
Overview Black-box testing:  Test cases derived from specifications The focus is not the design, nor the implementation positive testing  	-> testing the implementation against specified conditions negative testing  	-> testing the implementation against unspecified conditions (unspecified  inputs) 	-> stability and robustness of specifications Input Output
Equivalence partition create partitions of the input and output values of the component each partition shall contain a set or range of values, chosen such that all values can reasonably expected to be treated by the component in the same way both valid and invalid values are partitioned in this way For each test case specify: Input to the component Partition exercised The expected outcome of the test case Test completeness criteria: test at least one input/output pair for each equivalence partition Indicates when to stop testing
Equivalence partition Example: f(int month) – want to test this function …, -1, 0, 1, 2, 3, …., 9, 10, 11, 12, 13, 14, …. ______||____________________||__________  	invalid1                                      valid partition	             invalid2 f(int month, intnrdays) – want to test this function 1,  2, 3,  4, 5, 6, 7,  8, 9, 10, 11, 12 ↑   ↑  ↑   ↑  ↑  ↑  ↑   ↑  ↑   ↑    ↑    ↑ 31 28/29  31     30   31    30   31     31    30     31       30        31 Valid partition: [(1, 3, 5, 7, 8, 10, 12; 31), (4, 6, 9, 11; 30), …] Invalid partition: [(1, 2, 3, 5, 7, 8, 10, 12; 30),  …]
Boundary Analysis refinement of equivalence partitioning for which each edge of an equivalence class is a representative element of the class invalid-input elements are found just beyond the ends For each test case specify: the input(s) to the component the partition boundaries exercised The expected outcome of the test case Test completeness criteria: test at least one input/output pair for each equivalence partition and the “borders” between the equivalence partitions
Boundary Analysis Example: f(int month) – want to test this function 		if (month > 0 && month < 13)  				or 		if (month >= 0 && month < 13) …, -1, 0, |1, 2, 3, …., 9, 10, 11, 12|, 13, 14, …. 		|_________________________| valid partition Test: 0, 1, 12, 13
Exercise 1 ,[object Object],[object Object]
State Transition Testing
Exercise 2 ,[object Object],[object Object]
Decision table Decision Table A decision table is a tabular form that presents a set of conditions and their corresponding actions.  Condition Stubs Condition stubs describe the conditions or factors that will affect the decision or policy. They are listed in the upper section of the decision table.  Action Stubs Action stubs describe, in the form of statements, the possible policy actions or decisions. They are listed in the lower section of the decision table.  Rules Rules describe which actions are to be taken under a specific combination of conditions. They are specified by first inserting different combinations of condition attribute values and then putting X's in the appropriate columns of the action section of the table.
Decision Table Methodology
Example A marketing company wishes to construct a decision table to decide how to treat clients according to three characteristics: Gender, City Dweller, and age group: A (under 30), B (between 30 and 60), C (over 60). The company has four products (W, X, Y and Z) to test market.  Product W will appeal to female city dwellers.  Product X will appeal to young females.  Product Y will appeal to Male middle aged shoppers who do not live in cities.  Product Z will appeal to all but older females.
Example 1. Identify Conditions & Values  gender: M, F city dweller: Y, N age group: A, B, C 2. Compute Maximum Number of Rules:  2 x 2 x 3 = 12 3. Identify Possible Actions:  market product W market product X market product Y market product Z
Example 4. Enter All Possible Rules ,[object Object],[object Object]
Conclusions Advantages of Black Box Testing more effective on larger units of code than glass box testing  tester needs no knowledge of implementation, including specific programming languages  tester and programmer are independent of each other  tests are done from a user's point of view  will help to expose any ambiguities or inconsistencies in the specifications  test cases can be designed as soon as the specifications are complete
Conclusions Disadvantages of Black Box Testing only a small number of possible inputs can actually be tested, to test every possible input stream would take nearly forever  without clear and concise specifications, test cases are hard to design  there may be unnecessary repetition of test inputs if the tester is not informed of test cases the programmer has already tried  may leave many program paths untested  cannot be directed toward specific segments of code which may be very complex (and therefore more error prone)  most testing related research has been directed toward glass box testing
THANK YOU!
Blackbox
Blackbox
Blackbox

Contenu connexe

Tendances

Input Space Partitioning
Input Space PartitioningInput Space Partitioning
Input Space Partitioning
Riyad Parvez
 
Test Case Design
Test Case DesignTest Case Design
Test Case Design
acatalin
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
Pragya Rastogi
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
Oksana
 
EquivalencePartition
EquivalencePartitionEquivalencePartition
EquivalencePartition
swornim nepal
 

Tendances (20)

Test design techniques
Test design techniquesTest design techniques
Test design techniques
 
Taguchi design of experiments nov 24 2013
Taguchi design of experiments nov 24 2013Taguchi design of experiments nov 24 2013
Taguchi design of experiments nov 24 2013
 
Software Quality Testing
Software Quality TestingSoftware Quality Testing
Software Quality Testing
 
Input Space Partitioning
Input Space PartitioningInput Space Partitioning
Input Space Partitioning
 
Software Testing Techniques
Software Testing TechniquesSoftware Testing Techniques
Software Testing Techniques
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
 
Cause effect graphing technique
Cause effect graphing techniqueCause effect graphing technique
Cause effect graphing technique
 
Test Case Design
Test Case DesignTest Case Design
Test Case Design
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
 
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...
 
Testing Fundamentals
Testing FundamentalsTesting Fundamentals
Testing Fundamentals
 
Testing
TestingTesting
Testing
 
Boundary and equivalnce systematic test design
Boundary and equivalnce   systematic test designBoundary and equivalnce   systematic test design
Boundary and equivalnce systematic test design
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
Black box testing (an introduction to)
Black box testing (an introduction to)Black box testing (an introduction to)
Black box testing (an introduction to)
 
Tolerance Stackups Using Oracle Crystal Ball
Tolerance Stackups Using Oracle Crystal BallTolerance Stackups Using Oracle Crystal Ball
Tolerance Stackups Using Oracle Crystal Ball
 
Software Testing Techniques
Software Testing TechniquesSoftware Testing Techniques
Software Testing Techniques
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
 
EquivalencePartition
EquivalencePartitionEquivalencePartition
EquivalencePartition
 
Boundary value analysis and equivalence partitioning
Boundary value analysis and equivalence partitioningBoundary value analysis and equivalence partitioning
Boundary value analysis and equivalence partitioning
 

En vedette

ZFConf 2011: Behavior Driven Development в PHP и Zend Framework (Константин К...
ZFConf 2011: Behavior Driven Development в PHP и Zend Framework (Константин К...ZFConf 2011: Behavior Driven Development в PHP и Zend Framework (Константин К...
ZFConf 2011: Behavior Driven Development в PHP и Zend Framework (Константин К...
ZFConf Conference
 
ลักษณะทางสังคม ประชากร ภาษา การปกครองและ Etc.
ลักษณะทางสังคม ประชากร ภาษา การปกครองและ Etc.ลักษณะทางสังคม ประชากร ภาษา การปกครองและ Etc.
ลักษณะทางสังคม ประชากร ภาษา การปกครองและ Etc.
Princess Chulabhorn's College, Chiang Rai Thailand
 
Skmbt 50112081315521 escrito conselleria
Skmbt 50112081315521 escrito conselleriaSkmbt 50112081315521 escrito conselleria
Skmbt 50112081315521 escrito conselleria
oscargaliza
 
שיעור רביעי התעדכנות התמצאות ודואר אלקטרוני
שיעור רביעי   התעדכנות התמצאות ודואר אלקטרונישיעור רביעי   התעדכנות התמצאות ודואר אלקטרוני
שיעור רביעי התעדכנות התמצאות ודואר אלקטרוני
haimkarel
 

En vedette (20)

ทรัพยากรธรรมชาติ
ทรัพยากรธรรมชาติทรัพยากรธรรมชาติ
ทรัพยากรธรรมชาติ
 
The Dynamite of Next Generation (Y) Attack
The Dynamite of Next Generation (Y) AttackThe Dynamite of Next Generation (Y) Attack
The Dynamite of Next Generation (Y) Attack
 
ZFConf 2011: Behavior Driven Development в PHP и Zend Framework (Константин К...
ZFConf 2011: Behavior Driven Development в PHP и Zend Framework (Константин К...ZFConf 2011: Behavior Driven Development в PHP и Zend Framework (Константин К...
ZFConf 2011: Behavior Driven Development в PHP и Zend Framework (Константин К...
 
akku laptops DE, Laptop akku DE, Notebook akku and laptop adapter, Billige el...
akku laptops DE, Laptop akku DE, Notebook akku and laptop adapter, Billige el...akku laptops DE, Laptop akku DE, Notebook akku and laptop adapter, Billige el...
akku laptops DE, Laptop akku DE, Notebook akku and laptop adapter, Billige el...
 
2merchan
2merchan2merchan
2merchan
 
Sentencia it
Sentencia itSentencia it
Sentencia it
 
สภาพทางสังคมและวัฒนธรรมทวีปโรป
สภาพทางสังคมและวัฒนธรรมทวีปโรปสภาพทางสังคมและวัฒนธรรมทวีปโรป
สภาพทางสังคมและวัฒนธรรมทวีปโรป
 
Igualdad ikea
Igualdad ikeaIgualdad ikea
Igualdad ikea
 
Linked data et nettverk!
Linked data   et nettverk!Linked data   et nettverk!
Linked data et nettverk!
 
ลักษณะทางสังคม ประชากร ภาษา การปกครองและ Etc.
ลักษณะทางสังคม ประชากร ภาษา การปกครองและ Etc.ลักษณะทางสังคม ประชากร ภาษา การปกครองและ Etc.
ลักษณะทางสังคม ประชากร ภาษา การปกครองและ Etc.
 
ภูมิศาสตร์ของทวีปยุโรป 2.4
ภูมิศาสตร์ของทวีปยุโรป 2.4ภูมิศาสตร์ของทวีปยุโรป 2.4
ภูมิศาสตร์ของทวีปยุโรป 2.4
 
Digi Conv
Digi ConvDigi Conv
Digi Conv
 
Rule esw print
Rule esw printRule esw print
Rule esw print
 
AR VERB CONJUGATION
AR VERB CONJUGATIONAR VERB CONJUGATION
AR VERB CONJUGATION
 
Skmbt 50112081315521 escrito conselleria
Skmbt 50112081315521 escrito conselleriaSkmbt 50112081315521 escrito conselleria
Skmbt 50112081315521 escrito conselleria
 
การเงิน การธนาคารและการคลัง
การเงิน การธนาคารและการคลังการเงิน การธนาคารและการคลัง
การเงิน การธนาคารและการคลัง
 
อาฟกานิสถาน
อาฟกานิสถานอาฟกานิสถาน
อาฟกานิสถาน
 
กลุ่มก่อการร้ายมุสลิม
กลุ่มก่อการร้ายมุสลิมกลุ่มก่อการร้ายมุสลิม
กลุ่มก่อการร้ายมุสลิม
 
שיעור רביעי התעדכנות התמצאות ודואר אלקטרוני
שיעור רביעי   התעדכנות התמצאות ודואר אלקטרונישיעור רביעי   התעדכנות התמצאות ודואר אלקטרוני
שיעור רביעי התעדכנות התמצאות ודואר אלקטרוני
 
แบบนำเสนอผลงานวิชาการ
แบบนำเสนอผลงานวิชาการแบบนำเสนอผลงานวิชาการ
แบบนำเสนอผลงานวิชาการ
 

Similaire à Blackbox

Unit testing
Unit testingUnit testing
Unit testing
medsherb
 
Testcase training
Testcase trainingTestcase training
Testcase training
medsherb
 
12 functional-system-testing
12 functional-system-testing12 functional-system-testing
12 functional-system-testing
nickynicks76
 

Similaire à Blackbox (20)

Whitebox
WhiteboxWhitebox
Whitebox
 
Lesson 2....PPT 1
Lesson 2....PPT 1Lesson 2....PPT 1
Lesson 2....PPT 1
 
SE%200-Testing%20(2).pptx
SE%200-Testing%20(2).pptxSE%200-Testing%20(2).pptx
SE%200-Testing%20(2).pptx
 
CS8494 SOFTWARE ENGINEERING Unit-4
CS8494 SOFTWARE ENGINEERING Unit-4CS8494 SOFTWARE ENGINEERING Unit-4
CS8494 SOFTWARE ENGINEERING Unit-4
 
SWE-6 TESTING.pptx
SWE-6 TESTING.pptxSWE-6 TESTING.pptx
SWE-6 TESTING.pptx
 
CTFL Module 04
CTFL Module 04CTFL Module 04
CTFL Module 04
 
Test design
Test designTest design
Test design
 
Testing
TestingTesting
Testing
 
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]
 
White box testing
White box testingWhite box testing
White box testing
 
Unit testing
Unit testingUnit testing
Unit testing
 
Testcase training
Testcase trainingTestcase training
Testcase training
 
Testing
TestingTesting
Testing
 
5 black box and grey box testing
5   black box and grey box testing5   black box and grey box testing
5 black box and grey box testing
 
12 functional-system-testing
12 functional-system-testing12 functional-system-testing
12 functional-system-testing
 
prova4
prova4prova4
prova4
 
provalast
provalastprovalast
provalast
 
test3
test3test3
test3
 
test2
test2test2
test2
 
domenica3
domenica3domenica3
domenica3
 

Plus de Oana Feidi

Test management
Test managementTest management
Test management
Oana Feidi
 
Root cause analysis
Root cause analysisRoot cause analysis
Root cause analysis
Oana Feidi
 
Testcase definition
Testcase definitionTestcase definition
Testcase definition
Oana Feidi
 
Whitebox testing
Whitebox testingWhitebox testing
Whitebox testing
Oana Feidi
 
Test techniques
Test techniquesTest techniques
Test techniques
Oana Feidi
 
Reviews checklists
Reviews checklistsReviews checklists
Reviews checklists
Oana Feidi
 
Test management
Test managementTest management
Test management
Oana Feidi
 
Testcase definition
Testcase definitionTestcase definition
Testcase definition
Oana Feidi
 
Reviews checklists
Reviews checklistsReviews checklists
Reviews checklists
Oana Feidi
 
Problematriunghiului
ProblematriunghiuluiProblematriunghiului
Problematriunghiului
Oana Feidi
 
Test Management introduction
Test Management introductionTest Management introduction
Test Management introduction
Oana Feidi
 
Reviews Checklists
Reviews ChecklistsReviews Checklists
Reviews Checklists
Oana Feidi
 

Plus de Oana Feidi (17)

Test management
Test managementTest management
Test management
 
Spice
SpiceSpice
Spice
 
Root cause analysis
Root cause analysisRoot cause analysis
Root cause analysis
 
Testcase definition
Testcase definitionTestcase definition
Testcase definition
 
Whitebox testing
Whitebox testingWhitebox testing
Whitebox testing
 
Test techniques
Test techniquesTest techniques
Test techniques
 
Reviews checklists
Reviews checklistsReviews checklists
Reviews checklists
 
Spice
SpiceSpice
Spice
 
Test management
Test managementTest management
Test management
 
Testcase definition
Testcase definitionTestcase definition
Testcase definition
 
Reviews checklists
Reviews checklistsReviews checklists
Reviews checklists
 
Problematriunghiului
ProblematriunghiuluiProblematriunghiului
Problematriunghiului
 
Spice
SpiceSpice
Spice
 
Test Management introduction
Test Management introductionTest Management introduction
Test Management introduction
 
Testcase
TestcaseTestcase
Testcase
 
Testcase
TestcaseTestcase
Testcase
 
Reviews Checklists
Reviews ChecklistsReviews Checklists
Reviews Checklists
 

Dernier

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Dernier (20)

Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 

Blackbox

  • 1. Software Quality AssuranceBlack Box Seminar: Oana FEIDI Quality Manager – Continental Automotive
  • 2. Preview the problem … very large or infinite number of test scenarios + finite amount of time = impossible to test everything the solution … Software test techniques exist to reduce the number of tests to be run whilst still providing sufficient coverage of the system under test
  • 3. Overview Black-box testing: Test cases derived from specifications The focus is not the design, nor the implementation positive testing -> testing the implementation against specified conditions negative testing -> testing the implementation against unspecified conditions (unspecified inputs) -> stability and robustness of specifications Input Output
  • 4. Equivalence partition create partitions of the input and output values of the component each partition shall contain a set or range of values, chosen such that all values can reasonably expected to be treated by the component in the same way both valid and invalid values are partitioned in this way For each test case specify: Input to the component Partition exercised The expected outcome of the test case Test completeness criteria: test at least one input/output pair for each equivalence partition Indicates when to stop testing
  • 5. Equivalence partition Example: f(int month) – want to test this function …, -1, 0, 1, 2, 3, …., 9, 10, 11, 12, 13, 14, …. ______||____________________||__________ invalid1 valid partition invalid2 f(int month, intnrdays) – want to test this function 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ 31 28/29 31 30 31 30 31 31 30 31 30 31 Valid partition: [(1, 3, 5, 7, 8, 10, 12; 31), (4, 6, 9, 11; 30), …] Invalid partition: [(1, 2, 3, 5, 7, 8, 10, 12; 30), …]
  • 6. Boundary Analysis refinement of equivalence partitioning for which each edge of an equivalence class is a representative element of the class invalid-input elements are found just beyond the ends For each test case specify: the input(s) to the component the partition boundaries exercised The expected outcome of the test case Test completeness criteria: test at least one input/output pair for each equivalence partition and the “borders” between the equivalence partitions
  • 7. Boundary Analysis Example: f(int month) – want to test this function if (month > 0 && month < 13) or if (month >= 0 && month < 13) …, -1, 0, |1, 2, 3, …., 9, 10, 11, 12|, 13, 14, …. |_________________________| valid partition Test: 0, 1, 12, 13
  • 8.
  • 10.
  • 11. Decision table Decision Table A decision table is a tabular form that presents a set of conditions and their corresponding actions. Condition Stubs Condition stubs describe the conditions or factors that will affect the decision or policy. They are listed in the upper section of the decision table. Action Stubs Action stubs describe, in the form of statements, the possible policy actions or decisions. They are listed in the lower section of the decision table. Rules Rules describe which actions are to be taken under a specific combination of conditions. They are specified by first inserting different combinations of condition attribute values and then putting X's in the appropriate columns of the action section of the table.
  • 13. Example A marketing company wishes to construct a decision table to decide how to treat clients according to three characteristics: Gender, City Dweller, and age group: A (under 30), B (between 30 and 60), C (over 60). The company has four products (W, X, Y and Z) to test market. Product W will appeal to female city dwellers. Product X will appeal to young females. Product Y will appeal to Male middle aged shoppers who do not live in cities. Product Z will appeal to all but older females.
  • 14. Example 1. Identify Conditions & Values gender: M, F city dweller: Y, N age group: A, B, C 2. Compute Maximum Number of Rules: 2 x 2 x 3 = 12 3. Identify Possible Actions: market product W market product X market product Y market product Z
  • 15.
  • 16. Conclusions Advantages of Black Box Testing more effective on larger units of code than glass box testing tester needs no knowledge of implementation, including specific programming languages tester and programmer are independent of each other tests are done from a user's point of view will help to expose any ambiguities or inconsistencies in the specifications test cases can be designed as soon as the specifications are complete
  • 17. Conclusions Disadvantages of Black Box Testing only a small number of possible inputs can actually be tested, to test every possible input stream would take nearly forever without clear and concise specifications, test cases are hard to design there may be unnecessary repetition of test inputs if the tester is not informed of test cases the programmer has already tried may leave many program paths untested cannot be directed toward specific segments of code which may be very complex (and therefore more error prone) most testing related research has been directed toward glass box testing