SlideShare a Scribd company logo
1 of 32
Download to read offline
E Pluribus Unum
or
How to use Pairwise Testing
VLADIMIR ARUTIN
What is the purpose of test design techniques ?
Boundary Value Analysis
Equivalence Class Partitioning
Decision Table testing
Cause-Effect Graphing Technique
Error Guessing
Pairwise testing
State transition testing
Use case testing
User story testing
Domain analysis
Syntax testing
Combining technique
Exhaustive Testing
THE MAIN PURPOSE IS
TO ACHIEVE AS MUCH COVERAGE
AS POSSIBLE
USING AS LESS TESTS
AS POSSIBLE
Divide
Et
Impera
Example#1 Online Shop
Combinatorial explosion
You can split all checkboxes
into groups
What if there is a dependency
between сheckboxes?
LOAN TYPE COMMISSION
CASH LOAN 500
CREDIT CARD 1000
4 tests
100% coverage
10 minutes
Example#2 Bank Loan
But Life Isn’t Easy…
LOAN TYPE Limit ROI COMMISSION M Class Outstanding
CASH LOAN 10000 10 500 6 A 1
CREDIT CARD 20000 30 1000 9 B 2
50000 50 12 C 3
100000 18 D 4
120000 24 …
150000 57
190000 58
200000 59
60
How many tests do we need to achieve
minimum coverage?
OUR CUSTOMER FOUND A BUG
If Class is D and Period is 24 months
Bank approves 200 000 loan amount
BUT should REFUSE!
AND WE HAVE 40% OF SUCH CLIENTS
LOAN TYPE Limit ROI COMMISSION M Class Outstanding
CASH LOAN 10000 10 500 6 A 1
CREDIT CARD 20000 30 1000 9 B 2
50000 50 12 C 3
100000 18 D 4
120000 24 …
150000 57
190000 58
200000 59
60
How many tests will be failed?
5760 tests
How many test inputs are needed to
trigger defects in production?
84%
11%
4%
1%
1 input or 2 inputs (pairwise)
3 inputs
4 inputs
5 or 6 inputs
Let’s optimize our data
• Combine them into Equivalence Classes
• Use Boundary Values
LOAN TYPE Limit ROI COMMISSION Y Class Outstanding
CASH LOAN 10000 10 500 <1 A 1
CREDIT CARD 20000 30 1000 1 B 2
190000 50 >1 C 59
200000 D 60
Combine Pairs
OUTSTANDING LIMIT CLASS PERIOD ROI LOAN TYPE COMMISSION
1 10000
1 20000
1 190000
1 200000
2 10000
2 20000
2 190000
2 200000
59 10000
59 20000
59 190000
59 200000
60 10000
60 20000
60 190000
60 200000
Combine Pairs
OUTSTANDING LIMIT CLASS PERIOD ROI LOAN TYPE COMMISSION
1 10000 A
1 20000 B
1 190000 C
1 200000 D
2 10000 B
2 20000 A
2 190000 D
2 200000 C
59 10000 D
59 20000 C
59 190000 A
59 200000 B
60 10000 C
60 20000 D
60 190000 B
60 200000 A
Combine Pairs
OUTSTANDING LIMIT CLASS PERIOD ROI LOAN TYPE COMMISSION
1 10000 A <1
1 20000 B 1
1 190000 C >1
1 200000 D <1
2 10000 B 1
2 20000 A >1
2 190000 D 1
2 200000 C <1
59 10000 D >1
59 20000 C <1
59 190000 A 1
59 200000 B >1
60 10000 C 1
60 20000 D >1
60 190000 B <1
60 200000 A 1
Combine Pairs
OUTSTANDING LIMIT CLASS PERIOD ROI LOAN TYPE COMMISSION
1 10000 A <1 30
1 20000 B 1 50
1 190000 C >1 50
1 200000 D <1 10
2 10000 B 1 10
2 20000 A >1 50
2 190000 D 1 50
2 200000 C <1 10
59 10000 D >1 50
59 20000 C <1 30
59 190000 A 1 10
59 200000 B >1
60 10000 C 1 10
60 20000 D >1 10
60 190000 B <1 30
60 200000 A 1 50
Combine Pairs
OUTSTANDING LIMIT CLASS PERIOD ROI LOAN TYPE COMMISSION
1 10000 A <1 30 CASH LOAN
1 20000 B 1 50 CREDIT CARD
1 190000 C >1 50
1 200000 D <1 10
2 10000 B 1 10 CASH LOAN
2 20000 A >1 50 CREDIT CARD
2 190000 D 1 50 CREDIT CARD
2 200000 C <1 10 CASH LOAN
59 10000 D >1 50 CREDIT CARD
59 20000 C <1 30
59 190000 A 1 10 CASH LOAN
59 200000 B >1 CREDIT CARD
60 10000 C 1 10 CREDIT CARD
60 20000 D >1 10 CASH LOAN
60 190000 B <1 30 CREDIT CARD
60 200000 A 1 50 CASH LOAN
Combine Pairs
OUTSTANDING LIMIT CLASS PERIOD ROI LOAN TYPE COMMISSION
1 10000 A <1 30 CASH LOAN 500
1 20000 B 1 50 CREDIT CARD 1000
1 190000 C >1 50 500
1 200000 D <1 10
2 10000 B 1 10 CASH LOAN 1000
2 20000 A >1 50 CREDIT CARD 500
2 190000 D 1 50 CREDIT CARD 500
2 200000 C <1 10 CASH LOAN 1000
59 10000 D >1 50 CREDIT CARD 1000
59 20000 C <1 30 1000
59 190000 A 1 10 CASH LOAN 1000
59 200000 B >1 CREDIT CARD 500
60 10000 C 1 10 CREDIT CARD 1000
60 20000 D >1 10 CASH LOAN
60 190000 B <1 30 CREDIT CARD 500
60 200000 A 1 50 CASH LOAN 1000
106 pairs, 16 tests, about 30 minutes
OUTSTANDING LIMIT CLASS PERIOD ROI LOAN TYPE COMMISSION
1 10000 A <1 30 CASH LOAN 500
1 20000 B 1 50 CREDIT CARD 1000
1 190000 C >1 50 500
1 200000 D <1 10
2 10000 B 1 10 CASH LOAN 1000
2 20000 A >1 50 CREDIT CARD 500
2 190000 D 1 50 CREDIT CARD 500
2 200000 C <1 10 CASH LOAN 1000
59 10000 D >1 50 CREDIT CARD 1000
59 20000 C <1 30 1000
59 190000 A 1 10 CASH LOAN 1000
59 200000 B >1 CREDIT CARD 500
60 10000 C 1 10 CREDIT CARD 1000
60 20000 D >1 10 CASH LOAN
60 190000 B <1 30 CREDIT CARD 500
60 200000 A 1 50 CASH LOAN 1000
Let’s add some conditions
• IF ROI < 50% THEN LOAN CAN’T BE 200000
• IF CLASS < B THEN PERIOD <1 YEAR
• IF CASH LOAN THEN COMMISSION=1000
OUTSTANDING LIMIT CLASS PERIOD ROI LOAN TYPE COMMISSION
1 10000 A <1 30 CASH LOAN 500
1 20000 B 1 50 CREDIT CARD 1000
1 190000 C >1 50 500
1 200000 D <1 10
2 10000 B 1 10 CASH LOAN 1000
2 20000 A >1 50 CREDIT CARD 500
2 190000 D 1 50 CREDIT CARD 500
2 200000 C <1 10 CASH LOAN 1000
59 10000 D >1 50 CREDIT CARD 1000
59 20000 C <1 30 1000
59 190000 A 1 10 CASH LOAN 1000
59 200000 B >1 CREDIT CARD 500
60 10000 C 1 10 CREDIT CARD 1000
60 20000 D >1 10 CASH LOAN
60 190000 B <1 30 CREDIT CARD 500
60 200000 A 1 50 CASH LOAN 1000
No, God,
please….
USE AVAILABLE TOOLS
Pairwise Independent Combinatorial Testing
(PICT)
NOW MY LIFE WILL
NEVER BE THE
SAME…
REQUIREMENTS
COMPANY: Microsoft, Apple, Samsung, BlackBerry, Xiaomi, Sony
SCREEN: 4.5', 5', 5.2', 5.5', 6', 6.9‘
RESOLUTION: HD, FullHD, 4K
RAM: 2Gb, 3Gb, 4Gb, 6Gb, 8Gb
PROCESSOR MAKE: QS650, MSM8230, QS820, A10, A11
OS: Android, BlackBerry OS, iOS, Windows Phone
NET STANDART: CDMA, GSM, LTE, 3G
STORAGE: 16Gb, 32Gb, 64Gb, 128Gb, 512Gb
Example#3 Mobile Game
REQUIREMENTS
COMPANY: Microsoft, Apple, Samsung, BlackBerry, Xiaomi, Sony
SCREEN: 4.5', 5', 5.2', 5.5', 6', 6.9‘
RESOLUTION: HD, FullHD, 4K
RAM: 2Gb, 3Gb, 4Gb, 6Gb, 8Gb
PROCESSOR MAKE: QS650, MSM8230, QS820, A10, A11
OS: Android, BlackBerry OS, iOS, Windows Phone
NET STANDART: CDMA, GSM, LTE, 3G
STORAGE: 16Gb, 32Gb, 64Gb, 128Gb, 512Gb
Example#3 Mobile Game
(6)
(6)
(3)
(5)
(5)
(4)
(4)
(5)
MINIMUM TEST AMOUNT=6 x 6 x 3 x 5 x 5 x 4 x 4 x 5= 216000
CONDITIONS AND DEPENDENCIES
Can be used: =, <>, >, >=, <, <=, and LIKE
Operator IN The IF, THEN, and ELSE parts of a
predicate may contain multiple terms joined
by logical operators: NOT, AND, and OR.
IF [RAM] in {"2Gb", "3Gb", "4Gb"} OR ([COMPANY] =
"Xiaomi" AND [STORAGE] < "64Gb") THEN [PROCESSOR
MAKE] = "QS650“;
IF [Company] ="Apple" THEN [PROCESSOR
MAKE] IN {"A10", "A11"};
IF[Company] ="Samsung" THEN [SCREEN]= "5'";
Conclusion
• The number of bugs detected by pairwise testing is bigger than
found by checking all values for each parameter.
• Pairwise testing reduces the number of test cases needed
for system checking.
• It accelerates the testing process itself.
• It takes 50 percent less efforts.
Pairwise Testing

More Related Content

Similar to Pairwise Testing

Presenation for angel investors
Presenation for angel investorsPresenation for angel investors
Presenation for angel investorsJessie Brodsky
 
Final plan-25-02-2016.pdf-1077884289
Final plan-25-02-2016.pdf-1077884289Final plan-25-02-2016.pdf-1077884289
Final plan-25-02-2016.pdf-1077884289Sawmik Kirtania
 
Myrecharge ppt
Myrecharge pptMyrecharge ppt
Myrecharge pptJig Modi
 
Under writing (chp 18)
Under writing (chp 18)Under writing (chp 18)
Under writing (chp 18)Arshad Islam
 
ĐỒ ÁN NỀN VÀ MÓNG-ĐHSPKTHCM
ĐỒ ÁN NỀN VÀ MÓNG-ĐHSPKTHCMĐỒ ÁN NỀN VÀ MÓNG-ĐHSPKTHCM
ĐỒ ÁN NỀN VÀ MÓNG-ĐHSPKTHCMtonquockhang
 
Mad(Mobile Advertising ) Card
Mad(Mobile Advertising ) CardMad(Mobile Advertising ) Card
Mad(Mobile Advertising ) Cardmanish kumawat
 
Blue star holidays ppt
Blue star holidays pptBlue star holidays ppt
Blue star holidays pptSonu Sharma
 
You can use a calculator to do numerical calculations. No graphing.docx
You can use a calculator to do numerical calculations. No graphing.docxYou can use a calculator to do numerical calculations. No graphing.docx
You can use a calculator to do numerical calculations. No graphing.docxjeffevans62972
 
Metro Detroit Real Estate Investment
Metro Detroit Real Estate InvestmentMetro Detroit Real Estate Investment
Metro Detroit Real Estate InvestmentKatherine Eago Ph.D.
 
BEST MLM COMPANY IN INDIA TO FULFILL YOUR DREAMS
BEST MLM COMPANY IN INDIA TO FULFILL YOUR DREAMSBEST MLM COMPANY IN INDIA TO FULFILL YOUR DREAMS
BEST MLM COMPANY IN INDIA TO FULFILL YOUR DREAMSRMPRAKESH
 
Ductile Pipes Case Study
Ductile Pipes Case StudyDuctile Pipes Case Study
Ductile Pipes Case StudyDragon Sourcing
 
Mb0045
Mb0045Mb0045
Mb0045pkharb
 
SMU MBA SEM 2 SPRING 2015 SOLVED ASSIGNMENTS
SMU MBA SEM 2 SPRING 2015 SOLVED ASSIGNMENTSSMU MBA SEM 2 SPRING 2015 SOLVED ASSIGNMENTS
SMU MBA SEM 2 SPRING 2015 SOLVED ASSIGNMENTSsolved_assignments
 
Discovering Branching Conditions from Business Process Execution Logs
Discovering Branching Conditions from Business Process Execution LogsDiscovering Branching Conditions from Business Process Execution Logs
Discovering Branching Conditions from Business Process Execution LogsMarlon Dumas
 

Similar to Pairwise Testing (20)

Bp freezy present
Bp freezy presentBp freezy present
Bp freezy present
 
Presenation for angel investors
Presenation for angel investorsPresenation for angel investors
Presenation for angel investors
 
Final plan-25-02-2016.pdf-1077884289
Final plan-25-02-2016.pdf-1077884289Final plan-25-02-2016.pdf-1077884289
Final plan-25-02-2016.pdf-1077884289
 
Myrecharge ppt
Myrecharge pptMyrecharge ppt
Myrecharge ppt
 
Under writing (chp 18)
Under writing (chp 18)Under writing (chp 18)
Under writing (chp 18)
 
ĐỒ ÁN NỀN VÀ MÓNG-ĐHSPKTHCM
ĐỒ ÁN NỀN VÀ MÓNG-ĐHSPKTHCMĐỒ ÁN NỀN VÀ MÓNG-ĐHSPKTHCM
ĐỒ ÁN NỀN VÀ MÓNG-ĐHSPKTHCM
 
Mb0045
Mb0045Mb0045
Mb0045
 
Credit Risk Model Building Steps
Credit Risk Model Building StepsCredit Risk Model Building Steps
Credit Risk Model Building Steps
 
Mad(Mobile Advertising ) Card
Mad(Mobile Advertising ) CardMad(Mobile Advertising ) Card
Mad(Mobile Advertising ) Card
 
Blue star holidays ppt
Blue star holidays pptBlue star holidays ppt
Blue star holidays ppt
 
You can use a calculator to do numerical calculations. No graphing.docx
You can use a calculator to do numerical calculations. No graphing.docxYou can use a calculator to do numerical calculations. No graphing.docx
You can use a calculator to do numerical calculations. No graphing.docx
 
Blue star holidays ppt
Blue star holidays pptBlue star holidays ppt
Blue star holidays ppt
 
Metro Detroit Real Estate Investment
Metro Detroit Real Estate InvestmentMetro Detroit Real Estate Investment
Metro Detroit Real Estate Investment
 
BEST MLM COMPANY IN INDIA TO FULFILL YOUR DREAMS
BEST MLM COMPANY IN INDIA TO FULFILL YOUR DREAMSBEST MLM COMPANY IN INDIA TO FULFILL YOUR DREAMS
BEST MLM COMPANY IN INDIA TO FULFILL YOUR DREAMS
 
Ductile Pipes Case Study
Ductile Pipes Case StudyDuctile Pipes Case Study
Ductile Pipes Case Study
 
Mb0045
Mb0045Mb0045
Mb0045
 
SMU MBA SEM 2 SPRING 2015 SOLVED ASSIGNMENTS
SMU MBA SEM 2 SPRING 2015 SOLVED ASSIGNMENTSSMU MBA SEM 2 SPRING 2015 SOLVED ASSIGNMENTS
SMU MBA SEM 2 SPRING 2015 SOLVED ASSIGNMENTS
 
Part Time Income Gold
Part Time Income GoldPart Time Income Gold
Part Time Income Gold
 
Final Exam 2014 - Financial Model
Final Exam 2014 - Financial ModelFinal Exam 2014 - Financial Model
Final Exam 2014 - Financial Model
 
Discovering Branching Conditions from Business Process Execution Logs
Discovering Branching Conditions from Business Process Execution LogsDiscovering Branching Conditions from Business Process Execution Logs
Discovering Branching Conditions from Business Process Execution Logs
 

More from Vladimir Arutin

SQL INJECTIONS EVERY TESTER NEEDS TO KNOW
SQL INJECTIONS EVERY TESTER NEEDS TO KNOWSQL INJECTIONS EVERY TESTER NEEDS TO KNOW
SQL INJECTIONS EVERY TESTER NEEDS TO KNOWVladimir Arutin
 
The Human Side of Microservices
The Human Side of MicroservicesThe Human Side of Microservices
The Human Side of MicroservicesVladimir Arutin
 
Automation with Tosca Tricentis
Automation with Tosca TricentisAutomation with Tosca Tricentis
Automation with Tosca TricentisVladimir Arutin
 
Экстремальный проектный менеджмент. Набор и управление командой
Экстремальный проектный менеджмент. Набор и управление командойЭкстремальный проектный менеджмент. Набор и управление командой
Экстремальный проектный менеджмент. Набор и управление командойVladimir Arutin
 
Мифы и правда о тестировании ПО
Мифы и правда о тестировании ПОМифы и правда о тестировании ПО
Мифы и правда о тестировании ПОVladimir Arutin
 
Software Testing Metrics
Software Testing MetricsSoftware Testing Metrics
Software Testing MetricsVladimir Arutin
 
Test Management by Vladimir Arutin
Test Management by Vladimir ArutinTest Management by Vladimir Arutin
Test Management by Vladimir ArutinVladimir Arutin
 

More from Vladimir Arutin (8)

SQL INJECTIONS EVERY TESTER NEEDS TO KNOW
SQL INJECTIONS EVERY TESTER NEEDS TO KNOWSQL INJECTIONS EVERY TESTER NEEDS TO KNOW
SQL INJECTIONS EVERY TESTER NEEDS TO KNOW
 
The Human Side of Microservices
The Human Side of MicroservicesThe Human Side of Microservices
The Human Side of Microservices
 
Automation with Tosca Tricentis
Automation with Tosca TricentisAutomation with Tosca Tricentis
Automation with Tosca Tricentis
 
Экстремальный проектный менеджмент. Набор и управление командой
Экстремальный проектный менеджмент. Набор и управление командойЭкстремальный проектный менеджмент. Набор и управление командой
Экстремальный проектный менеджмент. Набор и управление командой
 
Мифы и правда о тестировании ПО
Мифы и правда о тестировании ПОМифы и правда о тестировании ПО
Мифы и правда о тестировании ПО
 
Software Testing Metrics
Software Testing MetricsSoftware Testing Metrics
Software Testing Metrics
 
BDD & Cucumber
BDD & CucumberBDD & Cucumber
BDD & Cucumber
 
Test Management by Vladimir Arutin
Test Management by Vladimir ArutinTest Management by Vladimir Arutin
Test Management by Vladimir Arutin
 

Recently uploaded

VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spaintimesproduction05
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 

Recently uploaded (20)

VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 

Pairwise Testing

  • 1. E Pluribus Unum or How to use Pairwise Testing VLADIMIR ARUTIN
  • 2. What is the purpose of test design techniques ? Boundary Value Analysis Equivalence Class Partitioning Decision Table testing Cause-Effect Graphing Technique Error Guessing Pairwise testing State transition testing Use case testing User story testing Domain analysis Syntax testing Combining technique Exhaustive Testing
  • 3. THE MAIN PURPOSE IS TO ACHIEVE AS MUCH COVERAGE AS POSSIBLE USING AS LESS TESTS AS POSSIBLE
  • 7.
  • 8. You can split all checkboxes into groups
  • 9. What if there is a dependency between сheckboxes?
  • 10. LOAN TYPE COMMISSION CASH LOAN 500 CREDIT CARD 1000 4 tests 100% coverage 10 minutes Example#2 Bank Loan
  • 11. But Life Isn’t Easy… LOAN TYPE Limit ROI COMMISSION M Class Outstanding CASH LOAN 10000 10 500 6 A 1 CREDIT CARD 20000 30 1000 9 B 2 50000 50 12 C 3 100000 18 D 4 120000 24 … 150000 57 190000 58 200000 59 60
  • 12. How many tests do we need to achieve minimum coverage?
  • 13. OUR CUSTOMER FOUND A BUG If Class is D and Period is 24 months Bank approves 200 000 loan amount BUT should REFUSE! AND WE HAVE 40% OF SUCH CLIENTS
  • 14. LOAN TYPE Limit ROI COMMISSION M Class Outstanding CASH LOAN 10000 10 500 6 A 1 CREDIT CARD 20000 30 1000 9 B 2 50000 50 12 C 3 100000 18 D 4 120000 24 … 150000 57 190000 58 200000 59 60 How many tests will be failed? 5760 tests
  • 15. How many test inputs are needed to trigger defects in production? 84% 11% 4% 1% 1 input or 2 inputs (pairwise) 3 inputs 4 inputs 5 or 6 inputs
  • 16. Let’s optimize our data • Combine them into Equivalence Classes • Use Boundary Values LOAN TYPE Limit ROI COMMISSION Y Class Outstanding CASH LOAN 10000 10 500 <1 A 1 CREDIT CARD 20000 30 1000 1 B 2 190000 50 >1 C 59 200000 D 60
  • 17. Combine Pairs OUTSTANDING LIMIT CLASS PERIOD ROI LOAN TYPE COMMISSION 1 10000 1 20000 1 190000 1 200000 2 10000 2 20000 2 190000 2 200000 59 10000 59 20000 59 190000 59 200000 60 10000 60 20000 60 190000 60 200000
  • 18. Combine Pairs OUTSTANDING LIMIT CLASS PERIOD ROI LOAN TYPE COMMISSION 1 10000 A 1 20000 B 1 190000 C 1 200000 D 2 10000 B 2 20000 A 2 190000 D 2 200000 C 59 10000 D 59 20000 C 59 190000 A 59 200000 B 60 10000 C 60 20000 D 60 190000 B 60 200000 A
  • 19. Combine Pairs OUTSTANDING LIMIT CLASS PERIOD ROI LOAN TYPE COMMISSION 1 10000 A <1 1 20000 B 1 1 190000 C >1 1 200000 D <1 2 10000 B 1 2 20000 A >1 2 190000 D 1 2 200000 C <1 59 10000 D >1 59 20000 C <1 59 190000 A 1 59 200000 B >1 60 10000 C 1 60 20000 D >1 60 190000 B <1 60 200000 A 1
  • 20. Combine Pairs OUTSTANDING LIMIT CLASS PERIOD ROI LOAN TYPE COMMISSION 1 10000 A <1 30 1 20000 B 1 50 1 190000 C >1 50 1 200000 D <1 10 2 10000 B 1 10 2 20000 A >1 50 2 190000 D 1 50 2 200000 C <1 10 59 10000 D >1 50 59 20000 C <1 30 59 190000 A 1 10 59 200000 B >1 60 10000 C 1 10 60 20000 D >1 10 60 190000 B <1 30 60 200000 A 1 50
  • 21. Combine Pairs OUTSTANDING LIMIT CLASS PERIOD ROI LOAN TYPE COMMISSION 1 10000 A <1 30 CASH LOAN 1 20000 B 1 50 CREDIT CARD 1 190000 C >1 50 1 200000 D <1 10 2 10000 B 1 10 CASH LOAN 2 20000 A >1 50 CREDIT CARD 2 190000 D 1 50 CREDIT CARD 2 200000 C <1 10 CASH LOAN 59 10000 D >1 50 CREDIT CARD 59 20000 C <1 30 59 190000 A 1 10 CASH LOAN 59 200000 B >1 CREDIT CARD 60 10000 C 1 10 CREDIT CARD 60 20000 D >1 10 CASH LOAN 60 190000 B <1 30 CREDIT CARD 60 200000 A 1 50 CASH LOAN
  • 22. Combine Pairs OUTSTANDING LIMIT CLASS PERIOD ROI LOAN TYPE COMMISSION 1 10000 A <1 30 CASH LOAN 500 1 20000 B 1 50 CREDIT CARD 1000 1 190000 C >1 50 500 1 200000 D <1 10 2 10000 B 1 10 CASH LOAN 1000 2 20000 A >1 50 CREDIT CARD 500 2 190000 D 1 50 CREDIT CARD 500 2 200000 C <1 10 CASH LOAN 1000 59 10000 D >1 50 CREDIT CARD 1000 59 20000 C <1 30 1000 59 190000 A 1 10 CASH LOAN 1000 59 200000 B >1 CREDIT CARD 500 60 10000 C 1 10 CREDIT CARD 1000 60 20000 D >1 10 CASH LOAN 60 190000 B <1 30 CREDIT CARD 500 60 200000 A 1 50 CASH LOAN 1000
  • 23. 106 pairs, 16 tests, about 30 minutes OUTSTANDING LIMIT CLASS PERIOD ROI LOAN TYPE COMMISSION 1 10000 A <1 30 CASH LOAN 500 1 20000 B 1 50 CREDIT CARD 1000 1 190000 C >1 50 500 1 200000 D <1 10 2 10000 B 1 10 CASH LOAN 1000 2 20000 A >1 50 CREDIT CARD 500 2 190000 D 1 50 CREDIT CARD 500 2 200000 C <1 10 CASH LOAN 1000 59 10000 D >1 50 CREDIT CARD 1000 59 20000 C <1 30 1000 59 190000 A 1 10 CASH LOAN 1000 59 200000 B >1 CREDIT CARD 500 60 10000 C 1 10 CREDIT CARD 1000 60 20000 D >1 10 CASH LOAN 60 190000 B <1 30 CREDIT CARD 500 60 200000 A 1 50 CASH LOAN 1000
  • 24. Let’s add some conditions • IF ROI < 50% THEN LOAN CAN’T BE 200000 • IF CLASS < B THEN PERIOD <1 YEAR • IF CASH LOAN THEN COMMISSION=1000 OUTSTANDING LIMIT CLASS PERIOD ROI LOAN TYPE COMMISSION 1 10000 A <1 30 CASH LOAN 500 1 20000 B 1 50 CREDIT CARD 1000 1 190000 C >1 50 500 1 200000 D <1 10 2 10000 B 1 10 CASH LOAN 1000 2 20000 A >1 50 CREDIT CARD 500 2 190000 D 1 50 CREDIT CARD 500 2 200000 C <1 10 CASH LOAN 1000 59 10000 D >1 50 CREDIT CARD 1000 59 20000 C <1 30 1000 59 190000 A 1 10 CASH LOAN 1000 59 200000 B >1 CREDIT CARD 500 60 10000 C 1 10 CREDIT CARD 1000 60 20000 D >1 10 CASH LOAN 60 190000 B <1 30 CREDIT CARD 500 60 200000 A 1 50 CASH LOAN 1000 No, God, please….
  • 26. Pairwise Independent Combinatorial Testing (PICT) NOW MY LIFE WILL NEVER BE THE SAME…
  • 27. REQUIREMENTS COMPANY: Microsoft, Apple, Samsung, BlackBerry, Xiaomi, Sony SCREEN: 4.5', 5', 5.2', 5.5', 6', 6.9‘ RESOLUTION: HD, FullHD, 4K RAM: 2Gb, 3Gb, 4Gb, 6Gb, 8Gb PROCESSOR MAKE: QS650, MSM8230, QS820, A10, A11 OS: Android, BlackBerry OS, iOS, Windows Phone NET STANDART: CDMA, GSM, LTE, 3G STORAGE: 16Gb, 32Gb, 64Gb, 128Gb, 512Gb Example#3 Mobile Game
  • 28. REQUIREMENTS COMPANY: Microsoft, Apple, Samsung, BlackBerry, Xiaomi, Sony SCREEN: 4.5', 5', 5.2', 5.5', 6', 6.9‘ RESOLUTION: HD, FullHD, 4K RAM: 2Gb, 3Gb, 4Gb, 6Gb, 8Gb PROCESSOR MAKE: QS650, MSM8230, QS820, A10, A11 OS: Android, BlackBerry OS, iOS, Windows Phone NET STANDART: CDMA, GSM, LTE, 3G STORAGE: 16Gb, 32Gb, 64Gb, 128Gb, 512Gb Example#3 Mobile Game (6) (6) (3) (5) (5) (4) (4) (5) MINIMUM TEST AMOUNT=6 x 6 x 3 x 5 x 5 x 4 x 4 x 5= 216000
  • 29. CONDITIONS AND DEPENDENCIES Can be used: =, <>, >, >=, <, <=, and LIKE Operator IN The IF, THEN, and ELSE parts of a predicate may contain multiple terms joined by logical operators: NOT, AND, and OR. IF [RAM] in {"2Gb", "3Gb", "4Gb"} OR ([COMPANY] = "Xiaomi" AND [STORAGE] < "64Gb") THEN [PROCESSOR MAKE] = "QS650“; IF [Company] ="Apple" THEN [PROCESSOR MAKE] IN {"A10", "A11"}; IF[Company] ="Samsung" THEN [SCREEN]= "5'";
  • 30.
  • 31. Conclusion • The number of bugs detected by pairwise testing is bigger than found by checking all values for each parameter. • Pairwise testing reduces the number of test cases needed for system checking. • It accelerates the testing process itself. • It takes 50 percent less efforts.