System and method to measure and report on effectiveness of software program testing
AssigneeCompuware Corporation
InventorsPamela L. Shiels, William Noble, Michael A. Horwitz, David Lagermeier
Life of this patent
Estimating the term…
Abstract
A computer-implemented method and system for measuring and reporting on the effectiveness of software program testing combines information from existing debugging and analysis tools to provide various displays of the logical paths of a program under test that have been executed, as well as related data. Logical path execution is determined based on the number of times a decision block has been executed and the number of times statements coming out of the decision block have been executed.
Claims36
A computer-implemented system for analyzing testing of a computer program, the computer program having lines of code and logical paths, each of the logical paths being comprised of a corresponding subset of the lines of code, the system comprising:
- a debugging tool subsystem configured to collect information about particular lines of code that are executed during testing of the program;
- and
- an analyzer subsystem in communication with the debugging tool subsystem, which determines a structural representation of the program, including a number of unique logical paths, and generates in connection with the information collected by the debugging tool subsystem an indication of which ones of the unique logical paths have been or have not been executed during testing of the program according to the structural representation.
- wherein the program comprises a decision point, the decision point branching into a plurality of unique logical paths, and
- wherein the analyzer subsystem compares a number of executions of a statement following a decision point with a number of executions of the decision point to determine execution of each of the unique logical paths during testing of the program.
A method for testing a computer program, the computer program having lines of code and logical paths, each of the logical paths being comprised of a corresponding subset of the lines of code, the method comprising:
- receiving information from a debugger about particular lines of code that are executed during testing of the program;
- determining a structural representation of the program, including a minimum number of unique logical paths, responsive to the collected information;
- comparing a number of times a statement following a decision point has been executed with a number of times the decision point has been executed;
- determining, responsive to the comparison, whether one or both of two logical paths following the decision point have been executed during testing of the program;
- and
- generating, responsive to the received information, the determined structural representation, and the determination of whether one or both of two logical paths has been executed during testing of a program, an indication of which ones of the unique logical paths have been or have not been executed during testing of the program.
Dependencies are inferred from the claim text.