JPS58169257A - Generating method of data for program test - Google Patents
Generating method of data for program testInfo
- Publication number
- JPS58169257A JPS58169257A JP57052771A JP5277182A JPS58169257A JP S58169257 A JPS58169257 A JP S58169257A JP 57052771 A JP57052771 A JP 57052771A JP 5277182 A JP5277182 A JP 5277182A JP S58169257 A JPS58169257 A JP S58169257A
- Authority
- JP
- Japan
- Prior art keywords
- data
- program
- test
- generating
- file
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Abstract
Description
【発明の詳細な説明】
れ)発明の技術分計
この発明は、コンピュータを作動させるためのプログラ
ムをテストするためのプログラムテスト用データの作成
方法に関するものである。DETAILED DESCRIPTION OF THE INVENTION (1) Technical Summary of the Invention The present invention relates to a method for creating program test data for testing a program for operating a computer.
(至)技術の背景
コンピュータを作動させるプログラムが作成され、この
作成されたプログラムの正当性を確認するためにテスト
用のデータが作成され、このデータを入力することによ
りプログラムの正当性を確認するということが一般に行
われている。(To) Technical Background A program that operates a computer is created, test data is created to confirm the validity of this created program, and the validity of the program is verified by inputting this data. This is commonly done.
(C) 従来技術と問題点
とζろが従来のプログラムテスト用データの作成方法は
データゼネレータを用いて作成されることが多い、即ち
ゼネレータを用いることはデータを作成するのに共通な
機能をもったユーティリティ・プログラムを用いること
となる。このユーティリティ・プログラムは機械に固有
の制御文があや、ゼネレータを用いてデータを作成する
のにはこの制御文を用いてデータを作成せねばならず、
プログラム作成上工数を必要とするばかりでなく、デー
タ作成中に入力データ領域や入力データの形式を誤ると
いう問題もあった。(C) Prior art, problems, and conventional methods of creating data for program tests are often created using data generators. You will need to use the utility program you have. This utility program has machine-specific control statements, so to create data using a generator, you must use these control statements to create data.
Not only does it take a lot of man-hours to create a program, but there is also the problem of making mistakes in the input data area or input data format during data creation.
■ 発明の目的
この発明は、以上のような従来の状況から被テストデロ
グフム内のデータ領域を用いて入力データを作成しデー
タ作成上効率よく誤りの少いプログラムテスト用データ
の作成方法を提供することt@的とするものである。■ Purpose of the Invention In view of the above-mentioned conventional situation, it is an object of the present invention to provide a method for creating program test data that is efficient in data creation and has fewer errors by creating input data using a data area in a test object. It is a t@ target.
(e) 発明の構成
簡単に述べるとこの発明は、プログラムに内蔵されたデ
ータ領域を読取り解析してデータ構造を作成し、解析結
果に基づいてデータを入力してテストデータを作成する
ことを特徴とするものである。(e) Structure of the Invention Briefly stated, this invention is characterized by reading and analyzing a data area built into a program to create a data structure, and inputting data based on the analysis results to create test data. That is.
(f) 発明の実施例
図はこの発明を適用し九ブログフムテスト用データの作
成方法の一実施例を示すブロック図であって、lは被テ
ストプログラム、2はデータ構造登録部、8はデータ構
造のファイ〃、会はデータ生成部、6はデータ入力部、
6はテストデータ格納部である。(f) Embodiment of the Invention The figure is a block diagram showing an embodiment of a method for creating data for a nine-blog test by applying the present invention, in which l is a program under test, 2 is a data structure registration unit, and 8 is a The data structure file is the data generation section, 6 is the data input section,
6 is a test data storage section.
テスト用データを作成するのには被テストプログラムl
内に内蔵されているデータ領域を直接データ構造登録部
2が読取り、この読取ったデータ領域をデータ構造登録
部2が解析してデータ構造のファイル8に登録する。こ
の工程中には勿論従来のように制御文を必要としない。The program under test is used to create test data.
The data structure registration unit 2 directly reads the data area built in the internal memory, and the data structure registration unit 2 analyzes the read data area and registers it in the data structure file 8. Of course, no control statement is required during this process as in the conventional method.
データ入力部5はこのデータ構造の7アイ/I/8の内
容を例えばディスプレイ装置5の1IWJ上で読みなが
ら入力データを打鍵しデータをデータ生成部4に送出す
る。The data input section 5 reads the contents of the 7eye/I/8 of this data structure on, for example, the 1IWJ of the display device 5, presses the input data, and sends the data to the data generation section 4.
データ生成部4はデータ構造のファイ/L/8にデータ
を加えテストデータを作成してテストデータ格納部6に
そのデータを格納するのである。従ってこの作成方法に
は制御文が不用であり、制御文取扱中の誤りもなく1作
成したテスト用データは被テストプログラムを利用して
作成されたものであり、テスト用データと被テストプロ
グラムとの矛盾の少いデータとなる。しかも一度データ
構造を登録しておけば何時でも容易にデータを作成でき
る。The data generation section 4 adds data to the file/L/8 data structure to create test data, and stores the data in the test data storage section 6. Therefore, this creation method does not require control statements, and the test data created without any errors in the handling of control statements was created using the program under test, and the test data and the program under test are This results in data with fewer contradictions. Moreover, once the data structure is registered, data can be easily created at any time.
(2)発明の効果
上述のごときこの発明によれば制御文を用いて入力デー
タを作成することなく被テストプログラム内のデータ領
域を用いて入力データが作成されデータを作成する上で
、効率を向上し誤入力の少いものとなるといった効果大
である。(2) Effects of the Invention According to the invention as described above, input data is created using the data area in the program under test without using control statements to create the input data, improving efficiency in creating data. This has a great effect in that it improves performance and reduces erroneous input.
図はこの発明を適用したプログラムテスト用データの作
成方法の一実施例を示すブロック図である。
図において、1は被テストプログラム、2はデータ構造
登録部、8はデータ構造のファイル、4はデータ生成部
、5はデータ入力部、6はテストデータ格納部をそれぞ
れ示す。The figure is a block diagram showing an embodiment of a method for creating program test data to which the present invention is applied. In the figure, 1 is a program under test, 2 is a data structure registration section, 8 is a data structure file, 4 is a data generation section, 5 is a data input section, and 6 is a test data storage section.
Claims (1)
であって、該プログラムに内蔵されたデータ領域を読取
り解析してデータ構造を作成し、前記解析の結果に基づ
いて前記データを入力してテストデータを作成すること
を特徴とするプログラムテスト用データの作成方法つA method of creating data used for testing a program, the method reads and analyzes a data area built into the program to create a data structure, and inputs the data based on the result of the analysis to create test data. A method for creating program test data characterized by creating
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57052771A JPS58169257A (en) | 1982-03-30 | 1982-03-30 | Generating method of data for program test |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57052771A JPS58169257A (en) | 1982-03-30 | 1982-03-30 | Generating method of data for program test |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS58169257A true JPS58169257A (en) | 1983-10-05 |
Family
ID=12924125
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP57052771A Pending JPS58169257A (en) | 1982-03-30 | 1982-03-30 | Generating method of data for program test |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS58169257A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS60200346A (en) * | 1984-03-23 | 1985-10-09 | Hitachi Ltd | Production of program test data |
-
1982
- 1982-03-30 JP JP57052771A patent/JPS58169257A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS60200346A (en) * | 1984-03-23 | 1985-10-09 | Hitachi Ltd | Production of program test data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS6116100B2 (en) | ||
JPS58169257A (en) | Generating method of data for program test | |
JP2585592B2 (en) | Computer adjustment method | |
JPS61110244A (en) | Testing system of information processor | |
JPH07230391A (en) | Verifier for information processor | |
JPS62235652A (en) | Debugging method for program | |
JPH0895817A (en) | Method for testing information processor | |
JPH02294848A (en) | Program evaluating system | |
JPS60171546A (en) | Debug system of input and output device | |
JPH01255940A (en) | On-line system software testing system | |
JPH04309138A (en) | Diagnostic system due to random data simulation of instruction | |
JPS63279336A (en) | Inspecting device for computer system | |
JPH05298150A (en) | Application program inspecting system | |
JPS6365542A (en) | Debugging system | |
JPH05216828A (en) | Error processing system in batch execution of software simulator | |
JPS59165128A (en) | Interactive data input system | |
JPH064348A (en) | Program debugging system | |
JPS6215894B2 (en) | ||
JPS5938859A (en) | High speed logical simulating system | |
JPS6331811B2 (en) | ||
JPH04369044A (en) | Testing device for computer | |
JPS62235651A (en) | Test data origination device | |
JPH08314658A (en) | Printer function verifying device | |
JPH05134018A (en) | Fault simulation method | |
JPS62114040A (en) | Event simulator |