JP2000339192A - Method and device for supporting program test and recording medium - Google Patents

Method and device for supporting program test and recording medium

Info

Publication number
JP2000339192A
JP2000339192A JP11149631A JP14963199A JP2000339192A JP 2000339192 A JP2000339192 A JP 2000339192A JP 11149631 A JP11149631 A JP 11149631A JP 14963199 A JP14963199 A JP 14963199A JP 2000339192 A JP2000339192 A JP 2000339192A
Authority
JP
Japan
Prior art keywords
program
test
mini
instruction
test data
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
JP11149631A
Other languages
Japanese (ja)
Inventor
Hiroshige Tanaka
広重 田中
Susumu Kimura
晋 木村
Kazuya Nioishi
和也 丹生石
Tomohiro Koyama
知広 小山
Hiroaki Watanabe
宏昭 渡辺
Akira Ishibashi
明 石橋
Kenji Noguchi
健二 野口
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.)
JFE Systems Inc
Original Assignee
Kawasaki Steel Systems R&D 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 Kawasaki Steel Systems R&D Corp filed Critical Kawasaki Steel Systems R&D Corp
Priority to JP11149631A priority Critical patent/JP2000339192A/en
Publication of JP2000339192A publication Critical patent/JP2000339192A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To efficiently and partially conduct a test only on a part to be tested by outputting a program source containing the part to be tested to a screen that can be compiled and generating a mini program for executing only a range containing the part to be tested in the designated program source. SOLUTION: A program source containing a part to be tested in a program source file 1 is designated by using a partial test range designation tool 2. An arbitrary part in a program to be tested is designated for the program source containing the part to be tested. A copy phrase is developed in accordance with the language specification of the designated program source and all instructions in arbitrary parts are extracted to an instruction/item definition extraction file 4 by using a partial test range designation tool 2 as test range instructions. An extracted item definition is developed by using a mini program generation tool 5.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、プログラムテスト
支援方法、装置及び記録媒体に係り、特に、プログラム
のテストにおいて、テストを実施したいプログラム内の
任意の箇所のみの部分テストを効率良く行うためのプロ
グラムテスト支援方法、該方法を実施するための装置、
及び、そのプログラムを記録した、コンピュータ読み取
り可能な記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method, an apparatus, and a recording medium for supporting a program test, and more particularly, to a program test for efficiently performing a partial test of only an arbitrary portion in a program to be tested. A program test support method, an apparatus for performing the method,
The present invention also relates to a computer-readable recording medium on which the program is recorded.

【0002】[0002]

【従来の技術】従来、プログラムの保守作業で、例えば
西暦2000年問題における年号や閏年の箇所、郵便番
号や製品コード変更時のこれらの箇所を部分的に修正し
た後、該プログラムの修正箇所および該修正箇所に関連
する周辺の箇所、いわゆるテストしたい箇所の動作確認
を実施するため、たとえ該プログラムのテストしたい箇
所がプログラムのごく一部分であったとしても、該プロ
グラムの処理全体を考慮したテストデータを作成し、該
プログラム全体を実行し、該テストしたい箇所を入念に
検証している。
2. Description of the Related Art Conventionally, in a maintenance work of a program, for example, a part of an era or a leap year in the year 2000 problem, a part of the part when a zip code or a product code is changed, and then a part of the program are modified. And to check the operation of the peripheral portion related to the corrected portion, that is, the portion to be tested, so that even if the portion of the program to be tested is only a small part of the program, a test considering the entire processing of the program is performed. It creates data, runs the entire program, and carefully verifies the places you want to test.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、このよ
うな方法では、プログラムのテストしたい箇所が該プロ
グラムのごく一部分であっても、プログラム全体を実行
する必要がある。さらに、該プログラム全体を実行する
ためには、該プログラムの実行に必要な全ての入力ファ
イルなどについて、該テストしたい箇所を検証できるよ
うに適切なテストデータの組合せを作成する必要があ
り、該テストデータの作成および該プログラムの検証に
多大な負荷がかかるという問題がある。また、修正内容
によっては該テストしたい箇所の入念な検証が困難な場
合もある。
However, in such a method, it is necessary to execute the entire program even if a portion of the program to be tested is only a part of the program. Further, in order to execute the entire program, it is necessary to create an appropriate combination of test data for all input files and the like necessary for executing the program so as to verify a portion to be tested. There is a problem that a great load is required for creating data and verifying the program. Further, depending on the content of the correction, it may be difficult to carefully verify the portion to be tested.

【0004】本発明は、前記従来の問題点を解決するべ
くなされたもので、プログラム中のテストを実施したい
部分のみを効率良く部分テストできるようにすることを
課題とする。
The present invention has been made to solve the above-mentioned conventional problems, and has as its object to enable efficient partial testing of only a portion of a program to be tested.

【0005】[0005]

【課題を解決するための手段】本発明は、プログラムの
部分テストを支援するに際して、テストしたい箇所を含
むプログラムソースを編集可能な画面に出力し、該プロ
グラムソースの中にテストしたい箇所を含む範囲が指定
された場合、該プログラムソース内に項目の定義や処理
を記述した命令等を、別ファイルで定義してある形態
(以下、コピー句と称する)で記述された箇所があれ
ば、該プログラムソースの言語仕様に従いコピー句の展
開をした後、指定されたテストしたい箇所を含む範囲の
命令群(以下、テスト範囲命令と称する)と、該テスト
範囲命令で使用している項目群について、該項目群の項
目の定義の構造を崩さない最初に行う処理として、該テ
スト範囲命令で使用している項目群と、該テスト範囲命
令で使用している項目群の上位に定義された集団項目群
と、該テスト範囲命令で使用している項目群の下位に定
義された項目群と、プログラムの言語仕様上問題となる
不足項目群(例えばテスト範囲命令で使用している項目
群や、該テスト範囲命令で使用している項目群の上位に
定義された集団項目群や、該テスト範囲命令で使用して
いる項目群の下位に定義された項目群等が参照している
項目)と、を抽出するようにして、前記課題を解決した
ものである。
SUMMARY OF THE INVENTION According to the present invention, in supporting a partial test of a program, a program source including a portion to be tested is output to an editable screen, and a range including the portion to be tested is included in the program source. Is specified, if there is an instruction or the like describing the definition or processing of an item in the program source in a form defined in another file (hereinafter referred to as a copy phrase), After expanding the copy phrase in accordance with the language specification of the source, an instruction group in a range including a designated portion to be tested (hereinafter, referred to as a test range instruction) and an item group used in the test range instruction are described. As the first processing that does not break the definition structure of the items in the item group, the items used in the test range instruction and the items used in the test range instruction Group items defined at the top of the list, items defined at the bottom of the items used in the test range instruction, and missing items (e.g., used in the test range instruction) Group items defined above the group of items used in the test range instruction, and the group of items defined below the group of items used in the test range instruction. The above-mentioned problem has been solved by extracting (reference item).

【0006】又、前記で指定したプログラムソースのテ
ストしたい箇所を含む範囲のみを実行するために作成す
る部分テスト用のプログラム(以下、ミニプログラムと
称する)の、テストケースの初期情報表示を表す場所
と、テストデータのセットを表す場所と、テスト結果表
示を表す場所とを除いたプログラムソース(以下、ベー
スミニプログラムと称する)の項目を記述する場所へ、
前記の方法により抽出された項目群(以下、抽出した項
目定義と称する)のうち、プログラムの言語仕様上問題
となる再定義を示す命令がない定義は抽出された形のま
ま展開し、該抽出した項目定義のうち、プログラムの言
語仕様上問題となる再定義を示す命令がある定義は、該
抽出した項目定義の構造を崩さない2番目に行う処理と
して、プログラムの言語仕様上問題となる再定義を示す
命令とそれに続く再定義元の項目名を示す記述を省いて
展開し、次に、ベースミニプログラムのテスト範囲命令
を記述する場所へ、前記の方法で指定したテスト範囲命
令を展開し、次に、ミニプログラムのテストケースの初
期情報表示を表す場所と、テストデータのセットを表す
場所と、テスト結果表示を表す場所とで構成されるプロ
グラムソース(以下、テストデータ関連節と称する)の
テストデータのセットの命令を記述する場所へ、抽出し
た項目定義の中で前記の方法で指定したテスト範囲命令
で直接的に使われている項目群に対して、テストデータ
を設定するための命令と、該設定されたテストデータを
表示するための命令を展開し、次に、テストデータ関連
節のテスト結果表示の命令を記述する場所へ、前記の方
法で指定したテスト範囲命令で直接的に使われている項
目群に対してテスト結果の表示のための命令を展開し、
次に、テストデータ関連節のテストケースの初期情報表
示の命令を記述する場所へ、前記で指定したテストした
い箇所を含むプログラム名やテストしたい箇所を含むプ
ログラム毎、且つ、テストするケース毎に発番される番
号(以下、テストケース番号と称する)等を表示するた
めの命令を展開し、ミニプログラムの元となるベースミ
ニプログラムとテストデータ関連節を作るようにしたも
のである。
Also, a location for displaying a test case initial information display of a partial test program (hereinafter, referred to as a mini program) created to execute only a range including a location to be tested in the program source specified above. And a place to describe the items of the program source (hereinafter referred to as a base mini program) excluding a place representing a set of test data and a place representing a test result display,
Of the item group extracted by the above method (hereinafter, referred to as the extracted item definition), a definition having no instruction indicating a redefinition that causes a problem in the language specification of a program is developed in the extracted form, and is extracted. Among the defined item definitions, a definition having an instruction indicating a redefinition that causes a problem in the language specification of the program is a second process that does not break the structure of the extracted item definition. Expand the instruction that shows the definition and the subsequent description that shows the item name of the redefinition source, and then expand the test range instruction specified by the above method to the place where the test range instruction of the base mini program is written. Next, a program source (hereinafter referred to as a program source) including a location for displaying the initial information display of the mini-program test case, a location for displaying the test data set, and a location for displaying the test result display. , Referred to as test data related section) to the place where the test data set instruction is described, and to the item group directly used in the test range instruction specified by the above method in the extracted item definition The instructions for setting the test data and the instructions for displaying the set test data are expanded, and then the test data display section of the test data related section is written with the above-described method. Expands the instruction for displaying the test results for the items that are directly used in the specified test range instruction,
Next, in the place where the instruction for displaying the initial information of the test case in the test data related section is described, the program name including the place to be tested specified above, the program including the place to be tested, and the case to be tested are issued. An instruction for displaying a number to be numbered (hereinafter referred to as a test case number) and the like is developed to create a base mini-program serving as a mini-program and a test data-related section.

【0007】更に、前記の方法を繰り返すことにより、
幾つかのミニプログラムの元となる、ベースミニプログ
ラムとテストデータ関連節を作るようにしたものであ
る。
Further, by repeating the above method,
This is to create a base mini-program and test data-related sections that are the basis of some mini-programs.

【0008】又、前記の方法により生成されたミニプロ
グラムの元となる1つ又は複数の、ベースミニプログラ
ムと該ベースミニプログラムに対応するテストデータ関
連節の1つ又は複数(以下、合成前ミニプログラムと称
する)を一覧にまとめ、該一覧に対してベースミニプロ
グラム編集処理、又は、テストデータ関連節の修正の編
集処理、又は、テストデータ関連節の追加の編集処理、
又は、フォアグラウンド(前景)での実行処理、又は、
バックグラウンド(背景)での実行処理、又は、ベース
ミニプログラムの中のテスト範囲命令を記述する場所の
内容と、該ベースミニプログラムに対応する前記の方法
で指定したプログラムの中のテスト範囲命令を置き換え
る処理を指示することが可能な画面を表示し、該一覧の
画面よりベースミニプログラムの編集処理が指示された
場合は、該指示に対応するベースミニプログラムを画面
に編集可能な形で表示して、前記の方法で指定したテス
ト範囲命令の修正を可能にし、前記一覧の画面よりテス
トデータ関連節の修正の編集処理が指示された場合は、
該指示に対応する該合成前ミニプログラムの中の、画面
より指示されたテストケース番号に対応するテストデー
タ関連節を画面に編集可能な形で表示して、テストデー
タの設定や、該設定されたテストデータを表示するため
の命令、及びテスト結果を表示するための命令の修正を
可能にし、前記一覧の画面よりテストデータ関連節の追
加の編集処理が指示された場合は、該指示に対応する該
合成前ミニプログラムの中の最大のテストケース番号の
テストデータ関連節を複写し、最大のテストケース番号
に1を加算した、新しいテストケース番号の新しいテス
トデータ関連節を生成し、該新しいテストデータ関連節
を画面に編集可能な形で表示して、テストデータの設定
や、該設定されたテストデータを表示するための命令、
及びテスト結果を表示するための命令の修正を可能に
し、前記一覧の画面よりフォアグラウンドでの実行処理
が指示された場合は、該指示に対応するベースミニプロ
グラムと、該指示に対応する該合成前ミニプログラムの
中の、画面より指示されたテストケース番号に対応する
テストデータ関連節を合成し、ミニプログラムを作成
し、フォアグラウンドで実行可能なミニプログラムを生
成後、該実行可能なミニプログラムをフォアグラウンド
で実行し、該実行の結果を画面に表示し、前記一覧の画
面よりバックグラウンドでの実行処理が指示された場合
は、該指示に対応する合成前ミニプログラムの全てのテ
ストデータ関連節に対して、該指示に対応するベースミ
ニプログラムを合成することにより、1ケース目から最
大テストケース目までのミニプログラムを作成し、バッ
クグラウンドで実行可能なミニプログラムを生成後、該
実行可能なミニプログラムをバックグラウンドで実行
し、前記一覧の画面よりベースミニプログラムの中のテ
スト範囲命令を記述する場所の内容と、該ベースミニプ
ログラムに対応する前記の方法で指定したプログラムの
中のテスト範囲命令を置き換える処理を指示された場合
は、該指示を示す戻しマークと称する記号をミニプログ
ラム群を管理するファイルの中のベースミニプログラム
を管理する場所に付すようにしたものである。
In addition, one or more base mini-programs and one or more test data related clauses corresponding to the base mini-programs (hereinafter referred to as pre-synthesis mini The program is referred to as a program), a base mini-program editing process, an editing process for modifying a test data-related section, or an additional editing process for a test data-related section is performed on the list.
Or execution processing in the foreground (foreground), or
The execution processing in the background or the contents of the place where the test range instruction in the base mini-program is described, and the test range instruction in the program specified by the method corresponding to the base mini-program are described. A screen capable of instructing a replacement process is displayed, and when an editing process of the base mini program is instructed from the screen of the list, a base mini program corresponding to the instruction is displayed on the screen in an editable form. Therefore, when the test range instruction specified by the method described above can be corrected, and the editing processing of the correction of the test data related section is instructed from the list screen,
In the pre-synthesis mini-program corresponding to the instruction, a test data-related section corresponding to the test case number specified on the screen is displayed in an editable form on the screen to set the test data and set the setting. To edit the test data and the command to display the test result, and respond to the instruction when additional edit processing of the test data related section is instructed from the list screen. The test data related section of the largest test case number in the pre-synthesis mini-program is copied, and a new test data related section of a new test case number is generated by adding 1 to the largest test case number. The test data-related section is displayed on the screen in an editable form, and the setting of the test data and an instruction for displaying the set test data,
And an instruction for displaying a test result can be modified, and when execution processing in the foreground is instructed from the list screen, the base mini program corresponding to the instruction and the pre-synthesis corresponding to the instruction are After synthesizing the test data related section corresponding to the test case number specified from the screen in the mini program, creating a mini program, generating a mini program that can be executed in the foreground, and then calling the executable mini program in the foreground And the result of the execution is displayed on the screen. When the execution processing in the background is instructed from the screen of the list, all test data related sections of the pre-synthesis mini-program corresponding to the instruction are executed. Then, by synthesizing the base mini program corresponding to the instruction, from the first case to the maximum test case After creating a mini-program and generating a mini-program that can be executed in the background, execute the executable mini-program in the background and select a test range instruction in the base mini program from the list screen. When a process to replace the test range command in the program specified by the above method corresponding to the base mini program is instructed, a symbol called a return mark indicating the command is added to the file for managing the mini program group. It is designed to be attached to the place where the base mini-program is managed.

【0009】又、前記の方法により生成されたベースミ
ニプログラム群の中から、前記の方法によりミニプログ
ラム群を管理するファイルの中の戻しマークが付された
ベースミニプログラムを管理する場所に対応するベース
ミニプログラムを選び出し、該ベースミニプログラムの
テスト範囲命令を記述する場所に記述してある全ての命
令を抽出し、前記の方法で指定したプログラムの中のテ
スト範囲命令と置き換えるようにしたものである。
[0009] Also, from among the group of base mini-programs generated by the above-described method, a file corresponding to the place where the return-marked base mini-program is managed in the file for managing the group of mini-programs by the above-mentioned method. A base mini-program is selected, and all the instructions described in the place where the test range instruction of the base mini-program is described are extracted and replaced with the test range instruction in the program specified by the above method. is there.

【0010】又、前記プログラム保守支援方法を実施す
るためのプログラム保守支援装置を提供したものであ
る。
[0010] Also, there is provided a program maintenance support device for implementing the above-mentioned program maintenance support method.

【0011】又、前記プログラム保守支援方法を実施す
るためのプログラムを記録した、コンピュータ読み取り
可能な記録媒体を提供したものである。
Further, the present invention provides a computer-readable recording medium on which a program for executing the above-mentioned program maintenance support method is recorded.

【0012】本発明においては、プログラムソース上よ
り、テストしたい箇所を指定することにより、該テスト
したい箇所と、該テストしたい箇所で使用されている項
目群を抽出し、該項目群に該項目群のテストデータを設
定するための処理と、該テストデータを表示するための
処理と、結果を表示するための処理とを追加し、該テス
トしたい箇所のみのテスト(以下、部分テストと称す
る)を実施するためのプログラムを生成する。該プログ
ラムにテストデータを設定し実行する事により、該テス
トしたい箇所の検証が容易となる。
In the present invention, by specifying a location to be tested from a program source, the location to be tested and the item group used in the location to be tested are extracted, and the item group is added to the item group. A process for setting the test data, a process for displaying the test data, and a process for displaying the result are added, and a test of only the portion to be tested (hereinafter, referred to as a partial test) is performed. Generate a program for implementation. By setting and executing the test data in the program, it is easy to verify the portion to be tested.

【0013】[0013]

【発明の実施の形態】以下図を用いて、本発明が適用さ
れた実施形態を詳細に記述する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments to which the present invention is applied will be described below in detail with reference to the drawings.

【0014】図1は、本実施形態の処理の流れを示す一
連のブロック図である。図2〜図3は、部分テストを実
施したいテスト対象のプログラムの例である。図2〜図
3のプログラムは、メンテナンスによって第00900
0行〜第011000行に示すように、閏年の処理の追
加を行っており、追加された第009100行に誤りが
ある。
FIG. 1 is a series of block diagrams showing the processing flow of the present embodiment. 2 and 3 are examples of a test target program for which a partial test is to be performed. The program of FIG. 2 to FIG.
As shown in lines 0 to 011000, leap year processing is added, and the added line 009100 contains an error.

【0015】本実施形態では、図2〜図3のプログラム
の第009000行〜第011000行に示す閏年の処
理の部分についてのみ部分テストを実施する作業の例を
以下に説明する。以下のA1〜A21に、本実施形態で
採用されたプログラムテスト支援方法における一定の法
則を列挙する。なお、以下において、『』の括弧で、C
OBOL等のコンピュータ言語のプログラムソース等で
の、文字列パターンを示す。
In the present embodiment, an example of an operation of performing a partial test only on a part of a leap year process shown in lines 009000 to 011000 of the program of FIGS. 2 to 3 will be described below. The following A1 to A21 list certain rules in the program test support method employed in the present embodiment. In the following, in parentheses of "", C
This shows a character string pattern in a program source of a computer language such as OBOL.

【0016】A1.図1のプログラムソースファイル1
にある、テストしたい箇所を含むプログラムソースを指
定する。これは図1の部分テスト範囲指定ツール2を用
いて、端末3から作業順1の作業で指定し、端末3に該
プログラムソースが編集可能な形で表示される。
A1. Program source file 1 in Figure 1
, Specify the program source containing the part you want to test. This is specified using the partial test range specification tool 2 shown in FIG. 1 in the order of work 1 from the terminal 3 and the program source is displayed on the terminal 3 in an editable form.

【0017】A2.前記A1で表示された、テストした
い箇所を含むプログラムソースに対して、テストを実施
したいプログラム内の任意の箇所を指定する。これは図
1の部分テスト範囲指定ツール2を用いて、端末3から
作業順1の作業で指定し、前記A1で表示されたテスト
したい箇所を含むプログラムソースに対して、テストを
実施したいプログラム内の任意の箇所を示すマークを、
プログラム言語が命令として有効でないカラム(例え
ば、COBOL言語の場合は7カラム目)に付すことに
よって行う。テストを実施したいプログラム内の任意の
箇所を指定する方法には、テストを実施したい箇所を範
囲で指定する方法(以下、範囲指定方法と称する)と、
テストを実施したい箇所を行単位に指定する方法(以
下、行指定方法と称する)がある。範囲指定方法による
プログラム内の任意の箇所の指定例を図4に示す。な
お、本実施例とは異なるが、行指定方法によるプログラ
ム内の任意の箇所の指定例を図5に示す。
A2. With respect to the program source including the portion to be tested displayed in the above A1, an arbitrary portion in the program to be tested is designated. This is done by using the partial test range designating tool 2 of FIG. 1 and specifying the work in the work order 1 from the terminal 3 and executing the test on the program source including the part to be tested displayed in A1 above. Mark that indicates an arbitrary part of
This is performed by attaching a column in which the programming language is not valid as an instruction (for example, the seventh column in the case of the COBOL language). There are two methods of specifying an arbitrary part in a program to be tested, a method of specifying a part to be tested in a range (hereinafter, referred to as a range specification method).
There is a method of designating a place where a test is to be performed in units of lines (hereinafter, referred to as a line designation method). FIG. 4 shows an example of specifying an arbitrary portion in the program by the range specifying method. Note that although different from the present embodiment, FIG. 5 shows an example of specifying an arbitrary portion in a program by a line specifying method.

【0018】A3.前記A1で指定したプログラムソー
スを、該プログラムソースの言語仕様に従いコピー句の
展開をした(以下、展開後プログラムソースと称する)
後、該展開後プログラムソースの中から、前記A2で指
定したテストを実施したいプログラム内の任意の箇所全
ての命令をテスト範囲命令として、図1の部分テスト範
囲指定ツール2を用いて、命令・項目定義抽出ファイル
4に抽出する。このテスト範囲命令を図6に示す。
A3. The program source specified in A1 is expanded into a copy phrase in accordance with the language specification of the program source (hereinafter referred to as an expanded program source).
Thereafter, using the partial test range designating tool 2 shown in FIG. Extract to the item definition extraction file 4. This test range instruction is shown in FIG.

【0019】A4.前記A3の展開後プログラムソース
の中から、前記命令・項目定義抽出ファイル4のテスト
範囲命令で使用している項目(以下、直接使用項目と称
する)の構造を崩さない最初に行う処理として、該直接
使用項目の項目定義と、該直接使用項目の上位に定義さ
れた集団項目があれば集団項目の項目定義と、該直接使
用項目が集団項目である場合には下位に定義された項目
の項目定義とを、図1の部分テスト範囲指定ツール2を
用いて、命令・項目定義抽出ファイル4に抽出する。更
に、プログラムの言語仕様上問題となる不足項目(例で
は、図2〜図3のプログラムの第003400行の『D
EPENDING ON』命令に続く『I』)があれ
ば、その項目定義も前記命令・項目定義抽出ファイル4
に抽出する。これらの抽出した項目定義を図7に示す。
A4. From the expanded program source of A3, as a first process which does not break the structure of an item (hereinafter referred to as a directly used item) used in a test range instruction of the instruction / item definition extraction file 4, The item definition of the direct use item, the item definition of the group item if there is a group item defined above the direct use item, and the item of the item defined below if the direct use item is a group item The definition is extracted into an instruction / item definition extraction file 4 using the partial test range designation tool 2 of FIG. In addition, a missing item that causes a problem in the language specification of the program (in the example, “D” in line 003400 of the program in FIGS.
If there is “I” following the “EPENDING ON” command, the item definition is also stored in the command / item definition extraction file 4.
To extract. FIG. 7 shows the extracted item definitions.

【0020】A5.前記A4で命令・項目定義抽出ファ
イル4に抽出した項目定義を、図1のミニプログラム作
成ツール5を用いて、該項目定義の構造を崩さない2番
目に行う処理として、該項目定義の中にプログラムの言
語仕様上問題となる再定義を示す命令があれば、該再定
義を示す命令(『REDEFINES』)とそれに続く
項目名(例では、図2〜図3のプログラムの第0037
00行の『YMD』)の記述を削除してから、ミニプロ
グラムファイル7のベースミニプログラムの項目を記述
する場所へ展開する。このミニプログラムファイル7の
ベースミニプログラムの項目を記述する場所を、図8の
ベースミニプログラムの第001100行〜第0024
00行に示す。
A5. The item definition extracted in the instruction / item definition extraction file 4 in A4 is secondly processed using the mini-program creation tool 5 of FIG. 1 without breaking the structure of the item definition. If there is an instruction indicating a redefinition which causes a problem in the language specification of the program, an instruction indicating the redefinition ("REDDEFINES") and an item name following the instruction (in the example, the 0037 of the program in FIGS.
After deleting the description of “YMD” on line 00, the program is expanded to the location where the item of the base mini-program of the mini-program file 7 is described. The locations where the items of the base mini-program in the mini-program file 7 are described are described in lines 001100 to 0024 of the base mini-program in FIG.
Shown on line 00.

【0021】A6.前記A3で命令・項目定義抽出ファ
イル4に抽出したテスト範囲命令を、図1のミニプログ
ラム作成ツール5を用いて、ミニプログラムファイル7
のベースミニプログラムのテスト範囲命令を記述する場
所へ展開する。このミニプログラムファイル7のベース
ミニプログラムのテスト範囲命令を記述する場所を、図
8のベースミニプログラムの第003700行〜第00
5700行に示す。
A6. The test range command extracted in the command / item definition extraction file 4 in A3 is converted into a mini program file 7 using the mini program creation tool 5 of FIG.
To the location where the test range instruction of the base mini-program is written. The location where the test range instruction of the base mini-program in the mini-program file 7 is described is as shown in FIG.
Shown at line 5700.

【0022】A7.前記A3で命令・項目定義抽出ファ
イル4に抽出したテスト範囲命令で直接使われている項
目について、図1のミニプログラム作成ツール5を用い
て、テストデータを識別するため、テストしようとして
いるプログラム名や、テストしたい箇所を含むプログラ
ムソース毎に1から振られる連番(以下、SEQと称す
る)や、テストケース番号等の情報を表示するための命
令を、ミニプログラムファイル7のテストデータ関連節
のテストケースの初期情報表示の命令を記述する場所に
展開する。このミニプログラムファイル7のテストデー
タ関連節のテストケースの初期情報表示の命令を記述す
る場所を、図9のプログラムの第006400行〜第0
06800行に示す。
A7. For the items directly used in the test range instruction extracted in the instruction / item definition extraction file 4 in A3, the program name to be tested is identified using the mini-program creation tool 5 in FIG. And instructions for displaying information such as a serial number (hereinafter referred to as SEQ) assigned to each program source including a portion to be tested and a test case number in the test data related section of the mini-program file 7. It is expanded to the place where the instruction of the initial information display of the test case is described. The location where the instruction for displaying the initial information of the test case in the test data related section of the mini program file 7 is described in the program of FIG.
Shown at line 06800.

【0023】A8.前記A3で命令・項目定義抽出ファ
イル4に抽出したテスト範囲命令で直接使われている項
目について、図1のミニプログラム作成ツール5を用い
て、該項目にテストデータを設定するための命令を、ミ
ニプログラムファイル7のテストデータ関連節のテスト
データのセットの命令を記述する場所に展開する。この
ミニプログラムファイル7のテストデータ関連節のテス
トデータのセットの命令を記述する場所を、図9のプロ
グラムの第007500行〜第008800行に示す。
A8. For an item directly used in the test range instruction extracted in the instruction / item definition extraction file 4 in A3, an instruction for setting test data in the item using the mini-program creation tool 5 of FIG. The mini program file 7 is expanded to a place where an instruction of a test data set in a test data related section is described. The place where the instruction of the test data set in the test data related section of the mini program file 7 is described is shown in the program of FIG.

【0024】A9.前記A3で命令・項目定義抽出ファ
イル4に抽出したテスト範囲命令で直接使われている項
目について、図1のミニプログラム作成ツール5を用い
て、テスト実行後の内容を表示するための命令を、ミニ
プログラムファイル7のテストデータ関連節のテスト結
果表示の命令を記述する場所へ展開する。このミニプロ
グラムファイル7のテストデータ関連節のテスト結果表
示の命令を記述する場所を、図9のプログラムの第00
9500行〜第010100行に示す。
A9. For the items directly used in the test range instruction extracted in the instruction / item definition extraction file 4 in A3, an instruction for displaying the contents after the test is executed using the mini-program creation tool 5 in FIG. The mini program file 7 is expanded to the place where the instruction of the test result display in the test data related section is described. The location where the test result display instruction of the test data related section of the mini-program file 7 is described is the 00th of the program in FIG.
This is shown from line 9500 to line 010100.

【0025】A10.前記A1からA9の作業により、
1つのベースミニプログラムと、それに対応する1つの
テストデータ関連節(テストケース番号「001」)を
作成し、図1のミニプログラムファイル7に記憶する。
このベースミニプログラムを図8に示し、テストデータ
関連節を図9に示す。
A10. By the work of A1 to A9,
One base miniprogram and one corresponding test data clause (test case number “001”) are created and stored in the miniprogram file 7 of FIG.
This base mini program is shown in FIG. 8, and the test data related section is shown in FIG.

【0026】本実施例とは異なるが、図1のプログラム
ソースファイル1の中に、他にも部分テストを行いたい
箇所(前記A1で指定したプログラムと同じプログラム
でも、違うプログラムでもよい)があれば、再度、前記
A1〜A9の作業を行うことにより、ベースミニプログ
ラムとテストデータ関連節を作成し、前記ミニプログラ
ムファイル7に記憶することができる。更に、前記A1
〜A9の作業を繰り返し行うことにより、幾つかのベー
スミニプログラムとテストデータ関連節を作成し、前記
ミニプログラムファイル7に記憶することができる。
Although different from the present embodiment, there are other places in the program source file 1 in FIG. 1 where a partial test is to be performed (the same program as the program specified in A1 or a different program). For example, by performing the operations A1 to A9 again, a base mini-program and a test data-related clause can be created and stored in the mini-program file 7. Further, the A1
By repeating the operations of A9 to A9, several base mini-programs and test data related clauses can be created and stored in the mini-program file 7.

【0027】A11.前記A1からA9の作業により、
ミニプログラムファイル7内に生成されたミニプログラ
ムの元となる合成前ミニプログラムを、図1の部分テス
ト支援ツール6を用いて一覧にまとめ、該一覧に対して
ベースミニプログラム編集処理、又は、テストデータ関
連節の修正の編集処理、又は、テストデータ関連節の追
加の編集処理、又は、フォアグラウンド(前景)での実
行処理、又は、バックグラウンド(背景)での実行処
理、又は、ベースミニプログラムに対応する前記A1の
方法で指定したプログラムについて、該プログラムの中
の前記A2の方法で指定したテスト範囲命令を、ベース
ミニプログラムの中のテスト範囲命令を記述する場所の
内容で置換え、部分テスト後プログラムソースファイル
10への記憶を指示することが可能な画面を、図1の作
業順2の作業で、端末3に表示する。この画面の例を図
10に示す。なお、本実施例とは異なるが、複数の合成
前ミニプログラムを一覧として表示した画面の例を図1
1に示す。
A11. By the work of A1 to A9,
The pre-synthesis mini-program, which is the basis of the mini-program generated in the mini-program file 7, is compiled into a list using the partial test support tool 6 in FIG. 1, and the base mini-program editing process or test is performed on the list. Edit processing of modification of data-related section, additional editing processing of test data-related section, execution processing in foreground (foreground), execution processing in background (background), or base mini program For the corresponding program specified by the method A1, the test range instruction specified by the method A2 in the program is replaced with the contents of the place where the test range instruction is described in the base mini-program, and after the partial test, A screen capable of instructing storage in the program source file 10 is displayed in the end of the operation in the operation sequence 2 in FIG. 3 To display. FIG. 10 shows an example of this screen. Although different from the present embodiment, an example of a screen displaying a plurality of pre-synthesis mini-programs as a list is shown in FIG.
It is shown in FIG.

【0028】A12.前記A11で表示した画面に対し
て、図1の部分テスト支援ツール6を用いて、作業順2
の作業で人がテストデータ関連節の修正の編集処理を指
示し、ミニプログラムファイル7の中の、該画面で指示
された合成前ミニプログラムの中の前記A10で作成し
たテストケース番号「001」に対応するテストデータ
関連節を、編集可能な形で端末3に表示する。この画面
で編集されるテストデータ関連節を図9に示す。
A12. Using the partial test support tool 6 shown in FIG.
In the above operation, a person instructs the editing process of the modification of the test data related section, and the test case number “001” created in A10 in the pre-synthesis mini-program in the mini-program file 7 specified on the screen. Is displayed on the terminal 3 in an editable form. FIG. 9 shows test data related sections edited on this screen.

【0029】A13.前記A12で表示した画面に対し
て、図1の部分テスト支援ツール6を用いて、作業順2
の作業で人がテストデータ関連節のテストデータのセッ
トの命令を記述する場所とテスト結果表示の命令を記述
する場所の修正を行い、ミニプログラムファイル7に記
憶する。このテストデータ設定後のテストデータ関連節
を図12に示す。
A13. Using the partial test support tool 6 shown in FIG.
In the operation of (1), a person corrects the place where the instruction of the set of test data and the place where the instruction of the display of the test result are written in the test data related section are corrected and stored in the mini program file 7. FIG. 12 shows a section related to test data after setting the test data.

【0030】A14.前記A11で表示した画面に対し
て、図1の部分テスト支援ツール6を用いて、作業順2
の作業で人がフォアグラウンドでの実行処理を指示し、
ミニプログラムファイル7の中の、該画面で指示された
ベースミニプログラムと、該ベースミニプログラムに対
応するテストデータ関連節の中の該画面より指示された
テストケース番号「001」に対応するテストデータ関
連節を合成することにより、図13〜図14に示すミニ
プログラムを作成し、フォアグラウンドで実行可能なミ
ニプログラムを生成後、該実行可能なミニプログラムを
フォアグラウンドで実行し、該実行結果を端末3に表示
する。該端末3に表示された実行結果の正誤を人が確認
する。このフォアグラウンドでの実行結果を図15に示
す。
A14. Using the partial test support tool 6 shown in FIG.
In the work of, a person instructs the execution process in the foreground,
The test data corresponding to the test case number “001” specified from the screen in the mini data file 7 and the base mini program specified on the screen in the test data related section corresponding to the base mini program By composing the related clauses, the mini-program shown in FIGS. 13 and 14 is created, and after generating the mini-program executable in the foreground, the executable mini-program is executed in the foreground, and the execution result is transmitted to the terminal 3. To be displayed. A person checks whether the execution result displayed on the terminal 3 is correct or not. FIG. 15 shows the execution result in the foreground.

【0031】又、本実施例とは異なるが、前記A11で
表示した画面に対して、図1の部分テスト支援ツール6
を用いて、作業順2の作業で人がバックグラウンドでの
実行処理を指示し、ミニプログラムファイル7の中の、
該画面より指示されたベースミニプログラムの全てのテ
ストデータ関連節に対して、該ベースミニプログラムを
合成することにより、1ケース目から最大テストケース
目までのミニプログラムを作成し、バックグラウンドで
実行可能なミニプログラムを生成後、該実行可能なミニ
プログラムをバックグラウンドで実行し、部分テスト実
行結果リスト9を出力することもできる。該部分テスト
実行結果リスト9により、実行結果の正誤を人が確認す
る。例では、テストケース番号が「001」のミニプロ
グラムしかないため、図15に示したようなフォアグラ
ウンドでの実行結果と同様のリストが出力される。
Although different from the present embodiment, the partial test support tool 6 shown in FIG.
, The person instructs the execution process in the background in the work of the work order 2, and the mini-program file 7
By synthesizing the base mini-program for all the test data related sections of the base mini-program specified on the screen, a mini-program from the first case to the maximum test case is created and executed in the background After generating a possible mini-program, the executable mini-program can be executed in the background, and the partial test execution result list 9 can be output. Using the partial test execution result list 9, a person checks whether the execution result is correct or not. In the example, since there is only the mini program with the test case number “001”, a list similar to the execution result in the foreground as shown in FIG. 15 is output.

【0032】A15.本実施例では、図2〜図3のプロ
グラムの第009100行に示す閏年の処理の部分で平
年の2月の月末を設定しているが、本来であれば28日
と設定すべき記述を、誤って29日と設定しており、前
記A14のフォアグラウンドでの実行処理により、図1
5に示すミニプログラムのフォアグラウンド実行結果で
平年の月末が29日となり、誤りを発見することができ
る。該誤りを修正するため、前記A11で表示した画面
に対して、部分テスト支援ツール6を用いて、作業順2
の作業で人がベースミニプログラム編集処理を指示し、
ミニプログラムファイル7の中の、該画面で指示された
ベースミニプログラムを、編集可能な形で端末3に表示
し、人が修正後、ミニプログラムファイル7に記憶す
る。このベースミニプログラムの誤りの訂正状態を図1
6に示し、誤り訂正後のベースミニプログラムを図17
に示す。
A15. In the present embodiment, the end of February in the normal year is set in the leap year process shown in line 009100 of the program in FIGS. The 29th day was erroneously set, and the execution processing in the foreground of A14 described above
In the foreground execution result of the mini program shown in FIG. 5, the end of the month of the normal year is 29, and an error can be found. In order to correct the error, the partial test support tool 6 was used to display the screen displayed in A11,
In the work of the person, instruct the base mini program editing process,
The base mini-program instructed on the screen in the mini-program file 7 is displayed on the terminal 3 in an editable form. Figure 1 shows the error correction status of this base mini program.
The base mini program after error correction is shown in FIG.
Shown in

【0033】A16.前記A15で誤りを修正したベー
スミニプログラムについて、前記A14の方法により再
度、部分テストを実施し、実行結果の正誤を人が確認す
る。このフォアグラウンドでの実行結果を図18に示
し、誤り訂正後のミニプログラムを図19〜図20に示
す。
A16. A partial test is performed again on the base mini-program corrected in A15 by the method in A14, and a person confirms whether the execution result is correct or not. FIG. 18 shows the result of execution in the foreground, and FIGS. 19 and 20 show the mini-program after error correction.

【0034】又、本実施例とは異なるが、実行結果に再
度誤りを発見した場合は、前記A15の方法により該ベ
ースミニプログラムを修正後、前記A14によるテスト
を繰り返す。
Also, although different from the present embodiment, when an error is found again in the execution result, the base mini-program is corrected by the method of A15, and the test by A14 is repeated.

【0035】A17.前記A16で部分テストを実施し
たミニプログラムについて別のテストデータでの部分テ
ストを行うために、前記A11で表示した画面に対し
て、図1の部分テスト支援ツール6を用いて、作業順2
の作業で人がテストデータ関連節の追加の編集処理を指
示し、ミニプログラムファイル7の中の、該画面で指示
された合成前ミニプログラムの最大のテストケース番号
のテストデータ関連節を複写し、編集可能な形で端末3
に、該合成前ミニプログラムの最大のテストケース番号
に1を加算した新しいテストケース番号のテストデータ
関連節として表示し、人がテストデータ関連節のテスト
データのセットの命令を記述する場所やテスト結果表示
の命令を記述する場所等の修正を行い、ミニプログラム
ファイル7に記憶し、前記A14のフォアグラウンドで
の実行処理により部分テストを実施する。このミニプロ
グラムとベースミニプログラムとテストデータ関連節の
関係を図21に示す。
A17. In order to perform a partial test using different test data on the mini-program that has been subjected to the partial test in A16, the screen displayed in A11 is used to execute a partial test using the partial test support tool 6 in FIG.
In the above operation, the person instructs additional editing processing of the test data related section, and copies the test data related section of the maximum test case number of the pre-synthesis mini program specified on the screen in the mini program file 7. , Terminal 3 in an editable form
In addition, a new test case number obtained by adding 1 to the maximum test case number of the pre-synthesis mini-program is displayed as a test data related clause, and a place where a person writes an instruction of a test data set of the test data related clause or a test The location where the result display instruction is described is corrected, stored in the mini-program file 7, and a partial test is performed by the execution process in the foreground of A14. FIG. 21 shows the relationship between the mini-program, the base mini-program, and the test data related clause.

【0036】A18.前記A17を繰り返すことによ
り、複数のケースの部分テストを実施することができ
る。この複数のテストケースを実行した例を図22に示
す。
A18. By repeating A17, partial tests of a plurality of cases can be performed. FIG. 22 shows an example of executing the plurality of test cases.

【0037】A19.前記A11で表示した画面に対し
て、図1の部分テスト支援ツール6を用いて、作業順2
の作業で人が前記A1の方法で指定したプログラムにつ
いて、該プログラムの中の前記A2の方法で指定したテ
スト範囲命令を、ベースミニプログラムの中のテスト範
囲命令を記述する場所の内容で置換え、部分テスト後プ
ログラムソースファイル10への記憶を指示し、ミニプ
ログラム管理ファイル8の中の、該画面で指示されたベ
ースミニプログラムを管理する場所に、戻しマークを付
する。このミニプログラム管理ファイルの該当レコード
の例を図23に示す。
A19. Using the partial test support tool 6 shown in FIG.
Replacing the test range instruction specified by the method A2 in the program with the contents of the place where the test range instruction is described in the base mini-program, for the program specified by the method A1 in the program, After the partial test, an instruction to store the program in the program source file 10 is given, and a location in the mini-program management file 8 where the base mini-program specified on the screen is managed is marked with a return mark. FIG. 23 shows an example of a corresponding record in the mini-program management file.

【0038】A20.図1のミニプログラムファイル7
の中から、プログラム修正支援ツール11を用いて、前
記A19でミニプログラム管理ファイル8の中に戻しマ
ークが付されたベースミニプログラムを選び出し、該ベ
ースミニプログラムから、テスト範囲命令を記述する場
所を抽出する。このベースミニプログラムのテスト範囲
命令を記述する場所は、図17のプログラムの第003
700行〜第005700行である。
A20. Mini program file 7 in FIG.
Out of the mini-program management files 8 in the above-mentioned mini program management file 8 by using the program correction support tool 11, and from the base mini-program, a place for writing a test range instruction is selected. Extract. The place where the test range instruction of this base mini-program is described is the 003rd program in FIG.
Line 700 to line 005700.

【0039】A21.図1のプログラム修正支援ツール
11を用いて、前記A20で選び出されたベースミニプ
ログラムに対応する前記A1の方法で指定したプログラ
ムについて、該プログラムの中の前記A2の方法で指定
したテスト範囲命令を、A20で抽出したベースミニプ
ログラムの中のテスト範囲命令を記述する場所の内容で
置き換え、部分テスト後プログラムソースファイル10
に記憶する。
A21. Using the program correction support tool 11 of FIG. 1, for a program specified by the method A1 corresponding to the base mini-program selected in A20, a test range instruction specified by the method A2 in the program Is replaced with the contents of the location where the test range instruction is described in the base mini program extracted in A20, and the program source file 10 after the partial test is replaced.
To memorize.

【0040】以上説明したように、本実施形態では本発
明を効果的に適用することができる。又、該実施形態の
実施例についても、本発明を効果的に適用できており、
プログラムの部分テストを容易に行うことができる。更
に、この部分テストによりプログラムソースの誤りを見
つけることができ、その誤りの修正を行うこともでき
る。更に、その修正内容を元のプログラムソースに反映
することもできる。
As described above, in the present embodiment, the present invention can be effectively applied. Also, the present invention can be effectively applied to the examples of the embodiment,
A partial test of a program can be easily performed. Further, errors in the program source can be found by the partial test, and the errors can be corrected. Further, the modified contents can be reflected in the original program source.

【0041】ここで以上に説明した図1の符号2、符号
5、符号6、及び符号11の処理の本発明が適用される
プログラムテスト支援方法に係るプログラムは、コンピ
ュータ読み取り可能な記録媒体に記録し配布できる。
Here, the program according to the program test support method to which the present invention is applied in the processing of reference numerals 2, 5, 6, and 11 in FIG. 1 described above is recorded on a computer-readable recording medium. And can be distributed.

【0042】図24は、コンピュータ読み取り可能な記
録媒体に記録し配布する際の第1例の構成を示すブロッ
ク図である。この図24では、開発システム20の所定
の記憶装置に記憶されているプログラムソースライブラ
リ21、コピーライブラリ22、及びJCL(Job Con
trol Language)ライブラリ23は、図1の符号2、符
号5、符号6、及び符号11の処理に係るプログラムに
関する情報である。これらプログラムソースライブラリ
21、コピーライブラリ22、及びJCLライブラリ2
3は、本発明が適用されるカセット磁気テープ(CM
T)30に書き込まれ、ユーザシステム40に配布され
る。
FIG. 24 is a block diagram showing a configuration of a first example when recording and distributing on a computer-readable recording medium. In FIG. 24, a program source library 21, a copy library 22, and a JCL (Job Con
The control language library 23 is information on programs related to the processes indicated by reference numerals 2, 5, 6, and 11 in FIG. These program source library 21, copy library 22, and JCL library 2
3 is a cassette magnetic tape (CM) to which the present invention is applied.
T) 30 and distributed to the user system 40.

【0043】ユーザシステム40における図1の符号
2、符号5、符号6、及び符号11の処理に係るプログ
ラムのインストールに際しては、まず、カセット磁気テ
ープ30からユーザシステム40の所定の記憶装置に、
プログラムソースライブラリ41、コピーライブラリ4
2、及びJCLライブラリ43が読み出される。この
後、プログラムコンパイル44が行われて、ロードモジ
ュール45が得られる。該ロードモジュール45は、図
1の符号2、符号5、符号6、及び符号11の処理に係
る実行可能なプログラムである。
When installing the programs related to the processes indicated by reference numerals 2, 5, 6, and 11 in the user system 40, first, the cassette magnetic tape 30 is stored in a predetermined storage device of the user system 40.
Program source library 41, copy library 4
2 and the JCL library 43 are read. Thereafter, a program compilation 44 is performed, and a load module 45 is obtained. The load module 45 is an executable program related to the processing of reference numerals 2, 5, 6, and 11 in FIG.

【0044】図25は、コンピュータ読み取り可能な記
録媒体に記録し配布する際の第2例の構成を示すブロッ
ク図である。ここで、開発システム20の所定の記憶装
置に記憶されている図1の符号2、符号5、符号6、及
び符号11の処理に係る実行可能なプログラムであるロ
ードモジュール25は、本発明が適用されるカセット磁
気テープ30に書き込まれ、ユーザシステム40に配布
される。又、該ロードモジュール25は、開発システム
20の所定の記憶装置に記憶されているプログラムソー
スライブラリ21、コピーライブラリ22、及びJCL
ライブラリ23に対してプログラムコンパイル24が行
われて得られたものである。
FIG. 25 is a block diagram showing the configuration of a second example of recording and distributing the program on a computer-readable recording medium. Here, the present invention is applied to a load module 25 which is an executable program related to the processes of reference numerals 2, 5, 6, and 11 of FIG. 1 stored in a predetermined storage device of the development system 20. Is written on the cassette magnetic tape 30 and distributed to the user system 40. The load module 25 includes a program source library 21, a copy library 22, and a JCL stored in a predetermined storage device of the development system 20.
This is obtained by performing program compilation 24 on the library 23.

【0045】ユーザシステム40における図1の符号
2、符号5、符号6、及び符号11の処理に係る実行可
能なプログラムのインストールに際しては、カセット磁
気テープ30からユーザシステム40の所定の記憶装置
に、ロードモジュール45が読み出される。
At the time of installing an executable program related to the processing of reference numerals 2, 5, 6, and 11 in the user system 40, the cassette magnetic tape 30 is installed in a predetermined storage device of the user system 40. The load module 45 is read.

【0046】なお、前記の図24や図25等、本発明に
係るプログラムを記録するコンピュータ読み取り可能な
記録媒体は、前記のようなカセット磁気テープ30に限
定されるものではないことは言うまでもない。いわゆる
メインフレームコンピュータでは、カセット磁気テープ
の他、種々の磁気テープが用いられるが、このようなも
のでもよい。あるいは、フレキシブル磁気ディスク(い
わゆるフロッピィディスク)、MO(Magnet Optics)
ディスク、CD(Compact Disc)−ROM等の、コン
ピュータ読み取り可能な、他の記録媒体であってもよ
い。
It is needless to say that the computer-readable recording medium for recording the program according to the present invention as shown in FIGS. 24 and 25 is not limited to the cassette magnetic tape 30 as described above. In a so-called mainframe computer, various magnetic tapes are used in addition to a cassette magnetic tape. Alternatively, a flexible magnetic disk (so-called floppy disk), MO (Magnet Optics)
Other recording media that can be read by a computer, such as a disc and a CD (Compact Disc) -ROM, may be used.

【0047】[0047]

【発明の効果】本発明によれば、プログラムのテストに
おいて、テストしたい箇所のみからなるミニプログラム
により、テストしたい箇所の検証を効率良く行うことが
可能となり、テストデータの作成等のプログラムのテス
トに要する作業工数を削減し、該テストしたい箇所につ
いての入念なテストの実施を容易にし、プログラム修正
の精度を向上させることができる。
According to the present invention, in a program test, a mini-program consisting of only a portion to be tested can be efficiently verified at a portion to be tested. The number of required man-hours can be reduced, the elaborate test for the portion to be tested can be easily performed, and the accuracy of program correction can be improved.

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

【図1】本発明に係る実施形態の処理の流れを示す一連
のブロック図
FIG. 1 is a series of block diagrams showing a processing flow of an embodiment according to the present invention.

【図2】本実施形態におけるテスト対象プログラムの例
の前段を示す線図
FIG. 2 is a diagram showing a first stage of an example of a test target program according to the embodiment;

【図3】同じく後段を示す線図FIG. 3 is also a diagram showing a latter stage.

【図4】本実施形態において、ソースプログラムの部分
テストを実施したい箇所を範囲で指定した例を示す線図
FIG. 4 is a diagram showing an example in which a portion where a partial test of a source program is to be performed is designated by a range in the embodiment;

【図5】変形例において、ソースプログラムの部分テス
トを実施したい箇所を行単位で指定した例を示す線図
FIG. 5 is a diagram showing an example in which a portion where a partial test of a source program is to be performed is specified in units of lines in a modified example.

【図6】本実施形態におけるテスト範囲命令を示す線図FIG. 6 is a diagram showing a test range instruction according to the embodiment;

【図7】同じく、抽出した項目定義を示す線図FIG. 7 is a diagram showing the extracted item definitions.

【図8】同じく、ベースミニプログラムを示す線図FIG. 8 is a diagram showing a base mini program.

【図9】同じく、テストデータ関連節を示す線図FIG. 9 is a diagram showing test data related clauses.

【図10】同じく、ミニプログラムの操作画面を示す線
FIG. 10 is a diagram showing an operation screen of the mini program.

【図11】変形例において、ベースミニプログラムと該
ベースミニプログラムに対応するテストデータ関連節群
を複数一覧として表示した画面を示す線図
FIG. 11 is a diagram showing a screen in which a plurality of lists of a base mini-program and test data related clause groups corresponding to the base mini-program are displayed in a modified example.

【図12】本実施形態における、テストデータ設定後の
テストデータ関連節を示す線図
FIG. 12 is a diagram showing a test data related section after setting test data in the embodiment;

【図13】同じく、ミニプログラムの前段を示す線図FIG. 13 is a diagram showing the first stage of the mini program.

【図14】同じく後段を示す線図FIG. 14 is also a diagram showing a latter stage.

【図15】本実施形態における、ミニプログラムのフォ
アグラウンド実行結果を示す線図
FIG. 15 is a diagram illustrating a foreground execution result of a mini program in the present embodiment.

【図16】同じく、ベースミニプログラムの誤り訂正状
態を示す線図
FIG. 16 is a diagram showing an error correction state of the base mini program.

【図17】同じく、誤り訂正後のベースミニプログラム
を示す線図
FIG. 17 is a diagram showing a base mini program after error correction.

【図18】同じく、誤り訂正後のミニプログラムのフォ
アグラウンド実行結果を示す線図
FIG. 18 is a diagram showing a foreground execution result of a mini-program after error correction.

【図19】同じく、誤り訂正後のミニプログラムの前段
を示す線図
FIG. 19 is a diagram showing a former stage of the mini-program after error correction.

【図20】同じく後段を示す線図FIG. 20 is a diagram showing the latter stage in the same manner.

【図21】本実施形態における、ミニプログラムとベー
スミニプログラムとテストデータ関連節の関係を示す線
FIG. 21 is a diagram showing a relationship between a mini program, a base mini program, and a test data related section in the present embodiment.

【図22】同じく、複数のテストケースを実行した結果
を示す線図
FIG. 22 is a diagram showing a result of executing a plurality of test cases.

【図23】同じく、ミニプログラム管理ファイルの例を
示す線図
FIG. 23 is a diagram showing an example of a mini-program management file.

【図24】前記実施形態のコンピュータプログラムを記
録し配布するための第1例の構成を示すブロック図
FIG. 24 is a block diagram showing the configuration of a first example for recording and distributing the computer program of the embodiment.

【図25】同じく、第2例の構成を示すブロック図FIG. 25 is a block diagram showing the configuration of the second example.

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

1…プログラムソースファイル 2…部分テスト範囲指定ツール 3…端末 4…命令・項目定義抽出ファイル 5…ミニプログラム作成ツール 6…部分テスト支援ツール 7…ミニプログラムファイル 8…ミニプログラム管理ファイル 9…部分テスト実行結果リスト 10…部分テスト後プログラムソースファイル 11…プログラム修正支援ツール 20…開発システム 21、41…プログラムソースライブラリ 22、42…コピーライブラリ 23、43…JCLライブラリ 24、44…プログラムコンパイル 25、45…ロードモジュール 30…カセット磁気テープ(CMT) 40…ユーザシステム DESCRIPTION OF SYMBOLS 1 ... Program source file 2 ... Partial test range specification tool 3 ... Terminal 4 ... Command / item definition extraction file 5 ... Mini program creation tool 6 ... Partial test support tool 7 ... Mini program file 8 ... Mini program management file 9 ... Partial test Execution result list 10: Program source file after partial test 11: Program modification support tool 20: Development system 21, 41 ... Program source library 22, 42 ... Copy library 23, 43 ... JCL library 24, 44 ... Program compilation 25, 45 ... Load module 30 Cassette magnetic tape (CMT) 40 User system

───────────────────────────────────────────────────── フロントページの続き (72)発明者 丹生石 和也 東京都江東区豊洲三丁目3番3号 川鉄情 報システム株式会社内 (72)発明者 小山 知広 東京都江東区豊洲三丁目3番3号 川鉄情 報システム株式会社内 (72)発明者 渡辺 宏昭 東京都江東区豊洲三丁目3番3号 川鉄情 報システム株式会社内 (72)発明者 石橋 明 東京都江東区豊洲三丁目3番3号 川鉄情 報システム株式会社内 (72)発明者 野口 健二 東京都江東区豊洲三丁目3番3号 川鉄情 報システム株式会社内 Fターム(参考) 5B042 HH11 HH39 NN01 NN16 NN41 ────────────────────────────────────────────────── ─── Continuing on the front page (72) Inventor Kazuya Niuishi 3-3-3 Toyosu, Koto-ku, Tokyo Inside Kawatetsu Information System Co., Ltd. (72) Tomohiro Koyama 3-3-1, Toyosu, Koto-ku, Tokyo No. 3 Kawatetsu Information System Co., Ltd. (72) Inventor Hiroaki Watanabe 3-3 Toyosu 3-chome, Koto-ku, Tokyo Institution (72) Inventor Akira Ishibashi 3-chome Toyosu 3-chome, Koto-ku, Tokyo No. 3 Kawatetsu Information System Co., Ltd. (72) Inventor Kenji No. 3-3, Toyosu 3-chome, Koto-ku, Tokyo F-term (reference) 5B042 HH11 HH39 NN01 NN16 NN41

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】テストしたい箇所を含むプログラムソース
を編集可能な画面に出力し、 該プログラムソースの中にテストしたい箇所を含む範囲
が指定された場合、該プログラムソース内に項目の定義
や処理を記述した命令等を、別ファイルで定義したコピ
ー句で記述された箇所があれば、該プログラムソースの
言語仕様に従いコピー句の展開をした後、指定されたテ
ストしたい箇所を含む範囲の命令群であるテスト範囲命
令と、該テスト範囲命令で使用している項目群につい
て、該項目群の項目の定義の構造を崩さない最初に行う
処理として、該テスト範囲命令で使用している項目群
と、該テスト範囲命令で使用している項目群の上位に定
義された集団項目群と、該テスト範囲命令で使用してい
る項目群の下位に定義された項目群と、プログラムの言
語仕様上問題となる不足項目群と、を抽出することを特
徴とするプログラムテスト支援方法。
1. A program source including a portion to be tested is output to an editable screen, and when a range including a portion to be tested is specified in the program source, the definition and processing of items in the program source are defined. If there is a portion described in a copy clause defined in a separate file, the described instructions, etc. are expanded according to the language specification of the program source, and then expanded into a group of instructions including the specified portion to be tested. A certain test range instruction and, for an item group used in the test range instruction, an item group used in the test range instruction as a first process that does not break the structure of the definition of the items in the item group; A group item group defined above the item group used in the test range instruction; an item group defined below the item group used in the test range instruction; A program test support method characterized by extracting a missing item group that causes a problem in a language specification of a program.
【請求項2】請求項1で指定したプログラムソースのテ
ストしたい箇所を含む範囲のみを実行するために作成す
る部分テスト用のプログラムであるミニプログラムの、
テストケースの初期情報表示を表す場所と、テストデー
タのセットを表す場所と、テスト結果表示を表す場所と
を除いたプログラムソースであるベースミニプログラム
の項目を記述する場所へ、請求項1の方法により抽出さ
れた項目群である抽出した項目定義のうち、プログラム
の言語仕様上問題となる再定義を示す命令がない定義は
抽出された形のまま展開し、 該抽出した項目定義のうち、プログラムの言語仕様上問
題となる再定義を示す命令がある定義は、該抽出した項
目定義の構造を崩さない2番目に行う処理として、プロ
グラムの言語仕様上問題となる再定義を示す命令とそれ
に続く再定義元の項目名を示す記述を省いて展開し、 次に、ベースミニプログラムのテスト範囲命令を記述す
る場所へ、請求項1の方法で指定したテスト範囲命令を
展開し、 次に、ミニプログラムのテストケースの初期情報表示を
表す場所と、テストデータのセットを表す場所と、テス
ト結果表示を表す場所とで構成されるプログラムソース
であるテストデータ関連節のテストデータのセットの命
令を記述する場所へ、抽出した項目定義の中で請求項1
の方法で指定したテスト範囲命令で直接的に使われてい
る項目群に対して、テストデータを設定するための命令
と、該設定されたテストデータを表示するための命令を
展開し、 次に、テストデータ関連節のテスト結果表示の命令を記
述する場所へ、請求項1の方法で指定したテスト範囲命
令で直接的に使われている項目群に対してテスト結果の
表示のための命令を展開し、 次に、テストデータ関連節のテストケースの初期情報表
示の命令を記述する場所へ、請求項1で指定したテスト
したい箇所を含むプログラム名やテストしたい箇所を含
むプログラム毎、且つ、テストするケース毎に発番され
るテストケース番号等を表示するための命令を展開し、 ミニプログラムの元となるベースミニプログラムとテス
トデータ関連節を作ることを特徴とするプログラムテス
ト支援方法。
2. A mini-program, which is a program for a partial test created to execute only a range including a portion to be tested in the program source specified in claim 1,
2. The method according to claim 1, wherein a location for describing an item of a base mini-program, which is a program source, excluding a location representing an initial information display of a test case, a location representing a set of test data, and a location representing a test result display. Among the extracted item definitions, which are a group of items extracted by the above, those definitions that do not have an instruction indicating a redefinition that causes a problem in the language specification of the program are expanded in the extracted form, and among the extracted item definitions, the program A definition that includes an instruction indicating a redefinition that causes a problem in the language specification of the program is executed as a second process that does not break the structure of the extracted item definition. 2. A test specified by the method according to claim 1 to a place where a test range instruction of the base mini-program is described, omitting the description indicating the item name of the redefinition source and then expanding the test. Next, expand the surrounding instructions. Next, test data related as a program source consisting of a place representing the initial information display of the test case of the mini-program, a place representing the set of test data, and a place representing the test result display. 2. A method according to claim 1, further comprising the step of: extracting the instruction of the set of test data in the section, in the extracted item definition.
For the group of items used directly in the test range instruction specified by the method described above, expand the instruction for setting the test data and the instruction for displaying the set test data, A command for displaying a test result for a group of items directly used in the test range command specified in the method of claim 1 is written to a place where a test result display command in a test data related section is described. Then, the program name including the portion to be tested specified in claim 1 or the program including the portion to be tested specified in claim 1 is transferred to the place where the instruction for displaying the initial information of the test case in the test data related section is written. It expands the instructions for displaying the test case number etc. issued for each case to be created, and creates a base mini program that is the base of the mini program and a test data related section Program test support how to.
【請求項3】請求項2の方法を繰り返すことにより、幾
つかのミニプログラムの元となる、ベースミニプログラ
ムとテストデータ関連節を作ることを特徴とするプログ
ラムテスト支援方法。
3. A program test support method characterized by creating a base mini-program and a test data-related clause, which are the basis of several mini-programs, by repeating the method of claim 2.
【請求項4】請求項2又は3の方法により生成されたミ
ニプログラムの元となる1つ又は複数の、ベースミニプ
ログラムと該ベースミニプログラムに対応するテストデ
ータ関連節の1つ又は複数である合成前ミニプログラム
を一覧にまとめ、 該一覧に対してベースミニプログラム編集処理、又は、
テストデータ関連節の修正の編集処理、又は、テストデ
ータ関連節の追加の編集処理、又は、フォアグラウンド
(前景)での実行処理、又は、バックグラウンド(背
景)での実行処理、又は、ベースミニプログラムの中の
テスト範囲命令を記述する場所の内容と、該ベースミニ
プログラムに対応する請求項1の方法で指定したプログ
ラムの中の請求項1の方法で指定したテスト範囲命令を
置き換える処理を指示することが可能な画面を表示し、 該一覧の画面よりベースミニプログラムの編集処理が指
示された場合は、該指示に対応するベースミニプログラ
ムを画面に編集可能な形で表示して、請求項1の方法で
指定したテスト範囲命令の修正を可能にし、 前記一覧の画面よりテストデータ関連節の修正の編集処
理が指示された場合は、該指示に対応する該合成前ミニ
プログラムの中の、画面より指示されたテストケース番
号に対応するテストデータ関連節を画面に編集可能な形
で表示して、テストデータの設定や、該設定されたテス
トデータを表示するための命令、及びテスト結果を表示
するための命令の修正を可能にし、 前記一覧の画面よりテストデータ関連節の追加の編集処
理が指示された場合は、該指示に対応する該合成前ミニ
プログラムの中の最大のテストケース番号のテストデー
タ関連節を複写し、最大のテストケース番号に1を加算
した、新しいテストケース番号の新しいテストデータ関
連節を生成し、該新しいテストデータ関連節を画面に編
集可能な形で表示して、テストデータの設定や、該設定
されたテストデータを表示するための命令、及びテスト
結果を表示するための命令の修正を可能にし、 前記一覧の画面よりフォアグラウンドでの実行処理が指
示された場合は、該指示に対応するベースミニプログラ
ムと、該指示に対応する該合成前ミニプログラムの中
の、画面より指示されたテストケース番号に対応するテ
ストデータ関連節を合成し、ミニプログラムを作成し、
フォアグラウンドで実行可能なミニプログラムを生成
後、該実行可能なミニプログラムをフォアグラウンドで
実行し、該実行の結果を画面に表示し、 前記一覧の画面よりバックグラウンドでの実行処理が指
示された場合は、該指示に対応する合成前ミニプログラ
ムの全てのテストデータ関連節に対して、該指示に対応
するベースミニプログラムを合成することにより、1ケ
ース目から最大テストケース目までのミニプログラムを
作成し、バックグラウンドで実行可能なミニプログラム
を生成後、該実行可能なミニプログラムをバックグラウ
ンドで実行し、 前記一覧の画面よりベースミニプログラムの中のテスト
範囲命令を記述する場所の内容と、該ベースミニプログ
ラムに対応する請求項1の方法で指定したプログラムの
中の請求項1の方法で指定したテスト範囲命令を置き換
える処理を指示された場合は、該指示を示す戻しマーク
をミニプログラム群を管理するファイルの中のベースミ
ニプログラムを管理する場所に付すことを特徴とするプ
ログラムテスト支援方法。
4. One or more base mini-programs and one or more test data related clauses corresponding to the base mini-program, which are the basis of the mini-program generated by the method of claim 2 or 3. The mini-programs before synthesis are summarized in a list, and the base mini-program editing process or
Edit processing of the modification of the test data section, or additional editing processing of the test data section, execution processing in the foreground (foreground), execution processing in the background (background), or base mini program And a process for replacing the test range instruction specified by the method of claim 1 in the program specified by the method of claim 1 corresponding to the base mini-program. Displaying a screen that allows the user to edit the base mini program from the list screen, displaying the base mini program corresponding to the instruction in an editable form on the screen. The test range instruction specified by the method described in the above method can be corrected, and when the editing processing of the correction of the test data related section is instructed from the list screen, The test data related section corresponding to the test case number designated from the screen in the pre-synthesis mini-program corresponding to the above is displayed in an editable form on the screen to set the test data and the set test. It is possible to modify an instruction for displaying data and an instruction for displaying test results, and when an additional editing process of a test data related section is instructed from the list screen, the The test data related section of the largest test case number in the pre-synthesis mini-program is copied, a new test data related section of a new test case number is generated by adding 1 to the largest test case number, and the new test data is generated. Displays relevant sections on the screen in an editable form, displays test data settings, instructions for displaying the set test data, and test results When the execution processing in the foreground is instructed from the list screen, the base mini-program corresponding to the instruction and the pre-synthesis mini-program corresponding to the instruction are included. , Synthesize a test data related section corresponding to the test case number specified from the screen, create a mini program,
After generating a mini-program that can be executed in the foreground, the executable mini-program is executed in the foreground, the result of the execution is displayed on the screen, and when the execution processing in the background is instructed from the list screen, By synthesizing a base miniprogram corresponding to the instruction with respect to all test data related sections of the pre-synthesis miniprogram corresponding to the instruction, a miniprogram from the first case to the maximum test case is created. Generating a mini-program that can be executed in the background, executing the mini-program that can be executed in the background, Claim 1 in the program specified by the method of claim 1 corresponding to the mini program When a process to replace the test range command specified in the step is instructed, a return mark indicating the command is added to a location for managing the base mini-program in a file for managing the mini-program group, wherein Method.
【請求項5】請求項2又は3の方法により生成されたベ
ースミニプログラム群の中から、請求項4の方法により
ミニプログラム群を管理するファイルの中の戻しマーク
が付されたベースミニプログラムを管理する場所に対応
するベースミニプログラムを選び出し、 該ベースミニプログラムの請求項2の方法でいうベース
ミニプログラムのテスト範囲命令を記述する場所に記述
してある全ての命令を抽出し、 請求項1の方法で指定したプログラムの中の請求項1の
方法で指定したテスト範囲命令と置き換えることを特徴
とするプログラムテスト支援方法。
5. A base mini program having a return mark in a file for managing a mini program group according to the method of claim 4 is selected from the group of base mini programs generated by the method of claim 2 or 3. 2. A base mini-program corresponding to a place to be managed is selected, and all instructions described in a place where a test range instruction of the base mini-program is described in the method of claim 2 of the base mini-program are extracted. 2. A program test support method, wherein a program specified by the method of claim 1 is replaced with a test range instruction specified by the method of claim 1.
【請求項6】請求項1乃至5のいずれかに記載されたプ
ログラムテスト支援方法を実施するためのプログラムテ
スト支援装置。
6. A program test support device for implementing the program test support method according to claim 1.
【請求項7】請求項1乃至5のいずれかに記載されたプ
ログラムテスト支援方法を実施するためのプログラムを
記録した、コンピュータ読み取り可能な記録媒体。
7. A computer-readable recording medium on which a program for executing the program test support method according to claim 1 is recorded.
JP11149631A 1999-05-28 1999-05-28 Method and device for supporting program test and recording medium Pending JP2000339192A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11149631A JP2000339192A (en) 1999-05-28 1999-05-28 Method and device for supporting program test and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11149631A JP2000339192A (en) 1999-05-28 1999-05-28 Method and device for supporting program test and recording medium

Publications (1)

Publication Number Publication Date
JP2000339192A true JP2000339192A (en) 2000-12-08

Family

ID=15479457

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11149631A Pending JP2000339192A (en) 1999-05-28 1999-05-28 Method and device for supporting program test and recording medium

Country Status (1)

Country Link
JP (1) JP2000339192A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012103869A (en) * 2010-11-09 2012-05-31 Internatl Business Mach Corp <Ibm> Software development support method, software development support device and software development support program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012103869A (en) * 2010-11-09 2012-05-31 Internatl Business Mach Corp <Ibm> Software development support method, software development support device and software development support program
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
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

Similar Documents

Publication Publication Date Title
JP4667386B2 (en) Business model diagram creation support program, business model diagram creation support method, and business model diagram creation support device
US6289489B1 (en) Method and apparatus for automatically cross-referencing graphical objects and HDL statements
JP4396994B2 (en) Resource file translation verification method, apparatus, and program
KR100205539B1 (en) Hard disc double partitioning method
JPH06231031A (en) Control method of multimedia document form
JPWO2010044150A1 (en) Program change management apparatus, program change management program, and program change management method
TWI299487B (en) System and method for modifying firmware of an optical storage medium device without enabling a compiling process
US6321378B1 (en) Automated code replication during application development
JP2000339192A (en) Method and device for supporting program test and recording medium
WO2000057271A1 (en) Apparatus for assisting in writing graphical user interface program, and write-assisting method, and recording medium on which write-assisting program is recorded
JP3697274B2 (en) Software development support device
JPH06110733A (en) Test case generating device of program
JP2000293519A (en) Document processor
JP4006477B2 (en) Form creation device, form creation method, and storage medium
JP3969926B2 (en) Form creation device, form creation method, and storage medium
JP3417318B2 (en) Document creation management method and apparatus, and machine-readable recording medium recording program
JPH0651959A (en) Software installing method
JP4281066B2 (en) Digital content data processing apparatus and program
JPH0954688A (en) Gui design supporting method
JP2000339145A (en) Method and device for supporting program maintenance and recording medium
JPH09185499A (en) Method and device for generating interactive program
JPH1011514A (en) Table preparing method
JP3300156B2 (en) Recovery method in case of CAD system failure
JP2924767B2 (en) Automatic System Generation Method for Computer System
JPH02250166A (en) Information processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060331

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080926

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080930

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090303