JPH0784830A - Software test execution support system - Google Patents
Software test execution support systemInfo
- Publication number
- JPH0784830A JPH0784830A JP5188839A JP18883993A JPH0784830A JP H0784830 A JPH0784830 A JP H0784830A JP 5188839 A JP5188839 A JP 5188839A JP 18883993 A JP18883993 A JP 18883993A JP H0784830 A JPH0784830 A JP H0784830A
- Authority
- JP
- Japan
- Prior art keywords
- test
- command
- execution
- load module
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
(57)【要約】
【目的】作り直したロードモジュールのテストのために
テストコマンド列を再入力しなくても済むようにする。
【構成】入力コマンド認識部51にて、キーボード1か
ら新規実行モードコマンドが入力されたことを判別する
と、それ以後キーボード1から入力されるテストコマン
ドを受付けて、テスト実行部53に対してその入力テス
トコマンドの指定するロードモジュールのテストを同コ
マンドのオプション指定に従い実行させると共に、同コ
マンドを実行コマンド記録ファイル41に記録させる。
また、入力コマンド認識部51にて、キーボード1から
再実行モードコマンドが入力されたことを判別すると、
その旨をテスト実行部53に通知して、実行コマンド記
録ファイル41に記録されているテストコマンド列に従
うロードモジュールのテストを行わせる。
(57) [Summary] [Purpose] To avoid having to re-enter the test command string to test the rebuilt load module. [Structure] When the input command recognition unit 51 determines that a new execution mode command has been input from the keyboard 1, it accepts a test command input from the keyboard 1 thereafter and inputs it to the test execution unit 53. The test of the load module specified by the test command is executed according to the option specification of the command, and the command is recorded in the execution command recording file 41.
When the input command recognition unit 51 determines that the re-execution mode command is input from the keyboard 1,
This is notified to the test execution unit 53, and the load module is tested in accordance with the test command sequence recorded in the execution command recording file 41.
Description
【0001】[0001]
【産業上の利用分野】この発明は、ソフトウェア開発の
テストフェーズで、テスト対象のロードモジュールに対
して種々のテストコマンドを与えてテストを行うのを支
援するソフトウェアテスト実行支援システムに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a software test execution support system for supporting a load module to be tested by giving various test commands in a test phase of software development.
【0002】[0002]
【従来の技術】一般にソフトウェア開発のテストフェー
ズでは、コンパイル・リンクされたロードモジュールに
対して、種々のテストコマンドを与えてテスト(テスト
・デバッグ)を行う。このテストに際しては、起こり得
るあらゆる場合に対応したテストコマンドを与えてソー
スコードの全ての部分を通過させることが必要である。2. Description of the Related Art Generally, in a test phase of software development, various test commands are given to a compiled and linked load module to perform a test (test / debug). In this test, it is necessary to give a test command for every possible case and to pass all parts of the source code.
【0003】そのためには、ロードモジュールの起動時
に、テストコマンドにより様々なオプション(機能)の
指定を行い、様々なテストデータが必要となる。For that purpose, various options (functions) are specified by a test command when the load module is activated, and various test data are required.
【0004】テストは、ソースコードを修正してコンパ
イル・リンクし直してロードモジュールを再作成する度
に繰り返し行われる。この際、修正した部分に対応する
テストだけでなく、以前行ったテストを再度行って修正
した部分の影響がないか否かを確かめる必要がある。The test is repeated each time the source code is modified, the source code is recompiled, and the load module is recreated. At this time, it is necessary to check not only the test corresponding to the modified part but also the test performed previously to check whether the modified part has the influence.
【0005】そこで従来は、ロードモジュールを作り直
す毎に、以前行ったテストを再度行するために、ソフト
ウェア開発者が再度テストコマンドの列を外部から入力
するようにしていた。Therefore, conventionally, every time the load module is recreated, the software developer inputs the test command sequence again from the outside in order to perform the previously performed test again.
【0006】[0006]
【発明が解決しようとする課題】上記したように従来
は、ソースコードを修正してロードモジュールを作り直
す毎に、以前行ったテストを再度実行するために、ソフ
トウェア開発者が再度テストコマンドの列を外部から入
力する必要があった。As described above, in the past, every time the source code was modified and the load module was recreated, the software developer again executed the test command string in order to re-execute the previously performed test. It was necessary to input from the outside.
【0007】この発明は上記事情を考慮してなされたも
のでその目的は、ロードモジュールのテスト実行のため
に一旦入力されたテストコマンドの列をテスト再実行に
利用でき、テスト再実行のためのテストコマンド列の再
入力が不要となるソフトウェアテスト実行支援システム
を提供することにある。The present invention has been made in view of the above circumstances, and an object thereof is to use a sequence of test commands once input for test execution of a load module for test re-execution, and to execute test re-execution. It is to provide a software test execution support system that eliminates the need to re-enter test command strings.
【0008】この発明の他の目的は、ロードモジュール
のテスト実行のために一旦利用したテストコマンドを修
正して再利用できるソフトウェアテスト実行支援システ
ムを提供することにある。Another object of the present invention is to provide a software test execution support system capable of modifying and reusing a test command once used for test execution of a load module.
【0009】[0009]
【課題を解決するための手段】この発明は、ロードモジ
ュールに対するテスト用のテストコマンドの列を記録す
るための実行コマンド記録ファイルと、ロードモジュー
ルのテスト実行時に、外部から入力されたテストコマン
ドを実行コマンド記録ファイルに逐次記録するコマンド
記録手段とを設け、テストを再実行する再実行モードで
は、実行コマンド記録ファイルからテストコマンドを記
録順に読出し、同コマンドを用いてロードモジュールの
テストを行うようにしたことを特徴とするものである。According to the present invention, an execution command recording file for recording a series of test commands for testing a load module and a test command input from the outside when a test execution of the load module is executed. In the re-execution mode in which a command recording unit for sequentially recording in the command recording file is provided and the test is re-executed, the test commands are read from the execution command recording file in the recording order and the load module is tested using the command. It is characterized by that.
【0010】また、この発明は、テストコマンドを修正
してテストを再実行する修正実行モードにおいて、コマ
ンド記録ファイルに記録されているテストコマンドの列
の一覧を表示する一覧表示手段と、表示されたテストコ
マンド列一覧中の任意のテストコマンドを修正するテス
トコマンド修正手段と、修正されたテストコマンドを実
行コマンド記録ファイルに書き戻す手段とを更に備え、
一連のテストコマンド修正処理の終了後に、実行コマン
ド記録ファイルからテストコマンドを記録順に読出し、
同コマンドを用いてロードモジュールのテストを行うよ
うにしたことをも特徴とする。Further, according to the present invention, in the correction execution mode in which the test command is corrected and the test is re-executed, the list display means for displaying a list of columns of the test command recorded in the command recording file is displayed. Further comprising a test command correction means for correcting any test command in the list of test commands, and a means for writing back the corrected test command to the execution command recording file,
After completing a series of test command correction processing, read the test commands from the execution command recording file in the recording order,
Another feature is that the load module is tested using this command.
【0011】[0011]
【作用】上記の構成において、ロードモジュールのテス
ト実行のために一旦入力されたテストコマンドは、その
入力順に実行コマンド記録ファイルに記録される。そし
て、ソースコードを修正してコンパイル・リンクし直す
ことにより作成された修正後のロードモジュールに対し
て、以前行ったテストを再度行う際には、実行コマンド
記録ファイルに記録されたテストコマンドが、その記録
順に読出され、同コマンドに従うロードモジュールテス
トが行われる。このため、以前にテストを行った際に入
力したのと同じテストコマンドの列を再度入力すること
なく、修正後のロードモジュールに対するテストを行う
ことができる。In the above structure, the test commands once input for the test execution of the load module are recorded in the execution command recording file in the order of input. Then, when the previously performed test is performed again for the modified load module created by modifying the source code, compiling and linking again, the test command recorded in the execution command recording file is The data is read in the recording order, and the load module test is performed according to the command. Therefore, it is possible to perform a test on the modified load module without re-entering the same test command sequence that was input when the test was performed previously.
【0012】また、上記の構成においては、修正実行モ
ードが指定されると、実行コマンド記録ファイルに記録
されているテストコマンドの列の一覧が画面表示され、
その一覧内の任意のテストコマンドをキーボード操作等
により画面上で修正することが可能となる。この修正さ
れたテストコマンドは実行コマンド記録ファイルに書き
戻される。したがって、一連のテストコマンド修正処理
の終了後に、実行コマンド記録ファイルからテストコマ
ンドを記録順に読出してロードモジュールのテストを行
うことにより、改めてテストコマンドの列を作成し直し
て同コマンド列を入力しなくても、修正後のテストコマ
ンド列に従うロードモジュールテストを行うことができ
る。Further, in the above configuration, when the correction execution mode is designated, a list of columns of test commands recorded in the execution command recording file is displayed on the screen,
It is possible to correct any test command in the list on the screen by operating the keyboard or the like. This modified test command is written back to the execution command record file. Therefore, after a series of test command correction processing is completed, the test commands are read from the execution command recording file in the recording order and the load module is tested, so that the test command sequence is not recreated and the command sequence is not input again. However, the load module test can be performed according to the modified test command sequence.
【0013】[0013]
【実施例】図1はこの発明の一実施例に係るソフトウェ
アテスト実行支援システムを実現する計算機の機能構成
を示すブロック図である。DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram showing the functional configuration of a computer that realizes a software test execution support system according to an embodiment of the present invention.
【0014】図1に示す計算機は、キーボード1、ディ
スプレイ装置2、フロッピーディスク装置3、磁気ディ
スク装置4、CPU5など、周知の構成を有している。The computer shown in FIG. 1 has a well-known configuration such as a keyboard 1, a display device 2, a floppy disk device 3, a magnetic disk device 4 and a CPU 5.
【0015】キーボード1は、文字列からなる各種コマ
ンドの入力等に用いられる。The keyboard 1 is used for inputting various commands including character strings.
【0016】ディスプレイ装置2は、計算機の利用者
(ここではソフトウェア開発者)に対するロードモジュ
ールテスト結果の表示等に用いられる。The display device 2 is used for displaying load module test results to a computer user (here, a software developer).
【0017】フロッピーディスク装置3は、ロードモジ
ュールのテスト実行に必要なテストデータを与える外部
記憶等として用いられる。The floppy disk device 3 is used as an external memory or the like which gives test data necessary for the test execution of the load module.
【0018】磁気ディスク装置4は、ロードモジュール
のテスト実行に用いられたテストコマンド列を記録する
ための実行コマンド記録ファイル41、およびフロッピ
ーディスク装置3から与えられるテストデータのファイ
ル(データファイル)の群(データファイル群)42等
を格納する外部記憶として用いられる。この磁気ディス
ク装置4には、テスト対象となるロードモジュールのフ
ァイル(ロードモジュールファイル)43も格納され
る。ここで、ファイル43内のロードモジュールのロー
ドモジュール名が“test.ldm”であるものとす
る。The magnetic disk device 4 is a group of an execution command recording file 41 for recording a test command string used for the test execution of the load module, and a file (data file) of test data given from the floppy disk device 3. It is used as an external storage for storing (data file group) 42 and the like. The magnetic disk device 4 also stores a load module file (load module file) 43 to be tested. Here, it is assumed that the load module name of the load module in the file 43 is "test.ldm".
【0019】CPU5は、入力コマンド認識部51、フ
ァイル入力部52、テスト実行部53、実行コマンド記
録部54、テストコマンド一覧表示部55、およびテス
トコマンド修正部56の各機能ブロックを有する。The CPU 5 has functional blocks of an input command recognition section 51, a file input section 52, a test execution section 53, an execution command recording section 54, a test command list display section 55, and a test command correction section 56.
【0020】入力コマンド認識部51は、キーボード1
からのキー入力の受付けを行い、コマンドが入力された
際にはその入力コマンドを判別して、その判別結果に応
じてCPU5内の各機能ブロックを制御する。The input command recognition unit 51 is the keyboard 1
When a command is input, the input command is discriminated and each functional block in the CPU 5 is controlled according to the discrimination result.
【0021】本実施例で適用されるコマンドには、ロー
ドモジュールのテスト実行のための各種テストコマンド
の他、フロッピーディスク装置3から磁気ディスク装置
4へのデータファイルの入力を指定するファイル入力コ
マンド、ロードモジュールテストの実行形態(実行モー
ド)を指定する実行モードコマンド等がある。この実行
モードコマンドは、テストを新規に実行するための新規
実行モードを指定する新規実行モードコマンド、テスト
を再度実行するための再実行モードを指定する再実行モ
ードコマンド、テストコマンドを修正してテストを再度
実行するための修正実行モードを指定する修正実行モー
ドコマンドの3種がある。The commands applied in this embodiment include various test commands for executing a test of the load module, a file input command for designating input of a data file from the floppy disk device 3 to the magnetic disk device 4, There is an execution mode command that specifies the execution mode (execution mode) of the load module test. This run mode command is a new run mode command that specifies a new run mode for a new run of the test, a rerun mode command that specifies a rerun mode for running the test again, and a test command modified to test There are three types of correction execution mode commands that specify the correction execution mode for re-executing.
【0022】ファイル入力部52は、入力コマンド認識
部51によるファイル入力コマンド判別結果に応じて、
フロッピーディスク装置3から磁気ディスク装置4への
データ(データファイル)入力を行う。The file input section 52, in accordance with the file input command discrimination result by the input command recognition section 51,
Data (data file) is input from the floppy disk device 3 to the magnetic disk device 4.
【0023】テスト実行部53は、入力コマンド認識部
51による実行モードコマンド判別結果により設定され
るテスト実行モードに応じて、キーボード1から入力さ
れて入力コマンド認識部51より渡されるテストコマン
ドまたは実行コマンド記録ファイル41に記録されてい
るテストコマンドに従うロードモジュールのテストを実
行する。The test execution unit 53 receives a test command or an execution command input from the keyboard 1 and passed from the input command recognition unit 51 according to the test execution mode set by the execution mode command discrimination result by the input command recognition unit 51. The load module test according to the test command recorded in the recording file 41 is executed.
【0024】実行コマンド記録部54は、新規実行モー
ドにおいて、キーボード1から入力されて実行されたテ
ストコマンドを実行コマンド記録ファイル41に記録す
る。The execution command recording section 54 records the test command input from the keyboard 1 and executed in the new execution mode in the execution command recording file 41.
【0025】テストコマンド一覧表示部55は、修正実
行モードにおいて、実行コマンド記録ファイル41に記
録されているテストコマンド列を読出し、テストコマン
ド一覧としてディスプレイ装置2に表示する。このテス
トコマンド一覧表示部55は、テストコマンド修正部5
6によって修正されたテストコマンドを実行コマンド記
録ファイル41に書き戻す処理も行う。The test command list display section 55 reads the test command sequence recorded in the execution command recording file 41 in the correction execution mode and displays it on the display device 2 as a test command list. The test command list display section 55 is used by the test command correction section 5
The test command modified by 6 is also written back to the execution command recording file 41.
【0026】テストコマンド修正部56は、テストコマ
ンド一覧中の利用者(ソフトウェア開発者)指定のテス
トコマンドを、利用者操作に応じて修正する。The test command modification unit 56 modifies the test command specified by the user (software developer) in the test command list according to the user operation.
【0027】次に、図1の構成の動作を図2のフローチ
ャートを参照して説明する。Next, the operation of the configuration of FIG. 1 will be described with reference to the flowchart of FIG.
【0028】ソフトウェア開発者は、磁気ディスク装置
4上に作成されているロードモジュールファイル43
(内のロードモジュール)に対して新規にテストを実行
しようとする場合、まずそのテストで使用するテストデ
ータのファイル(データファイル)が格納されているフ
ロッピーディスクをフロッピーディスク装置3にセット
して、同データファイルを磁気ディスク装置4に入力す
るためのファイル入力コマンドをキーボード1から入力
する。The software developer uses the load module file 43 created on the magnetic disk device 4.
When a new test is to be executed for (load module in), first set the floppy disk storing the test data file (data file) used in the test in the floppy disk device 3 and A file input command for inputting the same data file to the magnetic disk device 4 is input from the keyboard 1.
【0029】入力コマンド認識部51は、キーボード1
から入力されたコマンドがファイル入力コマンドである
と判別すると、同コマンドで指定されたデータファイル
の入力をファイル入力部52に対して要求する。これに
よりファイル入力部52は、フロッピーディスク装置3
(にセットされているフロッピーディスク)から、指定
のデータファイルを読込み、磁気ディスク装置4に、デ
ータファイル群42のうちの1データファイルとして格
納する。The input command recognition unit 51 is the keyboard 1
When it is determined that the command input from the file input command is a file input command, the file input unit 52 is requested to input the data file specified by the command. As a result, the file input unit 52 causes the floppy disk device 3 to
A specified data file is read from (the floppy disk set in (1)) and stored in the magnetic disk device 4 as one data file of the data file group 42.
【0030】このようにして、磁気ディスク装置4に
は、ソフトウェア開発者指定の2つのデータファイルf
1,f2が入力(格納)されたものとする。In this way, the magnetic disk device 4 has two data files f designated by the software developer.
It is assumed that 1 and f2 are input (stored).
【0031】次に、ソフトウェア開発者は、新規実行モ
ードを指定するための実行モードコマンド、即ち新規実
行モードコマンドをキーボード1から入力する。Next, the software developer inputs an execution mode command for designating a new execution mode, that is, a new execution mode command from the keyboard 1.
【0032】入力コマンド認識部51は、キーボード1
から入力された実行モードコマンドの受付けを行い(ス
テップS1)、同コマンドの指定する実行モードを判別
する(ステップS2)。この例のように、新規実行モー
ドコマンドの場合には、入力コマンド認識部51は新規
実行モードを判別して、テストコマンドの入力を待つ。The input command recognition unit 51 is the keyboard 1
The execution mode command input from is received (step S1), and the execution mode designated by the command is determined (step S2). In the case of the new execution mode command as in this example, the input command recognition unit 51 determines the new execution mode and waits for the input of the test command.
【0033】ここで、ソフトウェア開発者が、テストコ
マンドをキーボード1から入力すると、入力コマンド認
識部51は同コマンドを受付け(ステップS3)、テス
ト実行部53に対して同コマンドに従うロードモジュー
ルのテストを行わせる(ステップS4)。Here, when the software developer inputs a test command from the keyboard 1, the input command recognition unit 51 receives the command (step S3), and the test execution unit 53 tests the load module according to the command. It is performed (step S4).
【0034】本実施例で適用されるテストコマンドは、
図3(a)のフォーマットに示すように、テスト対象ロ
ードモジュールを(そのモジュール名により)指定する
ロードモジュール指定フィールド31と、機能を表わす
オプション指定フィールド32と、テストに用いるデー
タファイルをそのファイル名により指定するデータファ
イル指定フィールド33からなる。The test command applied in this embodiment is
As shown in the format of FIG. 3A, a load module designation field 31 that designates a load module to be tested (by its module name), an option designation field 32 that represents a function, and a data file used for the test have their filenames. The data file designation field 33 is designated by.
【0035】図3(b),(c)は、このテストコマン
ドの具体例を示す。FIGS. 3B and 3C show specific examples of this test command.
【0036】まず図3(a)のテストコマンドTC1
は、フィールド31で例えばデータソート用のロードモ
ジュール(ソートプログラム)のロードモジュール名
“test.ldm”を指定し、フィールド33でソー
ト対象となるデータファイルのファイル名“f1”を指
定し、フィールド32の“−a”で、モジュール名“t
est.ldm”のロードモジュールに従い、ファイル
名“f1”のデータファイルの全てのラインをソートし
て出力することを指定するものである。First, the test command TC1 shown in FIG.
Specifies the load module name "test.ldm" of the load module (sort program) for data sorting in the field 31, the file name "f1" of the data file to be sorted in the field 33, and the field 32 "-A" of the module name "t
est. According to the load module of "ldm", all lines of the data file having the file name "f1" are sorted and output.
【0037】次に図3(b)のテストコマンドTC2
は、フィールド31でデータソート用のロードモジュー
ル(ソートプログラム)のロードモジュール名“tes
t.ldm”を指定し、フィールド33でソート対象と
なるデータファイルのファイル名“f2”を指定し、フ
ィールド32の“−f var”で、モジュール名“t
est.ldm”のロードモジュールに従い、ファイル
名“f2”のデータファイルのうち“var”で指定し
た変数を含むラインだけをソートして出力することを指
定するものである。Next, the test command TC2 shown in FIG.
Is the load module name "tes" of the load module (sort program) for data sorting in the field 31.
t. "ldm" is designated, the file name "f2" of the data file to be sorted is designated in the field 33, and the module name "t" is designated by "-f var" in the field 32.
est. According to the load module of "ldm", it is specified to sort and output only the lines including the variable specified by "var" in the data file of file name "f2".
【0038】したがって、キーボード1から図3(b)
に示すテストコマンドTC1が入力されたものとする
と、テスト実行部53は、磁気ディスク装置4上のロー
ドモジュールファイル43に格納されている(テストコ
マンドTC1のロードモジュール指定フィールド31に
より指定された)ロードモジュール名“test.ld
m”のロードモジュールに従い、(テストコマンドTC
1のデータファイル指定フィールド33により指定され
た)データファイル群42中のデータファイル名がf1
のデータファイルの全てのラインをソートして出力する
テスト実行動作を行う。Therefore, from the keyboard 1 to FIG.
Assuming that the test command TC1 shown in FIG. 2 is input, the test execution unit 53 loads the load module file 43 (specified by the load module specification field 31 of the test command TC1) stored in the load module file 43 on the magnetic disk device 4. Module name "test.ld
According to the load module of "m", (test command TC
The data file name in the data file group 42 (designated by the data file designation field 33 of 1) is f1.
Performs a test execution operation that sorts and outputs all the lines of the data file.
【0039】テスト実行部53はこのテスト実行を終了
すると、その結果をディスプレイ装置2に表示すると共
に、実行したテストコマンドTC1を実行コマンド記録
部54に渡して、同テストコマンドTC1を磁気ディス
ク装置4上の実行コマンド記録ファイル41に記録させ
る(ステップS5)。When the test execution unit 53 completes the test execution, the test execution unit 53 displays the result on the display unit 2 and passes the executed test command TC1 to the execution command recording unit 54 so that the test command TC1 can be transmitted. It is recorded in the execution command recording file 41 (step S5).
【0040】次に入力コマンド認識部51は次のキー入
力を待つ。この状態で、終了を指定するコマンドではな
くて、例えば図3(c)に示すテストコマンドTC2が
入力されたものとすると(ステップS6)、入力コマン
ド認識部51は同コマンドTC2を受付け(ステップS
3)、テスト実行部53に対して当該テストコマンドT
C2に従うロードモジュールのテストを行わせる(ステ
ップS4)。Next, the input command recognition unit 51 waits for the next key input. In this state, if it is assumed that the test command TC2 shown in FIG. 3C is input instead of the command designating the end (step S6), the input command recognition unit 51 accepts the command TC2 (step S6).
3), the test command T to the test execution unit 53
The load module is tested according to C2 (step S4).
【0041】これにより、テストコマンドTC2のロー
ドモジュール指定フィールド31で指定されるロードモ
ジュール名“test.ldm”のロードモジュールに
従い、同コマンドTC2のデータファイル指定フィール
ド33で指定されるデータファイル名f2のデータファ
イルのうち、“var”で指定した変数を含むラインだ
けをソートして出力するテスト実行が行われる。このテ
スト実行を指定したテストコマンドTC2は、実行コマ
ンド記録部54により、実行コマンド記録ファイル41
内のテストコマンドTC1に後続する位置に記録される
(ステップS5)。As a result, according to the load module having the load module name "test.ldm" specified in the load module specification field 31 of the test command TC2, the data file name f2 specified in the data file specification field 33 of the command TC2 is changed. In the data file, a test execution is performed in which only the lines including the variable designated by "var" are sorted and output. The test command TC2 designating this test execution is executed by the execution command recording unit 54 by the execution command recording file 41.
It is recorded at a position subsequent to the test command TC1 in the above (step S5).
【0042】ここで、キーボード1から終了を示すコマ
ンドが入力されたものとすると、入力コマンド認識部5
1は新規実行モードでの一連のテスト実行の終了を判断
する(ステップS6)。Here, assuming that a command indicating termination is input from the keyboard 1, the input command recognition unit 5
1 determines the end of a series of test executions in the new execution mode (step S6).
【0043】次に、上記の新規実行モードでのロードモ
ジュールに対するテストの結果に従い、対応するソース
コードを修正してコンパイル・リンクし直してロードモ
ジュール名“test.ldm”のロードモジュールを
再作成したものとする。Next, according to the result of the test for the load module in the above new execution mode, the corresponding source code is modified, and compile / link is performed again to recreate the load module with the load module name "test.ldm". I shall.
【0044】この場合、プログラム開発者は再作成され
たロードモジュールに対して、先に行ったのと同一のテ
ストを行うために、再実行モードを指定する実行モード
コマンド、即ち再実行モードコマンドをキーボード1か
ら入力する。In this case, the program developer issues an execution mode command designating a re-execution mode, that is, a re-execution mode command, to the re-created load module in order to perform the same test as that performed previously. Input from the keyboard 1.
【0045】すると入力コマンド認識部51は、キーボ
ード1から入力された実行モードコマンドの受付けを行
い(ステップS1)、この例のように再実行モードコマ
ンドの場合には、再実行モードを判別する(ステップS
2)。Then, the input command recognition unit 51 receives the execution mode command input from the keyboard 1 (step S1), and in the case of the re-execution mode command as in this example, determines the re-execution mode ( Step S
2).
【0046】入力コマンド認識部51は再実行モードを
判別すると、その旨をテスト実行部53に通知して同テ
スト実行部53を起動する。When the input command recognition unit 51 determines the re-execution mode, the input command recognition unit 51 notifies the test execution unit 53 of the fact and activates the test execution unit 53.
【0047】これによりテスト実行部53は、まず実行
コマンド記録ファイル41から先頭のテストコマンド、
即ちテストコマンドTC1を取出す(ステップS7)。
次にテスト実行部53は、このテストコマンドTC1の
ロードモジュール指定フィールド31により指定された
ロードモジュール名“test.ldm”のロードモジ
ュール(ロードモジュールファイル43内のロードモジ
ュール)に従い、(テストコマンドTC1のデータファ
イル指定フィールド33により指定された)データファ
イル群42中のデータファイル名がf1のデータファイ
ルの全てのラインをソートして出力するテスト実行動作
を行う(ステップS8)。As a result, the test execution unit 53 first starts from the execution command recording file 41 to the first test command,
That is, the test command TC1 is fetched (step S7).
Next, the test execution unit 53 follows the load module (load module in the load module file 43) of the load module name “test.ldm” specified by the load module specification field 31 of the test command TC1 (test command TC1 A test execution operation of sorting and outputting all the lines of the data file having the data file name f1 in the data file group 42 (specified by the data file specification field 33) is performed (step S8).
【0048】テスト実行部53はステップS8を終了す
ると、実行コマンド記録ファイル41内に(先に実行し
たテストコマンドTC1の)次の未実行のテストコマン
ドがあるか否かをチェックする(ステップS9)。ここ
では、テストコマンドTC1の後続位置に未実行のテス
トコマンドTC2が存在する。Upon completion of step S8, the test execution section 53 checks whether or not there is a next unexecuted test command (of the previously executed test command TC1) in the execution command recording file 41 (step S9). . Here, an unexecuted test command TC2 exists at a position subsequent to the test command TC1.
【0049】この場合、テスト実行部53は、このテス
トコマンドTC2を取出し(ステップS10)、同コマ
ンドTC2のロードモジュール指定フィールド31によ
り指定されたロードモジュール名“test.ldm”
のロードモジュール(ロードモジュールファイル43内
のロードモジュール)に従い、(テストコマンドTC1
のデータファイル指定フィールド33により指定され
た)データファイル群42中のデータファイル名がf2
のデータファイルのうち、“var”で指定した変数を
含むラインだけをソートして出力するテスト実行動作を
行う(ステップS8)。In this case, the test execution section 53 takes out the test command TC2 (step S10), and the load module name "test.ldm" designated by the load module designation field 31 of the command TC2.
According to the load module (load module in the load module file 43) of (test command TC1
Of the data file group 42 designated by the data file designation field 33 of
The test execution operation is performed to sort and output only the lines including the variable designated by "var" in the data file (step S8).
【0050】このように、再実行モードでは、新規実行
モードで使用されて実行コマンド記録ファイル41に記
録されたテストコマンド列(TC1,TC2)に従い、
再作成後のロードモジュールに対して、再作成前に行っ
たのと同一のテストが自動的に行われる。すると、実行
コマンド記録ファイル41内には未実行のテストコマン
ドがなくなり、再実行モードでの一連のテスト実行は終
了となる。As described above, in the re-execution mode, according to the test command string (TC1, TC2) used in the new execution mode and recorded in the execution command recording file 41,
The rebuilt load module is automatically tested the same way as it was done before the rebuild. Then, there is no unexecuted test command in the execution command recording file 41, and the series of test executions in the re-execution mode ends.
【0051】次に、以前行ったテスト内容を一部変えて
再実行する修正実行について説明する。Next, a description will be given of the correction execution in which the contents of the test performed previously are partially changed and re-executed.
【0052】まずプログラム開発者は、以前に実行した
テスト内容を規定するテストコマンド列に対して例えば
オプションとデータファイルの組合せを変更するなど、
テストコマンドの修正を行った後、再度ロードモジュー
ルのテストを実行したい場合、修正実行モードを指定す
るための実行モードコマンド、即ち修正実行モードコマ
ンドをキーボード1から入力する。First, the program developer changes the combination of the option and the data file, for example, with respect to the test command string that defines the test contents executed before.
When it is desired to execute the test of the load module again after correcting the test command, an execution mode command for designating the correction execution mode, that is, the correction execution mode command is input from the keyboard 1.
【0053】すると入力コマンド認識部51は、キーボ
ード1から入力された実行モードコマンドの受付けを行
い(ステップS1)、この例のように修正実行モードコ
マンドの場合には、修正実行モードを判別する(ステッ
プS2)。Then, the input command recognition unit 51 receives the execution mode command input from the keyboard 1 (step S1), and in the case of the correction execution mode command as in this example, determines the correction execution mode ( Step S2).
【0054】入力コマンド認識部51は修正実行モード
を判別すると、まずテストコマンド一覧表示部55を起
動する。When the input command recognition unit 51 determines the correction execution mode, it first activates the test command list display unit 55.
【0055】これによりテストコマンド一覧表示部55
は、実行コマンド記録ファイル41に記録されているテ
ストコマンド列を読出し、テストコマンド一覧としてデ
ィスプレイ装置2に表示する(ステップS11)。As a result, the test command list display section 55
Reads out the test command sequence recorded in the execution command recording file 41 and displays it on the display device 2 as a list of test commands (step S11).
【0056】ソフトウェア開発者は、このディスプレイ
装置2に表示されているテストコマンド一覧上で、修正
を必要とするテストコマンドを指定し、通常の文書編集
と同様にして、当該テストコマンドを修正するための操
作を、キーボード1を用いて行う。The software developer designates a test command that needs to be corrected on the test command list displayed on the display device 2 and corrects the test command in the same manner as in normal document editing. Is operated using the keyboard 1.
【0057】入力コマンド認識部51は、このテストコ
マンド修正のためのキー入力を受付けると(ステップS
12)、テストコマンド修正部56を起動する。これに
よりテストコマンド修正部56は、テストコマンド一覧
表示部55によりディスプレイ装置2に表示されている
テストコマンド一覧上の指定のテストコマンドに対し
て、ソフトウェア開発者のキー入力操作に従う修正を行
う(ステップS13)。この修正の結果は、テストコマ
ンド一覧表示部55によりテストコマンド一覧に反映さ
れる。When the input command recognition section 51 receives a key input for modifying the test command (step S
12), The test command correction unit 56 is activated. As a result, the test command modification unit 56 modifies the designated test command on the test command list displayed on the display device 2 by the test command list display unit 55 according to the key input operation of the software developer (step S13). The result of this modification is reflected in the test command list by the test command list display unit 55.
【0058】以上のステップS12,S13は、テスト
コマンド修正のためのキー入力がなされる都度行われ
る。The above steps S12 and S13 are carried out each time a key input for modifying the test command is made.
【0059】やがて、キーボード1から終了を示すコマ
ンドが入力されると、入力コマンド認識部51は一連の
テストコマンド修正の終了を判断し(ステップS1
4)、テストコマンド一覧表示部55にその旨を通知す
る。When a command indicating the end is input from the keyboard 1 eventually, the input command recognition unit 51 determines the end of the series of test command corrections (step S1).
4) Notify the test command list display section 55 to that effect.
【0060】するとテストコマンド一覧表示部55は、
修正後のテストコマンド一覧(テストコマンドの列)を
実行コマンド記録ファイル41に書き戻し(ステップS
15)、しかる後にテスト実行部53を起動する。Then, the test command list display section 55 displays
The modified test command list (test command sequence) is written back to the execution command recording file 41 (step S
15) Then, the test execution unit 53 is activated.
【0061】テスト実行部53は、テストコマンド一覧
表示部55により起動されると、再実行モードの場合と
同様に、実行コマンド記録ファイル41からテストコマ
ンドを順次取出し、同コマンドの指定するロードモジュ
ールに従い、同コマンドの指定するデータファイルを対
象に、同コマンドの指定するオプション処理のテスト実
行を行う。When the test execution section 53 is activated by the test command list display section 55, the test commands are sequentially fetched from the execution command recording file 41 in the same manner as in the re-execution mode, and according to the load module designated by the command. , Performs a test execution of the option process specified by the command, targeting the data file specified by the command.
【0062】なお、前記実施例では、磁気ディスク装置
4上に作成されているテスト対象ロードモジュールファ
イル43が1つである場合について説明したが、これに
限るものではなく、複数のロードモジュールのファイル
の場合にも同様に適用できる。但し、実行コマンド記録
ファイル41にテストコマンド列を記録する際には、例
えばロードモジュール名に対応付ける必要がある。ま
た、再実行モードコマンドおよび修正実行モードコマン
ド中で、対象となるロードモジュールのロードモジュー
ル名を指定する必要がある。In the above-described embodiment, the case where the number of test target load module files 43 created on the magnetic disk device 4 is one has been described, but the present invention is not limited to this, and the files of a plurality of load modules are used. The same can be applied to the case. However, when recording the test command sequence in the execution command recording file 41, it is necessary to associate it with the load module name, for example. In addition, it is necessary to specify the load module name of the target load module in the re-execution mode command and the correction execution mode command.
【0063】[0063]
【発明の効果】以上詳述したようにこの発明によれば、
ロードモジュールのテスト時に外部から入力されたテス
トコマンドを逐次実行コマンド記録ファイルに記録して
おき、再実行モードでは、同ファイルから以前に用いた
テストコマンドを記録順に読出してロードモジュールの
テストを行う構成としたので、改めてテストコマンド列
を入力しなくても、作り直したロードモジュールに対し
て以前と同じテストを自動的に行うことができる。As described above in detail, according to the present invention,
The test command input from the outside at the time of testing the load module is recorded in the sequential execution command recording file, and in the re-execution mode, the test commands used previously are read from the same file in the order of recording to test the load module. Therefore, it is possible to automatically perform the same test as before on the rebuilt load module without inputting the test command sequence again.
【0064】また、この発明によれば、修正実行モード
では、実行コマンド記録ファイルに記録されているテス
トコマンドの列の一覧を画面表示して、その一覧中の任
意のテストコマンドの修正をユーザ操作に従って受付
け、修正されたテストコマンドを実行コマンド記録ファ
イルに書き戻した後、同ファイルから以前に用いたテス
トコマンドを記録順に読出してロードモジュールのテス
トを行う構成としたので、以前に実行したテスト内容を
一部変更してテストを行う場合に、その変更後のテスト
内容に対応したテストコマンド列を改めて作成して入力
する必要がない。Further, according to the present invention, in the correction execution mode, a list of test command columns recorded in the execution command recording file is displayed on the screen, and any test command in the list can be corrected by the user operation. According to the configuration, after the test command modified and accepted is written back to the execution command record file, the test commands used previously are read from the file in the recording order to test the load module. When performing a test with a partial change, it is not necessary to newly create and input a test command string corresponding to the changed test content.
【図1】この発明の一実施例に係るソフトウェアテスト
実行支援システムを実現する計算機の機能構成を示すブ
ロック図。FIG. 1 is a block diagram showing a functional configuration of a computer that realizes a software test execution support system according to an embodiment of the present invention.
【図2】同実施例におけるロードモジュールテストの処
理手順を示すフローチャート。FIG. 2 is a flowchart showing a processing procedure of a load module test in the embodiment.
【図3】同実施例で適用されるテストコマンドのフォー
マットと具体例を示す図。FIG. 3 is a diagram showing a format and a specific example of a test command applied in the embodiment.
1…キーボード、2…ディスプレイ装置、3…フロッピ
ーディスク装置、4…磁気ディスク装置、5…CPU、
41…実行コマンド記録ファイル、42…データファイ
ル群、43…ロードモジュールファイル、51…入力コ
マンド認識部、52…ファイル入力部、53…テスト実
行部、54…実行コマンド記録部、55…テストコマン
ド一覧表示部、56…テストコマンド修正部。1 ... Keyboard, 2 ... Display device, 3 ... Floppy disk device, 4 ... Magnetic disk device, 5 ... CPU,
41 ... Execution command recording file, 42 ... Data file group, 43 ... Load module file, 51 ... Input command recognition section, 52 ... File input section, 53 ... Test execution section, 54 ... Execution command recording section, 55 ... Test command list Display unit, 56 ... Test command correction unit.
Claims (2)
テスト対象のロードモジュールに対して種々のテストコ
マンドを与えてテストを行うのを支援するソフトウェア
テスト実行支援システムであって、 前記テストコマンドの列を記録するための実行コマンド
記録ファイルと、 前記テストを実際に実行した際に外部から入力されたテ
ストコマンドを前記実行コマンド記録ファイルに逐次記
録するコマンド記録手段とを具備し、前記テストを再実
行するための再実行モードでは、前記実行コマンド記録
ファイルから前記テストコマンドを記録順に読出し、同
コマンドを用いてロードモジュールのテストを行うよう
にしたことを特徴とするソフトウェアテスト実行支援シ
ステム。1. In the test phase of software development,
A software test execution support system for supporting various test commands by giving various test commands to a load module to be tested, wherein an execution command recording file for recording a sequence of the test commands and the test A command recording means for sequentially recording a test command input from the outside when the test is actually executed in the execution command recording file, and in a re-execution mode for re-executing the test, the execution command recording file is read from the execution command recording file. A software test execution support system characterized in that the test commands are read in a recording order and the load module is tested using the commands.
いる前記テストコマンドを修正して前記テストを再実行
する修正実行モードにおいて、前記コマンド記録ファイ
ルに記録されている前記テストコマンドの一覧を表示す
る一覧表示手段と、この一覧表示手段により表示された
テストコマンド一覧中の任意のテストコマンドを修正す
るためのテストコマンド修正手段と、このテストコマン
ド修正手段によって修正されたテストコマンドを前記実
行コマンド記録ファイルに書き戻す手段とを更に具備
し、前記修正実行モードでは、前記テストコマンド修正
手段による一連のテストコマンド修正処理の終了後に、
前記実行コマンド記録ファイルから前記テストコマンド
を記録順に読出し、同コマンドを用いてロードモジュー
ルのテストを行うようにしたことを特徴とする請求項1
記載のソフトウェアテスト実行支援システム。2. A list for displaying a list of the test commands recorded in the command recording file in a correction execution mode in which the test command recorded in the command recording file is modified and the test is re-executed. Display means, a test command correction means for correcting any test command in the list of test commands displayed by the list display means, and a test command corrected by the test command correction means in the execution command recording file. Write-back means is further provided, and in the correction execution mode, after completion of a series of test command correction processing by the test command correction means,
2. The load module is tested by reading the test commands from the execution command recording file in the order of recording and using the command.
Software test execution support system described.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5188839A JPH0784830A (en) | 1993-06-30 | 1993-06-30 | Software test execution support system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5188839A JPH0784830A (en) | 1993-06-30 | 1993-06-30 | Software test execution support system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0784830A true JPH0784830A (en) | 1995-03-31 |
Family
ID=16230748
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5188839A Pending JPH0784830A (en) | 1993-06-30 | 1993-06-30 | Software test execution support system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0784830A (en) |
-
1993
- 1993-06-30 JP JP5188839A patent/JPH0784830A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5926638A (en) | Program debugging system for debugging a program having graphical user interface | |
| US5361357A (en) | Method and apparatus for optimizing computer file compilation | |
| KR930000633B1 (en) | Active coping computer systems | |
| US7577557B2 (en) | Simulator and simulation method for behaviors of processors | |
| JPH03118635A (en) | Incremental compiler for source code developing system | |
| JPH06309193A (en) | Method and apparatus for verifying operation of machine language program | |
| JP4503203B2 (en) | Method and apparatus for creating test program for evaluating information processing apparatus, and program describing processing for the same | |
| JP3516843B2 (en) | Database access method | |
| JP3461185B2 (en) | Method and apparatus for registering source code line number to load module | |
| JP3094475B2 (en) | Program verification method | |
| US7076780B2 (en) | Application program interface for a computer program | |
| Giretti | Learning the Best Practices with the Best Tools | |
| JPH036630A (en) | Check system for interactive processing program | |
| Both | Command-Line Programming | |
| JP3728368B2 (en) | Resource conflict check device, assemble device, link device, instruction pipeline simulation device, resource conflict check method, and medium on which resource conflict check program is recorded | |
| Tomašević et al. | Software System for Similarity Detection in the Picocomputer Assembly Programs | |
| JP2910548B2 (en) | Data check device | |
| JPH0267643A (en) | Device for designing data table | |
| Streich | Applied Force. | |
| JPH1115645A (en) | Executable program creation device and executable program creation method | |
| JPH0468446A (en) | Debugging supporting device | |
| JPH0267644A (en) | Specification verifying system | |
| JPH06236260A (en) | Automatic package altering device | |
| US20060225063A1 (en) | Method for configuring non-script language library files to be run as scripts | |
| JPS63257027A (en) | Inputting/outputting system for file read picture |