JPH04247532A - Test supporting system - Google Patents

Test supporting system

Info

Publication number
JPH04247532A
JPH04247532A JP3033526A JP3352691A JPH04247532A JP H04247532 A JPH04247532 A JP H04247532A JP 3033526 A JP3033526 A JP 3033526A JP 3352691 A JP3352691 A JP 3352691A JP H04247532 A JPH04247532 A JP H04247532A
Authority
JP
Japan
Prior art keywords
test
module
modules
program
execution
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
JP3033526A
Other languages
Japanese (ja)
Inventor
Miyuki Ono
美由紀 小野
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 JP3033526A priority Critical patent/JPH04247532A/en
Publication of JPH04247532A publication Critical patent/JPH04247532A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、モジュール化可能なプ
ログラミング言語におけるプログラムテストに関し、特
に、テストに関連するモジュールなどの情報をデータベ
ース化し、これによりテストの効率化を図るテスト支援
システムに係る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program test in a modular programming language, and more particularly to a test support system that creates a database of information on modules and the like related to the test and thereby improves the efficiency of the test.

【0002】0002

【従来の技術】プログラムは複数のモジュールから構成
されており、そのうちの或るモジュールを更新した場合
は再テストを行うことが必要となるが、この更新により
再実行すべきテストすべてを把握することは難しい。し
かし、再実行すべきテストを得る手段は提供されておら
ず、プログラムのテストを行う者が自分で把握しておか
なければならない。これらの作業は、従来からプログラ
ム担当者の経験と判断に頼っていた。
[Background Art] A program is composed of multiple modules, and if a certain module among them is updated, it is necessary to retest it, but by updating it, it is necessary to understand all the tests that need to be re-executed. is difficult. However, no means are provided to obtain the tests to be rerun, and those testing the program must figure this out themselves. These tasks have traditionally relied on the experience and judgment of program personnel.

【0003】また、プログラムのある機能をテストしよ
うとする場合、プログラムを構成するすべてのモジュー
ルが必要となるわけではない。従来の方式では、必要と
思われるモジュールのみを結合して実行ファイルを作成
することは可能だが、実行するテストにどのモジュール
が必要かを把握する手段が提供されていなかった。
[0003] Furthermore, when testing a certain function of a program, not all modules making up the program are required. With conventional methods, it is possible to create an executable file by combining only the modules deemed necessary, but there is no way to determine which modules are required for the test to be executed.

【0004】0004

【発明が解決しようとする課題】上述のように、従来、
プログラムのモジュールを変更する場合のテストはプロ
グラム担当者の経験と判断に頼っていたため、以下のよ
うな問題点があった。例えば、或るモジュールを更新し
、テストを再実行する場合、テストの内容の判断は、担
当者に任かされている。このとき、修正しようとした機
能についてのテストは行っても、該モジュールが他の機
能に関係していた場合にはこれらの機能のテストを行う
ことを忘れることがある。このように、更新したモジュ
ールの関係する機能をきちんとテストせずに使用してし
まうと、思いがけないところでバグを引き起こすことに
なり、バクの原因追求に時間を取られることになる。
[Problem to be solved by the invention] As mentioned above, conventionally,
Testing when changing program modules relied on the experience and judgment of the person in charge of the program, which caused the following problems. For example, when a certain module is updated and a test is re-executed, the decision on the content of the test is left to the person in charge. At this time, even if the function to be modified is tested, if the module is related to other functions, the user may forget to test these functions. In this way, if you use the functions related to updated modules without properly testing them, you may end up causing bugs in unexpected places, and it will take time to find the cause of the bug.

【0005】また、実行するテストにどのモジュールが
必要かを把握する手段が提供されていなかったため、不
要なモジュールのオブジェクトコードを結合することと
なり、大規模なプログラムのテストでは、実行可能ファ
イルを作成するのに要する時間や実行可能ファイルの大
きさが、かなりなものになっていた。また、例えば、グ
ループで開発を行っている場合に、実際のテストには不
要であっても他人の更新したモジュールを再結合するこ
とがある。このような場合に、バグが出ると、自分の更
新したものが原因であるのか他人の更新したものが原因
であるのかが判別できなくなる。
[0005] Furthermore, since there was no means provided for determining which modules are required for a test to be executed, object codes of unnecessary modules were combined, and when testing a large program, it was difficult to create an executable file. The time required to do so and the size of the executable file were considerable. Furthermore, for example, when developing in a group, modules updated by others may be recombined even if they are not necessary for actual testing. In such a case, if a bug occurs, it becomes impossible to determine whether the problem is caused by something you updated or something someone else updated.

【0006】また、さらに、複数のモジュールから構成
されるプログラムのテストを行う場合には、テストの進
捗状況を細かく把握することが必要である。そのため、
モジュール毎のテストの進捗を的確に把握できる技術が
望まれる。
Furthermore, when testing a program composed of a plurality of modules, it is necessary to closely monitor the progress of the test. Therefore,
A technology that can accurately grasp the progress of testing for each module is desired.

【0007】本発明はこのような従来の問題点に鑑み、
複数のモジュールから構成されるプログラムのモジュー
ルを変更した場合に効率的なテストを行なうことのでき
る手段を提供することを目的としている。
[0007] In view of these conventional problems, the present invention
The purpose of this invention is to provide a means by which efficient testing can be performed when a module of a program consisting of a plurality of modules is changed.

【0008】[0008]

【課題を解決するための手段】本発明によれば、上述の
目的は、前記特許請求の範囲に記載した手段により達成
される。すなわち、請求項1の発明は、モジュール化可
能なプログラミング言語のプログラムのテストを支援す
るシステムであって、実行するテストとテスト対象モジ
ュールの関係を対応づけしたテスト対応モジュール表を
有するデータベース部と、テスト実行要求、または、支
援情報要求の入力を受ける入力手段と、上記入力がテス
ト実行要求の場合にテストを実行するとともに、該テス
トの実行で関与したモジュールをデータベース部のテス
ト対応モジュール表へ記録する実行手段と、モジュール
を更新したとき、該モジュール名を基にデータベース部
に格納されたテスト対応モジュール表からテスト名を抽
出する検索手段と、テスト支援の処理結果の情報を表示
する出力手段とを設けたテスト支援システムである。
According to the invention, the above objects are achieved by the means set out in the claims. That is, the invention according to claim 1 is a system for supporting the testing of a program in a modularizable programming language, comprising: a database unit having a test compatible module table that associates a relationship between a test to be executed and a module to be tested; An input means for receiving input of a test execution request or support information request, and executing the test when the above input is a test execution request, and recording the modules involved in the execution of the test in the test compatible module table of the database section. an execution means for updating a module, a search means for extracting a test name from a test compatible module table stored in a database section based on the module name, and an output means for displaying information on test support processing results. This is a test support system with

【0009】請求項2の発明は、データベース部に、テ
ストするプログラムのモジュール別に該モジュールの実
行可能ファイルの作成情報を対応づけた実行可能情報を
設けるとともに、モジュールを更新し、該モジュールを
テストするとき、テストを実施するプログラムが結合し
必要とするモジュールを、該テスト名を基にデータベー
ス部に格納したテスト対応モジュール表から検索し抽出
する検索手段と、上記手段により抽出したモジュールを
基に実行可能ファイル作成情報の情報によって実行可能
ファイル作成の処理手段とを設けた請求項1記載のテス
ト支援システムである。
[0009] The invention of claim 2 provides executable information in which each module of a program to be tested is associated with creation information of an executable file of the module, updates the module, and tests the module. a search means for searching and extracting modules required by a program to be combined with a test program from a test compatible module table stored in a database section based on the test name, and execution based on the modules extracted by the above means. 2. The test support system according to claim 1, further comprising processing means for creating an executable file based on information on the executable file creation information.

【0010】請求項3の発明は、データベース部に、テ
ストモジュールから呼ばれ連係してテストする被呼モジ
ュールの関係を対応づけたモジュールテスト情況表を設
けるとともに、テスト実行時にテストする関係モジュー
ルの発呼モジュールから呼ばれ連係してテストする被呼
モジュールの実施結果をデータベース部のモジュールテ
スト状況表に記録する実行手段と、モジュールのテスト
進捗と残りのテストの状況を把握するとき、プログラム
名を基にデータベース部に格納したモジュールテスト状
況表の該当する表を抽出する検索手段と、上記手段によ
り抽出したモジュールテスト状況表からテストを実行し
たモジュール数をテストを行うべき対象モジュール数で
除し、その比率で表すテスト進捗状況と、未テストのモ
ジュール一覧を作成する処理手段とを設けた請求項1記
載のテスト支援システムである。
[0010] The invention of claim 3 provides a module test status table in the database section that associates the relationship between called modules that are called from a test module and are tested in conjunction with each other, and also provides a module test status table that associates the relationship between called modules that are called from a test module and are tested in conjunction with each other. An execution means that records the execution results of the called module called by the calling module and tested in conjunction with the module test status table in the database section, and an execution means that records the execution results of the called module that is called by the calling module and is tested in conjunction with the called module. a search means for extracting a corresponding table from the module test status table stored in the database section; and a search means for extracting a corresponding table from the module test status table stored in the database section; 2. The test support system according to claim 1, further comprising processing means for creating a test progress status expressed as a ratio and a list of untested modules.

【0011】[0011]

【作用】図1に本発明の原理を説明するブロック図を示
す。本発明によるシステムは同図に示すように入力を受
付け解析を行う入力部1と、利用者の要求がテストの実
行であった場合に実行を行い、必要な情報をデータベー
ス部6に格納する実行部2と、利用者の要求がデータベ
ースの情報を必要とする場合にデータベースの検索を行
う検索部3と、検索した情報を処理する処理部4および
結果を利用者に通知するための出力部5とから構成され
る。図2は、データベース部6に格納するテスト対応モ
ジュール表6a、モジュールテスト状況表6b、および
、実行可能ファイル作成情報6cの構造を示す。
[Operation] FIG. 1 shows a block diagram illustrating the principle of the present invention. As shown in the figure, the system according to the present invention includes an input section 1 that receives input and analyzes it, and an execution section that executes the test when the user's request is to execute the test and stores the necessary information in the database section 6. unit 2, a search unit 3 that searches the database when the user's request requires information in the database, a processing unit 4 that processes the searched information, and an output unit 5 that notifies the user of the results. It consists of FIG. 2 shows the structure of the test compatible module table 6a, module test status table 6b, and executable file creation information 6c stored in the database section 6.

【0012】請求項1の発明は、実行部2aにおいて、
モジュール化構造を有するプログラムのテストを実行す
るとき、テストの実行を入力部1より入力する。実行部
2aは、実行時に、そのプログラムをテストするテスト
名(テストをパターン別等に区分して行うとき、テスト
実行単位に付けた名称)と該テストで実行のモジュール
名を抽出し、プログラム名をキーとしてデータベース部
6のテスト対応モジュール表6a(図2(a))の該当
する表にテスト名とモジュールを記録し格納する。
[0012] In the invention of claim 1, in the execution unit 2a,
When executing a test of a program having a modular structure, a test execution instruction is inputted from the input unit 1. At the time of execution, the execution unit 2a extracts the test name for testing the program (the name given to the test execution unit when the test is divided into patterns, etc.) and the module name to be executed in the test, and extracts the program name. Using this as a key, the test name and module are recorded and stored in the corresponding table of the test compatible module table 6a (FIG. 2(a)) of the database section 6.

【0013】また、或るモジュールの内容を変更し、更
新したとき、再度テストすべきテスト名を検索する場合
は、プログラム名とモジュール名を入力部1より入力し
、検索部3aがプログラム名をキーとして、データベー
ス部6のテスト対応モジュール表6a(図2(a))を
検索し該当の表を抽出する。その表から入力で指定した
モジュールのテスト名一覧を抽出し、出力部5に表示す
る。
[0013] Furthermore, when the contents of a certain module are changed and updated, if you want to search for the test name to be tested again, input the program name and module name from the input section 1, and the search section 3a will input the program name. As a key, the test compatible module table 6a (FIG. 2(a)) in the database section 6 is searched and the corresponding table is extracted. A list of test names for the module specified by input is extracted from the table and displayed on the output section 5.

【0014】請求項2の発明は、或るモジュールの内容
を変更し、更新したとき、そのプログラムのテストに必
要な結合すべきモジュールを把握して、実行可能ファイ
ルを作成するため、実行可能ファイル作成に必要なモジ
ュールを検索するためプログラム名とテスト名を入力部
1より入力し、検索部3bは、プログラム名をキーとし
てデータベース部6のテスト対応モジュール表6a(図
2(a))から該当の表を検索し、その表から入力で指
定したテスト名で実行に必要とするモジュール一覧を抽
出する。処理部4aは、検索部3bで抽出したモジュー
ル一覧を基に、データベース部6の実行可能ファイル作
成情報6c(図2(c))に予め利用者が保有し記録し
てある情報から該当するモジュールのオブジェクトファ
イルを結合編集して実行可能ファイルを作成する。オブ
ジェクトファイルが作成されていない場合は、実行可能
ファイル作成情報6c(図2(c))の情報に基づきソ
ースファイルをコンパイルしてオブジェクトファイルを
作成し、前記の手順でオブジェクトファイルを結合編集
して実行可能ファイルを作成する。
[0014] In the invention of claim 2, when the contents of a certain module are changed and updated, the modules to be combined necessary for testing the program are recognized and an executable file is created. In order to search for the module required for creation, a program name and a test name are input from the input section 1, and the search section 3b searches the test corresponding module table 6a (FIG. 2(a)) in the database section 6 using the program name as a key. Search the table and extract from that table a list of modules required for execution with the test name specified in the input. Based on the list of modules extracted by the search unit 3b, the processing unit 4a selects a corresponding module from information previously held and recorded by the user in the executable file creation information 6c (FIG. 2(c)) of the database unit 6. Combine and edit object files to create an executable file. If an object file has not been created, compile the source file based on the information in executable file creation information 6c (Figure 2(c)) to create an object file, and combine and edit the object file using the above procedure. Create an executable file.

【0015】請求項3の発明は、実行部2bにおいて、
モジュール化構造を有するプログラムのテストを実行す
るとき、テストの実行を入力部1より入力する。実行部
2bは、実行時に、テストする関係モジュールで、発呼
モジュールから呼ばれ連係してテストを行う被呼モジュ
ールのうち実行したモジュールを抽出し、プログラム名
をキーとしてデータベース部6のモジュールテスト状況
表6b(図2(b))の該当する表に発呼モジュール別
の被呼モジュールを記録し格納する。なお、モジュール
テスト状況表6bは、予め利用者がテストすべき発呼モ
ジュールと連係してテストする被呼モジュールのすべて
を記録し、格納しておく。
[0015] In the invention of claim 3, in the execution unit 2b,
When executing a test of a program having a modular structure, a test execution instruction is inputted from the input unit 1. During execution, the execution unit 2b extracts the executed modules among the related modules to be tested among the called modules that are called by the calling module and tests in conjunction with each other, and records the module test status in the database unit 6 using the program name as a key. The called module for each calling module is recorded and stored in the corresponding table of Table 6b (FIG. 2(b)). Note that the module test status table 6b records and stores in advance all the called modules to be tested in conjunction with the calling module to be tested by the user.

【0016】また、テストの実施進捗状況の把握および
未テストのモジュール一覧の作成を要求する場合は、上
記を要求するプログラム名を入力部1より入力し、検索
部3cは、プログラム名をキーとしてデータベース部6
のモジュールテスト状況表6b(図2(b))から該当
の表を抽出する。処理部4bは、前記で抽出した表から
、テスト実施のモジュール(図では黒丸印で示している
)をテスト対象のモジュールで除算し、その比率で表す
テスト進捗状況と、未テストモジュール(図では白丸印
で示している)の一覧表を作成し出力部5に表示する。
[0016] When requesting to grasp the progress of testing and to create a list of untested modules, input the name of the program for which the above is requested from the input section 1, and the search section 3c uses the program name as a key. Database section 6
The corresponding table is extracted from the module test status table 6b (FIG. 2(b)). The processing unit 4b divides the tested module (indicated by a black circle in the figure) by the module to be tested from the table extracted above, and calculates the test progress status expressed by the ratio and the untested module (in the figure). (indicated by white circles) is created and displayed on the output unit 5.

【0017】[0017]

【実施例】図3は、本発明の一実施例を示す構成図で、
本実施例は、請求項1、2の発明に対応している。なお
、図6は、実施例のデータベースの構造を示す図である
[Embodiment] FIG. 3 is a configuration diagram showing an embodiment of the present invention.
This embodiment corresponds to the inventions of claims 1 and 2. Note that FIG. 6 is a diagram showing the structure of the database of the embodiment.

【0018】図3において、入力部11からプログラム
のテストを要求された場合は、実施部12の処理を行い
、その処理結果をデータベース部16のテスト対応モジ
ュール表16aに格納し、処理終了を出力部15に表示
する。プログラムの実行をプログラム実行部12aで開
始した後、実行に関与したモジュール一覧獲得部12b
からデータベースへの情報格納部12cの処理は、図4
のモジュール一覧獲得情報の処理の流れ図により行う。 すなわち、処理P1でプログラムの実行を開始する。処
理P2でプログラム名をキーとして、データベース部1
6のテスト対応モジュール表16a(図6(a))を検
索し抽出する。そして、処理P3によって、実行するテ
スト名をキーとして、上記で抽出した表を検索する。次
に、処理P4によりテストするプログラムのモジュール
のテストを実行する。処理P5によって、前記P3で検
索した該当のテスト対応モジュール表にテスト名と関与
したモジュール名および実行したモジュールにマーキン
グ(図6(a)のように)して格納する。処理P6で実
行すべきモジュールのテスト終了を判断し、すべてのテ
スト実行後に終了する。
In FIG. 3, when a program test is requested from the input section 11, the execution section 12 performs the processing, stores the processing result in the test compatible module table 16a of the database section 16, and outputs the completion of processing. Displayed in section 15. After the program execution unit 12a starts executing the program, the module list acquisition unit 12b involved in the execution
The processing of the information storage unit 12c from to the database is shown in FIG.
This is done according to the flowchart of the module list acquisition information processing. That is, execution of the program is started in process P1. In process P2, using the program name as a key, database section 1
The test compatible module table 16a (FIG. 6(a)) of No. 6 is searched and extracted. Then, in process P3, the table extracted above is searched using the name of the test to be executed as a key. Next, in process P4, a test of the module of the program to be tested is executed. In process P5, the test name, the module name involved, and the executed module are marked (as shown in FIG. 6(a)) and stored in the corresponding test corresponding module table searched in P3. In process P6, it is determined whether the test of the module to be executed is finished, and the process ends after all the tests have been executed.

【0019】モジュールの関係するテスト名を要求され
た場合には、対応表検索部13aでプログラム名をキー
としてデータベース16aから該当するテスト対応モジ
ュール表を検索し、指定されたモジュールの関係するテ
スト名の一覧を得てこれを出力部15により出力装置に
表示する。この場合の例を図6(a)で説明する。同図
は、a,b,c,d,e,fの6つモジュールから構成
されるプログラムPを例としている。プログラムPでは
test1、test2、test3の3つテストが現
在行われている。各テストの実行に関与したモジュール
は同図の通りである。ここで、モジュールbを更新し、
これにより再テストすべきものを問い合わせると、te
st1とtest2が得られる。
When a test name related to a module is requested, the corresponding test corresponding module table is searched from the database 16a using the program name as a key in the correspondence table search unit 13a, and the test name related to the specified module is searched. A list is obtained and displayed on the output device by the output unit 15. An example of this case will be explained with reference to FIG. 6(a). The figure takes as an example a program P consisting of six modules: a, b, c, d, e, and f. In program P, three tests, test1, test2, and test3, are currently being performed. The modules involved in the execution of each test are shown in the figure. Here, update module b,
When you ask what should be retested by this, te
st1 and test2 are obtained.

【0020】以上は、請求項1の発明に対応した実施例
についての説明である。次に請求項2に対応する説明を
以下に述べる。図3において、入力部11からテスト用
の実行可能ファイルの作成を要求された場合には、対応
表検索部13aでプログラム名をキーとしてデータベー
ス16aから該当するテスト対応モジュール表を検索し
、指定されたテスト名の実行に関与したモジュール名の
一覧を取り出す。
The above is a description of an embodiment corresponding to the invention of claim 1. Next, the explanation corresponding to claim 2 will be described below. In FIG. 3, when the input unit 11 requests the creation of an executable file for testing, the correspondence table search unit 13a searches the database 16a for the corresponding test compatible module table using the program name as a key. Extracts the list of module names that participated in the execution of the test name.

【0021】その各モジュールのオブジェクトに関する
情報が実行可能ファイル作成情報16cに登録されてい
るかどうかを実行可能ファイル作成情報検索部13bに
おいて調べる。登録されていれば、その情報をもとに実
行可能ファイル作成部14cにおいて実行可能ファイル
を作成する。そうでなければ、実行可能ファイル作成情
報獲得部14aでオブジェクトファイルが存在するかど
うかを、利用者に問い合わせ、存在していればそのファ
イルを使用し、存在しなければ、オブジェクトファイル
作成のための情報、すなわち、図6(c)の実行可能フ
ァイル作成情報に相当する内容を問い合わせる。
The executable file creation information search unit 13b checks whether information regarding the object of each module is registered in the executable file creation information 16c. If it is registered, the executable file creation unit 14c creates an executable file based on the information. If not, the executable file creation information acquisition unit 14a inquires of the user whether an object file exists, and if it exists, uses that file; if it does not exist, the Information, that is, content corresponding to the executable file creation information in FIG. 6(c) is inquired.

【0022】問い合わせの結果得られた情報をもとに実
行可能ファイル作成部14cにおいて実行可能ファイル
を作成する。この情報は実行可能ファイル作成情報登録
部14bによってデータベース16cに登録しておき、
再利用を可能とする。なお、登録済みの情報を更新する
手段を用意しておけば、より使いやすくなる。実行可能
ファイルの作成が終了したことを出力部15に表示する
。前記の実行可能メファイル作成情報獲得部14aから
実行可能ファイル作成部14cの処理は図5の実行可能
ファイル作成の流れ図によって行う。
[0022] Based on the information obtained as a result of the inquiry, an executable file is created in the executable file creation section 14c. This information is registered in the database 16c by the executable file creation information registration unit 14b,
Enables reuse. Note that it will be easier to use if a means to update registered information is provided. A message indicating that the creation of the executable file has been completed is displayed on the output unit 15. The processing from the executable file creation information acquisition section 14a to the executable file creation section 14c is performed according to the flowchart of executable file creation shown in FIG.

【0023】すなわち、処理S1によってモジュール一
覧(図6(a)テスト対応モジュール表)から該当する
テストのモジュールを1つ取り出す。処理S2は、取り
出したモジュール名を表示する。処理S3によって、処
理S2で取り出したモジュールのオブジェクトファイル
の存在を利用者に問い合わせを行う。その結果、オブジ
ェクトファイルが存在する場合は、処理S6でモジュー
ル名とオブジェクト情報を記憶しておく。存在しない場
合は、処理S4によって利用者に該当するモジュールの
ソースファイル名とコンパイル方法を問い合わせる。
That is, in step S1, one module of the corresponding test is extracted from the module list (FIG. 6(a) test compatible module table). Processing S2 displays the extracted module name. In process S3, the user is inquired about the existence of the object file of the module extracted in process S2. As a result, if the object file exists, the module name and object information are stored in step S6. If the module does not exist, the user is inquired about the source file name and compilation method of the module in step S4.

【0024】問い合わせ結果を処理S5でデータベース
に登録する。そして処理S6でモジュール名とオブジェ
クト情報を記憶しておく。該当するプログラムにモジュ
ールが複数ある場合は、処理S7で、処理S1からS6
を繰り返えして行う。実行可能ファイル作成に必要なモ
ジュールのオブジェクトファイルの情報がすべて集った
とき、処理S8により、該当するプログラムの実行可能
ファイルを作成する。
The inquiry result is registered in the database in step S5. Then, in step S6, the module name and object information are stored. If the applicable program has multiple modules, in process S7, processes S1 to S6
Do this repeatedly. When all the object file information of the module necessary for creating an executable file has been collected, an executable file of the corresponding program is created in step S8.

【0025】図6(a)の例では、test1用の実行
可能ファイルの作成を要求すると、モジュールaとbと
cのオブジェクトファイルを結合して実行可能ファイル
を作成する。
In the example shown in FIG. 6A, when a request is made to create an executable file for test1, the object files of modules a, b, and c are combined to create an executable file.

【0026】図7は、本発明の他の実施例を示す構成図
で、本実施例は、請求項3の発明に対応している。本実
施例はプログラムのテストに先立って、予めデータベー
ス部16bのモジュールテスト状況表(図6(b))に
該当するプログラムを構成するモジュールの一覧を既存
の技術で記録しておく。そして、入力部11からテスト
実行を入力する。
FIG. 7 is a block diagram showing another embodiment of the present invention, and this embodiment corresponds to the invention of claim 3. In this embodiment, prior to testing a program, a list of modules constituting the corresponding program is recorded in advance in the module test status table (FIG. 6(b)) of the database section 16b using existing technology. Then, test execution is input from the input unit 11.

【0027】最初に、プログラム構成モジュール一覧獲
得部12dでデータベース部16bからテストするプロ
グラムのモジュールテスト状況表を抽出する。そして、
プログラム実行部12aでプログラムのテストの実行を
開始する。モジュール一覧獲得部12eで実行に関与し
たモジュールの一覧を取り出し先に抽出したモジュール
テスト状況表に記録する。情報格納部12fでモジュー
ルのテスト状況表(図6(b))をデータベース16b
に格納する。
First, the program configuration module list acquisition section 12d extracts the module test status table of the program to be tested from the database section 16b. and,
The program execution unit 12a starts executing a test of the program. The module list acquisition unit 12e records a list of modules involved in the execution in the extracted module test status table. The information storage unit 12f stores the module test status table (FIG. 6(b)) in the database 16b.
Store in.

【0028】このとき、モジュールテスト状況表には、
テストを実行した発呼モジュールから呼び出された被呼
モジュールにマーキング(図6(b)の黒丸印のように
)する。プログラム実行部12aからデータベースへの
情報格納部12fの処理は、図8のモジュール一覧情報
格納の処理の流れ図によって行う。すなわち、処理F1
でプログラムの実行を開始し、処理F2によって、該当
するテストのプログラム名からモジュールテスト状況表
(図6(b))の該当する表を検索する。
At this time, the module test status table shows:
The called module called by the calling module that executed the test is marked (like the black circle in FIG. 6(b)). The processing of the information storage section 12f from the program execution section 12a to the database is performed according to the flowchart of the module list information storage processing shown in FIG. That is, processing F1
The execution of the program is started in step F2, and the corresponding table in the module test status table (FIG. 6(b)) is searched from the program name of the corresponding test.

【0029】処理F3でモジュールのテストを実行する
。該モジュールから他のモジュールを呼出しテストを行
う場合は、処理F4で判別して、処理F5によりモジュ
ールテスト状況表(F2検索)の呼び出された被呼モジ
ュールをマーキング(図6(b)の黒丸印のように)す
る。該当するプログラムのモジュールのテストの実行終
了を処理F6で判別し、すべての処理が終了するまで行
う。
In process F3, a test of the module is executed. If you want to perform a test by calling another module from this module, it is determined in process F4, and the called module is marked in the module test status table (F2 search) in process F5 (black circle mark in Figure 6(b) ). The completion of the test execution of the module of the corresponding program is determined in process F6, and the process is continued until all processes are completed.

【0030】以上、テストを実行したとき、実行したモ
ジュールをデータベースに記録するまでの処理について
説明した。次にテストの実施率および未テストのモジュ
ール一覧を作成する場合の処理について、説明する。
The above describes the process from when a test is executed until the executed module is recorded in the database. Next, a description will be given of a process for creating a test implementation rate and a list of untested modules.

【0031】図7において、入力部11からテスト状況
を要求の場合、モジュールテスト状況表検索部13cは
、入力で指定されたプログラム名をキーとしてデータベ
ース16bを検索し、モジュールテスト状況表(図6(
b))の該当する表を取り出す。表からテスト済のモジ
ュールの総数とテスト対象の被呼モジュールの総数を求
め、計算部14dでテスト済みのモジュール総数をテス
ト対象の被呼モジュールの総数で割ることによりテスト
実施率が得られる。プログラム全体だけではなく、モジ
ュール毎に求めることも可能である。
In FIG. 7, when the test status is requested from the input unit 11, the module test status table search unit 13c searches the database 16b using the program name specified in the input as a key, and retrieves the module test status table (FIG. 6). (
b) Retrieve the relevant table of). The total number of tested modules and the total number of called modules to be tested are determined from the table, and the calculation unit 14d divides the total number of tested modules by the total number of called modules to be tested to obtain the test implementation rate. It is possible to obtain not only the entire program but also each module.

【0032】また、要求が未テストモジュールの把握で
あれば、モジュールテスト状況表検索部13cで指定さ
れたプログラム名をキーとしてデータベース16bを検
索し、モジュールテスト状況表の該当する表を得る。表
からモジュール毎に未テストのモジュール一覧を作成す
る。図6(b)の例では未テストモジュールとして、モ
ジュールcから呼び出されるモジュールbとe、モジュ
ールdから呼び出されるモジュールa、モジュールfか
ら呼び出されるモジュールcが得られる。従って、プロ
グラム全体のテスト状況は5/9となる。
If the request is to find out untested modules, the module test status table search unit 13c searches the database 16b using the specified program name as a key to obtain the corresponding module test status table. Create a list of untested modules for each module from the table. In the example of FIG. 6B, modules b and e called from module c, module a called from module d, and module c called from module f are obtained as untested modules. Therefore, the test status of the entire program is 5/9.

【0033】以上を実現するために必要な情報として、
実行に関与したモジュールの一覧とプログラムを構成す
るモジュールの一覧がある。この実行に関与したモジュ
ールの一覧は、デバッガが一般に有するトレース機能の
出力から抽出したり、実行時にモジュールが呼び出され
た時点でその情報をファイルに出力するなどの手段によ
り簡単に実現できる。また、プログラムを構成するモジ
ュールの一覧はプログラムを解析することによっても得
られるものであり、また、プログラム記述言語のツール
として提供されている場合もある。
[0033] Information necessary to realize the above is as follows:
There is a list of modules involved in execution and a list of modules that make up the program. This list of modules involved in execution can be easily realized by extracting from the output of a trace function that debuggers generally have, or by outputting the information to a file when a module is called during execution. Additionally, a list of modules constituting a program can be obtained by analyzing the program, and may also be provided as a tool for a program description language.

【0034】[0034]

【発明の効果】以上説明したように、本発明は以下に述
べる利点がある。すなわち、請求項1の発明によれば、
あるモジュールを更新した場合の再実行すべきテスト内
容を容易に把握することができるからテスト漏れが無く
なる。また、請求項2の発明によれば、テストに必要な
モジュールのみを結合した実行可能ファイルを作成でき
るから、実行可能ファイルの作成に要する時間の削減お
よび、実行可能ファイルの大きさの縮小が可能となる。 また、他の担当者が更新したものの影響を受けることも
少なくなり、テストが容易になる。更に、請求項3の発
明によれば、モジュール毎に未テスト部分を把握できる
から、プログラムに対するテストの進み具合も把握でき
る。上述のように本発明によれば、複数のモジュールか
ら構成されたプログラムのテストを効率的に行うことが
可能となると言う効果がある。
As explained above, the present invention has the following advantages. That is, according to the invention of claim 1,
Since it is possible to easily understand the test contents to be re-executed when a certain module is updated, there is no need to omit any tests. Further, according to the invention of claim 2, it is possible to create an executable file that combines only the modules necessary for testing, so it is possible to reduce the time required to create an executable file and reduce the size of the executable file. becomes. Additionally, updates made by other people are less likely to be affected, making testing easier. Further, according to the third aspect of the present invention, it is possible to grasp the untested parts for each module, so it is also possible to grasp the progress of testing on the program. As described above, according to the present invention, it is possible to efficiently test a program composed of a plurality of modules.

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

【図1】本発明の原理を説明するブロック図[Figure 1] Block diagram explaining the principle of the present invention

【図2】本
発明の原理のデータベースを示す図
[Figure 2] Diagram showing a database of the principles of the present invention

【図3】本発明の一
実施例の構成図
[Fig. 3] Configuration diagram of one embodiment of the present invention

【図4】モジュール一覧情報の格納の処理の流れを示す
[Figure 4] Diagram showing the flow of processing for storing module list information

【図5】実行可能ファイル作成の処理の流れを示す図[Figure 5] Diagram showing the flow of processing for creating an executable file


図6】実施例のデータベースの構造を示す図
[
Figure 6: Diagram showing the structure of the database of the example

【図7】本
発明の他の実施例の構成図
FIG. 7 is a configuration diagram of another embodiment of the present invention.

【図8】モジュール一覧情報の格納の処理の流れを示す
[Figure 8] Diagram showing the flow of processing for storing module list information

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

1,11    入力部 2a,2b,12    実行部 12a    プログラム実行部 12b,12e    実行に関与したモジュール一覧
獲得部 12c,12f    データベースへ情報格納部12
d    プログラム構成モジュール一覧獲得部3a〜
3c,13    検索部 13a    対応表検索部 13b    実行可能ファイル作成情報検索部13c
    モジュールテスト状況表の検索部4a,4b,
14    処理部 14a    実行可能ファイル作成情報獲得部14b
    実行可能ファイル作成情報登録部14c   
 実行可能ファイル作成部14d    計算部 5,15    出力部 6,16    データベース部
1, 11 Input units 2a, 2b, 12 Execution unit 12a Program execution unit 12b, 12e Module list acquisition unit 12c, 12f involved in execution Information storage unit 12 in database
d Program configuration module list acquisition unit 3a~
3c, 13 Search unit 13a Correspondence table search unit 13b Executable file creation information search unit 13c
Module test status table search parts 4a, 4b,
14 Processing unit 14a Executable file creation information acquisition unit 14b
Executable file creation information registration unit 14c
Executable file creation section 14d Calculation section 5, 15 Output section 6, 16 Database section

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】  モジュール化可能なプログラミング言
語のプログラムのテストを支援するシステムであって、
実行するテストとテスト対象モジュールの関係を対応づ
けしたテスト対応モジュール表(6a)を有するデータ
ベース部(6)と、テスト実行要求、または、支援情報
要求の入力を受ける入力手段(1)と、上記入力がテス
ト実行要求の場合にテストを実行するとともに、該テス
トの実行で関与したモジュールをデータベース部(6)
のテスト対応モジュール表(6a)へ記録する実行手段
(2a)と、モジュールを更新したとき、該モジュール
名を基にデータベース部(6)に格納されたテスト対応
モジュール表(6a)からテスト名を抽出する検索手段
(3a)と、テスト支援の処理結果の情報を表示する出
力手段(5)とを設けたことを特徴とするテスト支援シ
ステム。
Claim 1: A system for supporting testing of programs in modular programming languages, comprising:
a database unit (6) having a test compatible module table (6a) that associates the relationship between the test to be executed and the module to be tested; an input means (1) for receiving an input of a test execution request or a support information request; When the input is a test execution request, the test is executed and the modules involved in the execution of the test are stored in the database section (6).
Execution means (2a) records the test name in the test compatible module table (6a) stored in the database part (6) based on the module name when updating the module. A test support system comprising: a search means (3a) for extracting information; and an output means (5) for displaying information on test support processing results.
【請求項2】  データベース部(6)に、テストする
プログラムのモジュール別に該モジュールの実行可能フ
ァイルの作成情報を対応づけた実行可能ファイル作成情
報(6c)を設けるとともに、モジュールを更新し、該
モジュールをテストするとき、テストを実施するプログ
ラムが結合し必要とするモジュールを、該テスト名を基
にデータベース部(6)に格納したテスト対応モジュー
ル表(6a)から検索し抽出する検索手段(3b)と、
上記手段により抽出したモジュールを基に実行可能ファ
イル作成情報(6c)の情報によって実行可能ファイル
作成の処理手段(4a)とを設けた請求項1記載のテス
ト支援システム。
2. The database section (6) is provided with executable file creation information (6c) that associates executable file creation information for each module of the program to be tested, and the module is updated and a search means (3b) for searching and extracting modules that are combined and required by the program to be tested from the test compatible module table (6a) stored in the database section (6) based on the test name; and,
2. The test support system according to claim 1, further comprising processing means (4a) for creating an executable file based on executable file creation information (6c) based on the module extracted by said means.
【請求項3】  データベース部(6)にテストモジュ
ールから呼ばれ連係してテストする被呼モジュールの関
係を対応づけたモジュールテスト情況表(6b)を設け
るとともに、テスト実行時にテストする関係モジュール
の発呼モジュールから呼ばれ連係してテストする被呼モ
ジュールの実施結果をデータベース部(6)のモジュー
ルテスト状況表(6b)に記録する実行手段(2b)と
、モジュールのテスト進捗と残りのテストの状況を把握
するとき、プログラム名を基にデータベース部(6)に
格納したモジュールテスト状況表(6b)の該当する表
を抽出する検索手段(3c)と、上記手段により抽出し
たモジュールテスト状況表からテストを実行したモジュ
ール数をテストを行うべき対象モジュール数で除し、そ
の比率で表すテスト進捗状況と、未テストのモジュール
一覧を作成する処理手段(4b)とを設けた請求項1記
載のテスト支援システム。
3. A module test status table (6b) is provided in the database unit (6) that associates the relationship between called modules that are called from the test module and are tested in conjunction with each other. Execution means (2b) for recording the execution results of the called module called by the calling module and tested in conjunction with the module test status table (6b) of the database unit (6), the test progress of the module, and the status of the remaining tests. When determining the status of a test, a search means (3c) extracts a corresponding table from the module test status table (6b) stored in the database section (6) based on the program name, and 2. The test support according to claim 1, further comprising processing means (4b) for dividing the number of modules executed by the number of target modules to be tested and creating a test progress status expressed as a ratio and a list of untested modules. system.
JP3033526A 1991-02-01 1991-02-01 Test supporting system Withdrawn JPH04247532A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3033526A JPH04247532A (en) 1991-02-01 1991-02-01 Test supporting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3033526A JPH04247532A (en) 1991-02-01 1991-02-01 Test supporting system

Publications (1)

Publication Number Publication Date
JPH04247532A true JPH04247532A (en) 1992-09-03

Family

ID=12388994

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3033526A Withdrawn JPH04247532A (en) 1991-02-01 1991-02-01 Test supporting system

Country Status (1)

Country Link
JP (1) JPH04247532A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012084030A (en) * 2010-10-14 2012-04-26 Toshiba Corp Software development support system, software development support program and software development support method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012084030A (en) * 2010-10-14 2012-04-26 Toshiba Corp Software development support system, software development support program and software development support method

Similar Documents

Publication Publication Date Title
JP3779665B2 (en) Test support program
US20070300208A1 (en) Development support system and development support method
JP4702194B2 (en) Program development support apparatus, program development support method, and program development support program
JPH05313969A (en) File list display method
JP2015011685A (en) Business rule management system and business rule management method
JP2004362495A (en) Error log information analysis support method, execution device, and processing program
JPH1153391A (en) Database access method
JP2525393B2 (en) Logic simulation test coverage method
JP2002049507A (en) Test management device
JPH07146787A (en) How to find affected programs
Pooley et al. Reuse through requirements traceability
JP3646376B2 (en) Information management apparatus and information management method
JPS63148339A (en) Program test processing system
JP2000181691A (en) Program structure analysis system
JPH08314758A (en) Program test progress management method
JPH0324639A (en) Program understanding support method
JPS62216047A (en) Deciding system for regression preventing test case
JPH10116209A (en) Program test automation system
JP2000200185A (en) Version management device for program
JP2003196088A (en) New program generation method and apparatus for reusing existing programs
JPH07114485A (en) Simulation test system execution method
JPH07302194A (en) Version management method for modules
JPH03132831A (en) Automatic extraction system for check item
JPH103390A (en) Table management system and its creation method
JPH04101240A (en) Testing system for replaceable software

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980514