JPH0243638A - Driver for program test - Google Patents

Driver for program test

Info

Publication number
JPH0243638A
JPH0243638A JP63195546A JP19554688A JPH0243638A JP H0243638 A JPH0243638 A JP H0243638A JP 63195546 A JP63195546 A JP 63195546A JP 19554688 A JP19554688 A JP 19554688A JP H0243638 A JPH0243638 A JP H0243638A
Authority
JP
Japan
Prior art keywords
program
test
tested
under test
parameter 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
JP63195546A
Other languages
Japanese (ja)
Inventor
Mineo Matsudaira
松平 峰雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Solution Innovators Ltd
Original Assignee
NEC Software Kyushu 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 NEC Software Kyushu Ltd filed Critical NEC Software Kyushu Ltd
Priority to JP63195546A priority Critical patent/JPH0243638A/en
Publication of JPH0243638A publication Critical patent/JPH0243638A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To decrease cost without preparing a driver and a stub for a program to be tested by providing a parameter data file. CONSTITUTION:A parameter data file 3 has respective program names of programs to be tested at a program name area 3-1, and respective parameter data of the programs to be tested are beforehand written in a parameter data area 3-2. The program to be tested reading executing part 1-3 of a driver 1 for a program test reads the test object program including the tested program selected by a tested program selecting part 1-1 at a test object program storing area 4, designates the selected program to be tested, operates with the parameter read by a parameter input part 1-2 and thus, the test of the selected program to be tested is executed. Thus, the driver and the stub are not necessary for the tested program.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラムテスト用ドライバに関し、特に種々
のプログラムのテストを実行させるプログラムテスト用
ドライバに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a program test driver, and more particularly to a program test driver for executing tests of various programs.

〔従来の技術〕[Conventional technology]

従来から、モジュール構造を有する業務プログラムの構
成要素であるプログラムのテスト方式として、ボトムア
ップテスト法と、トップダウンテスト法とがあるが、何
れの場合も、従来のプログラムテストは、必要なパラメ
ータデータを与えて被テストプログラムを実行させるド
ライバ、または被テストプログラムとのインターフェー
スを保つように作られたダミーモジュールであるスタブ
を、それぞれの被テストプログラムごとに作成して行わ
れている。
Traditionally, there are bottom-up testing methods and top-down testing methods as testing methods for programs that are components of business programs with a modular structure. This is done by creating a stub, which is a dummy module that maintains an interface with the program under test, for each program under test.

なお、このようなプログラムテストは、モジュール構造
を有する業務プログラム全体が未完成の状態でも、完成
した個々のプログラムを対象として個別に実施している
Note that such program testing is performed individually on each completed program even if the entire business program having a modular structure is not yet completed.

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

上述した従来のプログラムテストは、被テストプログラ
ムごとに、ドライバやスタブが必要となり、それらを作
成するために、それぞれ高いコストがかかるという欠点
がある。
The above-mentioned conventional program test has the disadvantage that a driver and a stub are required for each program under test, and creating these requires high costs.

また、従来のドライバやスタブは、主にプログラムの作
成中に個別に使用され、業務プログラム全体のためにま
とまっていないので、業務プログラム全体が完成した後
には、はとんど使用されないという問題点がある。
Another problem is that conventional drivers and stubs are mainly used individually during program creation and are not grouped together for the entire business program, so they are rarely used after the entire business program is completed. There is.

本発明の目的は、被テストプログラムごとにドライバや
スタブを作成することに比べて、まとめて低いコストで
作成して使用できるとともに、まとまった業務プログラ
ムの構成要素のそれぞれに対するテストができるので、
業務プログラム全体が完成した後にも、必要に応じてプ
ログラムテストを行って、容易に問題点の洗い出しを実
施できるプログラムテスト用ドライバを提供することに
ある。
An object of the present invention is that compared to creating a driver or stub for each program under test, it can be created and used at a lower cost, and it is possible to test each component of a business program.
To provide a program test driver capable of easily identifying problems by conducting a program test as necessary even after the entire business program is completed.

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

本発明のプログラムテスト用ドライバは、(A>入力装
置からプログラム名を入力して、そのプログラム名が示
す被テストプログラムを選定する被テストプログラム選
定部、 (B)被テストプログラムのそれぞれに対するテストに
必要なパラメータデータのそれぞれが、あらかじめ書込
まれたパラメータデータファイルから、前記被テストプ
ログラム選定部で選定された被テストプログラム用のパ
ラメータデータを読出すパラメータ入力部、(C)前記
被テストプログラム選定部で選定された被テストプログ
ラムを含むテスト対象プログラムをテスト対象プログラ
ム記憶城に読出し、選定された被テストプログラムを指
定して、前記パラメータ入力部で読出したパラメータデ
ータを使用して動作させることにより、選定された被テ
ストプログラムのテストを実行する被テストプログラム
読出し実行部、 (D>前記被テストプログラム読出し実行部で実行した
被テストプログラムのテスト結果情報を出力装置に出力
するテスト結果出力部、を備えて構成されている。
The program test driver of the present invention includes (A) a program under test selection section that inputs a program name from an input device and selects a program under test indicated by the program name; (C) a parameter input section for reading parameter data for the program under test selected by the program under test selection section from a parameter data file in which necessary parameter data is written in advance; (C) the program under test selection section; By reading out the test target program including the program under test selected by the section into the test target program storage, specifying the selected program under test, and operating it using the parameter data read out at the parameter input section. , a program under test reading execution unit that executes a test of the selected program under test; (D> a test result output unit that outputs test result information of the program under test executed by the program under test reading execution unit to an output device; It is configured with.

〔実施例〕〔Example〕

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

第1図は本発明のプログラムテスト用ドライバの一実施
例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a program test driver of the present invention.

第1図に示すように、プログラムテスト用ドライバ1の
被テストプログラム選定部1−1は、入力装置2から、
モジュール構造を有する業務プログラムの構成要素であ
るプログラムのプログラム名を入力して、そのプログラ
ム名が示す被テストプログラムを選定している。
As shown in FIG. 1, the test program selection section 1-1 of the program test driver 1 receives
The program name of a program that is a component of a business program having a module structure is input, and the program to be tested indicated by the program name is selected.

第2図はモジュール構造を有する業務プログラムの構成
要素の一例を示すプログラム構成図である。
FIG. 2 is a program configuration diagram showing an example of the constituent elements of a business program having a module structure.

第2図に示すように、業務プログラム6は、モジュール
構造の最上位であるレベル−〇にメインプログラムMを
有し、次のレベル−1にサブプログラムA、Bを有し、
最下位のレベル−2にサブプログラムC,D、Eを有し
ている。
As shown in FIG. 2, the business program 6 has a main program M at level -0, which is the highest level of the module structure, and subprograms A and B at the next level -1.
It has subprograms C, D, and E at the lowest level-2.

また、プログラムテスト用ドライバ1のパラメータ入力
部1−2は、被テストプログラムのそれぞれに対するテ
ストに必要なパラメータデータのそれぞれが、あらかじ
め書込まれたパラメータデータファイル3から、被テス
トプログラム選定部1−1で選定された被テストプログ
ラム用のパラメータデータを読出している。
Further, the parameter input unit 1-2 of the program test driver 1 inputs parameter data necessary for testing each of the programs under test from the parameter data file 3 written in advance. Parameter data for the program under test selected in step 1 is being read.

第3図はパラメータデータファイルの内容の−例を示す
データ構成図である。
FIG. 3 is a data configuration diagram showing an example of the contents of a parameter data file.

第3図に示すように、パラメータデータファイル3は、
プログラム名領域3−1に被テストプログラムのそれぞ
れのプログラム名を有し、パラメータデータ領域3−2
に被テストプログラムのそれぞれのパラメータデータを
あらかじめ書込まれている。
As shown in FIG. 3, the parameter data file 3 is
The program name area 3-1 has each program name of the program under test, and the parameter data area 3-2
Each parameter data of the program under test is written in advance.

そこで、プログラムテスト用ドライバ1の被テストプロ
グラム読出し実行部1−3は、被テストプログラム選定
部1−1で選定された被テストプログラムを含むテスト
対象プログラムをテスト対象プログラム記憶城4に読出
し、選定された被テストプログラムを指定して、パラメ
ータ入力部1−2で続出したパラメータデータを使用し
て動作させることにより、選定された被テストプログラ
ムのテストを実行している。
Therefore, the program under test read execution section 1-3 of the program test driver 1 reads out the program under test including the program under test selected by the program under test selection section 1-1 into the program under test storage 4, and selects the program under test. By specifying the selected program under test and operating it using the parameter data successively inputted from the parameter input section 1-2, the selected program under test is tested.

第4図は被テストプログラム読出し実行部の動作の一例
を示す動作説明図である。
FIG. 4 is an operational explanatory diagram showing an example of the operation of the program under test reading execution section.

第4図に示すように、被テストプログラム読出し実行部
1−3が、CALL  A−パラメータにより、サブプ
ログラムAを指定して動作させたときには、サブプログ
ラムAがサブプログラムCも呼出して実行している。
As shown in FIG. 4, when the program under test reading execution unit 1-3 specifies and operates subprogram A using the CALL A-parameter, subprogram A also calls and executes subprogram C. There is.

また、被テストプログラム読出し実行部1−3が、CA
LL  B−パラメータにより、サブプログラムBを指
定して動作させたときには、サブプログラムBがサブプ
ログラムD、Eも呼出して実行している。
Further, the program under test reading execution unit 1-3 performs CA
When subprogram B is designated and operated using the LL B-parameter, subprogram B also calls and executes subprograms D and E.

一方、被テストプログラム読出し実行部1−3が、それ
ぞれCALL  C−パラメータ。
On the other hand, the program under test reading execution units 1-3 each CALL C-parameter.

CALL  D−パラメータ、CALL  E−パラメ
ータにより、それぞれサブプログラムC,D。
Subprograms C and D are created by CALL D-parameter and CALL E-parameter, respectively.

Eを指定して動作させたときには、それぞれサブプログ
ラムC,D、Eだけを実行している。
When E is specified and operated, only subprograms C, D, and E are executed.

この結果、プログラムテスト用ドライバ1のテスト結果
出力部1−4は、被テストプログラム読出し実行部1−
3で実行した被テストプログラムのテスト結果情報を出
力部7!L5に出力している。
As a result, the test result output section 1-4 of the program test driver 1 outputs the program under test reading execution section 1-4.
The test result information of the program under test executed in step 3 is output to the output unit 7! It is output to L5.

以上述べたように、本実施例のプログラムテスト用ドラ
イバは、被テストプログラムごとにドライバやスタブを
作成することに比べて、まとめて低いコストで作成して
使用できるとともに、まとまった業務プログラムの構成
要素のそれぞれに対するテストができるので、業務プロ
グラム全体が完成した後にも、必要に応じてプログラム
テストを行って、容易に問題点の洗い出しを実施できる
As described above, the program test driver of this embodiment can be created and used at a lower cost than creating a driver or stub for each program under test, and can be used to construct a unified business program. Since each element can be tested, even after the entire business program is completed, program tests can be performed as needed to easily identify problems.

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

以上説明したように、本発明のプログラムテスト用ドラ
イバは、被テストプログラムごとにドライバやスタブを
作成することに比べて、まとめて低いコストで作成して
使用できるとともに、まとまった業務プログラムの構成
要素のそれぞれに対するテストができるので、業務プロ
グラム全体が完成した後にも、必要に応じてプログラム
テストを行って、容易に問題点の洗い出しを実施できる
という効果を有している。
As explained above, the program test driver of the present invention can be created and used at a lower cost than creating a driver or stub for each program under test, and can be used as a component of a unified business program. Since tests can be carried out for each of the above, even after the entire business program is completed, program tests can be carried out as needed to easily identify problems.

第1図は本発明のプログラムテスト用ドライバの一実施
例を示すブロック図、第2図はモジュール構造を有する
業務プログラムの構成要素の一例を示すプログラム構成
図、第3図はパラメータデータファイルの内容の一例を
示すデータ構成図、第4図は被テストプログラム読出し
実行部の動作の一例を示す動作説明図である。
Fig. 1 is a block diagram showing an embodiment of the program test driver of the present invention, Fig. 2 is a program configuration diagram showing an example of the constituent elements of a business program having a module structure, and Fig. 3 is the content of the parameter data file. FIG. 4 is an operation explanatory diagram showing an example of the operation of the program-under-test reading execution unit.

1・・・・・・プログラムテスト用ドライバ、1−1・
・・・・・被テストプログラム選定部、1−2・・・・
・・パラメータ入力部、1−3・・・・・・被テストプ
ログラム読出し実行部、1−4・・・・・・テスト結果
出力部、2・・・・・・入力装置、3・・・・・・パラ
メータデータファイル、3−1・・・・・・プログラム
名領域、3−2・・・・・・パラメータデータ領域、4
・・・・・・テスト対象プログラム記憶城、5・・・・
・・出力装置、6・・・・・・業務プログラム、A、B
、C,D、E・・・・・・サブプログラム、M・・・・
・・メインプログラム。
1... Driver for program test, 1-1.
...Program under test selection section, 1-2...
...Parameter input section, 1-3...Test program reading execution section, 1-4...Test result output section, 2...Input device, 3... ...Parameter data file, 3-1...Program name area, 3-2...Parameter data area, 4
... Test target program memory castle, 5...
...Output device, 6...Business program, A, B
, C, D, E... Subprogram, M...
...Main program.

Claims (1)

【特許請求の範囲】 (A)入力装置からプログラム名を入力して、そのプロ
グラム名が示す被テストプログラムを選定する被テスト
プログラム選定部、 (B)被テストプログラムのそれぞれに対するテストに
必要なパラメータデータのそれぞれ が、あらかじめ書込まれたパラメータデータファイルか
ら、前記被テストプログラム選定部で選定された被テス
トプログラム用のパラメータデータを読出すパラメータ
入力部、 (C)前記被テストプログラム選定部で選定された被テ
ストプログラムを含むテスト対象プログラムをテスト対
象プログラム記憶城に読出し、選定された被テストプロ
グラムを指定して、前記パラメータ入力部で読出したパ
ラ メータデータを使用して動作させることにより、選定さ
れた被テストプログラムのテストを実行する被テストプ
ログラム読出し実行 部、 (D)前記被テストプログラム読出し実行部で実行した
被テストプログラムのテスト結果情報を出力装置に出力
するテスト結果出力部、 を備えることを特徴とするプログラムテスト用ドライバ
[Claims] (A) A program to be tested selection unit that inputs a program name from an input device and selects a program to be tested indicated by the program name; (B) Parameters necessary for testing each of the programs to be tested. (C) a parameter input section for reading out parameter data for the program under test selected by the program under test selection section from a parameter data file written in advance; The program under test including the selected program under test is read into the test target program memory, the selected program under test is specified, and the selected program is operated using the parameter data read out in the parameter input section. (D) a test result output unit that outputs test result information of the program under test executed by the program under test read execution unit to an output device; A program test driver featuring:
JP63195546A 1988-08-04 1988-08-04 Driver for program test Pending JPH0243638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63195546A JPH0243638A (en) 1988-08-04 1988-08-04 Driver for program test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63195546A JPH0243638A (en) 1988-08-04 1988-08-04 Driver for program test

Publications (1)

Publication Number Publication Date
JPH0243638A true JPH0243638A (en) 1990-02-14

Family

ID=16342899

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63195546A Pending JPH0243638A (en) 1988-08-04 1988-08-04 Driver for program test

Country Status (1)

Country Link
JP (1) JPH0243638A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018061395A (en) * 2016-10-07 2018-04-12 三菱電機株式会社 Automatic test equipment and automatic test program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018061395A (en) * 2016-10-07 2018-04-12 三菱電機株式会社 Automatic test equipment and automatic test program

Similar Documents

Publication Publication Date Title
JPH096628A (en) Parallel processing procedure selection device and method
JPH0243638A (en) Driver for program test
JP2720768B2 (en) Program customization equipment
JPH03271949A (en) Automatic generation system for test environment of program test
JP2820184B2 (en) Load module unit test support device
JPH0546377A (en) Control program creation method and creation apparatus thereof
JPH05241890A (en) Data trace system
JPH03130839A (en) On-line simulation system
JPS6261130A (en) Automatic graphic display system for test coverage
JPS63201740A (en) Data editing system for service processor
JPH10187611A (en) Job schedule change processing method
JPS62135958A (en) Simulation system
JPS6344240A (en) Program processing control system
JPS63131238A (en) Logic simulator
JPH03129535A (en) Collecting volume optimizing system for debugging information
JPH04119436A (en) Generalizing method for control program in automatic test system
JPH01283649A (en) Automatic software inspecting instrument
JPH0236433A (en) System for outputting information common/inherent to software debug
JPH04229343A (en) Memory contents display system in interactive debugger
JPH0264744A (en) Fault analyzing information acquiring system
JPH09138756A (en) Test method and test system using interpreter
JPH0362238A (en) Back-up system for decision of file capacity
JPH0210430A (en) Online program generating system
JPH03129537A (en) Microprogram test coverage method
JPS62216036A (en) Program deciding system