JPH05265794A - Automatic discrimination processing system for test result - Google Patents

Automatic discrimination processing system for test result

Info

Publication number
JPH05265794A
JPH05265794A JP4063681A JP6368192A JPH05265794A JP H05265794 A JPH05265794 A JP H05265794A JP 4063681 A JP4063681 A JP 4063681A JP 6368192 A JP6368192 A JP 6368192A JP H05265794 A JPH05265794 A JP H05265794A
Authority
JP
Japan
Prior art keywords
item
keyword
compared
contents
validity
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
JP4063681A
Other languages
Japanese (ja)
Inventor
Tamaki Takahashi
環 高橋
Kazuyoshi Yoshikawa
和喜 吉川
Takeshi Sano
毅 佐野
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.)
Hitachi Software Engineering Co Ltd
Original Assignee
Hitachi Software Engineering Co Ltd
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 Hitachi Software Engineering Co Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP4063681A priority Critical patent/JPH05265794A/en
Publication of JPH05265794A publication Critical patent/JPH05265794A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To provide the automatic discrimination processing system for test result which acquires contents to be compared and collated from an item by information of the relative position and the length of the item and compares acquired contents with each other to automatically discriminate the validity. CONSTITUTION:An interactive input device 1, a keyword table generating part 2, a keyword table file 3, a keyword table 4, and a comparing and collating part 5 are provided. In this constitution, execution results to be compared exist in 1st and 2nd execution result files 8 and 9. When the validity of test results will be discriminated, an item corresponding to a preliminarily defined keyword is extracted, and contents to be compared and collated are acquired from this item by information of the relative position from the keyword and the length of the item, and acquired contents are compared with each other to discriminate the validity. Thus, records different by output forms are automatically compared with each other.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、テスト結果自動判定
処理方式に係り、特にデータ処理システムにおける被テ
ストプログラムのテスト結果の正当性を自動的に判定す
る処理方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a test result automatic judgment processing system, and more particularly to a processing system for automatically judging the validity of a test result of a program under test in a data processing system.

【0002】[0002]

【従来の技術】同じ内容の入力データに対する出力結果
が形式も内容も同じになるような複数の被テストプログ
ラムがある場合、テスト結果が正当であるかどうかの判
定方法として、それぞれの出力結果を1レコードづつ読
み込み、それぞれ対応するレコ−ド同士を1対1で比較
照合し、全てのレコ−ドが一致するならば、正当である
と判定する方法がある。
2. Description of the Related Art When there are a plurality of programs under test in which the output results for input data of the same content have the same format and content, each output result is determined as a method of judging whether the test result is valid or not. There is a method of reading one record at a time, comparing and collating the corresponding records one by one, and if all the records match, it is judged as valid.

【0003】しかし、この方法は出力形式が同じである
ことを前提としているため、被テストプログラムの一方
に出力形式の変更が発生した場合、レコード内の比較照
合すべき項目位置が1対1に対応しなくなるため、自動
的な比較照合が不可能になり、実行結果の出力リストを
人間が目で確認せざるを得なくなる。
However, since this method is premised on that the output format is the same, when the output format is changed in one of the programs under test, the item positions to be compared and collated in the record are made one-to-one. Since it does not correspond, automatic comparison and collation becomes impossible, and human beings have no choice but to visually check the output list of execution results.

【0004】これに対して、特開昭60−69753号
公報に記載のテスト結果自動判定処理方式の例に見られ
るように、正解集ファイルとして必ず出力されるレコ−
ドと任意に出力されるレコ−ドを個別マスタファイルと
共通マスタファイルに分けて保持し、テストプログラム
の実行結果の各レコ−ドを比較することによりレコ−ド
の順序が変更された場合でも比較照合を自動的に行う方
法がある。
On the other hand, as can be seen from the example of the test result automatic judgment processing method described in JP-A-60-69753, a record which is always output as a correct answer file.
Even if the order of the records is changed by retaining the records and the records output arbitrarily as separate master files and common master files and comparing the records of the test program execution results. There is a method of automatically performing comparison and collation.

【0005】[0005]

【発明が解決しようとする課題】しかし、特開昭60−
69753号に開示された従来の自動判定処理方式で
は、レコ−ド内およびレコ−ド間の比較照合項目の位置
の変更、すなわち出力形式の変更があった場合には、正
解集ファイルのレコ−ドとの対応関係が崩れるため、比
較すべきデータ項目ごとに、その位置と長さを求め、1
項目づつ手作業で比較照合しなければならなくなるとい
う問題があった。
However, JP-A-60-
In the conventional automatic judgment processing method disclosed in No. 69753, when the position of the comparison and collation item within a record and between records is changed, that is, when the output format is changed, the correct answer file is recorded. The position and length of each data item to be compared are calculated because the correspondence with the
There was a problem that items had to be compared and collated manually.

【0006】本発明の目的は、テスト結果の出力形式の
変更があった場合でも、自動的に正当性を判定すること
ができるテスト結果の自動判定処理方式を提供すること
である。
An object of the present invention is to provide a test result automatic judgment processing method capable of automatically judging the correctness even when the output format of the test result is changed.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、本発明は、出力形式の異なる項目についてはその項
目のレコ−ドを識別するキ−ワ−ドと、該キーワードか
らの相対位置及び項目の長さの情報とをキーワードテー
ブルに予め定義しておき、テスト結果の正当性を判定す
る際は、前記キ−ワ−ドに基づき該キ−ワ−ドに対応し
た項目を抽出した後、この項目の中から比較照合すべき
内容を前記相対位置及び項目の長さの情報によって取得
し、この取得した内容同士を比較することにより正当性
を判定するようにした。
In order to achieve the above object, the present invention provides a keyword for identifying the record of an item having a different output format, and a relative position from the keyword. And item length information are defined in advance in the keyword table, and when the validity of the test result is determined, the item corresponding to the keyword is extracted based on the keyword. After that, the contents to be compared and collated among these items are acquired from the information on the relative position and the length of the item, and the validity is determined by comparing the acquired contents.

【0008】[0008]

【作用】上記手段によれば、テスト結果の正当性を判定
する際は、予め定義したキ−ワ−ドに基づき該キ−ワ−
ドに対応した項目を抽出した後、この項目の中から比較
照合すべき内容をキ−ワ−ドからの相対位置及び項目の
長さの情報によって取得し、この取得した内容同士を比
較することにより正当性を判定するので、出力形式が異
なるレコ−ド同士を自動的に比較することができる。
According to the above means, when the validity of the test result is judged, the key word is defined based on the previously defined key word.
After extracting the item corresponding to the item, acquire the contents to be compared and collated from this item by the information of the relative position from the keyword and the length of the item, and compare the acquired contents with each other. Since the correctness is determined by, the records having different output formats can be automatically compared with each other.

【0009】[0009]

【実施例】以下に、本発明の一実施例を図面を用いて具
体的に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be specifically described below with reference to the drawings.

【0010】図1は本発明の一実施例を示す構成図、図
2は実施例で用いられている比較照合対象のデータ項目
の存在位置を規定するキーワードテーブルの構成図、図
3は比較照合を行うデータ項目を格納しておく比較デー
タテーブルの構成図である。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a block diagram of a keyword table which defines the existence positions of data items to be compared and collated used in the embodiment, and FIG. 3 is a comparison collation. It is a block diagram of the comparison data table which stores the data item which performs.

【0011】図1において、1は対話入力装置、2はキ
ーワードテーブル作成部、3はキーワードテーブルファ
イル、4はキーワードテーブル、5は比較照合部、6は
第1の被テストプログラム、7は第2の被テストプログ
ラム、8は第1の被テストプログラムの実行結果を格納
する第1の実行結果ファイル、9は第2の被テストプロ
グラムの実行結果を格納する第2の実行結果ファイル、
10はレコードバッファ、11は比較データテーブル、
12は比較結果リストを表わす。
In FIG. 1, 1 is an interactive input device, 2 is a keyword table creating unit, 3 is a keyword table file, 4 is a keyword table, 5 is a comparing and collating unit, 6 is a first tested program, and 7 is a second. Program under test, 8 is a first execution result file storing the execution result of the first test program, 9 is a second execution result file storing the execution result of the second test program,
10 is a record buffer, 11 is a comparison data table,
Reference numeral 12 represents a comparison result list.

【0012】この構成において、比較すべき実行結果
は、第1の実行結果ファイル8と第2の実行結果ファイ
ル9に存在する。これらのファイル8,9には、形式は
異なるが同一内容のデータ項目が存在するレコードが格
納される。
In this configuration, the execution result to be compared exists in the first execution result file 8 and the second execution result file 9. These files 8 and 9 store records in which data items having different formats but having the same contents are present.

【0013】図4は出力形式は異なるが、同一内容のデ
−タ項目の一例として、項目属性リスト80,90を示
すもので、これらのリスト80の出力項目名「CONS
1」には、REGULAR,NORM,NOREV,N
OBLINKという項目属性を持つデ−タがあり、また
リスト90の出力項目名「CONS1」には、REGU
LAR,NOREV,GREEN,NOBLINKとい
う項目属性を持つデ−タがあり、「GREEN」を除き
共通のデ−タ構成となっている。しかし、リスト80に
おいては、REGULAR,NORM,NOREV,N
OBLINKの順に出力するようになっているのに対
し、リスト90においては、REGULAR,NORE
V,GREEN,NOBLINKという順に出力するよ
うになっており、出力形式(この場合は、出力順番)が
異なっている。
FIG. 4 shows the item attribute lists 80 and 90 as an example of the data items having the same contents although the output formats are different, and the output item name "CONS" of these lists 80 is shown.
1 ”includes REGULAR, NORM, NOREV, N
There is data having an item attribute of OBLINK, and the output item name "CONS1" of the list 90 has REGU.
There is data having item attributes of LAR, NOREV, GREEN, and NOBLINK, and the data structure is common except for "GREEN". However, in list 80, REGULAR, NORM, NOREV, N
The output is made in the order of OBLINK, whereas in the list 90, REGULAR and NORE are output.
The output is performed in the order of V, GREEN, and NOBLINK, and the output format (in this case, the output order) is different.

【0014】一方、対話入力装置1においては、比較す
るデータ項目を識別するためのキ−ワ−ド40と、デ−
タ項目の長さの情報41と、第1、第2の実行結果のそ
れぞれにおけるキ−ワ−ドからの相対位置を示す情報4
2,43が正当性の判定処理に先立って入力される。
On the other hand, in the interactive input device 1, a keyword 40 for identifying a data item to be compared and a data item.
Information 41 on the length of the data item and information 4 indicating the relative position from the keyword in each of the first and second execution results.
2, 43 are input prior to the validity determination process.

【0015】この入力された各情報は、キ−ワ−ド作成
部2によって図2の示すようなキ−ワ−ドテ−ブル4に
編集され、キーワードテーブルファイル3として格納さ
れる。 ここで、キ−ワ−ド40とは、比較するデ−タ
項目を識別し得るものであればよく、図2においては、
図4におけるリスト80,90の出力項目「CONS
1」の属性情報をキ−ワ−ド40として設定し、REG
ULAR,NOREV,NOBLINKというデ−タを
比較する例を示している。また、キ−ワ−ド40からの
相対位置を示す情報42,43は、第1の実行結果に対
するものは「位置1」、第2の実行結果に対するものは
「位置2」として示している。
The input information is edited by the keyword creating unit 2 into a keyword table 4 as shown in FIG. 2 and stored as a keyword table file 3. Here, the keyword 40 is only required to identify the data item to be compared, and in FIG.
The output item "CONS" of the lists 80 and 90 in FIG.
Attribute information of "1" is set as the keyword 40, and REG is set.
An example of comparing data such as ULAR, NOREV, and NOBLINK is shown. The information 42 and 43 indicating the relative position from the keyword 40 are shown as "position 1" for the first execution result and "position 2" for the second execution result.

【0016】以上の条件が揃ったならば、第1の被テス
トプログラム6および第2の被テストプログラム7を実
行させ、その出力結果を、実行結果ファイル8及び実行
結果ファイル9にそれぞれ格納させる。この場合、両フ
ァイル8,9の内容は同一であるが、レコードの形式は
異なっている。
When the above conditions are met, the first program under test 6 and the second program under test 7 are executed, and the output results thereof are stored in the execution result file 8 and the execution result file 9, respectively. In this case, the contents of both files 8 and 9 are the same, but the record formats are different.

【0017】比較照合部5では、まず、キーワードテー
ブルファイル3の内容を主記憶装置内へキーワードテー
ブル4として読み込む(ステップ49)。
The comparison and collation unit 5 first reads the contents of the keyword table file 3 into the main storage device as the keyword table 4 (step 49).

【0018】キーワードテーブル4は図2に示したよう
に4つの情報要素で構成される。
The keyword table 4 is composed of four information elements as shown in FIG.

【0019】次に、2つの実行結果ファイル8,9を1
レコードづつレコードバッファ10へ読み込む(ステッ
プ50)。この後、キーワードテーブル4のキーワード
40を検索語としてレコードバッファ10を検索する
(ステップ51)。
Next, the two execution result files 8 and 9 are set to 1
Each record is read into the record buffer 10 (step 50). Thereafter, the record buffer 10 is searched using the keyword 40 in the keyword table 4 as a search word (step 51).

【0020】この検索の結果、一致するキーワードが見
つかったらならば(ステップ52)、キーワードテーブ
ル4中にある「位置1」42,「位置2」43の情報を
基に比較すべきデータ項目をレコードバッファ10から
順次抽出し、比較データテーブル11に格納する(ステ
ップ53)。
If a matching keyword is found as a result of this search (step 52), the data item to be compared is recorded based on the information of "position 1" 42 and "position 2" 43 in the keyword table 4. The data is sequentially extracted from the buffer 10 and stored in the comparison data table 11 (step 53).

【0021】比較データテーブル11には、図3に示す
ように、キーワード40と、比較するデータ項目の長さ
の情報41、及びキーワードテーブル4の位置情報4
2,43から求めた各実行結果の比較データ項目11
2,113の内容(図示の例では、REGULAR)を
実行結果ファイル8及び実行結果ファイル9に対応して
順次格納する。
In the comparison data table 11, as shown in FIG. 3, a keyword 40, information 41 on the length of a data item to be compared, and position information 4 on the keyword table 4 are shown.
Comparison data item 11 of each execution result obtained from 2, 43
The contents 2 and 113 (REGULAR in the illustrated example) are sequentially stored in correspondence with the execution result file 8 and the execution result file 9.

【0022】格納が終わったならば、実行結果ファイル
8,9からEOF(ファイル終了コ−ド)が読み出され
るまでキーワードの検索を繰り返す。
After the storage, the keyword search is repeated until EOF (file end code) is read from the execution result files 8 and 9.

【0023】EOFが読み出されたならば、比較データ
テーブル11から比較データ項目112,113の内容
を順次読み出し、比較を行う(ステップ54)。
When the EOF is read, the contents of the comparison data items 112 and 113 are sequentially read from the comparison data table 11 and compared (step 54).

【0024】この比較はキーワード単位に「比較データ
1」と「比較データ2」について行い、一致不一致の情
報を比較結果リスト12に出力する(ステップ55)。
This comparison is performed for "comparison data 1" and "comparison data 2" on a keyword basis, and the information of match / mismatch is output to the comparison result list 12 (step 55).

【0025】これによって、出力形式の異なるデ−タで
あっても自動的に比較することができる。
By this, even data having different output formats can be automatically compared.

【0026】なお、上記説明においては、出力形式とし
て、出力順番が異なる例を示したが、本発明はこれに限
定されるものではなく、出力位置など、内容に影響を与
えない出力形式の相違するデ−タの比較照合に適用する
ことができるものである。
In the above description, an example in which the output order is different as the output format is shown, but the present invention is not limited to this, and the difference in the output format that does not affect the contents such as the output position. The present invention can be applied to comparison and collation of data.

【0027】[0027]

【発明の効果】以上述べたように本発明によれば、出力
形式の異なる項目についてはその項目のレコ−ドを識別
するキ−ワ−ドと、該キーワードからの相対位置及び項
目の長さの情報とをキーワードテーブルに予め定義して
おき、テスト結果の正当性を判定する際は、前記キ−ワ
−ドに基づき該キ−ワ−ドに対応した項目を抽出した
後、この項目の中から比較照合すべき内容を前記相対位
置及び項目の長さの情報によって取得し、この取得した
内容同士を比較することにより正当性を判定するように
したため、テスト結果の出力形式が異なる場合でも、そ
の正当性を自動的に判定することができ、正当性の判定
作業の効率を向上させることができる。
As described above, according to the present invention, for items having different output formats, the keyword for identifying the record of the item, the relative position from the keyword, and the item length. Information is previously defined in the keyword table, and when judging the validity of the test result, after extracting the item corresponding to the keyword based on the keyword, Even if the output format of the test result is different, the contents to be compared and collated are acquired from the information of the relative position and the length of the item, and the validity is judged by comparing the acquired contents with each other. The validity can be automatically determined, and the efficiency of the validity determination work can be improved.

【図面の簡単な説明】[Brief description of drawings]

【図1】 本発明の一実施例を示す構成図である。FIG. 1 is a configuration diagram showing an embodiment of the present invention.

【図2】 キーワードテーブルの例を示す構成図であ
る。
FIG. 2 is a configuration diagram showing an example of a keyword table.

【図3】 比較データテーブルの例を示す構成図であ
る。
FIG. 3 is a configuration diagram showing an example of a comparison data table.

【図4】 出力形式が異なるデータの例を示す説明図で
ある。
FIG. 4 is an explanatory diagram showing an example of data having different output formats.

【符号の説明】[Explanation of symbols]

1…対話入力装置、2…キーワードテーブル作成部、3
…キーワードテーブルファイル、4…キーワードテーブ
ル、5…比較照合部、6…第1の被テストプログラム、
7…第2の被テストプログラム、8…第1の被テストプ
ログラムの実行結果ファイル、9…第2の被テストプロ
グラムの実行結果ファイル、10…レコードバッファ、
11…比較データテーブル、12…比較結果リスト。
1 ... Dialogue input device, 2 ... Keyword table creation unit, 3
... keyword table file, 4 ... keyword table, 5 ... comparison and collation unit, 6 ... first tested program,
7 ... Second test program, 8 ... First test program execution result file, 9 ... Second test program execution result file, 10 ... Record buffer,
11 ... Comparison data table, 12 ... Comparison result list.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 佐野 毅 神奈川県横浜市中区尾上町6丁目81番地 日立ソフトウェアエンジニアリング株式会 社内 ─────────────────────────────────────────────────── ─── Continuation of front page (72) Inventor Takeshi Sano 6-81 Onoue-cho, Naka-ku, Yokohama-shi, Kanagawa Hitachi Software Engineering Co., Ltd. In-house

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 出力形式が異なり、出力内容が同じであ
る複数の被テストプログラムのテスト結果の各項目の正
当性を自動判定するテスト結果の自動判定処理方式であ
って、出力形式の異なる項目についてはその項目のレコ
−ドを識別するキ−ワ−ドと、該キーワードからの相対
位置及び項目の長さの情報とをキーワードテーブルに予
め定義しておき、テスト結果の正当性を判定する際は、
前記キ−ワ−ドに基づき該キ−ワ−ドに対応した項目を
抽出した後、この項目の中から比較照合すべき内容を前
記相対位置及び項目の長さの情報によって取得し、この
取得した内容同士を比較することにより正当性を判定す
ることを特徴とするテスト結果の自動判定処理方式。
1. An automatic determination processing method of test results, which automatically determines the correctness of each item of the test results of a plurality of programs under test having different output formats and the same output content, and items having different output formats. , The keyword for identifying the record of the item and the information of the relative position from the keyword and the item length are defined in advance in the keyword table, and the validity of the test result is judged. When
After extracting the item corresponding to the keyword based on the keyword, the contents to be compared and collated among the items are acquired by the information of the relative position and the item length, and this acquisition An automatic determination processing method for test results, which is characterized by determining the validity by comparing the obtained contents.
JP4063681A 1992-03-19 1992-03-19 Automatic discrimination processing system for test result Pending JPH05265794A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4063681A JPH05265794A (en) 1992-03-19 1992-03-19 Automatic discrimination processing system for test result

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4063681A JPH05265794A (en) 1992-03-19 1992-03-19 Automatic discrimination processing system for test result

Publications (1)

Publication Number Publication Date
JPH05265794A true JPH05265794A (en) 1993-10-15

Family

ID=13236356

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4063681A Pending JPH05265794A (en) 1992-03-19 1992-03-19 Automatic discrimination processing system for test result

Country Status (1)

Country Link
JP (1) JPH05265794A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019049939A (en) * 2017-09-12 2019-03-28 株式会社オービック Distribution management device, distribution management method and distribution management program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019049939A (en) * 2017-09-12 2019-03-28 株式会社オービック Distribution management device, distribution management method and distribution management program

Similar Documents

Publication Publication Date Title
US20150269222A1 (en) System method, and computer readable media for identifying a user-initiated log file record in a log file
JP2000067065A (en) Method for identifying document image and record medium
US5734889A (en) Method and apparatus for retrieving data and inputting retrieved data to spreadsheet including descriptive sentence input means and natural language interface means
JP2001282810A (en) Automation system to manage computer drawing
JPH05265794A (en) Automatic discrimination processing system for test result
JPH0793208A (en) Data base system and operating method for the same
JP3085508B2 (en) Electronic form search system
JP3902825B2 (en) Document search system and method
JPH08305710A (en) Method for extracting key word of document and document retrieving device
JPS5952388A (en) Dictionary collating system
JP2003316802A (en) Image management system, image management method and image management program
JPH08314958A (en) Data registering method in parliamentary papers retrieving system
JPH05158984A (en) Device for extracting character string
JPH056291A (en) Method for preparing and managing test resources
JP2759951B2 (en) General-purpose multi-dimensional summary book creation system
JPH09212354A (en) Visual programming system
JP2596332B2 (en) Data combination extraction method and apparatus
JP2795003B2 (en) Character recognition processor
JP2838972B2 (en) Automatic indexing device
JP2757769B2 (en) Automatic indexing device
JPH05122335A (en) Station data collation system
JPH02112024A (en) Method for estimating program processing pattern
JPH07200356A (en) Automatic check list delete system
JPH0535498A (en) Data base information converter
JPS63189935A (en) Combined processing system for relational data base