JPH09138756A - Test method/system using interpreter - Google Patents

Test method/system using interpreter

Info

Publication number
JPH09138756A
JPH09138756A JP7296825A JP29682595A JPH09138756A JP H09138756 A JPH09138756 A JP H09138756A JP 7296825 A JP7296825 A JP 7296825A JP 29682595 A JP29682595 A JP 29682595A JP H09138756 A JPH09138756 A JP H09138756A
Authority
JP
Japan
Prior art keywords
file
test
basic
data
change
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.)
Withdrawn
Application number
JP7296825A
Other languages
Japanese (ja)
Inventor
Kunihito Onoue
州人 尾上
Shigeru Ikushima
茂 生島
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 JP7296825A priority Critical patent/JPH09138756A/en
Publication of JPH09138756A publication Critical patent/JPH09138756A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

PROBLEM TO BE SOLVED: To reduce capacity (data quantity) as a whole test system. SOLUTION: In the test system operating in an interpreter system, a source file where the basic procedure of a test and data are mentioned is analyzed and executed 4 while it is changed in accordance with change item data 20 provided in accordance with a test item. At that time, change item data 20 corresponding to the test item is given in a basic test file. Change item data 20 corresponding to the test time is given as an individual change item file 2. A file change means 3 is provided in the analysis execution means 4.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、インタプリタ形式
でソースファイルを実行するテストシステムを使用した
情報処理装置のテスト方法およびテストシステムに関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a test method and a test system for an information processing device using a test system that executes a source file in an interpreter format.

【0002】[0002]

【従来の技術】図11は、インタプリタを用いた従来の
テスト方法を説明する図である。インタプリタによりソ
ースプログラムを解析しながら実行する方式を用いた従
来のテストシステムは、コンパイラに比較して、プログ
ラムとしての共通の処理部分の関数化やサブルーチン化
することが困難であることから、図11に示されている
ように、予め、すべてのテスト項目ごとに、テスト手順
記述部1〜n 10aと、テストデータ記述部1〜n 11a
で、テストの手順や、テストデータのすべてを記述した
ソースファイル 1を用意する必要があった。
2. Description of the Related Art FIG. 11 is a diagram for explaining a conventional test method using an interpreter. A conventional test system using a method of executing a source program while analyzing it by an interpreter has a difficulty in converting a common processing part as a program into a function or a subroutine as compared with a compiler. , The test procedure description sections 1 to n 10a and the test data description sections 1 to n 11a are previously set for all test items.
Then, it was necessary to prepare the source file 1 that describes all the test procedures and test data.

【0003】[0003]

【発明が解決しようとする課題】上述したインタプリタ
を使用したテストシステムによる情報処理装置に対する
従来のテスト方法において、作成するソースファイル
は、テスト項目に関係する部分以外の手順(例えば、初
期設定等の前処理、コマンド発行シーケンスの手順等)
や変更の無いデータについても記述するため、図11に
示されているように、内容の一部にのみ違いがあるソー
スファイルがテスト項目数分存在することとなり、テス
トシステム全体としての容量(データ量)が大きくなる
という問題があった。
In the conventional test method for the information processing device by the test system using the interpreter described above, the source file to be created has a procedure other than the part related to the test item (for example, initial setting, etc.). Pre-processing, command issuing sequence procedure, etc.)
Since data that does not change is also described, as shown in FIG. 11, there are as many source files as the number of test items that differ only in part of the contents, and the capacity of the entire test system (data There was a problem that the amount) would be large.

【0004】本発明は上記従来の欠点に鑑み、インタプ
リタを使用したテストシステムによる情報処理装置に対
するテストシステム,テスト方法において、テストシス
テム全体としての容量(データ量)を小さくすることが
できるテスト方法、およびテストシステムを提供するこ
とを目的とするものである。
In view of the above-mentioned conventional drawbacks, the present invention provides a test system and a test method for an information processing apparatus using a test system using an interpreter, which can reduce the capacity (data amount) of the entire test system, And to provide a test system.

【0005】[0005]

【課題を解決のための手段】図1は本発明の原理説明図
であり、図2〜図10は、本発明の一実施例を示した図
である。上記の問題点は下記の如くに構成したインタプ
リタを使用したテスト方法およびテストシステムによっ
て解決される。
FIG. 1 is a diagram for explaining the principle of the present invention, and FIGS. 2-10 are diagrams showing an embodiment of the present invention. The above problems are solved by a test method and a test system using an interpreter configured as described below.

【0006】(1) インタプリタ形式でソースファイルを
実行するテストシステムにおいて、テストの基本的な手
順とデータを記述したソースファイル 1に対して、テス
ト項目に対応して設けられた変更項目データ 20,21, 〜
に従って、ソースファイル 1に変更を加えながら解析し
実行することにより、情報処理装置に対するテストを行
うように構成する。
(1) In a test system that executes a source file in an interpreter format, change item data 20, which is provided corresponding to a test item, is added to a source file 1 in which a basic test procedure and data are described. twenty one, ~
According to the above, the source file 1 is analyzed and executed while being changed, and the information processing device is configured to be tested.

【0007】(2) インタプリタ形式でソースファイルを
実行するテストシステムにおいて、インタプリタによる
解析の対象となるソースファイルであり、テストの基本
的な手順とデータを記述した基本テストファイル 1と、
テストの項目に対応した基本テストファイル 1の変更内
容を記述した変更項目ファイル 2と、変更項目ファイル
2の内容(変更ユニットデータ 20,21, 〜) に従い、基
本テストファイル 1を変更するファイル変更手段 3と、
変更された基本テストファイル 1の内容を解析し、テス
ト対象装置 5に対してテストを実行する解析実行手段 4
を有し、上記ファイル変更手段 3により、基本テストフ
ァイル 1を変更項目ファイル 2の内容に従って変更した
のちに、上記解析実行手段 4により、基本テストファイ
ル 1を解析し実行する処理を、上記テスト項目に対応し
て繰り返すことで、情報処理装置に対するテストを行う
ように構成する。{図1,図2参照} (3) 上記(2) 項において、テスト項目に対応した変更項
目データ (変更ユニットデータ 20,21, 〜) を基本テス
トファイル 1の一部として持ち、上記ファイル変更手段
3により、基本テストファイル 1内のテスト手順とデー
タを、上記基本テストファイル 1内の変更項目データ
(変更ユニットデータ 20,21, 〜) に従い変更するよう
に構成する。{図3参照} (4) 上記(2) 項において、テスト項目に対応した変更項
目データ (変更ユニットデータ 20,21, 〜) を、個別の
変更項目ファイル 20a,21a, 〜として持ち、上記ファイ
ル変更手段 3により、基本テストファイル 1内のテスト
手順とデータを、上記個別の変更項目ファイル 20a,21
a, 〜の内容に従い変更するように構成する。{図4参
照} (5) 上記(2) 項において、ファイル変更手段 (ファイル
読込み部 30,ファイル変更部 31) 3を解析実行手段 4内
に持たせ、該解析実行手段 4による基本テストファイル
1の解析時に、解析の対象となるテスト手順やデータに
対する変更項目データが存在するとき、該対応した変更
を行ったのちに、該基本テストファイル1を解析し実行
するように構成する。{図5参照} (6) 上記(2) 項において、ファイル変更手段 30,31を解
析実行手段 4内に持たせ、且つ、テスト項目に対応した
変更項目データ (変更ユニットデータ 20a,20b, 〜) 2
を基本テストファイル 1の一部として持たせ、該解析実
行手段 4による基本テストファイル 1の解析時に、該基
本テストファイル 1内に解析の対象となるテスト手順や
データに対する変更項目データが存在するとき、該対応
した変更を行ったのちに、該基本テストファイル 1を解
析し実行するように構成する。{図6参照} (7) 上記(2) 項において、ファイル変更手段 30,31を解
析実行手段 4内に持たせ、且つ、テスト項目に対応した
変更内容を、個別の変更項目ファイル 20a,21a, 〜とし
て持ち、該解析実行手段 4による基本テストファイル 1
の解析時に、解析の対象となるテスト手順やデータに対
する、上記個別の変更項目ファイル 20a,21a, 〜が存在
するとき、該対応した変更を行ったのちに、該基本テス
トファイル 1を解析し実行するように構成する。{図7
参照} 即ち、図1の原理説明図において、1 はソースファイル
(基本テストファイル) であり、テストで使用する標準
的な手順とデータの形式が記述されている。
(2) In a test system that executes a source file in an interpreter format, the source file that is the target of analysis by the interpreter, and the basic test file 1 that describes the basic procedure and data of the test,
Change item file 2 that describes the change contents of basic test file 1 corresponding to the test items, and change item file
According to the contents of 2 (change unit data 20,21, ...), file changing means 3 for changing the basic test file 1 and
Analysis execution means 4 that analyzes the contents of the changed basic test file 1 and executes the test on the device under test 5
After changing the basic test file 1 according to the contents of the change item file 2 by the file changing means 3, the process of analyzing and executing the basic test file 1 by the analysis executing means 4 is performed as described above. It is configured to perform a test on the information processing device by repeating the process corresponding to. {Refer to Fig. 1 and Fig. 2} (3) In the above item (2), the change item data (change unit data 20,21, ...) corresponding to the test item is held as a part of the basic test file 1 and the above file change is made. means
According to 3, the test procedure and data in basic test file 1 are changed to the change item data in basic test file 1 above.
Configure to change according to (change unit data 20,21, ...). {Refer to Fig. 3} (4) In the above item (2), the change item data (change unit data 20,21, ...) corresponding to the test item is stored as individual change item files 20a, 21a, ... By the change means 3, the test procedure and data in the basic test file 1 are changed to the individual change item files 20a, 21
Configure to change according to the contents of a and. {Refer to FIG. 4} (5) In the above item (2), the file changing means (file reading unit 30, file changing unit 31) 3 is provided in the analysis executing unit 4, and the basic test file by the analysis executing unit 4 is provided.
When there is change item data for the test procedure or data to be analyzed in the analysis of 1, the basic test file 1 is analyzed and executed after making the corresponding change. {Refer to FIG. 5} (6) In the above item (2), the file changing means 30, 31 are provided in the analysis executing means 4, and the change item data (change unit data 20a, 20b, ... ) 2
Is included as a part of the basic test file 1, and when the basic test file 1 is analyzed by the analysis execution means 4, when there is change item data for the test procedure or data to be analyzed in the basic test file 1. The basic test file 1 is analyzed and executed after making the corresponding changes. {Refer to FIG. 6} (7) In the above item (2), the file changing means 30 and 31 are provided in the analysis executing means 4, and the change contents corresponding to the test items are individually changed item files 20a and 21a. ,, and have as a basic test file by the analysis execution means 4 1
When the above-mentioned individual change item files 20a, 21a, ... for the test procedure and data to be analyzed exist during the analysis of, the basic test file 1 is analyzed and executed after making the corresponding changes. To configure. {Fig. 7
That is, 1 is a source file in the principle diagram of FIG.
(Basic test file), which describes the standard procedure and data format used in the test.

【0008】又、2 は変更項目ファイルであり、テスト
の実行に先立って行われるソースファイル 1の変更に関
する変更箇所や変更内容等の変更項目データ (変更ユニ
ットデータ1 20,変更ユニットデータ2 21,〜) の集合
である。
Reference numeral 2 is a change item file, which is change item data (change unit data 1 20, change unit data 2 21,) relating to changes in the source file 1 performed prior to the execution of the test and the change contents. ~) Is a set of.

【0009】3 はファイル変更手段であり、ファイルの
読込み機能と変更項目ファイル 2内の変更ユニットデー
タ 20,21, 〜によるソースファイル 1を変更する機能を
持つ。
Reference numeral 3 is a file changing means, which has a file reading function and a function of changing the source file 1 by the change unit data 20, 21, ... In the change item file 2.

【0010】4 は解析実行手段であり、ソースファイル
1の内容を解析しながらテストとして実行する機能を持
つ。解析実行手順としては、上記ファイル変更手段 3に
よりソースファイル 1を読込み、変更項目ファイル 2の
変更項目データ (1テスト項目に対する変更項目デー
タ)に従い、ソースファイル 1のテスト手順やテストデ
ータを変更する。
Reference numeral 4 is an analysis execution means, which is a source file.
It has a function to execute as a test while analyzing the contents of 1. As the analysis execution procedure, the source file 1 is read by the file changing means 3 and the test procedure and test data of the source file 1 are changed according to the change item data of the change item file 2 (change item data for one test item).

【0011】そして、1テスト項目単位としての変更を
完了すると、解析実行手段 4は、ソースファイル 1の内
容を行単位で解析し実行する。この変更,解析,実行を
変更項目ファイル 2内の、各テスト項目単位に対応した
変更項目データが無くなるまで繰り返すことにより情報
処理装置に対するテストを実行する。
When the change in units of one test item is completed, the analysis executing means 4 analyzes and executes the contents of the source file 1 in units of lines. This change, analysis, and execution are repeated until there is no change item data corresponding to each test item in change item file 2 to execute the test on the information processing device.

【0012】このように、本発明のインタプリタを用い
たテスト方法およびテストシステムは、テストの基本的
な手順やデータを記述したソースファイル 1を用意し、
テスト対象となる情報処理装置の各テスト項目に対応し
た変更項目データ 1,2, 〜ファイル 20,21, 〜を設け
て、ソースファイル 1から1テスト項目に対応した内容
を読み出し、該読み出したソースファイル 1の内容 (テ
スト手順, テストデータ) を、上記変更項目データ 1,
2, 〜ファイル 20,21, 〜によって変更した後、該変更
されたソースファイル 1を解釈し実行するようにしたも
のであるので、テストに必要なファイルの数を削減で
き、又、ファイルに対するアクセス回数を削減でき、テ
ストシステム全体としてのデータ量を削減でき、テスト
の高速化が実現できる。
As described above, the test method and the test system using the interpreter of the present invention prepare the source file 1 in which the basic procedure and data of the test are described,
By providing change item data 1,2, ... files 20,21, ... corresponding to each test item of the information processing apparatus to be tested, the contents corresponding to one test item are read from the source file 1 and the read source is read. Change the contents of file 1 (test procedure, test data) to the above change item data 1,
The source file 1 that has been changed is interpreted and executed after being changed by 2, ~ files 20,21, ~, so the number of files required for the test can be reduced, and access to the files can be reduced. The number of times can be reduced, the data amount of the entire test system can be reduced, and the test speed can be increased.

【0013】[0013]

【発明の実施の形態】以下本発明の実施例を図面によっ
て詳述する。前述の図1は、本発明の原理説明図であ
り、図2〜図10は、本発明の一実施例を示した図であ
って、図2は、基本テストファイル 1と変更項目ファイ
ル 2,及び、ファイル変更手段 3と解析実行手段 4が、
それぞれ、独立している場合を示し、図3は、変更項目
ファイル{変更ユニットデータ1 20 〜) 2 が基本テス
トファイル (ソースファイル) 1の一部になっている場
合を示し、図4は、変更項目ファイル 2が、テスト項目
毎に独立した変更ユニットデータ 1 ファイル 20a, 変
更ユニットデータ 2 ファイル 21a, 〜を構成している
場合を示し、図5は、ファイル変更手段(ファイル読込
み部 30,ファイル変更部 31) 3が解析実行手段 4の一部
になっている場合を示し、図6は、ファイル変更手段 3
が解析実行手段 4の一部であって、且つ、変更項目ファ
イル 2が基本テストファイル 1の一部になっている場合
を示し、図7は、ファイル変更手段 3が解析実行手段 4
の一部であって、且つ、変更項目ファイル 2の各テスト
項目毎の変更ユニットデータ 1 ファイル 20a, 変更ユ
ニットデータ 2 ファイル 21a, 〜が独立している場合
を示し、図8,図9は、本発明のファイル変更処理と解
析実行処理の各処理のフローを示し、図10は、ファイ
ル変更手段 3,解析実行手段 4の処理内容を模式的に示
している。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described in detail below with reference to the drawings. FIG. 1 described above is a diagram for explaining the principle of the present invention, FIGS. 2 to 10 are diagrams showing an embodiment of the present invention, and FIG. 2 is a basic test file 1 and a change item file 2, And the file changing means 3 and the analysis executing means 4
FIG. 3 shows the case where each is independent, and FIG. 3 shows the case where the change item file {change unit data 120-) 2 is a part of the basic test file (source file) 1 and FIG. 4 shows The change item file 2 comprises a change unit data 1 file 20a, a change unit data 2 file 21a, ... which are independent for each test item. Fig. 5 shows a file changing means (file reading unit 30, file The changing unit 31) 3 is a part of the analysis executing means 4, and FIG. 6 shows the file changing means 3
Is a part of the analysis executing means 4 and the change item file 2 is a part of the basic test file 1. In FIG. 7, the file changing means 3 is the analysis executing means 4
And a change unit data 1 file 20a, a change unit data 2 file 21a, ... for each test item of the change item file 2 are independent, and FIGS. The flow of each processing of the file change processing and the analysis execution processing of the present invention is shown, and FIG. 10 schematically shows the processing contents of the file change means 3 and the analysis execution means 4.

【0014】本発明においては、インタプリタ形式でソ
ースファイルを実行するテストシステムにおいて、イン
タプリタによる解析の対象となるソースファイルであ
り、テストの基本的な手順とデータを記述した基本テス
トファイル 1と、テストの項目に対応した基本テストフ
ァイル 1の変更内容を記述した変更項目ファイル 2と、
変更項目ファイル 2の内容(変更ユニットデータ 20,2
1, 〜) に従い、基本テストファイル 1を変更するファ
イル変更手段 3と、変更された基本テストファイル1の
内容を解析し、テスト対象装置 5に対してテストを実行
する解析実行手段 4が、本発明を実施するのに必要な手
段である。尚、全図を通して同じ符号は同じ対象物を示
している。
According to the present invention, in a test system for executing a source file in an interpreter format, the source file is a source file to be analyzed by the interpreter, a basic test file 1 in which a basic procedure and data of the test are described, and a test. Change item file 2 which describes the change contents of basic test file 1 corresponding to the item of
Contents of change item file 2 (change unit data 20,2
1 to 3), the file changing means 3 for changing the basic test file 1 and the analysis executing means 4 for analyzing the contents of the changed basic test file 1 and executing the test on the device under test 5 are It is a necessary means for carrying out the invention. Note that the same reference numerals indicate the same object throughout the drawings.

【0015】以下、図1を参照しながら、図2〜図10
によって、本発明のインタプリタを用いたテスト方法お
よびテストシステムの構成と動作を説明する。図2は、
基本テストファイル 1と変更項目ファイル 2,及び、フ
ァイル変更手段 3と解析実行手段 4が、それぞれ、独立
している場合を示し、請求項2に対する実施例を構成す
るシステム構成図であり、図8,図9は、処理の流れを
示す処理流れ図である。
2 to 10 while referring to FIG.
The configuration and operation of the test method and test system using the interpreter of the present invention will be described below. FIG.
FIG. 8 is a system configuration diagram showing an example in which the basic test file 1 and the change item file 2, and the file changing means 3 and the analysis executing means 4 are independent of each other, and which constitutes an embodiment for claim 2; , FIG. 9 is a processing flow chart showing the processing flow.

【0016】先ず、ファイル変更手段 3は、テストの実
行に先立ち、基本テストファイル 1と変更項目ファイル
2を読み込む。{図8の処理ステップ 100,101参照}次
に、変更項目ファイル 2を構成する変更ユニットデータ
1 20 を取り出し、変更ユニットデータの要素として記
述された変更項目データ1〜nに従い、基本テストファ
イル 1のテスト手順やテストデータに変更を加える。
{図8, 図9の処理ステップ 102,103〜107 参照} 1つの変更ユニットデータ1 20 内の総ての変更項目デ
ータについて、基本テストファイル 1の変更が完了した
時点で、解析実行手段 4に実行の制御が渡される。{図
9の処理ステップ 108,109参照} 該解析実行手段 4は、従来のインタプリタの機能を持
ち、基本テストファイル1の内容をファイル解析部 40
で解析し、実行制御部 41 によりデバイスインタフェー
ス (例えば、後述のテスト手順記述部 10 で記述されて
いる"ioctl" で表されている条件で入出力処理を行うイ
ンタフェース) 6 を介して、テスト対象装置のテストを
実行する。{図9の処理ステップ 109,110参照} 上記のファイル変更手段 3による基本テストファイル 1
の変更と,解析実行手段 4による基本テストファイル 1
の解析と実行を変更項目ファイル 2内の変更ユニットデ
ータ(変更ユニットデータ1〜n)20,21,〜ごとに繰り
返すことで、情報処理装置のテストを実現する。{図
9,図8の処理ステップ 111,102参照} 次に、図10を元に、ファイル変更手段 3と解析実行手
段 4の具体的な処理内容について説明する。
First, the file changing means 3 has the basic test file 1 and the change item file before the execution of the test.
Read 2 {Refer to the processing steps 100 and 101 in FIG. 8} Next, the change unit data 1 20 that constitutes the change item file 2 is taken out, and the test of the basic test file 1 is performed according to the change item data 1 to n described as the elements of the change unit data. Make changes to procedures and test data.
{Refer to the processing steps 102, 103 to 107 of FIGS. 8 and 9} For all the change item data in one change unit data 120, when the change of the basic test file 1 is completed, the analysis execution means 4 executes the change. Control is passed. {Refer to the processing steps 108 and 109 of FIG. 9} The analysis execution means 4 has the function of a conventional interpreter, and stores the contents of the basic test file 1 in the file analysis unit 40.
The test target is analyzed by the execution control unit 41 and the device interface (for example, an interface that performs input / output processing under the condition represented by "ioctl" described in the test procedure description unit 10 described later) 6 Perform device tests. {Refer to processing steps 109 and 110 in FIG. 9} Basic test file 1 by the above file changing means 3
And basic test file by analysis execution means 4 1
By repeating the analysis and execution for each of the change unit data (change unit data 1 to n) 20, 21 in the change item file 2, a test of the information processing apparatus is realized. {Refer to processing steps 111 and 102 in FIGS. 9 and 8} Next, based on FIG. 10, the specific processing contents of the file changing means 3 and the analysis executing means 4 will be described.

【0017】基本テストファイル 1には、テストに必要
な変数宣言と手順が記述されている。図10における変
数宣言は、テストデータを設定するための構造体{デー
タの定義体で、データの名称、属性(整数型,文字型,
キャラクタ型,浮動小数点型等)、データサイズ等が定
義されている}“test”のメンバであるa,b,c
とテスト対象装置 5の起動関数のパラメータとしての
“request”,“status”である。また、
テスト手順としては、テスト対象装置 5の起動関数であ
る前述の“ioctl”とその復帰値としてのstat
usの比較処理であるif文となる。
The basic test file 1 describes variable declarations and procedures necessary for testing. The variable declaration in FIG. 10 is a structure for setting test data {data definition, data name, attribute (integer type, character type,
Character type, floating point type, etc.), data size, etc. are defined} a, b, c which are members of "test"
And "request" and "status" as parameters of the activation function of the test target device 5. Also,
As the test procedure, the above-mentioned "ioctl" which is the start-up function of the device under test 5 and stat as its return value
It becomes an if sentence which is a comparison process of us.

【0018】上記起動関数“ioctl”は、図10に
示されているように、パラメータ“request”
で、印刷,表示,センス情報の入手等のテスト対象装置
5に何を実行させるかを記述するものであり、 "&tes
t" は上記データの定義体 (構造体) の先頭アドレスを
示し、"status"は実行した結果情報を "status" という
領域に格納させるための格納アドレスを示している。
As shown in FIG. 10, the start-up function "ioctl" has a parameter "request".
Then, the device to be tested for printing, displaying, obtaining sense information, etc.
It describes what 5 is supposed to do, "& tes
“T” indicates the start address of the definition structure (structure) of the above data, and “status” indicates the storage address for storing the execution result information in the area “status”.

【0019】実行権を得たファイル変更手段 3は、ファ
イル読込み部 30 により、基本テストファイル (ソース
ファイル) 1 と変更項目ファイル 2を、それらファイル
の格納媒体から、図示されていないメモリ上へ読込む。
ここで、ファイル変更部 31は、変更項目ファイル 2内
の最初の変更ユニットデータ1 20 を参照し、構成要素
としての変更項目データに従って、対応する基本テスト
ファイル 1内のテストデータ記述部 10 、または、テス
ト手順記述部 11 を変更する(処理A)。
The file changing means 3 having the execution right reads the basic test file (source file) 1 and the change item file 2 from the storage medium of these files into the memory (not shown) by the file reading unit 30. Put in.
Here, the file change unit 31 refers to the first change unit data 120 in the change item file 2, and according to the change item data as a component, the test data description unit 10 in the corresponding basic test file 1 or , Change the test procedure description section 11 (Process A).

【0020】具体的には、変更ユニットデータ1 20 に
は、5個の変更項目データがあり、それぞれ、基本テス
トファイル 1内の記述を以下のように変更する。 test.a = 0 ; → test.a = −1 ; test.b = 0 ; → test.b = −2 ; test.c = 0 ; → test.c = −3 ; request = 0 ; → request = 4 ; != (if文内の比較演算子) → > (if文内の比較演算子) 上記のメンバa,bは、例えば、印刷の開始位置を示
し、メンバcは、該印刷の解像度を示している。以上の
変更により、最初のテスト項目に対応した実行テストフ
ァイル 1A を作成する。
Specifically, the change unit data 1 20 has five change item data, and the description in the basic test file 1 is changed as follows. test. a = 0; → test. a = -1; test. b = 0; → test. b = -2; test. c = 0; → test. c = -3; request = 0; → request = 4 ;! = (Comparison operator in if sentence) →> (Comparison operator in if sentence) The members a and b indicate, for example, the print start position, and the member c indicates the resolution of the print. . With the above changes, create the execution test file 1A corresponding to the first test item.

【0021】次に、解析実行手段 4のファイル解析部 4
0 は、実行テストファイル 1A の内容を行単位で解析し
(処理B)、実行制御部 41 がテスト対象装置 5へのコ
マンドを、前述のデバイスインタフェース 6の規約に従
って発行し、テストを実行する(処理C)。解析と実行
処理である処理B,処理Cは通常のインタプリタの機能
である。
Next, the file analysis unit 4 of the analysis execution means 4
For 0, the contents of the execution test file 1A are analyzed line by line (process B), and the execution control unit 41 issues a command to the test target device 5 according to the rules of the device interface 6 described above to execute the test ( Treatment C). Process B and process C, which are analysis and execution processes, are functions of a normal interpreter.

【0022】以上の処理A,B,Cを、変更項目ファイ
ル 2内の変更ユニットデータ1 20,変更ユニットデータ
2 21,〜が存在する間繰り返す。図3は、変更項目ファ
イル (変更ユニットデータ1 20 〜) 2 が基本テストフ
ァイル (ソースファイル) 1 の一部になっている場合を
示し、請求項3に対する実施例を構成するシステム構成
図である。
The above processes A, B and C are repeated while the change unit data 1 20, the change unit data 2 21, ... in the change item file 2 exist. FIG. 3 is a system configuration diagram showing a case where the change item file (change unit data 120 to) 2 is a part of the basic test file (source file) 1 and constituting an embodiment for claim 3. .

【0023】この場合の基本的な動作内容は、前述の図
2,図8〜図10(請求項2に対する実施例)と同じで
あるが、ファイルの構成的な違いとして、変更項目ファ
イル2として独立したファイルを持たず、該変更項目フ
ァイル 2の構成要素である変更ユニットデータ1 20,変
更ユニットデータ2 21,〜を基本テストファイル 1内に
持つことが特徴である。
The basic operation contents in this case are the same as those in FIGS. 2 and 8 to 10 (embodiment for claim 2) described above. The feature is that the basic test file 1 does not have an independent file, but has the change unit data 1 20, the change unit data 2 21, ... which are the constituent elements of the change item file 2.

【0024】このようなファイル構成とすることによ
り、基本テストファイル 1の読込みで、変更ユニットデ
ータ1 20,変更ユニットデータ2 21,〜を読込むことが
でき、ファイルアクセスを高速化することができる。
With such a file structure, the changed unit data 1 20, the changed unit data 2 21, ... can be read by reading the basic test file 1, and the file access can be speeded up. .

【0025】図4は、変更項目ファイル 2が、テスト項
目毎に独立した変更ユニットデータファイル1 20a, 変
更ユニットデータファイル2 21a, 〜を構成している場
合を示し、本発明の請求項4に対する実施例を構成する
システム構成図である。
FIG. 4 shows a case where the change item file 2 constitutes a change unit data file 1 20a, a change unit data file 2 21a, ... Which are independent for each test item. It is a system block diagram which comprises an Example.

【0026】この実施例での基本的な動作内容は、前述
の図2,図8〜図10(請求項2に対する実施例)と同
じであるが、ファイルの構成的が違いとして、変更ユニ
ットデータ1 20a, 変更ユニットデータ2 21a, 〜を要
素とした変更項目ファイル 2が存在せず、各変更ユニッ
トデータが独立したファイル、変更項目ユニットデータ
1 ファイル 20a, 〜となることである。
The basic operation contents in this embodiment are the same as those in FIGS. 2 and 8 to 10 (embodiment for claim 2) described above, but the configuration of the file is different and the change unit data is different. 1 20a, change unit data 2 21a, change item file 2 consisting of ... does not exist, each change unit data is an independent file, change item unit data
One file is to be 20a ,.

【0027】このようなファイル構成とすることによ
り、例えば、ファイル名等により、どのファイルがどう
いうテスト内容をもっているかの認識が容易であると
か、変更ユニットデータ1,2,〜が独立したファイル
となっているので、修正,変更等のファイル更新がし易
く、ファイル管理が容易となる等の効果がある。
With such a file structure, for example, it is easy to recognize which file has what kind of test content by the file name, and the change unit data 1, 2, ... Are independent files. Therefore, there is an effect that the file can be easily updated such as correction and change, and the file can be easily managed.

【0028】図5は、ファイル変更手段(ファイル読込
み部 30,ファイル変更部 31) 3が解析実行手段 4の一部
になっている場合を示し、本発明の請求項5に対する実
施例を構成するシステム構成図である。
FIG. 5 shows a case where the file changing means (file reading section 30, file changing section 31) 3 is a part of the analysis executing means 4, and constitutes an embodiment for claim 5 of the present invention. It is a system configuration diagram.

【0029】この実施例での基本的な動作内容は、前述
の図2,図8〜図10(請求項2に対する実施例)と原
理的には同じであるが、ファイルの構成的な違いとし
て、ファイル変更手段 3が存在せず、解析実行手段 4の
一部になっているため、その動作態様が若干異なる。こ
の実施例での動作を以下に説明する。
The basic operation contents in this embodiment are the same in principle as those in FIGS. 2 and 8 to 10 (embodiment for claim 2) described above, but as a structural difference of the file, Since the file changing means 3 does not exist and is a part of the analysis executing means 4, its operation mode is slightly different. The operation of this embodiment will be described below.

【0030】先ず、解析実行手段 4内のファイル読込み
部 30 はテストの実行に先立ち、基本テストファイル 1
と変更項目ファイル 2を読み込む。次に、ファイル変更
部 31 により変更項目ファイル 2を構成する変更ユニッ
トデータ1 20 を取り出し、変更ユニットデータ1 20
の要素として記述された変更項目データ1,2,〜,n
に従い、基本テストファイル 1のテスト手順やテストデ
ータに変更を加える。
First, the file reading unit 30 in the analysis executing means 4 performs the basic test file 1 before executing the test.
And change item file 2 is read. Next, the file changing unit 31 takes out the change unit data 1 20 which constitutes the change item file 2, and changes the change unit data 1 20.
Change item data 1, 2, ..., n described as elements of
Modify the test procedure and test data of basic test file 1 according to

【0031】1つの変更ユニットデータ1 20 内の総て
の変更項目データ1,2,〜,nについて、基本テスト
ファイル 1の変更が完了した時点で、従来のインタプリ
タの機能を持つ、ファイル解析部 40 により基本テスト
ファイル 1の内容を解析し、実行制御部 41 によりデバ
イスインタフェース 6を介して、テスト対象装置 5のテ
ストを実行する。
At the time when the change of the basic test file 1 is completed for all the change item data 1, 2, ..., N in one change unit data 120, the file analysis section having the function of the conventional interpreter is provided. The contents of the basic test file 1 are analyzed by 40, and the test of the device under test 5 is executed by the execution control unit 41 via the device interface 6.

【0032】上記のファイル変更部 31 による基本テス
トファイル 1の変更と、ファイル解析部 40 による基本
テストファイル 1の解析,さらに、実行制御部 41 によ
る実行を変更項目ファイル 2内の変更ユニットデータ1
20,〜ごとに繰り返すことで、情報処理装置のテストを
実現する。
Change of the basic test file 1 by the file changing unit 31 described above, analysis of the basic test file 1 by the file analyzing unit 40, and execution by the execution control unit 41 are changed unit data 1 in change item file 2.
By repeating every 20 to, the test of the information processing device is realized.

【0033】このようなファイル構成をすることで、動
作するタスクの数 (解析実行手段 4のみ) が減少 (図2
〜図4に示した例では、ファイル変更手段 3と解析実行
手段4の2つのタスクが動作していた。)し、処理速度
が向上する。
With such a file structure, the number of operating tasks (only the analysis executing means 4) is reduced (see FIG. 2).
In the example shown in FIG. 4, the two tasks of the file changing means 3 and the analysis executing means 4 were operating. ), And the processing speed is improved.

【0034】図6は、ファイル変更手段 3が解析実行手
段 4の一部であって、且つ、変更項目ファイル 2が基本
テストファイル 1の一部になっている場合を示し、本発
明の請求項6に対する実施例を構成するシステム構成図
である。
FIG. 6 shows a case where the file changing means 3 is a part of the analysis executing means 4 and the change item file 2 is a part of the basic test file 1. It is a system block diagram which comprises the Example with respect to FIG.

【0035】本実施例での 基本的な動作内容は、前述
の図5で説明した請求項5に対する実施例と同じである
が、ファイルの構成的が違いとして、ファイル変更手段
3を解析実行手段 4内に持たせ、且つ、変更項目データ
として、独立したファイルを持たず、変更ユニットデー
タ1 20a, 変更ユニットデータ2 21a, 〜を基本テスト
ファイル 1内に持つことである。
The basic contents of the operation of this embodiment are the same as those of the embodiment for claim 5 described with reference to FIG.
3 is included in the analysis executing means 4, and the change unit data 1 20a, the change unit data 2 21a, ... Are included in the basic test file 1 as the change item data without having an independent file.

【0036】このような、タスク構成, ファイル構成と
することで、実行タスクの数を少なくでき、且つ、ファ
イルアクセスを基本テストファイル 1に対するアクセス
の1回で済み、インタプリタによる装置テストの処理の
高速化が図れる。
With such a task configuration and file configuration, the number of execution tasks can be reduced, and the file access only needs to be performed once for the basic test file 1, and the device test processing by the interpreter can be performed at high speed. Can be realized.

【0037】図7は、ファイル変更手段 3が解析実行手
段 4の一部であって、且つ、変更項目ファイル 2の各テ
スト項目毎の変更ユニットデータファイル1 20a, 変更
ユニットデータファイル2 21a, 〜が独立している場合
を示し、本発明の請求項7に対する実施例を構成するシ
ステム構成図である。
In FIG. 7, the file changing means 3 is a part of the analysis executing means 4, and the change unit data file 1 20a, the change unit data file 2 21a, ... Is an independent case, and is a system configuration diagram constituting an embodiment for claim 7 of the present invention.

【0038】この場合の基本的な動作内容は、前述の図
5で説明した請求項5に対する実施例と同じであるが、
ファイルの構成的が違いとして、変更ユニットデータ
1,2,〜を要素とした変更項目ファイルが存在せず、
変更ユニットデータ1 20,変更ユニットデータ2 21,〜
のように、各変更ユニットデータが独立したファイルと
なることである。
The basic operation contents in this case are the same as those of the embodiment for claim 5 described in FIG. 5, but
The difference in the structure of the file is that there is no change item file with change unit data 1, 2, ... as elements,
Change unit data 1 20, Change unit data 2 21, ~
That is, each change unit data is an independent file.

【0039】このようなタスク構成, ファイル構成とす
ることで、実行タスクが少なくなり、且つ、変更ユニッ
トデータファイルの管理が容易になる。このように、本
発明は、インタプリタ形式で動作するテストシステムに
おいて、テストの基本的な手順とデータを記述したソー
スファイルに対して、テスト項目に対応して設けられた
変更項目データに従って、該ソースファイルに変更を加
えながら解析し、実行する。このとき、上記テスト項目
に対応した変更項目データを、基本テストファイル内に
持つ。又、該テスト項目に対応した変更項目データを個
別の変更項目ユニットデータファイルとして持つ。又、
ファイル変更手段を、解析実行手段内に持たせるように
構成したところに特徴がある。
With such a task configuration and file configuration, the number of execution tasks is reduced and the management of the change unit data file becomes easy. As described above, according to the present invention, in the test system that operates in the interpreter format, the source file that describes the basic procedure and data of the test is written in accordance with the change item data provided corresponding to the test item. Analyze and execute while making changes to the file. At this time, change item data corresponding to the above test items is held in the basic test file. Further, it holds change item data corresponding to the test item as an individual change item unit data file. or,
It is characterized in that the file changing means is provided in the analysis executing means.

【0040】[0040]

【発明の効果】以上説明したように本発明は、テストの
基本的な手順やデータを記述したソースファイルを用意
し、テスト対象となる情報処理装置のテスト項目に対応
した変更項目データにより、該基本テストファイルを変
更し実行することで、テストに必要なファイルを削減で
きるため、テストシステム全体としての容量(データ
量)を小さくすることが可能となる。
As described above, according to the present invention, the source file in which the basic procedure and data of the test are described is prepared, and the change item data corresponding to the test item of the information processing device to be tested is used to By changing and executing the basic test file, the number of files required for the test can be reduced, so that the capacity (data amount) of the entire test system can be reduced.

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

【図1】本発明の原理構成図FIG. 1 is a block diagram of the principle of the present invention.

【図2】本発明の一実施例を示した図(その1)FIG. 2 shows an embodiment of the present invention (part 1).

【図3】本発明の一実施例を示した図(その2)FIG. 3 shows an embodiment of the present invention (part 2).

【図4】本発明の一実施例を示した図(その3)FIG. 4 shows an embodiment of the present invention (part 3).

【図5】本発明の一実施例を示した図(その4)FIG. 5 shows an embodiment of the present invention (part 4).

【図6】本発明の一実施例を示した図(その5)FIG. 6 is a diagram showing an embodiment of the present invention (No. 5).

【図7】本発明の一実施例を示した図(その6)FIG. 7 shows an embodiment of the present invention (part 6).

【図8】本発明の一実施例を示した図(その7)FIG. 8 shows an embodiment of the present invention (part 7).

【図9】本発明の一実施例を示した図(その8)FIG. 9 shows an embodiment of the present invention (part 8).

【図10】本発明の一実施例を示した図(その9)FIG. 10 shows an embodiment of the present invention (part 9).

【図11】インタプリタを用いた従来のテスト方法を説
明する図
FIG. 11 is a diagram illustrating a conventional test method using an interpreter.

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

1,1A ソースファイル, 基本テストファイル 10,10a,10A テスト手順記述部 11,11a,11A テストデータ記述部 2 変更項目ファイル 20,21,〜 変更ユニットデータ1,2,〜 20a,21a,〜 変更ユニットデータ1,2,〜 3 ファイル変更手段 30 ファイル
読込み部 31 ファイル変更部 4 解析実行手段 40 ファイル
解析部 41 実行制御部 5 テスト対象装置 6 デバイス
インタフェース 100 〜 111 処理ステップ
1,1A Source file, Basic test file 10,10a, 10A Test procedure description part 11,11a, 11A Test data description part 2 Change item file 20,21, ~ Change unit data 1,2, ~ 20a, 21a, ~ Change Unit data 1, 2, ... 3 File changing means 30 File reading section 31 File changing section 4 Analysis executing means 40 File analyzing section 41 Execution control section 5 Test target device 6 Device interface 100 to 111 Processing step

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】インタプリタ形式でソースファイルを実行
するテストシステムにおいて、テストの基本的な手順と
データを記述したソースファイルに対して、テスト項目
に対応して設けられた変更項目データに従って、ソース
ファイルに変更を加えながら解析し実行することによ
り、情報処理装置に対するテストを行うことを特徴とす
るインタプリタを用いたテスト方法。
1. A test system for executing a source file in an interpreter format, the source file according to change item data provided corresponding to a test item, for a source file in which a basic test procedure and data are described. A test method using an interpreter, characterized by performing a test on an information processing device by analyzing and executing while making changes.
【請求項2】インタプリタ形式でソースファイルを実行
するテストシステムにおいて、インタプリタによる解析
の対象となるソースファイルであり、テストの基本的な
手順とデータを記述した基本テストファイルと、テスト
の項目に対応した基本テストファイルの変更内容を記述
した変更項目ファイルと、変更項目ファイルの内容に従
い、基本テストファイルを変更するファイル変更手段
と、変更された基本テストファイルの内容を解析し、テ
スト対象装置に対してテストを実行する解析実行手段を
有し、 上記ファイル変更手段により、基本テストファイルを変
更項目ファイルの内容に従って変更したのちに、上記解
析実行手段により、基本テストファイルを解析し実行す
る処理を、上記テスト項目に対応して繰り返すことで、
情報処理装置に対するテストを行うことを特徴とするイ
ンタプリタを用いたテストシステム。
2. A test system that executes a source file in an interpreter format, which is a source file to be analyzed by the interpreter, and corresponds to a basic test file that describes the basic procedure and data of the test and the test items. The change item file that describes the changed contents of the basic test file, the file changing means that changes the basic test file according to the contents of the change item file, and the contents of the changed basic test file are analyzed and tested for the device under test. The analysis changing means for executing the test is performed, and after the file changing means changes the basic test file according to the contents of the change item file, the analysis executing means analyzes and executes the basic test file. By repeating the above test items,
A test system using an interpreter, which tests an information processing device.
【請求項3】請求項2において、テスト項目に対応した
変更項目データを基本テストファイルの一部として持
ち、上記ファイル変更手段により、基本テストファイル
内のテスト手順とデータを、上記基本テストファイル内
の基本項目データに従い変更すること特徴とするインタ
プリタを用いたテストシステム。
3. The test item according to claim 2, wherein change item data corresponding to a test item is included as part of the basic test file, and the test procedure and data in the basic test file are stored in the basic test file by the file changing means. A test system using an interpreter characterized by being changed according to the basic item data of.
【請求項4】請求項2において、テスト項目に対応した
変更項目データを、個別の変更項目ファイルとして持
ち、上記ファイル変更手段により、基本テストファイル
内のテスト手順とデータを、上記個別の変更項目ファイ
ル内容に従い変更すること特徴とするインタプリタを用
いたテストシステム。
4. The change item data corresponding to a test item according to claim 2, which is provided as an individual change item file, and the file changing means sets the test procedure and data in the basic test file to the individual change item file. A test system using an interpreter characterized by changing according to the contents of files.
【請求項5】請求項2において、ファイル変更手段を解
析実行手段内に持たせ、該解析実行手段による基本テス
トファイルの解析時に、解析の対象となるテスト手順や
データに対する変更項目データが存在するとき、該対応
した変更を行ったのちに、該基本テストファイルを解析
し実行すること特徴とするインタプリタを用いたテスト
システム。
5. A file changing means is provided in the analysis executing means according to claim 2, and when the analysis executing means analyzes the basic test file, change item data for a test procedure or data to be analyzed exists. At this time, a test system using an interpreter characterized by analyzing and executing the basic test file after making the corresponding changes.
【請求項6】請求項2において、ファイル変更手段を解
析実行手段内に持たせ、且つ、テスト項目に対応した変
更項目データを基本テストファイルの一部として持た
せ、該解析実行手段による基本テストファイルの解析時
に、該基本テストファイル内に、解析の対象となるテス
ト手順やデータに対する変更項目データが存在すると
き、該対応した変更を行ったのちに、該基本テストファ
イルを解析し実行すること特徴とするインタプリタを用
いたテストシステム。
6. A basic test according to claim 2, wherein the file changing means is provided in the analysis executing means, and the change item data corresponding to the test item is provided as a part of the basic test file. At the time of file analysis, if there is change item data for the test procedure or data to be analyzed in the basic test file, after making the corresponding change, analyze and execute the basic test file. A test system using a characteristic interpreter.
【請求項7】請求項2において、ファイル変更手段を解
析実行手段内に持たせ、且つ、テスト項目に対応した変
更内容を個別の変更項目ファイルとして持ち、該解析実
行手段による基本テストファイルの解析時に、解析の対
象となるテスト手順やデータに対する上記個別の変更項
目ファイルが存在するとき、該対応した変更を行ったの
ちに、該基本テストファイルを解析し実行すること特徴
とするインタプリタを用いたテストシステム。
7. The method according to claim 2, wherein the file changing means is provided in the analysis executing means, and the change contents corresponding to the test items are provided as individual change item files, and the analysis executing means analyzes the basic test file. Sometimes, when there is the above-mentioned individual change item file for the test procedure or data to be analyzed, after making the corresponding change, the basic test file is analyzed and executed. Test system.
JP7296825A 1995-11-15 1995-11-15 Test method/system using interpreter Withdrawn JPH09138756A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7296825A JPH09138756A (en) 1995-11-15 1995-11-15 Test method/system using interpreter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7296825A JPH09138756A (en) 1995-11-15 1995-11-15 Test method/system using interpreter

Publications (1)

Publication Number Publication Date
JPH09138756A true JPH09138756A (en) 1997-05-27

Family

ID=17838651

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7296825A Withdrawn JPH09138756A (en) 1995-11-15 1995-11-15 Test method/system using interpreter

Country Status (1)

Country Link
JP (1) JPH09138756A (en)

Similar Documents

Publication Publication Date Title
CN117055987A (en) Webpage display method and device, electronic equipment and computer readable storage medium
JPH09138756A (en) Test method/system using interpreter
JPH08305583A (en) Method for simulating cpu
JPH02275539A (en) Debugging system
JPS6149245A (en) Automatic analyzer of program module structure
JP3648710B2 (en) Program analysis system
JP2811804B2 (en) Variable output range specification method
JPH0760363B2 (en) Method for automatically creating user-defined commands
JPH04178829A (en) File definition information editing system in load module
JPH04186445A (en) Automatic analytical system for system performance
JPH0243638A (en) Driver for program test
JP2500385B2 (en) Input data management method
JP2002092045A (en) Dxf analysis svg preserving method
JP2001084136A (en) System and method for preparing test specification
JPS62135958A (en) Simulation system
JPH10320245A (en) Device for evaluating performance of computer
JPH05241987A (en) Testing method
JPH01209542A (en) Logical verification device
JPH04119436A (en) Generalizing method for control program in automatic test system
JPH04222025A (en) Automatic modification device for source program of package
JPH11110202A (en) Automatic job control language preparation method
JPH0535529A (en) Trace information output system
JPH04229343A (en) Memory contents display system in interactive debugger
JPH03212724A (en) File format identification system for floppy disk processor
JPH0362238A (en) Back-up system for decision of file capacity

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20030204