JPS6134640A - Inspecting method of program - Google Patents

Inspecting method of program

Info

Publication number
JPS6134640A
JPS6134640A JP15680884A JP15680884A JPS6134640A JP S6134640 A JPS6134640 A JP S6134640A JP 15680884 A JP15680884 A JP 15680884A JP 15680884 A JP15680884 A JP 15680884A JP S6134640 A JPS6134640 A JP S6134640A
Authority
JP
Japan
Prior art keywords
file
processing
record
field
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP15680884A
Other languages
Japanese (ja)
Inventor
Takayuki Sasakura
笹倉 孝之
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP15680884A priority Critical patent/JPS6134640A/en
Publication of JPS6134640A publication Critical patent/JPS6134640A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To improve the efficiency of an inspecting work of a program by making a computer execute a collation with regard to a test result by a program before modification to a test data, by the constitution of the first-the seventh steps. CONSTITUTION:In a processing 1, a test result by a program before modification of a test data A is outputted to the first file. In a processing 2, a test result by a program after modification of the test data A is outputted to the second file. In a processing 3, the respective file positions of the first and the second files are positioned to the head. Ina processing 4, one record A and one record B are read from the first file and the second file, respectively. In a processing 5, whether the end of the file is detected in the pre-stage or not is decided. In a processing 6, an extraction and a collation of a value of the same field of the record A and the record B, and an output of a list of a result of the collation are executed. In a processing 7, whether the field A or B in the pre-stage is the final field in the record or not is decided, and the processing is made to branch to the processing 4 and the processing 6, if said field is the end, and if it is not the end, respectively. These processings are repeated until the end of the file of the processing 5 is detected.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、機能の追加、変更やプログラムのバグの修正
のために改造されたプログラムの検査方法に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a method for inspecting a program that has been modified to add or change functions or to correct bugs in the program.

(従来技術) プログラムは新規に開発された後も、機能の追加、変更
やバグの修正のために何度か改造が繰り返される。この
プログラムの改造において、改造の対象となる機能とは
別の機能は、改造前の機能と同一でなければならず、そ
のために改造の対象となる機能部分は当然のこと、改造
の対象外の機能部分についても検査しなければならない
(Prior Art) Even after a program is newly developed, it is repeatedly modified several times to add functions, make changes, and fix bugs. In modifying this program, functions other than those targeted for modification must be the same as the functions before modification, and for this reason, it goes without saying that the functional parts targeted for modification are Functional parts must also be inspected.

従来、改造後のプログラムにおいて、改造の対象外の機
能部分に対する検査は、同一のテストデータを改造前の
プログラムと改造後のプログラムに対してそれぞれ実行
し、これら2つのテスト結果を別々にリストに出力し、
それぞれのリスト上の数値あるいは文字列を一つ一つ人
間の目で見比べて一致しているかどうかを照合して行な
っていた0 しかしながら、このような照合方法では、テスト結果が
大量になったシ、実数型の数値であったシすると、それ
らの照合はかなシめんどうな作業になるという欠点があ
った。
Conventionally, in a modified program, inspections of functional parts that are not subject to modification are performed by executing the same test data on the program before modification and the program after modification, and listing these two test results separately. output,
This was done by comparing the numbers or character strings on each list one by one with the human eye to see if they matched.0 However, with this method of matching, it is difficult to use a system with a large number of test results. , the disadvantage is that when the numbers are real numbers, matching them becomes a very tedious task.

(発明の目的) 本発明の目的は、上述の欠点を除去し、改造後のプログ
ラムの検査において、同一テストデータに対する改造前
と改造後のプログラムによるテスト結果の照合を容易化
したプログラムの検査方法を提供することにある。
(Object of the Invention) An object of the present invention is to eliminate the above-mentioned drawbacks, and to facilitate comparison of test results obtained by the program before and after the modification for the same test data when testing the program after the modification. Our goal is to provide the following.

(発明の構成) 本発明の方法は、テストデータに対する改造前プログラ
ムによるテスト結果を第1の順次編成ファイルに出力す
る第1のステップと、 前記テストデータに対する改造後プログラムによるテス
ト結果を第2の順次編成ファイルに出力する第2のステ
ップと、 前記第1ファイルと前記第2ファイルそれぞれのファイ
ル位置を先頭に位置づける第3のステップと、 前記第1ファイルと前記第2ファイルよシそれぞれ1レ
コードを読み込む第4のステップと、該第4のステップ
において、前記第1ファイルより読み込まれたレコード
の1フィールドと前記第2ファイルよシ読み込まれレコ
ードの1フィールドの値を抽出、照合し、2つのフィー
ルドの値とそれらの照合結果をリスト出力する第5のス
テ。
(Structure of the Invention) The method of the present invention includes a first step of outputting the test results of the pre-modification program on the test data to a first sequential file, and a second step of outputting the test results of the post-modification program on the test data. a second step of outputting to a sequentially organized file; a third step of positioning the file positions of the first file and the second file at the beginning; and outputting one record each of the first file and the second file. a fourth step of reading, and in the fourth step, the values of one field of the record read from the first file and the value of one field of the record read from the second file are extracted and compared, and the values of the two fields are extracted and compared. The fifth step is to output a list of values and their matching results.

プと、 該第5のステップの処理を、レコードの最後のフィール
ドまで繰り返す第6のステップと、前記第4のステップ
、前記第5のステップおよび第6のステップの処理を前
記第4のステップにおいて前記第1ファイルあるいは前
記第2ファイルのファイルの終了を検出するまで繰り返
す第7のステップ とから構成されることを特徴とする≠キ≠す#O験邊彷
快ゆ (実施例) 以下、本発明の実施例について図面を参照して詳細に説
明する。
a sixth step in which the processing in the fifth step is repeated until the last field of the record; and a sixth step in which the processing in the fourth step, the fifth step, and the sixth step are repeated in the fourth step. and a seventh step that is repeated until the end of the first file or the second file is detected. Embodiments of the invention will be described in detail with reference to the drawings.

第1図を参照すると、本発明の一実施例は処理1から処
理7までのステップで構成されている。
Referring to FIG. 1, one embodiment of the present invention is comprised of steps from process 1 to process 7.

処理1では、テストデータ(このテストデータをテスト
データAとして識別する)に対する改造前のプログラム
のテスト結果を第1のファイルに出力する。すなわち、
テスト結果は1個以上のデ一夕項目の集まシであシ、こ
れらのデータ項目を1個以上のレコードかつ1レコード
が1個以上のフィールドから構成されている順次編成形
式の第1のファイルに出力するのである。
In process 1, the test results of the program before modification for the test data (this test data is identified as test data A) are output to the first file. That is,
The test result is a collection of one or more data items, which are organized into one or more records and each record consists of one or more fields. It outputs to a file.

処理2では、処理1と同一のテストデータ(テストデー
タA)に対する改造後のプログラムのテスト結果を、第
1のファイルと同数個のレコードかつ同数個のフィール
ドを持つレコードから構成されている順次編成形式の第
2のファイルに出力する。
In process 2, the test results of the modified program for the same test data (test data A) as in process 1 are sequentially organized into records that have the same number of records and the same number of fields as the first file. Output to a second file in the format.

処理3では、第1のファイルと第2のファイルのそれぞ
れのファイル位置を先頭に位置づける。
In process 3, the file positions of the first file and the second file are positioned at the beginning.

処理4では、第1のファイルより1レコード(このレコ
ードをレコードAとして識別する)を読み込み、第2の
ファイルより1レコード(このレコードをレコードBと
して識別する)を読み込む0 処理5では、処理4において第1のファイルあるいは第
2のファイルを読み込んだ時に、ファイルの終了を検出
したかどうかを判定している。
In process 4, one record is read from the first file (this record is identified as record A), and one record is read from the second file (this record is identified as record B).0 In process 5, process 4 is read. When reading the first file or the second file, it is determined whether the end of the file is detected.

処理6では、処理4において第1のファイルよシ読み込
まれたレコードの1フィールド(このフィールドをフィ
ールドAとして識別する)と、第2のファイルよシ読み
込まれたレコードの1フィールド(このフィールドをフ
ィールドBとして識別する。ただし、フィールドAとフ
ィールドBは同一のデータ項目に対応している)のそれ
ぞれの値を抽出、照合し、これらのフィールドに対応す
るデータ項目が数値の場合は、次の相対誤差1(フィー
ルド人の値−フィールドBの値)/フィールドAの値1
(ただし、フィールドAの値がゼロでない場合)を計算
し、この相対誤差とあらかじめ設定された許容誤差との
比較を行う。そして、フィールドAとフィールドBの値
、これらのフィールドに対応するデータ項目が数値の場
合のみ相対誤差、およびこれら2つのフィールドの値が
一致しているかどうかの照合結果(数値の場合には、相
対誤差が許容誤差よシ小さいか等しければ、一致してい
ると判定する)を、リスト出力する。
In process 6, one field of the record read from the first file in process 4 (this field is identified as field A) and one field of the record read from the second file (this field is identified as field A). B. However, field A and field B correspond to the same data item), and if the data items corresponding to these fields are numerical values, then the next relative Error 1 (field person value - field B value) / field A value 1
(provided that the value of field A is not zero) is calculated, and this relative error is compared with a preset tolerance. Then, the values of field A and field B, the relative error only if the data items corresponding to these fields are numerical values, and the comparison result of whether the values of these two fields match (in the case of numerical values, the relative error) If the error is less than or equal to the allowable error, it is determined that they match.) is output as a list.

処理7では、処理6においてフィールドAあるいはフィ
ールドBがレコード内の最後のフィールドかどうかを判
定し、最後のフィールドであれば処理4に分岐し、そう
でなければ次に位置するフィールドに対する処理6に分
岐するための制御を行う。これらの処理を、処理5のフ
ァイルの終了を検出するまで繰り返せば、改造前と改造
後のプログラムによるテスト結果の照合結果をリスト出
力することができる。
In process 7, it is determined whether field A or field B is the last field in the record in process 6, and if it is the last field, the process branches to process 4, otherwise it goes to process 6 for the next field. Performs control for branching. By repeating these processes until the end of the file in process 5 is detected, it is possible to output a list of the results of comparing the test results of the program before and after the modification.

(発明の効果) 本発明には、従来人間が行っていたテスト結果の照合を
、計算機に行わせることができるため、プログラムの検
査作業の効率を向上させることができるという効果がお
る。
(Effects of the Invention) The present invention has the effect that the efficiency of program inspection work can be improved because it is possible to have a computer perform the verification of test results that was conventionally performed by humans.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、本発明の一実施例を説明するためのフローチ
ャートである。
FIG. 1 is a flowchart for explaining one embodiment of the present invention.

Claims (1)

【特許請求の範囲】 テストデータに対する改造前プログラムによるテスト結
果を第1の順次編成ファイルに出力する第1のステップ
と、 前記テストデータに対する改造後プログラムによるテス
ト結果を第2の順次編成ファイルに出力する第2のステ
ップと、 前記第1ファイルと前記第2ファイルそれぞれのファイ
ル位置を先頭に位置づける第3のステップと、 前記第1ファイルと前記第2ファイルからそれぞれ1レ
コードを読み込む第4のステップと、該第4のステップ
において、前記第1ファイルから読み込まれたレコード
の1フィールドと前記第2ファイルより読み込まれたレ
コードの1フィールドの値を抽出、照合し、該2つのフ
ィールドの値とそれらの照合結果をリスト出力する第5
のステップと、 該第5のステップの処理を、レコードの最後のフィール
ドまで繰り返す第6のステップと、 前記第4のステップ、前記第5のステップおよび第6の
ステップの処理を前記第4のステップにおいて前記第1
ファイルあるいは前記第2ファイルのファイルの終了を
検出するまで繰り返す第7のステップ とから構成されることを特徴とするプログラムの検査方
法。
[Scope of Claims] A first step of outputting the test results of the pre-modification program on the test data to a first sequential file; and outputting the test results of the post-modification program on the test data to a second sequential file. a third step of positioning the file positions of each of the first file and the second file at the beginning; and a fourth step of reading one record from each of the first file and the second file. , in the fourth step, the values of one field of the record read from the first file and the value of one field of the record read from the second file are extracted and compared, and the values of the two fields and their 5th output list of matching results
a sixth step of repeating the processing of the fifth step until the last field of the record; and a sixth step of repeating the processing of the fourth step, the fifth step, and the sixth step of the record. In the first
a seventh step of repeating until the end of the file or the second file is detected.
JP15680884A 1984-07-27 1984-07-27 Inspecting method of program Pending JPS6134640A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15680884A JPS6134640A (en) 1984-07-27 1984-07-27 Inspecting method of program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15680884A JPS6134640A (en) 1984-07-27 1984-07-27 Inspecting method of program

Publications (1)

Publication Number Publication Date
JPS6134640A true JPS6134640A (en) 1986-02-18

Family

ID=15635774

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15680884A Pending JPS6134640A (en) 1984-07-27 1984-07-27 Inspecting method of program

Country Status (1)

Country Link
JP (1) JPS6134640A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0581072A (en) * 1991-09-18 1993-04-02 Hitachi Software Eng Co Ltd Automatic verification processing system
JPH05120065A (en) * 1991-10-25 1993-05-18 Nippon Steel Corp Testing and verifying method for computer program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0581072A (en) * 1991-09-18 1993-04-02 Hitachi Software Eng Co Ltd Automatic verification processing system
JPH05120065A (en) * 1991-10-25 1993-05-18 Nippon Steel Corp Testing and verifying method for computer program

Similar Documents

Publication Publication Date Title
CN111597243A (en) Data warehouse-based abstract data loading method and system
KR102013657B1 (en) Apparatus for statically analyzing assembly code including assoxiated multi files
CN111611154B (en) Regression testing method, device and equipment
JPS6134640A (en) Inspecting method of program
JP2585460B2 (en) Test data creation method
KR102500395B1 (en) Apparatus and method for repairing bug source code for program
JPH01177165A (en) Definition-quotation relation checking system for array
JPH01154256A (en) Detecting method for program error position
CN115185752A (en) Authentication method, authentication device, equipment and storage medium for processor
JP2699436B2 (en) Parameter inspection processing method
Morasca et al. Validation of concurrent Ada™ programs using symbolic execution
JPH05120065A (en) Testing and verifying method for computer program
JPH0363838A (en) Software program inspection system
CN115816444A (en) Robot off-line program detection method, device, equipment and storage medium
JPS63174130A (en) System for detecting value unsettled variable name
JP2751539B2 (en) Interface verification processing method
JPH03257637A (en) Automatic check item extracting mechanism
JPH0357034A (en) Program testing system
JP2002073373A (en) Program verification device to extract checking program to verify peripheral and similar functions based on confirmation and inspection item for modification
JPS62127948A (en) Program debug processing system
JPH01100642A (en) Test coverage system for computer system
JPH0337735A (en) Checking system for structured programming
Tsatsoulis et al. SAIL-A High Level Programming Language Translator for Visual Inspection of Industrial Assemblies
JPH08137714A (en) Debugging method and debugging system for multitask program
JP2018124654A (en) Determination program and determination method