Testcover.com 1 Functional Dependence and Equivalence Class Factors in Combinatorial Test Designs George B. Sherwood Copyright © 2014 Testcover.com, LLC.

Slides:



Advertisements
Similar presentations
BODY MASS INDEX (B.M.I.).
Advertisements

Obesity in America. Definitions Obesity: Having a very high amount of body fat in relation to lean body mass, or Body Mass Index (BMI) of 30 or higher.
Childhood Obesity Landscape. Objectives for This Session  Define childhood obesity (CHO) and understand its scope and effects  Share who some of the.
Carol White Physical Education Grant First Year Evaluation & Report.
Body Composition Reference male: _________ % fat _________ % muscle _________ % bone _________ % other Reference female: _________ % fat _________ % muscle.
BUILDING JAVA PROGRAMS CHAPTER 4 Conditional Execution.
1 BUILDING JAVA PROGRAMS CHAPTER 4 CONDITIONAL EXECUTION.
Testcover.com Copyright © 2008 Testcover.com, LLC. All rights reserved. Pairwise Testing Comes of Age George B. Sherwood, Ph.D. Thursday May 8, 1:30 p.m.
 Calorie (aka. ______________) ◦ Amount of ____________ needed to __________ the temperature of 1 _________ of pure water by 1C  ______ calories =
CDC Growth Charts 2000 Centers for Disease Control and Prevention National Center for Chronic Disease Prevention and Health Promotion Division of Nutrition.
What is Body Mass Index (BMI) What is Body Mass Index (BMI)
Calculating Body Mass Index (BMI) Body Mass Index (BMI) is used to assess a persons body weight. The number given allows you to see if you are underweight,
Body Mass Index. What is Body Mass Index(BMI)? measurement of body fat based on height and weight.
Daily Trivia This little girl is sick. And sad .
Reference Population: Standard Normal Curve
(Insert your name here) Support Children’s Healthy Growth (Insert your name here) Workshop Presentation.
BPK303 Weight for Height Spring 2014.
Body Mass Index (BMI) This is the most commonly used index of over or underweight Body Mass Index = body weight ( Height) squared ClassificationBMI.
Weight management.
Lesson 1 Bell Ringer Define Body image and self esteem.
Click to see what you have to do…. When you think you have the correct answer click on the lettered fruit next to the answer you think is correct and.
Using SPSS for Chi Square UDP 520 Lab 5 Lin November 8 th, 2007.
JOURNAL  List 3 occupations that you think burn the most calories.  List 3 occupations that you think burn the least amount of calories.
Determining Healthy Weight Chapter 5. Body Weight Includes the weight of: Bones, Muscle, Fat, and other tissues. People have different body compositions.
Definitions: Definitions: Obesity: Body Mass Index (BMI) of 30 or higher. Obesity: Body Mass Index (BMI) of 30 or higher. Body Mass Index (BMI): A measure.
Building Java Programs Chapter 4 Conditional Execution Copyright (c) Pearson All rights reserved.
Conditionals (Cont’d). 2 Nested if/else question Formula for body mass index (BMI): Write a program that produces output like the following: This program.
WHAT IS BMI? BMI BODY MASS INDEX- BASED ON HEIGHT AND WEIGHT TO DETERMINE AMOUNT OF FAT AN INDIVIDUAL HAS OBESE BMI > 30.
Health, Nutrition, Obesity. Quick Facts Infants increase their height 50% by age one.Infants increase their height 50% by age one. Infants increase their.
Take A Child To The Doctor Day Orientation September 2015.
Physical activity and fitness Textbook pp Fitness, Weight Management, & Nutrition By: Mr. Springer.
Fitness Goal 7:01 Identify factors that affect fitness.
Testcover.com 1 Embedded Functions in Combinatorial Test Designs George B. Sherwood Copyright © 2015 Testcover.com, LLC. All rights reserved.
Calculation.
Programming for GCSE Topic 6.2: Testing T eaching L ondon C omputing William Marsh School of Electronic Engineering and Computer Science Queen Mary University.
The following personal financial relationships with commercial interests relevant to this presentation existed during the past 12 months: DISCLOSURES.
Managing Weight and Body Composition. Maintaining a Healthy Weight Body Image: The way your see your body For many people, it can be tied to perception.
How to Calculate Your Body Mass Index (BMI)
MATH AND HEALTHCARE PROFESSION AS A MEDICAL ASSISTANT MM Konette Davis
Measuring the Effect of Obesity on Earnings Xiaoshu Han Department of Economcs.
DIETING.  BMR = Basic metabolic rate  Rate at which you metabolize.
Black Box Unit Testing What is black-box testing? Unit (code, module) seen as a black box No access to the internal or logical structure Determine.
© Food – a fact of life 2009 Energy Extension. © Food – a fact of life 2009 Learning objectives To define energy and explain why it is needed. To identify.
Body Weight Management Do Now: List 3 types of physical activity you can do or have done in the past week.
Males Females © Crown copyright and database rights 2012 Ordnance Survey Adult obesity: BMI ≥ 30kg/m 2.
objective By the end of this lesson, you will be able to :  Identify the accurate ways to measure and record height and weight.
(*BMI ≥30, or ~ 30 lbs. overweight for 5’ 4” person) No Data
FITNESS WALKING. HEART RATES Target Heart Rate Resting Heart Rate Basal Metabolic Heart Rate Max Heart Rate.
Journal List 3 occupations that you think burn the most calories.
How to Calculate Your Body Mass Index (BMI)
Chapter 12 Fitness.
Body Composition and Weight
Building Java Programs Chapter 4
Weightproblems by teenagers
Lecture 4: Conditionals
BMI: Body Mass Index.
Obesity Trends* Among U.S. Adults BRFSS, 1985
George B. Sherwood Testcover.com
Fitness walking.
Since 1985, obesity among U.S. adults has risen dramatically
Building Java Programs
Obesity Trends* Among U.S. Adults BRFSS, 1990, 2000, 2010
Factoring if/else code
Obesity Trends* Among U.S. Adults BRFSS, 1990, 1999, 2009
Building Java Programs
Obesity Trends - U.S. Adults (1985 – 2010)
Building Java Programs
Warmup Normal Distributions
Factoring if/else code
Obesity Trends Among U.S. Adults Between 1985 and 2010
Presentation transcript:

Testcover.com 1 Functional Dependence and Equivalence Class Factors in Combinatorial Test Designs George B. Sherwood Copyright © 2014 Testcover.com, LLC. All rights reserved.

Testcover.com 2 This talk is about: Evaluation of test design coverage before test case generation – Partition includes test case generation combinations – Equivalence class includes expected result combinations – Typically a partition spans multiple equivalence classes – Formulas for equivalence class coverage Design choices to improve coverage – Use increased generation strength t – Align partitions with equivalence classes as needed Copyright © 2014 Testcover.com, LLC. All rights reserved.

Testcover.com 3 Body mass index report requirements R1. Input data for patient database table: Age in years Weight in pounds Height in inches Sex (female, male) Intake in kilocalories per day R2. Compute & store body mass index: BMI = 703 x Weight / Height 2 R3. Age ≥ 65: Generate Medicare report Copyright © 2014 Testcover.com, LLC. All rights reserved.

Testcover.com 4 Body mass index report requirements continued R4. Age < 20 Generate Child report: Girl, percentile from female BMI-age table Boy, percentile from male BMI-age table R5. Age ≥ 20 Generate Adult report: Underweight, BMI < 18.5 Normal, 18.5 ≤ BMI < 25.0 Overweight, 25.0 ≤ BMI < 30.0 Obese, 30.0 ≤ BMI Copyright © 2014 Testcover.com, LLC. All rights reserved.

Functional dependence 5 Mapping from a determinant set to one element in a dependent set Examples: y = sin( x ) US postal address index → ZIP code l -tuple → m -tuple BMI = 703 x Weight / Height 2 determinant factor values → functionally dependent factor values Testcover.com Copyright © 2014 Testcover.com, LLC. All rights reserved.

Testcover.com 6 Functionally dependent test factors A test factor is functionally dependent when its value is identified by l determinant factors Example: BMI is determined by l = 2 factors, Weight & Height Weight, Height → BMI Independent factors which are not part of this relation are nondeterminant Example: n = 3 nondeterminant factors, Age, Sex & Intake Copyright © 2014 Testcover.com, LLC. All rights reserved.

Testcover.com 7 Equivalence classes Equivalence classes group test factor combinations by similar expected results Example: Age ≤ 0 leads to invalid, error handling class Classes help insure test design coverage Example: The Medicare, Child and Adult reports each have multiple, valid equivalence classes ReportValid equivalence classes Medicare noyes Child nogirlboy Adult nounderweightnormaloverweightobese Copyright © 2014 Testcover.com, LLC. All rights reserved.

Testcover.com 8 Equivalence classes are functionally dependent Age, Weight, Height→ Adult classes32 Input, configuration values→ result → equivalence class Equivalence class factor examples: ln Age→ Medicare classes14 Age, Sex→ Child classes23 Equivalence class factor values Factors for test case generationFactors determined from test cases Independent input factorsFunctionally dependent factors AgeWeightHeightSexIntakeMedicareChildAdult female 2000 nogirlno male 3000 yesnonormal Copyright © 2014 Testcover.com, LLC. All rights reserved.

9 Combinations to reach equivalence classes – Medicare Input factorsEquivalence class factors DeterminantNondeterminant Functionally dependent AgeWeightHeightSexIntakeMedicareChildAdult 42 no 67 yes Testcover.com Combinations to reach equivalence classes – Child Input factorsEquivalence class factors DeterminantNondeterminantDeterminant Non- determinant Functionally dependent AgeWeightHeightSexIntakeMedicareChildAdult 19 femalegirl 19 maleboy 42 or 67 no Combinations to reach equivalence classes – Adult Input factorsEquivalence class factors DeterminantNondeterminant Functionally dependent AgeWeightHeightSexIntakeMedicareChildAdult 19 no 42 or normal 42 or underweight 42 or obese 42 or overweight Determinant coverage Copyright © 2014 Testcover.com, LLC. All rights reserved.

Testcover.com 10 Adult report classes 71 in 64 in 131 lb 180 lb Copyright © 2014 Testcover.com, LLC. All rights reserved.

Functionally dependent factor j – Child Input factorsEquivalence class factors DeterminantNondeterminantDeterminant Non- determinant Functionally dependent AgeWeightHeightSexIntakeMedicareChildAdult Nondeterminant subarray J – Child Input factorsEquivalence class factors DeterminantNondeterminantDeterminant Non- determinant Functionally dependent AgeWeightHeightSexIntakeMedicareChildAdult Nondeterminant coverage 11 Nondeterminant factors provide coverage unrelated to the functional dependence A nondeterminant subarray J consists of a functionally dependent factor and its n nondeterminant factors. Example: J has nondeterminant strength s when every subarray of s factors including the functionally dependent factor has every s -tuple in at least one test case. Example: When s = 3 each pair of nondeterminant factor values is associated with each Child equivalence class. Testcover.com Copyright © 2014 Testcover.com, LLC. All rights reserved.

Test cases from one strength-4 partition for multiple equivalence classes – Child Input factorsEquivalence class factorsAn expected result DeterminantNondeterminantDeterminant Non- determinant Functionally dependent Test CaseAgeWeightHeightSexIntakeMedicareChildAdultBMI female2000nogirlno male3000noboyno female3000nogirlno male2000noboyno female3000nogirlno male2000noboyno female2000nogirlno male3000noboyno female3000no normal22.5 … Test cases from one strength-4 partition for multiple equivalence classes – Child Input factorsEquivalence class factorsAn expected result DeterminantNondeterminantDeterminant Non- determinant Functionally dependent Test CaseAgeWeightHeightSexIntakeMedicareChildAdultBMI female2000nogirlno male3000noboyno female3000nogirlno male2000noboyno female3000nogirlno male2000noboyno female2000nogirlno male3000noboyno female3000no normal22.5 … Test cases from one strength-4 partition for multiple equivalence classes – Child Input factorsEquivalence class factorsAn expected result DeterminantNondeterminantDeterminant Non- determinant Functionally dependent Test CaseAgeWeightHeightSexIntakeMedicareChildAdultBMI female2000nogirlno male3000noboyno female3000nogirlno male2000noboyno female3000nogirlno male2000noboyno female2000nogirlno male3000noboyno female3000no normal22.5 … Test cases from one strength-4 partition for multiple equivalence classes – Child Input factorsEquivalence class factorsAn expected result DeterminantNondeterminantDeterminant Non- determinant Functionally dependent Test CaseAgeWeightHeightSexIntakeMedicareChildAdultBMI female2000nogirlno male3000noboyno female3000nogirlno male2000noboyno female3000nogirlno male2000noboyno female2000nogirlno male3000noboyno female3000no normal22.5 … Test cases from one strength-4 partition for multiple equivalence classes – Child Input factorsEquivalence class factorsAn expected result DeterminantNondeterminantDeterminant Non- determinant Functionally dependent Test CaseAgeWeightHeightSexIntakeMedicareChildAdultBMI female2000nogirlno male3000noboyno female3000nogirlno male2000noboyno female3000nogirlno male2000noboyno female2000nogirlno male3000noboyno female3000no normal22.5 … 12 Age, Sex → Child classes s = t - l + 1 = = 3. All pairs of nondeterminant factor values are associated with each Child class. s ≤ n + 1 because there are n + 1 columns in the subarray. Testcover.com Copyright © 2014 Testcover.com, LLC. All rights reserved. Nondeterminant strength formula s = t - l + 1

Coverage formulas 13 Multiple equivalence classes – Coverage depends on l Example: t ≥ 3 to reach all classes; choose t = 3 Medicare classes: l = 1; s = 3 Child classes: l = 2; s = 2 Adult classes: l = 3; s = 1 (coverage problem) One equivalence class – Coverage is independent of l Example: any strength to reach one class; choose t = 2 s = 3 for each class in its own partition Partition contains Strength to cover equivalence class(es) Nondeterminant strength multiple values for an equivalence class factor t ≥ l s = t – l + 1, s = n + 1, t ≤ l + n t ≥ l + n Testcover.com one value for an equivalence class factor any s = t + 1, s = n + 1, t ≤ n t ≥ n Copyright © 2014 Testcover.com, LLC. All rights reserved.

14 One strength-3 partition for multiple equivalence classes – Medicare Input factorsEquivalence class factorsAn expected result DeterminantNondeterminant Functionally dependent Test CaseAgeWeightHeightSexIntakeMedicareChildAdultBMI female 2000 nogirlno male 3000 noboyno male 2000 noboyno female 3000 nogirlno female 2000 nogirlno male 3000 noboyno female 2000 no normal male 3000 no normal female 3000 no underweight male 2000 no obese female 2000 no overweight male 3000 no overweight female 2000 yesnonormal male 3000 yesnonormal female 3000 yesnounderweight male 2000 yesnoobese female 2000 yesnooverweight male 3000 yesnooverweight25.1 Age → Medicare classes s = t - l + 1 = = 3. All pairs of nondeterminant factor values are associated with each Medicare class. Testcover.com Copyright © 2014 Testcover.com, LLC. All rights reserved.

15 One strength-3 partition for multiple equivalence classes – Child Input factorsEquivalence class factorsAn expected result DeterminantNondeterminantDeterminant Non- determinant Functionally dependent Test CaseAgeWeightHeightSexIntakeMedicareChildAdultBMI female 2000 nogirlno male 3000 noboyno male 2000 noboyno female 3000 nogirlno female 2000 nogirlno male 3000 noboyno female 2000 no normal male 3000 no normal female 3000 no underweight male 2000 no obese female 2000 no overweight male 3000 no overweight female 2000 yesnonormal male 3000 yesnonormal female 3000 yesnounderweight male 2000 yesnoobese female 2000 yesnooverweight male 3000 yesnooverweight25.1 Age, Sex → Child classes s = t - l + 1 = = 2. All nondeterminant factor values are associated with each Child class. Testcover.com Copyright © 2014 Testcover.com, LLC. All rights reserved.

16 One strength-3 partition for multiple equivalence classes – Adult Input factorsEquivalence class factorsAn expected result DeterminantNondeterminant Functionally dependent Test CaseAgeWeightHeightSexIntakeMedicareChildAdultBMI female 2000 nogirlno male 3000 noboyno male 2000 noboyno female 3000 nogirlno female 2000 nogirlno male 3000 noboyno female 2000 no normal male 3000 no normal female 3000 no underweight male 2000 no obese female 2000 no overweight male 3000 no overweight female 2000 yesnonormal male 3000 yesnonormal female 3000 yesnounderweight male 2000 yesnoobese female 2000 yesnooverweight male 3000 yesnooverweight25.1 Age, Weight, Height → Adult classes s = t - l + 1 = = 1. Some nondeterminant factor values might not be associated with each Adult class. Neither male nor 2000 is associated with the underweight class. Testcover.com Copyright © 2014 Testcover.com, LLC. All rights reserved.

17 One strength-4 partition for multiple equivalence classes – Adult Input factorsEquivalence class factorsAn expected result DeterminantNondeterminant Functionally dependent Test CaseAgeWeightHeightSexIntakeMedicareChildAdultBMI female2000nogirlno male3000noboyno female3000nogirlno male2000noboyno female3000nogirlno male2000noboyno female2000nogirlno male3000noboyno female3000no normal male2000no normal female2000no underweight male3000no underweight female2000no obese male3000no obese female3000no overweight male2000no overweight female2000yesnonormal male3000yesnonormal female3000yesnounderweight male2000yesnounderweight female3000yesnoobese male2000yesnoobese female2000yesnooverweight male3000yesnooverweight25.1 Age, Weight, Height → Adult classes s = t - l + 1 = = 2. All nondeterminant factor values are associated with each Adult class. Testcover.com Copyright © 2014 Testcover.com, LLC. All rights reserved.

One strength-2 partition for multiple equivalence classes – Medicare Input factorsEquivalence class factorsAn expected result DeterminantNondeterminant Functionally dependent Test CaseAgeWeightHeightSexIntakeMedicareChildAdultBMI uw male 3000 yesnounderweight16.0 uw female 2000 yesnounderweight18.4 uw male 2000 no underweight17.4 uw male 2000 no underweight16.9 uw female 3000 no underweight16.9 uw female 3000 no underweight17.4 One strength-2 partition for one equivalence class – Adult underweight Input factorsEquivalence class factorsAn expected result DeterminantNondeterminant Functionally dependent Test CaseAgeWeightHeightSexIntakeMedicareChildAdultBMI uw male 3000 yesnounderweight16.0 uw female 2000 yesnounderweight18.4 uw male 2000 no underweight17.4 uw male 2000 no underweight16.9 uw female 3000 no underweight16.9 uw female 3000 no underweight One partition for each Adult underweight class: Age, Weight, Height → Adult classes s = t + 1 = = 3. All pairs of nondeterminant factor values are associated with each Adult class. One partition for both Medicare classes: Age → Medicare classes s = t - l + 1 = = 2. All nondeterminant factor values are associated with each Medicare class. Boundary cases: Medicare: lower Age Adult: lower Age Adult, underweight: upper BMI Testcover.com Copyright © 2014 Testcover.com, LLC. All rights reserved.

Testcover.com 19 Adult report classes and boundaries 66 in 70 in 64 in l b l b l b l b l b l b 211 lb 61 in 72 in 118 lb Copyright © 2014 Testcover.com, LLC. All rights reserved.

Testers have choices 20 Copyright © 2014 Testcover.com, LLC. All rights reserved. Testcover.com Equivalence class factor values in a partition:multiple1 Number of partitions:1multiple Test target:largesmaller Dependence on oracle:somemore Freedom to test equivalence class boundaries:limitedyes Strength to reach equivalence class: l any Nondeterminant strength ( s ≤ n + 1): t – l + 1 t + 1