24ProgramTestingSEIV

24ProgramTestingSEIV - CMSC 132: Object-Oriented...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
CMSC 132: Object-Oriented Programming II Program Testing Department of Computer Science University of Maryland, College Park
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Program Testing Empirical testing Test software with selected test cases Test failures frequently indicate software errors Absence of failures doesn’t prove software correct If code isn’t exercised by any test, hard to have confidence in it
Background image of page 2
Kinds of Testing Automated testing The software is tested by a completely automatic process e.g., jUnit or submit server testing Can be expensive or difficult to construct, but fairly cheap to repeat Manual testing A person uses the software, perhaps guided by a script, and notes bugs Often easier to conduct than writing test cases, but very expensive to repeat
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Test Size Small Unit test – test individual components Medium Integration tests Test subsystems containing several components Can test interactions between components, properties that are only demonstrated in larger systems Large System or acceptance tests Test entire system, including non-software components
Background image of page 4
Types of Testing Clear box testing Allowed to examine code Attempt to improve thoroughness of tests Black box testing No knowledge of code Treat program as “ black box Test behavior in response to inputs
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Testing – Terminology Test case Individual test Test suite Collection of test cases Test harness Program that executes a series of test cases Test framework Example – JUnit
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/04/2011 for the course CMSC 132 taught by Professor Padua-perez during the Spring '08 term at Maryland.

Page1 / 18

24ProgramTestingSEIV - CMSC 132: Object-Oriented...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online