JPH0612248A - Automatic programming system - Google Patents

Automatic programming system

Info

Publication number
JPH0612248A
JPH0612248A JP8021392A JP8021392A JPH0612248A JP H0612248 A JPH0612248 A JP H0612248A JP 8021392 A JP8021392 A JP 8021392A JP 8021392 A JP8021392 A JP 8021392A JP H0612248 A JPH0612248 A JP H0612248A
Authority
JP
Japan
Prior art keywords
program
test
data
source
processing
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
JP8021392A
Other languages
Japanese (ja)
Inventor
Yasuyuki Ishiki
康之 石木
Takanori Shigeta
孝典 重田
Jiyun Takanoki
潤 鷹架
Satoshi Nomura
聡 野村
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.)
Hitachi Ltd
Hitachi Industrial Equipment Systems Co Ltd
Original Assignee
Hitachi Ltd
Hitachi East Service Engineering Co Ltd
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 Hitachi Ltd, Hitachi East Service Engineering Co Ltd filed Critical Hitachi Ltd
Priority to JP8021392A priority Critical patent/JPH0612248A/en
Publication of JPH0612248A publication Critical patent/JPH0612248A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prepare a source program with the feeling of inputting data to the screen of a word processor by inputting data required for programming by using a screen control function forming information corresponding to program layout into a table. CONSTITUTION:Data for the unit of a test item inputted by using an input screen 2 of a program for test are stored into a product specification holder 13 through screen control processing 11 by data storage processing 12. When there is the output request of a test specification 3, the data are outputted to a printer by product specification output processing 14. Concerning the stored data, only the data required for programming in source programming processing 15, and the program is prepared and stored in a source program holder 16. Concerning this source program, 50-100 programs are combined for the unit of a test class by source program combination processing 17, constituted into one verification program and outputted through program output processing 18 to a verification program file 4.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はプログラムの自動生成方
式に関し、特に情報処理装置の論理検証を行う検証プロ
グラムの製造工程で、特別なプログラミング知識を必要
としないで、試験仕様書からプログラムを自動生成し、
生産性,信頼性を高めることを可能とするプログラムの
自動生成方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic program generation method, and particularly in a manufacturing process of a verification program for logically verifying an information processing apparatus, the program can be automatically generated from a test specification without requiring special programming knowledge. Generate,
The present invention relates to an automatic program generation method capable of increasing productivity and reliability.

【0002】[0002]

【従来の技術】従来、ソースプログラムの自動生成技術
としては、例えば、特開平2-2420号公報に開示された技
術が知られている。この技術は、フローチャートまたは
構造化プログラミング図(SPD:Structured Program
ming Diagram)を入力して、ソースプログラムを自動生
成するものである。
2. Description of the Related Art Conventionally, as a technique for automatically generating a source program, for example, the technique disclosed in Japanese Patent Laid-Open No. 2-2420 is known. This technology is based on flowcharts or structured programming diagrams (SPD).
ming Diagram) is input to automatically generate a source program.

【0003】[0003]

【発明が解決しようとする課題】上記従来技術において
は、高度なプログラミング技術を有する技術者が、プロ
グラム設計書を基に、フローチャートまたはプログラミ
ング図を入力しなければならなかった。従って、上述の
技術は、プログラミング言語またはプログラム作成方法
に関する知識・経験の浅い技術者が利用した場合、プロ
グラムの生産性,信頼性の向上が期待できないという問
題があった。本発明は上記事情に鑑みてなされたもの
で、その目的とするところは、従来の技術における上述
の如き問題を解消し、プログラミング言語またはプログ
ラム作成方法に関する知識・経験は浅いが、作成するプ
ログラムの内容自体には充分な知識を有する技術者が利
用可能で、プログラムの生産性,信頼性を高めることを
可能とするプログラムの自動生成方式を提供することに
ある。
In the above-mentioned prior art, an engineer having a high level of programming technology had to input a flowchart or a programming diagram based on the program design document. Therefore, the above-mentioned technique has a problem that the productivity and reliability of the program cannot be expected to be improved when an engineer having little knowledge and experience in programming language or program creation method is used. The present invention has been made in view of the above circumstances, and an object of the present invention is to solve the above-mentioned problems in the conventional technique and to have a little knowledge and experience about a programming language or a program creating method, An object of the present invention is to provide an automatic program generation method that can be used by an engineer having sufficient knowledge of the content itself and can improve the productivity and reliability of the program.

【0004】[0004]

【課題を解決するための手段】本発明の上記目的は、情
報処理装置における検証プログラムの自動生成方式にお
いて、試験項目毎の試験仕様書と同一の表形式の画面か
ら入力される試験データをデータベースに蓄積する第1
のステップと、前記データベースに蓄積された当該試験
に必要な試験実行環境用データを取り出し、試験項目単
位のソースプログラムを生成する第2のステップ、およ
び、該第2のステップにより生成されたソースプログラ
ムを組み合せて検証プログラムを作成する第3のステッ
プとを有することを特徴とするプログラムの自動生成方
式によって達成される。
The above object of the present invention is to provide a database of test data input from the same tabular screen as the test specifications for each test item in the automatic generation method of the verification program in the information processing apparatus. First to accumulate in
Step, a second step of extracting the test execution environment data required for the test accumulated in the database, and generating a source program for each test item, and a source program generated by the second step. And a third step of creating a verification program.

【0005】[0005]

【作用】本発明に係るプログラムの自動生成方式におい
ては、プログラム設計書相当の情報を表形式にした画面
制御機能を備え、これを用いてプログラム作成に必要な
データを入力させて、これに基づいてソースプログラム
を生成するようにしたものであり、これにより、オペレ
ータは、ワープロ(ワードプロセッサ)の作表画面にデー
タを入力する感覚で、プログラム作成仕様書を入力し、
ソースプログラムを作成させることが可能になる。
The automatic program generation method according to the present invention is provided with a screen control function in which information corresponding to the program design document is made into a table format, and by using this, data required for program creation is input and based on this. It is designed to generate a source program by inputting the program creation specifications as if the operator were entering data on the tabulation screen of the word processor (word processor).
It becomes possible to create a source program.

【0006】[0006]

【実施例】以下、本発明の実施例を図面に基づいて詳細
に説明する。図1は、本発明の一実施例に係るプログラ
ム自動生成装置を用いるプログラム自動生成のブロック
図である。図において、1はプログラム自動生成装置、
2は本実施例で自動作成しようとするテスト用プログラ
ムの仕様(以下、これを「試験仕様」という)の入力画面、
3は作成されたテスト用プログラムの仕様書、4は作成
されたテスト用プログラムを含むファイルを示してい
る。なお、本実施例に係るプログラム自動生成装置1に
より作成されたテスト用プログラムの仕様書3を「試験
仕様書」、作成された所定数のテスト用ソースプログラ
ムが1本のプログラムに組み合されたものを「検証プロ
グラム」(製品)という。本実施例に係るプログラム自動
生成装置1は、画面制御処理11,データ蓄積処理1
2,製品仕様書出力処理14,ソースプログラム生成処
理15,ソースプログラム組み合せ処理17,プログラ
ム出力処理18の各処理機能と、製品仕様書保持(蓄積)
装置13,ソースプログラム保持装置16から構成され
ている。本実施例に示すプログラム自動生成の動作概要
は、以下の通りである。すなわち、テスト用プログラム
の入力画面2を用いて入力された試験項目単位のデータ
は、プログラム自動生成装置1の画面制御処理11を介
して、データ蓄積処理12により製品仕様書保持(蓄積)
装置13に蓄積される。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a block diagram of automatic program generation using an automatic program generation device according to an embodiment of the present invention. In the figure, 1 is an automatic program generation device,
2 is an input screen for the specifications of the test program to be automatically created in the present embodiment (hereinafter referred to as "test specifications"),
Reference numeral 3 is a specification of the created test program, and 4 is a file containing the created test program. In addition, the specification 3 of the test program created by the automatic program generation apparatus 1 according to the present embodiment is referred to as a "test specification", and the created predetermined number of test source programs are combined into one program. The thing is called "verification program" (product). The program automatic generation device 1 according to the present embodiment includes a screen control process 11 and a data storage process 1.
2. Product specification output processing 14, source program generation processing 15, source program combination processing 17, program output processing 18 and product specification holding (accumulation)
It is composed of a device 13 and a source program holding device 16. The outline of the automatic program generation operation shown in this embodiment is as follows. That is, the data for each test item input using the input screen 2 of the test program is stored (stored) in the product specification by the data storage process 12 via the screen control process 11 of the automatic program generator 1.
It is stored in the device 13.

【0007】このとき、製品仕様書(ここでは、「試験仕
様書」)の出力要求があれば、製品仕様書出力処理14に
より、試験仕様書3がプリンタ装置に出力される。製品
仕様書保持(蓄積)装置13に蓄積されたデータは、ソー
スプログラム生成処理15におけるプログラム生成に必
要なデータのみが取り出され、これを用いてプログラム
生成が行われ、その結果はソースプログラム保持装置1
6に格納される。ソースプログラム保持装置16に格納
されたソースプログラムは、ソースプログラム組み合せ
処理17により、試験種別単位に50〜100本が組み
合されて1本の検証プログラムに構成され、プログラム
出力処理18を介して、検証プログラムファイル4に出
力される。図2に、試験仕様書の具体例を示す。上述の
テスト用プログラムの入力画面2では、試験項目単位
に、上記試験仕様書の入力エリアが指示され、オペレー
タはその指示に従って必要なデータを入力すればよい。
図3は、本実施例に示すプログラム自動生成の結果得ら
れるソースプログラムの説明図である。なお、言うまで
もなく、本ソースプログラムは、図2に示した試験仕様
書を基に自動生成されたものである。
At this time, if there is an output request for the product specification (here, "test specification"), the product specification output process 14 outputs the test specification 3 to the printer. Of the data stored in the product specification storage (storage) device 13, only the data required for program generation in the source program generation processing 15 is extracted, and the program is generated using this data, and the result is the source program storage device. 1
6 is stored. The source programs stored in the source program holding device 16 are combined by the source program combination process 17 into 50 to 100 lines for each test type to form one verification program. It is output to the verification program file 4. FIG. 2 shows a specific example of the test specifications. On the input screen 2 of the above-mentioned test program, the input area of the above-mentioned test specification is designated for each test item, and the operator may input necessary data according to the instruction.
FIG. 3 is an explanatory diagram of a source program obtained as a result of automatic program generation according to this embodiment. Needless to say, this source program is automatically generated based on the test specifications shown in FIG.

【0008】図4は、本実施例に示すプログラム自動生
成装置1の画面制御処理11および製品仕様書出力処理
14のフローチャートである。以下、処理内容を説明す
る。ステップ41では、図2に示した試験仕様書の入力画
面を表示し、オペレータの指示を待つ(ステップ42)。オ
ペレータの指示があると、それを解析(ステップ43)し
て、試験仕様書出力(ステップ44),新規登録データ入力
(ステップ45),データ修正(ステップ46),データ削除
(ステップ47)および終了に分岐する。新規登録データ入
力(ステップ45)の場合は、新規登録データを製品仕様書
保持装置13に各項目別に格納し、データ修正(ステッ
プ46)の場合も、新規登録データ入力時と同様の処理を
行う。データ削除(ステップ47)の場合は、製品仕様書保
持装置13から該当するデータを削除する。これらの処
理終了後は、再び、オペレータ指示待ち(ステップ42)に
戻る。また、試験仕様書出力(ステップ44)時は、該当す
る試験仕様書を製品仕様書保持装置13から取り出し、
出力装置(プリンタ)に出力する。その後、オペレータの
終了指示により、画面制御処理11および試験仕様書出
力処理14は終了する。
FIG. 4 is a flow chart of the screen control process 11 and the product specification output process 14 of the automatic program generation apparatus 1 according to this embodiment. The processing contents will be described below. In step 41, the input screen for the test specifications shown in FIG. 2 is displayed, and the operator's instruction is awaited (step 42). When the operator gives instructions, it analyzes it (step 43), outputs the test specifications (step 44), and inputs new registration data.
(Step 45), data correction (Step 46), data deletion
(Step 47) and end. In the case of new registration data input (step 45), the new registration data is stored in the product specification holding device 13 for each item, and also in the case of data correction (step 46), the same processing as at the time of new registration data input is performed. . In the case of data deletion (step 47), the corresponding data is deleted from the product specification holding device 13. After completion of these processes, the process returns to the operator instruction waiting (step 42). When outputting the test specifications (step 44), the relevant test specifications are taken out from the product specification holding device 13,
Output to the output device (printer). After that, the screen control process 11 and the test specification output process 14 are terminated by the operator's termination instruction.

【0009】図5は、本実施例に示すプログラム自動生
成装置1のソースプログラム生成処理15およびソース
プログラム組み合せ処理17のフローチャートである。
以下、処理内容を説明する。オペレータの指示を待ち
(ステップ51)、オペレータの指示があると、それを解析
(ステップ52)して、プログラム自動生成,終了に分か
れ、プログラム自動生成の場合、最初はソースプログラ
ムの自動生成を行う(ステップ53〜57)。ソースプログラ
ムの自動生成を行う際には、まず、ステップ53で、製品
仕様書保持装置13に格納されているソースプログラム
生成に必要な各種データ、すなわち、「初期設定部」用デ
ータ,「テスト実行部」用データ,「結果のチェック」用デ
ータを取り出す。次に、初期設定部のソースプログラム
生成(ステップ54),テスト実行部のソースプログラム生
成(ステップ55),結果のチェック部のソースプログラム
生成(ステップ56)で、それぞれのソースプログラムを生
成後、ソースプログラムをソースプログラム保持装置1
6に格納して(ステップ57)、次のソースプログラムの生
成処理に戻る。オペレータが指示した数のソースプログ
ラムの生成後、これを組み合せて1本の検証プログラム
にする処理に移行する。
FIG. 5 is a flow chart of the source program generation processing 15 and the source program combination processing 17 of the automatic program generation apparatus 1 shown in this embodiment.
The processing contents will be described below. Wait for operator's instruction
(Step 51), analyze the instruction of the operator
In step 52, the program is automatically generated and terminated. In the case of automatic program generation, first, the source program is automatically generated (steps 53 to 57). When automatically generating a source program, first, in step 53, various data stored in the product specification holding device 13 necessary for generating the source program, that is, "initial setting part" data, "test execution". The data for "part" and the data for "check result" are retrieved. Next, after generating each source program by the source program generation of the initial setting section (step 54), the source program generation of the test execution section (step 55), and the source program generation of the result check section (step 56), the source program is generated. Source program holding device for program 1
6 (step 57) and returns to the next source program generation process. After the number of source programs instructed by the operator is generated, the processes are combined into one verification program.

【0010】ステップ61は、当初はソースプログラムの
自動生成を行い、オペレータが指示した数のソースプロ
グラムの生成後、これを組み合せて1本の検証プログラ
ムにする処理に移行するためのステップである。検証プ
ログラムは、テスト種別単位に50〜100のソースプ
ログラムを組み合せて作成する。検証プログラム作成処
理では、まず、ステップ58で、テスト種別を確認し、ソ
ースプログラム保持装置16から、ソースプログラム群
を取り出し、検証プログラムにするための各種情報(プ
ログラムヘッダ等)をソースプログラムに付加して(ステ
ップ59)、完成した検証プログラムを検証プログラムフ
ァイル4に出力し(ステップ60)、再び、オペレータの指
示待ちに戻り(ステップ51)、オペレータの指示により、
プログラムの自動生成を終了する。上記実施例によれ
ば、オペレータは、丁度、ワープロ(ワードプロセッサ)
を用いて表を作成する際に、作表画面にデータを入力す
るような作業を行うだけで、信頼性の高い高品質なプロ
グラムを効率良く作成することが可能になる。
In step 61, a source program is automatically generated initially, and after the number of source programs instructed by the operator is generated, the source programs are combined to form one verification program. The verification program is created by combining 50 to 100 source programs for each test type. In the verification program creating process, first, in step 58, the test type is confirmed, the source program group is taken out from the source program holding device 16, and various information (program header etc.) for making the verification program is added to the source program. (Step 59), outputs the completed verification program to the verification program file 4 (Step 60), returns to waiting for the operator's instruction again (Step 51), and in response to the operator's instruction,
Terminates automatic program generation. According to the above embodiment, the operator is just a word processor (word processor).
When creating a table using, it is possible to efficiently create a high-quality program with high reliability simply by performing an operation such as inputting data on the table creation screen.

【0011】[0011]

【発明の効果】以上、詳細に説明した如く、本発明によ
れば、プログラミング言語またはプログラム作成方法に
関する知識・経験は浅いが、作成するプログラムの内容
自体には充分な知識を有する技術者が利用可能で、プロ
グラムの生産性,信頼性を高めることを可能とするプロ
グラムの自動生成方式を実現できるという顕著な効果を
奏するものである。
As described above in detail, according to the present invention, a technician who has little knowledge and experience with a programming language or a program creation method, but has sufficient knowledge about the contents of the created program can use it. It is possible to realize an automatic program generation method that can improve the productivity and reliability of the program.

【0012】[0012]

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

【図1】本発明の一実施例に係るプログラム自動生成装
置を用いるプログラム自動生成のブロック図である。
FIG. 1 is a block diagram of automatic program generation using an automatic program generation device according to an embodiment of the present invention.

【図2】実施例の試験仕様書の具体例を示す図である。FIG. 2 is a diagram showing a specific example of a test specification of an example.

【図3】図2に示した試験仕様書を基に自動生成された
本ソースプログラムを示す図である。
FIG. 3 is a diagram showing a source program automatically generated based on the test specifications shown in FIG.

【図4】実施例のプログラム自動生成装置1の画面制御
処理11および製品仕様書出力処理14のフローチャー
トである。
FIG. 4 is a flowchart of a screen control process 11 and a product specification output process 14 of the program automatic generation device 1 according to the embodiment.

【図5】実施例のプログラム自動生成装置1のソースプ
ログラム生成処理15およびソースプログラム組み合せ
処理17のフローチャートである。
FIG. 5 is a flowchart of a source program generation process 15 and a source program combination process 17 of the automatic program generation device 1 of the embodiment.

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

1:プログラム自動生成装置、11:画面制御処理、1
2:データ蓄積処理、13:製品仕様書保持(蓄積)装
置、14:製品仕様書出力処理、15:ソースプログラ
ム生成処理、16:ソースプログラム保持装置、17:
ソースプログラム組み合せ処理、18:プログラム出力
処理、2:試験仕様の入力画面、3:試験仕様書、4:
検証プログラムファイル。
1: Automatic program generation device, 11: Screen control process, 1
2: data storage process, 13: product specification holding (storage) device, 14: product specification output process, 15: source program generation process, 16: source program holding device, 17:
Source program combination processing, 18: program output processing, 2: test specification input screen, 3: test specification, 4:
Verification program file.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 鷹架 潤 東京都江東区福住一丁目13番12号 株式会 社日立東サービスエンジニアリング内 (72)発明者 野村 聡 東京都江東区福住一丁目13番12号 株式会 社日立東サービスエンジニアリング内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Jun Takahashi, 13-12 Fukuzumi, Koto-ku, Tokyo Within Hitachi East Service Engineering Co., Ltd. (72) Satoshi Nomura 1-13, Fukuzumi, Koto-ku, Tokyo No. 12 Inside Hitachi East Service Engineering Co., Ltd.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 情報処理装置における検証プログラムの
自動生成方式において、試験項目毎の試験仕様書と同一
の表形式の画面から入力される試験データをデータベー
スに蓄積する第1のステップと、前記データベースに蓄
積された当該試験に必要な試験実行環境用データを取り
出し、試験項目単位のソースプログラムを生成する第2
のステップ、および、該第2のステップにより生成され
たソースプログラムを組み合せて検証プログラムを作成
する第3のステップとを有することを特徴とするプログ
ラムの自動生成方式。
1. A first step of accumulating test data input from a screen in the same tabular format as a test specification for each test item in a database in a method of automatically generating a verification program in an information processing device, and the database. 2) Generate the source program for each test item by extracting the test execution environment data required for the test stored in
And a third step of creating a verification program by combining the source programs generated by the second step with each other, and an automatic program generation method.
JP8021392A 1992-04-02 1992-04-02 Automatic programming system Pending JPH0612248A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8021392A JPH0612248A (en) 1992-04-02 1992-04-02 Automatic programming system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8021392A JPH0612248A (en) 1992-04-02 1992-04-02 Automatic programming system

Publications (1)

Publication Number Publication Date
JPH0612248A true JPH0612248A (en) 1994-01-21

Family

ID=13712108

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8021392A Pending JPH0612248A (en) 1992-04-02 1992-04-02 Automatic programming system

Country Status (1)

Country Link
JP (1) JPH0612248A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5691341A (en) * 1992-08-19 1997-11-25 Otsuka Pharmaceutical Co., Ltd. Apoptosis regulating composition
JP2009205242A (en) * 2008-02-26 2009-09-10 Nec Corp Automatic generation device of program for verification, and method and program thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5691341A (en) * 1992-08-19 1997-11-25 Otsuka Pharmaceutical Co., Ltd. Apoptosis regulating composition
JP2009205242A (en) * 2008-02-26 2009-09-10 Nec Corp Automatic generation device of program for verification, and method and program thereof

Similar Documents

Publication Publication Date Title
EP0560619A2 (en) Method and apparatus for designing computer programs for business
JPH0612248A (en) Automatic programming system
JPH08235024A (en) Automatic test device for software
JPH05257665A (en) Hcp chart/source program interlocking editing device
JPH0760363B2 (en) Method for automatically creating user-defined commands
JPS62145424A (en) Program managing method
JPH0486922A (en) Knowledge editter
JPH05143545A (en) Instruction selection/execution processing system of plural instructions texts
JPS59123043A (en) Clean copy processor
JP2001027946A (en) Method for outputting screen information of interactive program system
JPH07306801A (en) Program testing system
JPH0588865A (en) Software design supporting device
JPH05233368A (en) External routine form component test tool
JPH0546552A (en) On-line environment addition system
JPH0756717A (en) Automatic jcl preparing device
JPH06131167A (en) Multi-task programming supporting device
JPH04242427A (en) Program designing system
JPH10254919A (en) Processing method for cad/cam system
JPH0784620A (en) Conversion processing method for tool route information
JPH01312641A (en) Batch test system for on-line
JP2003308207A (en) Program specifications preparation system
JPH04359381A (en) Screen data creation system for workstation
JPH0793146A (en) Program preparation supporting device
JPH05108332A (en) Editor
JPH08272596A (en) Program design generation device