SlideShare a Scribd company logo
3
Most read
4
Most read
6
Most read
Pairwise	
  Tes*ng	
  
	
  
	
  
Strategic	
  Test	
  Case	
  Design	
  
www.xboso6.com
•  XBOSo&	
  
–  Quality	
  and	
  Tes4ng	
  Process	
  Improvement	
  and	
  So&ware	
  
Tes4ng	
  Experts	
  
–  San	
  Francisco,	
  Beijing,	
  Oslo,	
  Amsterdam	
  
Pairwise	
  Tes*ng	
  
The	
  Problem:	
  
•  Many	
  defects	
  only	
  occur	
  when	
  a	
  combina4on	
  of	
  inputs	
  or	
  
events	
  occur	
  that	
  interact	
  with	
  each	
  other.	
  
•  But	
  to	
  test	
  every	
  combina4on	
  or	
  permuta4on	
  is	
  impossible.	
  
The	
  Solu4on:	
  
•  Pairwise	
  tes4ng	
  normally	
  begins	
  by	
  selec4ng	
  values	
  for	
  the	
  
system’s	
  input	
  variables.	
  	
  
•  These	
  individual	
  values	
  are	
  o&en	
  selected	
  using	
  domain	
  
equivalence	
  par44oning.	
  	
  	
  
•  The	
  values	
  are	
  then	
  permuted	
  to	
  achieve	
  coverage	
  of	
  all	
  the	
  
pairings.	
  
3	
  
Pairwise	
  Tes*ng	
  
•  The	
  reasoning	
  behind	
  all-­‐pairs	
  tes4ng:	
  the	
  simplest	
  bugs	
  in	
  a	
  
program	
  are	
  generally	
  triggered	
  by	
  a	
  single	
  input	
  parameter.	
  	
  
•  The	
  next	
  simplest	
  category	
  of	
  bugs	
  consists	
  of	
  those	
  
dependent	
  on	
  interac4ons	
  between	
  pairs	
  of	
  parameters,	
  
which	
  can	
  be	
  caught	
  with	
  all-­‐pairs	
  tes4ng.	
  	
  
•  Bugs	
  involving	
  interac4ons	
  between	
  three	
  or	
  more	
  
parameters	
  are	
  progressively	
  less	
  common,	
  while	
  at	
  the	
  same	
  
4me	
  being	
  progressively	
  more	
  expensive	
  to	
  find	
  by	
  exhaus4ve	
  
tes4ng,	
  which	
  has	
  as	
  its	
  limit	
  the	
  exhaus4ve	
  tes4ng	
  of	
  all	
  
possible	
  inputs.	
  
4	
  
Pairwise	
  Tes*ng	
  
Problem:	
  Test	
  System	
  S	
  
Inputs	
  
	
  X	
  =	
  A,B	
  
	
  Y	
  =	
  C,D	
  
	
  Z	
  =	
  E,F	
  
	
  
	
  
There	
  are	
  23	
  =	
  8	
  possible	
  combina4ons	
  
5	
  
System S
X Y Z
Pairwise	
  Tes*ng	
  
6	
  
8 Test Cases
You can get rid of Test Case 2 (T2)
•  {A, -, E} is covered in T1
•  { , -} is covered in T4
•  { -, } is covered in T6
Problem:
•  How many test cases can you get rid of?
•  List the Test cases you would keep.
•  Time yourself.
Test	
  ID	
   X	
   Y	
   Z	
  
T1	
   A	
   C	
   E	
  
T2	
   A	
   D	
   E	
  
T3	
   A	
   C	
   F	
  
T4	
   A	
   D	
   F	
  
T5	
   B	
   C	
   E	
  
T6	
   B	
   D	
   E	
  
T7	
   B	
   C	
   F	
  
T8	
   B	
   D	
   F	
  
A, D
D, E
Pairwise	
  Tes*ng	
  
Test	
  ID	
   X	
   Y	
   Z	
  
T1	
   A	
   C	
   E	
  
T2	
   A	
   D	
   E	
  
T3	
   A	
   C	
   F	
  
T4	
   A	
   D	
   F	
  
T5	
   B	
   C	
   E	
  
T6	
   B	
   D	
   E	
  
T7	
   B	
   C	
   F	
  
T8	
   B	
   D	
   F	
  
7	
  
Test	
  ID	
   X	
   Y	
   Z	
  
T1	
   A	
   C	
   E	
  
T4	
   A	
   D	
   F	
  
T6	
   B	
   D	
   E	
  
T7	
   B	
   C	
   F	
  
8 Test Cases Pairwise testing
4 Test Cases
Example	
  
8	
  
How many combinations are there for twelve inputs?
- Hexawise.com
Pairwise	
  Tes*ng	
  
	
  	
  	
  
9	
  
- Hexawise.com
Pairwise	
  Tes*ng	
  
	
  	
  	
  
10	
  
- Hexawise.com
Pairwise	
  Tes*ng	
  
	
  	
  	
  
11	
  
Pairwise	
  Tes*ng	
  Tools	
  
To	
  generate	
  the	
  20	
  test	
  cases	
  in	
  the	
  previous	
  slide	
  from	
  the	
  
possible	
  3.7M	
  test	
  cases	
  would	
  be	
  extremely	
  4me	
  consuming.	
  	
  
	
  
Just	
  a	
  few	
  of	
  the	
  many	
  SW	
  tools	
  to	
  generate	
  the	
  tes4ng	
  pairs.	
  
•  Hexawise	
  
•  AllPairs	
  by	
  James	
  Bach,	
  free	
  
•  PICT	
  (Pairwise	
  Independent	
  Combinatorial	
  Tes4ng)	
  tool	
  
•  Automa4c	
  Efficient	
  Test	
  Generator	
  or	
  AETG™	
  
12	
  
Limita*ons	
  of	
  Pairwise	
  Tes*ng	
  
Common	
  tes*ng	
  problems	
  are	
  made	
  worse:	
  
•  Selec*ng	
  the	
  wrong	
  input:	
  The	
  problems	
  of	
  equivalence	
  
par44oning	
  are	
  made	
  worse	
  with	
  a	
  pair	
  of	
  wrong	
  inputs.	
  
•  The	
  ‘Oracle	
  Problem’:	
  Is	
  a	
  defect	
  properly	
  revealed	
  and	
  do	
  we	
  
recognized	
  it	
  when	
  it	
  is	
  revealed?	
  
•  The	
  input	
  values	
  to	
  the	
  system	
  under	
  test	
  are	
  not	
  discrete.	
  	
  
Problems	
  of	
  Pairwise	
  tes*ng:	
  
•  High	
  probability	
  combina4ons	
  get	
  too	
  lihle	
  ahen4on.	
  
•  Not	
  knowing	
  the	
  interdependencies	
  between	
  variables.	
  
13	
  
Pairwise	
  Tes*ng	
  
Works	
  well	
  when:	
  
•  Number	
  of	
  possible	
  parameter	
  values	
  is	
  large	
  	
  
•  You	
  can	
  effec4vely	
  separate	
  parameter	
  values	
  
into	
  equivalence	
  classes.	
  	
  
14	
  
Pairwise	
  Tes*ng:	
  Cau*on	
  
•  Pairwise	
  tes4ng	
  is	
  a	
  tool,	
  it	
  cannot	
  replace	
  a	
  skilled	
  
experienced	
  tester.	
  
•  As	
  a	
  tool,	
  it	
  is	
  effec4ve	
  only	
  as	
  much	
  as	
  the	
  tester	
  is	
  effec4ve.	
  
•  Responsibility	
  for	
  good	
  tes4ng	
  remains	
  with	
  the	
  tester,	
  not	
  
the	
  tool.	
  
15	
  
Pairwise	
  Tes*ng	
  
Conclusion:	
  
	
  
•  When	
  used	
  properly,	
  pairwise	
  test	
  set	
  genera4on	
  is	
  an	
  
important	
  technique	
  that	
  can	
  help	
  you	
  produce	
  beher	
  
so&ware	
  systems.	
  
16	
  

More Related Content

PDF
Pairwise testing
PDF
Test Automation
PPTX
Unit Testing
PPTX
Test-Driven Development
PDF
How to Automate API Testing
PPTX
A Top Down Approach to End-to-End Testing
PPTX
Types of performance testing
PDF
Postman: An Introduction for Testers
Pairwise testing
Test Automation
Unit Testing
Test-Driven Development
How to Automate API Testing
A Top Down Approach to End-to-End Testing
Types of performance testing
Postman: An Introduction for Testers

What's hot (20)

PPT
Software Testing Process
PPTX
Unit tests & TDD
PDF
4 Major Advantages of API Testing
DOCX
Interview questions
PPTX
Unit Testing Concepts and Best Practices
PDF
Playwright: A New Test Automation Framework for the Modern Web
PPTX
Automation test framework with cucumber – BDD
PPT
Testing fundamentals
PDF
Unit Testing in Angular
PDF
Introduction to pairwise testing
PDF
An Introduction To Automated API Testing
PDF
What are Software Testing Methodologies | Software Testing Techniques | Edureka
PPTX
Api testing
PDF
Combinatorial software test design beyond pairwise testing
PPTX
Api Testing
PPS
Final Automation Testing
PDF
API Testing: The heart of functional testing" with Bj Rollison
PDF
Patterns of a “good” test automation framework
PPTX
POSTMAN.pptx
DOC
Manual testing interview question by INFOTECH
Software Testing Process
Unit tests & TDD
4 Major Advantages of API Testing
Interview questions
Unit Testing Concepts and Best Practices
Playwright: A New Test Automation Framework for the Modern Web
Automation test framework with cucumber – BDD
Testing fundamentals
Unit Testing in Angular
Introduction to pairwise testing
An Introduction To Automated API Testing
What are Software Testing Methodologies | Software Testing Techniques | Edureka
Api testing
Combinatorial software test design beyond pairwise testing
Api Testing
Final Automation Testing
API Testing: The heart of functional testing" with Bj Rollison
Patterns of a “good” test automation framework
POSTMAN.pptx
Manual testing interview question by INFOTECH
Ad

Viewers also liked (14)

DOC
All Pairs Testing Technique
PPTX
Reducing Test Case Bloat2 1
PDF
Efficient And Effective Test Design
PPT
Test case design
PDF
QAI QUEST 2016 Webinar Series: Pairwise Testing w/ Philip Lew
PDF
Pairwise Coverage-based Testing with Selected Elements in a Query for Databas...
PPT
testing strategies and tactics
PPTX
Storyboard data combination_test
PPTX
Разработка тест кейсов по методике pair wise
DOC
software testing strategies
PPS
Testing techniques
PPT
Design Test Case Technique (Equivalence partitioning And Boundary value analy...
PDF
Software testing methods, levels and types
PPTX
Pairwise testing sagar_hadawale
All Pairs Testing Technique
Reducing Test Case Bloat2 1
Efficient And Effective Test Design
Test case design
QAI QUEST 2016 Webinar Series: Pairwise Testing w/ Philip Lew
Pairwise Coverage-based Testing with Selected Elements in a Query for Databas...
testing strategies and tactics
Storyboard data combination_test
Разработка тест кейсов по методике pair wise
software testing strategies
Testing techniques
Design Test Case Technique (Equivalence partitioning And Boundary value analy...
Software testing methods, levels and types
Pairwise testing sagar_hadawale
Ad

Similar to Pairwise testing - Strategic test case design (20)

PPTX
Agile Testing Cost Reduction using Pairwise Technique
PPT
Stareast2008
PPTX
Combinatorial testing ppt
PDF
Combinatorial testing
PDF
D-Pubb-TestingExperience_Issue_28_2014-12_Berta
PDF
An enhanced pairwise search approach for generating
DOCX
A PARTICLE SWARM OPTIMIZATION TECHNIQUE FOR GENERATING PAIRWISE TEST CASES
PPTX
Pairwise testing basic and how to apply
PDF
2-Way Coverage vs 3-Way Coverage
PDF
Pairwise Software Test Design - What exactly is pairwise coverage? What is 3-...
PPT
Testers Desk Presentation
PDF
Graph Methods for Generating Test Cases with Universal and Existential Constr...
PPT
Steven K Allott - Effective Testing - SoftTest Ireland
PPTX
Pairwise testing technique-Made easy
PDF
black-box-1.pdf
PDF
Berta_Danilo_Pairwise_Graph_v2
PPT
Orthogonal array testing
PPT
AutoTest.ppt
PPT
AutoTest.ppt
PPT
AutoTest.ppt
Agile Testing Cost Reduction using Pairwise Technique
Stareast2008
Combinatorial testing ppt
Combinatorial testing
D-Pubb-TestingExperience_Issue_28_2014-12_Berta
An enhanced pairwise search approach for generating
A PARTICLE SWARM OPTIMIZATION TECHNIQUE FOR GENERATING PAIRWISE TEST CASES
Pairwise testing basic and how to apply
2-Way Coverage vs 3-Way Coverage
Pairwise Software Test Design - What exactly is pairwise coverage? What is 3-...
Testers Desk Presentation
Graph Methods for Generating Test Cases with Universal and Existential Constr...
Steven K Allott - Effective Testing - SoftTest Ireland
Pairwise testing technique-Made easy
black-box-1.pdf
Berta_Danilo_Pairwise_Graph_v2
Orthogonal array testing
AutoTest.ppt
AutoTest.ppt
AutoTest.ppt

More from XBOSoft (20)

PDF
Agile Metrics to Boost Software Quality improvement
PDF
Agile Test Management Using Jira and Zephyr
PDF
AI Based Test Automation Without AI
PDF
What Aircrews Can Teach Software Testing Teams - XBOSoft Webinar w/Peter Varhol
PDF
Agile User Acceptance Testing - Incorporating UAT into Agile
PDF
Challenges in Using Big Data for Software QA
PDF
Defect Patterns Analysis for Agile and Waterfall - XBOSoft Webinar with Micha...
PDF
Proactive SQA™ Shifting Left w/Proactive Software Quality Practices
PDF
Mobile Testing Challenges and Solutions XBOSoft Webinar
PDF
Heidi Araya - XBOSoft Webinar Guest Speaker - Working with Remote Agile Teams
PDF
XBOSoft webinar - How Did I Miss That Bug - Cognitive Biases in Software Testing
PDF
PSQT Keynote: Quality Challenges in the Internet of Things Era
PDF
7 Habits of Highly Effective Agile Testing - Test Istanbul
PDF
Managing Agile Software Projects With Risk and Uncertainty
PDF
Top IOT Testing Challenges Webinar with Jon Hagar
PDF
Testing in Agile with Coaching Agile Journeys and XBOSoft
PDF
Using JMeter and Google Analytics for Software Performance Testing
PDF
Storytelling: Discover the Big Picture for Agile Efforts Webinar - Tom Cagley...
PDF
ASTQB w/ XBOSoft CEO Phil Lew: Agile and Waterfall - What Do Testers Do Diffe...
PPT
When Agile is a Quality Game Changer Webinar - Michael Mah, Philip Lew
Agile Metrics to Boost Software Quality improvement
Agile Test Management Using Jira and Zephyr
AI Based Test Automation Without AI
What Aircrews Can Teach Software Testing Teams - XBOSoft Webinar w/Peter Varhol
Agile User Acceptance Testing - Incorporating UAT into Agile
Challenges in Using Big Data for Software QA
Defect Patterns Analysis for Agile and Waterfall - XBOSoft Webinar with Micha...
Proactive SQA™ Shifting Left w/Proactive Software Quality Practices
Mobile Testing Challenges and Solutions XBOSoft Webinar
Heidi Araya - XBOSoft Webinar Guest Speaker - Working with Remote Agile Teams
XBOSoft webinar - How Did I Miss That Bug - Cognitive Biases in Software Testing
PSQT Keynote: Quality Challenges in the Internet of Things Era
7 Habits of Highly Effective Agile Testing - Test Istanbul
Managing Agile Software Projects With Risk and Uncertainty
Top IOT Testing Challenges Webinar with Jon Hagar
Testing in Agile with Coaching Agile Journeys and XBOSoft
Using JMeter and Google Analytics for Software Performance Testing
Storytelling: Discover the Big Picture for Agile Efforts Webinar - Tom Cagley...
ASTQB w/ XBOSoft CEO Phil Lew: Agile and Waterfall - What Do Testers Do Diffe...
When Agile is a Quality Game Changer Webinar - Michael Mah, Philip Lew

Recently uploaded (20)

PPTX
A Presentation on Artificial Intelligence
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Encapsulation theory and applications.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
KodekX | Application Modernization Development
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
A Presentation on Artificial Intelligence
Mobile App Security Testing_ A Comprehensive Guide.pdf
cuic standard and advanced reporting.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Encapsulation theory and applications.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Chapter 3 Spatial Domain Image Processing.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Digital-Transformation-Roadmap-for-Companies.pptx
KodekX | Application Modernization Development
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Understanding_Digital_Forensics_Presentation.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Building Integrated photovoltaic BIPV_UPV.pdf
Big Data Technologies - Introduction.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Diabetes mellitus diagnosis method based random forest with bat algorithm
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf

Pairwise testing - Strategic test case design

  • 1. Pairwise  Tes*ng       Strategic  Test  Case  Design   www.xboso6.com
  • 2. •  XBOSo&   –  Quality  and  Tes4ng  Process  Improvement  and  So&ware   Tes4ng  Experts   –  San  Francisco,  Beijing,  Oslo,  Amsterdam  
  • 3. Pairwise  Tes*ng   The  Problem:   •  Many  defects  only  occur  when  a  combina4on  of  inputs  or   events  occur  that  interact  with  each  other.   •  But  to  test  every  combina4on  or  permuta4on  is  impossible.   The  Solu4on:   •  Pairwise  tes4ng  normally  begins  by  selec4ng  values  for  the   system’s  input  variables.     •  These  individual  values  are  o&en  selected  using  domain   equivalence  par44oning.       •  The  values  are  then  permuted  to  achieve  coverage  of  all  the   pairings.   3  
  • 4. Pairwise  Tes*ng   •  The  reasoning  behind  all-­‐pairs  tes4ng:  the  simplest  bugs  in  a   program  are  generally  triggered  by  a  single  input  parameter.     •  The  next  simplest  category  of  bugs  consists  of  those   dependent  on  interac4ons  between  pairs  of  parameters,   which  can  be  caught  with  all-­‐pairs  tes4ng.     •  Bugs  involving  interac4ons  between  three  or  more   parameters  are  progressively  less  common,  while  at  the  same   4me  being  progressively  more  expensive  to  find  by  exhaus4ve   tes4ng,  which  has  as  its  limit  the  exhaus4ve  tes4ng  of  all   possible  inputs.   4  
  • 5. Pairwise  Tes*ng   Problem:  Test  System  S   Inputs    X  =  A,B    Y  =  C,D    Z  =  E,F       There  are  23  =  8  possible  combina4ons   5   System S X Y Z
  • 6. Pairwise  Tes*ng   6   8 Test Cases You can get rid of Test Case 2 (T2) •  {A, -, E} is covered in T1 •  { , -} is covered in T4 •  { -, } is covered in T6 Problem: •  How many test cases can you get rid of? •  List the Test cases you would keep. •  Time yourself. Test  ID   X   Y   Z   T1   A   C   E   T2   A   D   E   T3   A   C   F   T4   A   D   F   T5   B   C   E   T6   B   D   E   T7   B   C   F   T8   B   D   F   A, D D, E
  • 7. Pairwise  Tes*ng   Test  ID   X   Y   Z   T1   A   C   E   T2   A   D   E   T3   A   C   F   T4   A   D   F   T5   B   C   E   T6   B   D   E   T7   B   C   F   T8   B   D   F   7   Test  ID   X   Y   Z   T1   A   C   E   T4   A   D   F   T6   B   D   E   T7   B   C   F   8 Test Cases Pairwise testing 4 Test Cases
  • 8. Example   8   How many combinations are there for twelve inputs? - Hexawise.com
  • 9. Pairwise  Tes*ng         9   - Hexawise.com
  • 10. Pairwise  Tes*ng         10   - Hexawise.com
  • 11. Pairwise  Tes*ng         11  
  • 12. Pairwise  Tes*ng  Tools   To  generate  the  20  test  cases  in  the  previous  slide  from  the   possible  3.7M  test  cases  would  be  extremely  4me  consuming.       Just  a  few  of  the  many  SW  tools  to  generate  the  tes4ng  pairs.   •  Hexawise   •  AllPairs  by  James  Bach,  free   •  PICT  (Pairwise  Independent  Combinatorial  Tes4ng)  tool   •  Automa4c  Efficient  Test  Generator  or  AETG™   12  
  • 13. Limita*ons  of  Pairwise  Tes*ng   Common  tes*ng  problems  are  made  worse:   •  Selec*ng  the  wrong  input:  The  problems  of  equivalence   par44oning  are  made  worse  with  a  pair  of  wrong  inputs.   •  The  ‘Oracle  Problem’:  Is  a  defect  properly  revealed  and  do  we   recognized  it  when  it  is  revealed?   •  The  input  values  to  the  system  under  test  are  not  discrete.     Problems  of  Pairwise  tes*ng:   •  High  probability  combina4ons  get  too  lihle  ahen4on.   •  Not  knowing  the  interdependencies  between  variables.   13  
  • 14. Pairwise  Tes*ng   Works  well  when:   •  Number  of  possible  parameter  values  is  large     •  You  can  effec4vely  separate  parameter  values   into  equivalence  classes.     14  
  • 15. Pairwise  Tes*ng:  Cau*on   •  Pairwise  tes4ng  is  a  tool,  it  cannot  replace  a  skilled   experienced  tester.   •  As  a  tool,  it  is  effec4ve  only  as  much  as  the  tester  is  effec4ve.   •  Responsibility  for  good  tes4ng  remains  with  the  tester,  not   the  tool.   15  
  • 16. Pairwise  Tes*ng   Conclusion:     •  When  used  properly,  pairwise  test  set  genera4on  is  an   important  technique  that  can  help  you  produce  beher   so&ware  systems.   16