JPH02135548A - Test processing system for program - Google Patents

Test processing system for program

Info

Publication number
JPH02135548A
JPH02135548A JP63289682A JP28968288A JPH02135548A JP H02135548 A JPH02135548 A JP H02135548A JP 63289682 A JP63289682 A JP 63289682A JP 28968288 A JP28968288 A JP 28968288A JP H02135548 A JPH02135548 A JP H02135548A
Authority
JP
Japan
Prior art keywords
data
program
test
definition information
function
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
JP63289682A
Other languages
Japanese (ja)
Inventor
Kunikazu Takahashi
高橋 邦和
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP63289682A priority Critical patent/JPH02135548A/en
Publication of JPH02135548A publication Critical patent/JPH02135548A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To make efficient a test processing system by storing definition information concerning the respective data format of plural interfaces, referring to it with a function, referring to the corresponding definition information with the function when the information is accessed with a test program, and developing processing objective data on a memory. CONSTITUTION:A definition information file 8 in the respective data formats of the plural interfaces of a tested program 1 is prepared, and a data processing function 7 commonly corresponding to the types of the interface processing is prepared. The data processing function 7 delivers a parameter to designate the data format to a file access function 9, the file access function 9 retrieves the target definition information from the definition information file 8 according to the parameter, the data processing function 7 interpretes the definition information, and processes the data received from the tested program 1. Thus, the interface of the tested program can be flexibly added and altered, and the efficient system can be obtained.

Description

【発明の詳細な説明】 〔概要〕 本発明はプログラムのテスト処理システムにおける異な
るデータ形式をもつインタフェースデータの処理に藺し
DETAILED DESCRIPTION OF THE INVENTION [Summary] The present invention is directed to the processing of interface data having different data formats in a program test processing system.

被テストプログラムのインタフェースの追加。Addition of interface for the program under test.

変更に柔軟に対応でき、プログラム規模も比較的小さい
効率的なテスト処理システムを提供することを目的とし
The purpose is to provide an efficient test processing system that can flexibly respond to changes and has a relatively small program size.

被テストプログラムの各インタフェースの異なるデータ
形式についての定義情報を格納した定義情報ファイルと
、被テストプログラムに結合されて被テストプログラム
との間でデータを送受信するテストプログラムと、テス
トプログラムにより呼び出されて、テストプログラムが
被テストブロダラムから受信したデータについて表示、
応答等の指定された処理を行うデータ処理関数とをそな
え、上記データ処理関数は、処理すべきデータのデータ
形式についての定義情報を定義情報ファイルから得て対
応するデータ形式で処理する構成をもつ。
A definition information file that stores definition information about the different data formats of each interface of the program under test, a test program that is connected to the program under test and sends and receives data to and from the program under test, and a file that is called by the test program. , displays the data that the test program receives from the tested program,
A data processing function that performs specified processing such as a response is provided, and the data processing function has a configuration that obtains definition information about the data format of the data to be processed from a definition information file and processes it in the corresponding data format. .

〔産業上の利用分野〕[Industrial application field]

本発明は、プログラムのテスト処理システムに関するも
のであり、特に異なるデータ形式による複数のインタフ
ェースをもつプログラムのテストのために、各異なるデ
ータ形式に対応するインタフェース情報をファイル管理
して、任意のインタフェースのデータを処理できるプロ
グラムのテスト処理システムに関する。
The present invention relates to a program test processing system, and in particular, for testing programs having multiple interfaces using different data formats, interface information corresponding to each different data format is managed in a file, and any interface information can be This invention relates to a test processing system for programs capable of processing data.

〔従来の技術〕[Conventional technology]

第4図に、従来のプログラムのテスト処理システムの構
成を示す。
FIG. 4 shows the configuration of a conventional program test processing system.

第4図において、1は被テストプログラムであり、実行
時に異なるインタフェースのデータ■/Fl、I/F2
.I/F3.I/FXを送信する。
In Fig. 4, 1 is the program under test, and during execution, data of different interfaces ■/Fl, I/F2
.. I/F3. Send I/FX.

2はテスト処理を実行するテストプログラムである。2 is a test program that executes test processing.

3、  疹、5.6はそれぞれ異なるインタフェースの
データI/Fl、I/F2.I/F3.I/FXを処理
するためにテストプログラム2から呼び出されるサブル
ーチンであり、ここでは処理関数と呼ばれる。
3. 5.6 is the data of different interfaces I/Fl, I/F2. I/F3. This is a subroutine called by the test program 2 to process I/FX, and is called a processing function here.

被テストプログラム1は、たとえば開発された。The program under test 1 has been developed, for example.

プログラムであり、データ形式が異なっている複数のイ
ンタフェースをもち、テスト実行時に、それぞれのイン
タフェースのデータ形式にしたがったデータI/F1.
I/F2.I/F3.I/FX(以後総称してI / 
F nで表す)を送信する。
The program is a program that has multiple interfaces with different data formats, and when a test is executed, the data I/F1.
I/F2. I/F3. I/FX (hereinafter collectively referred to as I/FX)
F (denoted as n) is transmitted.

ここでデータ形式とは、転送データのデータ構造あるい
はデータフォーマントをいい、たとえば複数のデータ項
目を含むデータにおいて2個々のデータ項目の有無やそ
のデータ長についての指定の集合を意味している。ここ
で被テストプログラム1は、複数のデータ形式の異なる
端末あるいは■10装置との間でデータを送受信する機
能をもつものとされる。
Here, the data format refers to the data structure or data format of transfer data, and means, for example, a set of specifications regarding the presence or absence of two individual data items and their data length in data including a plurality of data items. Here, the program under test 1 is assumed to have a function of transmitting and receiving data to and from a plurality of terminals or devices having different data formats.

テスト処理中に被テストプログラム1が送信したデータ
は、全てテストプログラム2に渡される。
All data sent by the program under test 1 during the test process is passed to the test program 2.

テストプログラム2は、受は取ったデータのインタフェ
ース種別を識別すると、そのデータを処理するために用
意されている特定の処理関数(サブルーチン)を呼び出
す、たとえばデータI/F1に対してはI/Fl処理関
数3を呼び出し、処理を依鯨する。
When the test program 2 identifies the interface type of the received data, it calls a specific processing function (subroutine) prepared for processing that data.For example, for data I/F1, the test program 2 calls the I/F1 Call processing function 3 and start processing.

呼び出されたI/Fl処理関数3はデータ■/F1につ
いて指定されている表示処理、応答(入力)処理などの
シミュレーションを実行する。これにより1種々のイン
タフェースをもつ端末を実際に接続することなしにプロ
グラムのテストが可能にされる。
The called I/Fl processing function 3 executes simulation of display processing, response (input) processing, etc. specified for data ①/F1. This allows testing of programs without actually connecting terminals with various interfaces.

従来のテスト処理システムでは、インタフェースのデー
タ形式の種類ごとに別の処理関数を用意し、それぞれの
処理関数により被テストプログラムが送信したデータを
、そのインタフェースに固有のデータ形式にしたがって
メモリ上に展開していた。
In conventional test processing systems, separate processing functions are prepared for each type of interface data format, and each processing function expands the data sent by the program under test into memory according to the data format specific to that interface. Was.

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

従来のテスト処理システムでは、データ形式の異なる複
数のインタフェースをもつプログラムをテストする場合
、各インタフェースごとにそのデータを処理するために
最低1つの関数(サブルーチン)を用意しなければなら
ず、各関数での処理が重複し、テスト処理システムのプ
ログラム規模が大きくなって開発工数も多くなるという
問題があった。またプログラムのインタフェースが追加
あるいは変更されれば、対応する関数の追加あるいは変
更が必要になり、プログラム修正の影響を大きく受ける
ため、テスト処理システムの汎用性が低いという問題も
あった。
In conventional test processing systems, when testing a program that has multiple interfaces with different data formats, at least one function (subroutine) must be prepared for each interface to process the data, and each function There was a problem in that the processing in the test processing system was duplicated, the program scale of the test processing system became large, and the number of development steps increased. Furthermore, if a program interface is added or changed, a corresponding function must be added or changed, and the test processing system is greatly affected by program modifications, resulting in a problem that the test processing system has low versatility.

本発明は、被テストプログラムのインタフニー・スの追
加、変更に柔軟に対応でき、プログラム規模も比較的小
さい効率的なテスト処理システムを提供することを目的
とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide an efficient test processing system that can flexibly respond to additions and changes to interfaces of a program under test and has a relatively small program scale.

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

本発明は、複数のインタフェースの各データ形式に関す
る定義情報をファイルに格納して関数により参照可能に
し、関数は、テストプログラムから呼び出されたときに
該当するインタフェースの定義情報を参照し、それに基
づいて処理対象データをメモリ上に展開するものである
。この結果。
In the present invention, definition information regarding each data format of a plurality of interfaces is stored in a file so that it can be referenced by a function, and when the function is called from a test program, the function refers to the definition information of the corresponding interface and performs processing based on the definition information. It expands the data to be processed onto memory. As a result.

関数は各インタフェースに対して共通化することができ
る。
Functions can be made common to each interface.

第1図は9本発明の原理構成図である。FIG. 1 is a diagram showing the basic configuration of the present invention.

第1図において。In FIG.

■は、異なるデータ形式の複数のインタフェースをもつ
被テストプログラムである。
(2) is a program under test that has multiple interfaces with different data formats.

2は、被テストプログラムlに結合されてテスト処理を
行うテストプログラムである。
2 is a test program that is coupled to the program under test l to perform test processing.

7は、テストプログラム2により呼び出されて。7 is called by test program 2.

インタフェースデータを処理する複数のインタフェース
に共通のサブルーチンのデータ処理関数である。
This is a data processing function of a subroutine common to multiple interfaces that processes interface data.

8は、複数のインクフェースの各異なるデータ形式につ
いての定義情報を格納した定義情報ファイルである。
8 is a definition information file that stores definition information for each different data format of a plurality of ink faces.

9は7データ処理関数7により呼び出されて定義1冑報
フアイル8から8亥当するインタフェースのデータ形式
の定義情報を検索するサブルーチンのファイルアクセス
関数である。
Reference numeral 9 denotes a file access function of a subroutine called by the data processing function 7 to retrieve definition information of the data format of the corresponding interface from the definition 1 report file 8 to 8.

データ処理関数7は、被テストプログラム1がら受は取
っ′たデータのデータ形式を指定するパラ。
The data processing function 7 is a parameter that specifies the data format of data received from the program under test 1.

メータをファイルアクセス関数9に渡して検索を依願す
る。ファイルアクセス関数9は、そのパラメータにした
がって定義情報ファイル8がら目的の定義情報を検索し
、データ処理関数7に渡す。
The meter is passed to the file access function 9 to request a search. The file access function 9 searches the definition information file 8 for target definition information according to the parameters, and passes it to the data processing function 7.

データ処理関数7は、その定義情報を解釈して。The data processing function 7 interprets the definition information.

それに基づき被テストプログラムから受は取ったデータ
を処理する。
Based on this, the data received from the program under test is processed.

〔作用〕[Effect]

第1図に示すように本発明によれば、被テストプログラ
ムの複数のインタフェースのデータ形式が異なっている
場合、それらの各データ形式の定義情報により予め定義
情報ファイル8を作成しておき、またデータ処理関数7
として1表示、応答などのインタフェース処理の種別に
応じたものを共通に用意しておくことにより、任意のデ
ータ形式のインタフェースに簡単に対応することができ
る。
As shown in FIG. 1, according to the present invention, when the data formats of a plurality of interfaces of a program under test are different, a definition information file 8 is created in advance from definition information of each of those data formats, and Data processing function 7
By preparing a common interface corresponding to the type of interface processing such as display and response, it is possible to easily support an interface of any data format.

第1図において、被テストプログラムlは4種類のデー
タ形式をもつデータI/Fl、I/F2゜1/F3.l
/FXを実行中に送信する。テストプログラム2はそれ
らのデータを受は取ると、処理のためにデータ処理関数
7を呼び出す。
In FIG. 1, the program under test l has four types of data formats: I/F1, I/F2゜1/F3. l
/Send while executing FX. When the test program 2 receives these data, it calls the data processing function 7 for processing.

データ処理関数7は、それらのデータ(1/F1、I/
F2.I/F3.I/FX)のデータ形式を指定するパ
ラメータをファイルアクセス関数9に渡し、対応する定
義情報を得て、データを処理し、テストプログラム2に
制御を戻す。
The data processing function 7 processes those data (1/F1, I/
F2. I/F3. A parameter specifying the data format of the I/FX) is passed to the file access function 9, the corresponding definition information is obtained, the data is processed, and control is returned to the test program 2.

インタフェースの追加、変更があった場合は。If there are any additions or changes to the interface.

定義情報ファイル8の内容の追加、変更で対処すること
ができる。
This can be dealt with by adding or changing the contents of the definition information file 8.

〔実施例〕〔Example〕

第2図および第3図により本発明の詳細な説明する。 The present invention will be explained in detail with reference to FIGS. 2 and 3.

第2図は、定義情報ファイル8の構成を示したものであ
る。各インタフェースのデータI/F11/F2.・・
・・・・、I/Fnのデータ形式を示す定義情報は、そ
れぞれI/F 1識別子、I/F2識別子、・・・・・
・’、1/Fn識別子をキーとして管理さ、れており、
それぞれ個別の定義データとしてデータ1ないしデータ
nを含む。
FIG. 2 shows the structure of the definition information file 8. Data I/F11/F2 of each interface.・・・
..., definition information indicating the data format of I/Fn is I/F 1 identifier, I/F 2 identifier, ...
・', is managed using the 1/Fn identifier as a key,
Each includes data 1 to data n as individual definition data.

第3図は本発明実施例の動作説明図である。なお第3図
に示されている各要素は第1図に示されているものと同
じである。また図中の■ないし■は動作手順を示す。
FIG. 3 is an explanatory diagram of the operation of the embodiment of the present invention. Note that each element shown in FIG. 3 is the same as that shown in FIG. 1. Also, ■ to ■ in the figure indicate operating procedures.

まず被テストプログラム1が、実行中に■でデータを送
イ3すると、■でテストプログラム2がそのデータを受
信する。
First, when the program under test 1 sends data (3) during execution, the test program 2 receives the data (3).

テストプログラム2は、■でデータ処理関数7を呼び出
し、受信データを渡す、データ処理関数7は、■で受信
データの識別子をパラメータとしてファイルアクセス関
数9を呼び出し、定義情報ファイル8を検索させる。
The test program 2 calls the data processing function 7 at (2) and passes the received data.The data processing function 7 calls the file access function 9 at (2) with the identifier of the received data as a parameter to search the definition information file 8.

ファイルアクセス関数9は、検索結果の定義情報を■で
データ処理間数7に返す、データ処理関数7はその定義
情報にしたがって受信データを図示されていないメモリ
上に展開し、■でデータ表示を行う、その結果テスト者
からのデータ入力があると、■で応答処理を行い、テス
トプログラムに応答データを返す。
The file access function 9 returns the definition information of the search result to the data processing unit 7 in ■.The data processing function 7 expands the received data in a memory (not shown) according to the definition information, and displays the data in ■. As a result, when data is input from the tester, response processing is performed in step 3, and the response data is returned to the test program.

テストプログラム2は、その応答データを、■で被テス
トプログラム1に送信し、被テストプログラム1は応答
データを受信して処理を続行する。
The test program 2 transmits the response data to the program under test 1 in (2), and the program under test 1 receives the response data and continues processing.

この場合、テスト者に必要とされる作業と操作は次の通
りである。
In this case, the tasks and operations required by the tester are as follows.

・定義情報ファイルの作成 ・被テストプログラムよりデータの送信・テストプログ
ラムによるデータの受信・データに対する応答(データ
入力) ・被テストプログラムへのデータの送信〔発明の効果〕 本発明によれば、複数のインタフェースに対して、デー
タ処理関数はデータ表示用と応答用のような少数の関数
で済ますことができ、プログラムのコンパクト化が図ら
れ、開発工数を削減することができる。
・Creating a definition information file ・Sending data from the program under test ・Receiving data by the test program ・Responding to data (data input) ・Sending data to the program under test [Effects of the Invention] According to the present invention, multiple For this interface, only a small number of data processing functions are required, such as those for data display and response, making the program more compact and reducing development man-hours.

またインタフェースの追加、変更は、定義情報ファイル
に′情報を追゛加しあるいは定義情報ファイ、ル内の悄
頼を変更するだけでよいため、プログラムに対する修正
の影響は少なく1作業量も小さくできる。このため、テ
スト時にインタフェースの追加変更を行って1種々のデ
ータ形式のパターンでのテストを簡単に行うことができ
る。
In addition, to add or change an interface, all you have to do is add information to the definition information file or change the parameters in the definition information file, so the impact of modifying the program is small and the amount of work can be reduced. . Therefore, it is possible to easily perform tests using various data format patterns by adding and changing the interface at the time of testing.

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

第1図は本発明の原理構成図、第2図は本発明の実施例
による定義情報ファイルの構成図、第3図は本発明実施
例の動作説明図、第4図は従来のプログラムのテスト処
理システムの構成図である。 第1図中 1:被テストプログラム 2:テストプログラム 7:データ処理関数 8:定義情報ファイル 9:ファイルアクセス関数
Figure 1 is a diagram of the principle configuration of the present invention, Figure 2 is a diagram of the configuration of a definition information file according to an embodiment of the present invention, Figure 3 is an explanatory diagram of the operation of the embodiment of the present invention, and Figure 4 is a conventional program test. FIG. 1 is a configuration diagram of a processing system. 1 in Figure 1: Program under test 2: Test program 7: Data processing function 8: Definition information file 9: File access function

Claims (1)

【特許請求の範囲】  異なる複数のデータ形式のインタフェースをもつ被テ
ストプログラムをテストするテスト処理システムにおい
て、 被テストプログラム(1)の各インタフェースの異なる
データ形式についての定義情報を格納した定義情報ファ
イル(8)と、 被テストプログラム(1)に結合されて被テストプログ
ラム(1)との間でデータを送受信するテストプログラ
ム(2)と、 テストプログラムにより呼び出されて、テストプログラ
ムが被テストプログラムから受信したデータについて表
示、応答等の指定された処理を行うデータ処理関数(7
)とをそなえ、 上記データ処理関数(7)は、処理すべきデータのデー
タ形式についての定義情報を定義情報ファイル(8)か
ら得て対応するデータ形式で処理することを特徴とする
プログラムのテスト処理システム。
[Claims] In a test processing system for testing a program under test having interfaces of a plurality of different data formats, a definition information file (1) storing definition information regarding different data formats of each interface of the program under test (1) 8), a test program (2) that is coupled to the program under test (1) and transmits and receives data between the program under test (1), and a test program (2) that is called by the test program and that transmits data that the test program receives from the program under test. Data processing functions (7) that perform specified processing such as display and response on the data
), and the data processing function (7) obtains definition information about the data format of the data to be processed from the definition information file (8) and processes it in the corresponding data format. processing system.
JP63289682A 1988-11-16 1988-11-16 Test processing system for program Pending JPH02135548A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63289682A JPH02135548A (en) 1988-11-16 1988-11-16 Test processing system for program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63289682A JPH02135548A (en) 1988-11-16 1988-11-16 Test processing system for program

Publications (1)

Publication Number Publication Date
JPH02135548A true JPH02135548A (en) 1990-05-24

Family

ID=17746383

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63289682A Pending JPH02135548A (en) 1988-11-16 1988-11-16 Test processing system for program

Country Status (1)

Country Link
JP (1) JPH02135548A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04344539A (en) * 1991-05-21 1992-12-01 Nippon Steel Corp Computer program testing device
JP2008273060A (en) * 2007-04-27 2008-11-13 Fujitsu Ltd Paper conveying control mechanism of printing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04344539A (en) * 1991-05-21 1992-12-01 Nippon Steel Corp Computer program testing device
JP2008273060A (en) * 2007-04-27 2008-11-13 Fujitsu Ltd Paper conveying control mechanism of printing device

Similar Documents

Publication Publication Date Title
US5325530A (en) Controller for sequential programming tools executed in a parallel computing environment
US5805867A (en) Multi-processor simulation apparatus and method
US5410696A (en) Method of processing a program by parallel processing, and a processing unit thereof
US4949255A (en) Message interface and method for recursive calling between interpretive and compiled computer processes
EP0210345A2 (en) Virtual machine
KR20040051612A (en) Method of communicating across an operating system
US6279104B1 (en) Debugging system for parallel processed program and debugging method thereof
JPH02135548A (en) Test processing system for program
JP3085730B2 (en) Parallel simulation method for complex CPU system
JPH03130839A (en) On-line simulation system
JPS63177231A (en) Debug system for parallel program
KR100310291B1 (en) Method for simulating parallel program on single system
JPH0283749A (en) Internal interruption control system for microprocessor
JPH03218539A (en) Debug method in parallel computer system
JPH06242982A (en) Test system for virtual computer system
Elshoff et al. Handling asynchronous interrupts in a PL/1‐like language
JPH08221296A (en) Built-in software debug support device
JPH09146794A (en) Program simulator
JPS63223929A (en) Address identifying method
JPH02259842A (en) System for testing tight-coupling multiprocessor system
JPH0442692B2 (en)
JPH02230449A (en) Matrix control system for communication control program
JP2000112771A (en) Interruption controller, interruption processing method, operating system, microcomputer system, information processor and storage medium recording program
JPS61138184A (en) Hardware confirmation method of tester by test program
JPS60110049A (en) Test method using test program