JPH0357034A - Program testing system - Google Patents
Program testing systemInfo
- Publication number
- JPH0357034A JPH0357034A JP1193669A JP19366989A JPH0357034A JP H0357034 A JPH0357034 A JP H0357034A JP 1193669 A JP1193669 A JP 1193669A JP 19366989 A JP19366989 A JP 19366989A JP H0357034 A JPH0357034 A JP H0357034A
- Authority
- JP
- Japan
- Prior art keywords
- program
- data
- input
- output
- list
- 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)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
3.発明の詳細な説明
〔産業上の利用分野〕
本発明は,プログラムテスト方式に関し、特に、プログ
ラムの開発におけるプログラムのテスト作業を効率よく
行い、作業を省力化できるプログラムテスト方式に関す
るものである。[Detailed description of the invention] 3. DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a program testing method, and particularly to a program testing method that can efficiently perform program testing during program development and save labor.
プログラムの開発においては、作業を能率よく行い、生
産性を向上せることが所望される。しかし、プログラム
開発の本質的な工程は、プログラマーの手作業に負うこ
とろが多く、十分な能宰の向上が図かられていない。例
えば、作成したプログラムのテストを行う場合には,多
くの入力データを与えて被テストプログラムを実行させ
、実行した結果を検査する。そして、所望の結果が得ら
れない場合,例えば、プログラムに誤り(バグ)が含ま
れていた場合には、プログラマーが机1−でプログラム
の処理ステップのロジックを追うことにより、誤りを検
出するようにしている。In program development, it is desirable to work efficiently and improve productivity. However, the essential process of program development is often carried out manually by programmers, and it is not possible to sufficiently improve program performance. For example, when testing a created program, a large amount of input data is given, the program under test is executed, and the results of the execution are inspected. If the desired result is not obtained, for example, if the program contains an error (bug), the programmer can detect the error by following the logic of the program's processing steps at desk 1-. I have to.
従来,プログラムのテスト作業を省力化する自動試験方
式として、特開昭63−8948号公報に記戟の「交換
ソフトウェアの自動試験方式」の提案がある。ここに記
載されている自動試験方式は、予め正しい出力結果を自
動判定システム(計算機システム)に入力しておき、正
しい出力結果と実際に被テストプログラムを実行させて
得た出力結果との比較を、計算機システムで行なうこと
によって、テスト結果の良否の判定作業の省力化を図っ
ている。2. Description of the Related Art Conventionally, as an automatic testing method for saving labor in program testing work, there has been proposed an ``automatic testing method for exchange software'' described in Japanese Patent Application Laid-Open No. 63-8948. The automatic test method described here inputs correct output results in advance into an automatic judgment system (computer system), and then compares the correct output results with the output results obtained by actually running the program under test. By using a computer system, we aim to save labor in determining the acceptability of test results.
しかし、このような自動試験方式は、従来から行なわれ
ている被テストプログラムを実行させ、その結果を比較
する方式には変わりなく、被テストプログラムの実行が
必要である。このテスト作業においては,入力データの
設定と正しい出力結果を人手によって計算機に入力しな
ければならず,多くの手間がかかる。However, such an automatic test method is still the conventional method of executing a program under test and comparing the results, and requires execution of the program under test. This testing process requires a lot of time and effort, as input data settings and correct output results must be entered manually into a computer.
プログラムの開発工程の中で、手間が多くかかり、工数
と計算機時間を多く費すのが最終的なテスト工程作業で
ある。このテスト工程作業は、被テストプログラムに対
して、プログラムチェックリストに従って「入カデータ
の設定→プログラムの実行→出力結果の確認」をチェッ
ク項目の数だけ繰り返し行なわなければならない.この
場合、特に、入力データを設定するのに多くの手間がか
かり、また、出力結果の確認にも手間がかかる。In the program development process, the final testing process takes a lot of effort, man-hours, and computer time. In this test process, the process of ``setting input data → executing program → checking output results'' must be repeated for the program under test according to the program checklist as many times as there are check items. In this case, in particular, it takes a lot of effort to set the input data, and it also takes a lot of effort to check the output results.
これに対して、前述の特開昭63−8948号公報のよ
うに、自動化を行う試みがあるが、従来の自動試験方式
では、プログラムテスト作業の省力化が不十分であり、
特に、テストを行うケース毎に,被テストプログラムに
対し入力データを設定して、プログラムを実行させてい
る。このため,手間がかかる膨大な工数と計算機時間を
必要とするという問題がある。In response to this, there have been attempts to automate this, as in the above-mentioned Japanese Patent Application Laid-Open No. 63-8948, but the conventional automatic testing method is insufficient to save labor in program testing.
In particular, for each test case, input data is set for the program under test and the program is executed. Therefore, there is a problem in that it requires a huge amount of time-consuming man-hours and computer time.
本発明は、前記問題点を解決するためになされたもので
ある。The present invention has been made to solve the above problems.
本発明の目的は、プログラムの開発におけるプログラム
のテスト作業を省力化できるプログラムテスト方式を提
供することにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a program testing method that can save labor in program testing during program development.
本発明の前記ならびにその他の目的と新規な特徴は、本
明細書の記述及び添付図面によって明らかになるであろ
う。The above and other objects and novel features of the present invention will become apparent from the description of this specification and the accompanying drawings.
前記目的を達戒するために、本発明のプログラムテスト
方式は、被テストプログラムのンースプログラムを入力
し、入力データの一覧表,出力データの一覧表,および
出力データ更新履歴の一覧表を作成し,ソースプログラ
ムのロジックを解析して、入力データ内容と出力データ
内容との間を関係付けるパスを追跡し、バス毎に入力デ
ータの内容と出力データの内容とを示す対応表を出力し
、当該対応表から被テストプログラムの正当性を検査す
ることを特徴とする。In order to achieve the above object, the program testing method of the present invention inputs the source program of the program under test and creates a list of input data, a list of output data, and a list of output data update history. analyzes the logic of the source program, traces the path that relates the input data contents and the output data contents, and outputs a correspondence table showing the input data contents and the output data contents for each bus, The method is characterized in that the validity of the program under test is checked from the correspondence table.
前記手段によれば、被テストプログラムのソースプログ
ラムを入力し、ソースプログラムから,入力データの一
覧表,出力データの一覧表,および出力データ更新履歴
の一覧表を作成する。次にソースプログラムのロジック
を解析し,入力データ内容と出力データ内容との間を関
係付けるバスを追跡し、パス毎に入力データの内容と出
力データの内容を示す対応表(入出力データリスト)を
出力する。そして、この対応表から被テストプログラム
の正当性を検査する.
このプログラムテスト方式は、被テストプログラムを実
行してテストするのではなく、ソースプログラムをデー
タとして入力し、ソースプログラムのロジックから入力
データ内容と出力データ内容との関係を解析し,処理に
おける入出力データ変化からテスト時に作成するプログ
ラムチェックリストと同形式の被テストプログラムの入
出力データリスト(入出力対応表)を出力する。そして
、この入出力データリストと、予め作成したプログラム
の検査項目のリストを突き合せることによって、被テス
トプログラムの不良の有無を判別する.一般に、被テス
トプログラムのテスト内容を規定するプログラムのチェ
ックリストは、外部から与えられる入力データとそのプ
ログラムが出力する出力データの組み合せで表現されて
いる。このため、被テストプログラムのソースプログラ
ムのロジックに従って、入力データ内容によって、出力
データ内容がどの様に変って行くかを追跡し、そのプロ
グラムのデータ処理のパスの種類と,各々のパス毎に入
力データと出力データの内容の対応表(プログラムの入
出力データリス1・)を出力する。そして、このプログ
ラム入出力データリストと予め作成したプログラムチェ
ックリストを突き合せることにより、被テストプログラ
ムを実行させることなく、被テストプログラムの不良の
有無を判別できる。According to the means, a source program of a program under test is input, and a list of input data, a list of output data, and a list of output data update history are created from the source program. Next, we analyze the logic of the source program, trace the buses that relate the input data content and output data content, and create a correspondence table (input/output data list) that shows the input data content and output data content for each path. Output. Then, use this correspondence table to check the validity of the program under test. This program testing method does not test by running the program under test, but instead inputs the source program as data, analyzes the relationship between the input data content and output data content from the logic of the source program, and then tests the input/output during processing. Outputs an input/output data list (input/output correspondence table) of the tested program in the same format as the program checklist created during testing based on data changes. By comparing this input/output data list with a list of test items for the program created in advance, it is determined whether or not the program under test is defective. Generally, a program checklist that defines the test contents of a program under test is expressed as a combination of input data provided from the outside and output data output by the program. For this reason, we track how the output data content changes depending on the input data content according to the logic of the source program of the program under test, and determine the type of data processing pass of the program and the input data for each pass. Outputs a correspondence table of data and output data contents (program input/output data list 1). By comparing this program input/output data list with a program checklist created in advance, it is possible to determine whether or not the program under test is defective without executing the program under test.
以下、本発明の一実施例を図面を用いて具体的に説明す
る。Hereinafter, one embodiment of the present invention will be specifically described using the drawings.
第1図は,本発明の一実施例にかかるプログラムテスト
方式の処理プロセスを示すブロック図である。第1図に
おいて、10は入力ファイル,11はデータ処理システ
ム、l2は出力リストである。入力ファイル10には被
テストプログラムのソースプログラムが格納されている
。データ処理システム11は、入力ファイル10から被
テストプログラムのソースプログラムを入力データとし
て入力し、データ処理を行い、出力リスト12として、
被テストプログラムにおける入出力データのリストの入
出力対応表を出力する.
データ処理システム11には、プログラムテストを行う
ために、ソースプログラム入力プロセス1、入力データ
ー覧表作成プロセス2,出力データー覧表作或プロセス
3,ソースプログラムロジック解析プロセス4,入出力
対応表作成&出力プロセス5の各々の処理プロセスが備
えられている。第l図を参照して,各々の処理プロセス
の機能を以下に説明する。FIG. 1 is a block diagram showing the processing process of a program test method according to an embodiment of the present invention. In FIG. 1, 10 is an input file, 11 is a data processing system, and l2 is an output list. The input file 10 stores the source program of the program under test. The data processing system 11 inputs the source program of the program under test as input data from the input file 10, performs data processing, and outputs the data as an output list 12.
Outputs an input/output correspondence table of a list of input/output data in the program under test. In order to perform a program test, the data processing system 11 includes a source program input process 1, an input data list creation process 2, an output data list creation process 3, a source program logic analysis process 4, and an input/output correspondence table creation process. Each processing process of the output process 5 is provided. The function of each processing process will be explained below with reference to FIG.
ソースプログラム入力プロセス1;
入力ファイル10から被テストプログラムのソースプロ
グラムを取り込み、メモリ内のソースプログラム格納エ
リア6に格納する。Source program input process 1; The source program of the program under test is taken in from the input file 10 and stored in the source program storage area 6 in the memory.
入力データー覧表作或プロセス2;
メモリ内のソースプログラム格納エリア6に取り込んだ
ソースプログラムのデータ領城の定義文を参照すること
により入力データー覧表を作成し.ルモリ内の入力デー
ター覧表格納エリア7に格納する。Input data list creation process 2: Create an input data list by referring to the definition statement of the data territory of the source program imported into the source program storage area 6 in the memory. The data is stored in the input data list storage area 7 in the memory.
出力データー覧表作成プロセス3
メモリ内のソースプログラム格納エリア6に取り込んだ
ソースプログラム6のデータ領域の定義文を参照するこ
とにより出力データー覧表を作成し,メモリ内の出力デ
ーター覧表格納エリア8に格納する。Output data list creation process 3 An output data list is created by referring to the definition statement of the data area of the source program 6 imported into the source program storage area 6 in the memory, and the output data list is created in the output data list storage area 8 in the memory. Store in.
ソースプログラムロジック解析プロセス4メモリ内のソ
ースプログラム格納エリア6に取り込んだソースプログ
ラムの代入文と、入力データ一覧表格納エリア7の入力
データー覧表および出カデーター覧表格納エリア8の出
力データー覧表を参照することにより、ソースプログラ
ムのロジックを解析しながら、メモリ内の出力データ更
新履歴表格納エリア9に出力データ更新履歴表を作成す
る。Source program logic analysis process 4 The source program assignment statements imported into the source program storage area 6 in the memory, the input data list in the input data list storage area 7, and the output data list in the output data list storage area 8 are stored. By referring to it, an output data update history table is created in the output data update history table storage area 9 in the memory while analyzing the logic of the source program.
入出力対応表作或&出力プロセス5
一連のソースプログラムの解析が終った後、メモリ内の
出力データ更新履歴表格納エリア9に出力データ更新履
歴表を元に入出力対応表を作或し、出力リストl2とし
て印刷出力する。Input/output correspondence table creation & output process 5 After the analysis of a series of source programs is completed, an input/output correspondence table is created based on the output data update history table in the output data update history table storage area 9 in the memory, Print out as an output list l2.
このようにして、被テストプログラムは、そのまま実行
することなく,ソースプログラムをそのままデータとし
て入力し、プログラムのロジックを解析することにより
、その入力データと出力データとの関係のデータリスト
を入出力対応表として出力して検査する。In this way, the program under test inputs the source program as data without executing it as is, and by analyzing the logic of the program, a data list of the relationship between the input data and output data can be created for input/output. Output as a table and inspect.
次に、具体的に、被テストプログラムのプログラムテス
トの処理の例を説明する.第2図は,テスト対象とする
被テストプログラムのソースプログラムのリストを示す
図であり、第3図は、第2図の被テストプログラムのフ
ローチャートを示す図である.この被テストプログラム
は、数値入力データを時データと分データに変換して入
力する時間入力プログラムである。第2図および第3図
を参照して、この時間入力プログラムの概略を説明する
.
第2図に示すように、この被テストプログラムのソース
プログラムリストは、プログラム名から始まり、複数の
データ領域定義文と5一連の実行文とから構成されてい
る。このプログラムの各々の文は、一連の文番号が付け
られている.データ領域定義文には、レベル番号と領域
名が付けられている。実行文は処理の内容を規定する一
連の文の集まりである。Next, we will specifically explain an example of program test processing for a program under test. FIG. 2 is a diagram showing a list of source programs of the program under test to be tested, and FIG. 3 is a diagram showing a flowchart of the program under test in FIG. This program under test is a time input program that converts numerical input data into hour data and minute data and inputs the converted data. An outline of this time input program will be explained with reference to FIGS. 2 and 3. As shown in FIG. 2, the source program list of the program under test starts with the program name, and consists of a plurality of data area definition statements and a series of five executable statements. Each statement in this program is assigned a sequence of statement numbers. A data area definition statement has a level number and an area name. An executable statement is a collection of a series of statements that specify the content of processing.
次に第3図を参照して、処理内容を説明すると,まず、
ステップ30(文番号08;第2図)において、OU
T P U T領域をスヘース(1′−′′)クリアし
、次のステップ31 (文番号09)で入力されたデー
タが1440以下(24時間以内)であるか否かを判定
する,1440以下でなければ、次にステップ39(文
番号24)において、変数RCODEに異常終了コード
の4をセットし、処理を終了する。また、判定が144
0以下であれば、次に、ステップ3゛2(文番号11)
において、入力されたデータが60以下(1時間以内)
であるか否かを判定する。60以下であれば、次に、ス
テップ33(文番号13)において、時データH O
U Rを゛′0″とし、次のステップ34 (文番号1
4)において、入力されたデータを分データ( M I
N U T E )とする.また、入力されたデータ
が60以上であれば、ステップ35(文番号18)にお
いて,入力されたデータから時間を計算して時データを
セットし、次のステップ36(文番号19)において、
残りのデータから分データを計算してセットする。次に
,ステップ37 (文番号37)で、時間と分のデリミ
タ ( LL :I1 )をセットする。そして次にス
テップ38(文番号22)において,変数RC○DEに
正常終了コートのOをセットし、処理を終了する。Next, referring to Fig. 3, the processing contents will be explained. First,
In step 30 (statement number 08; Figure 2), OU
Clear the space (1'-'') in the T P UT area, and in the next step 31 (statement number 09) determine whether the input data is 1440 or less (within 24 hours), 1440 or less If not, then in step 39 (statement number 24), the abnormal termination code 4 is set in the variable RCODE, and the process is terminated. Also, the judgment is 144
If it is less than 0, then step 3゛2 (statement number 11)
, the input data is 60 or less (within 1 hour)
Determine whether or not. If it is 60 or less, then in step 33 (statement number 13), the hour data H O
Set U R to ``0'' and proceed to the next step 34 (statement number 1
4), convert the input data into minute data (MI
NUTE). If the input data is 60 or more, in step 35 (statement number 18), time is calculated from the input data and hour data is set, and in the next step 36 (statement number 19),
Calculate and set the minute data from the remaining data. Next, in step 37 (statement number 37), the hour and minute delimiters (LL:I1) are set. Then, in step 38 (statement number 22), the normal completion code O is set in the variable RC○DE, and the process ends.
このような時間入力プログラムを被テストプログラムと
してテストする場合の処理例を具体的に説明する。ここ
では、最終的には、第4図に示すような、入力データと
出力データとの関係を各々のデータ処理のパスごと作成
した入出力対応表を作成し、この入出力対応表により,
被テス1−プログラムの検査を行う。A processing example when testing such a time input program as a program under test will be specifically described. Here, we will finally create an input/output correspondence table that shows the relationship between input data and output data for each pass of data processing, as shown in Figure 4, and use this input/output correspondence table to
Tested 1 - Check the program.
[入力データー覧表作戊]
ソースプログラムの先頭から最後迄、データ領域定義文
(この例の場合、rDCLJの文字列の定義文)を捜し
、入力データに対し、そのレベル番号と領域名とを一覧
表にして、入力データー覧表をメモリ内に作或する。こ
の例の場合には、第5図に示すような、入力データー覧
表が作成される。[Create input data list] Search for the data area definition statement (in this example, the definition statement for the rDCLJ character string) from the beginning to the end of the source program, and write the level number and area name for the input data. Create a list of input data in memory. In this example, an input data list as shown in FIG. 5 is created.
[出力データー覧表作戊〕
ソースプログラムの先頭から最後迄,データ領域定義文
を捜し、出力データに対し,そのレベル番3と領域名と
を一覧表にして、出力データー覧表をメモリ内に作或す
る.この例では、データ領域定義文からは入力データ領
域であるか出力データ領域であるかは、判断できないの
で、出力データー覧表としては入力データー覧表をその
まま出力データー覧表として用いる(第5図)。[Output data list creation] Search for data area definition statements from the beginning to the end of the source program, list the level number 3 and area name for the output data, and save the output data list in memory. Create something. In this example, it is not possible to determine from the data area definition statement whether it is an input data area or an output data area, so the input data list is used as is as the output data list (see Figure 5). ).
[ソースプログラムのロジック解析]
ソースプログラムの先頭から最後迄、実行文を1文づつ
解析して、先に作成した「入カデーター覧表Jまたは「
出力データー覧表」に登録されているデータ領域名が見
つかった場合、その実行文に応じて,次のように処理す
る。[Logic analysis of source program] Analyze the executable statements one by one from the beginning to the end of the source program, and use the previously created "input data list J" or "
If a data area name registered in the "Output Data List" is found, the following processing is performed depending on the executable statement.
■解析している実行文が判定文の場合、この例では、例
えばrIFJの文字列の実行文の場合、第6図に示すよ
うに、当該実行文のエレメントに対し、更に木構造のエ
レメントとして、2つのエレメント(YESのエレメン
トとNoのエレメント)を追加する.
■解析している実行文が代入文の場合、例えばこの例で
はrPROcJ ,rDcLJ ,rIFJ .「DO
Jt rEI,ESJ,または『END」の文字列のど
れにも該当しない実行文の場合、作或済みのエレメント
の最後のエレメントの出力データ更新一覧表(エレメン
トの最後のポインタでポイントされるエレメントの出力
データ更新−q表)に.その領域名と更新内容を登録す
る(第6図参照)。■If the executable statement being analyzed is a judgment statement, in this example, for example, in the case of an executable statement of the character string rIFJ, as shown in Figure 6, the elements of the executable statement are further added as elements of a tree structure. , add two elements (one for YES and one for No). ■If the executable statement being analyzed is an assignment statement, for example, in this example, rPROcJ, rDcLJ, rIFJ . “D.O.
In the case of an executable statement that does not correspond to any of the character strings Jt rEI, ESJ, or "END", the output data update list of the last element of the created element (the list of the elements pointed to by the last pointer of the element) Output data update - q table). The area name and update contents are registered (see Figure 6).
このようにして、メモリ内に木+1aのエレメントの一
群を作或すると,第7図に示すような出力データ更新履
歴リストが得られる。このデータ更新履歴リストにより
、次に、プログラムにおけるデータ処理のパスを解析し
,入出力データのリストの入出力対応表を作或する。When a group of elements of tree+1a is created in the memory in this way, an output data update history list as shown in FIG. 7 is obtained. Using this data update history list, the data processing path in the program is then analyzed to create an input/output correspondence table for the list of input/output data.
[入出力対応表の作成]
先に作或した出力更新履歴リストを参照し、次のように
処理して,次の各々の項目を求め、入出力対応表を作成
する。すなわち、
■パス数:
続きのエレメントを持たないエレメント数。[Creation of input/output correspondence table] Refer to the previously created output update history list, process as follows, obtain each of the following items, and create an input/output correspondence table. In other words, ■Number of passes: The number of elements that do not have a continuation element.
■パス:
続きのエレメントを持たないエレメントに到達する迄に
経由するエレメントの集まり。■Path: A collection of elements that are passed through until reaching an element that does not have a continuation element.
■各バスの入力:
当該パスに属するエレメントに登録されている判定式で
参照されたデータ。■Input for each bus: Data referenced by the judgment expression registered in the element belonging to the relevant path.
■各パスの出力:
当該パスに属するエレメントの出力データ更新一覧表に
登録されているデータ.ただし,同じデータが2度以上
更新されている場合は、最後のエレメントに最も近いも
のを採用する.このようにして、入出力対応表の各々の
項目のデータを求め、入出力対応表を作成すると、第4
図に示すように、各々の入出力データの関係を、バス1
,バス2,パス3の各々のパス毎に規定した入出力対応
表が得られる,この入出力対応表に対応して、被テスト
プログラムにおいては、・入力:INPUT
・出力:HOUR
COLON
MINUTE
RCODE
・パス数:3(パス1,パス2,パス3)であることが
わかる。各々のパス毎の入力条件と出力の内容の関係が
一覧になっており、容易にチェックできるようになって
いる。このため、この入出力対応表と予め作成したプロ
グラムチェックリストを突き合せることにより、被テス
トプログラムを実行させることなく、不良の有無な容易
に判別できる。■Output for each path: Data registered in the output data update list of elements belonging to the path. However, if the same data has been updated more than once, the one closest to the last element is used. In this way, when the data of each item in the input/output correspondence table is obtained and the input/output correspondence table is created, the fourth
As shown in the figure, the relationship between each input and output data is
, bus 2, and path 3. Corresponding to this input/output correspondence table, in the program under test, ・Input: INPUT ・Output: HOUR COLON MINUTE RCODE ・It can be seen that the number of passes is 3 (pass 1, pass 2, pass 3). The relationship between input conditions and output contents for each path is listed, making it easy to check. Therefore, by comparing this input/output correspondence table with a program checklist prepared in advance, it is possible to easily determine whether there is a defect or not without executing the program under test.
以上、本発明を実施例にもとづき具体的に説明したが、
本発明は、前記実施例に限定されるものではなく、その
要旨を逸脱しない範囲において種々変更可能であること
は言うまでもない。The present invention has been specifically explained above based on examples, but
It goes without saying that the present invention is not limited to the embodiments described above, and can be modified in various ways without departing from the spirit thereof.
以上、説明したように、本発明によれば、作或したプロ
グラムをテストする場合にも.被テストプログラムの入
力データの設定やそのプログラムを実行する必要もない
。このため、テスト工程での大幅な人件費と計算機時間
の削減や工期の短縮が可能となる。As explained above, according to the present invention, even when testing a created program. There is no need to set input data for the program under test or execute the program. Therefore, it is possible to significantly reduce labor costs and computer time in the testing process, as well as shorten the construction period.
第1図は、本発明の一実施例にかかるプログラムテスト
方式の処理プロセスを示すブロック図,第2図は,テス
ト対象とする被テストプログラムのソースプログラムの
リストを示す図、第3図は、第2図の被テストプログラ
ムのフローチャートを示す図、
第4図は、テスト対象の被テストプログラムから作或し
た入出力対応表を示す図、
第5図は、テスト対象の被テストプログラムから作成し
た入力データー覧表を示す図,第6図は、出力データ更
新履歴リストの1つのエレメントを説明する図、
第7図は、木構造データとして作或した各エレメントの
一群の出力データ更新履歴リストの例を示す図である.
図中、10・・・入力ファイル、11・・・データ処理
システム、l2・・・出力リスト、1・・・ソースプロ
グラム入力プロセス、2・・・入力データー覧表作戊プ
ロセス、3・・・出力データー覧表作成プロセス、4・
・・ソースプログラムロジック解析プロセス、5・・・
入出力対応表作fj.&L出力プロセス。FIG. 1 is a block diagram showing a processing process of a program test method according to an embodiment of the present invention, FIG. 2 is a diagram showing a list of source programs of a program under test to be tested, and FIG. Figure 2 shows the flowchart of the program under test, Figure 4 shows the input/output correspondence table created from the program under test to be tested, and Figure 5 shows the flowchart of the program under test to be tested. Figure 6 shows the input data list, Figure 6 is a diagram explaining one element of the output data update history list, and Figure 7 shows the output data update history list of a group of elements created as tree-structured data. It is a diagram showing an example. In the figure, 10... input file, 11... data processing system, l2... output list, 1... source program input process, 2... input data list creation process, 3... Output data list creation process, 4.
...Source program logic analysis process, 5...
Input/output correspondence table fj. &L output process.
Claims (1)
入力データの一覧表,出力データの一覧表,および出力
データ更新履歴の一覧表を作成し、ソースプログラムの
ロジックを解析して、入力データ内容と出力データ内容
との間を関係付けるパスを追跡し、パス毎に入力データ
の内容と出力データの内容を示す対応表を出力し、当該
対応表から被テストプログラムの正当性を検査すること
を特徴とするプログラムテスト方式。1. Input the source program of the program under test,
It creates a list of input data, a list of output data, and a list of output data update history, analyzes the logic of the source program, and traces the path that relates the input data content and output data content. A program testing method characterized by outputting a correspondence table showing the contents of input data and contents of output data for each pass, and checking the validity of the program under test from the correspondence table.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1193669A JPH0357034A (en) | 1989-07-25 | 1989-07-25 | Program testing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1193669A JPH0357034A (en) | 1989-07-25 | 1989-07-25 | Program testing system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0357034A true JPH0357034A (en) | 1991-03-12 |
Family
ID=16311812
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1193669A Pending JPH0357034A (en) | 1989-07-25 | 1989-07-25 | Program testing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0357034A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH08272650A (en) * | 1995-03-29 | 1996-10-18 | Nec Corp | Retest path selection system |
-
1989
- 1989-07-25 JP JP1193669A patent/JPH0357034A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH08272650A (en) * | 1995-03-29 | 1996-10-18 | Nec Corp | Retest path selection system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4595981A (en) | Method of testing interfaces between computer program modules | |
| CN101739339B (en) | Program dynamic dependency relation-based software fault positioning method | |
| Ammann et al. | Using formal methods to derive test frames in category-partition testing | |
| CN109189479B (en) | Parallel automatic verification method for processor instruction set | |
| CN113568662B (en) | Code change influence range analysis method and system based on calling relation | |
| CN112131116A (en) | Automatic regression testing method for embedded software | |
| US20070061641A1 (en) | Apparatus and method for generating test driver | |
| CN111813652B (en) | Automatic test method for checking abnormal value of data related to data missing | |
| CN115185752B (en) | Verification methods, verification apparatus, equipment, and storage media for processors. | |
| CN111611154A (en) | Regression testing method, device and equipment | |
| CN111177014A (en) | Software automatic test method, system and storage medium | |
| CN115525577A (en) | A test management method based on automated data and process | |
| CN113641573A (en) | Method and system for automatic testing of program analysis software based on revision log | |
| CA2359079A1 (en) | Program reproducing method and device, and medium on which a program for program reproduction recording | |
| CN113268433A (en) | Automatic testing method and system for functionality of power block chain interface | |
| JPH0363837A (en) | Software program inspection system | |
| KR102935141B1 (en) | Software test system for test case reuse and method thereof | |
| JP2525393B2 (en) | Logic simulation test coverage method | |
| CN120353708A (en) | IEC 61131-3-based full coverage test method for Programmable Logic Controller (PLC) programming software language function | |
| CN120763037A (en) | Debugging information display method, electronic device, storage medium and program product | |
| CN117033161A (en) | Data coupling and control coupling analysis method meeting DO-178B target | |
| Xu et al. | Program for Non-nuclear Safety Level DCS System in Daya Bay | |
| KR20250021129A (en) | An automated ROM data static inspection method | |
| JP2001060151A (en) | Program analyzing device, and storage medium stored with program for program analysis or data for program analysis | |
| CN121880186A (en) | Automatic testing method and system for tool chain database file analysis and mapping |