Equivalence partitioning

Slides:



Advertisements
Similar presentations
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 20 Slide 1 Chapter 20 Software Testing.
Advertisements

Equivalence Partitioning
Defect testing Objectives
Lecturer: Sebastian Coope Ashton Building, Room G.18 COMP 201 web-page: Lecture.
Test Case Design Methodologies (Black-box methods)
Black Box Testing Csci 565 Spring 2009.
Boundary Value Analysis
Testing in the Small (aka Unit Testing, Class Testing)
Black box testing  Black box tests focus on the input/output behavior of the component  Black-box tests do not deal with the internal aspects of the.
November 2005J. B. Wordsworth: J5DAMQVT1 Design and Method Quality, Verification, and Testing.
Black-box Testing Lakeisha Dubose November 30, 2006 CSCI 362.
Software Testing and Quality Assurance
Testing an individual module
OHT 9.1 Galin, SQA from theory to implementation © Pearson Education Limited 2004 Chapter 9.3 Software Testing Strategies.
Software Testing Prasad G.
1 Software Testing Techniques CIS 375 Bruce R. Maxim UM-Dearborn.
Black Box Software Testing
Testing techniques, example
Software Testing Sudipto Ghosh CS 406 Fall 99 November 9, 1999.
Software testing techniques Software testing techniques Testing based on specifications Presentation on the seminar Kaunas University of Technology.
Let us start from the V-Model Verification Phases Requirements analysis System Design Architecture Design Module Design Coding Validation phases Unit.
CMSC 345 Fall 2000 Unit Testing. The testing process.
CS4311 Spring 2011 Unit Testing Dr. Guoqiang Hu Department of Computer Science UTEP.
Requirements-based Test Generation for Functional Testing (© 2012 Professor W. Eric Wong, The University of Texas at Dallas) 1 W. Eric Wong Department.
Software testing techniques Software testing techniques Equivalence partitioning Presentation on the seminar Kaunas University of Technology.
CS451 – Software Testing Technologies Blackbox Testing Equivalence Partitioning.
Black Box Testing Techniques Chapter 7. Black Box Testing Techniques Prepared by: Kris C. Calpotura, CoE, MSME, MIT  Introduction Introduction  Equivalence.
Black Box Testing Focuses in the functional requirements of the program It is not an alternative to white-box techniques It is a complementary approach.
Black-box Testing.
INTRUDUCTION TO SOFTWARE TESTING TECHNIQUES BY PRADEEP I.
Software Testing Reference: Software Engineering, Ian Sommerville, 6 th edition, Chapter 20.
CS 217 Software Verification and Validation Week 7, Summer 2014 Instructor: Dong Si
SOFTWARE TESTING. INTRODUCTION Testing forms the first step in determining the errors in a program. It is the major quality control measure used during.
Test Case Designing UNIT - 2. Topics Test Requirement Analysis (example) Test Case Designing (sample discussion) Test Data Preparation (example) Test.
Testing and inspecting to ensure high quality An extreme and easily understood kind of failure is an outright crash. However, any violation of requirements.
1. Black Box Testing  Black box testing is also called functional testing  Black box testing ignores the internal mechanism of a system or component.
Theory and Practice of Software Testing Chapter 14 Presman Software Testing Tactics BLACK BOX TESTING.
1 Phase Testing. Janice Regan, For each group of units Overview of Implementation phase Create Class Skeletons Define Implementation Plan (+ determine.
1 © 2011 Professor W. Eric Wong, The University of Texas at Dallas Requirements-based Test Generation for Functional Testing W. Eric Wong Department of.
Software Testing Reference: Software Engineering, Ian Sommerville, 6 th edition, Chapter 20.
Dynamic Black-Box Testing Part 1 What is dynamic black-box testing? How to reduce the number of test cases using: Equivalence partitioning Boundary value.
Equivalence Partitioning
Testing Data Structures
Functional testing, Equivalence class testing
Software Engineering (CSI 321)
Software Testing CS II: Data Structures & Abstraction
PREPARED BY G.VIJAYA KUMAR ASST.PROFESSOR
Equivalence partitioning
Domain Testing Functional testing which tests the application by giving inputs and evaluating its appropriate outputs. system does not accept invalid and.
Software Testing.
Rekayasa Perangkat Lunak Part-13
Random Testing: Theoretical Results and Practical Implications IEEE TRANSACTIONS ON SOFTWARE ENGINEERING 2012 Andrea Arcuri, Member, IEEE, Muhammad.
Black Box Testing PPT Sources: Code Complete, 2nd Ed., Steve McConnell
Black-Box Testing Techniques I
Lecture on Black Box Testing
Types of Testing Visit to more Learning Resources.
Testing Approaches.
UNIT-4 BLACKBOX AND WHITEBOX TESTING
Chapter 14 Software Testing Techniques
G063 - Testing.
Static Testing Static testing refers to testing that takes place without Execution - examining and reviewing it. Dynamic Testing Dynamic testing is what.
Software testing.
Test Case Test case Describes an input Description and an expected output Description. Test case ID Section 1: Before execution Section 2: After execution.
CSE403 Software Engineering Autumn 2000 More Testing
Software Testing “If you can’t test it, you can’t design it”
Black-Box Testing Techniques II
Chapter 1: Boundary Value Testing
Software Testing.
Black-Box Testing Techniques II
UNIT-4 BLACKBOX AND WHITEBOX TESTING
Presentation transcript:

Equivalence partitioning Darius Liepinaitis IFM-2/2

What is Equivalence partitioning? It is a specification-based or black-box technique, however grey box technique might be applied as well. It is a software testing technique that divides the input data of a software unit into partitions of equivalent data from which test cases can be derived. Also called Equivalence Class Partitioning.

Equivalence partitioning graphically

What can be partitioned? Usually input data is partitioned. In some rare cases output data can partitioned as well. Partition represents a set of valid or invalid states for input conditions. An input has certain ranges which are valid and other ranges which are invalid. Each partition expected to be treated the same way by the software.

Tips for partitioning If an input condition specifies a range, at the minimum one valid and two invalid partitions can be defined. If an input condition requires a specific value, then one valid and one invalid partition can be defined. If an input condition specifies a member of a set, then one valid and one invalid partition can be defined If an input condition is Boolean, then one valid and one invalid partition can be defined.

How it works? Take each input's or output's condition that is described in the specification and derive at least 2 classes for it: One class that satisfies the condition – the valid class. Second class that doesn't satisfy the condition – the invalid class. Design test cases based on the equivalence classes.

Example A program which accepts an integer in the range 1 to 10. Three partitions generated: x < 1; 1 ≤ x ≤ 10; x > 10. Test cases (One value from each partition): x = -1; x = 5; x = 12.

Boundary value analysis Equivalence partitioning is supplemented by boundary value analysis. It is a software testing technique in which tests are designed to include representatives of boundary values. It helps to select effective test cases out of partitions.

How to identify the values at the boundary? Identify the boundary both the upper and the lower limit. Identify the values surrounding the boundary.

Same example A program which accepts an integer in the range 1 to 10. Three partitions generated: x < 1; 1 ≤ x ≤ 10; x > 10. Using BVA test cases will be: x = -1, x = 0. x = 1, x = 2, x = 5, x = 9, x = 10. x = 11, x = 12.

Summary Pros: Cons: Optimum test case size; Time saving; Identifies class of error, not just specific invalid data. Cons: Possible mistakes at defining partitions; Not all input are tested.

Questions 1/5 Question: Is equivalence partitioning testing is a black-box method?

Questions 2/5 Question: What is the minimum number of input partitions?

Questions 3/5 Question: What are types of partitions?

Questions 4/5 Question: What technique supplements Equivalence partitioning testing?

Questions 5/5 Question: How does boundary value analysis supplement equivalence partitioning?

Thank you!