1 Software Testing and Quality Assurance Lecture 25 – Testing Interactions (Chapter 6)

Slides:



Advertisements
Similar presentations
Copula Representation of Joint Risk Driver Distribution
Advertisements

Class Testing ECEN5033 University of Colorado. January 27, 2002 ECEN5033 University of Colorado -- Class Testing 2 Overview Class Testing Testing Interactions.
Chapter 4 Randomized Blocks, Latin Squares, and Related Designs
Fundamentals of Data Analysis Lecture 6 Testing of statistical hypotheses pt.3.
Section 1.3 Experimental Design © 2012 Pearson Education, Inc. All rights reserved. 1 of 61.
Section 1.3 Experimental Design.
Chapter 7 Testing Class Hierarchies. SWE 415 Chapter 7 2 Reading Assignment  John McGregor and David A. Sykes, A Practical Guide to Testing Object-Oriented.
Chapter 10: Sampling and Sampling Distributions
1 Software Testing and Quality Assurance Lecture 12 - The Testing Perspective (Chapter 2, A Practical Guide to Testing Object-Oriented Software)
Audit Sampling for Tests of Controls and Substantive Tests of Transactions Chapter 15.
1 Software Testing and Quality Assurance Lecture 21 – Class Testing Basics (Chapter 5, A Practical Guide to Testing Object- Oriented Software)
1 Software Testing and Quality Assurance Lecture 10 - The Testing Perspective (Chapter 2, A Practical Guide to Testing Object-Oriented Software)
1 Software Testing and Quality Assurance Lecture 28 – Testing Class Hierarchies.
1 Software Testing and Quality Assurance Lecture 24 – Testing Interactions (Chapter 6)
Sampling Methods and Sampling Distributions Chapter.
January 27, 2002 ECEN5033 University of Colorado -- Class Testing 1 Adequacy of a Class Test Suite Ideally – exhaustively test each class Practically –
1 Business 90: Business Statistics Professor David Mease Sec 03, T R 7:30-8:45AM BBC 204 Lecture 2 = Finish Chapter “Introduction and Data Collection”
Trip Generation Modeling—Cross-Classification
1 Software Testing and Quality Assurance Lecture 20 – Class Testing Basics (Chapter 5, A Practical Guide to Testing Object- Oriented Software)
1 Software Testing and Quality Assurance Lecture 30 – Testing Systems.
Testing Interfaces in Multi-Program Systems ECEN5043 Software Engineering of Multiprogram Systems University of Colorado, Boulder.
Marketing Information Chapter 4 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall.
Handouts Software Testing and Quality Assurance Theory and Practice Chapter 9 Functional Testing
January 27, 2002 ECEN5033 University of Colorado -- Class Testing 1 Specifying interactions Remainder of slides assume Operations defined by a class are.
Slide Slide 1 Chapter 6 Normal Probability Distributions 6-1 Overview 6-2 The Standard Normal Distribution 6-3 Applications of Normal Distributions 6-4.
When we think only of sincerely helping all others, not ourselves,
Sampling Distribution
Experimental Design 1 Section 1.3. Section 1.3 Objectives 2 Discuss how to design a statistical study Discuss data collection techniques Discuss how to.
6 Chapter Confidence Intervals © 2012 Pearson Education, Inc.
Chapter 4 Statistics. 4.1 – What is Statistics? Definition Data are observed values of random variables. The field of statistics is a collection.
Confidence Intervals for the Mean (σ known) (Large Samples)
1-3 Data Collection and Sampling Techniques Surveys are the most common method of collecting data. Three methods of surveying are: 1) Telephone surveys.
_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition1  Wiley and the.
1/19/00 Survey Methodology Sampling EPID 626 Lecture 2.
Copyright © 2015, 2012, and 2009 Pearson Education, Inc. 1 Chapter Introduction to Statistics 1.
CHAPTER 12 DETERMINING THE SAMPLE PLAN. Important Topics of This Chapter Differences between population and sample. Sampling frame and frame error. Developing.
Software Testing Reference: Software Engineering, Ian Sommerville, 6 th edition, Chapter 20.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
S2 Chapter 6: Populations and Samples
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
Software Testing and Quality Assurance Testing Interactions.
1 Sampling This lecture ties into Terre Blanche chapter 15 Now you have a design, and a protocol plus measures – who do you run it on? Selecting a group.
Section 1.3 Experimental Design.
1By ILTAF MEHDI, IT Lecturer, MIHE, Kabul CHAPTER_NO : 05 Random Variables.
SAMPLING Why sample? Practical consideration – limited budget, convenience, simplicity. Generalizability –representativeness, desire to establish the broadest.
MATH Section 3.1.
1 Software Testing and Quality Assurance Lecture 17 - Test Analysis & Design Models (Chapter 4, A Practical Guide to Testing Object-Oriented Software)
Software Testing Reference: Software Engineering, Ian Sommerville, 6 th edition, Chapter 20.
Chapter Confidence Intervals 1 of 31 6  2012 Pearson Education, Inc. All rights reserved.
©2012 Prentice Hall Business Publishing, Auditing 14/e, Arens/Elder/Beasley Audit Sampling for Tests of Controls and Substantive Tests of Transactions.
©2005 Prentice Hall Business Publishing, Auditing and Assurance Services 10/e, Arens/Elder/Beasley Audit Sampling for Tests of Controls and Substantive.
Section 6.1 Confidence Intervals for the Mean (Large Samples) © 2012 Pearson Education, Inc. All rights reserved. 1 of 83.
Basics of Multivariate Probability
Microsoft Excel 2007 The L Line The Express Line to Learning L Line
Test for Goodness of Fit
Sampling: Design and Procedures
Chapter 5 Hypothesis Testing
Sampling: Design and Procedures
Section 6-4 – Confidence Intervals for the Population Variance and Standard Deviation Estimating Population Parameters.
Chi Square Two-way Tables
Introduction to Statistics
Chapter 5 Normal Probability Distributions.
Section Way Tables and Marginal Distributions
Chapter 11 Analyzing the Association Between Categorical Variables
Confidence Intervals for the Mean (Large Samples)
 .
Chapter 5 Normal Probability Distributions.
Presentation transcript:

1 Software Testing and Quality Assurance Lecture 25 – Testing Interactions (Chapter 6)

2 Lecture Outline Sampling Test Cases Orthogonal array testing

3 Sampling test cases Population: all possible test cases that can be executed A sample is a subset of a population that has been selected based on some probability distribution.

4 Sampling test cases Possibilities for determining which test cases to select Based on probability distribution A probability distribution defines, for each data value in a population, a set of allowable values and the probability that value will be selected. Uniform probability distribution Each value in the population is assigned the same selection probability For example, Probability distribution based on the use profile

5 Sampling test cases (cont...) A stratified sample is a set of samples in which each sample represents a specific subpopulation Example: select a sample of test cases from the use cases of each actor Stratified sample tests are selected from a series of categories.

6 Sampling test cases (cont...) Use of random number generator in sampling Advantage: all values have equal probability Disadvantage: test cases cannot be reproduced (you may let the test driver record the generated values) Class family: a set of classes related by inheritance.

7 Sampling test cases: Orthogonal array testing (OATS) Orthogonal arrays provide a specific sampling technique that seeks to limit the explosion by defining pair-wise combinations of a set of interacting objects. An orthogonal array is an array of values in which each column represents a factor (a variable in an experiment).

8 Sampling test cases: Orthogonal array testing (OATS) It represents a specific class family (a class and its children) E.g. 3 factors with 3 levels each (27 possibilities), with pair-wise only 9 possibilities

9 Sampling test cases: OATS Example Decide how many independent variables will be tested for interaction. This will map to the Factors of the array. Decide the maximum number of values that each independent variable will take on. This will map to the Levels of the array.

10 Sampling test cases: OATS Example Find a suitable orthogonal array. A suitable array is one that has at least as many Factors as needed from Step 1 and has at least as many levels for each of those factors as decided in Step 2. Map the Factors and values onto the array. Transcribe the Runs into test cases.

11 Sampling test cases: OATS example Number of states: Class A: 2 Class B: 3 Class P: 1 Class C: 2 Class D: 3 Class E: 3 * State transition diagrams are not shown

12 Sampling test cases: OATS example (cont...) Step 1: Identify all factors: sending hierarchy, receiving hierarchy, parameter position in the message (six factors in the example: class A hierarchy, class P hierarchy, class C hierarchy and factors associated with each class hierarchy)

13 Sampling test cases: OATS example (cont...) Step 2: Determine levels for each factor by considering the set of possible values: One factor has one level: the parameter class family only has one member: P Two factors have a maximum of two levels; B and C. Three factors have a maximum of three levels: A, D and E.

14 Sampling test cases: OATS example (cont...) Step 3: Locate a standard orthogonal array that fits the problem. 6 factors 3 levels

15 Sampling test cases: OATS example (cont...)

16 Sampling test cases: OATS example (cont...) Step 4: Establish a mapping from each factor onto the integers in the array so that standard array can be interpreted The first column in L 18 can be used to represent the sender class family which has two classes: A and B (1 corresponds to A class and 2 corresponds to class B) The second column in L 18 when there is a difference in the number of levels (class A has 2 states and class B has 3 states).

17 Sampling test cases: OATS example (cont...) The third column in L 18 represents the parameter hierarchy that only has one class, P. (any value in the third column represents P). The fourth column represents the state of P (which there are two). The fifth column represents the class C hierarchy, which has three members. The sixth column represents the states of the C, D, and E classes.

18 Sampling test cases: OATS example (cont...) Step 5: Construct test cases based on the mapping and the rows in the table. Each row in the orthogonal array specifies one specific test case.

19 Sampling test cases: OATS example— result interpretation The 10 th column represents: An instance of B in state 1 Is to send a message by passing an instance of class P in state 3 To an instance of class E in state 2.

20 Sampling test cases: OATS another example Consider a web page with three distinct sections (Top, Middle, and Bottom) that can be individually shown or hidden by the user. You wish to test the interactions of the different sections.

21 Sampling test cases: OATS another example (cont...) There are three independent variables (the sections of the page). Each variable can take on two values (hidden or visible). An L 4 orthogonal array will do the job — two levels for the values and three factors for the variables. Mapping the values onto the array where Hidden=0 and Visible=1

22 Sampling test cases: OATS another example (cont...) OA before mapping factors Factor 1Factor 2Factor 3 Run 1000 Run 2011 Run 3101 Run 4110 OA after mapping factors TopMiddleBottom Test case 1Hidden Test case 2HiddenVisible Test case 3VisibleHiddenVisible Test case 4Visible Hidden

23 Sampling test cases: adequacy criteria for OATS Exhaustive: all possible combinations of all factors are considered. Minimal: only the interactions between the base classes from each hierarchy are tested. Random: the tester haphazardly selects cases from several of the classes.

24 Sampling test cases: adequacy criteria for OATS Representative: a uniform sample that ensures that every class is tested to some level. Weighted representative: Add cases to the representative approach based on relative importance or risk associated with the class.

25 Key points Possibilities for determining which test cases to select: based on probability distribution, uniform probability distribution and probability distribution based on the use profile. A stratified sample is a set of samples in which each sample represents a specific subpopulation An orthogonal array is an array of values in which each column represents a factor (a variable in an experiment). Adequacy criteria for OATS: exhaustive, minimal, random, representative, and weighted representative.