柚木提娜作品:谁能帮忙翻译一下这篇计算机文章?

来源:百度文库 编辑:神马品牌网 时间:2024/04/28 03:42:46
7.7 Testing procedure

The correct execution of a program implies:

The correct execution of each component module;
The correct communication of data between modules; and
The correct sequence of execution of the modules.

The testing of a program is then reduced to verifying these three conditions.
This verification may be done by a variety of methods, all of which are variations on a theme often referred to as tracing. Tracing must be applied to the data processed by a program and the control, or execution path of the program. It will involve communicating to the programmer the point at which the program is currently executing and the values contained in selected variables at that time. The crucial points at which to insert traces in a program are usually the entry and exit to each module.
The information required by the programmer may be printed or displayed on a terminal and may e produced by an instruction (a PRINT, TYPE, DISPLAY, etc) inserted by the programmer for that purpose or by means of a software tool such as an interactive debugging aid which allows the programmer to specify one or more statements at which the program is required to halt for interrogation of the contents of data areas.
In a true-to-life example of a payroll calculation such as that quoted in the earlier example to this chapter, the control structure may be similar to:

7.7测试程序 正确执行计画的含义是: 正确执行每个单元组成; 正确的数据之间的沟通模式; 以及 正确顺序执行模式. 测试计划则减少了这三个条件核查. 这个核查可以通过各种方式,都是不同的主题被称为追查. 必须实行跟踪与数据处理及控制计画,或执行计画道路. 它涉及到交流的时候,程式正在执行的计画中,选择变量值,当时 关键点添加的痕迹,在节目通常每个单元的进出. 编程要求的资料,可在印刷或者展示五码头,可产生一种语言(印刷型、展示、 电话:963-5047)添加了编程为此或通过软件工具,如交互式调试援助,让程式指明一个或多个国家,在节目须停止讯问的内容数据领域. 在真实中生活的例子,如工资计算,引用的例子本章前,可以控制结构相似: