Unit 2 Boundary Value Testing, Equivalence Class Testing, Decision Table-Based Testing. ST 8 th Sem, A Div Prof. Mouna M.

Similar documents
ERA: Architectures for Inference

Central Algorithmic Techniques. Iterative Algorithms

Estimating the number of components with defects post-release that showed no defects in testing

Positive and Unlabeled Relational Classification through Label Frequency Estimation

HoNOSCA: Raters Pack. University of Liverpool HEALTH OF THE NATION OUTCOME SCALES FOR CHILDREN & ADOLESCENTS

Monte Carlo Analysis of Univariate Statistical Outlier Techniques Mark W. Lukens

Feasibility Evaluation of a Novel Ultrasonic Method for Prosthetic Control ECE-492/3 Senior Design Project Fall 2011

Chapter 3 Software Packages to Install How to Set Up Python Eclipse How to Set Up Eclipse... 42

Survival Skills for Researchers. Study Design

Quasi-experimental analysis Notes for "Structural modelling".

Gene Selection for Tumor Classification Using Microarray Gene Expression Data

Positive and Unlabeled Relational Classification through Label Frequency Estimation

- Decide on an estimator for the parameter. - Calculate distribution of estimator; usually involves unknown parameter

Stepwise Knowledge Acquisition in a Fuzzy Knowledge Representation Framework

6. Unusual and Influential Data

FMEA AND RPN NUMBERS. Failure Mode Severity Occurrence Detection RPN A B

On the Combination of Collaborative and Item-based Filtering

Previously, when making inferences about the population mean,, we were assuming the following simple conditions:

Lessons in biostatistics

Recent developments for combining evidence within evidence streams: bias-adjusted meta-analysis

TG100 Implementation Guide - FTA

Objectives. Quantifying the quality of hypothesis tests. Type I and II errors. Power of a test. Cautions about significance tests

Learning Mackey-Glass from 25 examples, Plus or Minus 2

Viewpoints on Setting Clinical Trial Futility Criteria

Processing of Logical Functions in the Human Brain

A NEW DIAGNOSIS SYSTEM BASED ON FUZZY REASONING TO DETECT MEAN AND/OR VARIANCE SHIFTS IN A PROCESS. Received August 2010; revised February 2011

Measurement and meaningfulness in Decision Modeling

Neurons and neural networks II. Hopfield network

COMMITMENT. &SOLUTIONS Act like someone s life depends on what we do. TAKE THE FUZE SAFETY DESIGN QUIZ, PART I UNPARALLELED

25. Two-way ANOVA. 25. Two-way ANOVA 371

Evaluating Social Programs Course: Evaluation Glossary (Sources: 3ie and The World Bank)

AUTOMATED DEBUGGING. Session Leader: Zongxu Mu

LECTURE 5: REACTIVE AND HYBRID ARCHITECTURES

An Escalation Model of Consciousness

A Survey on Code Coverage as a Stopping Criterion for Unit Testing

Review Questions in Introductory Knowledge... 37

A walk in the park with Probabilites and Stats. it::unimi::sps::webcomm

UNIVERSITY OF THE FREE STATE DEPARTMENT OF COMPUTER SCIENCE AND INFORMATICS CSIS6813 MODULE TEST 2

Lecture 2: Foundations of Concept Learning

Agents and Environments

Lecture II: Difference in Difference and Regression Discontinuity

BIOL 458 BIOMETRY Lab 7 Multi-Factor ANOVA

Artificial Intelligence For Homeopathic Remedy Selection

Lesson One: Introduction to Neuroscience Center for Sensorimotor Neural Engineering Lesson Plan Author: Phelana Pang LESSON OVERVIEW

CS 453X: Class 18. Jacob Whitehill

Architecture of an Artificial Immune System

Independent Variables Variables (factors) that are manipulated to measure their effect Typically select specific levels of each variable to test

CHAPTER 4 CONTENT LECTURE 1 November :28 AM

Test-Driven Development

NDT PERFORMANCE DEMONSTRATION USING SIMULATION

Why Tests Don t Pass

Sampling for Impact Evaluation. Maria Jones 24 June 2015 ieconnect Impact Evaluation Workshop Rio de Janeiro, Brazil June 22-25, 2015

CISC453 Winter Probabilistic Reasoning Part B: AIMA3e Ch

A Vision-based Affective Computing System. Jieyu Zhao Ningbo University, China

For general queries, contact

Automatic Fault Tree Derivation from Little-JIL Process Definitions

Multi Parametric Approach Using Fuzzification On Heart Disease Analysis Upasana Juneja #1, Deepti #2 *

arxiv: v1 [cs.lg] 4 Feb 2019

Sequential Decision Making

EVALUATING AND IMPROVING MULTIPLE CHOICE QUESTIONS

Seven Issues on Distributed Situation Awareness Measurement in Complex Sociotechnical

Chapter 13: Introduction to Analysis of Variance

Plan Recognition through Goal Graph Analysis

On the Effectiveness of Specification-Based Structural Test-Coverage Criteria as Test-Data Generators for Safety-Critical Systems

ASE Systems Inc. The Ergonomics & Productivity Specialists

Semiotics and Intelligent Control

Analysis of Environmental Data Conceptual Foundations: En viro n m e n tal Data

IEEE SIGNAL PROCESSING LETTERS, VOL. 13, NO. 3, MARCH A Self-Structured Adaptive Decision Feedback Equalizer

Test design automation: equivalence classes, boundaries, edges and corner cases

A Brief Introduction to Bayesian Statistics

Applying STPA to the Artificial Pancreas for People with Type 1 Diabetes

LEARNING TO USE YOUR FIRST HEARING AID

Modeling Sentiment with Ridge Regression

ISHN Keys to Increasing Participation in an Occupational Safety Process. I recently heard one of my partners at SPS (Safety Performance

Revised Cochrane risk of bias tool for randomized trials (RoB 2.0) Additional considerations for cross-over trials

Hypothesis-Driven Research

Motivation: Fraud Detection

Six Sigma Glossary Lean 6 Society

Chapter 13. Body Mechanics. Elsevier items and derived items 2014, 2010 by Mosby, an imprint of Elsevier Inc. All rights reserved.

Agents and State Spaces. CSCI 446: Artificial Intelligence

Genetically Generated Neural Networks I: Representational Effects

In this module I provide a few illustrations of options within lavaan for handling various situations.

Motivation: Attention: Focusing on specific parts of the input. Inspired by neuroscience.

Numerical Integration of Bivariate Gaussian Distribution

Generalization and Theory-Building in Software Engineering Research

Non Linear Control of Glycaemia in Type 1 Diabetic Patients

AU B. Sc.(Hon's) (Fifth Semester) Esamination, Introduction to Artificial Neural Networks-IV. Paper : -PCSC-504

ICS 606. Intelligent Autonomous Agents 1. Intelligent Autonomous Agents ICS 606 / EE 606 Fall Reactive Architectures

MULTIGRADE, MULTIVARIABLE, CUSUM QUALITY CONTROL

6159 The Moon of Valencia

Continuous/Discrete Non Parametric Bayesian Belief Nets with UNICORN and UNINET

Interaction-Based Test-Suite Minimization

Lecture #4: Overabundance Analysis and Class Discovery

Artificial Intelligence Lecture 7

This module illustrates SEM via a contrast with multiple regression. The module on Mediation describes a study of post-fire vegetation recovery in

Minimizing Uncertainty in Property Casualty Loss Reserve Estimates Chris G. Gross, ACAS, MAAA

Fiddly Fussy Finicky Failures can Deviously Evade Detection

Reliability and Validity

Clustering of MRI Images of Brain for the Detection of Brain Tumor Using Pixel Density Self Organizing Map (SOM)

The Limits of Inference Without Theory

Transcription:

Unit 2 Boundary Value Testing, Equivalence Class Testing, Decision Table-Based Testing ST 8 th Sem, A Div 2017-18 Prof. Mouna M. Naravani

19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 2

Boundary Value Testing Boundary Value Analysis (BVA) Robustness Testing Worst case Testing Special Value Testing Random Testing Examples 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 3

Boundary Value Analysis (BVA) Boundary Value Analysis focuses on the boundary of the input space to identify test cases. The rationale behind value testing is that errors tend to occur near the extreme values of an input variable. Ex: Loop conditions may test for < when they should test for. 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 4

BVA uses input variable values at their: Minimum (min) Just above the minimum (min+) A nominal value (nom) Just below their maximum (max-) Maximum (max) 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 5

Single Fault Assumption 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 6

a x1 b c x1 d 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 7

19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 8

19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 9

Generalizing Boundary Value Analysis BVA can be generalized in 2 ways: By the number of variables (easy) By the kind of ranges (quite difficult) 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 10

Generalizing by the number of variables: If there are functions with n variables, hold all but one at the nominal value and let the remaining variables assume min, min+, nom, max-, max values, repeating this for each variable. Thus, for a function of n variables, BVA yields 4n + 1 unique test cases. 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 11

Generalizing by the kinds of range: Depends on the nature/ type of variables themselves. When no explicit bounds are specified, as in Triangle problems, we usually have to create artificial bounds. The lower bound of side of lengths is 1, but what might be the upper bound? One possibility is, largest representable integer (MAXINT) Or impose an arbitrary upper limit such as 200 or 2000. BVA does not make much sense for Boolean variables: because the extreme values are TRUE or FALSE, and there is no clear choice for the remaining values. 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 12

Limitations of Boundary Value Analysis Boundary Value Analysis works well when the program to be tested is a function of several independent variables that represent bounded physical quantities. 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 13

Triangle Problem Boundary Value Analysis Test Cases 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 14

Commission Problem Boundary Value Analysis Test Cases 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 15

Robustness Testing Extension of Boundary value analysis. In addition to 5 BVA values of a variable, Robustness testing checks what happens when the extrema are exceeded with a value slightly greater than the maximum (max+) and a value slightly less than the minimum (min-). Generalizations and limitations of BVA applies directly to robustness testing. 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 16

19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 17

The most interesting part of robustness testing is not with the inputs, but with the expected outputs. What happens when a physical quantity exceeds its maximum? Ex: if a variable is defined to be within a certain range, values outside that range result in run time errors that abort normal execution. Exception handling choice mandates robustness testing. Robustness testing generates 6n + 1 test cases. 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 18

Worst-Case Testing Here, single value fault of Boundary value analysis is rejected. Worst case testing is interested in What happens when more than one variable has an extreme value. Start with the five-elements set that contains min, min+, nom, max-, max. Then take the cartesian product of these sets to generate test cases. Boundary value analysis test cases are a proper subset of worst-case test cases. Worst-case testing is more thorough form of testing. Also requires more effort. Worst-case testing for a function on n variables generates 5 n test cases. 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 19

19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 20

Robust Worst-case testing This involves the cartesian product of the seven-element sets used in robustness testing. Robust Worst-case testing for a function on n variables generates 7 n test cases. 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 21

Triangle Problem Worst-case test cases 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 22

Triangle Problem Worst-case test cases contd 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 23

NextDate Worst-case test cases 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 24

Special Value Testing Special Value testing occurs when a tester uses domain knowledge, experience with similar programs and information about soft spots to device test cases. No guidelines are used other than to use best engineering judgement. Special value testing is very dependent on the abilities of the tester. 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 25

Random Testing Rather than always choosing min, min+, nom, max-, max values of a bounded variable, use a random number generator to pick test case values. Ex: derived from Visual Basic application, where a x b x = Int((b a + 1) * Rnd + a) Where, function Int returns integer part of floating point number, the function Rnd generates random numbers in the interval [0, 1]. Question: How many random test cases are sufficient? 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 26

In each of the following table, the program went through seven cycles that ended with the hard-to-generate test case. avg./percentage: last line shows what percentage of the random test cases was generated for each column. 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 27

19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 28

19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 29

References Paul C. Jorgensen: Software Testing, A Craftsman s Approach, 3 rd Edition, Auerbach Publications, 2008. 19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 30

19-02-2018 Dept. of CSE, BLDEACET, Vijarapur 31