JPH06119204A - Test data base generating system - Google Patents

Test data base generating system

Info

Publication number
JPH06119204A
JPH06119204A JP4095740A JP9574092A JPH06119204A JP H06119204 A JPH06119204 A JP H06119204A JP 4095740 A JP4095740 A JP 4095740A JP 9574092 A JP9574092 A JP 9574092A JP H06119204 A JPH06119204 A JP H06119204A
Authority
JP
Japan
Prior art keywords
data
database
data file
skeleton
test
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
JP4095740A
Other languages
Japanese (ja)
Inventor
Hiroshi Fujioka
寛 藤岡
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP4095740A priority Critical patent/JPH06119204A/en
Publication of JPH06119204A publication Critical patent/JPH06119204A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To constitute a system so that the structure of a data base is generated from definition information at the time of generating the data base and the data base can be constructed by a simple input. CONSTITUTION:The system is provided with a library 1-2 for storing layout information of each record for constituting a data base 1-4, a data file 1-3 for storing test data base information, a data processor 1-1 for executing a data processing by inputting and outputting the data file 1-3, the data base, the library and the data file, and a keyboard display 1-5 for inputting and outputting the contents of the data file. A skeleton generating part 1-6 reads in library information, generates the skeleton of test data in the data file, a data input part 1-7 reads in its skeleton, writes it in the data file together with inputted data, and a data base loading part 1-8 reads in the data file, and writes it in the data base.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はテストデータベース作成
方式に関し、特に計算機システムのテスト手法で、オン
ライン業務処理プログラムの開発時において、完成され
たプログラムを部分毎に個別にテストする際、テストに
必要なテストデータをデータベース上に簡易に作成する
ためのテストデータベース作成方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a test database creation method, and more particularly to a test method for a computer system, which is required for testing when a completed program is individually tested for each part during development of an online business processing program. Database creation method for creating simple test data in a database easily.

【0002】[0002]

【従来の技術】従来、データベースにテストデータを作
成するためには業務処理に依存せざるを得なかった。し
たがって、テストを行うためには、そのテストに必要と
なるデータを作成する処理のオンラインプログラムが完
成していることが前提となる。この場合、テスト実行者
はオンラインプログラムを実行しながらテストデータを
作成していくことになる。
2. Description of the Related Art Conventionally, in order to create test data in a database, it was inevitable to rely on business processing. Therefore, in order to carry out a test, it is premised that an online program for processing for creating data required for the test is completed. In this case, the test executor creates the test data while executing the online program.

【0003】[0003]

【発明が解決しようとする課題】従来は、テストデータ
ベースのデータは業務処理により作成していた。そのた
め、プログラムの開発時はデータを作成する処理の開発
が先行して行われなければならず、この部分が完成する
まで他の部分のテストが進められない状態となってい
た。また、テストを実行するために、多数の処理を事前
に行う必要性があるため、テストの効率性が悪く、余分
な工数がかかってしまう状況であった。
Conventionally, the data in the test database has been created by business processing. Therefore, at the time of developing the program, the development of the process for creating the data must be done in advance, and the test of the other parts cannot proceed until this part is completed. In addition, since it is necessary to perform a large number of processes in advance in order to execute the test, the efficiency of the test is poor and extra man-hours are required.

【0004】[0004]

【課題を解決するための手段】本発明のテストデータベ
ース作成方式は、データベースと、データベースを構成
する各レコードのレイアウト情報を格納するライブラリ
と、テスト用データベース情報を格納するデータファイ
ルと、前記データベースとライブラリとデータファイル
を入出力して、データ処理を行うデータ処理装置と、前
記データファイルの内容を入出力する入出力装置を備
え、前記データ処理装置が、スケルトン生成部、データ
入力部、データベースロード部とを含み、前記スケルト
ン生成部がライブラリ情報を読み込み、前記データファ
イル内にテストデータのスケルトンを作成し、そのスケ
ルトンを前記データ入力部が読み込み、前記入出力装置
から入力されたデータとあわせて前記データファイルに
書き込み、最後に前記データベースロード部が前記デー
タファイルを読み込んで、前記データベースに書き込
む。
A test database creating method according to the present invention comprises a database, a library for storing layout information of each record constituting the database, a data file for storing test database information, and the database. A data processing device for inputting and outputting data to and from a library and a data processing device, and an input / output device for inputting and outputting the contents of the data file, wherein the data processing device includes a skeleton generation unit, a data input unit, and a database load. The skeleton generation unit reads the library information, creates a skeleton of the test data in the data file, the skeleton is read by the data input unit, together with the data input from the input / output device. Write to the data file, last before Database loading unit is reading the data file, and writes to the database.

【0005】[0005]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0006】図1は本発明のテストデータベース作成方
式の一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a test database creating system of the present invention.

【0007】本実施例のテストデータベース作成方式
は、図1に示すように、データ処理装置(1−1)はC
PUであり、スケルトン生成部(1−6)、データ入力
部(1−7)、データベースロード部(1−8)、から
構成される。ライブラリ(1−2)、データファイル
(1−3)、データベース(1−4)は磁気ディスクを
用いて構成する。
As shown in FIG. 1, in the test database creating method of this embodiment, the data processing device (1-1) uses C
It is a PU and includes a skeleton generation unit (1-6), a data input unit (1-7), and a database load unit (1-8). The library (1-2), the data file (1-3), and the database (1-4) are constructed using magnetic disks.

【0008】入出力装置はキーボード・ディスプレイ
(1−5)を用いて構成する。
The input / output device is constructed by using a keyboard display (1-5).

【0009】次に、上記に述べた各構成要素の動作につ
いて説明する。まず、スケルトン生成部(1−6)がラ
イブラリ(1−2)をアクセスしてデータベース(1−
4)のレコードのレイアウト情報を読み込み、レコード
構造を解析してレコードを構成する項目名、属性、桁
数、及びの情報を持つスケルトンを作成し、データファ
イル(1−3)に書き込む。
Next, the operation of each component described above will be described. First, the skeleton generator (1-6) accesses the library (1-2) to access the database (1-
The layout information of the record of 4) is read, the record structure is analyzed, a skeleton having the information of the item name, the attribute, the number of digits, and the number which configures the record is created, and is written in the data file (1-3).

【0010】次に、キーボード・ディスプレイ(1−
5)からの指示にしたがって、データ入力部(1−7)
の制御によりデータファイル(1−3)からスケルトン
情報を読み込み、キーボード・ディスプレイ(1−5)
のキーボードから入力された設定値の情報を付加してデ
ータファイル(1−3)に書き込む。
Next, the keyboard display (1-
In accordance with the instructions from 5), the data input section (1-7)
Skeleton information is read from the data file (1-3) under the control of the keyboard and the keyboard display (1-5)
The setting value information input from the keyboard is added and written in the data file (1-3).

【0011】次に、データベースロード部(1−8)の
制御によりテストデータ定義ファイルを読み込み、デー
タベースレコードの形式に変換してデータベース(1−
4)に書き込みを行う。
Next, the test data definition file is read under the control of the database loading unit (1-8), converted into a database record format, and the database (1-
Write to 4).

【0012】次に、具体的な例を用いて、テストデータ
ベース作成方式の処理を説明する。図2において、ライ
ブラリ(2−1)、データファイル(2−4)、データ
ベース(2−7)はそれぞれ図1におけるライブラリ
(1−2)、データファイル(1−3)、データベース
(1−4)に対応する。
Next, the processing of the test database creation method will be described using a specific example. 2, the library (2-1), the data file (2-4), and the database (2-7) are respectively the library (1-2), the data file (1-3), and the database (1-4) in FIG. ) Corresponds to.

【0013】図2の例は、顧客レコードと口座マスタレ
コードの2階層構造のデータベースレコードを作成する
ときに、上記の各記憶装置上に作成されるレコードイメ
ージを説明したものである。
The example of FIG. 2 illustrates a record image created on each of the above storage devices when creating a database record having a two-layer structure of a customer record and an account master record.

【0014】顧客レコード構造体定義(2−2)、およ
び口座マスタレコード構造体定義(2−3)はライブラ
リ(2−1)に書き込まれている情報のイメージであ
り、例においては、業務処理プログラムがデータベース
(2−7)を参照するときに引用するコピー原文によっ
て構成する。スケルトン(2−5)およびテストデータ
定義(2−6)はデータファイル(2−4)に書き込ま
れている情報のイメージであり、スケルトン(2−5)
はスケルトン生成部(1−6)により作成された情報、
テストデータ定義(2−6)はデータ入力部(1−7)
により作成された情報である。
The customer record structure definition (2-2) and the account master record structure definition (2-3) are images of information written in the library (2-1), and in the example, business processing. It is composed of the copy source text that is cited when the program refers to the database (2-7). The skeleton (2-5) and the test data definition (2-6) are images of the information written in the data file (2-4).
Is the information created by the skeleton generator (1-6),
Test data definition (2-6) is the data input section (1-7)
It is the information created by.

【0015】顧客レコード(2−8)および口座マスタ
レコード(2−9)はデータベース(2−7)を構成す
るレコードであり、データベースロード部(1−8)に
より作成されたものである。
The customer record (2-8) and the account master record (2-9) are records that compose the database (2-7) and are created by the database loading unit (1-8).

【0016】図中の矢印(2−10、2−11、2−1
2)は、各情報が作成される順番を示し、それぞれを作
成する処理の名称とともに表記されている。
Arrows (2-10, 2-11, 2-1) in the figure
2) indicates the order in which each piece of information is created, and is written together with the name of the processing that creates each piece of information.

【0017】スケルトン生成処理(2−10)はスケル
トン生成部(1−6)において行われ、ライブラリ(2
−1)から読み込んだ顧客レコード構造体定義(2−
2)と口座マスタレコード構造体定義(2−3)におい
て、定義されている各項目ごとに属性・桁数の情報を分
析し、分析した内容を規定のフォーマットに変換し、属
性・桁数にあった初期値情報とあわせてスケルトン(2
−5)を作成する。図2の例では、顧客レコード構造体
定義(2−2)より、第1項目”店番”は”パック形式
の数字3桁”であると分析され、”C3 03”という
表記に変換され、初期値にゼロが設定される。
The skeleton generation process (2-10) is performed in the skeleton generation unit (1-6) and the library (2
Customer record structure definition read from (-1) (2-
2) and the account master record structure definition (2-3), analyze the attribute / digit number information for each defined item, convert the analyzed contents into the specified format, and convert it to the attribute / digit number. The skeleton (2
-5) is created. In the example of FIG. 2, from the customer record structure definition (2-2), the first item "store number" is analyzed as "3 digits of pack format", and converted into the notation "C303", The value is set to zero.

【0018】データ入力処理(2−11)は、データ入
力部(1−7)において行われ、スケルトン(2−5)
をデータファイル(2−4)から読み込み、キーボード
・ディスプレイ(1−5)のディスプレイに表示する。
その後、キーボード・ディスプレイ(1−5)のキーボ
ードから入力された内容をスケルトン(2−5)の初期
値の部分に置き換えてテストデータ定義(2−6)を作
成し、データファイル(2−4)に書き出す。
The data input process (2-11) is performed in the data input section (1-7), and the skeleton (2-5) is executed.
Is read from the data file (2-4) and displayed on the display of the keyboard display (1-5).
After that, the contents input from the keyboard of the keyboard display (1-5) are replaced with the initial value part of the skeleton (2-5) to create the test data definition (2-6), and the data file (2-4 ).

【0019】データベースロード処理(2−12)は、
データベースロード部(1−8)にて行われ、データフ
ァイル(2−4)からテストデータ定義(2−6)を読
み込み、データベース(2−7)に書き出す。この際、
テストデータ定義(2−6)におけるレコードの並び
は、事前に定めた約束に従って、階層構造に変換され、
データベース(2−7)に格納される。
The database loading process (2-12)
The database loading unit (1-8) reads the test data definition (2-6) from the data file (2-4) and writes it in the database (2-7). On this occasion,
The sequence of records in the test data definition (2-6) is converted into a hierarchical structure according to a predetermined promise,
It is stored in the database (2-7).

【0020】図の例においては、先頭の項目”店番”は
パック形式の数字3桁であることが指定されているの
で、値”101”をパック形式に変換する。以下、”顧
客番号”、”氏名”、のデータを組み立て、レコードが
完成すると、データベース(2−7)上に”顧客レコー
ド(2−8)”として格納する。同様に、”口座マスタ
レコード(2−9)”も組み立てが完成すると、データ
ベース(2−7)に格納される。
In the example of the figure, since the first item "store number" is specified to be a 3-digit number in the pack format, the value "101" is converted into the pack format. Hereinafter, the data of "customer number" and "name" are assembled, and when the record is completed, it is stored as "customer record (2-8)" in the database (2-7). Similarly, the "account master record (2-9)" is also stored in the database (2-7) when the assembly is completed.

【0021】[0021]

【発明の効果】以上説明したように、本発明のテストデ
ータベース作成方式は、データベースを作成する際、デ
ータベースの構造が定義情報から生成により作成される
ため、簡単な入力によりデータベースを構築することが
できる。このことにより、プログラム開発時のテストが
効率的、かつ、正確に実行できるため、開発時間の短
縮、および、品質の向上が見込まれる。
As described above, according to the test database creating method of the present invention, when the database is created, the structure of the database is created from the definition information, so that the database can be built by simple input. it can. As a result, tests during program development can be executed efficiently and accurately, and development time can be shortened and quality can be improved.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明のテストデータベース作成方式の一実施
例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a test database creation system of the present invention.

【図2】本実施例のテストデータベース作成方式におけ
る動作の一例を示す流れ図である。
FIG. 2 is a flowchart showing an example of an operation in the test database creating method of the present embodiment.

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

1−1 データ処理装置 1−2 ライブラリ 1−3 データファイル 1−4 データベース 1−5 キーボード・ディスプレイ 1−6 スケルトン生成部 1−7 データ入力部 1−8 データベースロード部 1-1 Data processing device 1-2 Library 1-3 Data file 1-4 Database 1-5 Keyboard display 1-6 Skeleton generation unit 1-7 Data input unit 1-8 Database loading unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 データベースと、データベースを構成す
る各レコードのレイアウト情報を格納するライブラリ
と、テスト用データベース情報を格納するデータファイ
ルと、前記データベースとライブラリとデータファイル
を入出力して、データ処理を行うデータ処理装置と、前
記データファイルの内容を入出力する入出力装置を備
え、前記データ処理装置が、スケルトン生成部、データ
入力部、データベースロード部とを含み、前記スケルト
ン生成部がライブラリ情報を読み込み、前記データファ
イル内にテストデータのスケルトンを作成し、そのスケ
ルトンを前記データ入力部が読み込み、前記入出力装置
から入力されたデータとあわせて前記データファイルに
書き込み、最後に前記データベースロード部が前記デー
タファイルを読み込んで、前記データベースに書き込む
ことを特徴とするテストデータベース作成方式。
1. A database, a library for storing layout information of each record constituting the database, a data file for storing test database information, and input / output of the database, library and data file for data processing. A data processing device for performing and an input / output device for inputting / outputting the contents of the data file, wherein the data processing device includes a skeleton generating unit, a data input unit, and a database loading unit, and the skeleton generating unit stores library information. Read, create a skeleton of test data in the data file, the skeleton is read by the data input unit, write to the data file together with the data input from the input / output device, and finally the database load unit Load the data file A method for creating a test database, characterized by writing to the database.
JP4095740A 1992-04-16 1992-04-16 Test data base generating system Withdrawn JPH06119204A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4095740A JPH06119204A (en) 1992-04-16 1992-04-16 Test data base generating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4095740A JPH06119204A (en) 1992-04-16 1992-04-16 Test data base generating system

Publications (1)

Publication Number Publication Date
JPH06119204A true JPH06119204A (en) 1994-04-28

Family

ID=14145892

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4095740A Withdrawn JPH06119204A (en) 1992-04-16 1992-04-16 Test data base generating system

Country Status (1)

Country Link
JP (1) JPH06119204A (en)

Similar Documents

Publication Publication Date Title
US7039899B1 (en) System and method for automatically generating a script for testing software
US6243835B1 (en) Test specification generation system and storage medium storing a test specification generation program
US20070277174A1 (en) Apparatus, system, and method for managing z/os batch jobs with prerequisites
CN101996131A (en) Automatic test method and automatic test platform for graphic user interface (GUI) based on x extensive makeup language (XML) packaging key word
Ramaesh et al. Representing and maintaining process knowledge for large-scale systems development
US10241899B2 (en) Test input information search device and method
JPH06119204A (en) Test data base generating system
JP3464159B2 (en) Test specification creation device and storage medium storing the program
CN114461643A (en) Data writing method, device, storage medium and system
JPH06110733A (en) Test case generating device of program
JPH08235024A (en) Automatic test device for software
JP5001126B2 (en) Hardware verification programming description generation apparatus, hardware verification programming description generation method, control program, and readable recording medium
JP3094475B2 (en) Program verification method
JPH11154093A (en) Program compiler and storage medium recording compiler program
JP6132325B1 (en) System development support device
JPH0659937A (en) Device for supporting single body test of load module
JPH11282693A (en) Mcu simulation device, its simulation method and computer redable recording medium recording simulation program
Yin An integrated software design paradigm
TWI236626B (en) System and method for integrating programs of targeted system to save computer system resources
JP2022033153A (en) Information processing device
JPH10198556A (en) Information system analysis supporting tool
JP2000112795A (en) Data structure conversion processor and recording medium
JPH11120029A (en) Software test data generation support method
JP2010218496A (en) Method and program for testing application program and recording medium
JPH11149489A (en) Simulation system

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: 19990706