Black Box Software Testing (Professional Seminar)

Slides:



Advertisements
Similar presentations
RESEARCH POSTER TITLE HERE - USUALLY 50 PT, UPPERCASE AND CENTERED Author N. One 1, Author N. Two 2, Author N. Three 1 1 Department of Neuroscience, Uniformed.
Advertisements

Copyright Law & Your Websites Computer Science 201 November 21, 2005 Sarah Garner, J.D., M.L.I.S. Law Library Director,
Copyright © 2010 Pearson Education InternationalChapter Designing Visual Communication.
ABC’s of PowerPoint (Office 2007) Part 1: Basic Vocabulary Part 2: Cursors Part 3: Insert Your Text Part 4: Insert Your Pictures Part 5: Basic Tools &
IT Applications Theory Slideshows By Mark Kelly Vceit.com WEBSITE DESIGN TOOLS.
Unit 30 Digital Graphics – Course overview Anne Sewell
ET Workshop v Opening©2002 Amland Consulting0-1 Exploratory Testing v Workshop in Risk-Based Agile Testing Parts of this class have been.
PADM 7860 Grant Writing & Management: Packaging the Document Jerry Merwin.
Copyright (c) Cem Kaner. All Rights Reserved. 1 Black Box Software Testing (Academic Course – Fall 2001) Cem Kaner, J.D., Ph.D. Professor of.
Black Box Software Testing Copyright © 2003 Cem Kaner & James Bach 1 Black Box Software Testing Fall 2004 Part Exercises by Cem Kaner, J.D., Ph.D.
Copyright (c) Cem Kaner. All Rights Reserved. 1 Black Box Software Testing (Professional Seminar) Cem Kaner, J.D., Ph.D. Professor of Computer.
Copyright (c) Cem Kaner Black Box Software Testing (Academic Course - Fall 2001) Cem Kaner, J.D., Ph.D. Florida Institute of Technology Section:
Copyright (c) Cem Kaner. All Rights Reserved. 1 Black Box Software Testing (Professional Seminar) Cem Kaner, J.D., Ph.D. Professor of Computer.
Copyright (c) Cem Kaner Black Box Software Testing (Academic Course - Fall 2001) Cem Kaner, J.D., Ph.D. Florida Institute of Technology Section:
Copyright (c) Cem Kaner Black Box Software Testing (Academic Course - Fall 2001) Cem Kaner, J.D., Ph.D. Florida Institute of Technology Section:
Copyright (c) Cem Kaner. All Rights Reserved. 1 Black Box Software Testing (Professional Seminar) Cem Kaner, J.D., Ph.D. Professor of Computer.
Unit 1 – Improving Productivity Instructions ~ 100 words per box.
Copyright (c) Cem Kaner Black Box Software Testing (Academic Course - Fall 2001) Cem Kaner, J.D., Ph.D. Florida Institute of Technology Section:
Copyright (c) Cem Kaner Black Box Software Testing (Academic Course - Fall 2001) Cem Kaner, J.D., Ph.D. Florida Institute of Technology Section:
Copyright (c) Cem Kaner. All Rights Reserved. 1 Black Box Software Testing (Professional Seminar) Cem Kaner, J.D., Ph.D. Professor of Computer.
Copyright (c) Cem Kaner. All Rights Reserved. 1 Black Box Software Testing (Professional Seminar) Cem Kaner, J.D., Ph.D. Professor of Computer.
Poster Title XXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXX Name Department of East Carolina University Abstract Your poster will.
Unit 1 – Improving Productivity Instructions ~ 100 words per box.
VERIFICATION OF ASPECT-ORIENTED MODELS Review of Aspect-Oriented Definitions aspect – crosscutting concern that may involve multiple classes pointcut –
Section 8.1 Create a custom theme Design a color scheme Use shared borders Section 8.2 Identify types of graphics Identify and compare graphic formats.
Black Box Software Testing Copyright © 2003 Cem Kaner & James Bach 1 Black Box Software Testing Spring 2005 PART 7 -- FUNCTION TESTING by Cem Kaner, J.D.,
Copyright © 2010 Pearson Education, Inc. publishing as Prentice HallChapter Writing and Completing Reports and Proposals.
Copyright (c) Cem Kaner. All Rights Reserved. 1 Black Box Software Testing (Professional Seminar) Cem Kaner, J.D., Ph.D. Professor of Computer.
Copyright (c) Cem Kaner. All Rights Reserved. 1 Black Box Software Testing (Professional Seminar) Cem Kaner, J.D., Ph.D. Professor of Computer.
1 Software Engineering: A Practitioner’s Approach, 6/e Chapter 14a: Software Testing Techniques Software Engineering: A Practitioner’s Approach, 6/e Chapter.
Copyright (c) Cem Kaner Black Box Software Testing (Academic Course -Fall 2001) Cem Kaner, J.D., Ph.D. Florida Institute of Technology Section:
Effective Use of PowerPoint English IV Your research presentation will include a PowerPoint or Prezi (be careful of Prezi), so let’s review effective PowerPoints.
PowerPoint Publishing Make Your PowerPoint Like the Pros. By Julie Phelps eMINTS Cluster Instructional Specialist-SW.
Copyright (c) Cem Kaner Black Box Software Testing (Academic Course - Fall 2001) Cem Kaner, J.D., Ph.D. Florida Institute of Technology Section:
Graphics: Any visual form of presenting information Teco 61 M. Reber 11_05_03.
1 Basics of Presentation Design Kate MacDonald MCPHS 12/7/99.
Copyright (c) Cem Kaner Black Box Software Testing (Academic Course - Fall 2001) Cem Kaner, J.D., Ph.D. Florida Institute of Technology Section:
Copyright (c) Cem Kaner Black Box Software Testing (Academic Course - Fall 2001) Cem Kaner, J.D., Ph.D. Florida Institute of Technology Section:
Copyright (c) Cem Kaner. All Rights Reserved. 1 Black Box Software Testing (Professional Seminar) Cem Kaner, J.D., Ph.D. Professor of Computer.
Copyright (c) Cem Kaner. All Rights Reserved. 1 Black Box Software Testing (Professional Seminar) Cem Kaner, J.D., Ph.D. Professor of Computer.
RESEARCH POSTER TITLE HERE - USUALLY 50 PT, UPPERCASE AND CENTERED Author N. One 1, Author N. Two 2, Author N. Three 1 1 Department of Neuroscience, Uniformed.
Copyright (c) Cem Kaner. All Rights Reserved. 1 Black Box Software Testing (Professional Seminar) Cem Kaner, J.D., Ph.D. Professor of Computer.
Copyright (c) Cem Kaner. All Rights Reserved. 1 Black Box Software Testing (Professional Seminar) Cem Kaner, J.D., Ph.D. Professor of Computer.
Copyright (c) Cem Kaner Black Box Software Testing (Academic Course - Fall 2001) Cem Kaner, J.D., Ph.D. Florida Institute of Technology Section:
© Prentice Hall, 2007 Excellence in Business Communication, 7eChapter Writing Reports and Proposals.
Copyright (c) Cem Kaner. All Rights Reserved. 1 Black Box Software Testing (Professional Seminar) Cem Kaner, J.D., Ph.D. Professor of Computer.
Copyright (c) Cem Kaner. All Rights Reserved. 1 Black Box Software Testing (Professional Seminar) Cem Kaner, J.D., Ph.D. Professor of Computer.
Copyright (c) Cem Kaner. All Rights Reserved. 1 Black Box Software Testing (Professional Seminar) Cem Kaner, J.D., Ph.D. Professor of Computer.
Copyright (c) Cem Kaner. All Rights Reserved. 1 Black Box Software Testing (Professional Seminar) Cem Kaner, J.D., Ph.D. Professor of Computer.
Copyright (c) Cem Kaner. All Rights Reserved. 1 Black Box Software Testing (Professional Seminar) Cem Kaner, J.D., Ph.D. Professor of Computer.
Section 8.1 Section 8.2 Create a custom theme Design a color scheme
How to use Microsoft PowerPoint
Black Box Software Testing (Professional Seminar)
Real-Time Soft Shadows with Adaptive Light Source Sampling
Black Box Software Testing 2004 Academic Edition
Black Box Software Testing (Academic Course - Fall 2001)
Black Box Software Testing (Academic Course - Fall 2001)
Poster Title XXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXX
“The UML Collaboration, a Standard for Role Modeling.”
Black Box Software Testing Fall 2005 Overview – Part 1 of 3
Black Box Software Testing (Academic Course - Fall 2001)
Chapter 18 Testing Conventional Applications
Black Box Software Testing (Academic Course - Fall 2001)
Black Box Software Testing (Academic Course - Fall 2001)
Black Box Software Testing (Academic Course - Fall 2001)
Making a Little Book on the Computer
Chapter 18 Testing Conventional Applications.
Black Box Software Testing (Professional Seminar)
Black Box Software Testing (Professional Seminar)
Black Box Software Testing (Professional Seminar)
Presentation transcript:

Black Box Software Testing (Professional Seminar) Cem Kaner, J.D., Ph.D. Professor of Computer Sciences Florida Institute of Technology Section:8 Introduction to Black Box Test Case design Summer, 2002 Contact Information: kaner@kaner.com www.kaner.com (testing website) www.badsoftware.com (legal website) I grant permission to make digital or hard copies of this work for personal or classroom use, with or without fee, provided that (a) copies are not made or distributed for profit or commercial advantage, (b) copies bear this notice and full citation on the first page, and if you distribute the work in portions, the notice and citation must appear on the first page of each portion, (c) each page bear the notice "Copyright (c) Cem Kaner" or if you changed the page, "Adapted from Notes Provided by Cem Kaner". Abstracting with credit is permitted. The proper citation for this work is Cem Kaner, A Course in Black Box Software Testing (Professional Version), Summer-2002, www.testing-education.org. To copy otherwise, to republish or post on servers, or to distribute to lists requires prior specific permission and a fee. Request permission to republish from kaner@kaner.com.

Test Case Design We’ll soon see a wide variety of strategies for designing test cases. Each one offers its own definition of excellence in test case design. This section summarizes some traditional wisdom about good test case design.

Test Case Design If the purpose of testing is to gain information about the product, then a test case’s function is to elicit information quickly and efficiently. In information theory, we define “information” in terms of reduction of uncertainty. If there is little uncertainty, there is little information to be gained. A test case that promises no information is poorly designed. A good test case will provide information of value whether the program passes the test or fails it.

Models A Model is… A map of a territory A simplified perspective A relationship of ideas An incomplete representation of reality A diagram, list, outline, matrix… No good test design has ever been done without models. The trick is to become aware of how you model the product, and learn different ways of modeling.

Good Test Case Design An excellent test case satisfies the following criteria: Reasonable probability of catching an error Exercises an area of interest Does interesting things Doesn’t do unnecessary things Neither too simple nor too complex Not redundant with other tests Makes failures obvious Allows isolation and identification of errors

Good Test Case Design: Neither Too Simple Nor Too Complex What makes test cases simple or complex? (A simple test manipulates one variable at a time.) Advantages of simplicity? Advantages of complexity? Transition from simple cases to complex cases (You should increase the power and complexity of tests over time.) Automation tools can bias your development toward overly simple or complex tests Refer to Testing Computer Software, pages 125, 241, 289, 433

Good Test Case Design: Make Program Failures Obvious Important failures have been missed because they weren’t noticed after they were found. Some common strategies: Show expected results. Only print failures. Log failures to a separate file. Keep the output simple and well formatted. Automate comparison against known good output. Refer to Testing Computer Software, pages 125, 160, 161-164 War stories - database bug; it didn’t crash. This is the report-automation problem. The report test plan had been automated but no one knew what it did. It printed bad, but internally consistent, output. - vast wasted time interpreting old output - don’t read output

Make Test Output Obvious: Examples from Printer Testing Normal. Italics. Bold. Bold Italics. Normal. Italics. Bold. Bold Italics. Frame graphical output Put a one-pixel wide frame around the graphic and/or around the edge of the printable page. Off-by-one-pixel errors will often erase one of these borders. For color output, create color sample charts. Print a color wheel or some other standard progression (light to dark or rainbow progression) that is visually obvious. Name the colors. Have a comparison page handy. Draw regular line-art that can show distortions Draw circles and perfect squares. Look for bowing, stretching, dropout. Use some dashed lines, to see if dashes are drawn unequally long.

Making a Good Test Start with a known state Design variation into the tests configuration variables specifiable (e.g. table-loadable) data values Check for errors Put your analysis into the test itself Capture information when the error is found (not later) test results environment results Don’t encourage error cascades

Notes ______________________________________________________________________________________________________________________ ___________________________________________________________ ___________________________________________________________