95 2 2 YES 8 5 1 0
56 19 2.95 2 2 YES 8 5 1 0
118 Manage Software Testing
7.8.6 Dataflow and Procedure Call Analyzers
Procedure Call Information consists of information about which procedures call each other in a program.
Each procedure in the program is analyzed in turn and a list of calls to other procedures (including
recursive calls), is produced. If the procedure does not call any procedures, then a message is printed.
Figure 7.21 shows an example of some procedure call information.
??? Dataflow error messages are produced by the dataflow analyzer, and report the three types of
dataflow bugs found grouped by error type: UR, DU, and DD errors. In the example shown in
Figure 7.22 each message consists of the variable name, the line number, and type of both parts
of the error. If either part occurs as the result of a procedure call, this is indicated, as well as any
variables declared, but never used.
FIGURE 7.21 Example of a procedure call summary
FIGURE 7.22 Example of dataflow analysis error messages
===================================
PROCEDURE CALL INFORMATION
===================================
---------------------------
THE MAIN PROGRAM
main
CALLS THE FOLLOWING PARAMETERS
getname
bearright
----------------------------
PROCEDURE
getname
BETWEEN LINES 371, and 401
CALLS THE FOLLOWING PROCEDURES
error
IS CALLED BY THE FOLLOWING PROCEDURES
main
-----------------------
PROCEDURE
bearright
BETWEEN LINES 406 and 418
DOES NOT CALL ANY INTERNAL PROCEDURES
IS CALLED BY THE FOLLOWING PROCEDURES
main
-----------------------
THE FOLLOWING VARIABLES WERE DECLARED BUT NEVER USED
VARIABLE DECLARED ON LINE
T 2
VARIABLE UNDEFINE REFERENCE
Y 2 5
TYPE DU ERRORS
VARIABLE UNDEFINE REFERENCE
Z 8 9
TYPE DD ERRORS
VARIABLE UNDEFINE REFERENCE
X 4 6
Testing Processes and Infrastructure 119
For example if the program shown in Figure 13.
Pages:
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293