Chapter 1: Boundary Value Testing

Slides:



Advertisements
Similar presentations
2017/3/25 Test Case Upgrade from “Test Case-Training Material v1.4.ppt” of Testing basics Authors: NganVK Version: 1.4 Last Update: Dec-2005.
Advertisements

Overview Functional Testing Boundary Value Testing (BVT)
Chapter 2: Boundary Value Testing : BVT Software Testing
Testing and Quality Assurance
1 ECE 453 – CS 447 – SE 465 Software Testing & Quality Assurance Instructor Kostas Kontogiannis.
Boundary Value Testing A type of “Black box” functional testing –The program is viewed as a mathematical “function” –The program takes inputs and maps.
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.
Black-box Testing Lakeisha Dubose November 30, 2006 CSCI 362.
Importance of testing Difference between Errors and Faults The purpose of test data Importance of: – Testing – Test Plans.
Software Testing and Quality Assurance
Testing an individual module
CS4723 Software Validation and Quality Assurance Lecture 02 Overview of Software Testing.
Chapter 5 Retrospective on Functional Testing Software Testing
Software Testing Prasad G.
Software Engineering Lecture 12 Software Testing Techniques 1.
Chapter 11: Testing The dynamic verification of the behavior of a program on a finite set of test cases, suitable selected from the usually infinite execution.
Equivalence Class Testing
1 Functional Testing Motivation Example Basic Methods Timing: 30 minutes.
Software Testing Sudipto Ghosh CS 406 Fall 99 November 9, 1999.
A General Discussion on Functional (Black-box) Testing What are some of the concerns of testers ? –Have we got enough time to test (effort & schedule)?
Black Box Testing Techniques Chapter 7. Black Box Testing Techniques Prepared by: Kris C. Calpotura, CoE, MSME, MIT  Introduction Introduction  Equivalence.
1 Equivalence Class Testing Chapter 6. 2 Introduction Boundary Value Testing derives test cases with Massive redundancy Serious gaps Equivalence Class.
BLACK BOX TESTING K.KARTHIKEYAN. Black box testing technique Random testing Equivalence and partitioning testing Boundary value analysis State transition.
Software Testing Reference: Software Engineering, Ian Sommerville, 6 th edition, Chapter 20.
1 Boundary Value Testing Chapter 5. 2 Introduction Input domain testing is the most commonly taught (and perhaps the most commonly used) software testing.
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.
Software testing School of Software Engineering, HUST 1.
1. Black Box Testing  Black box testing is also called functional testing  Black box testing ignores the internal mechanism of a system or component.
1 Software Testing & Quality Assurance Lecture 5 Created by: Paulo Alencar Modified by: Frank Xu.
Boundary Value Testing 1.A type of “Black box” functional testing –The program is viewed as a mathematical “function” –The program takes inputs and maps.
1 Software Testing. 2 Equivalence Class Testing 3 The use of equivalence class testing has two motivations: –Sense of complete testing –Avoid redundancy.
Boundary Value Testing
Software Testing Reference: Software Engineering, Ian Sommerville, 6 th edition, Chapter 20.
Testing 1. Aims To understand the purpose of testing To understand the different test strategies To explore the four types of test data Have a understanding.
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.
A General Discussion on Functional (Black-box) Testing What are some of the concerns of testers ? –Have we got enough time to test (effort & schedule)?
Functional testing, Equivalence class testing
Chapter 17 Software Testing Techniques
Chapter 3: Equivalence Class Testing :EC Software Testing
Robustness Testing by- (Group 2-Batch F1).
Subject Name: Software Testing Subject Code: 10CS842 Prepared By:
PREPARED BY G.VIJAYA KUMAR ASST.PROFESSOR
Equivalence partitioning
Equivalence partitioning
Domain Testing Functional testing which tests the application by giving inputs and evaluating its appropriate outputs. system does not accept invalid and.
Testing Tutorial 7.
Testing Techniques.
The Joy of Breaking Code Testing Logic and Case Selection
Black Box Testing PPT Sources: Code Complete, 2nd Ed., Steve McConnell
Input Space Partition Testing CS 4501 / 6501 Software Testing
Unit 16 – Database Systems
CS5123 Software Validation and Quality Assurance
Chapter 5 Retrospective on Functional Testing Software Testing
Testing the Software with Blinders on
Overview Functional Testing Boundary Value Testing (BVT)
UNIT-4 BLACKBOX AND WHITEBOX TESTING
Ch. 3 stuff – Read entire Ch. 3 if you can’t remember
COSC 4506/ITEC 3506 Software Engineering
Black-Box Testing Techniques III
Equivalence Class Testing
Software Engineering Lecture #13.
Static Testing Static testing refers to testing that takes place without Execution - examining and reviewing it. Dynamic Testing Dynamic testing is what.
Software Engineering Lecture #12.
CS 1111 Introduction to Programming Fall 2018
CSE403 Software Engineering Autumn 2000 More Testing
Overview Functional Testing Boundary Value Testing (BVT)
Black-Box Testing Techniques III
Overview Functional Testing Boundary Value Testing (BVT)
UNIT-4 BLACKBOX AND WHITEBOX TESTING
Presentation transcript:

Chapter 1: Boundary Value Testing Unit III Chapter 1: Boundary Value Testing

Boundary Value Testing Boundary value analysis is a type of black box or specification based testing technique in which tests are performed using the boundary values. Practically, due to time and budget considerations, it is not possible to perform exhausting testing for each set of test data, especially when there is a large pool of input combinations. We use two techniques - Equivalence Partitioning & Boundary Value Analysis testing techniques to achieve this.

Boundary testing is the process of testing between extreme ends or boundaries between partitions of the input values. So these extreme ends like Start- End, Lower- Upper, Maximum-Minimum, Just Inside-Just Outside values are called boundary values and the testing is called "boundary testing". The basic idea in boundary value testing is to select input variable values at their: Minimum Just above the minimum A nominal value Just below the maximum Maximum

Example An exam has a pass boundary at 50 percent, merit at 75 percent and distinction at 85 percent. The Valid Boundary values for this scenario will be as follows: 49, 50 - for pass 74, 75 - for merit 84, 85 - for distinction Boundary values are validated against both the valid boundaries and invalid boundaries. The Invalid Boundary Cases for the above example can be given as follows: 0 - for lower limit boundary value 101 - for upper limit boundary value

Example on Boundary Value Analysis Test Case Design Technique: Assume, we have to test a field which accepts Age 18 – 56

Minimum boundary value is 18 Maximum boundary value is 56 Valid Inputs: 18,19,55,56 Invalid Inputs: 17 and 57 Test case 1: Enter the value 17 (18-1) = Invalid Test case 2: Enter the value 18 = Valid Test case 3: Enter the value 19 (18+1) = Valid Test case 4: Enter the value 55 (56-1) = Valid Test case 5: Enter the value 56 = Valid Test case 6: Enter the value 57 (56+1) =Invalid

Example 2: Assume we have to test a text field (Name) which accepts the length between 6-12 characters.

Minimum boundary value is 6 Maximum boundary value is 12 Valid text length is 6, 7, 11, 12 Invalid text length is 5, 13 Test case 1: Text length of 5 (min-1) = Invalid Test case 2: Text length of exactly 6 (min) = Valid Test case 3: Text length of 7 (min+1) = Valid Test case 4: Text length of 11 (max-1) = Valid Test case 5: Text length of exactly 12 (max) = Valid Test case 6: Text length of 13 (max+1) = Invalid

Normal Boundary Value Testing In the general application of Boundary Value Analysis can be done in a uniform manner. The basic form of implementation is to maintain all but one of the variables at their nominal (normal or average) values and allowing the remaining variable to take on its extreme values. The values used to test the extremities are: Min ------------------------------------ - Minimal Min+ ------------------------------------ - Just above Minimal Nom ------------------------------------ - Average Max- ------------------------------------- Just below Maximum Max ------------------------------------ - Maximum

NextDate Function NEXTDATE is a function of three variables: month, day, and year, for years from 1812 to 2012. It returns the date of the next day. NEXTDATE( Dec, 31, 1991) returns Jan 1 1992 NEXTDATE( Feb, 21, 1991) returns Feb 22 1991 NEXTDATE( Feb, 28, 1991) returns Mar 1 1991 NEXTDATE( Feb, 28, 1992) returns Feb 29 1992

Boundary Value Test Cases for NextDate Month Day Year Expected Output 1 1812 1, 2, 1812 2 1813 1, 2, 1813 3 1912 1, 2, 1912 4 2011 1, 2, 2011 5 2012 1, 2, 2012 6 1, 3, 1812 7 1, 3, 1813 8 1, 3, 1912 9 1, 3, 2011 10 1, 3, 2012 11 15 1, 16, 1812 12 1, 16, 1813 13 1, 16, 1912 14 1, 16, 2011 1, 16, 2012

Special Value Test Cases Month Day Year Reason SV-1 2 28 2012 Feb. 28 in a leap year SV-2 2013 Feb. 28 in a common year SV-3 29 Leap day in a leap year SV-4 2000 Leap day in 2000 SV-5 1900 Feb. 28 in 1900 SV-6 12 31 2011 End of year SV-7 10 End of 31-day month SV-8 11 30 End of 30-day month SV-9 Last day of defined interval

Robustness Testing In BVA, we remain within the legitimate boundary of our range i.e. for testing we consider values like (min, min+, nom, max-, max) whereas in Robustness testing, we try to cross these legitimate boundaries as well. Thus for testing here we consider the values like (min-, min, min+, nom, max-, max, max+)

Hierarchy Boundary Value testing of n inputs : 4n + 1 Robustness testing of n inputs : 6n + 1 “Worst case” for boundary value : 5n “Worst case” for robustness : 7n 1) Boundary Value is a subset of Robustness 2) Worst Case of boundary value is a subset of Worst Case of robustness

Worst case BVT

Test cases

Special Value Testing The testing executed by Special Value Testing technique is based on past experiences, which validates that no bugs or defects are left undetected. Moreover, the testers are extremely knowledgeable about the industry and use this information while performing Special Value testing. Another benefit of opting Special Value Testing technique is that it is Ad-hoc in nature. There are no guidelines used by the testers other than their “best engineering judgment”. The most important aspect of this testing is that, it has had some very valuable inputs and success in finding bugs and errors while testing a software.

Random Testing Random Testing is a form of functional black box testing that is performed when there is not enough time to write and execute the tests.

Random Testing Characteristics Random testing is performed where the defects are NOT identified in regular intervals. Random input is used to test the system's reliability and performance. Saves time and effort than actual test efforts. Other Testing methods Cannot be used to.