JPH0391039A - Program for test for software and method for preparing test data - Google Patents

Program for test for software and method for preparing test data

Info

Publication number
JPH0391039A
JPH0391039A JP1227442A JP22744289A JPH0391039A JP H0391039 A JPH0391039 A JP H0391039A JP 1227442 A JP1227442 A JP 1227442A JP 22744289 A JP22744289 A JP 22744289A JP H0391039 A JPH0391039 A JP H0391039A
Authority
JP
Japan
Prior art keywords
file
test
program
test data
software
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
JP1227442A
Other languages
Japanese (ja)
Inventor
Yasuo Sasaki
佐々木 泰男
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.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom 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 Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP1227442A priority Critical patent/JPH0391039A/en
Publication of JPH0391039A publication Critical patent/JPH0391039A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To make work easy in a test process and to eliminate bugging by extracting necessary specification from a specification file and a definition file and further, automatically preparing a test program (source) and test data from this specification. CONSTITUTION:The specification concerning a software is prepared in advance as a specification file 1 and the specification to be extracted from this specifica tion file 1 is stored in advance in a definition file 2 as a keyword or the relation ship of a describing position. Based on this definition file 2, the prescribed specification is extracted from the specification file 1 and stored in an extraction file 4. Information are taken out from this extraction file 4 and a program code 6 and test data 7 are prepared. Thus, not only man-hour for preparing the program (source) and test data necessary for the test of the software can be widely reduced but also the bugging in the test program itself essentially is eliminated.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、ソフトウェアが正しく機能するか否かをテ
ストするためのテスト用プログラムおよびテストデータ
の作成方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a test program and a method for creating test data for testing whether software functions correctly.

〔従来の技術〕[Conventional technology]

ソフトウェア開発におけるテスト工程では、サブルーチ
ンや関数についてはドライバーやスタブと呼ばれるテス
ト用プログラムをプログラマ−が作成するとともに、与
えるパラメータもプログラマ−が作成してテストを実行
するようにしているのが一般的である。
In the testing process of software development, it is common for programmers to create test programs called drivers and stubs for subroutines and functions, and also create parameters to be given to the programmer to run the tests. be.

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

しかしながら、このような方法では作成作業が煩雑で時
間が掛かるだけでなく、バグも多いという問題がある。
However, this method has the problem that the creation work is not only complicated and time-consuming, but also has many bugs.

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

ソフトウェアに関する仕様書を仕様書ファイルとして予
め作成しておくとともに、この仕様書ファイルから抽出
すべき仕様をキーワードまたはその記述位置の関係とし
て予め定義ファイルに記憶しておき、この定義ファイル
にもとづき前記仕様書ファイルから所定の仕様を抽出し
て抽出ファイルに格納し、この抽出ファイルから情報を
取り出してプログラムコードおよびテストデータを作戒
する。
A software specification is created in advance as a specification file, and the specifications to be extracted from this specification file are stored in advance in a definition file as keywords or their description positions, and based on this definition file, the specifications are A predetermined specification is extracted from the document file and stored in an extraction file, and information is extracted from the extraction file to modify the program code and test data.

〔作用〕[Effect]

仕様書ファイルおよび定義ファイルから必要な仕様を抽
出し、さらにこの仕様からテストプログラム(ソース)
およびテストデータを自動的に作成することにより、こ
の種の作業を容易にし、バグを無くす。
Extract the necessary specifications from the specification file and definition file, and then create a test program (source) from this specification.
Automatically creating test data and test data makes this type of work easier and bug-free.

〔実施例〕〔Example〕

第1図はこの発明の実施例を示す概要フローチャートで
ある。
FIG. 1 is a schematic flowchart showing an embodiment of the present invention.

すなわち、仕様抽出プログラムにより、仕様抽出定義フ
ァイルに従って外部仕様書ファイルからテストプログラ
ムの仕様を抽出しく■参照)、これをテストプログラム
・データ仕様ファイルに格納する。次いでテストプログ
ラムコード生成プログラムにより、テストプログラム雛
形ファイルから必要な離形を読み出し、テストプログラ
ム・データ仕様ファイルから抽出した情報を雛形の所定
位置に埋め込み、テストプログラムファイルにテストプ
ログラムコードを出力する(■参照)。なお、鐘形は必
ずしも必要というわけではなく、適宜なフォーマットで
出力することができる。一方、テストデータ生成プログ
ラムにより、テストプログラム・データ仕様ファイルか
らテストデータ生成に必要な情報を抽出し、これをテス
トデータとしてテストデータファイルに出力する(■参
照)。
That is, the specification extraction program extracts the test program specifications from the external specification file according to the specification extraction definition file (see (2)) and stores them in the test program/data specification file. Next, the test program code generation program reads the necessary release information from the test program template file, embeds the information extracted from the test program/data specification file at a predetermined position in the template, and outputs the test program code to the test program file (■ reference). Note that the bell shape is not necessarily necessary and can be output in any suitable format. On the other hand, the test data generation program extracts information necessary for test data generation from the test program/data specification file and outputs this as test data to a test data file (see ■).

第2図はこの発明を具体的に説明するための説明図であ
る。
FIG. 2 is an explanatory diagram for specifically explaining the present invention.

同図において、■は外部仕様書ファイルで、例えばワー
ドプロセッサ等のハードディスク上に記憶されたマニュ
アル類を示し、プログラムの全機能がファイルとして記
憶されている。2は仕様抽出定義ファイルで、テスト対
称プログラムの呼び出し名称、パラメータ名称、パラメ
ータ属性等の仕様を抽出するに当たり、その抽出位置を
求めるキーワードまたはキーワードからの位置等が記述
されている。したがって、仕様抽出プログラム3はこれ
らのファイルにもとづき、所望の仕様を抽出することが
できる。なお、外部仕様書ファイルlに図示されている
rCA、LLJ、rTNJ、rOUTJ等はキーワード
、rABcDJはサブルーチン名称、P1〜P4はパラ
メータ名称をそれぞれ示している。また、4はテストプ
ログラム・データ仕様ファイルで、仕様抽出プログラム
3により抽出された所定の仕様を格納する。5はテスト
プログラム雛形ファイルで、ここにプログラムの呼び出
し名称、パラメータ名称、パラメータ属性等を埋め込め
ば、同図に符号8で示す如きテストフロクラムファイル
が完成する。ここでは枠で囲った部分が埋め込まれた情
報を示し、かかる処理を実行するのがテストプログラム
コード生成プログラム6というわけである。7はテスト
データ生成プログラムで、テストプログラムコード・デ
ータ仕様ファイル4から最大値、最小値、およびその±
1の値で表わされるパラメータの組合わせを含むテスト
データを抽出し、これをテストデータファイル9に格納
する。こうして、ソフトウェア機能をテストするための
テストプログラムおよびデータが作成される。
In the figure, ■ is an external specification file, which is, for example, a manual stored on a hard disk of a word processor, etc., and all functions of the program are stored as a file. Reference numeral 2 denotes a specification extraction definition file, which describes the keyword or position from the keyword from which to find the extraction position when extracting the specifications such as the call name, parameter name, parameter attribute, etc. of the test target program. Therefore, the specification extraction program 3 can extract desired specifications based on these files. Note that rCA, LLJ, rTNJ, rOUTJ, etc. shown in the external specification file 1 are keywords, rABcDJ is a subroutine name, and P1 to P4 are parameter names. Further, 4 is a test program/data specification file in which a predetermined specification extracted by the specification extraction program 3 is stored. Reference numeral 5 is a test program template file, and by embedding program call names, parameter names, parameter attributes, etc. in this file, a test program file as shown by reference numeral 8 in the figure is completed. Here, the part surrounded by a frame indicates the embedded information, and the test program code generation program 6 executes this processing. 7 is a test data generation program that generates the maximum value, minimum value, and its ± from the test program code/data specification file 4.
Test data including a combination of parameters represented by a value of 1 is extracted and stored in the test data file 9. In this way, a test program and data for testing software functionality are created.

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

この発明によれば、ソフトウェアのテストに必要なプロ
グラム(ソース)およびテストデータの作成工数を大幅
に削減することができるだけでなく、テストプログラム
自体のバグを本質的に無くすことができる。
According to the present invention, not only can the number of man-hours for creating programs (sources) and test data required for software testing be significantly reduced, but also bugs in the test program itself can be essentially eliminated.

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

第1図はこの発明の実施例を示す概要フローチャート、
第2図はこの発明を具体的に説明するための説明図であ
る。 符号説明 1・・・外部仕様書ファイル、2・・・仕様抽出定義フ
ァイル、3・・・仕様抽出プログラム、4・・・テスト
プログラム・データ仕様ファイル、5・・・テストプロ
グラム雛形ファイル、6・・・テストプログラムコード
生成プログラム、7・・・テストデータ生成プログラム
、8・・・テストプログラムファイル、9・・・テスト
データファイル。
FIG. 1 is a schematic flowchart showing an embodiment of the present invention;
FIG. 2 is an explanatory diagram for specifically explaining the present invention. Code explanation 1... External specification file, 2... Specification extraction definition file, 3... Specification extraction program, 4... Test program/data specification file, 5... Test program template file, 6. ...Test program code generation program, 7.Test data generation program, 8.Test program file, 9.Test data file.

Claims (1)

【特許請求の範囲】[Claims] 1)ソフトウェアに関する仕様書を仕様書ファイルとし
て予め作成しておくとともに、この仕様書ファイルから
抽出すべき仕様をキーワードまたはその記述位置の関係
として予め定義ファイルに記憶しておき、この定義ファ
イルにもとづき前記仕様書ファイルから所定の仕様を抽
出して抽出ファイルに格納し、この抽出ファイルから情
報を取り出してプログラムコードおよびテストデータを
作成することを特徴とするソフトウェアのテスト用プロ
グラムおよびテストデータの作成方法。
1) A software specification is created in advance as a specification file, and the specifications to be extracted from this specification file are stored in advance in a definition file as keywords or their description positions, and based on this definition file, A method for creating a software testing program and test data, characterized by extracting a predetermined specification from the specification file, storing it in an extraction file, and extracting information from the extraction file to create a program code and test data. .
JP1227442A 1989-09-04 1989-09-04 Program for test for software and method for preparing test data Pending JPH0391039A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1227442A JPH0391039A (en) 1989-09-04 1989-09-04 Program for test for software and method for preparing test data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1227442A JPH0391039A (en) 1989-09-04 1989-09-04 Program for test for software and method for preparing test data

Publications (1)

Publication Number Publication Date
JPH0391039A true JPH0391039A (en) 1991-04-16

Family

ID=16860933

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1227442A Pending JPH0391039A (en) 1989-09-04 1989-09-04 Program for test for software and method for preparing test data

Country Status (1)

Country Link
JP (1) JPH0391039A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06222955A (en) * 1992-08-14 1994-08-12 Koninkl Ptt Nederland Nv Test method of software, generation method of testable software and system for generation of testable software
JP2000066887A (en) * 1998-08-20 2000-03-03 Nec Corp Supply system for inspection program and specification data
JP2007115071A (en) * 2005-10-21 2007-05-10 Hitachi Software Eng Co Ltd Test support system
JP2011100420A (en) * 2009-11-09 2011-05-19 Toshiba Corp Test program creation device
JP2020067976A (en) * 2018-10-26 2020-04-30 株式会社デンソー Model generation device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06222955A (en) * 1992-08-14 1994-08-12 Koninkl Ptt Nederland Nv Test method of software, generation method of testable software and system for generation of testable software
JP2000066887A (en) * 1998-08-20 2000-03-03 Nec Corp Supply system for inspection program and specification data
JP2007115071A (en) * 2005-10-21 2007-05-10 Hitachi Software Eng Co Ltd Test support system
JP2011100420A (en) * 2009-11-09 2011-05-19 Toshiba Corp Test program creation device
JP2020067976A (en) * 2018-10-26 2020-04-30 株式会社デンソー Model generation device

Similar Documents

Publication Publication Date Title
US5926638A (en) Program debugging system for debugging a program having graphical user interface
JPH09259153A (en) Device and method for generating batch execution control program
Haryono et al. Androevolve: Automated update for android deprecated-api usages
JPH0391039A (en) Program for test for software and method for preparing test data
JP2016224579A (en) Information processor and information processing method
JPH06348766A (en) Method and device for incorporating tool
JPH08314760A (en) Program development supporting device
JPH03241439A (en) Test data preparation tool
JP2004287869A (en) Program execution monitoring device and method
JP2001184221A (en) Real time os and task execution control method
JPH06119153A (en) Retrieving/assembling device for software component
JP2007094453A (en) Program development support system, program development support method and program
JP2001256075A (en) Developing system and developing method and recording medium
JP2606658B2 (en) Logic simulator and control method
KR940015798A (en) How to Configure, Send, and Extract Normalized Command Information Messages Between User Registration Software and Application Software
JP2006350676A (en) Program debugging method of built-in system
JP2000276344A (en) Program generation system using object and its program generating method
JPH04248624A (en) Program conversion processor
JPH11219287A (en) Software development supporting device
JPH02205930A (en) Interface check processing method
JPH05289915A (en) Data conversion processing system
JPH05265740A (en) Program editing method
JPH03296820A (en) Method and device for assembly processing
JPH01282651A (en) Control item automatic control system for comprehensiveness degress control
JPH0319041A (en) Automatic control system for control item