JP2005038244A - Automatic program generation device - Google Patents
Automatic program generation device Download PDFInfo
- Publication number
- JP2005038244A JP2005038244A JP2003275420A JP2003275420A JP2005038244A JP 2005038244 A JP2005038244 A JP 2005038244A JP 2003275420 A JP2003275420 A JP 2003275420A JP 2003275420 A JP2003275420 A JP 2003275420A JP 2005038244 A JP2005038244 A JP 2005038244A
- Authority
- JP
- Japan
- Prior art keywords
- input
- communication service
- automatic
- operation specifications
- generation device
- 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
Images
Landscapes
- Exchange Systems With Centralized Control (AREA)
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
Description
本発明は、通信サービス動作仕様を入力し、通信サービスソフトウェアのプログラムを生成するプログラム自動生成装置に関し、詳しくは、フローチャートを用いて通信サービス動作仕様を記述し、その記述内容をプログラム言語に変換し、必要時には不足部分の補完を行い、仕様誤り等を検証し、プログラム作成時の手戻りを防止することに加え、生成された通信サービスソフトウェアの効率的な試験を可能とするプログラム自動生成装置に関する。 The present invention relates to an automatic program generation device that inputs a communication service operation specification and generates a communication service software program. More specifically, the communication service operation specification is described using a flowchart, and the description content is converted into a program language. In addition to supplementing missing parts when necessary, verifying specification errors, etc., preventing rework when creating programs, and an automatic program generator that enables efficient testing of generated communication service software .
従来のこの種のプログラム自動生成装置では、PSTN網(Public Switched Telephone Network:公衆電話交換網)を前提とした通信サービス動作仕様に基づき、メッセージシーケンス図を用いて定義し、現在の呼状態に基づき、前後の呼状態を抽出するための呼状態遷移図を規定し、それに基づく、準正常手順の自動補完を行っていた(例えば、特許文献1参照)。 The conventional automatic program generation device of this type is defined by using a message sequence diagram based on a communication service operation specification based on a PSTN network (Public Switched Telephone Network), and based on the current call state. The call state transition diagram for extracting the previous and next call states is defined, and the semi-normal procedure is automatically complemented based on the call state transition diagram (see, for example, Patent Document 1).
しかし、準正常はサービス仕様に依存する部分が存在するため、新しく開発するサービスの状態遷移が従来サービスのサブセットではない場合、サービスの開発毎に、変換知識の追加を要していた。また、変換を行いながら、自動補完を行っていたため、入力した仕様のレベルでは自動補完部分の確認を行う手段がなく、試験時の効率低下を招いていた。準正常手順の部分について、自動補完の後に、サービス仕様の手直しをする場合は自動補完された仕様をエディタ上で修正することが不可能であり、再度準正常に関する変換知識を修正してから生成し直すため、大幅に工数を要していた。変換知識の修正はプログラム自動生成装置の開発者しか行うことができなかった。 However, since there is a part that depends on the service specifications in the semi-normal, when the state transition of the newly developed service is not a subset of the conventional service, it is necessary to add conversion knowledge for each service development. In addition, since auto-completion was performed while performing conversion, there was no means for confirming the auto-completion part at the input specification level, leading to a decrease in efficiency during testing. If the service specification is reworked after automatic completion for the semi-normal procedure part, it is impossible to correct the auto-completed specification on the editor. It took a lot of man-hours to rework. Only the developer of the automatic program generator could correct the conversion knowledge.
一方、当今は、PSTN網だけでなく、IP網やモバイル網上での通信サービスを定義できるプログラム自動生成を実現するために、呼状態遷移に基づく準正常の自動補完に関わらず、呼状態に関係ない複数のプロトコルや分散環境に対応したプログラムも自動生成する必要がでてきた。また、ユーザの入力した部分とプログラム自動生成装置において自動補完した部分を、入力したアイコンレベルで明確に表示し、自動補完後にユーザが修正することを可能にし、修正した場合は、自動で検証を行う必要がある。 On the other hand, in order to realize automatic program generation that can define communication services not only on the PSTN network but also on the IP network and the mobile network, the call state is not changed regardless of the quasi-normal automatic complement based on the call state transition. It has become necessary to automatically generate programs that support multiple unrelated protocols and distributed environments. In addition, the part entered by the user and the part automatically supplemented by the automatic program generation device are clearly displayed at the input icon level, and can be corrected by the user after the automatic supplementation. There is a need to do.
このため、先に発明者らは、通信サービスの仕様を視覚的に入力し、その記述内容を複数の変換パターンをもって、プログラム言語に変換し、必要時には不足部分の補完を行い、補完部分を識別可能し、仕様誤り等を検証し、プログラム作成時の手戻りを防止することを可能とするプログラム自動生成装置を提案した(特願2003−66721号;プログラム自動生成装置)。 For this reason, the inventors first input the communication service specifications, convert the description contents into a programming language with multiple conversion patterns, and complement the missing parts when necessary to identify the complemented parts. An automatic program generation apparatus that can verify specification errors and prevent rework during program creation has been proposed (Japanese Patent Application No. 2003-66721; automatic program generation apparatus).
特願2003−66721号のプログラム自動生成装置では、サービス動作仕様に基づき、アイコンを貼り付け、記述したフローチャートにおいて、入力された信号送受信アイコンに対し、信号送受信アイコンの情報は入力要素提供データに基づいて作成した内部データを利用するため、サービスの開発ごとまたはAPIの追加ごとに変換知識の追加を必要とせず、自動的に補完を行い、サービス動作仕様を入力したレベルで、自動的に補完した箇所を明示し、あらかじめ用意された複数の形式の変換情報データに対応した変換パターンに基づいて、サービスソフトウェアを生成し、複数の形式の変換情報データの中にユーザが容易に変更可能な変換情報データを含むことにより、プログラム作成時の手戻りを防止し、プログラムを効率的に生成することができる。しかし、試験工程の支援は考慮されていない。一般的に、通信サービスの開発において、試験工程は最も作業量の多い工程であることから、通信サービス開発においてより高い生産性を実現するためには、生成したサービスソフトウェアの試験工程の支援を行うことも必要となる。 In the automatic program generation device of Japanese Patent Application No. 2003-66721, in the flowchart in which an icon is pasted and described based on the service operation specification, the information of the signal transmission / reception icon is based on the input element provision data for the input signal transmission / reception icon. In order to use the created internal data, it is not necessary to add conversion knowledge every time the service is developed or every API is added, and it is automatically complemented at the level where the service operation specifications are entered. Conversion information that can be easily changed by users by generating service software based on conversion patterns corresponding to conversion information data in multiple formats prepared in advance Including data prevents rework during program creation and makes the program more efficient It can be formed. However, test process support is not considered. Generally, in the development of communication services, the test process is the process with the largest amount of work, so in order to achieve higher productivity in communication service development, support the test process of the generated service software. It is also necessary.
本発明は、上記のような課題を解決するものであり、プログラムを自動生成するために入力するサービス動作仕様を有効活用して、特願2003−66721号のプログラム自動生成装置の機能に加え自動試験を行うことができるプログラム自動生成装置を提供することにある。 The present invention solves the above-described problems. The service operation specification input for automatically generating a program is effectively utilized, and in addition to the function of the automatic program generation device of Japanese Patent Application No. 2003-66721, the present invention automatically An object of the present invention is to provide an automatic program generation apparatus capable of performing a test.
本発明は、通信サービスの動作仕様を図表現を用いて視覚的に入力することが可能で、選択される信号送受信アイコンの情報は入力要素提供データに基づく内部データとして、仕様変換手段に提供することができる仕様入力手段と、入力されたサービス仕様を検証する仕様検証手段と、入力されたサービス仕様を基にサービスソフトウェアに変換する仕様変換手段を有するプログラム自動生成装置において、通信サービスの動作仕様として、入力された送受信信号に対し、各々のもつ状態遷移情報に基づき、自動的に補完を行う手段と、自動的に補完を行うかどうか選択する手段、自動的に補完された部分を仕様入力手段において表示する手段、自動的に補完された部分に修正があった場合に検証する手段、あらかじめ用意された複数の形式の変換情報データに対応した変換パターンに基づいて、プログラムのテンプレートを用いて、サービスソフトウェアを変換する手段など、特願2003−66721号に記載の一部あるいは全部の手段に加えて、入力した仕様に基づいて、全てのルートをアイコン単位で抽出し、全てのアイコンの処理を記述した試験パターン(試験用データ)を出力する手段と、試験用データおよび試験対象の通信サービスソフトウェアを読み込み、一処理ずつ実行を行いつつログを収集する手段とを備える。 According to the present invention, it is possible to visually input an operation specification of a communication service using a graphical representation, and information on a selected signal transmission / reception icon is provided to specification conversion means as internal data based on input element provision data. Operation specification of a communication service in a program automatic generation apparatus having specification input means capable of inputting, specification verification means for verifying an inputted service specification, and specification conversion means for converting into service software based on the inputted service specification Based on the state transition information of each input / received signal, means for automatically complementing, means for selecting whether or not to automatically complement, input the automatically complemented part as specifications Means to display in means, means to verify when the automatically complemented part has been modified, multiple formats prepared in advance In addition to some or all of the means described in Japanese Patent Application No. 2003-66721, such as means for converting service software using a program template based on a conversion pattern corresponding to conversion information data, Based on this, all routes are extracted in units of icons, and a test pattern (test data) describing the processing of all icons is read, and the test data and the communication service software to be tested are read and processed one by one. Means for collecting logs while executing.
特願2003−66721号のプログラム自動生成装置によって、サービス動作仕様に基づき、アイコンを貼り付け、記述したフローチャートにおいて、入力された信号送受信アイコンに対し、信号送受信アイコンの情報は入力要素提供データとして分離し、サービスの開発ごとまたはAPIの追加ごとに変換知識の追加を必要とせず、自動的に補完を行い、サービス動作仕様を入力したレベルで、自動的に補完した箇所を明示し、修正可能とし、あらかじめ用意された複数の形式の変換情報データに対応した変換パターンに基づいて、サービスソフトウェアを生成し、複数の形式の変換情報データの中にユーザが容易に変更可能な変換情報データを含むことにより、プログラム作成時の手戻りを防止し、プログラムを効率的に生成することができる。本発明によれば、これに加えて、生成したプログラムを自動試験することが可能となり、生成したサービスソフトウェアの試験が容易になる。 In the flowchart in which an icon is pasted and described based on the service operation specification by the automatic program generation device of Japanese Patent Application No. 2003-66721, the signal transmission / reception icon information is separated as input element provision data for the input signal transmission / reception icon. However, it is not necessary to add conversion knowledge every time a service is developed or API is added, and it is automatically complemented. At the level where service operation specifications are entered, the automatically complemented part is clearly specified and can be modified. Service software is generated based on conversion patterns corresponding to conversion information data in a plurality of formats prepared in advance, and conversion information data that can be easily changed by the user is included in the conversion information data in a plurality of formats To prevent rework during program creation and generate programs efficiently It can be. According to the present invention, in addition to this, the generated program can be automatically tested, and the generated service software can be easily tested.
以下、発明の実施の形態について図面により詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
図1は、本発明のプログラム自動生成装置の一実施例を示す機能ブロック図である。図1において、プログラム自動生成装置100は、ユーザが通信サービスの動作仕様10を図表現を用いて視覚的に入力することが可能な仕様入力手段110、入力された通信サービス動作仕様10を通信サービスソフトウェア20に変換するとともに、全ルートパターンファイル30を生成する仕様変換手段120、仕様の検証を行う仕様検証手段130、、自動試験パターン定義ファイル40および試験対象の通信サービスソフトウェア20を読み込んで自動試験を実行・制御する自動試験制御手段160、入力要素提供データ140及び内部データ150を備える。なお、入力要素提供データ140及び内部データ150は、実際にはメモリ装置内に保持される。
FIG. 1 is a functional block diagram showing an embodiment of an automatic program generation device of the present invention. In FIG. 1, an automatic program generation apparatus 100 includes specification input means 110 that allows a user to visually input an
仕様入力手段110は、ユーザからの通信サービス動作仕様10の入力を受け付け、選択された信号送受信アイコンの情報は入力要素提供データ140に基づく内部データ150として、仕様変換手段120、仕様検証手段130から利用可能な独自の形式にて保存する。また、仕様入力手段110では、ユーザが入力した通信サービスの動作使用のすべての処理ルートをアイコン単位(入出力信号)で抽出し、すべての処理ルートに対してルート番号を付与する。仕様変換手段120は、入力された通信サービス動作仕様10について、内部データ150を基に、必要なら定義不足部分やサービスに依存しないプログラムコード等の自動補完処理を行い、あらかじめ用意されたサービスに依存しない複数の変換パターン形式に基づいて通信サービスソフトウェア20を生成し、加えて、全処理(全ルート番号)ルートに対応した入出力信号のパターンを記述した全ルートパターンファイル30を生成する。仕様検証手段130は、入力及び変換時、パラメータチェックや状態遷移情報に基づき、状態遷移検証等、仕様の検証を行う。自動試験制御手段160は、試験対象となる通信サービスソフトウェア20、及び全ルートパターンファイル30をもとに、ユーザにより作成された自動試験パターン定義ファイル40を読み込み、一処理ずつ実行してログを収集する。
The
図2は、通信サービスソフトウェアの一例を示す。この例は、OpenAPI(Application Programming
Interface)の一つであるParlayAPI(http://www.parlay.org)に基づく、送受信信号(メソッド)を選択した場合を示したもので、各々の状態遷移情報はメッセージシーケンスを用いて示している。211は制御ロジックであり、通信サービスの動作仕様に基づき、通信サービスを実現するためのクラス群である。212はParlay
APIで規定されているParlayサービスクラスであり、制御ロジック211はこれらのクラスのもつ送受信メソッドを選択し、利用する。213は制御ロジック211の状態遷移を示す。この例の場合、4つの状態を保有している。214は仕様書に規定されているParlayサービスクラス212の状態遷移である。215は仕様書に規定されているParlayサービスクラス212の送受信メソッドであり、Parlay
APIと呼ばれている。本実施例では、図2のような通信サービスソフトウェアを想定する。
FIG. 2 shows an example of communication service software. An example of this is Open API (Application Programming).
This shows a case where a transmission / reception signal (method) is selected based on Parlay API (http://www.parlay.org), which is one of the interfaces), and each state transition information is indicated using a message sequence. Yes.
It is a Parlay service class defined by API, and the
It is called API. In this embodiment, communication service software as shown in FIG. 2 is assumed.
図3は、GUI(Graphical User Interface)により、通信サービスの動作仕様を図表現を用いて視覚的にシステムへ入力することを可能とする仕様入力手段110の実現例である入力画面等を示した図である。ユーザは、入力要素選択画面112により、入力要素としてのアイコンを選択し、入力画面111へ貼り付けて、サービス動作仕様を入力する。例では、アイコンが1〜5の順に選択されたことを示している。入力要素選択画面111のアイコン情報は、あらかじめ保持されている入力要素提供データ140に基づき表示される。入力要素提供データ140は、例えば、OMG(Object
Management Group:分散オブジェクト技術の標準化団体)で標準化され、提供されるすべてのCORBA(Common Object Request Broker
Architecture:分散システム環境でオブジェクト同士がメッセージを交換するための共通仕様)オブジェクトのインタフェースを定義する言語であるIDL(Interface
Definition Language)ファイルから、自動的に生成されるデータである。図4に入力要素提供データ140の一例を示す。なお、IDLファイルから入力要素提供データを生成する処理は、本発明者らが先に提案しており(特願2002−122399号)、また、本発明の主旨ではないので、その詳細は省略する。
FIG. 3 shows an input screen, which is an implementation example of the
All the CORBA (Common Object Request Broker) standardized and provided by the Management Group
Architecture: Common specification for exchanging messages between objects in a distributed system environment) IDL (Interface) which defines the interface of objects
Data automatically generated from a definition language file. FIG. 4 shows an example of the input
仕様入力手段110は、入力要素提供データ140に基づき、ユーザからのサービス仕様入力を、あらかじめ通信サービスの動作仕様として定義された送受信号等の情報と共に内部データ150として保存する。また、仕様入力手段110では、ユーザが入力したサービスの動作仕様の全ての処理ルートに対して、ルート番号を付与する。
Based on the input
図5に内部データ150の一例を示す。内部データ150は、一般に複数のテーブルから構成されるが、図5では簡単にテーブルAとテーブルBのみを示す。テーブルAにおいて、1〜5は図3の入力画面111に示したアイコン(入力要素)1〜5に対応する。テーブルAとテーブルBとは、例えばB−2、B−8のように、必要に応じてポインタにより関連づけられる。図5に示すように、テーブルBには、主として入力要素提供データ40に定義された送受信信号(メソッド)等の情報が保持される。
FIG. 5 shows an example of the
図6は、仕様変換手段120の構成例を示している。仕様変換手段120は、内部データ150を基にサービス仕様をプログラムコードに変換するロジックである変換制御部121、サービス仕様をプログラムコードに変換するためにロジックが利用する変換情報データ122、サービスに依存しないプログラムコードをテンプレート化したテンプレートファイル123、CORBA等の分散処理を前提としたプログラムの生成時に必要なスケルトンコード124、全ルートパターンファイル30のフォーマットを記述した全ルートパターンフォーマットファイル25、および、内部データ150に基づき、定義不足部分やサービスに依存しないプログラムコードを補完するための自動補完制御部126、アイコンごと自動補完制御部125が補完処理を行うために用いられる補完判定フラグが定義された自動補完定義データ127からなる。実際には、変換情報データ122、テンプレートファイル123、スケルトンコード124、全ルートパターンフォーマットファイル125、自動補完定義データ127は、入力要素提供データ140や内部データ150と同様にメモリ装置に保存されている。
FIG. 6 shows a configuration example of the specification conversion means 120. The specification conversion means 120 includes a
図7は変換情報データ122の一例、図8はテンプレートファイル123の一例、図9はスケルトンコード124の一例である。ここでは、スケルトンコード124は、IDLファイルをコンパイルした際に生成されるクライアント側のメソッドを記述してあるプログラムコードを示す。図10は自動補完定義データ127の一例である。後述するように、自動補完制御部125は、アイコンごとに自動補完定義データ127のフラグを参照し、該当フラグのON/OFFに応じて補完処理を場合分けする。なお、図10では、極く一部の補完判定フラグのみを示したものである。
7 is an example of the
図11に、図6の仕様変換手段120における一連の処理動作例を示す。図11において、ステップ1100、1110〜1114、1120〜1124、1130〜1133が変換制御部121での処理、ステップ1200が自動補完制御部126での処理を示している。
FIG. 11 shows a series of processing operation examples in the specification conversion means 120 of FIG. In FIG. 11, steps 1100, 1110 to 1114, 1120 to 1124, and 1130 to 1133 indicate processing in the
仕様変換手段120の変換制御部121は、キーボードや入力画面上等の変換ボタンが押下されると、自動補完を行うかをユーザに問い合わせる(ステップ1100)。自動補完を行わない場合、変換制御部121は、直ちにステップ1110、1120、1130に進み、それぞれの変換パターンに従い、変換を開始する。自動補完を行う場合には、変換制御部121は、自動補完制御部126に制御を渡し、自動補完制御部126が自動補完処理を行った後(ステップ1200)、ステップ1110、1120、1130に進む。ステップ1200の自動補完処理については後述する。以下では、それぞれの変換パターンの処理を説明する。
When the
変換パターン1では、まず、プログラムに出力するコメント文等を管理している変換情報データ122(図7)を読み込む(ステップ1111)。次に、プログラム言語ごとのテンプレートファイル123(図8)を読み込む(ステップ1112)。次に、自動補完済みあるいは元々の内部データ40(図5)に基づき、変換情報データ122、テンプレートファイル123を利用して、プログラムソースに置き換え、通信サービスソフトウェア20として生成する。次に、ステップ1113で得られる情報と全ルートパターンフォーマット125に基づき、入力されたサービス仕様の全てのルートの処理を記述した、自動試験で使用するための全ルートパターンファイルを生成する(ステップ1114)。
In the
変換パターン2では、まず、スケルトンコード124(図9)を読み込む(ステップ1121)。次に、自動補完済みあるいは元々の内部データ40(図5)に基づき、利用しているメソッドを検索し、抽出する(ステップ1122)。次に、スケルトンコードの利用メソッドに対し、内部データに基づくソースコードを挿入し、通信サービスソフトウェア20として生成する(ステップ1123)。次に、ステップ1123で得られる情報と全ルートパターンフォーマット125に基づき、自動試験で使用するための全ルートパターンファイルを生成する(ステップ1114)。
In the
変換パターン3では、まず、テンプレートファイル123(図8)を読み込む(ステップ1131)。次に、テンプレートファイル123を、自動補完済みあるいは元々の内部データ40(図5)に基づき、必要情報を挿入し、通信サービスソフトウェア20として生成する(ステップ1132)。次に、ステップ1132で得られる情報と全ルートパターンフォーマット125に基づき、自動試験で使用するための全ルートパターンファイルを生成する(ステップ1133)。
In the
図12は、図11におけるステップ1200の自動補完処理の詳細動作例を示す。ユーザは、入力したサービス仕様について定義不足部分やサービスに依存しないプログラムコードの自動補完を行うかどうか選択することができる。ユーザが自動補完を選択すると、変換制御部121は自動補完制御部126に制御を渡し、自動補完制御部126が自動補完処理を開始する。
FIG. 12 shows a detailed operation example of the automatic complementing process in
自動補完制御部126は、変換制御部121から制御が渡されると、内部データ40(図5)を読み込む(ステップ1201)。以下、内部データ40の入力されたアイコン数分、ステップ1202以降の処理を繰り返す。
When the control is transferred from the
まず、入力されたアイコンが、ユーザが選択した自動補完対象かどうかをチェックし(ステップ1202)、自動補完対象でない場合はステップ1211に進む。自動補完対象である場合は、自動補完済みかどうかをチェックし(ステップ1203)、自動補完済みである場合は同様にステップ1211に進む。なお、自動補完対象か自動補完済みかどうかはアイコン属性(図5参照)で判別する。 First, it is checked whether or not the input icon is an auto-completion target selected by the user (step 1202). If it is an object of auto-completion, it is checked whether or not auto-completion has been completed (step 1203). Whether or not automatic completion is to be performed is determined based on an icon attribute (see FIG. 5).
入力されたアイコンが自動補完対象で、自動補完済みでない場合には、当該入力されたアイコンに対し、自動補完定義データ127(図10)を取得し(ステップ1204)、該自動補完定義データ内に定義された補完判定フラグがONかOFFかチエックする(ステップ1205)。フラグがONである場合は、テンプレートファイル123(図8)を読み込み(ステップ1206)、該テンプレートファイル123内の処理を記述したアイコンを自動補完する(ステップ1207)。また、フラグがOFFである場合は、入力されたアイコンの内部データ内のアイコン例外情報(図5参照)を取得し(ステップ1208)、例外処理アイコンを自動補完する(ステップ1209)。その後、アイコン属性として自動補完済みフラグをONにする(ステップ1210)。
If the input icon is an object of auto-completion and is not auto-completed, auto-completion definition data 127 (FIG. 10) is acquired for the input icon (step 1204), and the auto-completion definition data is included in the auto-completion definition data. It is checked whether the defined complement determination flag is ON or OFF (step 1205). If the flag is ON, the template file 123 (FIG. 8) is read (step 1206), and the icons describing the processing in the
ステップ1211では、最終アイコンであるかどうかをチェックし、最終アイコンでない場合はステップ1202に戻って処理を繰り返し、最終アイコンである場合は自動補完処理を終了とする。自動補完処理が終了すると、自動補完制御部126は変換制御部121に制御を戻す。
In step 1211, it is checked whether or not the icon is the final icon. If the icon is not the final icon, the process returns to step 1202 to repeat the process. If the icon is the final icon, the automatic complement process is terminated. When the automatic completion process ends, the automatic
図13に自動補完後の入力画面例を示す。網掛けのアイコンが自動補完したアイコンである。自動補完される処理は、例えば、ログ出力である。図13中、ログ(送信〔前〕)、ログ(送信〔後〕)などのアイコンが自動補完フラグONのケースで自動補完されたものであり、例外(ログ出力)、例外(処理呼出)、例外(throw)などのアイコンが自動補完フラグOFFのケースで自動補完されたものである。仕様入力手段110は、自動補完済み内部データを取り込み、自動補完フラグがオンであれば、例えば、当該アイコンの色を変えて表示し、自動補完された部分が識別可能な表示にする。これにより、ユーザは必要なら修正や変更を行う。ユーザが修正・変更を行ったか否かはアイコン属性(図5参照)に反映される。
FIG. 13 shows an example of an input screen after automatic completion. A shaded icon is an automatically complemented icon. The automatically complemented process is, for example, log output. In FIG. 13, icons such as log (transmission [before]) and log (transmission [after]) are automatically complemented in the case of the auto-completion flag ON, and exception (log output), exception (process call), An icon such as an exception is automatically complemented in the case where the auto-completion flag is OFF. The
図14は、生成される全ルートパターンファイル30のフォーマット例を示す。ユーザは、この全ルートパターンファイル30をもとに、一つ一つの処理の際に必要となる処理(例えば、信号送信の際の戻り値の定義など)を記述した試験パターン定義ファイル40を作成する。図15は試験パターン定義ファイル40の一例を示す。
FIG. 14 shows a format example of the entire
図16は、図1の仕様検証手段130における一連の検証処理動作例を示したものである。仕様検証手段130は、内部データを読み込む(ステップ1301)。以下、各アイコンごとにステップ1302以降の処理を繰り返す。まず、当該アイコンが自動補完済みであるどうかをチェックし(ステップ1302)、自動補完済みでない場合には、そのまま仕様検証処理に進む(ステップ1304)。自動補完済みである場合は、ユーザが修正・変更を行っているかどうかをチェックし(ステップ1303)、ユーザが修正・変更を行っている場合、仕様検証処理に進み(ステップ1304)、ユーザが修正・変更を行っていない場合はステップ1305に行く。ステップ1304の仕様検証処理では、パラメータチエックや、検証情報知識ベース等の状態遷移情報に基づき、状態遷移検証等、仕様の検証を行う。ステップ1305は、最終アイコンであるかどうかをチェックし、最終アイコンでない場合は、ステップ1301に戻って処理を繰り返し、最終アイコンである場合は、検証を終了とする。
FIG. 16 shows a series of verification processing operation examples in the
図17は、図1に示す自動試験制御手段160の構成例である。該自動試験制御手段160は、自動試験パターン定義ファイル40(図15)をもとに、生成された通信サービスソフトウェア20の自動試験を1ステップずつ実行・制御する自動試験実行制御部161と、自動試験パターン定義ファイル40および試験対象となる通信サービスソフトウェア20を読み込むとともに、そのファイル40が正しいかどうかをチェックするファイル読込み部162と、試験の実行結果ログを出力する自動試験ログ出力部163から構成される。
FIG. 17 is a configuration example of the automatic test control means 160 shown in FIG. The automatic test control means 160 includes an automatic test
図18に自動試験制御手段160の処理フロー例を示す。以下に、図18を参照しながら自動試験制御手段160における一連の処理動作例を説明する。 FIG. 18 shows a processing flow example of the automatic test control means 160. Hereinafter, a series of processing operation examples in the automatic test control means 160 will be described with reference to FIG.
ファイル読込み部162が、自動試験パターン定義ファイル40と試験対象の通信サービスソフトウェア20を読み込み(ステップ1401)、その自動試験パターン定義ファイル40が正しいかどうかチエックする(ステップ1402)。自動試験パターン定義ファイル40が正しくない場合、ユーザにエラー通知を行い(ステップ1403)、自動試験処理を終了とする。自動試験パターン定義ファイル40が正しい場合、ファイル読込み部162は自動試験実行制御部162に制御を渡す。
The
自動試験実行制御部161は、自動試験パターン定義ファイル40をもとに、以下のように通信サービスソフトウェア20の自動試験を1ステップずつ実行制御する。まず、未実施の試験ルート(処理ルート)があるかどうかチエックし(ステップ1404)、未実施の試験ルートがなければ、自動試験を終了する。未実施の試験ルートがあれば、次のルート(最初の場合は1つ目)の試験を開始する(ステップ1405)。そして、そのルートにおいて、次の実行処理があるかどうかチエックし(ステップ1406)、次の実行処理がなけれな、ログを出力し(ステップ1407)、ステップ1404に戻る。次の実行処理がある場合は、当該処理を一つ実行する(ステップ1408)。そして、当該処理においてエラーが検出されたかどうかチエックする(ステップ1409)。当該処理でエラーが検出された場合は、エラーを含めてログを出力し(ステップ1410)、ステップ1406に戻り、エラーが検出されない場合は、ログを出力し(ステップ1411)、ステップ1406に戻る。以下、同様の処理を繰り返し、自動試験が実行される。該試験の実行ログは、自動試験ログ出力部163から出力される。
Based on the automatic test
なお、図1に示したプログラム自動生成装置における各部の一部もしくは全部の処理機能をコンピュータのプログラムで構成し、そのプログラムをコンピュータを用いて実行して本発明を実現することができること、あるいは、図11、図12、図16、図18などに示した処理手順をコンピュータのプログラムで構成し、そのプログラムをコンピュータに実行させることができることは言うまでもない。また、コンピュータでその処理機能を実現するためのプログラム、あるいは、コンピュータにその処理手順を実行させるためのプログラムを、そのコンピュータが読み取り可能な記録媒体、例えば、FD、MO、ROM、メモリカード、CD、DVD、リムーバブルディスクなどに記録して、保存したり、提供したりすることができるとともに、インターネット等のネットワークを通してそのプログラムを配布したりすることが可能である。 It should be noted that the processing functions of some or all of the units in the program automatic generation apparatus shown in FIG. 1 can be configured by a computer program, and the present invention can be realized by executing the program using a computer, or Needless to say, the processing procedures shown in FIG. 11, FIG. 12, FIG. 16, FIG. 18 and the like can be configured by a computer program and the program can be executed by the computer. In addition, a computer-readable recording medium such as an FD, MO, ROM, memory card, CD, or the like is stored in the computer. In addition, the program can be recorded and stored on a DVD, a removable disk, etc., and the program can be distributed through a network such as the Internet.
10 通信サービス動作仕様
20 通信サービスソフトウェア
30 全ルートパターンファイル
40 自動試験パターン定義ファイル
100 プログラム自動生成装置
110 仕様入力手段
120 仕様変換手段
121 変換制御部
122 変換情報データ
123 テンプレートファイル
124 スケルトンコード
125 全ルートパターンフォーマット
126 自動補完制御部
127 自動補完定義データ
130 仕様検証手段
140 入力要素提供データ
150 内部データ
160 自動試験制御手段
161 自動試験実行制御部
162 ファイル読込み部
163 自動試験ログ出力部
DESCRIPTION OF
Claims (4)
入力された通信サービスの動作仕様を、入力要素を表示するための入力要素提供データを基に、あらかじめ通信サービスの動作仕様として定義された送受信信号等の情報と共に内部データとして保存する手段と、
前記保存された内部データを基に、変換に必要な情報を抽出し、あらかじめ用意されたサービスに依存しない複数の変換形式に基づいて通信サービスソフトウェアを生成する手段と、
前記図表現を用いて視覚的に入力したサービスの動作仕様から、全ての処理ルートを抽出し、全ての処理ルートにルート番号を付与する手段と、
全ルート番号に対応した入出力信号のパターンを記述した試験用データを出力する手段と、
を具備することを特徴とするプログラム自動生成装置。 In an automatic program generation device that converts communication service operation specifications visually input using graphical representation into communication service software,
Means for storing the operation specifications of the input communication service as internal data together with information such as transmission / reception signals defined in advance as the operation specifications of the communication service based on the input element provision data for displaying the input elements;
Means for extracting information necessary for conversion based on the stored internal data, and generating communication service software based on a plurality of conversion formats not depending on a service prepared in advance;
Means for extracting all processing routes from the operation specifications of the service visually input using the graphic representation, and assigning route numbers to all the processing routes;
Means for outputting test data describing input / output signal patterns corresponding to all route numbers;
An automatic program generation device comprising:
入力された通信サービスの動作仕様を、入力要素を表示するための入力要素提供データを基に、あらかじめ通信サービスの動作仕様として定義された送受信信号等の情報と共に内部データとして保存する手段と、
前記保存された内部データを基に、変換に必要な情報を抽出し、あらかじめ用意されたサービスに依存しない複数の変換形式に基づいて通信サービスソフトウェアを生成し、通信サービスの動作仕様として、定義不足部分あるいはサービスに依存しないプログラムコードの自動補完を行うことが選択された場合には必要な仕様入力要素の自動補完を行う手段と、
前記図表現を用いて視覚的に入力したサービスの動作仕様から、全ての処理ルートを抽出し、全ての処理ルートにルート番号を付与する手段と、
全ルート番号に対応した入出力信号のパターンを記述した試験用データを出力する手段と、
を具備することを特徴とするプログラム自動生成装置。 In a specification input means that can be visually input using a graphical representation, and an automatic program generation device that converts operation specifications of an input communication service into communication service software,
Means for storing the operation specifications of the input communication service as internal data together with information such as transmission / reception signals defined in advance as the operation specifications of the communication service based on the input element provision data for displaying the input elements;
Based on the stored internal data, information necessary for conversion is extracted, communication service software is generated based on a plurality of conversion formats that do not depend on services prepared in advance, and the operation specifications of communication services are insufficiently defined. Means for automatically completing necessary specification input elements when automatic completion of program code independent of part or service is selected;
Means for extracting all processing routes from the operation specifications of the service visually input using the graphic representation, and assigning route numbers to all the processing routes;
Means for outputting test data describing input / output signal patterns corresponding to all route numbers;
An automatic program generation device comprising:
入力された通信サービスの動作仕様を、入力要素を表示するための入力要素提供データを基に、あらかじめ通信サービスの動作仕様として定義された送受信信号等の情報と共に内部データとして保存する手段と、
前記保存された内部データを基に、変換に必要な情報を抽出し、あらかじめ用意されたサービスに依存しない複数の変換形式に基づいて通信サービスソフトウェアを生成し、通信サービスの動作仕様として、定義不足部分あるいはサービスに依存しないプログラムコードの自動補完を行うことが選択された場合には必要な仕様入力要素の自動補完を行う手段と、
入力された通信サービスの動作仕様を検証する仕様検証手段と、
前記図表現を用いて視覚的に入力したサービスの動作仕様から、全ての処理ルートを抽出し、全ての処理ルートにルート番号を付与する手段と、
全ルート番号に対応した入出力信号のパターンを記述した試験用データを出力する手段と、
を具備することを特徴とするプログラム自動生成装置。 In a specification input means that can be visually input using a graphical representation, and an automatic program generation device that converts operation specifications of an input communication service into communication service software,
Means for storing the operation specifications of the input communication service as internal data together with information such as transmission / reception signals defined in advance as the operation specifications of the communication service based on the input element provision data for displaying the input elements;
Based on the stored internal data, information necessary for conversion is extracted, communication service software is generated based on a plurality of conversion formats that do not depend on services prepared in advance, and the operation specifications of communication services are insufficiently defined. Means for automatically completing necessary specification input elements when automatic completion of program code independent of part or service is selected;
Specification verification means for verifying the operation specifications of the input communication service;
Means for extracting all processing routes from the operation specifications of the service visually input using the graphic representation, and assigning route numbers to all the processing routes;
Means for outputting test data describing input / output signal patterns corresponding to all route numbers;
An automatic program generation device comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003275420A JP2005038244A (en) | 2003-07-16 | 2003-07-16 | Automatic program generation device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003275420A JP2005038244A (en) | 2003-07-16 | 2003-07-16 | Automatic program generation device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005038244A true JP2005038244A (en) | 2005-02-10 |
Family
ID=34212072
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003275420A Pending JP2005038244A (en) | 2003-07-16 | 2003-07-16 | Automatic program generation device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005038244A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008269632A (en) * | 2008-05-26 | 2008-11-06 | Konica Minolta Business Technologies Inc | Installation support method, and work flow preparation support method |
JP2012198743A (en) * | 2011-03-22 | 2012-10-18 | Mitsubishi Electric Corp | Monitoring control application design device and program |
US8533290B2 (en) | 2005-07-13 | 2013-09-10 | Konica Minolta Business Technologies, Inc. | Installation support method and workflow generation support method |
JP2019075077A (en) * | 2017-10-18 | 2019-05-16 | 韓國電子通信研究院Electronics and Telecommunications Research Institute | Workflow engine framework |
-
2003
- 2003-07-16 JP JP2003275420A patent/JP2005038244A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8533290B2 (en) | 2005-07-13 | 2013-09-10 | Konica Minolta Business Technologies, Inc. | Installation support method and workflow generation support method |
JP2008269632A (en) * | 2008-05-26 | 2008-11-06 | Konica Minolta Business Technologies Inc | Installation support method, and work flow preparation support method |
JP4626676B2 (en) * | 2008-05-26 | 2011-02-09 | コニカミノルタビジネステクノロジーズ株式会社 | Workflow creation support method, workflow server, program |
JP2012198743A (en) * | 2011-03-22 | 2012-10-18 | Mitsubishi Electric Corp | Monitoring control application design device and program |
JP2019075077A (en) * | 2017-10-18 | 2019-05-16 | 韓國電子通信研究院Electronics and Telecommunications Research Institute | Workflow engine framework |
JP7118726B2 (en) | 2017-10-18 | 2022-08-16 | 韓國電子通信研究院 | workflow engine framework |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6898764B2 (en) | Method, system and program product for determining differences between an existing graphical user interface (GUI) mapping file and a current GUI | |
US8429614B2 (en) | Method and apparatus of effective functional test data generation for web service testing | |
CN100498695C (en) | Workflow schedule authoring tool | |
US7127702B2 (en) | Application development system and method | |
US20090313335A1 (en) | Managing Software Component Versions within a Service Oriented Architecture | |
WO2007056909A1 (en) | A method and system for implementing the generation of the integrate telecom platform flow | |
CN114416547A (en) | Test case based test method | |
JP2005038244A (en) | Automatic program generation device | |
Li et al. | Towards a practical and effective method for web services test case generation | |
WO2002075534A1 (en) | Component/web service operational profile auto-sequencing | |
JP6097231B2 (en) | Program generating apparatus and method | |
CN114895880A (en) | Code generation method and device and computer readable medium | |
JP2005085182A (en) | Test support system | |
JP2004280152A (en) | Program automatic generating device | |
GB2397905A (en) | Method for automatically generating and ordering test scripts | |
JPH08190476A (en) | Development assisting device for interactive program | |
JP4568150B2 (en) | Processing device and processing device system | |
JP3544462B2 (en) | Source program analysis device and computer-readable recording medium storing source program analysis program | |
JP2006293436A (en) | Program code generation device and generation method | |
JPH09223040A (en) | System test supporting device for software and test scenario generator to be used for the same | |
JP2012150740A (en) | Program generating device and method | |
JPH10207727A (en) | System for automatically generating test program | |
JP4670724B2 (en) | Source code generation apparatus, source code generation method, and source code generation program | |
KR100348762B1 (en) | Method for creating service scenario for network messaging system | |
CN117234486A (en) | Interface definition file generation method, device, equipment and storage medium |