SlideShare a Scribd company logo
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

Software Testing - Boundary Value Analysis, Equivalent Class Partition, Decis...
Software Testing - Boundary Value Analysis, Equivalent Class Partition, Decis...Software Testing - Boundary Value Analysis, Equivalent Class Partition, Decis...
Software Testing - Boundary Value Analysis, Equivalent Class Partition, Decis...priyasoundar
 
Presentation On Software Testing Bug Life Cycle
Presentation On Software Testing Bug Life CyclePresentation On Software Testing Bug Life Cycle
Presentation On Software Testing Bug Life CycleRajon
 
Unit 3 Control Flow Testing
Unit 3   Control Flow TestingUnit 3   Control Flow Testing
Unit 3 Control Flow Testingravikhimani
 
EquivalencePartition
EquivalencePartitionEquivalencePartition
EquivalencePartitionswornim nepal
 
Integration testing
Integration testingIntegration testing
Integration testingqueen jemila
 
Bug reporting and tracking
Bug reporting and trackingBug reporting and tracking
Bug reporting and trackingVadym Muliavka
 
White box black box & gray box testing
White box black box & gray box testingWhite box black box & gray box testing
White box black box & gray box testingHimanshu
 
Equivalence class testing
Equivalence  class testingEquivalence  class testing
Equivalence class testingMani Kanth
 
Exception Handling
Exception HandlingException Handling
Exception HandlingReddhi Basu
 
Test case techniques
Test case techniquesTest case techniques
Test case techniquesPina Parmar
 
Boundary Value Analysis and Equivalence class Partitioning Testing.pptx
Boundary Value Analysis and Equivalence class Partitioning Testing.pptxBoundary Value Analysis and Equivalence class Partitioning Testing.pptx
Boundary Value Analysis and Equivalence class Partitioning Testing.pptxlandesc
 
Software testing & Quality Assurance
Software testing & Quality Assurance Software testing & Quality Assurance
Software testing & Quality Assurance Webtech Learning
 

What's hot (20)

Software Testing - Boundary Value Analysis, Equivalent Class Partition, Decis...
Software Testing - Boundary Value Analysis, Equivalent Class Partition, Decis...Software Testing - Boundary Value Analysis, Equivalent Class Partition, Decis...
Software Testing - Boundary Value Analysis, Equivalent Class Partition, Decis...
 
Presentation On Software Testing Bug Life Cycle
Presentation On Software Testing Bug Life CyclePresentation On Software Testing Bug Life Cycle
Presentation On Software Testing Bug Life Cycle
 
Unit 3 Control Flow Testing
Unit 3   Control Flow TestingUnit 3   Control Flow Testing
Unit 3 Control Flow Testing
 
EquivalencePartition
EquivalencePartitionEquivalencePartition
EquivalencePartition
 
Integration testing
Integration testingIntegration testing
Integration testing
 
Operators in java
Operators in javaOperators in java
Operators in java
 
Bug reporting and tracking
Bug reporting and trackingBug reporting and tracking
Bug reporting and tracking
 
White box black box & gray box testing
White box black box & gray box testingWhite box black box & gray box testing
White box black box & gray box testing
 
Equivalence class testing
Equivalence  class testingEquivalence  class testing
Equivalence class testing
 
Software cost estimation
Software cost estimationSoftware cost estimation
Software cost estimation
 
Exception Handling
Exception HandlingException Handling
Exception Handling
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
Integration test
Integration testIntegration test
Integration test
 
Testing Metrics
Testing MetricsTesting Metrics
Testing Metrics
 
Testing techniques
Testing techniquesTesting techniques
Testing techniques
 
How to report bugs
How to report bugsHow to report bugs
How to report bugs
 
Test case techniques
Test case techniquesTest case techniques
Test case techniques
 
Boundary Value Analysis and Equivalence class Partitioning Testing.pptx
Boundary Value Analysis and Equivalence class Partitioning Testing.pptxBoundary Value Analysis and Equivalence class Partitioning Testing.pptx
Boundary Value Analysis and Equivalence class Partitioning Testing.pptx
 
Exception Handling in Java
Exception Handling in JavaException Handling in Java
Exception Handling in Java
 
Software testing & Quality Assurance
Software testing & Quality Assurance Software testing & Quality Assurance
Software testing & Quality Assurance
 

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

Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyanic lab
 
Advanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should KnowAdvanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should KnowPeter Caitens
 
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...Alluxio, Inc.
 
Crafting the Perfect Measurement Sheet with PLM Integration
Crafting the Perfect Measurement Sheet with PLM IntegrationCrafting the Perfect Measurement Sheet with PLM Integration
Crafting the Perfect Measurement Sheet with PLM IntegrationWave PLM
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Anthony Dahanne
 
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1KnowledgeSeed
 
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?XfilesPro
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...informapgpstrackings
 
Mastering Windows 7 A Comprehensive Guide for Power Users .pdf
Mastering Windows 7 A Comprehensive Guide for Power Users .pdfMastering Windows 7 A Comprehensive Guide for Power Users .pdf
Mastering Windows 7 A Comprehensive Guide for Power Users .pdfmbmh111980
 
AI/ML Infra Meetup | ML explainability in Michelangelo
AI/ML Infra Meetup | ML explainability in MichelangeloAI/ML Infra Meetup | ML explainability in Michelangelo
AI/ML Infra Meetup | ML explainability in MichelangeloAlluxio, Inc.
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamtakuyayamamoto1800
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesKrzysztofKkol1
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns
 
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdf
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdfA Comprehensive Appium Guide for Hybrid App Automation Testing.pdf
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdfkalichargn70th171
 
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAGAI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAGAlluxio, Inc.
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTier1 app
 
Studiovity film pre-production and screenwriting software
Studiovity film pre-production and screenwriting softwareStudiovity film pre-production and screenwriting software
Studiovity film pre-production and screenwriting softwareinfo611746
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke
 
GraphAware - Transforming policing with graph-based intelligence analysis
GraphAware - Transforming policing with graph-based intelligence analysisGraphAware - Transforming policing with graph-based intelligence analysis
GraphAware - Transforming policing with graph-based intelligence analysisNeo4j
 

Recently uploaded (20)

Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
 
Advanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should KnowAdvanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should Know
 
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
 
Crafting the Perfect Measurement Sheet with PLM Integration
Crafting the Perfect Measurement Sheet with PLM IntegrationCrafting the Perfect Measurement Sheet with PLM Integration
Crafting the Perfect Measurement Sheet with PLM Integration
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
 
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
 
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
 
Mastering Windows 7 A Comprehensive Guide for Power Users .pdf
Mastering Windows 7 A Comprehensive Guide for Power Users .pdfMastering Windows 7 A Comprehensive Guide for Power Users .pdf
Mastering Windows 7 A Comprehensive Guide for Power Users .pdf
 
AI/ML Infra Meetup | ML explainability in Michelangelo
AI/ML Infra Meetup | ML explainability in MichelangeloAI/ML Infra Meetup | ML explainability in Michelangelo
AI/ML Infra Meetup | ML explainability in Michelangelo
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web Services
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdf
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdfA Comprehensive Appium Guide for Hybrid App Automation Testing.pdf
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdf
 
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAGAI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 
Studiovity film pre-production and screenwriting software
Studiovity film pre-production and screenwriting softwareStudiovity film pre-production and screenwriting software
Studiovity film pre-production and screenwriting software
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 
GraphAware - Transforming policing with graph-based intelligence analysis
GraphAware - Transforming policing with graph-based intelligence analysisGraphAware - Transforming policing with graph-based intelligence analysis
GraphAware - Transforming policing with graph-based intelligence analysis
 

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 :