SlideShare a Scribd company logo
1 of 14
Equivalence PartitionsEquivalence Partitions
analysis:analysis:Goals, ExamplesGoals, Examples
Vadym Muliavka
June
2014
Agenda
1.What is equivalence partitioning (EP)?
2.Coals & idea of EP
3. When tests are equivalent?
4.Test case design by EP
5.Equivalence Partitioning Examples
6.Pluses & minuses of EP technique
2/14
Equivalence Partitions analysisEquivalence Partitions analysis
Equivalence partitioning (EP) – A black box
test design technique in which test cases
are designed to execute representatives
from equivalence partitions.
The equivalence partitions are usually derived from the
requirements specification for input attributes that influence the
processing of the test object.
Idea: Dividing the test input data into a range of values and
selecting one input value from each range
3/14
Equivalence Partitions analysisEquivalence Partitions analysis
Equivalence classes
Boundary values
4/14
Input, output
values
Equivalence Partitions analysisEquivalence Partitions analysis
Coals:
• To reduce the number of test cases to a necessary minimum
• To select the right test cases to cover all possible scenarios
(of course not to be absolutely sure);
• Maintaining acceptable test coverage.
Using this technique, the tester should be remembered that:
• Too many equivalence classes increases the likelihood that
multiple tests would be superfluous (excessive);
• Too few equivalence classes increases the likelihood that the
error will be skipped product.
5/14
Equivalence Partitions analysisEquivalence Partitions analysis
Two tests are considered equivalent if:
• They test the same thing (function module, part of the system).
• If one of the test catches an error, the other is also likely to
catch her;
• If one of them does not catch the error, then the other is also
likely will not catch.
6/14
Equivalence Partitions analysisEquivalence Partitions analysis
Test case design by EP proceeds into 2 steps:
• Identify equivalence classes;
• Choose one representative from each equivalence classes;
• Define the test cases.
7/14
Equivalence Partitions analysisEquivalence Partitions analysis
Identify equivalence classes:
• Input, output:
clue from requirement;
• Valid classes: legal input values;
• Invalid classes: illegal or
unacceptable input values;
8/14
Equivalence Partitions analysisEquivalence Partitions analysis
Define the test cases:
• Create a test case for each equivalence class.
• Assign a unique number to each equivalence class
• For valid case: until all valid equivalence classes have been
covered by test case, write a new test case covering as many
uncover valid equivalence classes as possible.
• For invalid case: until all invalid equivalence classes have
been covered by test case, write a new test case that cover one,
and only one, of the uncovered invalid equivalence classes.
9/14
Equivalence Partitions analysisEquivalence Partitions analysis
Example: Requirement for ‘Password’ field from “Add users modal
window” of Admins actions menu: password field can not be shorter than 4
and longer than 28 (including) characters (numeric and alphabetic)
Define and execute the test cases:
1. Password field contain 2 characters – Fail;
2. Password field contain 15 characters – Pass;
3. Password field contain 35 characters – Fail.
10/14
Equivalance classes
2 15 35
< 4 between 4 and 28 >28
invalid valid invalid
Equivalence Partitions analysisEquivalence Partitions analysis
Example: Requirement for ‘Count’ field from “Order page” of Manager:
Count field is numeric field, only integer number (0-255), not Alphabetic
(A - Z), (a-z) and special characters.
Define and execute the test cases:
1. Enter ‘-5’ into ‘Count’ field – Fail
2. Enter ‘50’ into ‘Count’ field– Pass
3. Enter ‘330’ into ‘Count’ field– Fail
4. Enter any word into ‘Count’ field – Fail
5. Enter ‘(!@#$%^&’ into ‘Count’ field – Fail
Equivalance classes Case
less than 0 invalid
beetwen 0 and 255 valid
more than 255 invalid
string invalid
illegal characters invalid
11/14
Equivalence Partitions analysisEquivalence Partitions analysis
Example: In a system designed for postal services' payment: Letters up to
100g are called as ‘light’.Postal rates for sending the light letters up to 10g are
$25. The next 40g should be played by $35. Each next 25g up to 100g should
be played by an extra $10. Partitions should be designed for “grams”.
Equivalance classes: Price
1) 0 – 10g: 25$
2) 11-50g: 35$
3) 51-75g: 45$
4) 76-100g: 55$
5) >100g -
Define and execute the test cases:
Letter has ‘-5’ g – Fail
Letter has ‘6’ g – Pass (25$)
Letter has ‘33’ g – Pass (35$)
Letter has ‘64’ g – Pass (+10$)
Letter has ‘88’ g – Pass (+10$)
Letter has ‘105’ g – Fail
12/14
Equivalence Partitions analysisEquivalence Partitions analysis
Pluses of EP technique:
• reducing the number of tests;
• reduction in testing time;
• improvement structured testing.
Minuses of EP technique:
• if misused technology we risk losing bugs.
Equivalence partitioning is no standalone method to determine
test cases. It has to be supplemented by boundary value analysis.
13/14
Thank you for your attention!
14/14

More Related Content

What's hot

Structural testing
Structural testingStructural testing
Structural testing
Slideshare
 
TESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPTTESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPT
suhasreddy1
 
Test Case Design
Test Case DesignTest Case Design
Test Case Design
acatalin
 
White Box Testing And Control Flow & Loop Testing
White Box Testing And Control Flow & Loop TestingWhite Box Testing And Control Flow & Loop Testing
White Box Testing And Control Flow & Loop Testing
Ankit Mulani
 
Testing concepts ppt
Testing concepts pptTesting concepts ppt
Testing concepts ppt
Rathna Priya
 
Regression testing
Regression testingRegression testing
Regression testing
Mohua Amin
 

What's hot (20)

Black & White Box testing
Black & White Box testingBlack & White Box testing
Black & White Box testing
 
Structural testing
Structural testingStructural testing
Structural testing
 
TESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPTTESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPT
 
Black box and white box testing
Black box and white box testingBlack box and white box testing
Black box and white box testing
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
Introduction to software testing
Introduction to software testingIntroduction to software testing
Introduction to software testing
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
Principles of Software testing
Principles of Software testingPrinciples of Software testing
Principles of Software testing
 
Unit 2 - Test Case Design
Unit 2 - Test Case DesignUnit 2 - Test Case Design
Unit 2 - Test Case Design
 
SOFTWARE TESTING
SOFTWARE TESTINGSOFTWARE TESTING
SOFTWARE TESTING
 
Black box & white-box testing technique
Black box & white-box testing techniqueBlack box & white-box testing technique
Black box & white-box testing technique
 
boundary value analysis and equivalence partition
boundary value analysis and equivalence partitionboundary value analysis and equivalence partition
boundary value analysis and equivalence partition
 
Software testing
Software testing Software testing
Software testing
 
Test Case Design
Test Case DesignTest Case Design
Test Case Design
 
Software Testing Introduction
Software Testing IntroductionSoftware Testing Introduction
Software Testing Introduction
 
White Box Testing And Control Flow & Loop Testing
White Box Testing And Control Flow & Loop TestingWhite Box Testing And Control Flow & Loop Testing
White Box Testing And Control Flow & Loop Testing
 
Types of testing
Types of testingTypes of testing
Types of testing
 
Testing concepts ppt
Testing concepts pptTesting concepts ppt
Testing concepts ppt
 
Regression testing
Regression testingRegression testing
Regression testing
 
Integration testing
Integration testingIntegration testing
Integration testing
 

Viewers also liked

Relations
RelationsRelations
Relations
Gaditek
 
Decision table
Decision tableDecision table
Decision table
DMANIMALA
 
Translation Equivalence of Person Reference found in the Subtitle of Harry Po...
Translation Equivalence of Person Reference found in the Subtitle of Harry Po...Translation Equivalence of Person Reference found in the Subtitle of Harry Po...
Translation Equivalence of Person Reference found in the Subtitle of Harry Po...
Eny Parina
 
Software Configuration Management
Software Configuration ManagementSoftware Configuration Management
Software Configuration Management
elliando dias
 
Equivalency in translation studies
Equivalency in translation studiesEquivalency in translation studies
Equivalency in translation studies
YahyaChoy
 

Viewers also liked (20)

Relations
RelationsRelations
Relations
 
Software configuration items
Software configuration itemsSoftware configuration items
Software configuration items
 
Boundary value analysis and equivalence partitioning
Boundary value analysis and equivalence partitioningBoundary value analysis and equivalence partitioning
Boundary value analysis and equivalence partitioning
 
Black box testing (an introduction to)
Black box testing (an introduction to)Black box testing (an introduction to)
Black box testing (an introduction to)
 
Software Configuration Management
Software Configuration ManagementSoftware Configuration Management
Software Configuration Management
 
Software configuration management
Software configuration managementSoftware configuration management
Software configuration management
 
Black box software testing
Black box software testingBlack box software testing
Black box software testing
 
cohesion
cohesioncohesion
cohesion
 
Decision table
Decision tableDecision table
Decision table
 
The importance of quality software
The importance of quality softwareThe importance of quality software
The importance of quality software
 
Translation Equivalence of Person Reference found in the Subtitle of Harry Po...
Translation Equivalence of Person Reference found in the Subtitle of Harry Po...Translation Equivalence of Person Reference found in the Subtitle of Harry Po...
Translation Equivalence of Person Reference found in the Subtitle of Harry Po...
 
Structural and functional testing
Structural and functional testingStructural and functional testing
Structural and functional testing
 
Boundary and equivalnce systematic test design
Boundary and equivalnce   systematic test designBoundary and equivalnce   systematic test design
Boundary and equivalnce systematic test design
 
Equivalence partitioning
Equivalence partitioningEquivalence partitioning
Equivalence partitioning
 
Code coverage
Code coverageCode coverage
Code coverage
 
Software Configuration Management
Software Configuration ManagementSoftware Configuration Management
Software Configuration Management
 
Aims, goals and objectives
Aims, goals and objectivesAims, goals and objectives
Aims, goals and objectives
 
Software Testing Techniques
Software Testing TechniquesSoftware Testing Techniques
Software Testing Techniques
 
Equivalency in translation studies
Equivalency in translation studiesEquivalency in translation studies
Equivalency in translation studies
 
Ch8.testing
Ch8.testingCh8.testing
Ch8.testing
 

Similar to Equivalence partitions analysis

Testcase design techniques final
Testcase design techniques finalTestcase design techniques final
Testcase design techniques final
shraavank
 
Boundary Value Analysis & Equivalence Partitioning with Examples (1) (2).pptx
Boundary Value Analysis & Equivalence Partitioning with Examples (1) (2).pptxBoundary Value Analysis & Equivalence Partitioning with Examples (1) (2).pptx
Boundary Value Analysis & Equivalence Partitioning with Examples (1) (2).pptx
ANSHIKANIGAMRA201103
 
Software Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box TestingSoftware Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box Testing
Nikita Knysh
 

Similar to Equivalence partitions analysis (20)

Design Test Case Technique (Equivalence partitioning And Boundary value analy...
Design Test Case Technique (Equivalence partitioning And Boundary value analy...Design Test Case Technique (Equivalence partitioning And Boundary value analy...
Design Test Case Technique (Equivalence partitioning And Boundary value analy...
 
black-box-1.pdf
black-box-1.pdfblack-box-1.pdf
black-box-1.pdf
 
SE%200-Testing%20(2).pptx
SE%200-Testing%20(2).pptxSE%200-Testing%20(2).pptx
SE%200-Testing%20(2).pptx
 
Unit testing
Unit testingUnit testing
Unit testing
 
Equivalence-Partition-Testing-Notes-17122022-083818pm.pptx
Equivalence-Partition-Testing-Notes-17122022-083818pm.pptxEquivalence-Partition-Testing-Notes-17122022-083818pm.pptx
Equivalence-Partition-Testing-Notes-17122022-083818pm.pptx
 
Testcase design techniques final
Testcase design techniques finalTestcase design techniques final
Testcase design techniques final
 
Equivalence class testing
Equivalence  class testingEquivalence  class testing
Equivalence class testing
 
ISTQB, ISEB Lecture Notes- 4
ISTQB, ISEB Lecture Notes- 4ISTQB, ISEB Lecture Notes- 4
ISTQB, ISEB Lecture Notes- 4
 
Tester contribution to Testing Effectiveness. An Empirical Research
Tester contribution to Testing Effectiveness. An Empirical ResearchTester contribution to Testing Effectiveness. An Empirical Research
Tester contribution to Testing Effectiveness. An Empirical Research
 
Software Testing - Test Design Techniques
Software Testing - Test Design TechniquesSoftware Testing - Test Design Techniques
Software Testing - Test Design Techniques
 
Boundary Value Analysis & Equivalence Partitioning with Examples (1) (2).pptx
Boundary Value Analysis & Equivalence Partitioning with Examples (1) (2).pptxBoundary Value Analysis & Equivalence Partitioning with Examples (1) (2).pptx
Boundary Value Analysis & Equivalence Partitioning with Examples (1) (2).pptx
 
Testing foundations
Testing foundationsTesting foundations
Testing foundations
 
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]
 
Software Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box TestingSoftware Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box Testing
 
Lec 17.pptx
Lec 17.pptxLec 17.pptx
Lec 17.pptx
 
Black boxtesting
Black boxtestingBlack boxtesting
Black boxtesting
 
Testing
TestingTesting
Testing
 
Testing techniques
Testing techniquesTesting techniques
Testing techniques
 
SE 09 (test design techs).pptx
SE 09 (test design techs).pptxSE 09 (test design techs).pptx
SE 09 (test design techs).pptx
 
Key Test Design Techniques
Key Test Design TechniquesKey Test Design Techniques
Key Test Design Techniques
 

More from Vadym Muliavka

More from Vadym Muliavka (10)

Mykhailo Zarai "Be careful when dealing with C++" at Rivne IT Talks
Mykhailo Zarai "Be careful when dealing with C++" at Rivne IT TalksMykhailo Zarai "Be careful when dealing with C++" at Rivne IT Talks
Mykhailo Zarai "Be careful when dealing with C++" at Rivne IT Talks
 
Roman Valchuk "Introducing to DevOps technologies"
Roman Valchuk "Introducing to DevOps technologies"Roman Valchuk "Introducing to DevOps technologies"
Roman Valchuk "Introducing to DevOps technologies"
 
IT Talks "VR Tips for Engineers and Developers"
IT Talks "VR Tips for Engineers and Developers"IT Talks "VR Tips for Engineers and Developers"
IT Talks "VR Tips for Engineers and Developers"
 
Rivne IT Talks How to programa Quantum Computer?
Rivne IT Talks How to programa Quantum Computer?Rivne IT Talks How to programa Quantum Computer?
Rivne IT Talks How to programa Quantum Computer?
 
IT Talks The approach for solving impossible tasks (dynamic programming)
IT Talks The approach for solving impossible tasks (dynamic programming)IT Talks The approach for solving impossible tasks (dynamic programming)
IT Talks The approach for solving impossible tasks (dynamic programming)
 
IT Talks The c++'s simplest smart pointers in depth
IT Talks The c++'s simplest smart pointers in depthIT Talks The c++'s simplest smart pointers in depth
IT Talks The c++'s simplest smart pointers in depth
 
Bug reporting and tracking
Bug reporting and trackingBug reporting and tracking
Bug reporting and tracking
 
IT Talks Автоматизація тестування з допомогою Selenium
IT Talks Автоматизація тестування з допомогою SeleniumIT Talks Автоматизація тестування з допомогою Selenium
IT Talks Автоматизація тестування з допомогою Selenium
 
IT Talks Тестування та аналіз вимог
IT Talks Тестування та аналіз вимогIT Talks Тестування та аналіз вимог
IT Talks Тестування та аналіз вимог
 
IT Talks QA - якість процесів розробки
IT Talks QA - якість процесів розробкиIT Talks QA - якість процесів розробки
IT Talks QA - якість процесів розробки
 

Recently uploaded

Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 

Recently uploaded (20)

%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 

Equivalence partitions analysis

  • 1. Equivalence PartitionsEquivalence Partitions analysis:analysis:Goals, ExamplesGoals, Examples Vadym Muliavka June 2014
  • 2. Agenda 1.What is equivalence partitioning (EP)? 2.Coals & idea of EP 3. When tests are equivalent? 4.Test case design by EP 5.Equivalence Partitioning Examples 6.Pluses & minuses of EP technique 2/14
  • 3. Equivalence Partitions analysisEquivalence Partitions analysis Equivalence partitioning (EP) – A black box test design technique in which test cases are designed to execute representatives from equivalence partitions. The equivalence partitions are usually derived from the requirements specification for input attributes that influence the processing of the test object. Idea: Dividing the test input data into a range of values and selecting one input value from each range 3/14
  • 4. Equivalence Partitions analysisEquivalence Partitions analysis Equivalence classes Boundary values 4/14 Input, output values
  • 5. Equivalence Partitions analysisEquivalence Partitions analysis Coals: • To reduce the number of test cases to a necessary minimum • To select the right test cases to cover all possible scenarios (of course not to be absolutely sure); • Maintaining acceptable test coverage. Using this technique, the tester should be remembered that: • Too many equivalence classes increases the likelihood that multiple tests would be superfluous (excessive); • Too few equivalence classes increases the likelihood that the error will be skipped product. 5/14
  • 6. Equivalence Partitions analysisEquivalence Partitions analysis Two tests are considered equivalent if: • They test the same thing (function module, part of the system). • If one of the test catches an error, the other is also likely to catch her; • If one of them does not catch the error, then the other is also likely will not catch. 6/14
  • 7. Equivalence Partitions analysisEquivalence Partitions analysis Test case design by EP proceeds into 2 steps: • Identify equivalence classes; • Choose one representative from each equivalence classes; • Define the test cases. 7/14
  • 8. Equivalence Partitions analysisEquivalence Partitions analysis Identify equivalence classes: • Input, output: clue from requirement; • Valid classes: legal input values; • Invalid classes: illegal or unacceptable input values; 8/14
  • 9. Equivalence Partitions analysisEquivalence Partitions analysis Define the test cases: • Create a test case for each equivalence class. • Assign a unique number to each equivalence class • For valid case: until all valid equivalence classes have been covered by test case, write a new test case covering as many uncover valid equivalence classes as possible. • For invalid case: until all invalid equivalence classes have been covered by test case, write a new test case that cover one, and only one, of the uncovered invalid equivalence classes. 9/14
  • 10. Equivalence Partitions analysisEquivalence Partitions analysis Example: Requirement for ‘Password’ field from “Add users modal window” of Admins actions menu: password field can not be shorter than 4 and longer than 28 (including) characters (numeric and alphabetic) Define and execute the test cases: 1. Password field contain 2 characters – Fail; 2. Password field contain 15 characters – Pass; 3. Password field contain 35 characters – Fail. 10/14 Equivalance classes 2 15 35 < 4 between 4 and 28 >28 invalid valid invalid
  • 11. Equivalence Partitions analysisEquivalence Partitions analysis Example: Requirement for ‘Count’ field from “Order page” of Manager: Count field is numeric field, only integer number (0-255), not Alphabetic (A - Z), (a-z) and special characters. Define and execute the test cases: 1. Enter ‘-5’ into ‘Count’ field – Fail 2. Enter ‘50’ into ‘Count’ field– Pass 3. Enter ‘330’ into ‘Count’ field– Fail 4. Enter any word into ‘Count’ field – Fail 5. Enter ‘(!@#$%^&’ into ‘Count’ field – Fail Equivalance classes Case less than 0 invalid beetwen 0 and 255 valid more than 255 invalid string invalid illegal characters invalid 11/14
  • 12. Equivalence Partitions analysisEquivalence Partitions analysis Example: In a system designed for postal services' payment: Letters up to 100g are called as ‘light’.Postal rates for sending the light letters up to 10g are $25. The next 40g should be played by $35. Each next 25g up to 100g should be played by an extra $10. Partitions should be designed for “grams”. Equivalance classes: Price 1) 0 – 10g: 25$ 2) 11-50g: 35$ 3) 51-75g: 45$ 4) 76-100g: 55$ 5) >100g - Define and execute the test cases: Letter has ‘-5’ g – Fail Letter has ‘6’ g – Pass (25$) Letter has ‘33’ g – Pass (35$) Letter has ‘64’ g – Pass (+10$) Letter has ‘88’ g – Pass (+10$) Letter has ‘105’ g – Fail 12/14
  • 13. Equivalence Partitions analysisEquivalence Partitions analysis Pluses of EP technique: • reducing the number of tests; • reduction in testing time; • improvement structured testing. Minuses of EP technique: • if misused technology we risk losing bugs. Equivalence partitioning is no standalone method to determine test cases. It has to be supplemented by boundary value analysis. 13/14
  • 14. Thank you for your attention! 14/14