Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH06110733A - Program test case generator - Google Patents
[go: Go Back, main page]

JPH06110733A - Program test case generator - Google Patents

Program test case generator

Info

Publication number
JPH06110733A
JPH06110733A JP4261117A JP26111792A JPH06110733A JP H06110733 A JPH06110733 A JP H06110733A JP 4261117 A JP4261117 A JP 4261117A JP 26111792 A JP26111792 A JP 26111792A JP H06110733 A JPH06110733 A JP H06110733A
Authority
JP
Japan
Prior art keywords
test
program
data
standard
input
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
JP4261117A
Other languages
Japanese (ja)
Inventor
Kiyouko Gotou
協子 後藤
Yosuke Morioka
洋介 森岡
Yukari Furuhata
由香理 降旗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP4261117A priority Critical patent/JPH06110733A/en
Publication of JPH06110733A publication Critical patent/JPH06110733A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

(57)【要約】 【目的】テストを実行するためのスクリプトファイルと
テストデータを自動生成することでプログラムのテスト
ケースを生成し、テストデバッグの信頼性、作業効率を
向上する。 【構成】プログラムの仕様書と、プログラムの処理形態
ごとに定義したスクリプトファイルの標準型を合成する
ことでテスト実行用スクリプトファイルを生成する機能
と、プログラムの仕様書とプログラムの処理形態ごとに
定義したテストケースの標準型からプログラムのテスト
ケースごとにテストデータを生成する機能からなる。
(57) [Summary] [Purpose] A test case of a program is generated by automatically generating a script file and test data for executing a test, and reliability of test debugging and work efficiency are improved. [Structure] A function to generate a script file for test execution by synthesizing a program specification and a standard type of a script file defined for each processing mode of the program, and a function specification and a definition for each processing mode of the program It consists of a function to generate test data for each test case of the program from the standard type of the test case.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はソフトウエアの信頼性と
生産性向上に係わり、特にプログラムの単体テストを実
施する際のテスト実行用スクリプトファイル及びテスト
データを自動生成する装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to reliability and productivity improvement of software, and more particularly to a device for automatically generating a test execution script file and test data when executing a unit test of a program.

【0002】[0002]

【従来の技術】テストデバッグ効率向上を図るための有
力な方法の一つとして、被テストソースプログラムよ
り、テストデバッグ支援用プログラムの入力となるテス
ト実行用スクリプトファイル(以下、ファイルの内容を
テストコマンドと称する)を生成する機能がある。この
テストコマンド生成機能は、完成したソースプログラム
を入力し、プログラムの実行や中断の指示情報並びに、
プログラム中で使用している項目とレコード名を洗いだ
し、テストコマンド中にその項目に対して長さとタイプ
に合致したデータを生成してテスト時の入力データとす
るものである。この方法は項目名や段落名が被テスト対
象のプログラムの内容に準じたテストコマンドを作ると
いう点で有効な方法である。以上記述した従来技術につ
いては、日立製作所の『プログラムプロダクトVOS3
システム開発支援EAGLE2COBOL編』マニュア
ル(6180-3-811)の第62頁〜第76頁に記載されてい
る。
2. Description of the Related Art As one of the effective methods for improving the test debug efficiency, a test execution script file (hereinafter, the contents of the file is referred to as the test command Called) is generated. This test command generation function inputs the completed source program, instruction information for program execution and interruption, and
The items and record names used in the program are identified, and data matching the length and type is generated for the items in the test command and used as the input data for the test. This method is effective in that the item names and paragraph names make the test command according to the contents of the program to be tested. For the conventional technology described above, refer to "Program Product VOS3" of Hitachi, Ltd.
System Development Support EAGLE2 COBOL Edition "manual (6180-3-811), page 62 to page 76.

【0003】プログラムのテスト実行用テストデータを
作成する手段として、テストデータ自動生成機能があ
る。このテストデータ自動生成機能は、データ仕様書を
検索し、プログラムで使用するデータ項目の長さとタイ
プに合致するある一定の規則性を持ったデータを生成す
る。この機能はレコードの各項目の内容がユニークなデ
ータを指定された数だけ自由に生成し、生成したテスト
データを編集するエディタを持つため、各テストケース
ごとの入力データを容易に生成できるという点で有効な
方法である。以上記述した従来技術については特開昭60
-200346号「プログラム用テストデータ作成方式」に記
載されている。
An automatic test data generation function is available as means for creating test execution test data for a program. This automatic test data generation function searches the data specifications and generates data with a certain regularity that matches the length and type of the data items used in the program. With this function, you can freely generate the specified number of unique data items in each record and have an editor that edits the generated test data, so you can easily generate the input data for each test case. Is an effective method. The prior art described above is disclosed in JP-A-60
-200346 No. "Test data generation method for programs".

【0004】[0004]

【発明が解決しようとする課題】従来の方法においては
以下のような課題がある。
The conventional method has the following problems.

【0005】従来技術における第1の課題は、テストの
実行方法にある。前述のテストコマンドを使用したプロ
グラムのテストデバッグでは、被テストプログラムの入
力項目への入力データの設定をテストコマンドの中で行
っていた。このため、プログラムのテストケースの数に
応じてテストコマンドを複数作成し、その内容を各テス
トケースに合わせて汎用のテキストエディタを用いて修
正する必要があり、テストデバッグの効率を低下させて
いた。
The first problem in the prior art lies in the test execution method. In the test debugging of the program using the above-mentioned test command, the input data is set in the input item of the program under test in the test command. For this reason, it is necessary to create multiple test commands according to the number of test cases in the program and modify the contents using a general-purpose text editor according to each test case, which reduces the efficiency of test debugging. .

【0006】従来技術における第2の課題は、テストコ
マンドの生成方法にある。前述のテストコマンド生成方
法による従来技術では、ソースプログラムから入出力フ
ァイル名やプログラム中で使用している項目名などを抽
出し、テストコマンド中にプログラムの入力情報として
展開し、その項目に対して機械的に入力条件を生成して
いた。この方法は、プログラムの構造や処理形態にかか
わらず、ただ項目名の属性に一致したデータを生成する
ため、プログラムの設計情報を反映させたテストコマン
ドが生成されない、およびソースコードのコーディング
が終了してからでないとテストコマンドを生成できない
という問題があった。
The second problem in the prior art is a method of generating a test command. In the conventional technology based on the test command generation method described above, the input / output file name and the item name used in the program are extracted from the source program, expanded as the input information of the program in the test command, and Input conditions were generated mechanically. This method simply generates data that matches the attributes of the item name, regardless of the structure and processing form of the program, so a test command that reflects the design information of the program is not generated, and the coding of the source code ends. There was a problem that the test command could not be generated until later.

【0007】このためテストデバッグ時に、テストコマ
ンド中に機械的に生成されたデータを、テストケース設
計段階においてテスト項目として机上で設定した入力条
件およびデータをもとに置き換えるという作業が発生
し、テストデバッグ時の入力テストデータの信頼性の妨
げとなっていた。
Therefore, at the time of test debugging, data generated mechanically in the test command is replaced based on input conditions and data set on the desk as test items in the test case designing stage. It was a hindrance to the reliability of the input test data during debugging.

【0008】本発明の第1の目的は入力テストデータと
テスト実行用のテストコマンドを分離することでテスト
コマンドを定型化し、テストケースに左右されないテス
ト実行用のスクリプトファイルを生成することにある。
A first object of the present invention is to standardize a test command by separating input test data and a test execution test command, and generate a script file for test execution independent of test cases.

【0009】本発明の第2の目的は、テストケース設計
時に設定するデータと実際にテストデバッグに用いるデ
ータの実体を同一にすることにある。
A second object of the present invention is to make the data set at the time of designing a test case and the substance of data actually used for test debugging the same.

【0010】[0010]

【課題を解決するための手段】第1の目的を達成するた
めに本発明では、プログラムの設計情報を有するプログ
ラム仕様書から、プログラムの名称とプログラムが扱う
入出力媒体の種別と名称と、プログラムの処理形態別に
分類し、汎用的に使用できるようにプログラムの骨組み
を決めた標準パターン名を検索する手段と、標準パター
ンの種類に応じて用意されているプログラムのテスト実
行用スクリプトファイルであるテストコマンドの標準型
から該当するテストコマンドパターンを検索する手段と
を持つことを特徴とする。
In order to achieve the first object, according to the present invention, the name of a program, the type and name of an input / output medium handled by the program, and the program are specified from a program specification having design information of the program. A method that searches for standard pattern names that classify the program structure so that it can be used universally by classifying them according to the processing mode of the program, and a test execution script file of the program that is prepared according to the type of standard pattern. It is characterized by having means for retrieving a corresponding test command pattern from a standard type of command.

【0011】第2の目的を達成するために本発明では、
プログラムの標準的なテストケースをプログラムの標準
パターンに応じて定義した標準プログラムチェックリス
トから、プログラムの機能に合致したテストケースを選
択する手段と、このテストケースから各テストケースご
とのチェック条件及び入出力データ数やキー項目を検索
する手段と、データ仕様書からプログラムのテストを行
うのに必要な入力データ項目の長さとタイプを検索する
手段と、データ項目の名称及び属性及び入出力データ数
から一定の規則性を持つテストデータを作成する手段を
持つことを特徴とする。
In order to achieve the second object of the present invention,
From the standard program checklist that defines the standard test cases of the program according to the standard pattern of the program, the means to select the test case that matches the function of the program, and the check conditions and the input conditions for each test case from this test case. From the means to retrieve the number of output data and key items, the means to retrieve the length and type of the input data items required to test the program from the data specifications, the names and attributes of the data items, and the number of input / output data It is characterized by having a means for creating test data having a certain regularity.

【0012】[0012]

【作用】第1の目的を達成するために本発明では、プロ
グラム仕様書より検索されたプログラムの標準パターン
名を基に、あらかじめ標準パターン別に定義された標準
的なテストコマンド部品から合致するテストコマンド部
品を選び、テストコマンドを生成することとした。ま
た、プログラム仕様書より検索された入出力媒体の種別
と名称を基にデータ仕様書から検索した入出力媒体のフ
ォーマットの情報等から、テストコマンド中で自動的に
実行時に入出力媒体を割当てることとした。これにより
各プログラム固有のテストケースに左右されないテスト
コマンドを生成することができるようになり、テストコ
マンドの修正量を減らすことができるため、テストデバ
ッグの効率を向上させ、従来技術の課題を解決できる。
In order to achieve the first object, according to the present invention, a test command that matches a standard test command part defined in advance for each standard pattern based on the standard pattern name of the program retrieved from the program specification It was decided to select a part and generate a test command. Also, based on the I / O medium type and name retrieved from the program specifications, the I / O medium format information retrieved from the data specifications can be used to automatically assign the I / O medium during execution in the test command. And As a result, it becomes possible to generate test commands that are not affected by the test cases unique to each program, and it is possible to reduce the amount of modification of test commands, thus improving the efficiency of test debugging and solving the problems of the conventional technology. .

【0013】第2の目的を達成するために本発明では、
上記テストコマンドの生成と同時に、データ仕様書より
検索された入出力媒体のフォーマットおよびそれに属す
るデータ項目名と、上記標準パターン別に定義された標
準的なプログラムチェックリストから検索された各テス
トケースに必要なレコードの数だけ、テストデータを生
成することとした。これにより、プログラムの設計情報
から必要なテストケースを認識し、これに対応したテス
トデータと、生成したテストデータを割り当ててテスト
を実行するためのテストコマンドを同時に生成すること
ができるようになるため、テストデバッグの効率とテス
トデータの信頼性を向上させ、従来技術の問題を解決で
きる。
In order to achieve the second object of the present invention,
Required for each test case retrieved from the standard program checklist defined for each standard pattern and the format of the input / output medium retrieved from the data specification and the data item name belonging to it, at the same time as the above test command generation We decided to generate test data for as many records as possible. This makes it possible to recognize the required test case from the design information of the program, and to generate the test data corresponding to this and the test command to execute the test by allocating the generated test data at the same time. , The efficiency of test debugging and the reliability of test data can be improved, and the problems of the prior art can be solved.

【0014】[0014]

【実施例】以下、本発明の実施例について図面を用いて
詳細に説明する。
Embodiments of the present invention will be described in detail below with reference to the drawings.

【0015】図1は本発明の実施例を実現するためのテ
ストケース生成装置(105)を中心とするシステムの
機能構成図である。プログラム仕様書ライブラリ(10
1)には複数のプログラム仕様書を格納する。プログラ
ム仕様書には、各プログラムに対応する標準パターンの
名称および入出力ファイル名、画面名、帳票名、論理装
置名が定義されている。データ仕様書ライブラリ(10
2)はファイルの定義情報を記したファイル仕様書、フ
ァイルのレコードレイアウトを定義したレコード仕様書
を格納する。本実施例の説明ではとりあげないが、この
他に画面レイアウトを定義した画面仕様書、および出力
帳票レイアウトを定義したバッチ帳票仕様書などもデー
タ仕様書ライブラリに格納する。標準テストコマンドパ
ターンライブラリ(103)は、プログラムの処理パタ
ーンに対応して定義したテストを実行するための標準的
なテストコマンドを格納しているライブラリである。標
準プログラムチェックリストライブラリ(104)は、
標準パターン名に応じて、そのプログラムのテストを行
うために必要最低限のテストケース(以下の例では3個
のテストケース)を定義した標準プログラムチェックリ
ストを格納するライブラリである。さらにテストコマン
ドライブラリ(106)には、テストケース生成装置
(105)が生成した目的のプログラムに準じたテスト
コマンドを格納し、テストデータファイル(107)に
は、標準テストケースに応じて生成したテストデータを
格納する。なお、図2は本発明を実現するための計算機
のハードウエア機器構成であり、図3は本発明の実施例
を実現するための処理手順を示すフローチャートであ
る。
FIG. 1 is a functional block diagram of a system centering on a test case generation device (105) for realizing an embodiment of the present invention. Program specification library (10
A plurality of program specifications are stored in 1). In the program specification, the name of the standard pattern corresponding to each program, the input / output file name, the screen name, the form name, and the logical device name are defined. Data specification library (10
2) stores a file specification describing the definition information of the file and a record specification defining the record layout of the file. Although not described in the description of the present embodiment, a screen specification that defines a screen layout and a batch form specification that defines an output form layout are also stored in the data specification library. The standard test command pattern library (103) is a library that stores standard test commands for executing the test defined corresponding to the processing pattern of the program. The standard program checklist library (104) is
It is a library that stores a standard program checklist that defines the minimum test cases (three test cases in the following example) necessary for testing the program according to the standard pattern name. Further, the test command library (106) stores a test command according to the target program generated by the test case generation device (105), and the test data file (107) stores a test generated according to the standard test case. Store the data. 2 is a hardware configuration of a computer for realizing the present invention, and FIG. 3 is a flowchart showing a processing procedure for realizing the embodiment of the present invention.

【0016】まず、図1,図2および図3を用いて実施
例におけるテストコマンド生成手順およびテストデータ
生成手順について説明する。
First, a test command generating procedure and a test data generating procedure in the embodiment will be described with reference to FIGS. 1, 2 and 3.

【0017】本実施例では、入力装置(205)および
表示装置(204)から処理対象プログラムの名称を入
力する(ステップ301)。テストケース生成装置(1
05)は、テストコマンドを生成する部分(ステップ3
06〜308)およびテストデータを生成する部分(ス
テップ302〜305)からなる。以下それぞれの部分
をテストコマンド生成ツール及びテストデータ生成ツー
ルと呼ぶ。
In the present embodiment, the name of the program to be processed is input from the input device (205) and the display device (204) (step 301). Test case generator (1
05) is the part that generates the test command (step 3).
06-308) and a portion for generating test data (steps 302-305). Hereinafter, each part is called a test command generation tool and a test data generation tool.

【0018】まずテストデータ生成ツールについて説明
する。標準テストケース取得ステップ(302)では、
外部記憶装置(206)上のプログラム仕様書(10
1)を検索して、プログラム仕様書に定義された該プロ
グラムの標準パターンに対応した標準テストケースを、
同じく外部記憶装置(206)上の標準プログラムチェ
ックリストライブラリ(104)から入力する。
First, the test data generation tool will be described. In the standard test case acquisition step (302),
Program specifications (10) on the external storage device (206)
1) is searched for a standard test case corresponding to the standard pattern of the program defined in the program specification,
Similarly, it is input from the standard program checklist library (104) on the external storage device (206).

【0019】図4は標準プログラムチェックリストの例
である。本例はファイルの追加更新を行う処理の標準パ
ターンであり、このパターンは2つのシーケンシャルな
入力ファイルを読み込んで、マスタファイルの内容を追
加更新する処理を行うプログラムで使用する。各パター
ンには1つ以上のテストケースが定義してあり、各テス
トケース(401、402、403)ごとのレコード数
(404)やキー情報(405)並びにそのテストケー
スでチェックすべき確認項目(406)を有する。
FIG. 4 is an example of a standard program checklist. This example is a standard pattern of processing for performing additional update of a file, and this pattern is used in a program for performing processing of reading two sequential input files and additionally updating the contents of the master file. One or more test cases are defined in each pattern, and the number of records (404) and key information (405) for each test case (401, 402, 403) and confirmation items to be checked in that test case ( 406).

【0020】図2に戻りテストデータ生成ステップ(3
03)では、該プログラムのプログラム仕様書に定義さ
れているファイル仕様書名をもとにデータ仕様書ライブ
ラリ(102)を検索し、該データ仕様書ライブラリ中
のファイル仕様書、並びにレコード仕様書より標準プロ
グラムチェックリスト中のテストケースに指定された各
テストケースごとのレコード数に応じてテストデータを
生成する。
Returning to FIG. 2, the test data generation step (3
In 03), the data specification library (102) is searched based on the file specification name defined in the program specification of the program, and the file specification in the data specification library and the record specification are used as standard. Generate test data according to the number of records for each test case specified in the test case in the program checklist.

【0021】図5はテストデータの生成方法を示す図で
ある。テストデータ生成ツールはプログラム仕様書(7
04)より入力ファイル仕様書名(505)を読み込
み、さらに該ファイル仕様書(708)中のレコード仕
様名(506)をもとに、レコード仕様書(507)を
読み込む。レコード仕様書上には該プログラムで使用す
るデータ項目の名称(508)、桁数・タイプ(50
9)などが定義されており、これをもとに、個々のデー
タ項目のタイプ・桁数に合致したテストデータを生成す
る。このテストデータに、さらに標準パターン名(70
6)から選択した標準プログラムチェックリスト(50
1)より読み込んだ1件目のテストケースで必要とする
入力レコード数(404)やキー情報(502)に応じ
たテストデータをテストデータファイル(503,50
4)に生成する。このとき、テストデータを出力するフ
ァイル名はテストコマンド生成ツールにおいて、入力デ
ータセット名称に反映される。
FIG. 5 is a diagram showing a method of generating test data. The test data generation tool is the program specification (7
04), the input file specification name (505) is read, and the record specification (507) is read based on the record specification name (506) in the file specification (708). The name of the data item (508), the number of digits, and the type (50
9) etc. are defined, and based on this, test data matching the type and number of digits of each data item is generated. In addition to this test data, the standard pattern name (70
Standard program checklist (50) selected from 6)
The test data corresponding to the number of input records (404) and key information (502) required in the first test case read from 1) is stored in the test data file (503, 50).
4). At this time, the file name for outputting the test data is reflected in the input data set name in the test command generation tool.

【0022】図2に戻りテストデータ出力ステップ(3
04)では、以上の処理により生成されたテストデータ
を、テストデータファイル(107)に出力する。この
際、プリンタ(202)を用いてこのファイルの内容を
紙に出力することも可能である。
Returning to FIG. 2, the test data output step (3
In 04), the test data generated by the above processing is output to the test data file (107). At this time, it is also possible to output the contents of this file on paper using the printer (202).

【0023】さらに、標準プログラムチェックリストに
定義されているテストケースが2つ以上であるときは、
以上のテストデータ生成〜出力処理をテストケースの数
だけ繰り返して行う(305)。
Further, when there are two or more test cases defined in the standard program checklist,
The above test data generation to output processing is repeated for the number of test cases (305).

【0024】次に、テストコマンド生成ツールについて
説明する。標準テストコマンドパターン取得ステップ
(306)では、外部記憶装置(206)上にあるプロ
グラム仕様書ライブラリ(101)を検索して、生成対
象の業務プログラムで使用する入出力媒体の標準パター
ン名を取得し、これに対応した標準テストコマンドパタ
ーンを標準テストコマンドパターンライブラリ(10
3)から入力する。
Next, the test command generation tool will be described. In the standard test command pattern acquisition step (306), the program specification library (101) on the external storage device (206) is searched to acquire the standard pattern name of the input / output medium used in the business program to be generated. , The standard test command pattern library (10
Input from 3).

【0025】図6は標準テストコマンドパターンの例を
示した図である。本例は入力ファイルが2つで出力ファ
イルが1つであるプログラムのテストコマンドパターン
である。各パターンは、定型化された入出力媒体の割当
て部分と個々のプログラムによって固有である可変部か
ら構成され、可変部としてはプログラム名(605)
と、入出力ファイルの論理装置名(601)やファイル
又はデータセットの実体名(602)、およびレコード
長(603)を有する。また情報(604)と情報(6
06)はそれぞれテストデバッグ支援用プログラムの実
行開始及び制御を指示する各プログラムで共通の部分で
ある。
FIG. 6 is a diagram showing an example of a standard test command pattern. This example is a test command pattern for a program having two input files and one output file. Each pattern is composed of a stylized input / output medium allocation part and a variable part that is unique to each program. The variable part is a program name (605).
And the logical unit name (601) of the input / output file, the entity name of the file or data set (602), and the record length (603). Also, information (604) and information (6
06) is a part common to each program for instructing the start and control of the test debug support program.

【0026】図2に戻りテストコマンド部品展開ステッ
プ(307)では、プログラム仕様書から該プログラム
固有の情報を取得することにより、目的とするテストコ
マンドを作成する。まず、プログラム仕様書に定義して
ある入出力ファイル仕様書の名称をもとにデータ仕様書
ライブラリ(102)を検索して、該データ仕様書ライ
ブラリ中のファイル仕様書から該ファイルのレコード形
式やレコード長などの定義情報入力を行い、テスト実行
時に該ファイルの割り当てを行うためのコマンドを生成
する。これをステップ(306)で入力したテストコマ
ンドの標準パターンに合成して、該プログラムを実行す
るためのテストコマンドを生成する。
Returning to FIG. 2, in the test command component developing step (307), the target test command is created by acquiring the information peculiar to the program from the program specification. First, the data specification library (102) is searched based on the name of the input / output file specification defined in the program specification, and the record format of the file and the file format in the data specification library are searched. Definition information such as record length is input, and a command for allocating the file is generated at the time of test execution. This is combined with the standard pattern of the test command input in step (306) to generate a test command for executing the program.

【0027】図7はテストコマンドとプログラム仕様書
との対応関係を示す図である。テストコマンド生成ツー
ルは、対応するプログラム仕様書の記載内容を検索し、
プログラム名や論理装置名をテストコマンドの標準パタ
ーン中に取り込むことによって、完全かつプログラムに
応じたテストコマンドを生成する。まず、プログラム仕
様書(704)からプログラムの標準パターン名(70
6)を取得し、それに合致したテストコマンドパターン
を選択した後、プログラム名(705)とそのプログラ
ム中で使用するファイルの論理装置名(707)を読み
込み、テストコマンドに実行対象プログラム名を指定す
るコマンド(703)と入出力ファイルの論理装置割当
てのコマンド(702)を生成する。さらに出力ファイ
ルについては該プログラム仕様書で定義したファイル仕
様書(708)を読み込み、該テストコマンドの入出力
ファイル割り当てのコマンドのレコード長(709)を
生成し、これをテストコマンドの標準パターン(70
1)に合成する。なお入力データセット名称(710)
はテストデータ生成ツールから渡されたテストデータを
出力するファイル名である。
FIG. 7 is a diagram showing the correspondence between test commands and program specifications. The test command generation tool searches the contents of the corresponding program specifications,
A complete and program-specific test command is generated by incorporating the program name and logical unit name into the standard pattern of the test command. First, the standard pattern name of the program (70
6) is obtained and a test command pattern that matches it is selected, then the program name (705) and the logical unit name (707) of the file used in the program are read, and the execution target program name is specified in the test command. A command (703) and a logical unit allocation command (702) for the input / output file are generated. Further, for the output file, the file specification (708) defined in the program specification is read, the record length (709) of the command of input / output file allocation of the test command is generated, and this is used as the standard pattern (70) of the test command.
Synthesize to 1). Input data set name (710)
Is the file name that outputs the test data passed from the test data generation tool.

【0028】テストコマンド出力ステップ(304)で
は、以上の処理により生成できた目的のテストコマンド
を外部記憶装置(206)上のテストコマンドライブラ
リ(106)に出力する。
In the test command output step (304), the target test command generated by the above processing is output to the test command library (106) on the external storage device (206).

【0029】なお、本例は出力先がファイルの場合を説
明したが、これを帳票に変えることもでき、この場合に
おいても本発明の範囲とする。
In this example, the case where the output destination is a file has been described, but this can be changed to a form, and in this case, it is within the scope of the present invention.

【0030】[0030]

【発明の効果】本発明は、以上に説明した処理手順を有
するので、以下に記載するような効果を有する。
Since the present invention has the processing procedure described above, it has the following effects.

【0031】プログラムの処理形態別に骨組みを決めた
標準パターン別にテストケースの標準型と、入出力割当
て部分を定型化したテストコマンドの標準型を定義し、
それらの標準型およびプログラムの各種仕様書から、設
計情報を反映したテストデータをテストケースごとに生
成し、かつ同時にテストデータと連動したテストコマン
ドを生成することによって、テストコマンドおよびテス
トデータの作成効率と信頼性がが向上し、ひいてはテス
トデバッグ作業の信頼性向上および効率の向上を図るこ
とができる。
The standard type of the test case and the standard type of the test command in which the input / output allocation part is standardized are defined for each standard pattern in which the framework is determined for each processing mode of the program.
Efficiency of creating test commands and test data by generating test data that reflects design information for each test case from the various specifications of those standard types and programs, and at the same time generating test commands that are linked to the test data. Therefore, reliability can be improved, which in turn can improve reliability and efficiency of test debugging work.

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

【図1】本発明の実施例を実現するためのシステムの機
能構成図である。
FIG. 1 is a functional configuration diagram of a system for realizing an embodiment of the present invention.

【図2】本発明を実現するための計算機のハードウエア
機器構成図である。
FIG. 2 is a hardware device configuration diagram of a computer for implementing the present invention.

【図3】実施例における処理手順を示す図である。FIG. 3 is a diagram showing a processing procedure in the embodiment.

【図4】標準プログラムチェックリストの例を示す図で
ある。
FIG. 4 is a diagram showing an example of a standard program check list.

【図5】テストデータの生成方法を示す図である。FIG. 5 is a diagram showing a method of generating test data.

【図6】標準テストコマンドパターンの例を示す図であ
る。
FIG. 6 is a diagram showing an example of a standard test command pattern.

【図7】テストコマンドの生成方法を示す図である。FIG. 7 is a diagram showing a method of generating a test command.

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

101…プログラム仕様書ライブラリ、102…データ仕様書
ライブラリ、103…標準テストコマンドライブラリ、104
…標準プログラムチェックリストライブラリ、105…テ
ストケース生成装置、106…テストコマンドライブラ
リ、107…テストデータファイル、503,504…テストデー
タファイル、505…入力ファイル仕様名、506…レコード
仕様名、507…レコード仕様書、704…プログラム仕様
書、705…プログラム名、706…標準パターン名、707…
論理装置名、708…ファイル仕様書
101 ... Program specification library, 102 ... Data specification library, 103 ... Standard test command library, 104
… Standard program check list library, 105… Test case generator, 106… Test command library, 107… Test data file, 503,504… Test data file, 505… Input file specification name, 506… Record specification name, 507… Record specification document , 704 ... Program specification, 705 ... Program name, 706 ... Standard pattern name, 707 ...
Logical device name, 708 ... File specifications

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】プログラムの名称、および前記プログラム
が扱う1つ以上の入出力媒体の名前を有するプログラム
仕様書と、前記入出力媒体のフォーマットおよびそれに
含まれるデータ項目を有するデータ仕様書と、プログラ
ムを処理形態別に分類し汎用的に使用できるようにプロ
グラムの骨組みを決めた標準パターンの種類に応じて用
意されたテストコマンドの標準型から前記プログラムの
入力テストデータ媒体や出力媒体の割当て及びテストを
実行する手順などを定義したテスト実行用のスクリプト
ファイルを生成する手段と、前記テストコマンドの生成
と同時に、前記プログラムの標準パターンに応じた標準
的なテストケースに対してテストケースごとの入力レコ
ードデータ数を定義した標準プログラムチェックリスト
と前記プログラム仕様書と前記データ仕様書とより、前
記テストケースで使用する1つ以上のテストデータファ
イルを生成する手段とを有することを特徴とするプログ
ラムのテストケース生成装置。
1. A program specification having a name of a program and names of at least one input / output medium handled by the program, a data specification having a format of the input / output medium and data items included therein, and the program. Allocate and test the input test data medium and output medium of the program from the standard type of test command prepared according to the type of standard pattern that determines the framework of the program by classifying the A means to generate a script file for test execution that defines the procedure to be executed, and at the same time as generating the test command, input record data for each test case for a standard test case according to the standard pattern of the program. Standard program checklist defining numbers and said program Like the term the more the data specifications, test case generation system program, characterized in that it comprises a means for generating one or more test data files to be used in the test case.
JP4261117A 1992-09-30 1992-09-30 Program test case generator Pending JPH06110733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4261117A JPH06110733A (en) 1992-09-30 1992-09-30 Program test case generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4261117A JPH06110733A (en) 1992-09-30 1992-09-30 Program test case generator

Publications (1)

Publication Number Publication Date
JPH06110733A true JPH06110733A (en) 1994-04-22

Family

ID=17357332

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4261117A Pending JPH06110733A (en) 1992-09-30 1992-09-30 Program test case generator

Country Status (1)

Country Link
JP (1) JPH06110733A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004030765A (en) * 2002-06-25 2004-01-29 Fujitsu Ltd Semiconductor memory device with built-in self-diagnosis function
KR100621574B1 (en) * 1999-07-07 2006-09-12 삼성전자주식회사 Test Driver Generation System for Embedded System Software Testing
KR100621573B1 (en) * 1999-07-07 2006-09-12 삼성전자주식회사 Systems and Methods for Testing Embedded System Software
KR100621576B1 (en) * 1999-07-07 2006-09-12 삼성전자주식회사 Systems and Methods for Testing Embedded System Software
JP2007066204A (en) * 2005-09-01 2007-03-15 Hitachi Software Eng Co Ltd Software development support system
JP2010539576A (en) * 2007-09-14 2010-12-16 エアバス オペレーションズ (エスアーエス) Method for automatic script generation for testing the validity of operational software of an airborne system and device for implementing the method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100621574B1 (en) * 1999-07-07 2006-09-12 삼성전자주식회사 Test Driver Generation System for Embedded System Software Testing
KR100621573B1 (en) * 1999-07-07 2006-09-12 삼성전자주식회사 Systems and Methods for Testing Embedded System Software
KR100621576B1 (en) * 1999-07-07 2006-09-12 삼성전자주식회사 Systems and Methods for Testing Embedded System Software
JP2004030765A (en) * 2002-06-25 2004-01-29 Fujitsu Ltd Semiconductor memory device with built-in self-diagnosis function
JP2007066204A (en) * 2005-09-01 2007-03-15 Hitachi Software Eng Co Ltd Software development support system
JP2010539576A (en) * 2007-09-14 2010-12-16 エアバス オペレーションズ (エスアーエス) Method for automatic script generation for testing the validity of operational software of an airborne system and device for implementing the method

Similar Documents

Publication Publication Date Title
US6651240B1 (en) Object-oriented software development support apparatus and development support method
US6243835B1 (en) Test specification generation system and storage medium storing a test specification generation program
JP2927180B2 (en) Debugging method of information processing program and debugger therefor
US5625801A (en) Method and apparatus for producing standardized software specifications and software products
JPH06110733A (en) Program test case generator
JP7462542B2 (en) Generation device and generation method
JPH0667871A (en) Automatic program updating system
US5553278A (en) Method and system for manipulation of database and issuing report thereof
JP3345522B2 (en) Program development support device using data item parts
JP3540241B2 (en) Application startup menu definition file generation device and application startup menu generation device
JPH11338686A (en) Program development support apparatus, program development support method, and recording medium recording program development support program
US20060107202A1 (en) System and method for information encapsulation for providing multiple deliverable formats from one information source
JP2820184B2 (en) Load module unit test support device
JPH04172529A (en) Automatic program generation method using data-centric software components
Harandi et al. Software design using reusable algorithm abstractions
JPH05134856A (en) Program automatic generation method
JP2010218496A (en) Method and program for testing application program and recording medium
JP2000347907A (en) Automatic data file converting device
JPH11154093A (en) Program Compiler and Recording Medium Recording Compiler Program
JPS60200346A (en) Production of program test data
JPH05274126A (en) Program synthesis system
JP3305782B2 (en) Software standardization method and software product analysis method
JPS6310239A (en) High-level language patch generation method
JPH1040082A (en) Manufacturing process management method and management device
JPH0991173A (en) Program execution history display method