Black Box testing Exercises. Lecturer: Giuseppe Santucci

Similar documents
Performance Task # 1

Applying Rational Number Operations

FISH 415 LIMNOLOGY UI Moscow

Instruction and Maintenance Manual

Instruction and Maintenance Manual

Chapter 20. Planning Accelerated Life Tests. William Q. Meeker and Luis A. Escobar Iowa State University and Louisiana State University

ITTC Recommended Procedures and Guidelines

Readiness: Scuba Diving

Player Pathway. Player Movement Process. Playing Time

Datasheet: K-30 ASCII Sensor

20. Semi-Closed Circuit Rebreather Instructor, Unit Specific- DOLPHIN, RAY, Atlantis, SUBMATIX ST100 & AZIMUTH

Technical Data Sheet MF010-O-LC

PROVISION OF SERVICES IN RELATION TO AN INVESTIGATION ON THE COASTAL SUBSURFACE GROUNDWATER DISCHARGE FLOW DYNAMICS

Modeling of Oxygen Injection Experiment in Savannah Harbor

3D Inversion in GM-SYS 3D Modelling

Lecture 04 ( ) Hazard Analysis. Systeme hoher Qualität und Sicherheit Universität Bremen WS 2015/2016

Water Search Certification Evaluation

7 th International Conference on Wind Turbine Noise Rotterdam 2 nd to 5 th May 2017

PHYS Tutorial 7: Random Walks & Monte Carlo Integration

Team Blue Immersion. TecRec Overview. Technical Instructor Course

Hands- on Activity 5: Data Quality Control & Assurance

Ascent to Altitude After Diving

Iteration: while, for, do while, Reading Input with Sentinels and User-defined Functions

MIKE NET AND RELNET: WHICH APPROACH TO RELIABILITY ANALYSIS IS BETTER?

In my left hand I hold 15 Argentine pesos. In my right, I hold 100 Chilean

D-Case Modeling Guide for Target System

FIG: 27.1 Tool String

Working with Object- Orientation

Special Purpose Specification NFQ Level 6. Surface Supplied Diving Operations. Draft for Consultation. Teideal as Gaeilge. Level 6.

DIVING PHYSICS EXAMPLE QUESTIONS

11. TDI Semi-Closed Circuit Rebreather Diver Course, Unit Specific- DOLPHIN, RAY, Atlantis, SUBMATIX ST100 & AZIMUTH

SECTION B of Declaration of Blood Pressure Measuring Device Equivalence

Sanction Requirements and Considerations

Apnea Commission CMAS Pool Diver Courses Standards & Outlines Version 2017/02

ROSE-HULMAN INSTITUTE OF TECHNOLOGY Department of Mechanical Engineering. Mini-project 3 Tennis ball launcher

Safety Manual VEGAVIB series 60

MEETPLANNER DESIGN DOCUMENT IDENTIFICATION OVERVIEW. Project Name: MeetPlanner. Project Manager: Peter Grabowski

Modeling of Hydraulic Hose Paths

Webinar: Exploring Pedestrian Responsive Traffic Signal Timing Strategies in Urban Areas

7. TDI Advanced Wreck Diver Course

PHED 1116 Advanced Swimming (1 credit)

Automating Injection Molding Simulation using Autonomous Optimization

Irish Underwater Council CMAS Equivalence Guide & Application Form

Marine Conservation and Research Expedition Training, Examination and Certification Summary

Course 2 Unit 1 Practice

Apnea Commission. CMAS Apnea Diver. Courses. Standards & Outlines 6/23/17

PROTOCOL FOR COMPRESSED AIR PROFICIENCY TESTING (CAPT) PROGRAM SAMPLE ANALYSIS

Understood, Inc. User Guide SCUBA Solutions Version 1.7

ScienceDirect. Microscopic Simulation on the Design and Operational Performance of Diverging Diamond Interchange

Pegas 4000 MF Gas Mixer InstructionManual Columbus Instruments

JAR-23 Normal, Utility, Aerobatic, and Commuter Category Aeroplanes \ Issued 11 March 1994 \ Section 1- Requirements \ Subpart C - Structure \ General

Verification and Validation Pathfinder

Evaluation of Three New Fit Test Protocols for Use with the TSI PortaCount

Measuring Relative Achievements: Percentile rank and Percentile point

TASK 4.2.1: "HAMILTON'S ROBOT" ==============================

Operational Ranking of Intersections: A Novel Prioritization Methodology

Introducing the erdp

Taking Your Class for a Walk, Randomly

Hydrostatics Physics Lab XI

Number Sense Performance Task: Par The Mini-Golf Way! LEVEL 1 Anchor

Locating Tournament Results

Aladin ONE (Matrix) User Manual

Setting up group models Part 1 NITP, 2011

Investigation of the Impacts of Ramp Metering on Traffic Flow With and Without Diversion

Specific Accreditation Criteria Calibration ISO IEC Annex. Mass and related quantities

SECTION B of Declaration of Blood Pressure Measuring Device Equivalence

GA-300 Gas Analyzer. Technical Note. Overview. Front Panel. iworx Systems, Inc. GA-300

Digital Level Control One and Two Loops Proportional and Integral Control Single-Loop and Cascade Control

Diving Operations Procedure

SPECIFIC FACTORS THAT MAY AFFECT PROFILES

SSO 700 Integrated Watershed Action Plan: Continuous Calibration of a Model

Autodesk Moldflow Communicator Process settings

CORESTA RECOMMENDED METHOD N 6

Continuous Gas Analysis In situ laser gas analyzers TÜV and MCERTS add-on for LDS 6 operating instructions Compact Operating Instructions

The impact of freediving on psychomotor performance and blood catecholamine concentration

Triad Trickery: Playing with Sport and Games. Strategy

CS 341 Computer Architecture and Organization. Lecturer: Bob Wilson Cell Phone: or

Road Conversion Study Plumas Street

Constructing Task: Water Balloon Fun!

Blackwave Dive Table Creator User Guide

SUBPART C - STRUCTURE

Level 2 Onscreen Functional Skills Mathematics. Sample Assessment Material. Mark Scheme. November 2010

Every things under control High-Integrity Pressure Protection System (HIPPS)

Divers Alert Network 2007 Internship Final Report

Exercise 8. Closed-Loop Pressure Control, Proportional-Plus-Integral Mode EXERCISE OBJECTIVE

Lecture 10. Support Vector Machines (cont.)

Track B: Particle Methods Part 2 PRACE Spring School 2012

Lab 2: Probability. Hot Hands. Template for lab report. Saving your code

Technical Bulletin, Meter Factor Linearization

SoundCast Design Intro

Well Integrity Log Interpretation (Magnetic Thickness Detector and 56-Arm Multi-Finger Caliper)

Lesson 22: Average Rate of Change

UNIVERSITY OF WATERLOO

Semi-Closed (SC-) Rebreather Advanced SC Rebreather STANDARDS AND REQUIREMENTS TRAINING PROGRAM ( VERSION 2000/00 )

Basic STPA Tutorial. John Thomas

Welcome to the Bollard Pull Calculator for Barges!

Tension Cracks. Topics Covered. Tension crack boundaries Tension crack depth Query slice data Thrust line Sensitivity analysis.

Sconser Quarry, Caol Mor

Evaluation and Improvement of the Roundabouts

Review for MA098 Real Numbers and Variables

Transcription:

Black Box testing Exercises Lecturer: Giuseppe Santucci

Exercise 1 A software program for the simulation of scuba diving with special gas mixture gives indication about maximum time of stay on the bottom, based on a) percentage of oxygen present in the mixture and b) the maximum depth. The software takes as input the percentage of oxygen: acceptable values are 21..36 % maximum depth: acceptable values are 10..50 meters Gives as output An integer that corresponds to the maximum duration of the immersion at that depth expressed in minutes. Design, based on black-box techniques, test cases for this functionality. Consider that based on the specification document, if the percentage of oxygen is more than 30%, the maximum acceptable depth is 40 meters.

Identify equivalent classes Classes have to be listed and each has to be assigned a unique ID Useful criteria for defining the equivalent classes are Intervals of values Number of values Sets of values Constraints Format errors

Intervals of values VC1 oxygen interval [21,36] IC2 oxygen <21 IC3 oxygen >36 VC4 depth interval [10,50] IC5 depth <10 IC6 depth >50

Number of values VC7 IC8 IC9 2 integers as input < 2 integers as input > 2 integers as input IC10 IC11 format error on the first input data format error on the second input data

Constraints VC12 if oxygen > 30 then depth <= 40 IC13 if oxygen > 30 then depth > 40

Test cases necessary for covering the equivalent classes Test case Covered classes Oxygen depth Expected result/behavior T1: 31 35 (VC1, VC4, VC7, VC12) : an integer T2: 10 35 (IC2 oxygen<21) : oxygen too low T3: 41 35 (IC3 oxygen>36) : oxygen too high T4: 31 5 (IC5 depth<10) : depth too low T5: 29 55 (IC6 depth>50) : depth too high T6: 31 (IC8 less than 2 int) : too few input data T7: 31 35 22 (IC9 more than 2 int) : too many input data T8: 33.0 35 (IC10) : oxygen format error T9: 31 23.0 (IC11) : depth format error T10: 35 45 (IC13 ) : depth too high wrt oxygen

Boundary value analysis Intervals of input data Design test cases Equal to the boundary values Immediately above the boundary values Immediately below the boundary values For valid classes (one at a time) T11: 20 30 ; 21 30; 22 30 ; 35 30 ; 36 30 ; 37 30 (VC1 oxygen [21,36]) T12: 25 9 ; 25 10 ; 25 11 ; 25 49 ; 25 50 ; 25 51 (VC4 depth [10,50])

Boundary value analysis Number of input data Design test cases For the minimum number of values For the maximum number of values A number of values immediately below the minimum A number of values immediately above the maximum In this case maximum and minimum coincide (2) and we already tested 1 2 and 3 (T6, T1, T7)

Boundary value analysis Constrains Design test cases That satisfy the condition Immediately above Immediately below This activity makes sense only for constraints based on numerical comparisons, e.g. less than If oxygen > 30 then depth <= 40 Minimum value that makes the if condition true: 31 -> 30, 31, and 32 Maximum value that makes the then condition true : 40 -> 39, 40, and 41 30 39 ; 30 40 ; 30 41 31 39 ; 31 40 ; 31 41 32 39 ; 32 40 ; 32 41 Error

Boundary value analysis Intervals related to output We don t known what is the rule that relates input with output However, it makes sense to test the minimum value for the two inputs T11: 21 10 And the maximum values: T12: 36 40 T13: 30 50

Exercise 2 A web application for hotel booking takes as input the number of people that need the room (min 3), the arrival date, the departure date (must be after at most 15 days) and the room type (smoking/non-smoking) Dates must be entered in the dd/mm/yy format Codes for smoking is s, code for non-smoking is ns Design test cases for such functionality based on black box testing technique. Indicate what techniques are used and the identified equivalent classes.

Identify equivalent classes Classes have to be listed and each has to be assigned a unique ID Useful criteria for defining the equivalent classes are Intervals of values Number of values Sets of values Constraints

Intervals of values VC1 people [3,5] (arbitrary) IC2 people < 3 IC3 people >5

Number of values VC4 4 input arguments IC5 less than 4 input arguments IC6 more than 4 input arguments IC7 format error on people data IC8 format error on arrival date IC9 format error on departure date IC10 format error on room type

Sets of values VC11 room type = s VC12 room type = ns IC13 room type { s, ns }

Constraints VC14 data_out - data_in <= 15 VC15 data_out - data_in > 0 IC16 data_out - data_in >15 IC17 data_out - data_in <= 0

Test cases necessary for covering the equivalent classes T1:4,3/10/04, 5/10/04, s (VC1,VC4,VC11,VC14,VC15):OK T2:4,3/10/04, 5/10/04, ns (VC12): OK T3:2,3/10/04, 5/10/04, s (IC2): too few people T4:6,3/10/04, 5/10/04, ns (IC3): too many people T5:4,3/10/04, 5/10/04 (IC5): too few inputs T6:4,3/10/04, 5/10/04, s, 5 (IC6): too many inputs T7:4.0,3/10/04, 5/10/04, s (IC7): format error on people T8:4,3/october/04, 5/10/04, s (IC8): format error data_in T9:4,3/10/04, 5/october/04, s (IC9): format error data_out T10:4,3/10/04, 5/10/04, 1 (IC10, IC13): format err room type T11:4,3/10/04, 5/10/04, veg (IC13): error room type T12:4,3/10/04, 25/10/04, s (IC16): too many days T12:4,3/10/04, 3/10/04, s (IC17): too few days

Boundary value analysis Intervals related to input data people [3,5]--> 2,3,4 & 4,5,6 Design test cases Equal to the boundary values Immediately above the boundary values Immediately below the boundary values For valid classes (one at a time) Error T13: 2,3/10/04, 5/10/04, s 3,3/10/04, 5/10/04, s 4,3/10/04, 5/10/04, s 4,3/10/04, 5/10/04, s 5,3/10/04, 5/10/04, s 6,3/10/04, 5/10/04, s

Boundary value analysis Number of input data Design test cases For the minimum number of values For the maximum number of values A number of values immediately below the minimum A number of values immediately above the maximum In this case maximum and minimum coincide (4) and we already tested 3 4 and 5 (T5, T1, T6)

Boundary value analysis Constrains Design test cases That satisfy the condition Immediately above Immediately below data_out - data_in <= 15 : maximum value making the condition true: 15 data_out - data_in = 14 data_out - data_in = 15 data_out - data_in = 16 T14: 4, 3/10/04, 17/10/04, s T15: 4, 3/10/04, 18/10/04, s T16: 4, 3/10/04, 19/10/04, s Error

Boundary value analysis Constrains Design test cases That satisfy the condition Immediately above Immediately below data_out-data_in > 0 data_out - data_in = -1 (additional case for negative values) data_out - data_in = 0 data_out - data_in = 1 data_out - data_in = 2 T17: 4, 3/10/04, 2/10/04, s T18: 4, 3/10/04, 3/10/04, s T19: 4, 3/10/04, 4/10/04, s T20: 4, 3/10/04, 5/10/04, s Error