White Box Testing - White-Box Software Testing Methods...

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

View Full Document Right Arrow Icon
White-Box Software Testing Methods Speaker: Jerry Gao Ph.D. San Jose State University email: [email protected] URL: http://www.engr.sjsu.edu/gaojerry
Background image of page 1

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

View Full DocumentRight Arrow Icon
Topic: White-Box Software Testing Methods - What is White-Box Testing? - Testing Focuses - Who Perform White-Box Testing? - Basis-Path Program Testing - Branch-Based Program Testing - Data Flow Program Testing - Syntax-Based Program Testing - State-Based Program Testing - Testing Coverage Jerry Gao Ph.D. 7/20002 Presentation Outline All Rights Reserved
Background image of page 2
Topic: White-Box Software Testing What is white-box software testing? --> White-box testing, also known as glass-box testing. Basic idea is to test a program based on the structure of a program. What do you need for white-box testing? - A white-box testing model and test criteria - A white-box test design and generation method - Program source code White-box testing methods can be classified into: - Traditional white-box testing methods - Object-oriented white-box testing methods - Component-oriented white-box testing methods Jerry Gao Ph.D. 7/2002 What is White-Based Software Testing?
Background image of page 3

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

View Full DocumentRight Arrow Icon
Topic: White-Box Software Testing The Major objective of white-box testing is to focus on internal program structure, and discover all internal program errors. The major testing focuses: - Program structures - Program statements and branches - Various kinds of program paths - Program internal logic and data structures - Program internal behaviors and states. Jerry Gao Ph.D. 7/2002 White-Box Testing Objectives
Background image of page 4
Topic: White-Box Software Testing Test Model: control program chart (graph) Test case design: Various white-box testing methods generate test cases based on on a given control program graph for a program The goal is to: - Guarantee that all independent paths within a module have been exercised at least once. - Exercise all logical decisions one their true and false sides. - Execute all loops at their boundaries and within their operational bounds. - Exercise internal data structures to assure their validity. - Exercise all data define and use paths. Jerry Gao Ph.D. 7/2002 Traditional White-Based Software Testing Methods
Background image of page 5

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

View Full DocumentRight Arrow Icon
Jerry Gao Ph.D. 7/2002 White-Box Software Testing Methods Basic path testing (a white-box testing technique): - First proposed by TomMcCabe [MCC76]. - Can be used to derive a logical complexity measure for a procedure design. - Used as a guide for defining a basis set of execution path. - Guarantee to execute every statement in the program at least one time. Branch Testing: Exercise predicate nodes of a program flow graph to make sure that each predicate node has been exercised at least once. Loop Testing: Exercise loops of a program to make sure that the inside and outside of loop body are executed. State-Based Testing:
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 document was uploaded on 01/31/2010.

Page1 / 30

White Box Testing - White-Box Software Testing Methods...

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