JPH03278140A - Inspecting system for software program - Google Patents

Inspecting system for software program

Info

Publication number
JPH03278140A
JPH03278140A JP2078114A JP7811490A JPH03278140A JP H03278140 A JPH03278140 A JP H03278140A JP 2078114 A JP2078114 A JP 2078114A JP 7811490 A JP7811490 A JP 7811490A JP H03278140 A JPH03278140 A JP H03278140A
Authority
JP
Japan
Prior art keywords
output value
difference
value
comparison
comparison processing
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
JP2078114A
Other languages
Japanese (ja)
Inventor
Tomoko Kano
狩野 知子
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 JP2078114A priority Critical patent/JPH03278140A/en
Publication of JPH03278140A publication Critical patent/JPH03278140A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the exactitude of an inspection by providing a means for specifying a part of an output value of a program to be inspected and a means for comparing a part of a specific output value with plural expected values. CONSTITUTION:In an inspection program 111, first of all, a comparison processing selecting part 108 reads in comparison processing selecting information 107, and a range for executing a comparison processing of an output value and a difference allowable character is recognized. In the case of the range for executing the comparison processing of an output value and an expected value, an output value 103 and an expected value 104 are compared by a comparison processing part 105 of the output value and the expected value, and comparison result information 109 is inputted. Also, in the case of the range for executing the comparison processing of the output value and the difference allowable character, the output value 103 and difference allowable character information 106 are compared by a comparison processing part 110 of the output value and the difference allowable character, and the comparison result information 109 is outputted. In such a way, the exactitude of an inspection can be improved.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はソフトウェアプログラムの検査に関し、特に、
期待値と被検査プログラムの出力値とを比較することに
より被検査プログラムの機能を検証するソフトウェアプ
ログラムの検査方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to the testing of software programs, and in particular,
The present invention relates to a software program testing method that verifies the functionality of a program under test by comparing an expected value with an output value of the program under test.

〔従来の技術〕[Conventional technology]

第2図を用いて従来の検査プログラムおよび、従来の検
査プログラムを用いたソフトウェアプロクラムの検査の
流れを説明する。第2図に示すように被検査プログラム
(第2図−102)は検査データ101を入力し、出力
値(第2図−103)を出力する。従来の検査プログラ
ム(第2図201)は出力と期待値との比較処理部(第
2図105)から構成される。前記比較処理部(第2図
105)は、あらかじめ作成された期待値(第2図−1
04)と前記出力値(第2図−103)を入力すると、
これら期待値(第2図−104)と出力値(第2図−1
03)を比較し、比較した結果を比較結果情報(第2図
−109)として出力する。
The flow of a conventional inspection program and a software program inspection using the conventional inspection program will be explained using FIG. As shown in FIG. 2, the program to be tested (102 in FIG. 2) inputs test data 101 and outputs an output value (103 in FIG. 2). The conventional inspection program (201 in FIG. 2) is composed of a comparison processing section (105 in FIG. 2) for comparing output and expected values. The comparison processing unit (Fig. 2-1 105) compares the expected value (Fig. 2-1
04) and the above output value (Fig. 2-103),
These expected values (Figure 2-104) and output values (Figure 2-1)
03) and outputs the comparison result as comparison result information (Fig. 2-109).

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

第3図は、従来のソフトウェアプログラムの開発/検査
手順である。第3図に示すように、まずはじめにソフト
ウェアプログラムを作成しく第3図−301)、次に前
記作成したソフトウェアフログラムの検査を行なう(第
3図−302)。ソフトウェアプログラムの検査(第3
図−302)を詳しく示したものが、前述の第2図のソ
フトウェアプログラムの検査の流れ図である。
FIG. 3 shows a conventional software program development/inspection procedure. As shown in FIG. 3, first a software program is created (FIG. 3-301), and then the created software program is inspected (FIG. 3-302). Inspection of software programs (Part 3)
302) is shown in detail in the flowchart of the software program inspection in FIG. 2 described above.

ソフトウェアプログラムの検査(第3図−302)の結
果得られる比較結果情報(第2図−109)には、相違
がでてよいものと相違がでてはいけないものの2種類あ
る。例えば前記被検査プログラムの出力値A(第2図−
103)が出力された時点の日付や時刻、または、被検
査プログラム(第2図102)のバージョン番号などは
相違がでてよいものである。従って比較結果情報確認の
際、まず相違がでてよい比較結果情報の除去を行う(第
3図−305)。なお、これら相違がでてもよい部分は
、あらかじめ予想できるので、この予想に基づいて、期
待値をあらかじめ変更しておけば、相違がでてよい比較
結果情報を生成させないこともできる。しかし、期待値
が大量である場合、この方法は効率的ではない。
There are two types of comparison result information (FIG. 2-109) obtained as a result of software program inspection (FIG. 3-302): one in which differences are allowed and one in which differences are not allowed. For example, the output value A of the program under test (Fig. 2-
103) or the version number of the program to be tested (102 in FIG. 2) may be different. Therefore, when checking the comparison result information, first, the comparison result information that may be different is removed (FIG. 3-305). It should be noted that since these areas where differences may occur can be predicted in advance, if the expected values are changed in advance based on this prediction, it is possible to prevent the generation of comparison result information where differences may occur. However, this method is not efficient when the expected values are large.

この第2図の比較結果情報(第2図−109)から相違
がでてよい比較結果情報を除去すること(第3図−30
5)は、以下で説明するような手順により、従来ソフト
ウェアプログラムの検査を行う検査者が目視で確認して
いた。
Remove the comparison result information that may cause a difference from the comparison result information (Figure 2-109) in Figure 2 (Figure 3-30).
5) has conventionally been visually confirmed by an inspector who inspects software programs using the procedure described below.

手順としては、まず第2図の比較結果情報(第2図−1
09)から相違がでてよい比較結果情報の除去(第3図
−305)を行った後、相違がでてはいけない比較結果
が存在するか否かを調べる(第3図−303)。相違が
存在しなかった場合(第3図−303−No)は、ソフ
トウェアプログラムの開発/検査は終了する。相違が存
在した場合(第3図−303−YES)は、ソフトウェ
アプログラムの修正を行い(第3図−304)、再度ソ
フトウェアプログラムの検査を行う。こうして出力値A
と期待値Aとを比較した結果、相違がでてはいけない項
目が存在しなくなるまで、ソフトウェアプログラムの修
正、検査、比較結果の確認ヲ繰り返す。通常、ソフトウ
ェアプログラムにとって不具合である相違がまったく存
在しない、または、−回のソフトウェアプログラムの修
正で存在しなくなることはほとんどなく、ソフトウェア
プログラムの修正、検査、比較結果の確認を何度か繰り
返す。
The procedure is to first obtain the comparison result information in Figure 2 (Figure 2-1).
After removing the comparison result information that may cause a difference (305 in FIG. 3) from 09), it is checked whether there is any comparison result that should not show a difference (303 in FIG. 3). If there is no difference (FIG. 3-303-No), the software program development/inspection ends. If a difference exists (FIG. 3-303-YES), the software program is corrected (FIG. 3-304) and the software program is inspected again. In this way, the output value A
Modification of the software program, inspection, and confirmation of the comparison results are repeated until there are no items that should not differ as a result of comparing the expected value A. Usually, differences that cause problems in a software program do not exist at all, or almost never disappear after a - number of software program modifications, and the software program modification, inspection, and comparison result confirmation are repeated several times.

上述したように、従来のソフトウェアプログラムの検査
プログラムにおいて、第2図の比較結果情報(第2図−
109)から相違がでてよい比較結果情報の除去(第3
図−305)を検査者が目視で行わなければならないた
め、正確性に欠は時間がかかり、検査者が常に検査プロ
グラムを実行させている計算機に付ききりにならなけれ
ばならないなどの欠点があった。上記欠点を回避するた
め、相違が出てもよい箇所を比較しないようにマスクす
る検査プログラムがある。しかし、この検査プログラム
では相違が出てもよい箇所を比較しないため、この箇所
の被検査プログラムの出力結果が全く誤ったものであっ
た場合の検出ができない。
As mentioned above, in the inspection program of the conventional software program, the comparison result information shown in Fig. 2 (Fig. 2-
109), removal of comparison result information that may cause a difference (3rd
Figure 305) has to be carried out visually by the inspector, which has disadvantages such as the lack of accuracy and the fact that it takes time and the inspector has to be constantly attached to the computer that is running the inspection program. Ta. In order to avoid the above drawbacks, there is an inspection program that masks portions where differences may occur so as not to compare them. However, since this test program does not compare locations where differences may occur, it is not possible to detect if the output result of the program under test at this location is completely incorrect.

このため、相違がでてもよい箇所の検査に正確性=5− が欠けるという欠点があった。For this reason, accuracy = 5- It had the disadvantage of lacking.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は、被検査プログラムの出力値の一部分を特定す
る手段と前記特定された出力値に対して、複数の期待値
と比較する手段を用い前記2つの比較処理部を使い分け
る手段を備える。
The present invention includes means for specifying a part of the output value of the program under test and means for comparing the specified output value with a plurality of expected values, and means for selectively using the two comparison processing units.

〔実施例〕〔Example〕

以下、本発明の実施例の詳細を図面を参照して説明する
Hereinafter, details of embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の検査プログラムおよび本発明の検査プ
ログラムを用いたソフトウェアプログラムの検査の流れ
図である。
FIG. 1 is a flowchart of the test program of the present invention and the test of a software program using the test program of the present invention.

なお、本例においては、出力値の特定の部分に対する複
数の期待値を相違許容文字と呼ぶ。
Note that, in this example, the plurality of expected values for a specific portion of the output value are referred to as difference tolerance characters.

第2図と異なるところは、検査プログラム(第1図−1
11)に出力値と相違許容文字との比較処理部(第1図
−110)と比較処理選択部(第2図102)を持つこ
とである。
The difference from Figure 2 is the inspection program (Figure 1-1).
11) is provided with a comparison processing section (110 in FIG. 1) and a comparison processing selection section (102 in FIG. 2) for comparing the output value and the characters allowed to differ.

検査プログラム(第1図−111)では、まず比較処理
選択情報(第1図−107)を比較処理選択部(第1図
−108)が読み込み、出力値と相違許容文字との比較
処理を行う範囲を認識する。出力値と期待値との比較処
理を行う範囲である場合、出力値と期待値との比較処理
部(第1図−105)において出力値(第1図−103
)と期待値(第1図−104)を比較し、比較結果情報
(第1図109)を出力する。出力値と相違許容文字と
の比較処理を行う範囲である場合、出力値と相違許容文
字との比較処理部(第1図−110)において出力の値
(第1図−103)と相違許容文字情報(第1図−10
6)を比較し、比較結果情報(第1図−109)を出力
する。
In the inspection program (Fig. 1-111), the comparison processing selection section (Fig. 1-108) first reads the comparison processing selection information (Fig. 1-107) and performs the comparison processing between the output value and the allowable difference character. Recognize range. If it is within the range where the comparison process between the output value and the expected value is performed, the output value (Figure 1-103) is
) and the expected value (104 in FIG. 1) and outputs comparison result information (109 in FIG. 1). If it is within the range where comparison processing is performed between the output value and the allowable difference character, the output value and allowable difference character comparison processing section (Fig. 1-110) compares the output value (Fig. 1-103) with the allowable difference character. Information (Figure 1-10
6) and outputs comparison result information (Fig. 1-109).

第4図を用いて実施例の処理の流れを具体的に示す。第
4図−103から第4図−111までは、それぞれ、第
1図−103から第1図−111までに対応している。
The processing flow of the embodiment will be specifically illustrated using FIG. 4-103 to FIG. 4-111 correspond to FIG. 1-103 to FIG. 1-111, respectively.

ここでは本特許の要点を明確にするため、相違許容文字
情報(第4図−106)と比較処理選択情報(第4図−
107)は必ず存在するものとする。
Here, in order to clarify the main points of this patent, we will introduce difference permissible character information (Fig. 4-106) and comparison processing selection information (Fig. 4-106).
107) must exist.

また、期待値、出力値を1バイトごとに比較するものと
する。
It is also assumed that the expected value and the output value are compared for each byte.

X(第4図−401)は、出力値(第4図−103)の
先頭を指すポインタである。ポインタXの内容はa、ポ
インタx+1バイト目の内容はE1ポインタx+2バイ
ト目の内容は1、ポインタx+3バイト目の内容は01
ポインタx+4バイト目の内容はeであるとする。
X (FIG. 4-401) is a pointer pointing to the beginning of the output value (FIG. 4-103). The content of pointer X is a, the content of pointer x+1 byte is E1, the content of pointer x+2 byte is 1, the content of pointer x+3 byte is 01
Assume that the content of the pointer x+4th byte is e.

y(第4図−402)は、期待値(第4図−104)の
先頭を指すポインタである。ポインタyの内容はa1ポ
インタy+1バイト目の内容はv1ポインタy+2バイ
ト目の内容はl、ポインタy+3バイト目の内容は0、
ポインタy+4バイト目の内容はeであるとする。
y (FIG. 4-402) is a pointer pointing to the beginning of the expected value (FIG. 4-104). The contents of pointer y are a1 pointer y + the contents of 1st byte are v1 pointer y + the contents of 2nd byte are l, the contents of pointer y + 3rd byte are 0,
Assume that the content of pointer y+4th byte is e.

先頭から2バイト目の、出力値(第4図−103)と期
待値(第4図−104)とは、比較した結果、相違がで
てよいバージョン番号であるとする。
It is assumed that the output value (FIG. 4-103) and the expected value (FIG. 4-104) in the second byte from the beginning are version numbers that may differ from each other as a result of comparison.

比較処理選択情報(第4図−107)は出力値と相違許
容文字との比較処理を行う範囲の先頭が出力値の先頭か
ら何バイト目であるかを5tart−に続けて数字で指
定する。同様に出力値と相違許容文字との比較処理を行
う範囲の終わりが出力値の先頭から何バイト目であるか
をEnd−に続けて数字で指定する。
The comparison processing selection information (FIG. 4-107) specifies, by number following 5tart-, the number of bytes from the beginning of the output value that is the beginning of the range in which the comparison processing of the output value and the difference allowable characters is performed. Similarly, the number byte from the beginning of the output value at which the end of the range for comparing the output value and the difference allowable character is specified is specified by a number following End-.

比較処理選択部(第4図−108)は、比較処理選択情
報(第4図−107)から入力された5tartの値と
Endの値を昇順に並び変えながら取り込む。ここで5
tartとEndが複数指定され重なった範囲があれば
1つにまとめて取り込む。例えば、5tart= 1と
4 、 End=、3と6であった場合、5tart=
1.End=6とする。本実施例では本特許の要点を明
確にするため、比較処理選択情報(第4図−107)の
End−で指定された数字より、出力値(第4図−10
3)の終わりのバイト数が大きいものとする。具体例を
比較処理選択情報(第4図107)に示す。
The comparison process selection unit (FIG. 4-108) takes in the 5tart value and the End value inputted from the comparison process selection information (FIG. 4-107) while rearranging them in ascending order. here 5
If multiple tarts and ends are specified and there is an overlapping range, they are imported into one. For example, if 5tart=1 and 4, End=, 3 and 6, 5tart=
1. Set End=6. In this example, in order to clarify the main points of this patent, the output value (Fig. 4-10
3) Assume that the number of bytes at the end is large. A specific example is shown in comparison processing selection information (FIG. 4, 107).

また、相違許容文字情報(第4図−106)では前記比
較処理選択情報(第4図−107)で指定した範囲の1
バイトごとに相違許容文字を;′で区切って指定するも
のとする。複数の相違許容文字は、 ′、′で区切るこ
とにより複数個記述でき=9− ることとする。具体例を相違許容文字情報(第4図−1
06)に示す。
In addition, in the difference allowable character information (Figure 4-106), 1 in the range specified in the comparison processing selection information (Figure 4-107)
Characters that allow differences shall be specified for each byte, separated by ;'. Multiple characters that can be different can be written by separating them with ', ' = 9-. A specific example is the difference-allowed character information (Figure 4-1)
06).

この具体例の場合、検査プログラムは、まず、比較処理
選択部(第4図−108)で比較処理選択情報(第4図
−107)により出力値の1バイト目を期待値と比較す
る。次に2バイト目から4バイト目は出力値と相違許容
文字情報を比較する。出力値の5バイト目は期待値と比
較する。出力値と相違許容文字情報との比較では出力値
の内容と相違許容文字情報の内容を前記内容が一致する
まで、または、 °;′がくるまで比較する。
In this specific example, the inspection program first compares the first byte of the output value with the expected value using the comparison process selection information (107 in FIG. 4) in the comparison process selection section (108 in FIG. 4). Next, in the second to fourth bytes, the output value and the difference allowable character information are compared. The 5th byte of the output value is compared with the expected value. In comparing the output value and the difference allowable character information, the contents of the output value and the contents of the difference allowable character information are compared until the contents match or until °;' is reached.

具体的な処理の流れを第4図と第6図を用いて説明する
The specific process flow will be explained using FIGS. 4 and 6.

第4図−107の相違許容文字情報と第4図106の比
較処理選択情報は、それぞれ、ファイルに格納されてい
るものとし、それらを比較処理選択情報ファイルと相違
許容文字情報ファイルとする。
It is assumed that the difference permissible character information in FIG. 4-107 and the comparison process selection information in FIG.

まず、比較処理選択部(第4図−108)は、領域mに
1を代入する(第6図−601)。領域m10 は、出力値A(第4図−103)と期待値A(第4図−
104)の比較すべき先頭からのバイト数を示す。次に
、比較処理選択情報ファイルと相違許容文字情報ファイ
ルをオープンする(第6図−602)。比較処理選択情
報(第4図−107)から、5tartの値を読み出す
(第6図−603)。
First, the comparison processing selection section (FIG. 4-108) assigns 1 to area m (FIG. 6-601). The area m10 is the output value A (Fig. 4-103) and the expected value A (Fig. 4-103).
104) indicates the number of bytes from the beginning to be compared. Next, a comparison processing selection information file and a difference permissible character information file are opened (FIG. 6-602). The value of 5tart is read from the comparison processing selection information (FIG. 4-107) (FIG. 6-603).

次に、mの値1と5tartの値2を比較すると、mは
5tartより小さい。(第6図−604−NO)。
Next, when comparing the value 1 of m and the value 2 of 5tart, m is smaller than 5tart. (Figure 6-604-NO).

これにより、比較処理選択部(第4図−108)は、出
力値と期待値との比較処理部(第4図105)を選択す
る。1バイト目の、期待値と出力値との比較を行う(第
6図−605)。1バイト目の、期待値と出力値は両方
共aであり相違はない(第6図−606−No)ので、
出力値1バイト目に対する       には  は 
 されt見。もしも、期待値と出力値との比較を行い相
違があった場合は(第6図−606−YES)、比較結
果情報に相違を出力する(第6図−607)。
As a result, the comparison processing selection section (FIG. 4-108) selects the comparison processing section (FIG. 4-105) for comparing the output value and the expected value. The expected value and output value of the first byte are compared (605 in Figure 6). The expected value and output value of the first byte are both a and there is no difference (Figure 6-606-No), so
For the first byte of the output value, is
I saw it. If the expected value and the output value are compared and there is a difference (FIG. 6-606-YES), the difference is output as comparison result information (FIG. 6-607).

次に、mにm+1つまり2を代入する(第6図−608
)。次に、mの値2と5tartの値2を比較すると、
mは5tart以上(第6図−604−YES)である
ので、比較処理選択部(第4図−108)は、出力値と
相違許容文字との比較処理部(第4図−110)を選択
する。
Next, substitute m+1, that is, 2, for m (Fig. 6-608
). Next, when comparing the value 2 of m and the value 2 of 5tart, we get
Since m is 5 tart or more (Fig. 6-604-YES), the comparison processing selection section (Fig. 4-108) selects the comparison processing section (Fig. 4-110) between the output value and the allowable difference character. do.

次に、比較処理選択情報(第4図−107)から、En
dの値を読み出す(第6図−609)。次に、mの値2
とEndの値4を比較すると、mはEnd以下である。
Next, from the comparison processing selection information (Figure 4-107), En
Read the value of d (Fig. 6-609). Next, the value of m is 2
Comparing the value of 4 and End, m is less than or equal to End.

(第6図−610−YES)。次に、相違許容文字の読
み込みを行い(第6図−611)、mバイト目の出力値
と相違許容文字との比較を行う(第6図−612)。2
バイト目の出力値はE、相違許容文字はVであるので、
相違ありとなる(第6図−613−YES)が、相違許
容文字の区切りは“;′ではなく “、゛である(第6
図−614YES)ので、出力値2バイト目に相当する
次の相違許容文字を読み込む(第6図−611)。なお
、相違許容文字の区切りが′、゛ であった場合は(第
6図−611−No)、比較結果情報に相違を出力する
(第6図−616)。次に、2バイト目の出力値Eと相
違許容文字Eとの比較をしく第6図−612)、相違は
ない(第6図−613−NO)ので、出力値2バイト目
に対する匁ル佼紋果拵服に ゛を  しない。次に、m
にm+1つまり3を代入する(第6図−615)。
(Figure 6-610-YES). Next, the difference allowable characters are read (FIG. 6-611), and the output value of the m-th byte is compared with the difference allowable characters (FIG. 6-612). 2
The output value of the byte is E and the difference tolerance character is V, so
There will be a difference (Fig. 6-613-YES), but the delimiter for characters that allow difference is "," instead of ";'" (Fig. 6-613-YES).
614 (YES in FIG. 6), the next difference permissible character corresponding to the second byte of the output value is read (611 in FIG. 6). In addition, if the delimiter of the difference allowable characters is ', ' (FIG. 6-611-No), the difference is output in the comparison result information (FIG. 6-616). Next, compare the output value E of the 2nd byte with the difference allowable character E (Fig. 6-612). Since there is no difference (Fig. 6-613-NO), the output value E for the 2nd byte of the output value is compared. Don't put ゛ on your Monka Koshirae clothing. Next, m
Assign m+1, that is, 3 to (Fig. 6-615).

同様に、mが4より大きくなるまで、つまりmが5にな
るまで、第6図−610から第6図615を繰り返す。
Similarly, FIG. 6-610 to FIG. 6-615 are repeated until m becomes greater than 4, that is, until m becomes 5.

mが3の場合、出力値は1で相違許容文字はlと2であ
るので、出力値3バイト目に対する3       に
     しtい。
If m is 3, the output value is 1 and the characters that can differ are l and 2, so it is appropriate to set 3 to the 3rd byte of the output value.

次に、mが4の場合、出力値は0で相違許容文字は0で
あるので、出力値4バイト目に対するΩ凡に  を  
しない。mが5になると、mはEnd以下ではなくなり
(第6図−61ONo)、比較処理選択部(第4図−1
08)は出力値と期待値との比較処理部(第4図−10
5)を選択する。
Next, when m is 4, the output value is 0 and the allowable difference character is 0, so write Ω for the 4th byte of the output value as
do not. When m becomes 5, m is no longer less than or equal to End (Fig. 6-61 ONo), and the comparison processing selection section (Fig. 4-1
08) is the output value and expected value comparison processing unit (Figure 4-10).
Select 5).

mは期待値または出力値の最後ではないので(第6図−
617−No)、mバイト目の、期待値と出力値との比
較を行う(第6図−619)。5バイト目の期待値と出
力値は共にeであるので、相13 違はない(第6図−620−NO)、、これにより、出
力値5バイト目に対する5      に ゛U力直な
と。なお、相違があった場合は(第6図−620−YE
S)、比較結果情報に相違を出力する(第6図−621
)。次に、mにm+1つまり6を代入する(第6図−6
22)。
Since m is not the last expected value or output value (Figure 6-
617-No), the expected value and output value of the m-th byte are compared (FIG. 6-619). Since both the expected value and the output value of the 5th byte are e, there is no difference in phase (Fig. 6-620-NO).Therefore, the output value of 5 for the 5th byte is straightforward. In addition, if there is a difference (Fig. 6-620-YE
S), output the difference in comparison result information (Figure 6-621
). Next, substitute m+1, that is, 6, for m (Figure 6-6
22).

mは期待値と出力値の最後であるので(第6図−617
−YES)、ファイルのクローズ(第6図618)をし
て終わりとなる。
Since m is the last of the expected value and output value (Fig. 6-617
-YES), the file is closed (618 in FIG. 6) and the process ends.

以上説明したように、出力値と期待値との比較処理部ま
たは出力値と相違許容文字との比較処理部の出力結果を
まとめると、出力値と期待値は2バイト目において取り
除くべき相違があるが、相違許容文字情報に相違許容文
字が存在するため、本検査システムでは■から■までで
説明したように      に  を  しないから、
比較結果情報は相違なしく第4図−109)となる。
As explained above, summarizing the output results of the output value and expected value comparison processing section or the output value and difference allowed character comparison processing section, there is a difference between the output value and the expected value that should be removed in the second byte. However, since there is a character that is allowed to differ in the character information that allows for difference, this inspection system does not perform the following as explained from ■ to ■.
The comparison result information is shown in Fig. 4-109) without any difference.

〔発明の効果〕〔Effect of the invention〕

上述したように本発明は、被検査プログラムの出力値の
一部分を特定する手段と前記特定された4− 出力値の一部分に対して、複数の期待値と比較する手段
を備えることにより、被検査プログラムの出力結果が相
違許容値ではない場合相違として検出でき、検査の正確
性を向上させるという効果がある。また、第5図に示す
ソフトウェアプログラムの開発/検査において、第3図
の比較結果から相違がでてよい比較結果情報の除去(第
3図305)の作業を検査者が目視で行う作業を削除す
ることができ、1回あたりのソフトウェアプログラムの
検査後の確認の時間を短縮するという効果がある。
As described above, the present invention includes means for specifying a part of the output value of the program to be tested, and means for comparing the identified part of the output value with a plurality of expected values. If the output result of the program is not within the allowable difference value, it can be detected as a difference, which has the effect of improving the accuracy of inspection. Additionally, in the development/inspection of the software program shown in Figure 5, the task of visually removing comparison result information (305 in Figure 3), which may differ from the comparison results in Figure 3, by the inspector has been deleted. This has the effect of reducing the time required for confirmation after each software program inspection.

また、通常、ソフトウェアプログラムの修正。Also, usually modifications to software programs.

検査、比較結果の確認を何度か繰り返すため、本発明に
よりソフトウェアプログラムの開発/検査効率を大幅に
向上できるという効果がある。
Since the inspection and comparison results are confirmed several times, the present invention has the effect of greatly improving the efficiency of software program development/inspection.

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

第1図は本発明の検査プログラムを用いたソフトウェア
プログラムの検査の流れ図、第2図は従来の検査プログ
ラムを用いたソフトウェアプログラムの検査の流れ図、
第3図は従来のソフトウェアプログラムの開発/検査手
順図、第4図は実施例の処理の流れ図、第5図は本発明
を適用したソフトウェアプログラムの開発/検査手順図
、第6図は実施例の処理の流れ図である。 101・・・・・・検査データ、102・・・・・・被
検査プログラム、103・・・・・・出力値、104・
・・・・・期待値、105・・・・・・出力値と期待値
との比較処理部、106・・・相違許容文字情報、10
7・・・・・・比較処理選択情報、108・・・・・・
比較処理選択部、109・・・・・・比較結果情報、1
10・・・・・・出力値と相違許容文字との比較処理部
、111・・・・・・検査プログラム、201・・・・
・検査プログラム、301・・・・・ソフトウェアフロ
グラム作成、302・・・・・・ソフトウェアプログラ
ムの検査、303・・・・・・相違がでてはいけない比
較結果情報が存在するか?、304・・・・・・ソフト
ウェアプログラムの修正、305・・・・・・比較結果
情報から相違がでてよい比較結果情報の除去、401・
・・・・出力値の先頭を指すポインタ、402・・・・
・・期待値の先頭を指すポインタ、601・・・・mに
1を代入、602・・・・・・比較処理選択情報ファイ
ル、相違許容文字情報ファイルのオープン、603・・
・・・・5tartの読み出し、604・・・・・・m
は5tart以上か?、605・・・・・・mバイト目
の、期待値と出力値との比較、606・・・・・・相違
があるか?、607・・・・・・比較結果情報に相違を
出力、608・・・・・・mにm+1を代入、609・
・・・・・Endの読み出し、610・・・・・・mは
End以下か?、611・・・・・・相違許容文字の読
み込み、612・・・・・・mバイト目の出力値と相違
許容文字との比較、613・・・・・・相違があるか?
、614・・・・・・相違許容文字の区切りは;”では
なく、′か?、615・・・・・・mにm+1を代入、
616・・・・・・比較結果情報に相違を出力、617
・・・・・・mは期待値または出力値の最後か?、61
8・・・・・・ファイルのクローズ、619・・・・・
・mバイト目の、期待値と出力値との比較、620・・
・・・・相違があるか?、621・・・・・・比較結果
情報に相違を出力、622・・・・・・mにm+1を代
入。
FIG. 1 is a flowchart of testing a software program using the testing program of the present invention, and FIG. 2 is a flowchart of testing a software program using a conventional testing program.
Fig. 3 is a conventional software program development/inspection procedure diagram, Fig. 4 is a processing flow diagram of an embodiment, Fig. 5 is a software program development/inspection procedure diagram to which the present invention is applied, and Fig. 6 is an embodiment example. 2 is a flowchart of processing. 101...Inspection data, 102...Program to be inspected, 103...Output value, 104...
...Expected value, 105...Comparison processing unit for output value and expected value, 106...Difference allowable character information, 10
7... Comparison processing selection information, 108...
Comparison processing selection section, 109... Comparison result information, 1
10... Comparison processing unit for output value and difference allowable characters, 111... Inspection program, 201...
- Inspection program, 301... Create software program, 302... Inspect software program, 303... Is there any comparison result information that should not show any differences? , 304... Modification of the software program, 305... Removal of comparison result information that may cause a difference from the comparison result information, 401.
...Pointer pointing to the beginning of the output value, 402...
... Pointer pointing to the beginning of the expected value, 601 ... Assign 1 to m, 602 ... Open comparison processing selection information file, difference allowable character information file, 603 ...
...5 tart reading, 604...m
Is it more than 5 tart? , 605...Comparison of the expected value and output value of the m-th byte, 606...Is there a difference? , 607... Output the difference in comparison result information, 608... Substitute m+1 for m, 609.
...Reading End, 610...Is m less than End? , 611...Reading the difference-allowed characters, 612...Comparing the m-th byte output value and the difference-allowing characters, 613...Is there a difference?
, 614...Is the delimiter for characters that allow differences not ';''?, 615...Substitute m+1 for m,
616...Output the difference in comparison result information, 617
...Is m the expected value or the end of the output value? , 61
8...File close, 619...
・Comparison of expected value and output value of mth byte, 620...
...Is there a difference? , 621... Output the difference in comparison result information, 622... Substitute m+1 for m.

Claims (1)

【特許請求の範囲】[Claims] 被検査プログラムが出力する値の期待値と、被検査プロ
グラムが動作して出力する値とを比較することにより被
検査プログラムの動作を検証するソフトウェアプログラ
ムの検査方式において、被検査プログラムの出力値の一
部分を特定する手段と前記特定された出力値に対して、
複数の期待値と比較する手段を備えることにより、期待
値と被検査プログラムの出力値との比較を行うときに、
前記出力値の特定の部分については複数の期待値と比較
できることを特徴とするソフトウェアプログラムの検査
方式。
In a software program testing method that verifies the operation of the program under test by comparing the expected value output by the program under test with the value output by the program under test, the output value of the program under test is verified. Means for specifying a portion and for the specified output value,
By providing means for comparing with multiple expected values, when comparing the expected value with the output value of the program under test,
A software program inspection method characterized in that a specific portion of the output value can be compared with a plurality of expected values.
JP2078114A 1990-03-27 1990-03-27 Inspecting system for software program Pending JPH03278140A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2078114A JPH03278140A (en) 1990-03-27 1990-03-27 Inspecting system for software program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2078114A JPH03278140A (en) 1990-03-27 1990-03-27 Inspecting system for software program

Publications (1)

Publication Number Publication Date
JPH03278140A true JPH03278140A (en) 1991-12-09

Family

ID=13652861

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2078114A Pending JPH03278140A (en) 1990-03-27 1990-03-27 Inspecting system for software program

Country Status (1)

Country Link
JP (1) JPH03278140A (en)

Similar Documents

Publication Publication Date Title
US7080239B2 (en) Loop control circuit and loop control method
US6321173B1 (en) System and method for efficient verification of functional equivalence between design models
JPH03278140A (en) Inspecting system for software program
JP2004145381A (en) Static analysis system for source program
JP4952317B2 (en) Saved data discrimination method, saved data discrimination program, and saved data discrimination device
JPH1139363A (en) Data verification system
JPH0363838A (en) Software program inspection system
JPH0214734B2 (en)
JPH0363837A (en) Software program inspection system
JP2699436B2 (en) Parameter inspection processing method
JPH0721239A (en) Design rule check execution device
JPH0233175B2 (en)
JPH02100146A (en) Trace decision system
JP2560545B2 (en) Interface inspection processor
JPS6134640A (en) Inspecting method of program
JPH0659937A (en) Device for supporting single body test of load module
JPH04199436A (en) Software check system
JPH0314132A (en) Error processing control system
JPS61184647A (en) Performance test system of computer equipment
JPH0573355A (en) Microprogram description comparison/inspection system
JPH01307845A (en) Backup system for analysis of calculating program operation
JPH10301758A (en) Sort processor
JPH01201744A (en) Microprogram inspection support device
JPH07306809A (en) Verifying method of data processor
JPS61175737A (en) Parallel trouble simulation system