JPH03271949A - Automatic generation system for test environment of program test - Google Patents

Automatic generation system for test environment of program test

Info

Publication number
JPH03271949A
JPH03271949A JP2072428A JP7242890A JPH03271949A JP H03271949 A JPH03271949 A JP H03271949A JP 2072428 A JP2072428 A JP 2072428A JP 7242890 A JP7242890 A JP 7242890A JP H03271949 A JPH03271949 A JP H03271949A
Authority
JP
Japan
Prior art keywords
test
source program
test environment
data
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
Application number
JP2072428A
Other languages
Japanese (ja)
Inventor
Nobuo Murata
伸雄 村田
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 JP2072428A priority Critical patent/JPH03271949A/en
Publication of JPH03271949A publication Critical patent/JPH03271949A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To generate test data which increases the coverage of test conditions and to measure the quality of a source program by providing an input means, a branch information storage means, a file analyzing means, and a test environment generating means. CONSTITUTION:The definition and process procedure of the record or data of the source program are read in by the input means 11 and analyzed by the branch information storage means 12 to store external data base upon branch conditions in an external data storage part 21 and process data based upon tracking in a process data storage part 22 respectively. Further, the file description of the source program is stored in a file information storage part 23 by the file analyzing means 13. According to the pieces of information stored in the respective part, the test environment generating means 14 generates the test data in a test data storage part 24 and test environment in a test environment storage part 25. Consequently, the test, etc., of the source program is improved and the quality of the source program is easily evaluated.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、原始プログラムのテストを実施するのに必要
な外部入力データ、原始プログラムの分岐条件を追跡し
てデータ加工の網羅性を検証できるプログラムテストに
おけるテスト環境自動生成方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention is capable of verifying the completeness of data processing by tracking external input data necessary for testing a source program and branch conditions of the source program. Concerning automatic test environment generation methods for program testing.

〔従来の技術〕[Conventional technology]

従来、この種のプログラムテストは、第3図の従来の方
式を示す図のように単独にテストデータを作成するツー
ルを用意したり、また、テスト環境に応じたジョブ制御
言語を作成して行っていた。
Traditionally, this type of program testing has been carried out by preparing a tool to create test data independently, as shown in Figure 3, which shows the conventional method, or by creating a job control language suitable for the test environment. was.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のプログラムテストは、どのようなテスト
を行うかを人手により判断してチエツクリストを作成す
る。さらに、チエツクリストに従ってテストデータを準
備し、テスト環境を作成してテストが実施される。こと
のように、人手により判断して準備されるテストデータ
は、原始プログラムの分岐条件、または、データ加工等
の網羅を100%満足させるには長時間必要となり、ま
た、誤りが発生するという欠点がある。
In the conventional program test described above, a check list is created by manually determining what kind of test is to be performed. Furthermore, test data is prepared according to the check list, a test environment is created, and the test is conducted. As is often the case, test data that is prepared by manual judgment requires a long time to fully satisfy the branching conditions of the source program or data processing, etc., and also has the drawback of being prone to errors. There is.

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

本発明の、プログラムテストにおけるテスト環境自動生
成方式の構成は、原始プログラムを入力する入力手段、
原始プログラムの分岐条件を記憶して部外データと加工
図データを作り出す分岐情報蓄積手段、原始プログラム
が使用するファイルアクセス方法を解析してファイル情
報を作り出すファイル解析手段および原始プログラムに
必要なテスト環境を生成するテスト環境作成手段とを有
することを特徴とする。
The configuration of the automatic test environment generation method for program testing according to the present invention includes an input means for inputting a source program;
A branching information storage means that stores the branching conditions of the source program and creates external data and machining drawing data, a file analysis means that analyzes the file access method used by the source program and creates file information, and a test environment necessary for the source program. The method is characterized by having a test environment creation means for creating a test environment.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例の方式を説明するためのブロ
ック図、第2図は第1図のテスト環境記憶装置2の方式
を説明するための図、1はテスト環境解析処理装置、2
はテスト環境記憶装置で第2図は上述のテスト環境記憶
装置の構成を示す図である。上述のテスト環境解析処理
装置は、原子プログラムのレコードまたはデータの定義
および処理手続きを11の入力手段により読込み、12
の分岐情報蓄積手段により上述のデータおよび処理値続
きを解析し、分岐条件による外部データ21の外部デー
タ記憶部に、追跡にもとづいた加工データを加工データ
記憶部にそれぞれ蓄積する。さらに、ソースプログラム
の構成要素であるファイル記述を13のファイル解析手
段により23のファイル情報記憶部に蓄積する。上述し
たテスト環境記憶装置の各部に蓄積された情報は、14
のテスト環境作成手段によって24のテストデータ記憶
部にテストデータを生成および25のテスト環境記憶部
にテスト環境(ジョブ制御言語)を生成する0本発明は
、原子プロクラムのテストも等を向上させること、また
、容易に原子プログラムの品質評価を行うものであり、
上述した実施例は、単一のプログラム記述言語のテスト
方式である。
FIG. 1 is a block diagram for explaining the method of an embodiment of the present invention, FIG. 2 is a diagram for explaining the method of the test environment storage device 2 of FIG. 1, 1 is a test environment analysis processing device, 2
is a test environment storage device, and FIG. 2 is a diagram showing the configuration of the above-mentioned test environment storage device. The test environment analysis processing device described above reads atomic program records or data definitions and processing procedures through 11 input means, and 12
The above-mentioned data and processing value continuation are analyzed by the branch information storage means, and the processed data based on the tracking is stored in the external data storage section of the external data 21 based on the branch condition and the processed data storage section, respectively. Further, file descriptions, which are the constituent elements of the source program, are stored in the file information storage section 23 by the file analysis means 13. The information stored in each part of the test environment storage device described above is 14
Generating test data in the test data storage section 24 and generating a test environment (job control language) in the test environment storage section 25 by the test environment creation means of the present invention also improves the testing of atomic programs, etc. , which also makes it easy to evaluate the quality of atomic programs.
The embodiment described above is a testing method for a single program description language.

本発明は、単体もしくは複数の原始プログラムを供給さ
せること、また、異ったプログラム記述言語の原始プロ
グラムにおいてもテスト環境を生成することが万能であ
る。
The present invention is versatile in supplying a single source program or multiple source programs, and in generating a test environment even for source programs written in different program description languages.

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

以上説明したように本発明は、原始プログラムを解析す
ることにより、テスト条件の網羅性を高めるテストデー
タの生成が可能であり、原始プログラムの品質測定がで
きる効果がある。
As described above, the present invention has the advantage that by analyzing a source program, it is possible to generate test data that increases the comprehensiveness of test conditions, and the quality of the source program can be measured.

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

第1図は本発明の一実施例の方式を説明するための図、
第2図は第1図のテスト環境記憶装置2の方式を説明す
るための図、第3図は従来方式を示す図である。 1・・・・・・テスト環境解析装置、2・・・・・・テ
スト環境記憶装置、21・・・・・・外部データ記憶部
、22・・・・・・加工データ記憶部、23・・・・・
・ファイル情報記憶部、24・・・・・・テスト環境記
憶部。
FIG. 1 is a diagram for explaining the method of one embodiment of the present invention,
FIG. 2 is a diagram for explaining the method of the test environment storage device 2 of FIG. 1, and FIG. 3 is a diagram showing a conventional method. DESCRIPTION OF SYMBOLS 1...Test environment analysis device, 2...Test environment storage device, 21...External data storage unit, 22...Processed data storage unit, 23.・・・・・・
-File information storage unit, 24...Test environment storage unit.

Claims (1)

【特許請求の範囲】[Claims] 原始プログラムを入力する入力手段、原始プログラムの
分岐条件を記憶して外部データと加工図データを作り出
す分岐情報蓄積手段、原始プログラムが使用するファイ
ルアクセス方法を解析してファイル情報を作り出すファ
イル解析手段および原始プログラムに必要なテスト環境
を生成するテスト環境作成手段とを有することを特徴と
するプログラムテストにおけるテスト環境自動生成方式
An input means for inputting a source program, a branch information storage means for storing branch conditions of the source program and creating external data and processing drawing data, a file analysis means for generating file information by analyzing a file access method used by the source program, and 1. An automatic test environment generation method for program testing, comprising test environment creation means for generating a test environment necessary for a source program.
JP2072428A 1990-03-20 1990-03-20 Automatic generation system for test environment of program test Pending JPH03271949A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2072428A JPH03271949A (en) 1990-03-20 1990-03-20 Automatic generation system for test environment of program test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2072428A JPH03271949A (en) 1990-03-20 1990-03-20 Automatic generation system for test environment of program test

Publications (1)

Publication Number Publication Date
JPH03271949A true JPH03271949A (en) 1991-12-03

Family

ID=13489012

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2072428A Pending JPH03271949A (en) 1990-03-20 1990-03-20 Automatic generation system for test environment of program test

Country Status (1)

Country Link
JP (1) JPH03271949A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5729676A (en) * 1993-12-10 1998-03-17 Nec Corporation Method of generating data for evaluating programs
US5926638A (en) * 1996-01-17 1999-07-20 Nec Corporation Program debugging system for debugging a program having graphical user interface
US7240243B2 (en) 2002-03-28 2007-07-03 International Business Machines Corporation System and method for facilitating programmable coverage domains for a testcase generator
CN113704136A (en) * 2021-11-01 2021-11-26 深圳市明源云科技有限公司 Test environment generation method, device, equipment and computer readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5729676A (en) * 1993-12-10 1998-03-17 Nec Corporation Method of generating data for evaluating programs
US5926638A (en) * 1996-01-17 1999-07-20 Nec Corporation Program debugging system for debugging a program having graphical user interface
US7240243B2 (en) 2002-03-28 2007-07-03 International Business Machines Corporation System and method for facilitating programmable coverage domains for a testcase generator
CN113704136A (en) * 2021-11-01 2021-11-26 深圳市明源云科技有限公司 Test environment generation method, device, equipment and computer readable storage medium
CN113704136B (en) * 2021-11-01 2022-01-28 深圳市明源云科技有限公司 Test environment generation method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN112256581B (en) Log playback test method and device for high-simulation securities trade trading system
JPH03271949A (en) Automatic generation system for test environment of program test
US20020049929A1 (en) Humanity interface development system of testing program of circuit board
JP2001282578A (en) Device and method for supporting program test and storage medium storing program on method
JP3657097B2 (en) Test program generation system
JPH03209542A (en) System and device for automatic production of interlocking test data on communication control program
JPH0926897A (en) Program analyzer and program analyzing method
JP3114828B2 (en) Programming device
JPH08105770A (en) Inspecting device
JPS6254337A (en) Specification displaying system for program hierarchy
JPH0365614A (en) Mechatronic apparatus
JPH0567015A (en) Simulation data generation system
JPS61160139A (en) Automatic stepping editor of program list
JP2870735B2 (en) Automatic check method of data value in debugger
CN115774669A (en) Method and system for dynamically acquiring optimal performance of storage system
JPS62135958A (en) Simulation system
CN114676107A (en) Plug seedling type-based machine vision data management method
JPH04101240A (en) Testing system for replaceable software
JPH01311335A (en) Program comprehensive ratio measuring system
JPH04247518A (en) Jcl preparing system
JPH0243638A (en) Driver for program test
JPH04178829A (en) File definition information editing system in load module
JPH03129537A (en) Test coverage system for microprogram
JPH0468446A (en) Debugging supporting device
JPS62235652A (en) Debugging method for program