Boundaries and C0,C1 Pressman pp

Slides:



Advertisements
Similar presentations
Introduction to Software Testing Chapter 3.3 Logic Coverage from Source Code Paul Ammann & Jeff Offutt.
Advertisements

CompSci 230 Software Design and Construction Software Quality 2014S2 Black box testing.
Chapter 4: Congruent Triangles Lesson 1: Classifying Triangles.
TRIANGLES AND TYPES OF TRIANGLES
Warm Up 1. Find the perimeter of a rectangle with side lengths 12 ft and 20 ft. 3. Find the area of a parallelogram with height 9 in. and base length.
Path testing Path testing is a “design structural testing” in that it is based on detailed design & the source code of the program to be tested. The methodology.
Warm-Up Given: AB has endpoints A (3, -4) and B (-1, -6) Find: Midpoint M and Distance.
Classifying Triangles Students will classify triangles using the lengths of the sides and the angles. S. Calahan October 2010.
Classify Triangles Standard 4C.
Chapter 05 (Part V) Control Statements: Part II. Nested For-Structures Consider the following codes: for (int i=0; i
Software Testing (Part 2)
Triangles Triangle: a figure formed when 3 noncollinear points are connected by segments. Components of a triangle: Vertices: A, B, C Sides: AB, BC, AC.
Reference Paulo Alencar, University of Waterloo Frank Tsui, Southern Polytechnic State University.
1841f06detprob3 MM Stroustrup Ch26 u Comments? u Agree or disagree with his testing approach?
1 testing17 Software Testing Functional, MCC, Dataflow Testing, Cause-Effect Graphing.
Software Testing. 2 CMSC 345, Version 4/12 Topics The testing process  unit testing  integration and system testing  acceptance testing Test case planning.
Summarizing “Structural” Testing Now that we have learned to create test cases through both: – a) Functional (blackbox)and – b) Structural (whitebox) testing.
841f07frankl12oct21 Evaluating Testing Methods by Delivered Reliability Frankl, Hamlet, Littlewood, Strigini IEEE TOSE Aug98.
Software Testing. Software testing is the execution of software with test data from the problem domain. Software testing is the execution of software.
Lecture 2 Examples Pseudo code and flowcharts. Problem 1 Read a number as input and then print if it is even or odd.
Triangle A polygon with three sides and three angles. A triangle can be names by its’ side lengths and angles. – Side lengths: isosceles, equilateral,
1841f07subdomains2Aug23 Question u What is the main purpose of software testing?
EXAMPLE 1 Standardized Test Practice SOLUTION Let ( x 1, y 1 ) = ( –3, 5) and ( x 2, y 2 ) = ( 4, – 1 ). = (4 – (–3)) 2 + (– 1 – 5) 2 = = 85 (
1 Input Space Partitioning(2). Reading Assignment P. Ammann and J. Offutt “Introduction to Software Testing” ◦ Chapter 4  Section 4.1  Section
TRIANGLES AND TYPES OF TRIANGLES. A triangle has three sides.
Types of Triangles. Equilateral Triangle All sides are the same length and all the angles are the same length.
Triangles 1st year P26 Chapter 4.
Types of Triangles. Angles The angles in a triangle add up to o + 60 o + 60 o =
AGENDA WARM-UP LESSON 18 CORRECTIONS LESSON 19 QUESTIONS LESSON 20 EXIT CARD.
1841f06detprob3 Testing Basics Detection probability.
Classifying Triangles. Two Ways to Classify Triangles  By Their Sides  By Their Angles.
Lesson 8.3 Concept: How to classify triangles by their sides and angles. An equilateral triangle has three sides of the same length. An isosceles triangle.
Learning Objective Identify triangles using their sides.
1841f06detprob4 Testing Basics Detection probability.
Mid Unit 5 Review 2-Dimensional Figures.
Triangles.
Software Testing Structural testing 540f07testing17oct25 1.
Software Testing Structural testing 1.
Input Space Partition Testing CS 4501 / 6501 Software Testing
Mid Unit 5 Review 2-Dimensional Figures.
MCC.4.G.1-2 All About Triangles.
TRI NGLES 2 ways to classify: By Sides By Angles 60 4” 4” 4” 60 60
Angles In Triangles Types of Triangles Isosceles triangle
Path testing Path testing is a “design structural testing” in that it is based on detailed design & the source code of the program to be tested. The.
TRIANGLES AND TYPES OF TRIANGLES
Detection probability
Triangles A polygon with 3 sides.
Applications of the Distance Formula
Triangles Grade 4.
The General Triangle C B A.
Classifying Triangles

Objective - To classify triangles.
The General Triangle C B A.
Types of Triangles Thursday, 11 April 2019.
Types of Triangles Thursday, 11 April 2019.
Triangles.
Evaluating Testing Methods by Delivered Reliability
Paul Ammann & Jeff Offutt
Front of Flipbook Right Triangles Acute Triangles Obtuse Triangles
Intro to Triangles.
5-7 Isosceles and Equilateral Triangles
Classifying Triangles
Classifying Triangles
TWO SIDES-ANGLE AND PERIMETER-RATIO
Classifying Triangles
4-1 Classifying Triangles
Area and Perimeter Triangles.
Presentation transcript:

Boundaries and C0,C1 Pressman pp437-476 Software Testing Boundaries and C0,C1 Pressman pp437-476 1

Instrument Your Code To achieve C0 or C1 coverage, generate good test cases until coverage has been reached. By hand, insert print statements with “a”, “b”, etc and sort output In Dec, I will expect teams to demonstrate that they have achieved C0 coverage of their code.

Subdomain (not in Pressman) A subdomain is a set of input points (data points, tests, etc) that are treated identically by the program. That is, they take the same path through the program and the same operations are applied to the values. Or a set of such subdomains

Boundary Testing A boundary test tries to establish that the boundary is in the correct spot. Thus, test cases are chosen on the boundary and as close as possible on the open side. “2-on, 1-off” means two on the boundary spread far apart and one just off the boundary in between the other two 17

Payroll Problem Wages must be greater than zero and less than 100 Hours must be greater than zero and less than 80 Time and a half is paid on hours over 40

Boundary Example - 2on/1off I-V : (0,100),(40,100),(20,99) V II-V : (41,100),(79,100),(60,99) I II I-II : (40,1),(40,99),(41,50)

TTYP1 - boundary tests Determine boundary tests for the boundary between “a” and “d” cin>>x>>y; output= “d”; if(y>x) output = “a”; if(x>5) output = “b”; if (y < 0) output = “c”; cout << output;

Triangle Domain

Triangle Domain : a = b plane

Triangle Domain : a = .5b plane

TTYP2 - the triangle program Assume max length is 10 In the a=b plane, what would be 2-on, 1-off tests for the boundary between isosceles and not-a-triangle?

Independent Paths The independent paths are? A - {aceg, abcdefg} B - {abc,cde,efg} C - {aceg,abc,cde,efg}

Basis Paths for testing McCabe’s basis testing does not have a theoretical foundation Pressman does not give a precise enough definition of basis set or independent path to be useful Advice - use other criteria

For Tuesday, Oct 15th Read chapter 18 pp 477-505

Triangle Example cin >> a >> b >> c ; type = “scalene”; if (a == b || a == c || b == c) type= “isoscoles”; if (a == b && a == c) type = “equilateral”; if (a >= b+c || b >= a+c || c >= a+b) type=“not a triangle”; if (a <= 0 || b <= 0 || c <= 0) type=“bad input”; cout<< type;

Control Flow Graph TTYP1 – what are the paths through this code?