JPH0217547A - Test data generation backup processing system - Google Patents

Test data generation backup processing system

Info

Publication number
JPH0217547A
JPH0217547A JP63168103A JP16810388A JPH0217547A JP H0217547 A JPH0217547 A JP H0217547A JP 63168103 A JP63168103 A JP 63168103A JP 16810388 A JP16810388 A JP 16810388A JP H0217547 A JPH0217547 A JP H0217547A
Authority
JP
Japan
Prior art keywords
route
execution
program
test data
variables
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63168103A
Other languages
Japanese (ja)
Inventor
Masanari Watabe
渡部 真生
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 JP63168103A priority Critical patent/JPH0217547A/en
Publication of JPH0217547A publication Critical patent/JPH0217547A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To facilitate designation of test data of a computer program to improve the work efficiency of test by displaying required information for each execution route of the program to input test data to the program. CONSTITUTION:A route information gathering part 2 and a route selecting condition display part 4 are provided for the purpose of performing the test for each execution route based on the internal logical constitution of a source program 1. The route information gathering part 2 analyzes the source program 1 to discriminate execution routes, and route information 3 consisting of conditions of variables for selection of each of these execution routes is gathered. When receiving the input to designate an execution route from an input device 5, the route selecting condition display part 4 displays information indicating conditions of variables out of route information 3 on a display device 6. By this processing, variables to determine execution routes and values to be set to these variables are easily detected, and test data for each execution route is easily generated.

Description

【発明の詳細な説明】 〔概 要〕 計算機プログラムの試験のために、プログラムに入力す
るテストデータの作成に関し、プログラムの実行経路別
に必要な情報を表示して、テストデータの指定を容易に
するテストデータ作成支援処理方式を目的とし、 計算機のプログラムを、該プログラムの内部論理構成に
基づいて、実行経路別に試験するために、入力すべきテ
ストデータを作成するシステムにおいて、該プログラム
を解析して、該実行経路を識別し、該実行経路別に該実
行経路を選択するための変数の条件を収集する手段と、
該実行経路を指定する入力に対応して、該収集した変数
の条件から、当該実行経路を選択するための変数の条件
を示す情報を表示する手段を設けるように構成する。
[Detailed Description of the Invention] [Summary] Regarding the creation of test data to be input into a program for testing a computer program, necessary information is displayed for each program execution path to facilitate the specification of test data. A system for creating test data to be input in order to test a computer program for each execution path based on the internal logical configuration of the program, with the purpose of a test data creation support processing method. , means for identifying the execution path and collecting variable conditions for selecting the execution path for each execution path;
The apparatus is configured to provide means for displaying information indicating variable conditions for selecting the execution path from the collected variable conditions in response to an input specifying the execution path.

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

本発明は、計算機プログラムの試験のために人力するテ
ストデータの作成、特にプログラムの実行経路別のテス
トのための、テストデータ作成を支援する処理方式に関
する。
The present invention relates to a processing method for manually creating test data for testing a computer program, and particularly for supporting the creation of test data for testing each execution path of a program.

〔従来の技術と発明が解決しようとする課題〕計算機に
おけるプログラムのテストは一般に、適当なテストデー
タをそのプログラムに入力して処理させ、実行結果の出
力データの正しさを検査することによって行われる。
[Prior art and problems to be solved by the invention] Testing of a program in a computer is generally performed by inputting appropriate test data into the program and having it processed, and checking the correctness of the output data as a result of execution. .

その場合に、プログラムを外部から見た機能のみに着目
して試験する場合と、プログラムの内部論理構成に着目
して、所要の実行経路を実行させるように意図したテス
トデータを入力して試験する場合があり、後者は例えば
プログラムのすべての異なる実行経路を網羅する試験を
確実に行うことのできる試験方法として使用される。
In this case, there are cases in which the program is tested by focusing only on its functions as seen from the outside, and in cases in which the test is conducted by focusing on the internal logical structure of the program and inputting test data designed to execute the desired execution path. In some cases, the latter is used, for example, as a testing method that makes it possible to ensure that tests cover all different execution paths of a program.

プログラムの実行経路は一般に、変数の値を判断して分
岐するプログラム論理によって形成されるので、プログ
ラムの実行において、ある実行経路を通るようにするた
めには、関連する各分岐点で分岐方向を定める変数に所
要の値が設定されることが必要であり、それらの変数の
値はその外部からそのプログラムの入力データとして与
えられるデータで値を設定される、いわゆる外部変数の
値によって直接又は間接に制御される。
The execution path of a program is generally formed by program logic that branches based on the values of variables, so in order to follow a certain execution path during program execution, the branch direction must be determined at each related branch point. It is necessary to set the required values to the specified variables, and the values of those variables can be set directly or indirectly by the values of so-called external variables, which are set with data given as input data to the program from outside the program. controlled by.

そこで、前記のような内部論理構成に着目したプログラ
ムのテストを行う場合には、試験者がプログラムを解読
して、各実行経路を通るために設定する必要のある変数
とその条件を識別し、テストデータを作成するための変
数値の指定をしなければならないが、これは相当手間の
かかる作業であった。
Therefore, when testing a program that focuses on the internal logical configuration as described above, the tester decodes the program and identifies the variables and their conditions that need to be set in order to pass through each execution path. Variable values had to be specified to create test data, but this was a very time-consuming task.

本発明は、プログラムの実行経路別に必要な情報を表示
して、テストデータの指定を容易にするテストデータ作
成支援処理方式を目的とする。
An object of the present invention is to provide a test data creation support processing method that displays necessary information for each program execution path and facilitates the specification of test data.

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

第1図は、本発明の構成を示すブロック図である。 FIG. 1 is a block diagram showing the configuration of the present invention.

図はテストデータ作成支援処理方式の構成を示し、2は
原始プログラムを解析して実行経路を識別し、実行経路
別の経路情報3を収集する経路情報収集部、4は入力装
置5からの経路指定に応じて経路情報3の所要情報を表
示装置6に表示する経路選択条件表示部である。
The figure shows the configuration of the test data creation support processing method, where 2 is a path information collection unit that analyzes the source program to identify the execution path and collects path information 3 for each execution path, and 4 is the path from the input device 5. This is a route selection condition display unit that displays required information of the route information 3 on the display device 6 according to the designation.

以上の処理方式により、実行経路を決定する変数及びそ
の変数に設定すべき値を容易に知ることができるので、
実行経路別のテストデータの作成が容易になる。
With the above processing method, it is possible to easily know the variables that determine the execution path and the values that should be set for those variables.
It becomes easy to create test data for each execution route.

〔作 用〕[For production]

計算機の原始プログラム1を、そのプログラムの内部論
理構成に基づいて、実行経路別に試験するために、入力
すべきテストデータを作成するシステムに、テストデー
タ作成を支援するための経路情報収集部2及び経路選択
条件表示部4を設ける。
A system for creating test data to be input in order to test a computer source program 1 for each execution route based on the internal logical configuration of the program includes a route information collection unit 2 for supporting test data creation; A route selection condition display section 4 is provided.

経路情報収集部2は原始プログラム1を解析して、実行
経路を識別し、実行経路別にその実行経路を選択するた
めの変数の条件からなる経路情報3を収集する。
The path information collection unit 2 analyzes the source program 1, identifies execution paths, and collects path information 3 consisting of variable conditions for selecting the execution path for each execution path.

経路選択条件表示部4は、入力装置5から実行経路を指
定する入力を受けると、経路情報3から当該実行経路を
選択するための変数の条件を示す情報を表示装置6に表
示する。
When the route selection condition display unit 4 receives an input designating an execution route from the input device 5, it displays information indicating variable conditions for selecting the execution route from the route information 3 on the display device 6.

〔実施例〕〔Example〕

原始プログラム1は一般に第2図に処理の流れ図として
例示するような構成を有し、例えば判定文10による変
数Aの値の判定により、A=10の場合と、A≠10の
場合で2つの実行経路に分岐が生じ、A=10の場合に
ついて判定文11で更に実行経路が分岐するというよう
にして、図に■〜■で説明的に示すような多数の実行経
路を有する。
The source program 1 generally has a configuration as illustrated in the processing flowchart in FIG. A branch occurs in the execution path, and in the case of A=10, the execution path further branches at the decision statement 11, so that there are a large number of execution paths as illustrated by ■ to ■ in the figure.

経路情報収集部2は原始プログラム1を読み込むと、例
えば第3図(a)に示す処理の流れにより、先ず処理ス
テップ20で原始プログラムを走査して、判定文を取り
出し、判定文と判定条件に関する情報を記憶する。
When the route information collection unit 2 reads the source program 1, it first scans the source program in a processing step 20, extracts the judgment statement, and performs a process related to the judgment statement and the judgment condition, according to the processing flow shown in FIG. 3(a), for example. Remember information.

次に処理ステップ21で、判定文の判定結果の真偽の組
合わせによって構成される実行経路を識別し、各実行経
路別に判定条件となる変数の条件をまとめ、経路情報3
として収集する。こ\で変数の条件は、所要の変数の変
数名と、実行経路を定めるためにその変数がとるべき値
の範囲を示す情報である。
Next, in processing step 21, execution paths formed by combinations of truth and false judgment results of judgment statements are identified, conditions of variables serving as judgment conditions are summarized for each execution path, and path information 3.
Collect as. Here, the variable condition is information indicating the variable name of the required variable and the range of values that variable should take in order to determine the execution path.

又、処理ステップ22で経路と変数の条件を、例えば第
3図(b)のように表示装置6に表示する。図の表示例
は第2図に例示した原始プログラムの論理に対応する。
Further, in processing step 22, the route and variable conditions are displayed on the display device 6, for example, as shown in FIG. 3(b). The display example in the figure corresponds to the logic of the source program illustrated in FIG.

試験者はこの表示によって、実行経路を選択し、例えば
テスト番号とそのテストを構成する実行経路の経路番号
との対応を示す指定を経路選択条件表示部4に入力する
The tester selects an execution route based on this display, and inputs into the route selection condition display section 4, for example, a designation indicating the correspondence between the test number and the route number of the execution route constituting the test.

そこで経路選択条件表示部4は、例えば第4図fa)に
示す処理の流れにより、先ず処理ステ・7ブ30で指定
された経路番号に対応する変数の条件を経路情報3から
取り出し、処理ステップ31で原始プログラムを参照し
て、その変数のうちで外部変数であって、値の設定を要
する変数を抽出する。
Therefore, the route selection condition display unit 4 first extracts the variable condition corresponding to the route number specified in the processing step 7 block 30 from the route information 3 according to the processing flow shown in FIG. In step 31, the source program is referred to, and among the variables, variables that are external variables and whose values need to be set are extracted.

こ\で外部変数とは、公知のようにそのプログラム内の
みにローカルに定義された変数でなく、他のプログラム
と共通に定義されていて、他のプログラムによって設定
された値を受は取り、又は設定した値を他のプログラム
に渡すように使用される変数であり、原始プログラムに
おいて、例えばEXTERNAL文等と呼ばれる宣言文
によって宣言されているものである。
In this case, an external variable is not a variable that is locally defined only within the program, but a variable that is defined in common with other programs, and receives the value set by the other program. Alternatively, it is a variable used to pass a set value to another program, and is declared in a source program by a declaration statement called an EXTERNAL statement, for example.

次に処理ステップ32において経路選択条件表示部4は
、処理ステップ31で抽出した外部変数について、変数
名と指定の実行経路を選択するための値の条件を、例え
ば第4図(blのように表示装置6に表示する。
Next, in processing step 32, the route selection condition display unit 4 displays the variable name and value conditions for selecting the specified execution route for the external variables extracted in processing step 31, for example as shown in FIG. It is displayed on the display device 6.

試験者はこの表示された各変数について、条件を満足す
る値を選んで入力し、テストデータ生成部7はその値か
らテストデータを作成する。
The tester selects and inputs a value that satisfies the conditions for each of the displayed variables, and the test data generation section 7 creates test data from the values.

〔発明の効果〕〔Effect of the invention〕

以上の説明から明らかなように本発明によれば、計算機
プログラムの試験のために、プログラムに入力するテス
トデータの作成において、プログラムの実行経路別に必
要な情報を表示して、テストデータの指定を容易にする
ので、プログラムテストの作業効率を改善するという著
しい工業的効果がある。
As is clear from the above description, according to the present invention, when creating test data to be input into a program for testing a computer program, necessary information is displayed for each execution path of the program, and test data can be specified. This has a significant industrial effect of improving the work efficiency of program testing.

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

第1図は本発明の構成を示すブロック図、第2図は実行
経路の説明図、 第3図は経路情報収集部の処理の説明図、第4図は経路
選択条件表示部の処理の説明図である。 図において、 lは原始プログラム、 2は経路情報収集部、3は経路
情報、     4は経路選択条件表示部、5は入力装
置、    6は表示装置、本発明の構成を示すブロッ
ク図 第1図 を示す。
Fig. 1 is a block diagram showing the configuration of the present invention, Fig. 2 is an explanatory diagram of an execution route, Fig. 3 is an explanatory diagram of processing of the route information collection section, and Fig. 4 is an explanation of processing of the route selection condition display section. It is a diagram. In the figure, l is a source program, 2 is a route information collection unit, 3 is route information, 4 is a route selection condition display unit, 5 is an input device, and 6 is a display device. show.

Claims (1)

【特許請求の範囲】 計算機のプログラム(1)を、該プログラムの内部論理
構成に基づいて、実行経路別に試験するために、入力す
べきテストデータを作成するシステム(2〜7)におい
て、 該プログラム(1)を解析して、該実行経路を識別し、
該実行経路別に該実行経路を選択するための変数の条件
を収集する手段(2)と、 該実行経路を指定する入力に対応して、該収集した変数
の条件(3)から、当該実行経路を選択するための変数
の条件を示す情報を表示する手段(4)を設けることを
特徴とするテストデータ作成支援処理方式。
[Scope of Claims] A system (2 to 7) for creating test data to be input in order to test a computer program (1) for each execution path based on the internal logical configuration of the program, comprising: Analyze (1) to identify the execution path,
Means (2) for collecting variable conditions for selecting the execution path for each execution path; A test data creation support processing method characterized by comprising means (4) for displaying information indicating conditions of variables for selecting.
JP63168103A 1988-07-06 1988-07-06 Test data generation backup processing system Pending JPH0217547A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63168103A JPH0217547A (en) 1988-07-06 1988-07-06 Test data generation backup processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63168103A JPH0217547A (en) 1988-07-06 1988-07-06 Test data generation backup processing system

Publications (1)

Publication Number Publication Date
JPH0217547A true JPH0217547A (en) 1990-01-22

Family

ID=15861897

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63168103A Pending JPH0217547A (en) 1988-07-06 1988-07-06 Test data generation backup processing system

Country Status (1)

Country Link
JP (1) JPH0217547A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06348541A (en) * 1993-06-11 1994-12-22 Nec Corp Program test system
JPH0778096A (en) * 1993-06-30 1995-03-20 Nec Corp Program test system
JP2009217664A (en) * 2008-03-12 2009-09-24 Hitachi Software Eng Co Ltd Automatic test execution system
JP2010204954A (en) * 2009-03-03 2010-09-16 Nec Corp Program-verifying device, program-verifying method, and program for execution of verifying function

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06348541A (en) * 1993-06-11 1994-12-22 Nec Corp Program test system
JPH0778096A (en) * 1993-06-30 1995-03-20 Nec Corp Program test system
JP2009217664A (en) * 2008-03-12 2009-09-24 Hitachi Software Eng Co Ltd Automatic test execution system
JP2010204954A (en) * 2009-03-03 2010-09-16 Nec Corp Program-verifying device, program-verifying method, and program for execution of verifying function

Similar Documents

Publication Publication Date Title
US7636871B1 (en) Method for comparing customer and test load data with comparative functional coverage hole analysis
Liu et al. Statement-oriented mutant reduction strategy for mutation based fault localization
JPH0217547A (en) Test data generation backup processing system
JPH0674877A (en) Automatic quality inspector for parts
JP2000056825A (en) Plant monitor device
JPH03257538A (en) Test control method for information processing system
JPH05274178A (en) Display processing system for debug result of parallel computer
JPH0229866A (en) Method for displaying abnormal subject in clinical inspection system
JPH0926897A (en) Program analyzer and program analyzing method
JPH0210443A (en) Reset case selecting system
JP5910410B2 (en) Schematic program test data generation apparatus and method, and program
JP2699436B2 (en) Parameter inspection processing method
JPH0658716B2 (en) Failure diagnosis device and failure diagnosis system
US10489428B2 (en) Existing system processing specification extractor
JPH10199953A (en) Method and apparatus for analyzing yield
JPH06250876A (en) Interactive debugging supporting system
JPS61279951A (en) Instrumentation system for program including factor
JPS6266338A (en) Testing method for pipeline mechanism
JPH01304559A (en) Input/output function test system
JPH09269245A (en) Wave form display method to display means of recorder
JPS60120446A (en) Control system of program test
JPH1173343A (en) Program test device and storage medium
JPH07114485A (en) Simulation test system execution method
JPS6324425A (en) Test comprehensive state detection system
JPH0553782A (en) System for obtaining dynamic characteristic analysis information of specified part