Equivalence Class Partitioning and Boundary Value Analysis -Black Box Testing Techniques

Similar documents
LECTURE 8 TEST DESIGN TECHNIQUES - I

CS 451 Software Engineering Winter 2009

UNIT-4 Black Box & White Box Testing

UNIT-4 Black Box & White Box Testing

7.0 Test Design Techniques & Dynamic Testing

Software Testing Fundamentals. Software Testing Techniques. Information Flow in Testing. Testing Objectives

Theme 2 Program Design and Testing

Software Testing for Developer Development Testing. Duvan Luong, Ph.D. Operational Excellence Networks

Test design: Part I. Software Testing: INF3121 / INF4121

Black-box Testing Techniques

Darshan Institute of Engineering & Technology Unit : 9

Equivalence Class Partitioning. Equivalence Partitioning. Definition and Example. Example set of classes

ASTQB Advance Test Analyst Sample Exam Answer Key and Rationale

Testing is executing a system in order to identify any gaps, errors, or missing requirements in contrary to the actual requirements.

PES INSTITUTE OF TECHNOLOGY- BANGALORE SOUTH CAMPUS

Topics in Software Testing

Software Testing CS 408

Software Testing. Lecturer: Sebastian Coope Ashton Building, Room G.18

Verification and Validation. Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 1

Software Testing. Software Testing. in the textbook. Chapter 8. Verification and Validation. Verification Techniques

Software Testing Prof. Rajib Mall Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur

Software Testing. Testing 1

Functional Testing (Black Box Testing)

Chapter 9. Software Testing

Topic: Software Verification, Validation and Testing Software Engineering. Faculty of Computing Universiti Teknologi Malaysia

Comments on drafts of final paper

Stained Glass Window Project

MONIKA HEINER.

Input Space Partitioning

What s Next INF 117 Project in Software Engineering

Software Testing. Software Testing. in the textbook. Chapter 8. Verification and Validation. Verification and Validation: Goals

Input Space Partitioning

Testing & Debugging TB-1

SOFTWARE TESTING UNIT II TEST CASE DESIGN

MTAT : Software Testing

Chapter 3: Dynamic Testing Techniques

Certified Tester Foundation Level(CTFL)

2. You are required to enter a password of up to 100 characters. The characters must be lower ASCII, printing characters.

Cardinality of Sets. Washington University Math Circle 10/30/2016

Repairing a Boundary Mesh

Guide to Create New Account

Integrating the classification tree method with combinatorial testing: test selection strategy

Test Design Techniques ISTQB (International Software Testing Qualifications Board)

CS 4387/5387 SOFTWARE V&V LECTURE 4 BLACK-BOX TESTING

MTAT : Software Testing

PESIT Bangalore South Campus

Fachgebiet Softwaretechnik, Heinz Nixdorf Institut, Universität Paderborn. 4. Testing

Object-Oriented Software Engineering Practical Software Development using UML and Java

Software Testing Prof. Rajib Mall Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur

Input Space Partitioning

International Journal of Computer Engineering and Applications, Volume XII, Special Issue, September 18, ISSN SOFTWARE TESTING

Software Testing ETSN00

c. Typically results in an intractably large set of test cases even for small programs

F. Tip and M. Weintraub FUNCTIONAL TESTING

Integration and Testing. Uses slides from Lethbridge & Laganiere, 2001

A Comparative Analysis On Equivalence class partitioning And Boundary value analysis

Chapter 2 Overview of the Design Methodology

Name: UW CSE 473 Midterm, Fall 2014

International Journal of Computer Engineering and Applications, Volume XII, Special Issue, April- ICITDA 18,

SOFTWARE ENGINEERING IT 0301 Semester V B.Nithya,G.Lakshmi Priya Asst Professor SRM University, Kattankulathur

To Measure a Constant Velocity. Enter.

LECTURE 9 TEST DESIGN TECHNIQUES - II

Paul's Online Math Notes Calculus III (Notes) / Applications of Partial Derivatives / Lagrange Multipliers Problems][Assignment Problems]

A02 - How to Combine Existing Model with New DWG

25 The vibration spiral

Testing Theory. Agenda - What will you learn today? A Software Life-cycle Model Which part will we talk about today? Theory Lecture Plan

Verification Overview Testing Theory and Principles Testing in Practice. Verification. Miaoqing Huang University of Arkansas 1 / 80

Darshan Institute of Engineering & Technology for Diploma Studies

International Journal of Advancements in Research & Technology, Volume 2, Issue 12, December ISSN

General Certificate of Secondary Education Digital Technology. Unit 5 Digital Development Practice MARK SCHEME

Specification-based test design

STANNS COLLEGE OF ENGINEERING &TECHNOLOGY SOFTWARE TESTING METHODOLOGIES Unit II

(See related materials in textbook.) CSE 435: Software Engineering (slides adapted from Ghezzi et al & Stirewalt

Black Box Testing (revisited) Csci 565 Spring 2007

Types of Software Testing: Different Testing Types with Details

Software Testing. Software Testing

EI, EO, EQ QUESTIONS. Expected Result: The student should obtain a score of 90 percent.

Grade 6 Integers. Answer the questions. Choose correct answer(s) from the given choices. For more such worksheets visit

Computational Systems COMP1209

Mercateo Catalogue Management for Suppliers

Testing: Test design and testing process

Sample Exam Syllabus

The testing process. Component testing. System testing

Overview. Windows Media Encoder Tutorial

Modelling Structures in Data Mining Techniques

in Wincap Fiscal Year: White Red Yellow Current Fiscal Year Previous Fiscal Year Next Fiscal Year Negative Numbers will always be in Red

SPECIAL TECHNIQUES-II

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL

APPLIED OPTICS. Opaque obstacle

MTAT : Software Testing

CE366/ME380 Finite Elements in Applied Mechanics I Fall 2007

Program Correctness and Efficiency. Chapter 2

Mesh Quality Tutorial

Chapter 5. Repetition. Contents. Introduction. Three Types of Program Control. Two Types of Repetition. Three Syntax Structures for Looping in C++

1 Introduction. 1.1 What is Statistics?

Software testing. Ian Sommerville 2006 Software Engineering, 8th edition. Chapter 23 Slide 1

Introduction to Software Engineering

Chapter 9 Quality and Change Management

PRINCIPLES OF COMPILER DESIGN UNIT I INTRODUCTION TO COMPILERS

Table : IEEE Single Format ± a a 2 a 3 :::a 8 b b 2 b 3 :::b 23 If exponent bitstring a :::a 8 is Then numerical value represented is ( ) 2 = (

Transcription:

Equivalence Class Partitioning and Boundary Value Analysis -Black Box Testing Techniques In this tutorial, we will discuss the approach to design the test cases and also how to apply the boundary value and equivalence class techniques. Let s get started. Equivalence Class: In this technique, we divide the System under Test into number of equivalence classes and just test few values from each of class. The set of input values that gives one single output is called partition or Class. and if the software behaves equally to the inputs then it is called as Equivalence. Hence, the term Equivalence Class. For example : In the below figure, the circle accepts only Positive input values ranging from 1-10 only. So, to test the circle, Do we need not test with all the possible values? like 1,2,3,4, 10 and negative values -1, -2, -3, -4,. -10 and values over the accepted range like 11, 12, 13, 14, 15,. 99, 100, 1000, 6000000 etc. the inputs are infinite.

The answer is a big NO. Because we know the basic principle Exhaustive testing is not possible. Hence, we divide them into equivalence class and test with some inputs. This is because, we are assuming that all the conditions in one partition will be treated in the same way by the software. If one condition in a partition works, all of the conditions in that partition will work, Similarly, if one of the conditions in a partition does not work, then none of the conditions in that partition will work. The possible solution would be by dividing into 3 different class : Positive class Negative class Invalid Class Although there are many classes in the diagram. For our easy understanding, we will have only 3 classes. In order to test for different classes we need to select certain inputs. In this example, we have -2 for the negative, 4 for the positive and 12 for the invalid. so, if one input from the class gives the valid output, then for all the other inputs, the result would be similar in the same class, which is represented below.

Advantages of EP : 1. To reduce the number of test cases to a necessary minimum. 2. To select correct test cases to cover all possible scenarios. Boundary value Analysis: Boundary value analysis is to test the boundaries between partitions. Is a technique to refine equivalence partitioning by concentrating on the values at the ends of each partition or class. Value at the minimum, just above minimum, just below minimum, normal, at the maximum, just below maximum, just above maximum are the values selected. Confusing? check out the below figure.

Consider the same example, the valid values for the circle are 1-10, which means 1 is the minimum value and 1o is the maximum value. Now what are all the boundaries we have 0,1,2 and 9,10,11. Hence, Combining both Equivalence class and Boundary value analysis, what are all the test condition we have to test? Yes, you are correct we have all of these values. -2,0,1,2,4,9,10,11,12. Good answer Why is BVA important? Generally, it has been found that most of the defects are found around boundaries due to the following. Programmer mistakes in using the correct comparison parameter like using < operator rather than <= operator. Unclear requirements, mostly at the boundaries like discounts for purchases of above $989 only.

Confusion in using loops and conditions checks (related to coding). How to Use these techniques to Design Test Cases? Carefully analyse the requirements and find out whether ECP and BVA can be applied to design. Identify equivalence classes. Define Test cases i.e, Valid test cases and Invalid Test cases. Select Boundaries in the partitions. Combine ECP and BVA to choose the data for testing. That s it! you are done with first draft of designing test cases. just need to follow certain guidelines in writing test cases. In future posts we will discuss about realtime examples using BVA and ECP. For now, we will continue with the other black box testing techniques part 2 in the immediate next post.