{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

Info icon This 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
Image of page 1

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

View Full Document Right 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
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?
Image of page 3

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

View Full Document Right 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
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
Image of page 5

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

View Full Document Right Arrow Icon
Topic: White-Box Software Testing 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.
Image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern