SlideShare a Scribd company logo
Identification Of Test Cases
Function:
Employ based on age;
Input domain is 16 to 55
> 16 - 18 : consider, part-time
> 19 - 55 : consider, full-time
Identification Of Test Cases
Step 1:
Assign a unique number to each EC
>(EC1) 16 – 18; valid input
>(EC2) younger than 16; invalid input
>(EC3) 19 – 55; valid input
>(EC4) older than 55; invalid input
Function:
Employ based on age;
Input domain is 16 to 55
> 16 - 18 : consider, part-time
> 19 - 55 : consider, full-time
Identification Of Test Cases
Function:
Employ based on age;
Input domain is 16 to 55
> 16 - 18 : consider, part-time
> 19 - 55 : consider, full-time
Step 2:
For each EC with valid input that has not
been covered by test cases yet,
write a new test case covering as many
uncovered ECs as possible
Test Case # Test Value Expected Result EC Being Tested
TC1 17 consider, part-time EC1
TC2 27 consider, full-time EC3
Function:
Employ based on age;
Input domain is 16 to 55
> 16 - 18 : consider, part-time
> 19 - 55 : consider, full-time
Step 3:
For each EC with invalid input that has not
been covered by test cases,
write a new test case that covers one and
only one of the uncovered ECs
Identification Of Test Cases
Test Case # Test Value Expected Result EC Being Tested
TC1 17 consider, part-time EC1
TC2 27 consider, full-time EC3
TC3 14 invalid input EC2
TC4 67 invalid input EC4
Advantages Of Equivalence Class Partitioning
> A small number of test cases are needed to adequately cover a large input domain
> 19 - 55 : consider, full-time
>> any number from 16 – 18 will yield the same result, so we don’t really have to test all of
those numbers, picking one from this EC is enough
> The probability of uncovering defects with the selected test cases based on equivalence
class partitioning is higher than that with a randomly chosen test suite of the same size
> The equivalence class partitioning approach is not restricted to input conditions alone –
the technique may also be used for output domains
Boundary Value Analysis
> The main idea in Boundary Value Analysis (BVA) is to select test data near the boundary of a
data domain so that data both within and outside an equivalence class are selected
> The BVA technique is an extension and refinement of the equivalence class partitioning
technique
> In the BVA technique, the boundary conditions for each of the equivalence class are analyzed
and considered when creating test cases
Guidelines For Boundary Value Analysis
> The equivalence class specifies a range
e.g. 10 – 20; best candidates: 9, 10, 20, 21
If an equivalence class specifies a range of values, then construct test cases by considering the boundary points of the
range and points just beyond the boundaries of the range
> The equivalence class specifies a number of values
If an equivalence class specifies a number of values, then construct test cases for the minimum and the maximum value
of the number
In addition, select a value smaller than the minimum and a value larger than the maximum value.
e.g. 10, 15, 16, 12, 13, 19, 11; best candidates: 10, 19, 9, 20
> The equivalence class specifies an ordered set
If the equivalence class specifies an ordered set, such as a linear list, table, or a sequential file, then focus attention on
the first and last elements of the set.
e.g. 10, 11, 12, 13, 14, 15; best candidates:10, 15, 9, 16
Decision Tables
Function:
Employ based on age;
Input domain is 16 to 55
> 16 - 18 : consider, part-time
> 19 - 55 : consider, full-time
Equivalence Classes:
>(EC1) 16 – 18; valid input
>(EC2) younger than 16; invalid input
>(EC3) 19 – 55; valid input
>(EC4) older than 55; invalid input
> Decision tables can be a source of test cases. They are used in software development and
as well as in software testing
Decision Tables
Step 1:
Identify the causes and effects
Condition Effect
age < 16 invalid input
age >= 16 AND age <= 18 consider, part-time
age >= 19 AND age <= 55 consider, full-time
age > 55 invalid input
Decision Tables
Step 2:
Create the decision tables by plotting the data from the
previous table
Conditions
age < 16 Y
age >= 16 AND age <= 18 Y
age >= 19 AND age <= 55 Y
age > 55 Y
Effects
invalid input Y
consider, part-time Y
consider, full-time Y
invalid input Y
Step 3:
Create test cases
Decision Tables
Conditions
age < 16 Y
age >= 16 AND age <= 18 Y
age >= 19 AND age <= 55 Y
age > 55 Y
Effects
invalid input Y
consider, part-time Y
consider, full-time Y
invalid input Y
Ideas:
> any number less than 16 will output ā€œinvalid inputā€
> any number in range 16 and 18, inclusively, will output ā€œconsider, part-timeā€
> etc…

More Related Content

PPT
Boundary value analysis
PPT
Equivalence partitions analysis
PDF
Agile Testing Alliance Chapter presentation - Equivalence Partition and Bound...
PPTX
Software Testing - Test Design Techniques
PPTX
Equivalence partinioning and boundary value analysis
PPTX
Test design techniques
PDF
Equivalence partitioning
PPTX
EquivalencePartition
Boundary value analysis
Equivalence partitions analysis
Agile Testing Alliance Chapter presentation - Equivalence Partition and Bound...
Software Testing - Test Design Techniques
Equivalence partinioning and boundary value analysis
Test design techniques
Equivalence partitioning
EquivalencePartition

Similar to Functionality Testing [PARTIAL] (20)

PPT
EP & Boundary Questions in QA ISTQB training
PPTX
BlackBox Testing in detail with examples.pptx
PPT
Testcase design techniques final
PDF
Specification Based Test Case Design Techniques
PDF
Black Box Testing.pdf
PDF
SDT Equivalence Classes Testing April 2025
PPTX
05 Software Boundary Value Analysis_Done.pptx
PDF
Chapter 4 - Test Analysis & Design Techniques V4.0
PDF
Intro to Computer Science - Class 7 slide.pdf
PPTX
Equivalence-Partition-Testing-Notes-17122022-083818pm.pptx
PPTX
Boundary Value Analysis & Equivalence Partitioning with Examples (1) (2).pptx
PPTX
SE 09 (test design techs).pptx
PPTX
Black Box Testing
PPT
Dynamic Testing
PPTX
SE%200-Testing%20(2).pptx
DOC
PDF
Testing lab manual Testing lab manual sqa
PPTX
control statements of clangauge (ii unit)
PPT
EP & Boundary Questions in QA ISTQB training
BlackBox Testing in detail with examples.pptx
Testcase design techniques final
Specification Based Test Case Design Techniques
Black Box Testing.pdf
SDT Equivalence Classes Testing April 2025
05 Software Boundary Value Analysis_Done.pptx
Chapter 4 - Test Analysis & Design Techniques V4.0
Intro to Computer Science - Class 7 slide.pdf
Equivalence-Partition-Testing-Notes-17122022-083818pm.pptx
Boundary Value Analysis & Equivalence Partitioning with Examples (1) (2).pptx
SE 09 (test design techs).pptx
Black Box Testing
Dynamic Testing
SE%200-Testing%20(2).pptx
Testing lab manual Testing lab manual sqa
control statements of clangauge (ii unit)
Ad

Recently uploaded (20)

PDF
Optimise Shopper Experiences with a Strong Data Estate.pdf
PDF
Transcultural that can help you someday.
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PPT
Miokarditis (Inflamasi pada Otot Jantung)
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PDF
Lecture1 pattern recognition............
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PDF
Introduction to the R Programming Language
PPTX
Qualitative Qantitative and Mixed Methods.pptx
PPTX
SAP 2 completion done . PRESENTATION.pptx
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
PPTX
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PPTX
climate analysis of Dhaka ,Banglades.pptx
PPTX
Database Infoormation System (DBIS).pptx
PDF
annual-report-2024-2025 original latest.
PPT
Predictive modeling basics in data cleaning process
PPTX
IB Computer Science - Internal Assessment.pptx
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
Optimise Shopper Experiences with a Strong Data Estate.pdf
Transcultural that can help you someday.
IBA_Chapter_11_Slides_Final_Accessible.pptx
Miokarditis (Inflamasi pada Otot Jantung)
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
Lecture1 pattern recognition............
Introduction-to-Cloud-ComputingFinal.pptx
Introduction to the R Programming Language
Qualitative Qantitative and Mixed Methods.pptx
SAP 2 completion done . PRESENTATION.pptx
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
climate analysis of Dhaka ,Banglades.pptx
Database Infoormation System (DBIS).pptx
annual-report-2024-2025 original latest.
Predictive modeling basics in data cleaning process
IB Computer Science - Internal Assessment.pptx
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
Ad

Functionality Testing [PARTIAL]

  • 1. Identification Of Test Cases Function: Employ based on age; Input domain is 16 to 55 > 16 - 18 : consider, part-time > 19 - 55 : consider, full-time
  • 2. Identification Of Test Cases Step 1: Assign a unique number to each EC >(EC1) 16 – 18; valid input >(EC2) younger than 16; invalid input >(EC3) 19 – 55; valid input >(EC4) older than 55; invalid input Function: Employ based on age; Input domain is 16 to 55 > 16 - 18 : consider, part-time > 19 - 55 : consider, full-time
  • 3. Identification Of Test Cases Function: Employ based on age; Input domain is 16 to 55 > 16 - 18 : consider, part-time > 19 - 55 : consider, full-time Step 2: For each EC with valid input that has not been covered by test cases yet, write a new test case covering as many uncovered ECs as possible Test Case # Test Value Expected Result EC Being Tested TC1 17 consider, part-time EC1 TC2 27 consider, full-time EC3
  • 4. Function: Employ based on age; Input domain is 16 to 55 > 16 - 18 : consider, part-time > 19 - 55 : consider, full-time Step 3: For each EC with invalid input that has not been covered by test cases, write a new test case that covers one and only one of the uncovered ECs Identification Of Test Cases Test Case # Test Value Expected Result EC Being Tested TC1 17 consider, part-time EC1 TC2 27 consider, full-time EC3 TC3 14 invalid input EC2 TC4 67 invalid input EC4
  • 5. Advantages Of Equivalence Class Partitioning > A small number of test cases are needed to adequately cover a large input domain > 19 - 55 : consider, full-time >> any number from 16 – 18 will yield the same result, so we don’t really have to test all of those numbers, picking one from this EC is enough > The probability of uncovering defects with the selected test cases based on equivalence class partitioning is higher than that with a randomly chosen test suite of the same size > The equivalence class partitioning approach is not restricted to input conditions alone – the technique may also be used for output domains
  • 6. Boundary Value Analysis > The main idea in Boundary Value Analysis (BVA) is to select test data near the boundary of a data domain so that data both within and outside an equivalence class are selected > The BVA technique is an extension and refinement of the equivalence class partitioning technique > In the BVA technique, the boundary conditions for each of the equivalence class are analyzed and considered when creating test cases
  • 7. Guidelines For Boundary Value Analysis > The equivalence class specifies a range e.g. 10 – 20; best candidates: 9, 10, 20, 21 If an equivalence class specifies a range of values, then construct test cases by considering the boundary points of the range and points just beyond the boundaries of the range > The equivalence class specifies a number of values If an equivalence class specifies a number of values, then construct test cases for the minimum and the maximum value of the number In addition, select a value smaller than the minimum and a value larger than the maximum value. e.g. 10, 15, 16, 12, 13, 19, 11; best candidates: 10, 19, 9, 20 > The equivalence class specifies an ordered set If the equivalence class specifies an ordered set, such as a linear list, table, or a sequential file, then focus attention on the first and last elements of the set. e.g. 10, 11, 12, 13, 14, 15; best candidates:10, 15, 9, 16
  • 8. Decision Tables Function: Employ based on age; Input domain is 16 to 55 > 16 - 18 : consider, part-time > 19 - 55 : consider, full-time Equivalence Classes: >(EC1) 16 – 18; valid input >(EC2) younger than 16; invalid input >(EC3) 19 – 55; valid input >(EC4) older than 55; invalid input > Decision tables can be a source of test cases. They are used in software development and as well as in software testing
  • 9. Decision Tables Step 1: Identify the causes and effects Condition Effect age < 16 invalid input age >= 16 AND age <= 18 consider, part-time age >= 19 AND age <= 55 consider, full-time age > 55 invalid input
  • 10. Decision Tables Step 2: Create the decision tables by plotting the data from the previous table Conditions age < 16 Y age >= 16 AND age <= 18 Y age >= 19 AND age <= 55 Y age > 55 Y Effects invalid input Y consider, part-time Y consider, full-time Y invalid input Y
  • 11. Step 3: Create test cases Decision Tables Conditions age < 16 Y age >= 16 AND age <= 18 Y age >= 19 AND age <= 55 Y age > 55 Y Effects invalid input Y consider, part-time Y consider, full-time Y invalid input Y Ideas: > any number less than 16 will output ā€œinvalid inputā€ > any number in range 16 and 18, inclusively, will output ā€œconsider, part-timeā€ > etc…