JPH02220146A - Production system for test data - Google Patents

Production system for test data

Info

Publication number
JPH02220146A
JPH02220146A JP1042669A JP4266989A JPH02220146A JP H02220146 A JPH02220146 A JP H02220146A JP 1042669 A JP1042669 A JP 1042669A JP 4266989 A JP4266989 A JP 4266989A JP H02220146 A JPH02220146 A JP H02220146A
Authority
JP
Japan
Prior art keywords
test data
test
variable
variables
type
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
JP1042669A
Other languages
Japanese (ja)
Inventor
Fumiaki Tejima
文彰 手島
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP1042669A priority Critical patent/JPH02220146A/en
Publication of JPH02220146A publication Critical patent/JPH02220146A/en
Pending legal-status Critical Current

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

【発明の詳細な説明】 [発明の目的) (産業上の利用分野) 本発明は、プログラムの自動テストシステムに関し、特
にテストデータを自動的に生成するためのテストデータ
生成システムに関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to an automatic test system for programs, and particularly to a test data generation system for automatically generating test data.

(従来の技術) 通常、プログラムは複数のモジュールより構成され、各
モジュールが互いにデータや制御の授受を行うことによ
り、所定の機能を果たしている。
(Prior Art) A program is usually composed of a plurality of modules, and each module performs a predetermined function by exchanging data and control with each other.

プログラムの開発に当たっては、そのプログラムを構成
しているモジュールのインターフェース、機能、および
構造等を記したプログラム設計書が作成される。
When developing a program, a program design document is created that describes the interface, functions, structure, etc. of the modules that make up the program.

このようなプログラムに対してはテストを行う必要があ
るが、従来のテストではプログラムが所定の機能を果た
しているか否かを確認できるようなテストデータを人間
が作成していた。このため系統的なテストデータの作成
方法が存在しなかったので、しばしばテスト漏れの原因
となっていた。
It is necessary to perform tests on such programs, but in conventional testing, humans create test data that can be used to confirm whether or not the program is performing its intended function. For this reason, there was no systematic method for creating test data, which often caused test omissions.

また、テストを実施することによってエラーが検出でき
るか否かは、どのようなテストデータを作るかに完全に
依存しており、能力や経験のある人を除いて、あまり多
くのエラーを検出することはできなかった。
Also, whether or not errors can be detected by conducting a test completely depends on what kind of test data is created, and unless you are a person with the ability or experience, it is difficult to detect too many errors. I couldn't do that.

(発明が解決しようとする課題) このように従来のテストデータ生成方法では、効果的な
テストデータを作成するためには、テストデータ作成者
がプログラムの構造や機能を十分に理解していなければ
ならず、プログラム開発者以外の人がテストデータを作
成することは難しかった。
(Problem to be solved by the invention) In this way, in the conventional test data generation method, in order to create effective test data, the test data creator must have a sufficient understanding of the structure and functions of the program. Therefore, it was difficult for people other than program developers to create test data.

その結果、生産性の低下や開発作業の分業化を妨げると
いった問題があった。
As a result, there were problems such as a decline in productivity and an obstruction to the division of labor in development work.

また、技術をもった経験の豊富な人でも、エラーを検出
できるような効果的なテストデータを作成することは難
しく、プログラムを漏れなくテストすることはさらに困
難であった。
Furthermore, even for people with extensive technical experience, it is difficult to create effective test data that can detect errors, and it is even more difficult to thoroughly test programs.

そのため、開発されるプログラムの品質はテストデータ
を作成する人間の技術に依存する割合が高く、テスト漏
れとなることが多い。
Therefore, the quality of the developed program is highly dependent on the skill of the person who creates the test data, and tests are often omitted.

本発明の目的は、テストデータ作成者の技術に依存する
ことなく、系統的で、かつ一定の網羅性をもったテスト
データを、プログラムの設計書から直接自動的に生成す
るテストデータ生成システムを提供することである。
An object of the present invention is to provide a test data generation system that automatically generates test data that is systematic and has a certain degree of comprehensiveness directly from a program design document, without relying on the skills of a test data creator. It is to provide.

[発明の構成] (課題を解決するための手段) 前記目的を達成するために本発明は、テスト対象プログ
ラムを実行させるのに必要な変数およびプログラム設計
情報を記憶する記憶手段と、前記記憶手段から前記変数
および前記プログラム設計情報を検索するプログラム設
計情報検索手段と、前記変数を組合わせテストケースを
作成するテストケース作成手段と、前記テストケースに
従って前記変数と前記プログラム設計情報からテストデ
ータを選択するテストデータ選択手段と、各変数に選択
されたテストデータを割付けるテストデータ割付は手段
と、を具備することを特徴とする。
[Structure of the Invention] (Means for Solving the Problem) In order to achieve the above object, the present invention provides a storage means for storing variables and program design information necessary for executing a test target program, and the storage means. a program design information search means for searching for the variables and the program design information; a test case creation means for creating a test case by combining the variables; and selecting test data from the variables and the program design information according to the test case. The present invention is characterized by comprising: test data selection means for assigning the selected test data to each variable; and test data assignment means for assigning the selected test data to each variable.

(作用) 本発明ではテスト対象プログラムを実行させるのに必要
な変数およびプログラム設計情報を記憶しておき、テス
トを行う場合にこの変数およびプログラム設計情報を検
索して、この変数を組合わせてテストケースを作成し、
このテストケースに従って変数とプログラム設計情報か
らテストデータを選択して、変数に選択されたテストデ
ータを割付けるものである。
(Function) In the present invention, variables and program design information necessary to execute a test target program are stored, and when performing a test, these variables and program design information are searched, and the variables are combined and tested. create a case,
According to this test case, test data is selected from variables and program design information, and the selected test data is assigned to variables.

(実施例) 以下、図面に基づいて本発明の実施例を詳細に説明する
(Example) Hereinafter, an example of the present invention will be described in detail based on the drawings.

第1図は本発明の一実施例に係るテストデータ生成シス
テムの構成を示すブロック図である。同図に示されるよ
うに、このテストデータ生成システムはテストデータベ
ース1、プログラム設計情報検索手段3、テストケース
作成手段5、テストデータ選択手段7、テストデータ割
付は手段9を有しており、端末装置11に接続される。
FIG. 1 is a block diagram showing the configuration of a test data generation system according to an embodiment of the present invention. As shown in the figure, this test data generation system has a test database 1, a program design information search means 3, a test case creation means 5, a test data selection means 7, a test data allocation means 9, and a terminal. It is connected to the device 11.

テストデータベース1には第2図に示すようなプログラ
ム設計情報13が記憶される。プログラム設計情報13
はプログラムを構成するモジュールのモジュール設計情
報15からなる。
The test database 1 stores program design information 13 as shown in FIG. Program design information 13
consists of module design information 15 of modules configuring the program.

モジュール設計情報15は入出力変数間の関係情報17
およびモジュールの入出力変数情報19a% 19b、
・・・からなる。
Module design information 15 is relationship information 17 between input and output variables.
and module input/output variable information 19a% 19b,
Consists of...

関係情報17は人出カ変数間の関係名、変数名の情報を
有している。
The relationship information 17 includes information on relationship names and variable names between attendance variables.

変数情報19a、19b、・・・は変数名、変数の分類
、変数の種類、変数の型、変数の属性、領域情報21a
・・・、表明記述、変数の大きさ等の情報を有している
Variable information 19a, 19b,... is variable name, variable classification, variable type, variable type, variable attribute, area information 21a
..., contains information such as assertion descriptions and variable sizes.

変数の分類は、分類1と分類2の組み合せにより示され
る。
The classification of variables is indicated by a combination of classification 1 and classification 2.

分類1 変数がテスト対象プログラムに対して O引数として渡されるパラメータ型、 ○外部変数として渡されるる外部型、 ○入出力装置を介して渡される内部型 O関数等のリターン値として渡される リターン型、 のいずれかであるかを示す。Classification 1 variables to the program under test. Parameter type passed as O argument, ○ External types passed as external variables, ○ Internal types passed through input/output devices Passed as return value of O function etc. return type, Indicates whether it is one of the following.

分類2 変数がテスト対象プログラムに対して O人力型、 0出力型、 O入出力型、 のいずれかであるかを示す。Classification 2 variables to the program under test. O human powered type, 0 output type, O input/output type, Indicates whether it is one of the following.

変数の種類は、変数が、配列型、ポインタ型、鎧型のう
ちのいずれであるかを示す。
The variable type indicates whether the variable is an array type, a pointer type, or an armor type.

変数の型とは、変数が整数型、実数型、文字型、論理型
のうち、いずれの型であるかを示すものである。
The variable type indicates which type the variable is: an integer type, a real number type, a character type, or a logical type.

変数の属性とは、変数が選択型であるか、生成型である
かを示す。
The attribute of a variable indicates whether the variable is a selection type or a generation type.

ここで選択型とは、領域の要素のいずれかを選択するこ
とを示す。例えば、変数Varが集合型で、集合要素と
して(1,2,31の領域をもつとき、その集合要素の
一つを変数の値として選択する。ここでは、変数Var
の値は例えば“1#になる。
Here, the selection type indicates that any of the elements of the area is selected. For example, when the variable Var is a set type and has areas of (1, 2, 31) as set elements, one of the set elements is selected as the value of the variable.Here, the variable Var
The value of is, for example, “1#”.

また生成型とは、領域の要素に対する演算によって生成
することを示す。例えば、上記例題でその集合要素を文
字とみなし、その系列を作成し、作成したものを逆に数
字とみなすという演算によって変数の値を生成する。こ
こでは、変数Varの値は例えば“123”になる。
Furthermore, the generation type indicates generation by operations on the elements of the area. For example, in the above example, the value of the variable is generated by an operation in which the set elements are regarded as characters, a series is created, and the created series is regarded as numbers. Here, the value of the variable Var is, for example, "123".

領域情報21aは領域記述と代表値で構成される。The area information 21a is composed of an area description and a representative value.

領域とは、変数の意味的に取り得る範囲(定義域)であ
り、領域記述とは集合型、関係型のいずれか示される。
A domain is a semantically possible range (domain) of a variable, and a domain description is either a set type or a relational type.

例えば、集合型の領域記述では、“正数“や“負数“と
いった記述のほかに、上記例題で述べた集合要素を羅列
する記述がある。関係型の領域記述では、°変数Var
は3以上である(Var≧3)″等の記述がある。
For example, in a set-type area description, in addition to descriptions such as "positive numbers" and "negative numbers," there are also descriptions that list the set elements described in the example above. In a relational domain description, the ° variable Var
is 3 or more (Var≧3)''.

表明記述とは、その変数がテスト対象プログラムにおい
て満たすべき条件(論理式)を示す。
The assertion description indicates a condition (logical expression) that the variable must satisfy in the program under test.

変数の大きさとは、その変数のメモリ・サイズであり、
その大きさの単位はビット、バイト、ワードのいずれか
である。
The size of a variable is the memory size of that variable,
The unit of size is bit, byte, or word.

次に、本実施例の動作を説明する。Next, the operation of this embodiment will be explained.

端末装置11からテストデータの生成が指示されると、
テストケース作成手段5はプログラム設計情報検索手段
3を駆動させ、そのテスト対象プログラムをテストする
のに必要な変数の型、分類、種類、属性、領域、大きさ
および変数間の関係を検索し、第3図に示すような入力
表数表を作成する。
When generation of test data is instructed from the terminal device 11,
The test case creation means 5 drives the program design information retrieval means 3 to search for types, classifications, types, attributes, areas, sizes, and relationships between variables of variables necessary to test the test target program, Create an input table number table as shown in Figure 3.

次に、第3図に示す入力表数表および入力変数間の関係
に基づいて必要な入力変数の組合わせを与えるテストケ
ースを作成する。ここで言う入力変数間の関係とは、入
力変数間の関係の強さ等を示すものである。第4図はこ
のようなテストケースを示すものである。
Next, a test case is created that provides the necessary combinations of input variables based on the input table number table shown in FIG. 3 and the relationship between the input variables. The relationship between input variables here refers to the strength of the relationship between input variables. FIG. 4 shows such a test case.

次に、テストデータ選択手段7は、第4図に示すテスト
ケースに従って入力変数の型、大きさ、属性に基づいて
各入力変数の領域からテストデータを選択する。
Next, the test data selection means 7 selects test data from the area of each input variable based on the type, size, and attribute of the input variable according to the test case shown in FIG.

第5図はこのテストデータの選択を示すものである。FIG. 5 shows this selection of test data.

(1)選択によるテストデータ生成のとき入力変数の領
域が集合型領域であるならば、集合における任、意の要
素を選択してテストデータとし、関係型領域であるなら
ば、関係を満たす任意の要素を選択してテストデータと
する。このとき、複数のテストデータを同時に選択する
配列型の場合には、その要素の配置に関して複数のテス
トデータが作成される。
(1) When generating test data by selection, if the input variable domain is a set type domain, any element in the set is selected as test data; if it is a relational domain, any element that satisfies the relationship Select the elements of and use them as test data. At this time, in the case of an array type in which multiple pieces of test data are selected at the same time, multiple pieces of test data are created regarding the arrangement of the elements.

(2)生成によるテストデータ作成のとき入力変数の領
域が集合型領域であるならば、集合要素を任意に連結し
てテストデータとし、関係型領域であるならば、関係を
満たす要素を任意に連結してテストデータとする。この
とき、複数のテストデータを同時に選択する配列型の場
合には、その要素の配置に関して複数のテストデータが
作成される。
(2) When creating test data by generation, if the input variable area is a set type area, set elements are arbitrarily connected as test data, and if it is a relation type area, elements that satisfy the relationship are arbitrarily connected. Concatenate and use it as test data. At this time, in the case of an array type in which multiple pieces of test data are selected at the same time, multiple pieces of test data are created regarding the arrangement of the elements.

次に、テストデータ割付は手段9が入力変数の種類に基
づ′いて、各入力変数にテストデータを割付はテストデ
ータを生成する。
Next, the test data allocation means 9 generates test data by allocating test data to each input variable based on the type of input variable.

かくして、本実施例によれば人間がテストデータを経験
や直観に基づいてテストデータを作成する場合に比べて
、テストデータを作成する人間のスキルにあまり依存せ
ず系統的なテストデータを生成できる。また、プログラ
ムの仕様書からテストデータを作成するので、プログラ
ムの詳細な内部構成を知らなくても効果的なテストデー
タを作成することができる。さらに、テストデータを作
成するには、テスト者にかなりの負荷を強いていたが、
このシステムを用いる゛ことによって機械的にテストデ
ータを作成することができるようになるので、作業工数
の大きな省力化になる。
Thus, according to this embodiment, compared to the case where a human creates test data based on experience or intuition, it is possible to systematically generate test data without relying much on the skill of the human who creates the test data. . Furthermore, since test data is created from the program specifications, effective test data can be created without knowing the detailed internal structure of the program. Furthermore, creating test data placed a considerable burden on testers;
By using this system, test data can be created mechanically, resulting in a significant labor saving.

したがって、このテストデータ生成システムを用いるこ
とによって、テスト者のテストデータ作成の手間を省き
、かつエラー検出可能性の高いテストデータを作成する
ことができる。したがって、効率的なテストを行うこと
ができ、またテスト工数を大幅に短縮することができる
Therefore, by using this test data generation system, it is possible to save the tester the trouble of creating test data and to create test data with a high possibility of error detection. Therefore, efficient testing can be performed and the number of testing steps can be significantly reduced.

[発明の効果] 以上詳細に説明したように本発明によれば、テストデー
タ作成者の技術に依存することなく、系統的で、かつ一
定の網羅性をもったテストデータを、プログラムの設計
書から直接自動的に生成することができる。
[Effects of the Invention] As explained in detail above, according to the present invention, test data that is systematic and has a certain degree of comprehensiveness can be generated in a program design document without depending on the skills of the test data creator. can be automatically generated directly from

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

第1図は本発明の一実施例に係るテストデータ生成シス
テムの構成を示すブロック図、第2図はテストデータベ
ース1に蓄積されているプログラム設計情報の内容を示
す図、第3図は入力変数を示す図、第4図はテストケー
スを示す図、第5図はテストデータの選択を示す図であ
る。 1・・・・・・・・・テストデータベース3・・・・・
・・・・プログラム設計情報検索手段5・・・・・・・
・・テストケース作成手段7・・・・・・・・・テスト
データ選択手段9・・・・・・・・・テストデータ割付
は手段出願人      株式会社 東芝
FIG. 1 is a block diagram showing the configuration of a test data generation system according to an embodiment of the present invention, FIG. 2 is a diagram showing the contents of program design information stored in the test database 1, and FIG. 3 is an input variable FIG. 4 is a diagram showing test cases, and FIG. 5 is a diagram showing selection of test data. 1...Test database 3...
...Program design information search means 5...
...Test case creation means 7...Test data selection means 9...Test data allocation means Applicant: Toshiba Corporation

Claims (1)

【特許請求の範囲】 テスト対象プログラムを実行させるのに必要な変数およ
びプログラム設計情報を記憶する記憶手段と、 前記記憶手段から前記変数および前記プログラム設計情
報を検索するプログラム設計情報検索手段と、 前記変数を組合わせテストケースを作成するテストケー
ス作成手段と、 前記テストケースに従って前記変数と前記プログラム設
計情報からテストデータを選択するテストデータ選択手
段と、 各変数に選択されたテストデータを割付けるテストデー
タ割付け手段と、 を具備することを特徴とするテストデータ生成システム
[Scope of Claims] Storage means for storing variables and program design information necessary for executing a test target program; Program design information retrieval means for retrieving the variables and the program design information from the storage means; a test case creation means for creating a test case by combining variables; a test data selection means for selecting test data from the variables and the program design information according to the test case; and a test for assigning the selected test data to each variable. A test data generation system comprising: a data allocation means;
JP1042669A 1989-02-22 1989-02-22 Production system for test data Pending JPH02220146A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1042669A JPH02220146A (en) 1989-02-22 1989-02-22 Production system for test data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1042669A JPH02220146A (en) 1989-02-22 1989-02-22 Production system for test data

Publications (1)

Publication Number Publication Date
JPH02220146A true JPH02220146A (en) 1990-09-03

Family

ID=12642432

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1042669A Pending JPH02220146A (en) 1989-02-22 1989-02-22 Production system for test data

Country Status (1)

Country Link
JP (1) JPH02220146A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0528237A3 (en) * 1991-08-08 1994-05-04 Hitachi Ltd
EP1262868A1 (en) * 2001-06-01 2002-12-04 Alliance pour les Technologies de l'Informatique, ALITEC Method and system for software production
CN114492861A (en) * 2021-12-31 2022-05-13 北京航天测控技术有限公司 Test data acquisition and analysis method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0528237A3 (en) * 1991-08-08 1994-05-04 Hitachi Ltd
EP1262868A1 (en) * 2001-06-01 2002-12-04 Alliance pour les Technologies de l'Informatique, ALITEC Method and system for software production
FR2825487A1 (en) * 2001-06-01 2002-12-06 Alliance Pour Les Technologies SOFTWARE PRODUCTION PROCESS AND EQUIPMENT
CN114492861A (en) * 2021-12-31 2022-05-13 北京航天测控技术有限公司 Test data acquisition and analysis method

Similar Documents

Publication Publication Date Title
US6182245B1 (en) Software test case client/server system and method
US9356966B2 (en) System and method to provide management of test data at various lifecycle stages
CN107688618B (en) Data comparison method, apparatus, computer equipment and storage medium
Kellner et al. Software process modeling example problem
CN113238924B (en) Chaotic engineering realization method and system in distributed graph database system
CN112948480B (en) Data extraction method, device, electronic equipment and storage medium
CN111124872A (en) Branch detection method and device based on difference code analysis and storage medium
US5644581A (en) Method and apparatus for converting logic test vectors to memory test patterns
CN112463596B (en) Test case data processing method, device and equipment and processing equipment
CN117743145A (en) Test script generation method and device based on coding template and processing equipment
US20050091028A1 (en) Simulator and simulation method
JPH02220146A (en) Production system for test data
JP3529290B2 (en) I/O buffer operation power supply automatic check system
CN120162261A (en) Test case generation method, electronic device, storage medium and computer program product
CN107577802A (en) A kind of data base management method and device
CN115309653B (en) Configuration verification method, device and storage medium for industrial control software testing
CN107885649A (en) The performance test methods and device of IOS application programs
Fischer et al. Improved software reliability through requirements verification
CN115757090A (en) Software testing system, method, device and medium
CN111062681B (en) Course selection tour inspection method and device, server and storage medium
JPH01193944A (en) System for automatically selecting test item
US20130262932A1 (en) Stream Generation
CN120705067B (en) A method, apparatus and medium for chip system test requirements analysis
CN120849878B (en) Chip architecture exploration systems, methods, and storage media
CN121166842B (en) Tree document retrieval method, device, equipment and storage medium