JPH07141170A - Method and device for preparing test supporting list - Google Patents

Method and device for preparing test supporting list

Info

Publication number
JPH07141170A
JPH07141170A JP5158287A JP15828793A JPH07141170A JP H07141170 A JPH07141170 A JP H07141170A JP 5158287 A JP5158287 A JP 5158287A JP 15828793 A JP15828793 A JP 15828793A JP H07141170 A JPH07141170 A JP H07141170A
Authority
JP
Japan
Prior art keywords
program
test support
support list
list
test
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
JP5158287A
Other languages
Japanese (ja)
Inventor
Kazuo Shintani
和男 新谷
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 JP5158287A priority Critical patent/JPH07141170A/en
Publication of JPH07141170A publication Critical patent/JPH07141170A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prepare a test supporting list also by program specifications at the time of generating a load module. CONSTITUTION:Comment sentences indiating the start and end of a test supporting list and holding a list part to be outputted as the test supporting list between them are inserting into program specifications stored in a program specifications storing part 3. A source program preparing means 7 prepares a source program based upon the program specifications and stores the source program in a source program storing part 4. A compiling means 8 is started by a compiling instruction outputted from an I/O means 1, executes compiling based upon the contents of the storing part 4, and at the time of normally ending the compiling, outputs a compiling end signal to a test supporting list preparing means 9. The preparing part 9 extracts the part held between the two comment sentences as a test supporting list and stores the extracted list in a test supporting list storing part 6.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はテスト支援リスト生成方
法とその装置に関し、特にプログラム仕様書より情報処
理装置などが実行可能なロードモジュールを生成する際
に、このロードモジュールをテストするための検査条件
などの基となるテスト支援リストを生成させるテスト支
援リスト生成方法とその装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a test support list generating method and apparatus thereof, and particularly to an inspection for testing a load module which can be executed by an information processing apparatus or the like from a program specification. The present invention relates to a test support list generating method and a device for generating a test support list which is a basis of conditions and the like.

【0002】[0002]

【従来の技術】従来、コンピュータなどの情報処理装置
により所望の処理を行わせるための実行可能なプログラ
ムを作成するときには、プログラム仕様書を行単位で処
理の実行順に、記述し作成し、コンピュータに入力し、
上述のコンピュータが内蔵するソースプログラム生成手
段により、プログラム仕様書に基づいたソースプログラ
ムを生成させ、コンピュータの持つコンパイラによりコ
ンパイルを行ない、コンピュータなどにより実行するこ
とが可能なプログラムであるロードモージュールを生成
する。
2. Description of the Related Art Conventionally, when an executable program for causing an information processing apparatus such as a computer to perform a desired process is created, a program specification is written in line units in the order of execution of the process and created, and the program is written in the computer. Input,
The source program generating means included in the computer described above generates a source program based on the program specifications, compiles the compiler with the computer, and generates a load module that is a program that can be executed by the computer or the like. To do.

【0003】その際、このようなロードモージュールに
よりコンピュータを動作させたとき、コンピュータが所
望の処理を行うか否かのテストを行うために、プログラ
ム仕様書に基づいて、このテストの対象となる変数とそ
の変数が有すべき値、あるいは、ある一つの変数が取る
べき値と、この変数に関連して、他の特定の変数が取る
べき値が、意図した通りであるか否か、さらには、ある
ファイルを生成するとき、そのファイルが含む特定の項
目のデータの値が意図した値を持っているか否かなどの
テストの条件をプログラム仕様書の内容を考慮して、前
述のプログラム仕様書とは別に、テスト支援リストとし
て作成し、このテスト支援リストを基に、上述したロー
ドモジュールが正常に動作するか否かのテストを行って
いる。
At this time, when the computer is operated by such a load module, it is a target of this test based on the program specification in order to test whether the computer performs a desired process. Whether the variable and the value that the variable should have, or the value that one variable should take and the values that other specific variables should take in relation to this variable are as intended, and When generating a certain file, consider the contents of the program specification, such as whether the value of the data of the specific item included in the file has the intended value, etc. Separately from the manual, a test support list is created, and based on this test support list, a test is performed as to whether or not the load module described above operates normally.

【0004】[0004]

【発明が解決しようとする課題】上述した従来のテスト
支援リストの生成方法では、ロードモジュールを生成す
るのとは、全く別に、プログラム仕様書を基にテスト条
件を考慮してテスト支援リストを作成するので、プログ
ラム仕様書の規模が大となるほど、このようなテスト支
援リストを作成するときに必要なテスト項目の作成漏れ
を生じ易いこと、および、プログラム仕様書を複数の関
係者がそれぞれ部分的に作成し、その内の一人がテスト
支援リストを作成するときにも、このようなテスト項目
やその条件についての作成漏れが生じ易いという欠点を
有している。
In the conventional method for generating a test support list described above, the test support list is created in consideration of the test conditions based on the program specifications, in addition to the generation of the load module. Therefore, the larger the program specification is, the more likely it is that a test item required for creating such a test support list will be overlooked, and the program specification is partially written by multiple parties. However, even when one of them creates a test support list, there is a drawback that such a test item and its condition are often omitted.

【0005】[0005]

【課題を解決するための手段】本発明のテスト支援リス
ト生成方法は、ソースプログラムの生成のためのプログ
ラム仕様書中で前記ソースプログラムを基に作成された
プログラムモジュールを実行しその動作の良否を判定す
るためのテストの基になるテスト支援リストとしても利
用し抽出すべき文の直前に前記テスト支援リストの開始
であることを示すとともにそのテスト項目名を含むコメ
ント文を挿入する処理と、前記テスト支援リストとして
利用し抽出すべき文の直後に前記テスト支援リストの終
了を示すコメント文を挿入する処理と、前記ロードモジ
ュールの生成が終了したとき、前記プログラム仕様書中
の前記開始を示すコメント文から前記終了を示すコメン
ト文に挟まれた前記プログラム仕様書の内容をテスト支
援リストとして抽出し前記開始を示すコメント文中の情
報とともにテスト項目別に編集して記憶する処理とを備
えている。
A test support list generation method of the present invention executes a program module created on the basis of the source program in a program specification for generating a source program and determines whether the operation is good or bad. A process of inserting a comment sentence including the test item name as well as indicating that the test support list is started immediately before the sentence to be extracted and used as the test support list which is the basis of the test for determining, A process of inserting a comment sentence indicating the end of the test support list immediately after the sentence to be used and extracted as the test support list, and a comment indicating the start in the program specification when the generation of the load module is completed. The contents of the program specification sandwiched between the sentence and the comment sentence indicating the end are extracted as a test support list. And a process for and storing edited with comment sentence information indicating the start by the test item.

【0006】また、第2の発明のテスト支援リスト生成
装置は、入出力手段から入力される命令および情報の内
容に従った制御を行う制御部と、前記制御部から出力さ
れる前記テスト支援リストの開始を示すコメント文と前
記テスト支援リストの終了を示すコメント文とが挿入さ
れたプログラム仕様書を記憶するプログラム仕様書記憶
部と、前記制御部から出力される命令により起動され前
記プログラム仕様書記憶部の内容を基にソースプログラ
ムを生成し出力するソースプログラム生成手段と、前記
ソースプログラム生成手段の出力を記憶するソースプロ
グラム記憶部と、前記制御部により起動され前記ソース
プログラム記憶部の内容を基にコンパイルを実行しコン
パイルが異常なく終了するとコンパイル終了信号を出力
し、読み出したソースプログラムと前記コンパイル処理
により生成したロードモジュールとを出力するコンパイ
ル手段と、前記コンパイル手段の出力を記憶するプログ
ラムリスト/ロードモジュール記憶部と、前記コンパイ
ル終了信号を受信すると前記プログラム仕様書記憶部の
記憶内容を読み出し前記開始を示すコメント文と終了を
示すコメント文に挟まれた前記プログラム仕様書の内容
をテスト支援リストとして抽出し、前記開始を示すコメ
ント文の含む情報とともにテスト項目別に予め定められ
た様式に従ったテスト支援リストを生成し出力するテス
ト支援リスト生成手段とを備えて構成されている。
Further, the test support list generating apparatus of the second aspect of the present invention includes a control section for performing control according to the contents of the command and information input from the input / output means, and the test support list output from the control section. And a program specification storage unit that stores a program specification in which a comment statement that indicates the start of the test support list and a comment statement that indicates the end of the test support list are inserted, and the program specification that is activated by an instruction output from the control unit. A source program generation unit that generates and outputs a source program based on the contents of the storage unit, a source program storage unit that stores the output of the source program generation unit, and a content of the source program storage unit that is activated by the control unit. When the compile is executed based on the Program and a load module generated by the compiling process, a program list / load module storage section for storing the output of the compiling means, and a program specification storage section for receiving the compilation end signal. The content of the program specification sandwiched between the comment sentence indicating the start and the comment sentence indicating the end is extracted as a test support list, and is determined in advance for each test item together with the information included in the comment sentence indicating the start. And a test support list generation means for generating and outputting a test support list according to the above format.

【0007】[0007]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0008】図1は本発明のテスト支援リスト生成方法
を適用したテスト支援リスト生成装置の一実施例を示す
ブロック図であり、図2は本発明のテスト支援リスト生
成方法の流れ図であり、図3は図1に示されているプロ
グラム仕様書記憶部とテスト支援データ記憶部の記憶内
容の関係を示す説明図である。
FIG. 1 is a block diagram showing an embodiment of a test support list generation apparatus to which the test support list generation method of the present invention is applied, and FIG. 2 is a flow chart of the test support list generation method of the present invention. FIG. 3 is an explanatory diagram showing the relationship between the storage contents of the program specification storage unit and the test support data storage unit shown in FIG.

【0009】また、図4(A)はプログラム仕様書中よ
りテスト支援リストとして抽出したいプログラム仕様書
の行の直前に挿入するコメント文の一例を示した説明図
であり、図4(B)は、プログラム仕様書中からテスト
支援リストとして抽出したい行の直後に挿入するコメン
ト文の一例を示す説明図である。
FIG. 4A is an explanatory view showing an example of a comment statement inserted immediately before the line of the program specification to be extracted as a test support list from the program specification, and FIG. FIG. 9 is an explanatory diagram showing an example of comment text inserted immediately after a line desired to be extracted as a test support list from the program specification.

【0010】本発明のテスト支援リスト生成装置は、図
1に示すように、プログラム仕様書およびテスト支援リ
スト生成装置の他の構成要素を制御する命令を入力し、
その結果を表示させる入出力手段1から入力される命令
を識別して、後述する他の構成要素の制御を行う制御部
2と、制御部2から出力されるプログラム仕様書を記憶
するプログラム仕様書記憶部3と、後述するソースプロ
グラムを記憶するソースプログラム記憶部4、および、
後述するコンパイル手段8の出力するソースプログラム
のリストとロードモジュールを記憶するプログラムリス
ト/ロードモジュール記憶部5とを備えている。
As shown in FIG. 1, the test support list generation device of the present invention inputs a program specification and a command for controlling other components of the test support list generation device,
A control unit 2 that identifies a command input from the input / output unit 1 that displays the result and controls other components described later, and a program specification that stores a program specification output from the control unit 2. A storage unit 3, a source program storage unit 4 for storing a source program described later, and
It is provided with a program list / load module storage section 5 for storing a list of source programs output by the compiling means 8 and load modules to be described later.

【0011】図1に示されている本発明のテスト支援リ
スト生成装置は、上述の構成要素の他に、制御部2によ
り制御され、プログラム仕様書記憶部3に記憶されてい
るプログラム仕様書を読み出し、その内容に応じたソー
スプログラムを生成し、ソースプログラム記憶部4に出
力するソースプログラム生成手段7と、制御部2よりコ
ンパイル命令が出力されると、該当するソースプログラ
ムをソースプログラム記憶部4より読み出し、コンパイ
ルを行いロードモジュールを生成し、このロードモジュ
ールと読み出したソースプログラムの内容をソースリス
トとしてプログラムリスト/ロードモジュール記憶部5
に出力するコンパイル手段8と、コンパイル手段8から
出力されるコンパイル終了信号を受け取ると、プログラ
ム仕様書記憶部3から該当するプログラム仕様書を読み
出し、テスト支援データを抽出し予め定められた様式に
編集し出力するテスト支援リスト生成手段9と、テスト
支援リスト生成手段9の出力を記憶するテスト支援リス
ト記憶部6とを備えている。
The test support list generation apparatus of the present invention shown in FIG. 1 has a program specification stored in the program specification storage unit 3 under the control of the control unit 2 in addition to the above-mentioned components. When a compile command is output from the source program generating means 7 that reads out and generates a source program according to the contents and outputs the source program to the source program storage unit 4, and the control unit 2 outputs the corresponding source program to the source program storage unit 4. Program module / load module storage unit 5 that reads out and compiles to generate a load module, and the contents of this load module and the read source program as a source list
When receiving the compiling means 8 for outputting to and the compiling end signal outputted from the compiling means 8, the corresponding program specification is read from the program specification storage unit 3, the test support data is extracted and edited in a predetermined format. And a test support list generation unit 9 for storing and outputting the output of the test support list generation unit 9.

【0012】さらに、図1に示すテスト支援リスト生成
装置は、制御部2により制御され、印字命令を受け取る
と、その内容に従って、プログラムリストまたはテスト
支援リストの何れかを読み出し出力する印刷制御手段1
0と、印刷制御手段10の出力に応じた印字を行うプリ
ンタ11とを備えている。
Further, the test support list generating apparatus shown in FIG. 1 is controlled by the control unit 2, and upon receiving a print command, print control means 1 for reading out and outputting either the program list or the test support list in accordance with the content thereof.
0, and a printer 11 that performs printing according to the output of the print control unit 10.

【0013】プログラム仕様書は、ソースプログラムを
生成させるために、その基となる予め定められた様式に
従って、所望の処理手順をその処理順に記述した原始プ
ログラムである。
The program specification is a source program in which a desired processing procedure is described in the processing order in accordance with a predetermined format which is a basis for generating the source program.

【0014】このプログラム仕様書の中にテスト支援リ
ストとして抽出したい行の直前に図4(A)で示すコメ
ント文を挿入し、このようなテスト支援リストとして抽
出したいテスト仕様書の行の直後には、たとえば、図4
(B)に示されているような、テスト支援リストとして
抽出すべき部分が終了することを示すコメント文を図3
の左方に示したようなプログラム仕様書中に挿入する。
Immediately after the line of the test specification to be extracted as such a test support list, the comment statement shown in FIG. 4A is inserted immediately before the line to be extracted as the test support list in this program specification. Is, for example, in FIG.
As shown in FIG. 3B, a comment sentence indicating that the portion to be extracted as the test support list ends is shown in FIG.
Insert it in the program specification as shown on the left side of.

【0015】図4(A)および(B)の上方に示されて
いる数字は、左方から右方へ続くコメント文中の欄番号
を示し、欄番号1には、コメント文であることを示すコ
メント識別符号21を与える。図4(A)と(B)の例
では、「*」が使用されている。
The numbers shown in the upper part of FIGS. 4A and 4B indicate the column numbers in the comment sentence that continues from the left to the right, and the column number 1 indicates that it is a comment sentence. A comment identification code 21 is given. In the example of FIGS. 4A and 4B, “*” is used.

【0016】後述するソースプログラム生成手段7とコ
ンパイル手段8は、欄番号1にコメント識別符号21で
ある「*」が存在する1行の文はコメント文と見做し、
このようなコメント識別符号21が付された1行の文に
ついてはソースプログラムとコンパイルの生成を行わず
にそのまま出力する。
In the source program generating means 7 and the compiling means 8 which will be described later, the one-line sentence in which the comment identification code 21 "*" exists in the column number 1 is regarded as a comment sentence,
The one-line sentence with the comment identification code 21 is output as it is without generating the source program and the compilation.

【0017】図4(A)に示すコメント文中の欄番号2
には、このコメント文がテスト支援リストに関するもの
であることを示すテストリスト識別符号22を与える。
Column number 2 in the comment text shown in FIG.
Is given a test list identification code 22 indicating that this comment sentence is related to the test support list.

【0018】このテストリスト識別符号22は、テスト
支援リスト生成手段9が識別するための符号であり
「$」がテストリスト識別符号22として与えられてい
る。
The test list identification code 22 is a code for the test support list generation means 9 to identify, and "$" is given as the test list identification code 22.

【0019】欄番号3から欄番号Nまでは、関連するプ
ログラム仕様書の名称であり、予め適切な名称を割り当
てて置く。
Column numbers 3 to N are the names of related program specifications, and appropriate names are assigned in advance.

【0020】欄番号N+1には、テストの内容を識別す
る種類識別符号23として「A」のようにA、B、…、
Zなどの1文字の予めテストの内容を区分する文字を与
える。
In the column number N + 1, as the type identification code 23 for identifying the contents of the test, as in "A", A, B, ...
One character such as Z is given in advance to distinguish the contents of the test.

【0021】たとえば、入力単独チェックであるときに
は「A」を、入力関連チェックであるときには「B」
を、ファイル更新状態をチェックする場合には「C」を
与える。
For example, "A" is given for the input-only check, and "B" is given for the input-related check.
And "C" is given when checking the file update status.

【0022】欄番号N+2には、条件分け階層レベルの
有無を識別する階層識別符号24を与える。たとえば、
条件分け階層がないときには「0」を、条件分け階層が
あるときには「1」を与える。
The column number N + 2 is provided with a layer identification code 24 for identifying the presence / absence of a conditional division layer level. For example,
When there is no condition class, "0" is given, and when there is a condition class, "1" is given.

【0023】欄番号N+3には、このコメント文が抽出
すべきテスト支援リストの直前であるか直後であるかの
区分、すなわち、開始/終了識別符号25を与える。
The column number N + 3 is provided with a classification whether the comment sentence is immediately before or after the test support list to be extracted, that is, a start / end identification code 25.

【0024】たとえば、開始を示す場合には、「S」を
欄番号N+3に与え、終了を示す場合には、「E」を与
える。欄番号N+4から以降の欄には、テスト支援リス
トの項目、たとえば、入力単独チェックとか、入力関連
チェックとかのテスト支援リストを区分するためのテス
ト項目を与える。
For example, "S" is given to the column number N + 3 to indicate the start, and "E" is given to indicate the end. The items from the column number N + 4 onward are given test items for dividing the items of the test support list, for example, the test support list such as input-only check or input-related check.

【0025】図4(A)はこのようなコメント文の内で
抽出しようとするプログラム仕様書の文の直前に挿入さ
れるコメント文の一例を示したもので、図4(B)は図
4(A)のコメント文に対応して、図4(A)のコメン
ト文以降のプログラム仕様書中でテスト支援リストとし
て抽出すべき文の直後に挿入されるコメント文の例を示
したものである。
FIG. 4A shows an example of a comment statement inserted immediately before the statement of the program specification to be extracted from such comment statements, and FIG. 4B shows FIG. FIG. 4 shows an example of comment statements inserted immediately after a statement to be extracted as a test support list in the program specifications after the comment statement in FIG. 4A, corresponding to the comment statement in FIG. .

【0026】図4(A)と図4(B)との間で異る点
は、欄番号N+3の値のみである。
The only difference between FIG. 4 (A) and FIG. 4 (B) is the value of column number N + 3.

【0027】図3の左方に示されているプログラム仕様
書中では、第1行目がテスト支援リストとして抽出すべ
き文が第2行目の「IF 貿易コード=1 OR 2
OR3」で始まることを示すコメント文であり、図3の
左方の第5行目のコメント文は、その直前のプログラム
仕様書の文がテスト支援リストとして抽出すべき文の最
下行であることを示すコメント文である。
In the program specification shown on the left side of FIG. 3, the statement to be extracted as the test support list on the first line is "IF trade code = 1 OR 2" on the second line.
It is a comment statement indicating that it starts with "OR3", and the comment statement in the fifth line on the left side of FIG. 3 is the last line of the statement in the program specification immediately before that which should be extracted as a test support list. Is a comment sentence indicating.

【0028】以下に、図2に従って、図1に示されてい
るテスト支援リスト生成装置の動作を説明する。
The operation of the test support list generation device shown in FIG. 1 will be described below with reference to FIG.

【0029】プログラム仕様書の作成命令を入出力手段
1より入力すると制御部2がこれを識別し、入出力手段
1から図3の左方に示されているプログラム仕様書が入
力されると、その終了命令が入出力手段1より入力され
るまで、入力されたプログラム仕様書を、プログラム仕
様書記憶部3に記憶させる。
When a command for creating a program specification is input from the input / output means 1, the control section 2 identifies it, and when the program specification shown on the left side of FIG. The input program specifications are stored in the program specification storage unit 3 until the end command is input from the input / output unit 1.

【0030】プログラム仕様書は1行の文から成るリス
トを構成単位とし、このような複数の文で1組の特定の
名称を付けられたプログラム仕様書を構成する。
A program specification has a list of one line as a constituent unit, and such a plurality of statements constitutes a set of program specifications with a specific name.

【0031】このようなプログラム仕様書を入出力手段
1から入力するとき、直後にテスト支援リストとして抽
出したい文が存在するとき、すでに図4(A)および
(B)で説明したように、コメント識別符号21を先頭
の欄とし、次いでその右方の隣接する欄に、テストリス
ト識別符号22を付したコメント文を入力してやる。
When there is a sentence to be extracted as a test support list immediately after inputting such a program specification from the input / output means 1, as already described with reference to FIGS. The identification code 21 is used as the top field, and then the comment text with the test list identification code 22 is input to the adjacent field on the right side of the field.

【0032】このコメント文の第3の欄から第Nの欄ま
でに、プログラム仕様書の名称を与え、続く欄番号N+
1の部分に、テストのための種類識別符号(A,B等)
を与え、欄番号N+2の欄には階層識別符号24を、欄
番号N+3の欄には、開始を示す識別符号Sを、それよ
り右方の欄にはテスト項目をそれぞれ与え、以下のプロ
グラム仕様書の行がテスト支援リストであること、すな
わち、テスト支援リストの始まりを示すコメント文を挿
入する(図2中のステップ1、以後、ステップをSと略
称する)。
The name of the program specification is given from the third column to the Nth column of this comment sentence, and the subsequent column number N +
Type identification code (A, B, etc.) for testing in part 1
The column identification number 24 is assigned to the column number N + 2, the identification number S indicating the start is assigned to the column number N + 3, and the test item is assigned to the right column. The line of the book is a test support list, that is, a comment sentence indicating the beginning of the test support list is inserted (step 1 in FIG. 2, hereinafter step is abbreviated as S).

【0033】このようなコメント文の直後に、図3に示
しているように、テスト支援リストとして抽出すべき文
が1行以上続き、このようなテスト支援項目として抽出
すべき文が終ると、このような文の直後の行に、欄番号
N+3の内容だけがEでありその外の欄はすでに説明し
たテスト支援リストの開始を示すコメント文と同一なテ
スト支援リストの終了を示すコメント文を挿入する(S
2)。
Immediately after such a comment sentence, as shown in FIG. 3, a sentence to be extracted as a test support list continues for one or more lines, and a sentence to be extracted as such a test support item ends. In the line immediately after such a sentence, only the content of the column number N + 3 is E, and the other columns include a comment sentence indicating the end of the test support list which is the same as the comment sentence indicating the start of the test support list already described. Insert (S
2).

【0034】以後、プログラム仕様書の中で、ソースプ
ログラムとこのソースプログラムから生成されるロード
モジュール内で行われるべき処理の内でテスト支援リス
トの対象となる文が入力される直前の行にテスト支援リ
ストの開始を示すコメント文を、またテスト支援リスト
として使用する文が終了すると、その直後に、テスト支
援リストの抽出を終了することを示すコメント文を挿入
し、これらコメント文を含むリストをプログラム仕様書
としてプログラム仕様書記憶部3に記憶させることにな
る。
Thereafter, in the program specification, the test is performed on the line immediately before the statement to be included in the test support list is input in the processing to be performed in the source program and the load module generated from the source program. When the comment statement that indicates the start of the support list and the statement that is used as the test support list are finished, immediately after that, insert a comment statement that indicates that the extraction of the test support list is completed, and a list that includes these comment statements is displayed. The program specifications are stored in the program specification storage unit 3.

【0035】ある一連の処理のためのこのようなプログ
ラム仕様書の入力の終了を示す命令が入出力手段1から
制御部2に加えられると、制御部2はこのようなプログ
ラム仕様書のプログラム仕様書記憶部3への出力を終了
する。
When a command indicating the end of the input of such a program specification for a series of processes is added from the input / output means 1 to the control unit 2, the control unit 2 causes the program specification of such a program specification to be specified. The output to the call storage unit 3 is completed.

【0036】次いで、入出力手段1から、名称を指定し
たソースプログラム生成命令を入力する、この命令の内
容を制御部2が判断し、ソースプログラム生成手段7を
起動させる。
Next, a source program generation command with a designated name is input from the input / output unit 1. The control unit 2 judges the content of this command and activates the source program generation unit 7.

【0037】ソースプログラム生成手段7は、制御部2
により起動されると、指定された名称を持つプログラム
仕様書をプログラム仕様書記憶部3から読み出し、従来
のこの種の装置と同様に、プログラ仕様書の各文の内で
コメント識別符号21が付された文を除いた各行につい
て、ソースプログラム、すなわち、コンパイル手段8
が、識別することができ、しかも、それを見た操作者が
プログラムの内容が何であるかを容易に判別することが
できるソースプログラムに変換して(S3)、ソースプ
ログラム記憶部4内に記憶させる(S4)。
The source program generating means 7 includes a control unit 2
When the program is started by, the program specification having the designated name is read from the program specification storage unit 3, and the comment identification code 21 is added in each sentence of the program specification like the conventional device of this type. The source program, that is, the compiling means 8 for each line except the written statement.
Is stored in the source program storage unit 4 after being converted into a source program that can be identified and the operator who sees it can easily determine what the content of the program is (S3). (S4).

【0038】このようなソースプログラムを生成した後
に、入出力手段1から、すでに作成されたソースプログ
ラム名を指定したコンパイル命令を入力すると、制御部
2が入力された命令の内容を識別し、コンパイル手段8
を起動させる。
After generating such a source program, when a compile command designating the already created source program name is input from the input / output means 1, the control unit 2 identifies the content of the input command and compiles it. Means 8
To start.

【0039】コンパイル手段8が起動されると、指定さ
れた名称を持つソースプログラムをソースプログラム記
憶部4の中から読み出し、コンパイルを行い(S5)、
ソースプログラムにプログラム上の誤りがなければ(S
6)、コンピュータなどが実行可能なロードモジュール
を生成し、読み出したソースプログラのリストと共に、
プログラムリスト/ロードモジュール記憶部5に出力し
記憶する(S7)。
When the compiling means 8 is started, the source program having the designated name is read from the source program storage unit 4 and compiled (S5),
If there is no programming error in the source program (S
6), generate a load module that can be executed by a computer, etc., and read the list of source programs,
It is output to and stored in the program list / load module storage unit 5 (S7).

【0040】このようにしてソースプログラムに誤りが
なく、コンパイルが終了すると、コンパイル手段9はコ
ンパイルの対象となったプログラム仕様書の名称を付し
たコンパイル終了信号をテスト支援リスト生成手段9に
出力する(S8)。
When there is no error in the source program and the compilation is completed in this way, the compiling means 9 outputs to the test support list generating means 9 a compilation end signal with the name of the program specification that is the object of compilation. (S8).

【0041】もし、コンパイルの実行中にソースプログ
ラムの誤りが検出されると、コンパイル手段9は、エラ
ー表示を制御部2を介して入出力部1に出力し表示を行
いコンパイルの実行を中止する(S10)。
If an error in the source program is detected during execution of compilation, the compiling means 9 outputs an error display to the input / output unit 1 via the control unit 2 and displays it to stop the execution of compilation. (S10).

【0042】なお、すでに説明したコメント識別符号2
1を第1欄にもつコメント行は、コンパイルが行われず
にそのままコメント文として、ロードモジュール内に取
り込まれる。
The comment identification code 2 already described
The comment line having 1 in the first column is taken as a comment statement as it is into the load module without being compiled.

【0043】上述のコンパイル終了信号を、テスト支援
リスト生成手段9が受け取ると、プログラム仕様書記憶
部3の記憶内容を参照し、該当する名称を持つプログラ
ム仕様書を読み出し、テスト支援リストの開始を示すコ
メント文を欄番号2と欄番号N+3の内容を基に検出
し、このコメント文中に存在する情報、たとえば、テス
ト項目名、テスト項目の種類、条件分け階層レベルなど
の情報を抽出し、このテスト項目別に、予め定められて
いる様式のテスト支援リストを作成する。また、同時
に、このようなコメント文から、次に、テスト支援リス
トの終了を示すコメント文に挾まれた部分のプログラム
仕様書の文の内容をそのままテスト支援リストとして抽
出しテスト支援リスト記憶部6に出力し記憶させる(S
9)。
When the above-mentioned compile completion signal is received by the test support list generation means 9, the stored contents of the program specification storage unit 3 are referred to, the program specification having the corresponding name is read, and the test support list is started. The comment text shown is detected based on the contents of the column numbers 2 and N + 3, and the information existing in this comment sentence, for example, the test item name, the type of the test item, the condition classification hierarchy level, etc., is extracted. Create a test support list in a predetermined format for each test item. At the same time, the content of the sentence of the program specification, which is sandwiched between the comment sentences indicating the end of the test support list, is directly extracted from such a comment sentence as a test support list, and the test support list storage unit 6 is provided. Output to and store (S
9).

【0044】もし、同一テスト項目名を持つテスト支援
リストの中で、開始を示すコメント文で、同一の項目名
のものが複数回プログラム仕様書中に存在しているとき
には、その項目名の部分に、このテスト支援リストの開
始を示すコメント文から、同一のテスト項目のテスト支
援リストの終了を示すコメント文で挟まれたプログラム
仕様書に記述されている文を集めたテスト支援リストと
して編集し、テスト支援リスト記憶部6内に記憶させる
(S9)。
If, in the test support list having the same test item name, the comment text indicating the start, which has the same item name, exists in the program specification multiple times, the part of the item name Then, from the comment statement indicating the start of this test support list, the statement described in the program specification sandwiched by the comment statements indicating the end of the test support list for the same test item was edited as a test support list. , Is stored in the test support list storage unit 6 (S9).

【0045】このようにテスト支援リスト記憶部6に記
憶されている内容、あるいは、プログラムリスト/ロー
ドモジュール記憶部5に記憶されている内容を紙面に印
刷させたいときには、入出力手段1より、プログラム仕
様書に付されている名称と印刷させたいものがソースプ
ログラムのリストであるのか、テスト支援リストである
のかを指定した印字命令を入力し、この命令を制御部2
を介して、印刷制御手段10に加えることにより、印刷
制御手段10により、指定されたプログラムリストまた
はテスト支援リストをこれらのリストを記憶している記
憶部から読み出させて、プリンタ11により紙面に印字
させることもできる。
When it is desired to print the contents stored in the test support list storage unit 6 or the contents stored in the program list / load module storage unit 5 on the paper as described above, the program is input from the input / output unit 1. Enter a print command that specifies whether the name given to the specification and what you want to print is a list of source programs or a test support list.
By adding to the print control means 10 via the print control means 10, the print control means 10 causes the designated program list or test support list to be read from the storage unit storing these lists, and the printer 11 prints them on the paper. It can also be printed.

【0046】以上で説明した、テスト支援リストを基に
して、このテスト支援リストに該当するロードモジュー
ルについてのテストを行うことができる。
Based on the test support list described above, the load module corresponding to the test support list can be tested.

【0047】なお、これまでに説明した実施例において
は、コメント識別符号21として「*」を使用し、テス
トリスト識別符号22として「$」を用いているが、こ
れらの記号とは別の記号を使用してもよく、これらの識
別符号をコンパイル手段8やテスト支援リスト生成手段
9が識別するように、これら諸手段の動作を設定してお
けばよい。
In the embodiments described so far, "*" is used as the comment identification code 21 and "$" is used as the test list identification code 22, but a symbol different from these symbols is used. May be used, and the operations of these means may be set so that the compiling means 8 and the test support list generating means 9 identify these identification codes.

【0048】[0048]

【発明の効果】以上説明したように、本発明のテスト支
援リスト生成方法とその装置は、プログラム仕様書の内
容の内でテスト支援リストとして抽出すべき部分を、挟
んでテスト支援リストの開始と終了を示すコメント文を
挿入し、これらのコメント文に基づいて、プログラム仕
様書を基にロードモジュールを生成させるのに引続い
て、テスト支援リストを生成させることができるので、
プログラム仕様書の量が増大しても、また、このような
プログラム仕様書を複数の作成者が分担して作成すると
きにも、必要なテスト項目とその内容を示すリストに抜
けを生じる機会を減少させることができるという効果が
ある。
As described above, the method and apparatus for generating a test support list of the present invention starts a test support list with a portion of the content of the program specification to be extracted as the test support list interposed. It is possible to insert a comment statement indicating the end and generate a load module based on the program specification based on these comment statements, and subsequently generate a test support list.
Even when the amount of program specifications increases, and when multiple authors share such program specifications, there is a chance that the required test items and the list showing their contents will be omitted. The effect is that it can be reduced.

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

【図1】本発明のテスト支援リスト生成装置の一実施例
を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a test support list generation device of the present invention.

【図2】本実施例のテスト支援リスト生成方法における
動作の一例を示す流れ図である。
FIG. 2 is a flow chart showing an example of an operation in the test support list generating method of the present embodiment.

【図3】テスト仕様書とテスト支援リストとの関係を示
す説明図である。
FIG. 3 is an explanatory diagram showing a relationship between a test specification and a test support list.

【図4】(A)はテスト仕様書中に挿入されるテスト支
援リストの開始を示すコメント文の内容の説明図であ
る。 (B)はテスト支援リストの終了を示すコメント文の内
容の説明図である。
FIG. 4A is an explanatory diagram of the content of a comment statement indicating the start of a test support list inserted in a test specification. (B) is an explanatory diagram of the content of a comment statement indicating the end of the test support list.

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

1 入出力手段 2 制御部 3 プログラム仕様書記憶部 4 ソースプログラム記憶部 5 プログラムリスト/ロードモジュール記憶部 6 テスト支援リスト記憶部 7 ソースプログラム生成手段 8 コンパイル手段 9 テスト支援リスト生成手段 10 印刷制御手段 11 プリンタ DESCRIPTION OF SYMBOLS 1 input / output means 2 control section 3 program specification storage section 4 source program storage section 5 program list / load module storage section 6 test support list storage section 7 source program generation section 8 compiling section 9 test support list generation section 10 print control section 11 Printer

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ソースプログラムの生成のためのプログ
ラム仕様書中で前記ソースプログラムを基に作成された
プログラムモジュールを実行しその動作の良否を判定す
るためのテストの基になるテスト支援リストとしても利
用し抽出すべき文の直前に前記テスト支援リストの開始
であることを示すとともにそのテスト項目名を含むコメ
ント文を挿入する処理と、前記テスト支援リストとして
利用し抽出すべき文の直後に前記テスト支援リストの終
了を示すコメント文を挿入する処理と、前記ロードモジ
ュールの生成が終了したとき、前記プログラム仕様書中
の前記開始を示すコメント文から前記終了を示すコメン
ト文に挟まれた前記プログラム仕様書の内容をテスト支
援リストとして抽出し前記開始を示すコメント文中の情
報とともにテスト項目別に編集して記憶する処理とを備
えることを特徴とするテスト支援リスト生成方法。
1. A test support list serving as a basis of a test for executing a program module created based on the source program in a program specification for generating a source program and determining whether the operation is good or bad. The process of inserting a comment sentence indicating that the test support list is started immediately before the sentence to be used and extracted and including the test item name, and the process immediately after the sentence to be used and extracted as the test support list When the process of inserting a comment statement indicating the end of the test support list and the generation of the load module are completed, the program sandwiched between the comment statement indicating the start and the comment statement indicating the end in the program specification. The contents of the specification are extracted as a test support list and the information in the comment text indicating the start is included in the test item. A method for generating a test support list, the method comprising: editing and storing each eye.
【請求項2】 入出力手段から入力される命令および情
報の内容に従った制御を行う制御部と、前記制御部から
出力される前記テスト支援リストの開始を示すコメント
文と前記テスト支援リストの終了を示すコメント文とが
挿入されたプログラム仕様書を記憶するプログラム仕様
書記憶部と、前記制御部から出力される命令により起動
され前記プログラム仕様書記憶部の内容を基にソースプ
ログラムを生成し出力するソースプログラム生成手段
と、前記ソースプログラム生成手段の出力を記憶するソ
ースプログラム記憶部と、前記制御部により起動され前
記ソースプログラム記憶部の内容を基にコンパイルを実
行しコンパイルが異常なく終了するとコンパイル終了信
号を出力し、読み出したソースプログラムと前記コンパ
イル処理により生成したロードモジュールとを出力する
コンパイル手段と、前記コンパイル手段の出力を記憶す
るプログラムリスト/ロードモジュール記憶部と、前記
コンパイル終了信号を受信すると前記プログラム仕様書
記憶部の記憶内容を読み出し前記開始を示すコメント文
と終了を示すコメント文に挟まれた前記プログラム仕様
書の内容をテスト支援リストとして抽出し、前記開始を
示すコメント文の含む情報とともにテスト項目別に予め
定められた様式に従ったテスト支援リストを生成し出力
するテスト支援リスト生成手段とを備え、前記ロードモ
ジュールを生成する際に前記テスト支援リストをも生成
することを特徴とするテスト支援リスト生成装置。
2. A control unit for performing control according to the contents of commands and information input from the input / output unit, a comment statement indicating the start of the test support list output from the control unit, and the test support list. A program specification storage unit that stores a program specification in which a comment statement indicating the end is inserted, and a source program is generated based on the contents of the program specification storage unit that is activated by an instruction output from the control unit. When the source program generating means for outputting, the source program storing section for storing the output of the source program generating means, and the compiling executed based on the contents of the source program storing section started by the control section and the compiling ends without any abnormality Output the compile end signal and generate the read source program and the compile process. A load module, a program list / load module storage unit that stores the output of the compiling unit, and a storage content of the program specification storage unit that is read when the compilation end signal is received to indicate the start. The content of the program specification sandwiched between the comment sentence and the comment sentence indicating the end is extracted as a test support list, and the information included in the comment sentence indicating the start and the test support list according to a predetermined format for each test item And a test support list generating means for generating and outputting the test support list generation device, the test support list generating device generating the test support list when generating the load module.
JP5158287A 1993-06-29 1993-06-29 Method and device for preparing test supporting list Pending JPH07141170A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5158287A JPH07141170A (en) 1993-06-29 1993-06-29 Method and device for preparing test supporting list

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5158287A JPH07141170A (en) 1993-06-29 1993-06-29 Method and device for preparing test supporting list

Publications (1)

Publication Number Publication Date
JPH07141170A true JPH07141170A (en) 1995-06-02

Family

ID=15668304

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5158287A Pending JPH07141170A (en) 1993-06-29 1993-06-29 Method and device for preparing test supporting list

Country Status (1)

Country Link
JP (1) JPH07141170A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8875104B2 (en) 2010-11-09 2014-10-28 International Business Machines Corporation Efficiently developing software using test cases to check the conformity of the software to the requirements

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6429931A (en) * 1987-07-24 1989-01-31 Nec Corp Specification managing system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6429931A (en) * 1987-07-24 1989-01-31 Nec Corp Specification managing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8875104B2 (en) 2010-11-09 2014-10-28 International Business Machines Corporation Efficiently developing software using test cases to check the conformity of the software to the requirements
US8875105B2 (en) 2010-11-09 2014-10-28 International Business Machines Corporation Efficiently developing software using test cases to check the conformity of the software to the requirements

Similar Documents

Publication Publication Date Title
US8881105B2 (en) Test case manager
US6978440B1 (en) System and method for developing test cases using a test object library
US6421822B1 (en) Graphical user interface for developing test cases using a test object library
EP1650619B1 (en) Sequence program editing apparatus
US5926638A (en) Program debugging system for debugging a program having graphical user interface
US20080127103A1 (en) Dynamic deneration and implementation of globalization verification testing for user interface controls
US20050005239A1 (en) System and method for automatic insertion of cross references in a document
US5418954A (en) Method for preparing and dynamically loading context files
KR100745530B1 (en) Browser-independent pop-up windows
US20030004704A1 (en) System and method of spreadsheet-based string localization
KR930003412B1 (en) Character reading system and method
JPH07141170A (en) Method and device for preparing test supporting list
US20040205560A1 (en) Method and apparatus for testing embedded examples in documentation
JP2011204069A (en) Testing method, and automatic test specification and test data generation apparatus
CN100367233C (en) Program execution control mode
JPH0157812B2 (en)
JP2009181180A (en) Inspection program, inspection method, and inspection device of program creating tool
JPH08272649A (en) Method for generating test item slip used for unit testing of program module
JPH07239788A (en) Compiler with unnecessary variable type declaration check function
JP3248433B2 (en) Program linkage verification method
JP2021174084A (en) Test automatizing device
JPS6261130A (en) Automatic graphic display system for test coverage
JPS63259739A (en) Automatic program inspection system
JP2001306352A (en) Analyzer system and computer readable recording medium having analyzer inspection program recorded thereon
JPH0581073A (en) Insepection system for program

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19960723