SWE 415 Boundary Value Testing Example Boundary Value Testing Example.

Slides:



Advertisements
Similar presentations
Testing and Inspecting to Ensure High Quality
Advertisements

Overview Functional Testing Boundary Value Testing (BVT)
Gate-Level Minimization
Equivalence Class Testing
Staffing Profile September 1999 – September 2009.
Object Oriented Design An object combines data and operations on that data (object is an instance of class) data: class variables operations: methods Three.
1 CODE TESTING Principles and Alternatives. 2 Testing - Basics goal - find errors –focus is the source code (executable system) –test team wants to achieve.
Software Testing and Quality Assurance
Illinois Institute of Technology
Validating and Improving Test-Case Effectiveness Author: Yuri Chernak Presenter: Lam, Man Tat.
Testing an individual module
1 Software Testing Techniques CIS 375 Bruce R. Maxim UM-Dearborn.
Equivalence Class Testing
1 Functional Testing Motivation Example Basic Methods Timing: 30 minutes.
Embedding Videos. Adding Videos to Our Website: Videos can make our pages more interesting and engaging. Most video-hosting websites, such as YouTube,
Software Testing Sudipto Ghosh CS 406 Fall 99 November 9, 1999.
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna 17-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 17.
Independent vs. Dependent Variables What is the difference?
Testing. Definition From the dictionary- the means by which the presence, quality, or genuineness of anything is determined; a means of trial. For software.
Let us start from the V-Model Verification Phases Requirements analysis System Design Architecture Design Module Design Coding Validation phases Unit.
CS4311 Spring 2011 Unit Testing Dr. Guoqiang Hu Department of Computer Science UTEP.
1 Debugging and Testing Overview Defensive Programming The goal is to prevent failures Debugging The goal is to find cause of failures and fix it Testing.
Lesson 2-3 Example Graph the ordered pairs C(2, 5) and D(0, 5). Then connect the points. What do you notice? Step 1 Graph point C. Start at the origin,
1 Phase Testing. \ 2 Overview of Implementation phase Create Class Skeletons Define Implementation Plan (+ determine subphases) Define Coding Standards.
SAMANVITHA RAMAYANAM 18 TH FEBRUARY 2010 CPE 691 LAYERED APPLICATION.
Software Testing Testing types Testing strategy Testing principles.
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)?
Month Rent Revenue 0 $400.00$ $410.00$ $420.00$
Black-Box Testing Techniques I
Introduction to Software Testing. Types of Software Testing Unit Testing Strategies – Equivalence Class Testing – Boundary Value Testing – Output Testing.
Software testing techniques Software testing techniques Equivalence partitioning Presentation on the seminar Kaunas University of Technology.
Black Box Testing Techniques Chapter 7. Black Box Testing Techniques Prepared by: Kris C. Calpotura, CoE, MSME, MIT  Introduction Introduction  Equivalence.
Software Engineering 2 Software Testing Claire Lohr pp 413 Presented By: Feras Batarseh.
1 Equivalence Class Testing Chapter 6. 2 Introduction Boundary Value Testing derives test cases with Massive redundancy Serious gaps Equivalence Class.
A Simple Guide to Using SPSS ( Statistical Package for the Social Sciences) for Windows.
Regression Models w/ 2 Quant Variables Sources of data for this model Variations of this model Main effects version of the model –Interpreting the regression.
Frequency Distribution ScoresFrequency Classes/Intervals – Determined after finding range of data. Class width is the range of each class/interval. Rule.
Planning: Testing Making your program ‘crash proof’
Histograms. Number of Flowers – 1213 – 1718 – 2223 – 2728 – 32 Height (in centimeters) Flower Heights The x-axis label shows the groups.
Equivalence Class Testing In chapter 5, we saw that all four variations of boundary value testing are vulnerable to –gaps of untested functionality, and.
Test Case Designing UNIT - 2. Topics Test Requirement Analysis (example) Test Case Designing (sample discussion) Test Data Preparation (example) Test.
| resources for science teachers who like to think TopicDrawing graphsLevelKey Stage 3/GCSE (or.
Implementation Phase Programming-in-the-many Programming-in-the-many Most real-life products are too large to be implemented by one programmer Most real-life.
1. Black Box Testing  Black box testing is also called functional testing  Black box testing ignores the internal mechanism of a system or component.
 Introduction  This strategy designs tests that are independent of the implementation (code) of the software Black-Box Testing.
1 of 31 The EPA 7-Step DQO Process Step 6 - Specify Error Tolerances 60 minutes (15 minute Morning Break) Presenter: Sebastian Tindall DQO Training Course.
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.
Synchronous Counter Design
The Coordinate Plane 101 ALGEBRA 11/16/15. The coordinate plane is a set of axis on which ordered pairs of input and output values can be plotted.
1 Software Testing. 2 Equivalence Class Testing 3 The use of equivalence class testing has two motivations: –Sense of complete testing –Avoid redundancy.
CMSC 2021 Software Development. CMSC 2022 Software Development Life Cycle Five phases: –Analysis –Design –Implementation –Testing –Maintenance.
Equivalence Class Testing Use the mathematical concept of partitioning into equivalence classes to generate test cases for Functional (Black-box) testing.
1 of 48 The EPA 7-Step DQO Process Step 6 - Specify Error Tolerances 3:00 PM - 3:30 PM (30 minutes) Presenter: Sebastian Tindall Day 2 DQO Training Course.
Wednesday: Need a graphing calculator today. Need a graphing calculator today.
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.
Implications for School Systems.  Employer Mandate ◦ Schools systems with 50 or more employees will be required to provide insurance to all full-time.
© 2006 Nova Scotia Government All rights reserved. Change to Appointment Type.
Functional testing, Equivalence class testing
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.
Quiz # 02 Design a data type Date to hold date
UNIT-4 BLACKBOX AND WHITEBOX TESTING
Equivalence Class Testing
IENG 484 Quality Engineering LAB 3 Statistical Quality Control (SPSS)
Root Cause Analysis Process
Chapter 1: Boundary Value Testing
UNIT-4 BLACKBOX AND WHITEBOX TESTING
Presentation transcript:

SWE 415 Boundary Value Testing Example Boundary Value Testing Example

SWE 415 Boundary Value Testing Example Boundary Value Testing Example Process employment applications based on a person's age. Notice the problem at the boundaries. The age "16" is included in two different equivalence classes (as are 18 and 55).

SWE 415 Boundary Value Testing Example Boundary Value Testing Example (cont) Boundary value testing focuses on the boundaries simply because that is where so many defects hide. If (applicantAge >= 0 && applicantAge <=16) hireStatus="NO"; If (applicantAge >= 16 && applicantAge <=18) hireStatus="PART"; If (applicantAge >= 18 && applicantAge <=55) hireStatus="FULL"; If (applicantAge >= 55 && applicantAge <=99) hireStatus="NO";

SWE 415 Boundary Value Testing Example Boundary Value Testing Example (cont) Perhaps this is what our organization meant: 0–15Don't hire 16–17Can hire on a part-time basis only 18–54Can hire as full-time employees 55–99Don't hire What about ages -3 and 101? The requirements do not specify how these values should be treated.

SWE 415 Boundary Value Testing Example Boundary Value Testing Example (cont) The code that implements the corrected rules is: If (applicantAge >= 0 && applicantAge <=15) hireStatus="NO"; If (applicantAge >= 16 && applicantAge <=17) hireStatus="PART"; If (applicantAge >= 18 && applicantAge <=54) hireStatus="FULL"; If (applicantAge >= 55 && applicantAge <=99) hireStatus="NO"; The interesting values on or near the boundaries in this example are {-1, 0, 1}, {15, 16, 17}, {17, 18, 19}, {54, 55, 56}, and {98, 99, 100}. Other values, such as {-42, 1001, FRED, might be included depending on the module's documented preconditions.

SWE 415 Boundary Value Testing Example Boundary Value Testing Example (cont) The steps for using boundary value testing are : 1- Identify the equivalence classes. 2- Identify the boundaries of each equivalence class. 3- Create test cases for each boundary value by choosing one point on the boundary, one point just below the boundary, and one point just above the boundary. "Below" and "above" are relative terms and depend on the data value's units.

SWE 415 Boundary Value Testing Example Boundary Value Testing Example (cont) You could, of course, create additional test cases farther from the boundaries (within equivalence classes) if you have the resources. Boundary value testing is most appropriate where the input is a continuous range of values.

SWE 415 Boundary Value Testing Example Boundary Value Testing Example (cont) Test data input of {$999, $1,000, $1,001} on the low end and {$83,332, $83,333, $83,334} on the high end are chosen to test the boundaries. Boundary values for a discrete range of inputs.

SWE 415 Boundary Value Testing Example Boundary Value Testing Example (cont)

SWE 415 Boundary Value Testing Example Boundary Value Testing Example (cont) Plotting "monthly income" on the x-axis and "number of dwellings" on the y-axis shows the "locations" of the test data points

SWE 415 Boundary Value Testing Example Boundary Value Testing Example (cont) Note –Four of the input combinations are on the boundaries while eight are just outside. –The points outside always combine one valid value with one invalid value (just one unit lower or one unit higher).