SlideShare a Scribd company logo
1 of 6
Download to read offline
1). What is an equivalence partition (also known as an equivalence class)? 
A). A set of test cases for testing classes of objects 
B). An input or output range of values such that only one value in the range becomes a 
test case 
C). An input or output range of values such that each value in the range becomes a test 
case 
D). An input or output range of values such that every tenth value in the range 
becomes a test case 
Answer is #B 
2). Equivalence partitioning is: 
A). A black box testing technique used only by developers 
B). A black box testing technique than can only be used during system testing 
C). A black box testing technique appropriate to all levels of testing 
D). A white box testing technique appropriate for component testing 
Answer is #C 
3). Equivalence partitioning consists of various activities: 
A). Ensure that test cases test each input and output equivalence class at least once 
B). Identify all inputs and all outputs 
C). Identify equivalence classes for each input 
D). All of the above 
Answer is #A 
4). A switch is switched on once the temperature falls below 18 degrees and then it is turned 
off when the temperature is more than 21. Identify the equivalence values for testing the 
switch. 
solution : 
We have to choose values from same class (it can be valid or invalid class). The classes will be as 
follows: 
Class I: less than 18 (switch turned off) 
Class II: 18 to 21 
Class III: above 21 (switch turned on) 
Only in Option ‘22,23,24’ all values are from one class.
5). In an examination a candidate has to score minimum of 24 marks in order to clear the 
exam. The maximum that he can score is 40 marks. Identify the Valid equivalence values if the 
student.. 
solution : 
The classes will be as follows: 
Class I: values < 24 => invalid class 
Class II: 24 to 40 => valid class 
Class III: values > 40 => invalid class 
We have to indentify Valid Equivalence values. Valid Equivalence values will be there in Valid 
Equivalence class. All the values should be in Class II. So answer is '29,30,31' 
6). One of the fields on a form contains a text box which accepts numeric values in the range of 
18 to 25. Define the equivalence classes. 
Solution 
The text box accepts numeric values in the range 18 to 25 (18 and 25 are also part of the class). 
So this class becomes our valid class. But the question is to identify invalid equivalence class. 
The classes will be as follows: 
Class I: values < 18 => invalid class 
Class II: 18 to 25 => valid class 
Class III: values > 25 => invalid class 
17 fall under invalid class. 19, 24 and 21 fall under valid class. So answer is ‘17’ 
7). In a system designed to work out the tax to be paid: An employee has £4000 of salary tax 
free. The next £1500 is taxed at 10%. The next £28000 is taxed at 22%. Any further amount is 
taxed at 40%. Define the equivalence classes. 
Solution 
The classes will be as follows: 
Class I : 0 to £4000 => no tax 
Class II : £4001 to £5500 => 10 % tax 
Class III : £5501 to £33500 => 22 % tax 
Class IV : £33501 and above => 40 % tax 
Select the values which fall in three different equivalence classes. Option ‘d’ has values from 
three different equivalence classes. So answer is ‘£4000; £4200; £5600’.
8). A program validates a numeric field as follows: Values less than 10 are rejected, values 
between 10 and 21 are accepted, values greater than or equal to 22 are rejected. Define the 
equivalence classes. 
Solution 
We have to select values which fall in all the equivalence class (valid and invalid both). The 
classes will be as follows: 
Class I: values <= 9 => invalid class 
Class II: 10 to 21 => valid class 
Class III: values >= 22 => invalid class 
All the values from ‘3,10,22’ fall under all different equivalence class. So answer is 
‘3,10,22’. 
9). Define the equivalence classes and suitable test cases for the following: 
a. ZIP Code—five numeric digits 
b. State—the standard Post Office two-character abbreviation for the states, districts, 
territories, etc. of the United States 
c. Last Name—one through fifteen characters (including alphabetic characters, periods, 
hyphens, apostrophes, spaces, and numbers) 
Solution : 
Examples Of Equivalence Classes 
• ERanges of numbers (such as all numbers between 10 and 99, which are of the 
same two-digits equvalence class) 
• Membership in groups (dates,times country names, etc.) 
• Invalid inputs (placing symbols into text-only fields, etc.) 
• Equivalent output events (variation of inputs that produce the same output) 
• Equivalent operating environments 
• Repetition of activites 
• Number of records in a database (or other equivalent objects) 
• Equivalent sums or other arithmetic results 
• Equivalent numbers of items entered ( such as the number of characters entered 
into a field) 
• Equivalent space (on a page or on a screen)
• Equivalent amounts of memory, disk space, or other resource available to a 
program 
10). Solution :
Equivalence partitioning
Equivalence partitioning

More Related Content

What's hot

Pairwise testing technique-Made easy
Pairwise testing technique-Made easyPairwise testing technique-Made easy
Pairwise testing technique-Made easySamee Ahmed Indikar
 
Srs (Software Requirement Specification Document)
Srs (Software Requirement Specification Document) Srs (Software Requirement Specification Document)
Srs (Software Requirement Specification Document) Fatima Qayyum
 
Automated Testing vs Manual Testing
Automated Testing vs Manual TestingAutomated Testing vs Manual Testing
Automated Testing vs Manual Testingdidev
 
EquivalencePartition
EquivalencePartitionEquivalencePartition
EquivalencePartitionswornim nepal
 
Automated Testing vs Manual Testing
Automated Testing vs Manual TestingAutomated Testing vs Manual Testing
Automated Testing vs Manual TestingDirecti Group
 
Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...
Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...
Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...Edureka!
 
7 Deadly Sins of Agile Software Test Automation
7 Deadly Sins of Agile Software Test Automation7 Deadly Sins of Agile Software Test Automation
7 Deadly Sins of Agile Software Test AutomationAdrian Smith
 
RESTful API Testing using Postman, Newman, and Jenkins
RESTful API Testing using Postman, Newman, and JenkinsRESTful API Testing using Postman, Newman, and Jenkins
RESTful API Testing using Postman, Newman, and JenkinsQASymphony
 
Mocking in Java with Mockito
Mocking in Java with MockitoMocking in Java with Mockito
Mocking in Java with MockitoRichard Paul
 
Class and object_diagram
Class  and object_diagramClass  and object_diagram
Class and object_diagramSadhana28
 
Introduction to Automation Testing
Introduction to Automation TestingIntroduction to Automation Testing
Introduction to Automation TestingArchana Krushnan
 
The history of selenium
The history of seleniumThe history of selenium
The history of seleniumArun Motoori
 
Data Driven Testing
Data Driven TestingData Driven Testing
Data Driven TestingMaveryx
 

What's hot (20)

Web based booking a car taxi5
Web based booking a car taxi5Web based booking a car taxi5
Web based booking a car taxi5
 
Pairwise testing technique-Made easy
Pairwise testing technique-Made easyPairwise testing technique-Made easy
Pairwise testing technique-Made easy
 
Srs (Software Requirement Specification Document)
Srs (Software Requirement Specification Document) Srs (Software Requirement Specification Document)
Srs (Software Requirement Specification Document)
 
Automated Testing vs Manual Testing
Automated Testing vs Manual TestingAutomated Testing vs Manual Testing
Automated Testing vs Manual Testing
 
EquivalencePartition
EquivalencePartitionEquivalencePartition
EquivalencePartition
 
Automated Testing vs Manual Testing
Automated Testing vs Manual TestingAutomated Testing vs Manual Testing
Automated Testing vs Manual Testing
 
Java Unit Testing
Java Unit TestingJava Unit Testing
Java Unit Testing
 
Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...
Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...
Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...
 
Postman.ppt
Postman.pptPostman.ppt
Postman.ppt
 
7 Deadly Sins of Agile Software Test Automation
7 Deadly Sins of Agile Software Test Automation7 Deadly Sins of Agile Software Test Automation
7 Deadly Sins of Agile Software Test Automation
 
RESTful API Testing using Postman, Newman, and Jenkins
RESTful API Testing using Postman, Newman, and JenkinsRESTful API Testing using Postman, Newman, and Jenkins
RESTful API Testing using Postman, Newman, and Jenkins
 
DESIGN PATTERNS: Strategy Patterns
DESIGN PATTERNS: Strategy PatternsDESIGN PATTERNS: Strategy Patterns
DESIGN PATTERNS: Strategy Patterns
 
Mocking in Java with Mockito
Mocking in Java with MockitoMocking in Java with Mockito
Mocking in Java with Mockito
 
JUnit Presentation
JUnit PresentationJUnit Presentation
JUnit Presentation
 
Javafx tutorial
Javafx tutorialJavafx tutorial
Javafx tutorial
 
Automation testing
Automation testingAutomation testing
Automation testing
 
Class and object_diagram
Class  and object_diagramClass  and object_diagram
Class and object_diagram
 
Introduction to Automation Testing
Introduction to Automation TestingIntroduction to Automation Testing
Introduction to Automation Testing
 
The history of selenium
The history of seleniumThe history of selenium
The history of selenium
 
Data Driven Testing
Data Driven TestingData Driven Testing
Data Driven Testing
 

Viewers also liked

Reporting On The Testing Process
Reporting On The Testing ProcessReporting On The Testing Process
Reporting On The Testing Processgavhays
 
4. The Software Development Process - Testing
4. The Software Development Process - Testing4. The Software Development Process - Testing
4. The Software Development Process - TestingForrester High School
 
Equivalence Class Testing [8] - Software Testing Techniques (CIS640)
Equivalence Class Testing [8] - Software Testing Techniques (CIS640)Equivalence Class Testing [8] - Software Testing Techniques (CIS640)
Equivalence Class Testing [8] - Software Testing Techniques (CIS640)Venkatesh Prasad Ranganath
 
1. The Software Development Process - Analysis
1. The Software Development Process - Analysis1. The Software Development Process - Analysis
1. The Software Development Process - AnalysisForrester High School
 
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...Ryan Tran
 
Test design techniques: Structured and Experienced-based techniques
Test design techniques: Structured and Experienced-based techniquesTest design techniques: Structured and Experienced-based techniques
Test design techniques: Structured and Experienced-based techniquesKhuong Nguyen
 

Viewers also liked (6)

Reporting On The Testing Process
Reporting On The Testing ProcessReporting On The Testing Process
Reporting On The Testing Process
 
4. The Software Development Process - Testing
4. The Software Development Process - Testing4. The Software Development Process - Testing
4. The Software Development Process - Testing
 
Equivalence Class Testing [8] - Software Testing Techniques (CIS640)
Equivalence Class Testing [8] - Software Testing Techniques (CIS640)Equivalence Class Testing [8] - Software Testing Techniques (CIS640)
Equivalence Class Testing [8] - Software Testing Techniques (CIS640)
 
1. The Software Development Process - Analysis
1. The Software Development Process - Analysis1. The Software Development Process - Analysis
1. The Software Development Process - Analysis
 
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...
 
Test design techniques: Structured and Experienced-based techniques
Test design techniques: Structured and Experienced-based techniquesTest design techniques: Structured and Experienced-based techniques
Test design techniques: Structured and Experienced-based techniques
 

Similar to Equivalence partitioning

Functionality Testing [PARTIAL]
Functionality Testing [PARTIAL]Functionality Testing [PARTIAL]
Functionality Testing [PARTIAL]Joshua Zabala
 
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).pptxANSHIKANIGAMRA201103
 
presentation_testing_1455044600_187410.pptx
presentation_testing_1455044600_187410.pptxpresentation_testing_1455044600_187410.pptx
presentation_testing_1455044600_187410.pptxsidh18
 
4tocontest
4tocontest4tocontest
4tocontestberthin
 
Lavenya Testing.pptx
Lavenya Testing.pptxLavenya Testing.pptx
Lavenya Testing.pptxssuser94400e
 
Decision table training session
Decision table training sessionDecision table training session
Decision table training sessionPunit Katiyar
 
Testcase design techniques final
Testcase design techniques finalTestcase design techniques final
Testcase design techniques finalshraavank
 
Numerical and statistical methods new
Numerical and statistical methods newNumerical and statistical methods new
Numerical and statistical methods newAabha Tiwari
 
Csc1100 lecture02 ch02-datatype_declaration
Csc1100 lecture02 ch02-datatype_declarationCsc1100 lecture02 ch02-datatype_declaration
Csc1100 lecture02 ch02-datatype_declarationIIUM
 
Csc1100 lecture02 ch02-datatype_declaration
Csc1100 lecture02 ch02-datatype_declarationCsc1100 lecture02 ch02-datatype_declaration
Csc1100 lecture02 ch02-datatype_declarationIIUM
 
Software Testing - Test Design Techniques
Software Testing - Test Design TechniquesSoftware Testing - Test Design Techniques
Software Testing - Test Design TechniquesRegina Vitalicio
 
Tech math 2 day 1 review
Tech math 2   day 1 reviewTech math 2   day 1 review
Tech math 2 day 1 reviewpdkiser
 
Test design techniques
Test design techniquesTest design techniques
Test design techniquesBipul Roy Bpl
 
Hungarian Assignment Problem
Hungarian Assignment ProblemHungarian Assignment Problem
Hungarian Assignment ProblemVivekSaurabh7
 

Similar to Equivalence partitioning (20)

Chap4
Chap4Chap4
Chap4
 
Functionality Testing [PARTIAL]
Functionality Testing [PARTIAL]Functionality Testing [PARTIAL]
Functionality Testing [PARTIAL]
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
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
 
presentation_testing_1455044600_187410.pptx
presentation_testing_1455044600_187410.pptxpresentation_testing_1455044600_187410.pptx
presentation_testing_1455044600_187410.pptx
 
4tocontest
4tocontest4tocontest
4tocontest
 
Lavenya Testing.pptx
Lavenya Testing.pptxLavenya Testing.pptx
Lavenya Testing.pptx
 
Lecture5
Lecture5Lecture5
Lecture5
 
Decision table training session
Decision table training sessionDecision table training session
Decision table training session
 
Testcase design techniques final
Testcase design techniques finalTestcase design techniques final
Testcase design techniques final
 
Numerical and statistical methods new
Numerical and statistical methods newNumerical and statistical methods new
Numerical and statistical methods new
 
Csc1100 lecture02 ch02-datatype_declaration
Csc1100 lecture02 ch02-datatype_declarationCsc1100 lecture02 ch02-datatype_declaration
Csc1100 lecture02 ch02-datatype_declaration
 
Csc1100 lecture02 ch02-datatype_declaration
Csc1100 lecture02 ch02-datatype_declarationCsc1100 lecture02 ch02-datatype_declaration
Csc1100 lecture02 ch02-datatype_declaration
 
Software Testing - Test Design Techniques
Software Testing - Test Design TechniquesSoftware Testing - Test Design Techniques
Software Testing - Test Design Techniques
 
Lesson 2....PPT 1
Lesson 2....PPT 1Lesson 2....PPT 1
Lesson 2....PPT 1
 
Tech math 2 day 1 review
Tech math 2   day 1 reviewTech math 2   day 1 review
Tech math 2 day 1 review
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
 
Lec 17.pptx
Lec 17.pptxLec 17.pptx
Lec 17.pptx
 
SE%200-Testing%20(2).pptx
SE%200-Testing%20(2).pptxSE%200-Testing%20(2).pptx
SE%200-Testing%20(2).pptx
 
Hungarian Assignment Problem
Hungarian Assignment ProblemHungarian Assignment Problem
Hungarian Assignment Problem
 

Recently uploaded

%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in sowetomasabamasaba
 
%+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
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrandmasabamasaba
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2
 
%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 Bahrainmasabamasaba
 
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 AidPhilip Schwarz
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationJuha-Pekka Tolvanen
 
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-learnAmarnathKambale
 
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...WSO2
 
tonesoftg
tonesoftgtonesoftg
tonesoftglanshi9
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...masabamasaba
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
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...WSO2
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfonteinmasabamasaba
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
%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 Benonimasabamasaba
 
+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
 

Recently uploaded (20)

%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
%+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...
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
%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
 
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
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
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 - 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...
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
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...
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
%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
 
+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...
 

Equivalence partitioning

  • 1. 1). What is an equivalence partition (also known as an equivalence class)? A). A set of test cases for testing classes of objects B). An input or output range of values such that only one value in the range becomes a test case C). An input or output range of values such that each value in the range becomes a test case D). An input or output range of values such that every tenth value in the range becomes a test case Answer is #B 2). Equivalence partitioning is: A). A black box testing technique used only by developers B). A black box testing technique than can only be used during system testing C). A black box testing technique appropriate to all levels of testing D). A white box testing technique appropriate for component testing Answer is #C 3). Equivalence partitioning consists of various activities: A). Ensure that test cases test each input and output equivalence class at least once B). Identify all inputs and all outputs C). Identify equivalence classes for each input D). All of the above Answer is #A 4). A switch is switched on once the temperature falls below 18 degrees and then it is turned off when the temperature is more than 21. Identify the equivalence values for testing the switch. solution : We have to choose values from same class (it can be valid or invalid class). The classes will be as follows: Class I: less than 18 (switch turned off) Class II: 18 to 21 Class III: above 21 (switch turned on) Only in Option ‘22,23,24’ all values are from one class.
  • 2. 5). In an examination a candidate has to score minimum of 24 marks in order to clear the exam. The maximum that he can score is 40 marks. Identify the Valid equivalence values if the student.. solution : The classes will be as follows: Class I: values < 24 => invalid class Class II: 24 to 40 => valid class Class III: values > 40 => invalid class We have to indentify Valid Equivalence values. Valid Equivalence values will be there in Valid Equivalence class. All the values should be in Class II. So answer is '29,30,31' 6). One of the fields on a form contains a text box which accepts numeric values in the range of 18 to 25. Define the equivalence classes. Solution The text box accepts numeric values in the range 18 to 25 (18 and 25 are also part of the class). So this class becomes our valid class. But the question is to identify invalid equivalence class. The classes will be as follows: Class I: values < 18 => invalid class Class II: 18 to 25 => valid class Class III: values > 25 => invalid class 17 fall under invalid class. 19, 24 and 21 fall under valid class. So answer is ‘17’ 7). In a system designed to work out the tax to be paid: An employee has £4000 of salary tax free. The next £1500 is taxed at 10%. The next £28000 is taxed at 22%. Any further amount is taxed at 40%. Define the equivalence classes. Solution The classes will be as follows: Class I : 0 to £4000 => no tax Class II : £4001 to £5500 => 10 % tax Class III : £5501 to £33500 => 22 % tax Class IV : £33501 and above => 40 % tax Select the values which fall in three different equivalence classes. Option ‘d’ has values from three different equivalence classes. So answer is ‘£4000; £4200; £5600’.
  • 3. 8). A program validates a numeric field as follows: Values less than 10 are rejected, values between 10 and 21 are accepted, values greater than or equal to 22 are rejected. Define the equivalence classes. Solution We have to select values which fall in all the equivalence class (valid and invalid both). The classes will be as follows: Class I: values <= 9 => invalid class Class II: 10 to 21 => valid class Class III: values >= 22 => invalid class All the values from ‘3,10,22’ fall under all different equivalence class. So answer is ‘3,10,22’. 9). Define the equivalence classes and suitable test cases for the following: a. ZIP Code—five numeric digits b. State—the standard Post Office two-character abbreviation for the states, districts, territories, etc. of the United States c. Last Name—one through fifteen characters (including alphabetic characters, periods, hyphens, apostrophes, spaces, and numbers) Solution : Examples Of Equivalence Classes • ERanges of numbers (such as all numbers between 10 and 99, which are of the same two-digits equvalence class) • Membership in groups (dates,times country names, etc.) • Invalid inputs (placing symbols into text-only fields, etc.) • Equivalent output events (variation of inputs that produce the same output) • Equivalent operating environments • Repetition of activites • Number of records in a database (or other equivalent objects) • Equivalent sums or other arithmetic results • Equivalent numbers of items entered ( such as the number of characters entered into a field) • Equivalent space (on a page or on a screen)
  • 4. • Equivalent amounts of memory, disk space, or other resource available to a program 10). Solution :