JPH0391039A - Program for test for software and method for preparing test data - Google Patents
Program for test for software and method for preparing test dataInfo
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 28
- 238000000034 method Methods 0.000 title claims abstract description 6
- 238000000605 extraction Methods 0.000 claims abstract description 10
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 238000013522 software testing Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
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.
ソフトウェア開発におけるテスト工程では、サブルーチ
ンや関数についてはドライバーやスタブと呼ばれるテス
ト用プログラムをプログラマ−が作成するとともに、与
えるパラメータもプログラマ−が作成してテストを実行
するようにしているのが一般的である。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.
しかしながら、このような方法では作成作業が煩雑で時
間が掛かるだけでなく、バグも多いという問題がある。However, this method has the problem that the creation work is not only complicated and time-consuming, but also has many bugs.
ソフトウェアに関する仕様書を仕様書ファイルとして予
め作成しておくとともに、この仕様書ファイルから抽出
すべき仕様をキーワードまたはその記述位置の関係とし
て予め定義ファイルに記憶しておき、この定義ファイル
にもとづき前記仕様書ファイルから所定の仕様を抽出し
て抽出ファイルに格納し、この抽出ファイルから情報を
取り出してプログラムコードおよびテストデータを作戒
する。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.
仕様書ファイルおよび定義ファイルから必要な仕様を抽
出し、さらにこの仕様からテストプログラム(ソース)
およびテストデータを自動的に作成することにより、こ
の種の作業を容易にし、バグを無くす。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.
第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.
この発明によれば、ソフトウェアのテストに必要なプロ
グラム(ソース)およびテストデータの作成工数を大幅
に削減することができるだけでなく、テストプログラム
自体のバグを本質的に無くすことができる。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.
第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)
て予め作成しておくとともに、この仕様書ファイルから
抽出すべき仕様をキーワードまたはその記述位置の関係
として予め定義ファイルに記憶しておき、この定義ファ
イルにもとづき前記仕様書ファイルから所定の仕様を抽
出して抽出ファイルに格納し、この抽出ファイルから情
報を取り出してプログラムコードおよびテストデータを
作成することを特徴とするソフトウェアのテスト用プロ
グラムおよびテストデータの作成方法。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. .
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)
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 |
-
1989
- 1989-09-04 JP JP1227442A patent/JPH0391039A/en active Pending
Cited By (5)
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 |