SlideShare a Scribd company logo
19 - 20 August 2016
Bangalore
www.xpconference.in
#XPIndia2016
Pairwise Testing in Agile World
Classic Combinatorial Test case design technique that can be
applied to agile testing to save testing cost & time.
#XPIndia2016
How many combinations does it take to test
this?
#XPIndia2016
Four fundamental challenges of software testing
Source : Cem Kaner
• Complete testing is impossible
• Testers misallocate resources because they fall for the
company’s process myths
• Test groups operate under multiple missions, often
conflicting, rarely articulated
• Test groups often lack skilled programmers, and a vision
of appropriate projects that would keep programming
testers challenged
#XPIndia2016
Complete testing is IMPOSSIBLE (Cem Kaner)
• Test every possible input to every variable
• Test every possible combination of inputs to every
combination of variables
• Test every possible sequence through the program
• Test every hardware / software configuration, including
configurations of servers not under your control
• Test every way in which the user might try to use the
program
#XPIndia2016
Motivation for Pairwise Testing
• Wallace and Kuhn of NIST (National
Institute of Standards & Technology)
determined that 98% of the reported
software defects in recalled medical devices
could have been detected by testing all
pairs of parameter settings.
D.R. Wallace, D.R. Kuhn, “Failure Modes in Medical Device Software: An Analysis
of 15 Years of Recall Data,” Intl. Journal of Reliability, Quality, and Safety
Engineering, vol. 8, no. 4.
#XPIndia2016
Essence of Pairwise Testing
Total Possible Configurations:
4 x 2 x 5 x 3 x 2 x 2 x 4 = 1920
Parameter Name Values No of Values
Age 10, 14, 30, 50 4
Gender Male, Female 2
Certainty Probable, Doubtful, Possible,
Established, Suspected
5
Severity Minor, Moderate, Major 3
Food True, False 2
Ethanol True, False 2
Medication COUMADIN 10 MG ORAL TABS,
ASPIRIN 325 MG ORAL TABS,
STENDRA TABS, ABILIFY TABS
4
#XPIndia2016
Software Failure Analysis
 The simplest bugs in a system are generally
triggered by a single input parameter
E.g., failure occurs if
• pressure < 10 (1-way interaction)
 The next simplest category of bugs consists
of those dependent on interactions
between pairs of parameters
E.g., failure occurs if
• pressure < 10 & volume > 300 (2-way interaction)
#XPIndia2016
Software Failure Analysis
 Bugs involving interactions between 3 or
more parameters are progressively less
common, while at the same time
progressively more expensive
 Most complex failure required 4-way
interaction
#XPIndia2016
Software Failure Analysis – Medical Devices
#XPIndia2016
The Pairwise Technique
Don’t test all combinations. Test all pairs.
 Pairwise testing – an approach to combinatorial testing that
executes a pairwise test data set.
 Pairwise test data set - A set of test cases that covers all
combinations of the selected test data values for every pair of
a system’s input variables.
 Pairwise testing is also known as 2-way testing; other
approaches include 3-way, 4-way, … , n-way.
#XPIndia2016
An Example
X={A, B} Y={C, D} Z={E, F}
There are 2^3 = 8 Combinations
System S
#XPIndia2016
All Combinations (Test Cases)
Test ID X Y Z
T1 A C E
T2 A C F
T3 A D E
T4 A D F
T5 B C E
T6 B C F
T7 B D E
T8 B D F
X={A, B} Y={C, D} Z={E, F}
#XPIndia2016
Pairwise Reductions by hand
You can get rid of test case T2, since
 AC is covered in T1
 CF is covered in T6
 AF is covered in T4
What other test cases can you get rid of?
#XPIndia2016
Pairwise Reductions by hand
Test ID X Y Z
T1 A C E
T4 A D F
T6 B C F
T7 B D E
#XPIndia2016
Pairwise Reductions
Number of
inputs
Number of
selected test
data values
Total Number of
combinations
Size of
pairwise test
set
3 2 8 4
7 2 128 8
13 3 1594323 18
40 3 1.2 x 1019 21
#XPIndia2016
Pairwise Reduction - Tools
#XPIndia2016
TestCover
 Commercial off the shelf tool
 Algorithm based on Bell Labs research
 Mathematically optimal among other tools
 Determines test scenarios/cases based on
input
 Test Factor
 Test Factor Values
 Documented Constraints
 https://testcover.com/sub/index.php
#XPIndia2016
TestCover Example
Test Factor Number of Values Test Factor Values
Operating system 4 XP, Vista, MacOS, Linux
Display resolution 3 Low, medium, high
Connection 4 wi-fi, dsl, cable, lan
Browser 4 IE, Firefox, Opera, Safari
Application 3 App1, App2, App3
Total Configurations = 576
#XPIndia2016
The TestCover Request
Header
Test Factor
Test Factor Values
Partition
#XPIndia2016
The Reduced Pairwise Subset
#XPIndia2016
Another Example – with Constraints
Header
Block
Block
Block
Partition
#XPIndia2016
The Result
#XPIndia2016
Caveat
• Pairwise testing will not be effective if you choose the
wrong input test data values
• We often assume defects can be immediately observed. In
fact, there may be slow internal corruption occurring
• High-use (including defaults) or high-risk combinations
probably don’t get enough attention
Note: These dangers are not exclusive to pairwise testing. They affect all testing
efforts
References
 http://www.pairwise.org
 https://testcover.com/sub/index.php
 http://csrc.nist.gov/groups/SNS/acts/documents/verify07.pdf
 http://www.bcs.org/upload/pdf/lcopeland-070312.pdf

More Related Content

What's hot

Unit testing
Unit testingUnit testing
Unit testing
princezzlove
 
Code Coverage and Test Suite Effectiveness: Empirical Study with Real Bugs in...
Code Coverage and Test Suite Effectiveness: Empirical Study with Real Bugs in...Code Coverage and Test Suite Effectiveness: Empirical Study with Real Bugs in...
Code Coverage and Test Suite Effectiveness: Empirical Study with Real Bugs in...
Pavneet Singh Kochhar
 
Unit and integration Testing
Unit and integration TestingUnit and integration Testing
Unit and integration Testing
David Berliner
 
An Introduction to Unit Testing
An Introduction to Unit TestingAn Introduction to Unit Testing
An Introduction to Unit Testing
Joe Tremblay
 
Presentation slides: "How to get 100% code coverage"
Presentation slides: "How to get 100% code coverage" Presentation slides: "How to get 100% code coverage"
Presentation slides: "How to get 100% code coverage"
Rapita Systems Ltd
 
Tdd - introduction
Tdd - introductionTdd - introduction
Tdd - introduction
Samad Koushan
 
Unit Testing Concepts and Best Practices
Unit Testing Concepts and Best PracticesUnit Testing Concepts and Best Practices
Unit Testing Concepts and Best Practices
Derek Smith
 
Unit Testing And Mocking
Unit Testing And MockingUnit Testing And Mocking
Unit Testing And MockingJoe Wilson
 
Unit tests & TDD
Unit tests & TDDUnit tests & TDD
Unit tests & TDD
Dror Helper
 
Roy Osherove on Unit Testing Good Practices and Horrible Mistakes
Roy Osherove on Unit Testing Good Practices and Horrible MistakesRoy Osherove on Unit Testing Good Practices and Horrible Mistakes
Roy Osherove on Unit Testing Good Practices and Horrible MistakesRoy Osherove
 
Unit Testing
Unit TestingUnit Testing
Unit Testing
François Camus
 
Volodymyr Prymakov and Vlada Benyukh Detailed manual estimation approach for ...
Volodymyr Prymakov and Vlada Benyukh Detailed manual estimation approach for ...Volodymyr Prymakov and Vlada Benyukh Detailed manual estimation approach for ...
Volodymyr Prymakov and Vlada Benyukh Detailed manual estimation approach for ...
Ievgenii Katsan
 
Unit & integration testing
Unit & integration testingUnit & integration testing
Unit & integration testing
Pavlo Hodysh
 
Unit Tests And Automated Testing
Unit Tests And Automated TestingUnit Tests And Automated Testing
Unit Tests And Automated Testing
Lee Englestone
 
Refactoring legacy code driven by tests - ENG
Refactoring legacy code driven by tests - ENGRefactoring legacy code driven by tests - ENG
Refactoring legacy code driven by tests - ENG
Luca Minudel
 
Test driven development and unit testing with examples in C++
Test driven development and unit testing with examples in C++Test driven development and unit testing with examples in C++
Test driven development and unit testing with examples in C++
Hong Le Van
 
Unit testing
Unit testing Unit testing
Unit testing
dubbu
 
Unit testing legacy code
Unit testing legacy codeUnit testing legacy code
Unit testing legacy code
Lars Thorup
 
Code coverage
Code coverageCode coverage
Code coverage
Return on Intelligence
 

What's hot (20)

Unit testing
Unit testingUnit testing
Unit testing
 
Code Coverage and Test Suite Effectiveness: Empirical Study with Real Bugs in...
Code Coverage and Test Suite Effectiveness: Empirical Study with Real Bugs in...Code Coverage and Test Suite Effectiveness: Empirical Study with Real Bugs in...
Code Coverage and Test Suite Effectiveness: Empirical Study with Real Bugs in...
 
Unit and integration Testing
Unit and integration TestingUnit and integration Testing
Unit and integration Testing
 
An Introduction to Unit Testing
An Introduction to Unit TestingAn Introduction to Unit Testing
An Introduction to Unit Testing
 
Presentation slides: "How to get 100% code coverage"
Presentation slides: "How to get 100% code coverage" Presentation slides: "How to get 100% code coverage"
Presentation slides: "How to get 100% code coverage"
 
Tdd - introduction
Tdd - introductionTdd - introduction
Tdd - introduction
 
Unit Testing Concepts and Best Practices
Unit Testing Concepts and Best PracticesUnit Testing Concepts and Best Practices
Unit Testing Concepts and Best Practices
 
Unit Testing And Mocking
Unit Testing And MockingUnit Testing And Mocking
Unit Testing And Mocking
 
Unit tests & TDD
Unit tests & TDDUnit tests & TDD
Unit tests & TDD
 
Roy Osherove on Unit Testing Good Practices and Horrible Mistakes
Roy Osherove on Unit Testing Good Practices and Horrible MistakesRoy Osherove on Unit Testing Good Practices and Horrible Mistakes
Roy Osherove on Unit Testing Good Practices and Horrible Mistakes
 
Unit Testing
Unit TestingUnit Testing
Unit Testing
 
Volodymyr Prymakov and Vlada Benyukh Detailed manual estimation approach for ...
Volodymyr Prymakov and Vlada Benyukh Detailed manual estimation approach for ...Volodymyr Prymakov and Vlada Benyukh Detailed manual estimation approach for ...
Volodymyr Prymakov and Vlada Benyukh Detailed manual estimation approach for ...
 
Unit & integration testing
Unit & integration testingUnit & integration testing
Unit & integration testing
 
Unit Tests And Automated Testing
Unit Tests And Automated TestingUnit Tests And Automated Testing
Unit Tests And Automated Testing
 
Refactoring legacy code driven by tests - ENG
Refactoring legacy code driven by tests - ENGRefactoring legacy code driven by tests - ENG
Refactoring legacy code driven by tests - ENG
 
Review of an open source unit test tool- Cucumber_Presentation
Review of an open source unit test tool- Cucumber_PresentationReview of an open source unit test tool- Cucumber_Presentation
Review of an open source unit test tool- Cucumber_Presentation
 
Test driven development and unit testing with examples in C++
Test driven development and unit testing with examples in C++Test driven development and unit testing with examples in C++
Test driven development and unit testing with examples in C++
 
Unit testing
Unit testing Unit testing
Unit testing
 
Unit testing legacy code
Unit testing legacy codeUnit testing legacy code
Unit testing legacy code
 
Code coverage
Code coverageCode coverage
Code coverage
 

Viewers also liked

Componentize! by Lancer Kind XP Conference 2016
Componentize! by Lancer Kind XP Conference 2016Componentize! by Lancer Kind XP Conference 2016
Componentize! by Lancer Kind XP Conference 2016
XP Conference India
 
File connector
File connectorFile connector
File connector
krishashi
 
Edgar Vibian Marin Montes
Edgar Vibian	Marin  Montes	Edgar Vibian	Marin  Montes
Edgar Vibian Marin Montes
astrydquintero
 
SHOWER FILTER REMOVE CHLORINE
SHOWER FILTER REMOVE CHLORINE SHOWER FILTER REMOVE CHLORINE
SHOWER FILTER REMOVE CHLORINE
AQUAPRO RO SYSTEM UAE
 
the main attractions of Transcarpathia
the main attractions of Transcarpathiathe main attractions of Transcarpathia
the main attractions of Transcarpathia
Natalia Orlyk
 
Second quarter 2016 earnings presentation
Second quarter 2016 earnings presentationSecond quarter 2016 earnings presentation
Second quarter 2016 earnings presentation
investorrelationsdiscover
 
Maria Lorena Gonzalez Jaramillo
Maria Lorena Gonzalez  Jaramillo	Maria Lorena Gonzalez  Jaramillo
Maria Lorena Gonzalez Jaramillo
astrydquintero
 
inSided Core Values
inSided Core ValuesinSided Core Values
inSided Core Values
inSided
 
BNI Testimonials - Anishkaa Gehani
BNI Testimonials   - Anishkaa Gehani BNI Testimonials   - Anishkaa Gehani
BNI Testimonials - Anishkaa Gehani
Anishkaa Gehani
 
Anypoint access management - Roles
Anypoint access management - RolesAnypoint access management - Roles
Anypoint access management - Roles
Shanky Gupta
 
Cw 3 q'16 earnings presentation final
Cw 3 q'16 earnings presentation finalCw 3 q'16 earnings presentation final
Cw 3 q'16 earnings presentation final
q4curtisswright
 
Nervous System Presentation
Nervous System PresentationNervous System Presentation
Nervous System Presentation
jrfisher78
 
Curtiss-Wright First Quarter 2016 Financial Results
Curtiss-Wright First Quarter 2016 Financial ResultsCurtiss-Wright First Quarter 2016 Financial Results
Curtiss-Wright First Quarter 2016 Financial Results
q4curtisswright
 
Cloud hub architecture
Cloud hub architectureCloud hub architecture
Cloud hub architecture
Shanky Gupta
 
"Теоретические и прикладные аспекты трофологии в клинической медицине" Луфт ...
"Теоретические и прикладные аспекты трофологии в клинической медицине"  Луфт ..."Теоретические и прикладные аспекты трофологии в клинической медицине"  Луфт ...
"Теоретические и прикладные аспекты трофологии в клинической медицине" Луфт ...
rnw-aspen
 
Scania interim report january september 2016
Scania interim report january september 2016Scania interim report january september 2016
Scania interim report january september 2016
Scania Group
 
BNI - POWER TEAMS - By Madhup & Anishkaa
BNI -   POWER TEAMS - By Madhup & AnishkaaBNI -   POWER TEAMS - By Madhup & Anishkaa
BNI - POWER TEAMS - By Madhup & Anishkaa
Anishkaa Gehani
 
Scania Interim Report January – June 2016
Scania Interim Report January – June 2016Scania Interim Report January – June 2016
Scania Interim Report January – June 2016
Scania Group
 

Viewers also liked (18)

Componentize! by Lancer Kind XP Conference 2016
Componentize! by Lancer Kind XP Conference 2016Componentize! by Lancer Kind XP Conference 2016
Componentize! by Lancer Kind XP Conference 2016
 
File connector
File connectorFile connector
File connector
 
Edgar Vibian Marin Montes
Edgar Vibian	Marin  Montes	Edgar Vibian	Marin  Montes
Edgar Vibian Marin Montes
 
SHOWER FILTER REMOVE CHLORINE
SHOWER FILTER REMOVE CHLORINE SHOWER FILTER REMOVE CHLORINE
SHOWER FILTER REMOVE CHLORINE
 
the main attractions of Transcarpathia
the main attractions of Transcarpathiathe main attractions of Transcarpathia
the main attractions of Transcarpathia
 
Second quarter 2016 earnings presentation
Second quarter 2016 earnings presentationSecond quarter 2016 earnings presentation
Second quarter 2016 earnings presentation
 
Maria Lorena Gonzalez Jaramillo
Maria Lorena Gonzalez  Jaramillo	Maria Lorena Gonzalez  Jaramillo
Maria Lorena Gonzalez Jaramillo
 
inSided Core Values
inSided Core ValuesinSided Core Values
inSided Core Values
 
BNI Testimonials - Anishkaa Gehani
BNI Testimonials   - Anishkaa Gehani BNI Testimonials   - Anishkaa Gehani
BNI Testimonials - Anishkaa Gehani
 
Anypoint access management - Roles
Anypoint access management - RolesAnypoint access management - Roles
Anypoint access management - Roles
 
Cw 3 q'16 earnings presentation final
Cw 3 q'16 earnings presentation finalCw 3 q'16 earnings presentation final
Cw 3 q'16 earnings presentation final
 
Nervous System Presentation
Nervous System PresentationNervous System Presentation
Nervous System Presentation
 
Curtiss-Wright First Quarter 2016 Financial Results
Curtiss-Wright First Quarter 2016 Financial ResultsCurtiss-Wright First Quarter 2016 Financial Results
Curtiss-Wright First Quarter 2016 Financial Results
 
Cloud hub architecture
Cloud hub architectureCloud hub architecture
Cloud hub architecture
 
"Теоретические и прикладные аспекты трофологии в клинической медицине" Луфт ...
"Теоретические и прикладные аспекты трофологии в клинической медицине"  Луфт ..."Теоретические и прикладные аспекты трофологии в клинической медицине"  Луфт ...
"Теоретические и прикладные аспекты трофологии в клинической медицине" Луфт ...
 
Scania interim report january september 2016
Scania interim report january september 2016Scania interim report january september 2016
Scania interim report january september 2016
 
BNI - POWER TEAMS - By Madhup & Anishkaa
BNI -   POWER TEAMS - By Madhup & AnishkaaBNI -   POWER TEAMS - By Madhup & Anishkaa
BNI - POWER TEAMS - By Madhup & Anishkaa
 
Scania Interim Report January – June 2016
Scania Interim Report January – June 2016Scania Interim Report January – June 2016
Scania Interim Report January – June 2016
 

Similar to Agile Testing Cost Reduction using Pairwise Technique

Software testing foundation
Software testing foundationSoftware testing foundation
Software testing foundation
Anirudh503501
 
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
 
Combinatorial testing
Combinatorial testingCombinatorial testing
Combinatorial testing
Kedar Kumar
 
Combinatorial testing ppt
Combinatorial testing pptCombinatorial testing ppt
Combinatorial testing ppt
Kedar Kumar
 
A beginners guide to testing
A beginners guide to testingA beginners guide to testing
A beginners guide to testingPhilip Johnson
 
Speeding-up Software Testing With Computational Intelligence
Speeding-up Software Testing With Computational IntelligenceSpeeding-up Software Testing With Computational Intelligence
Speeding-up Software Testing With Computational Intelligence
Annibale Panichella
 
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]
Khizra Sammad
 
"Test Design Techniques"
"Test Design Techniques" "Test Design Techniques"
"Test Design Techniques"
HYS Enterprise
 
Pairwise testing
Pairwise testingPairwise testing
Pairwise testing
Kanoah
 
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
 
black-box-1.pdf
black-box-1.pdfblack-box-1.pdf
black-box-1.pdf
SupunLakshan4
 
Coding and testing In Software Engineering
Coding and testing In Software EngineeringCoding and testing In Software Engineering
Coding and testing In Software Engineering
Satya Bhushan Verma
 
Testing
TestingTesting
Testing
Muni Ram
 
Software testing
Software testingSoftware testing
Software testingBala Ganesh
 
Black box testing
Black box testingBlack box testing
Black box testing
Abdul Basit
 
Test design techniques
Test design techniquesTest design techniques
Test design techniquesOksana
 
Testers Desk Presentation
Testers Desk PresentationTesters Desk Presentation
Testers Desk Presentation
Quality Testing
 

Similar to Agile Testing Cost Reduction using Pairwise Technique (20)

Software testing foundation
Software testing foundationSoftware testing foundation
Software testing foundation
 
Orthogonal array approach a case study
Orthogonal array approach   a case studyOrthogonal array approach   a case study
Orthogonal array approach a case study
 
Combinatorial testing
Combinatorial testingCombinatorial testing
Combinatorial testing
 
Combinatorial testing ppt
Combinatorial testing pptCombinatorial testing ppt
Combinatorial testing ppt
 
A beginners guide to testing
A beginners guide to testingA beginners guide to testing
A beginners guide to testing
 
Speeding-up Software Testing With Computational Intelligence
Speeding-up Software Testing With Computational IntelligenceSpeeding-up Software Testing With Computational Intelligence
Speeding-up Software Testing With Computational Intelligence
 
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]
 
"Test Design Techniques"
"Test Design Techniques" "Test Design Techniques"
"Test Design Techniques"
 
Pairwise testing
Pairwise testingPairwise testing
Pairwise testing
 
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
 
black-box-1.pdf
black-box-1.pdfblack-box-1.pdf
black-box-1.pdf
 
Coding and testing In Software Engineering
Coding and testing In Software EngineeringCoding and testing In Software Engineering
Coding and testing In Software Engineering
 
Testing
TestingTesting
Testing
 
Testing
TestingTesting
Testing
 
Software testing
Software testingSoftware testing
Software testing
 
Black box testing
Black box testingBlack box testing
Black box testing
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
 
Testers Desk Presentation
Testers Desk PresentationTesters Desk Presentation
Testers Desk Presentation
 
prova4
prova4prova4
prova4
 
provalast
provalastprovalast
provalast
 

More from XP Conference India

Power of Measurement to Attain True Agility Meetu Arora
Power of Measurement to Attain True Agility Meetu Arora Power of Measurement to Attain True Agility Meetu Arora
Power of Measurement to Attain True Agility Meetu Arora
XP Conference India
 
Devops like lance Armstrong by Yahya Poonawala & Siddharth Kulkarni
Devops like lance Armstrong by Yahya Poonawala & Siddharth Kulkarni    Devops like lance Armstrong by Yahya Poonawala & Siddharth Kulkarni
Devops like lance Armstrong by Yahya Poonawala & Siddharth Kulkarni
XP Conference India
 
Refactoring for software design smells XP Conference 2016 Ganesh Samarthyam...
Refactoring for software design smells  XP Conference 2016  Ganesh Samarthyam...Refactoring for software design smells  XP Conference 2016  Ganesh Samarthyam...
Refactoring for software design smells XP Conference 2016 Ganesh Samarthyam...
XP Conference India
 
Perspectives on Continuous Integration at Scale by Hrishikesh K & Vinaya Mura...
Perspectives on Continuous Integration at Scale by Hrishikesh K & Vinaya Mura...Perspectives on Continuous Integration at Scale by Hrishikesh K & Vinaya Mura...
Perspectives on Continuous Integration at Scale by Hrishikesh K & Vinaya Mura...
XP Conference India
 
Building Big Architectures by Ramit Surana
Building Big Architectures by Ramit SuranaBuilding Big Architectures by Ramit Surana
Building Big Architectures by Ramit Surana
XP Conference India
 
Journey with XP a case study in embedded domain by Pradeep Kumar NR
Journey with XP a case study in embedded domain  by Pradeep Kumar NRJourney with XP a case study in embedded domain  by Pradeep Kumar NR
Journey with XP a case study in embedded domain by Pradeep Kumar NR
XP Conference India
 
Introduction to Docker - Learning containerization XP conference 2016
Introduction to Docker - Learning containerization  XP conference 2016Introduction to Docker - Learning containerization  XP conference 2016
Introduction to Docker - Learning containerization XP conference 2016
XP Conference India
 
Feature Toggle XP Conference 2016 Kalpana Gulati
Feature Toggle  XP Conference 2016 Kalpana GulatiFeature Toggle  XP Conference 2016 Kalpana Gulati
Feature Toggle XP Conference 2016 Kalpana Gulati
XP Conference India
 
Bashing cultural monsters in continuous integration by Vivek Ganesan XP Confe...
Bashing cultural monsters in continuous integration by Vivek Ganesan XP Confe...Bashing cultural monsters in continuous integration by Vivek Ganesan XP Confe...
Bashing cultural monsters in continuous integration by Vivek Ganesan XP Confe...
XP Conference India
 
S.O.L.I.D xp
S.O.L.I.D xpS.O.L.I.D xp
S.O.L.I.D xp
XP Conference India
 
Xp conf-tbd
Xp conf-tbdXp conf-tbd
Xp conf-tbd
XP Conference India
 
Developer 2.0
Developer 2.0  Developer 2.0
Developer 2.0
XP Conference India
 
Play2 Java
Play2 JavaPlay2 Java
Utility of Test Coverage Metrics in TDD
Utility of Test Coverage Metrics in TDDUtility of Test Coverage Metrics in TDD
Utility of Test Coverage Metrics in TDD
XP Conference India
 
Pair Programming in Theory and Practice By Garrick West
Pair Programming in Theory and Practice By Garrick WestPair Programming in Theory and Practice By Garrick West
Pair Programming in Theory and Practice By Garrick West
XP Conference India
 
Common blind spots on the journey to production vijay raghavan aravamudhan
Common blind spots on the journey to production  vijay raghavan aravamudhanCommon blind spots on the journey to production  vijay raghavan aravamudhan
Common blind spots on the journey to production vijay raghavan aravamudhan
XP Conference India
 
Who will test_your_tests_yahya poonawala- priti biyani
Who will test_your_tests_yahya poonawala- priti biyaniWho will test_your_tests_yahya poonawala- priti biyani
Who will test_your_tests_yahya poonawala- priti biyani
XP Conference India
 
Adopting agile in an embedded platform Suryakiran Kasturi & Akhil Kumar
Adopting agile in an embedded platform  Suryakiran Kasturi & Akhil KumarAdopting agile in an embedded platform  Suryakiran Kasturi & Akhil Kumar
Adopting agile in an embedded platform Suryakiran Kasturi & Akhil Kumar
XP Conference India
 
Nightmare to nightly builds Vijay Bandaru
Nightmare to nightly builds   Vijay BandaruNightmare to nightly builds   Vijay Bandaru
Nightmare to nightly builds Vijay Bandaru
XP Conference India
 

More from XP Conference India (19)

Power of Measurement to Attain True Agility Meetu Arora
Power of Measurement to Attain True Agility Meetu Arora Power of Measurement to Attain True Agility Meetu Arora
Power of Measurement to Attain True Agility Meetu Arora
 
Devops like lance Armstrong by Yahya Poonawala & Siddharth Kulkarni
Devops like lance Armstrong by Yahya Poonawala & Siddharth Kulkarni    Devops like lance Armstrong by Yahya Poonawala & Siddharth Kulkarni
Devops like lance Armstrong by Yahya Poonawala & Siddharth Kulkarni
 
Refactoring for software design smells XP Conference 2016 Ganesh Samarthyam...
Refactoring for software design smells  XP Conference 2016  Ganesh Samarthyam...Refactoring for software design smells  XP Conference 2016  Ganesh Samarthyam...
Refactoring for software design smells XP Conference 2016 Ganesh Samarthyam...
 
Perspectives on Continuous Integration at Scale by Hrishikesh K & Vinaya Mura...
Perspectives on Continuous Integration at Scale by Hrishikesh K & Vinaya Mura...Perspectives on Continuous Integration at Scale by Hrishikesh K & Vinaya Mura...
Perspectives on Continuous Integration at Scale by Hrishikesh K & Vinaya Mura...
 
Building Big Architectures by Ramit Surana
Building Big Architectures by Ramit SuranaBuilding Big Architectures by Ramit Surana
Building Big Architectures by Ramit Surana
 
Journey with XP a case study in embedded domain by Pradeep Kumar NR
Journey with XP a case study in embedded domain  by Pradeep Kumar NRJourney with XP a case study in embedded domain  by Pradeep Kumar NR
Journey with XP a case study in embedded domain by Pradeep Kumar NR
 
Introduction to Docker - Learning containerization XP conference 2016
Introduction to Docker - Learning containerization  XP conference 2016Introduction to Docker - Learning containerization  XP conference 2016
Introduction to Docker - Learning containerization XP conference 2016
 
Feature Toggle XP Conference 2016 Kalpana Gulati
Feature Toggle  XP Conference 2016 Kalpana GulatiFeature Toggle  XP Conference 2016 Kalpana Gulati
Feature Toggle XP Conference 2016 Kalpana Gulati
 
Bashing cultural monsters in continuous integration by Vivek Ganesan XP Confe...
Bashing cultural monsters in continuous integration by Vivek Ganesan XP Confe...Bashing cultural monsters in continuous integration by Vivek Ganesan XP Confe...
Bashing cultural monsters in continuous integration by Vivek Ganesan XP Confe...
 
S.O.L.I.D xp
S.O.L.I.D xpS.O.L.I.D xp
S.O.L.I.D xp
 
Xp conf-tbd
Xp conf-tbdXp conf-tbd
Xp conf-tbd
 
Developer 2.0
Developer 2.0  Developer 2.0
Developer 2.0
 
Play2 Java
Play2 JavaPlay2 Java
Play2 Java
 
Utility of Test Coverage Metrics in TDD
Utility of Test Coverage Metrics in TDDUtility of Test Coverage Metrics in TDD
Utility of Test Coverage Metrics in TDD
 
Pair Programming in Theory and Practice By Garrick West
Pair Programming in Theory and Practice By Garrick WestPair Programming in Theory and Practice By Garrick West
Pair Programming in Theory and Practice By Garrick West
 
Common blind spots on the journey to production vijay raghavan aravamudhan
Common blind spots on the journey to production  vijay raghavan aravamudhanCommon blind spots on the journey to production  vijay raghavan aravamudhan
Common blind spots on the journey to production vijay raghavan aravamudhan
 
Who will test_your_tests_yahya poonawala- priti biyani
Who will test_your_tests_yahya poonawala- priti biyaniWho will test_your_tests_yahya poonawala- priti biyani
Who will test_your_tests_yahya poonawala- priti biyani
 
Adopting agile in an embedded platform Suryakiran Kasturi & Akhil Kumar
Adopting agile in an embedded platform  Suryakiran Kasturi & Akhil KumarAdopting agile in an embedded platform  Suryakiran Kasturi & Akhil Kumar
Adopting agile in an embedded platform Suryakiran Kasturi & Akhil Kumar
 
Nightmare to nightly builds Vijay Bandaru
Nightmare to nightly builds   Vijay BandaruNightmare to nightly builds   Vijay Bandaru
Nightmare to nightly builds Vijay Bandaru
 

Recently uploaded

FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 

Recently uploaded (20)

FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 

Agile Testing Cost Reduction using Pairwise Technique

  • 1. 19 - 20 August 2016 Bangalore www.xpconference.in
  • 2. #XPIndia2016 Pairwise Testing in Agile World Classic Combinatorial Test case design technique that can be applied to agile testing to save testing cost & time.
  • 3. #XPIndia2016 How many combinations does it take to test this?
  • 4. #XPIndia2016 Four fundamental challenges of software testing Source : Cem Kaner • Complete testing is impossible • Testers misallocate resources because they fall for the company’s process myths • Test groups operate under multiple missions, often conflicting, rarely articulated • Test groups often lack skilled programmers, and a vision of appropriate projects that would keep programming testers challenged
  • 5. #XPIndia2016 Complete testing is IMPOSSIBLE (Cem Kaner) • Test every possible input to every variable • Test every possible combination of inputs to every combination of variables • Test every possible sequence through the program • Test every hardware / software configuration, including configurations of servers not under your control • Test every way in which the user might try to use the program
  • 6. #XPIndia2016 Motivation for Pairwise Testing • Wallace and Kuhn of NIST (National Institute of Standards & Technology) determined that 98% of the reported software defects in recalled medical devices could have been detected by testing all pairs of parameter settings. D.R. Wallace, D.R. Kuhn, “Failure Modes in Medical Device Software: An Analysis of 15 Years of Recall Data,” Intl. Journal of Reliability, Quality, and Safety Engineering, vol. 8, no. 4.
  • 7. #XPIndia2016 Essence of Pairwise Testing Total Possible Configurations: 4 x 2 x 5 x 3 x 2 x 2 x 4 = 1920 Parameter Name Values No of Values Age 10, 14, 30, 50 4 Gender Male, Female 2 Certainty Probable, Doubtful, Possible, Established, Suspected 5 Severity Minor, Moderate, Major 3 Food True, False 2 Ethanol True, False 2 Medication COUMADIN 10 MG ORAL TABS, ASPIRIN 325 MG ORAL TABS, STENDRA TABS, ABILIFY TABS 4
  • 8. #XPIndia2016 Software Failure Analysis  The simplest bugs in a system are generally triggered by a single input parameter E.g., failure occurs if • pressure < 10 (1-way interaction)  The next simplest category of bugs consists of those dependent on interactions between pairs of parameters E.g., failure occurs if • pressure < 10 & volume > 300 (2-way interaction)
  • 9. #XPIndia2016 Software Failure Analysis  Bugs involving interactions between 3 or more parameters are progressively less common, while at the same time progressively more expensive  Most complex failure required 4-way interaction
  • 11. #XPIndia2016 The Pairwise Technique Don’t test all combinations. Test all pairs.  Pairwise testing – an approach to combinatorial testing that executes a pairwise test data set.  Pairwise test data set - A set of test cases that covers all combinations of the selected test data values for every pair of a system’s input variables.  Pairwise testing is also known as 2-way testing; other approaches include 3-way, 4-way, … , n-way.
  • 12. #XPIndia2016 An Example X={A, B} Y={C, D} Z={E, F} There are 2^3 = 8 Combinations System S
  • 13. #XPIndia2016 All Combinations (Test Cases) Test ID X Y Z T1 A C E T2 A C F T3 A D E T4 A D F T5 B C E T6 B C F T7 B D E T8 B D F X={A, B} Y={C, D} Z={E, F}
  • 14. #XPIndia2016 Pairwise Reductions by hand You can get rid of test case T2, since  AC is covered in T1  CF is covered in T6  AF is covered in T4 What other test cases can you get rid of?
  • 15. #XPIndia2016 Pairwise Reductions by hand Test ID X Y Z T1 A C E T4 A D F T6 B C F T7 B D E
  • 16. #XPIndia2016 Pairwise Reductions Number of inputs Number of selected test data values Total Number of combinations Size of pairwise test set 3 2 8 4 7 2 128 8 13 3 1594323 18 40 3 1.2 x 1019 21
  • 18. #XPIndia2016 TestCover  Commercial off the shelf tool  Algorithm based on Bell Labs research  Mathematically optimal among other tools  Determines test scenarios/cases based on input  Test Factor  Test Factor Values  Documented Constraints  https://testcover.com/sub/index.php
  • 19. #XPIndia2016 TestCover Example Test Factor Number of Values Test Factor Values Operating system 4 XP, Vista, MacOS, Linux Display resolution 3 Low, medium, high Connection 4 wi-fi, dsl, cable, lan Browser 4 IE, Firefox, Opera, Safari Application 3 App1, App2, App3 Total Configurations = 576
  • 20. #XPIndia2016 The TestCover Request Header Test Factor Test Factor Values Partition
  • 22. #XPIndia2016 Another Example – with Constraints Header Block Block Block Partition
  • 24. #XPIndia2016 Caveat • Pairwise testing will not be effective if you choose the wrong input test data values • We often assume defects can be immediately observed. In fact, there may be slow internal corruption occurring • High-use (including defaults) or high-risk combinations probably don’t get enough attention Note: These dangers are not exclusive to pairwise testing. They affect all testing efforts
  • 25. References  http://www.pairwise.org  https://testcover.com/sub/index.php  http://csrc.nist.gov/groups/SNS/acts/documents/verify07.pdf  http://www.bcs.org/upload/pdf/lcopeland-070312.pdf