JP2015148925A - Program generation device and method - Google Patents

Program generation device and method Download PDF

Info

Publication number
JP2015148925A
JP2015148925A JP2014021178A JP2014021178A JP2015148925A JP 2015148925 A JP2015148925 A JP 2015148925A JP 2014021178 A JP2014021178 A JP 2014021178A JP 2014021178 A JP2014021178 A JP 2014021178A JP 2015148925 A JP2015148925 A JP 2015148925A
Authority
JP
Japan
Prior art keywords
source code
screen
program
design document
gui
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.)
Granted
Application number
JP2014021178A
Other languages
Japanese (ja)
Other versions
JP6097231B2 (en
Inventor
嘉月 佐藤
Kazuki Sato
嘉月 佐藤
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 Industry and Control Solutions Co Ltd
Original Assignee
Hitachi Industry and Control Solutions 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 Industry and Control Solutions Co Ltd filed Critical Hitachi Industry and Control Solutions Co Ltd
Priority to JP2014021178A priority Critical patent/JP6097231B2/en
Publication of JP2015148925A publication Critical patent/JP2015148925A/en
Application granted granted Critical
Publication of JP6097231B2 publication Critical patent/JP6097231B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a technology for reducing a correction-affected range by improving legibility in the automatic generation of a GUI (Graphical User Interface) program.SOLUTION: Template selection means selects a template to be used for the source code of the program of a target screen on the basis of a screen configuration specified in a screen specification. Scenario definition creation means creates the scenario definition of screen transition on the basis of a processing scenario specified in the screen specification. Generation processing means generates a first automatic generation source code for achieving the screen configuration of the target screen and an operation corresponding to an input to the target screen by using the template and the scenario definition. Unique processing presence/absence determination means determines whether or not unique processing to be individually created is present. Model source code generation means generates, when it is determined that the unique processing is present, a second automatic generation source code as the model of a source code indicating the unique processing independently of the first source code.

Description

本発明はGUI(Graphical User Interface)を有するプログラムを自動的に生成する装置及び方法に関する。   The present invention relates to an apparatus and method for automatically generating a program having a GUI (Graphical User Interface).

従来のGUIを有したプログラム開発の一例ではまず最初に画面設計が行われる。画面設計書には、GUI部分と、GUIから発生するイベントに対するコールバック部分とが定義される。プログラマは、その画面設計書を元にGUI部分の開発を行う。続いてプログラマは、画面設計書に定義されている動作内容に基づいてGUIから発生するイベントに対するコールバック部分の開発を行う。更に必要があれば、プログラマはGUIプログラムで使用する共通処理の部分の開発を行う。共通処理として、例えば、GUIプログラムの複数の箇所で用いられる処理であるため、他の部分から呼び出しが可能なように共通的に記述された処理などがある。   In an example of program development having a conventional GUI, screen design is first performed. In the screen design document, a GUI part and a callback part for an event generated from the GUI are defined. The programmer develops the GUI portion based on the screen design document. Subsequently, the programmer develops a callback portion for an event generated from the GUI based on the operation content defined in the screen design document. If necessary, the programmer develops a portion of common processing used in the GUI program. As the common process, for example, a process that is used in a plurality of locations of the GUI program, and therefore, there is a process that is commonly described so that it can be called from another part.

図1は、プログラム開発における画面設計書の変更の影響について説明するための図である。上述した手法で開発されたプログラムは、GUI表示部ソースコード110、コールバック処理ソースコード120、および共通処理ソースコード130を含んでいる。そのため、画面設計書に変更があった場合、プログラマは、GUI表示部ソースコード110およびコールバック処理ソースコード120を、更に必要に応じて共通処理ソースコード130を修正する。その修正作業は全て手作業で行われる。   FIG. 1 is a diagram for explaining the influence of a change in the screen design document in program development. The program developed by the above-described method includes GUI display source code 110, callback processing source code 120, and common processing source code 130. Therefore, when there is a change in the screen design document, the programmer modifies the GUI display unit source code 110 and the callback processing source code 120, and further modifies the common processing source code 130 as necessary. All the correction work is done manually.

また、GUIプログラムの開発を自動化する技術が特許文献1に開示されている。特許文献1には、「システムソフトウェアのUML設計書およびインタフェースプログラムから、そのソフトウェアを操作するUI(ユーザインタフェース)プログラムを自動生成する」と記載されている(要約参照)。   A technique for automating the development of a GUI program is disclosed in Patent Document 1. Patent Document 1 describes that “a UI (user interface) program for operating software is automatically generated from a system software UML design document and an interface program” (see the summary).

特開2003−140893号公報JP 2003-140893 A

上述したように、特許文献1には、UML設計書およびインタフェースプログラムからGUIプログラムを自動生成する方法が記載されている。しかしながら、特許文献1の方法では、共通的な処理を実現する部分と、共通部分に含まれない独自の処理を実現する部分とが混在した形でプログラムのソースコードが生成されてしまう。   As described above, Patent Document 1 describes a method for automatically generating a GUI program from a UML design document and an interface program. However, in the method of Patent Document 1, the source code of the program is generated in a form in which a portion that realizes common processing and a portion that realizes unique processing not included in the common portion are mixed.

そのため、自動生成されたソースコードの可読性は低いものとなってしまう。また、プログラムを修正する必要が生じた場合、その修正がどの部分への修正であったとしても、対象となるプログラム全体を再構築する作業が発生してしまう。   Therefore, the readability of the automatically generated source code is low. Further, when the program needs to be corrected, work for reconstructing the entire target program occurs regardless of which part the correction is.

本発明の目的は、GUIプログラムの自動生成において、可読性を向上し、修正による影響を受ける範囲を縮小する技術を提供することである。   An object of the present invention is to provide a technique for improving readability and reducing a range affected by correction in automatic generation of a GUI program.

本発明の一態様によるプログラム生成装置は、対象画面について画面構成および処理シナリオを規定した画面設計書に基づいて、グラフィカルユーザインタフェースを備えたプログラムのソースコードを生成するプログラム生成装置であって、前記画面設計書に規定された画面構成に基づいて、前記対象画面のプログラムのソースコードに使用するテンプレートを選択するテンプレート選択手段と、前記画面設計書に規定された処理シナリオに基づいて、画面遷移のシナリオ定義を作成するシナリオ定義作成手段と、前記テンプレートおよび前記シナリオ定義を用いて、前記対象画面の画面構成と前記対象画面への入力に対する動作とを実現する第1の自動生成ソースコードを生成する生成処理手段と、個別に作成すべき独自処理があるか否か判定する独自処理有無判定手段と、前記独自処理があれば、前記独自処理を示すソースコードの雛形である第2の自動生成ソースコードを、前記第1のソースコードから独立した形で生成する雛形ソースコード生成手段と、を有している。   A program generation apparatus according to an aspect of the present invention is a program generation apparatus that generates a source code of a program having a graphical user interface based on a screen design document that defines a screen configuration and a processing scenario for a target screen. Based on the screen configuration specified in the screen design document, template selection means for selecting a template to be used for the source code of the program of the target screen, and based on the processing scenario specified in the screen design document, screen transition Using the scenario definition creating means for creating a scenario definition, the template and the scenario definition, a first automatically generated source code that realizes the screen configuration of the target screen and the operation for the input to the target screen is generated. Whether there is a generation processing means and unique processing that should be created individually A unique process presence / absence judging means for judging, and if there is the unique process, a template for generating a second automatically generated source code that is a template of the source code indicating the unique process in a form independent of the first source code Source code generation means.

本発明によれば、GUIプログラムの自動生成において、可読性を向上し、修正による影響を受ける範囲を縮小する技術を提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, in the automatic production | generation of a GUI program, the technique which improves readability and reduces the range affected by correction can be provided.

プログラム開発における画面設計書の変更の影響について説明するための図である。It is a figure for demonstrating the influence of the change of the screen design document in program development. GUIプログラム自動生成装置が自動生成ソースコードを生成する様子を示す概念図である。It is a conceptual diagram which shows a mode that a GUI program automatic generation apparatus produces | generates an automatically generated source code. 画面項目設計書21に含まれるテーブルの記述例を示す図であるIt is a figure which shows the example of a description of the table contained in the screen item design document 21. 独自処理がある場合に画面項目設計書21に含まれるテーブルの記述例を示す図である。It is a figure which shows the example of a description of the table contained in the screen item design document 21 when there exists an original process. GUIプログラム自動生成装置10の概略構成を示すブロック図である。2 is a block diagram showing a schematic configuration of a GUI program automatic generation device 10. FIG. GUIプログラム自動生成装置10がGUIプログラムのソースコードを自動生成するときの動作の流れを示すフローチャートである。It is a flowchart which shows the flow of operation | movement when the GUI program automatic generation apparatus 10 produces | generates the source code of a GUI program automatically. 入力条件設計書40の記述例を示す図である。5 is a diagram illustrating a description example of an input condition design document 40. FIG. GUIプログラム自動生成装置10を用いたGUIプログラム開発の流れを示すフローチャートである。4 is a flowchart showing a flow of GUI program development using the GUI program automatic generation device 10.

本発明の一実施形態であるGUIプログラム自動生成装置について図面を用いて説明する。   A GUI program automatic generation apparatus according to an embodiment of the present invention will be described with reference to the drawings.

図2は、GUIプログラム自動生成装置が自動生成ソースコードを生成する様子を示す概念図である。GUIプログラム自動生成装置10には、GUIプログラムに含まれる複数の対象画面のそれぞれについて、各設計書20、30、40、60、70を解析し、ソースコードテンプレートファイル50を利用して、自動生成ソースコード60を生成する。その際、GUIプログラム自動生成装置10は、複数の対象画面に共通の共通定義設計書70を利用する。   FIG. 2 is a conceptual diagram showing how the GUI program automatic generation device generates automatically generated source code. The GUI program automatic generation apparatus 10 analyzes each design document 20, 30, 40, 60, 70 for each of a plurality of target screens included in the GUI program, and automatically generates them using the source code template file 50. Source code 60 is generated. At that time, the GUI program automatic generation device 10 uses a common definition design document 70 common to a plurality of target screens.

プログラマは、GUIプログラムを開発するにあたり、まず、GUIプログラム自動生成装置10で解析可能な形式の画面設計書20と、他サーバとの通信に用いる通信インタフェースを規定するインタフェース設計書30と、GUIプログラムの項目毎の動作確認内容を規定した入力条件設計書40を作成する。また、プログラマは、予め、GUIプログラム名称、GUI部品名称、GUI部品とソースコードテンプレートファイル50との紐付けを規定する共通定義設計書70も作成しておき、GUIプログラム開発に際し、必要に応じてそれを修正する。   In developing a GUI program, a programmer firstly has a screen design document 20 in a format that can be analyzed by the GUI program automatic generation device 10, an interface design document 30 that defines a communication interface used for communication with another server, and a GUI program. The input condition design document 40 that defines the operation confirmation contents for each item is created. In addition, the programmer also creates a common definition design document 70 that prescribes the GUI program name, the GUI part name, and the association between the GUI part and the source code template file 50 in advance. Fix it.

画面設計書20には画面項目設計書21とシナリオ定義設計書22が含まれている。   The screen design document 20 includes a screen item design document 21 and a scenario definition design document 22.

画面項目設計書21には、対象画面の画面構成の情報、例えば、GUIプログラムの画面に表示するGUI部品の種別や配置の定義、および定義したGUI部品へ入力する情報について規定される。   In the screen item design document 21, information on the screen configuration of the target screen, for example, the definition and type of the GUI component displayed on the screen of the GUI program, and information input to the defined GUI component are defined.

図3は、画面項目設計書21に含まれるテーブルの記述例を示す図である。図3を参照すると、テーブル300には、各GUI部品の項目名301、コントロール種別302、タブオーダー303、コンテンツ情報304、配置情報305が互いに対応づけて記述されている。コントロール種別302は、各項目名301のGUI部品の制御に関する種別を示している。EDITは、入力したり、編集したりできる項目を意味し、PANELは固定な表示の項目を意味し、BTNはボタンを意味している。タブオーダー303は、Tabキーによってフォーカスが移動する順序を示している。コンテンツ情報の表示値は、GUI部品に表示するテキストを示している。配置情報305は、GUI部品を表示する座標および大きさを示している。   FIG. 3 is a diagram illustrating a description example of a table included in the screen item design document 21. Referring to FIG. 3, in the table 300, item names 301, control types 302, tab orders 303, content information 304, and arrangement information 305 of each GUI component are described in association with each other. A control type 302 indicates a type related to control of the GUI component of each item name 301. EDIT means an item that can be input or edited, PANEL means a fixed display item, and BTN means a button. A tab order 303 indicates the order in which the focus is moved by the Tab key. The display value of the content information indicates text to be displayed on the GUI component. The arrangement information 305 indicates the coordinates and size for displaying the GUI component.

図4は、独自処理がある場合に画面項目設計書21に含まれるテーブルの記述例を示す図である。図4を参照すると、テーブル500には、各独自処理について、アクション501、コントロール種別502、項目名503、および独自処理名504が互いに対応づけて記述されている。アクション501は、独自処理を呼び出す操作を示している。項目名503は、独自処理を呼び出す項目を示し、コントロール種別502は、その項目の制御に関する種別を示している。独自処理名504は、独自処理の名称である。作成するGUIプログラムに独自処理を実装する必要がない場合、画面項目設計書21に独自処理を呼出すためのテーブル500を記述する必要はない。   FIG. 4 is a diagram illustrating a description example of a table included in the screen item design document 21 when there is a unique process. Referring to FIG. 4, in table 500, action 501, control type 502, item name 503, and unique process name 504 are described in association with each other for each unique process. An action 501 indicates an operation for calling a unique process. An item name 503 indicates an item for calling an independent process, and a control type 502 indicates a type related to control of the item. The unique process name 504 is a name of the unique process. When it is not necessary to implement the unique process in the GUI program to be created, it is not necessary to describe the table 500 for calling the unique process in the screen item design document 21.

一方、シナリオ定義設計書22には、各対象画面の画面項目設計書21により作成されるGUI画面への操作によって実行する処理のシナリオ、例えば、GUI画面に対する操作による遷移先となるGUI画面といった複数のGUI画面同士の関連動作が規定される。   On the other hand, the scenario definition design document 22 includes a plurality of scenarios such as a GUI screen that is a transition destination by an operation on the GUI screen, for example, a process scenario executed by an operation on the GUI screen created by the screen item design document 21 of each target screen. Related operations between GUI screens are defined.

ソースコードテンプレートファイル50は、自動生成ソースコード60の生成に使用するテンプレートのファイルである。   The source code template file 50 is a template file used for generating the automatically generated source code 60.

インタフェース設計書30には、GUIプログラムを実装したコンピュータが他のサーバ等との通信に用いる通信インタフェースが規定されている。   The interface design document 30 defines a communication interface used by a computer in which a GUI program is installed for communication with other servers.

入力条件設計書40には、画面項目設計書21における入力項目について、正常とされるための入力条件が規定されている。例えば「月」の項目であれば、「1」月から「12」月までのような正常な入力値の範囲が規定される。この入力条件設計書40がGUIプログラムの項目毎の動作確認内容となる。   The input condition design document 40 defines input conditions for making the input items in the screen item design document 21 normal. For example, in the case of “month”, a normal input value range from “1” month to “12” month is defined. This input condition design document 40 becomes the operation confirmation content for each item of the GUI program.

GUIプログラム自動生成装置10が生成する自動生成ソースコード60には、GUIレイアウトソースコード61、画面間シナリオ定義ソースコード62、通信インタフェース定義63、単体試験用ソースコード64、イベント動作定義ソースコード65、独自処理雛形ソースコード66という6種類のものが含まれている。   The automatic generation source code 60 generated by the GUI program automatic generation apparatus 10 includes a GUI layout source code 61, an inter-screen scenario definition source code 62, a communication interface definition 63, a unit test source code 64, an event operation definition source code 65, Six types of original processing template source code 66 are included.

GUIレイアウトソースコード61はGUIプログラムの画面レイアウトを構築するソースコードである。   The GUI layout source code 61 is source code for constructing the screen layout of the GUI program.

画面間シナリオ定義ソースコード62は、GUIプログラム自動生成装置10で作成されるGUIプログラムの画面間の関連動作などの処理を構築するソースコードである。   The inter-screen scenario definition source code 62 is source code for constructing processing such as related operations between screens of the GUI program created by the GUI program automatic generation device 10.

通信インタフェース定義63は、例えば他サーバとの通信によるデータの送受信を行うための通信インタフェースの構造の定義である。   The communication interface definition 63 is a definition of the structure of a communication interface for performing data transmission / reception through communication with other servers, for example.

単体試験用ソースコード64は、入力条件設計書40に記載された入力条件に基づいた試験を実施するためのソースコードである。従来は自動生成されたソースコードから作成されたGUIプログラムについて、GUI部分の動作確認は手作業で行わなければならず、類似した項目が多数に及ぶ場合でも、同一あるいは類似の動作確認を項目単位で繰り返し実施する必要があったが、本実施形態では、単体試験が自動化できるので、試験作業が低減される。   The unit test source code 64 is source code for performing a test based on the input conditions described in the input condition design document 40. Conventionally, for GUI programs created from automatically generated source code, the operation check of the GUI part has to be performed manually, and even if there are many similar items, the same or similar operation check is performed on an item basis. However, in this embodiment, since the unit test can be automated, the test work is reduced.

イベント動作定義ソースコード65は、GUIレイアウトソースコード61で定義されたGUI部品に何らかのイベントが発生した場合の動作を構築するソースコードである。   The event operation definition source code 65 is source code for constructing an operation when an event occurs in a GUI component defined by the GUI layout source code 61.

独自処理雛形ソースコード66は、GUIプログラムに、個別に作成すべき独自処理が必要な場合に生成されるソースコードの雛形であり、独自処理のソースコードがそこに追加記述される。   The original process template source code 66 is a source code template generated when an independent process to be created individually is required in the GUI program, and the source code of the original process is additionally described therein.

以上のように6種類のソースコードは全て内容が異なっている。ソースコードテンプレートファイル50には、これら各ソースコードについての様々な形態のソースコードテンプレートファイルが含まれている。   As described above, all six types of source code have different contents. The source code template file 50 includes various forms of source code template files for each of these source codes.

GUIプログラム自動生成装置10は共通定義設計書70からGUIプログラムで用いる共通定義情報を取得し、その情報を用いて画面設計書20に記載された定義情報からテンプレートファイルを結合し、自動生成ソースコード60を生成する。   The GUI program automatic generation device 10 acquires common definition information used in the GUI program from the common definition design document 70, combines the template file from the definition information described in the screen design document 20 using the information, and automatically generates source code 60 is generated.

図5は、GUIプログラム自動生成装置10の概略構成を示すブロック図である。図5を参照すると、テンプレート選択部15、ソースコード生成部16、独自処理有無判定部17、雛形ソースコード生成部18、および設計書チェック部19を有している。更に、ソースコード生成部16は、画面間シナリオ定義作成部161、試験コード生成部162、生成処理部163、および通信インタフェース特定部164を有している。   FIG. 5 is a block diagram illustrating a schematic configuration of the GUI program automatic generation device 10. Referring to FIG. 5, a template selection unit 15, a source code generation unit 16, a unique process presence / absence determination unit 17, a template source code generation unit 18, and a design document check unit 19 are included. Furthermore, the source code generation unit 16 includes an inter-screen scenario definition creation unit 161, a test code generation unit 162, a generation processing unit 163, and a communication interface identification unit 164.

テンプレート選択部15は、画面設計書20に規定された画面構成に基づいて、対象画面のプログラムのソースコードに使用するテンプレートを選択する。   The template selection unit 15 selects a template to be used for the source code of the target screen program based on the screen configuration defined in the screen design document 20.

画面間シナリオ定義作成部161は、画面設計書20に規定された処理シナリオに基づいて、画面遷移のシナリオ定義を作成する。   The inter-screen scenario definition creation unit 161 creates a screen transition scenario definition based on the processing scenario defined in the screen design document 20.

生成処理部163は、テンプレート選択部15で選択されたテンプレートと、画面間シナリオ定義作成部161で作成されたシナリオ定義を用いて、対象画面の画面構成と対象画面への入力に対する動作とを実現する各種ソースコード(第1の自動生成ソースコード)を生成する。第1の自動生成ソースコードには、GUIレイアウトソースコード61および画面間シナリオ定義ソースコード62が含まれている。   The generation processing unit 163 uses the template selected by the template selection unit 15 and the scenario definition created by the inter-screen scenario definition creation unit 161 to realize the screen configuration of the target screen and the operation for the input to the target screen. Various source codes (first automatically generated source code) to be generated are generated. The first automatically generated source code includes a GUI layout source code 61 and an inter-screen scenario definition source code 62.

独自処理有無判定部17は、対象画面のGUIプログラムに個別に作成すべき独自処理があるか否か判定する。   The unique process presence / absence determining unit 17 determines whether or not there is a unique process to be individually created in the GUI program of the target screen.

雛形ソースコード生成部18は、独自処理有無判定部17による判定で独自処理があれば、その独自処理を示すソースコードの雛形(第2の自動生成ソースコード)を、前記第1のソースコーから独立した形で生成する。   If there is a unique process in the determination by the unique process presence / absence determining unit 17, the template source code generation unit 18 generates a template of the source code (second automatically generated source code) indicating the unique process independently from the first source code. Generated in the form.

本実施形態によれば、テンプレートからの自動生成とは別に作成する独自処理のソースコードの雛形の部分と、テンプレートから自動生成されるソースコードに部分とをそれぞれ互いに独立した形で生成するので、ソースコードの可読性が向上し、また修正の影響を受ける範囲を自動生成部分あるいは独自処理部分に限定することができる。   According to the present embodiment, the template part of the source code of the original process created separately from the automatic generation from the template and the part in the source code automatically generated from the template are generated independently of each other. The readability of the source code is improved, and the range affected by the modification can be limited to the automatically generated part or the original processing part.

通信インタフェース特定部164は、他サーバ等の外部装置との通信に用いる通信インタフェースを特定する。   The communication interface specifying unit 164 specifies a communication interface used for communication with an external device such as another server.

生成処理部163は、通信インタフェース特定部164で特定された通信インタフェースの情報を更に用いて、その通信インタフェースを実現する通信インタフェース定義を生成する。第1の自動生成ソースコードに、この通信インタフェース定義も含まれる。   The generation processing unit 163 further uses the information of the communication interface specified by the communication interface specifying unit 164 to generate a communication interface definition that realizes the communication interface. The communication interface definition is also included in the first automatically generated source code.

これによれば、所望の通信インタフェースを備えたGUIプログラムを自動生成することができる。   According to this, it is possible to automatically generate a GUI program having a desired communication interface.

試験コード生成部162は、対象画面に含まれる部品に対する試験のための入力を定めた試験コードを作成する。   The test code generation unit 162 creates a test code that defines an input for testing a part included in the target screen.

その場合、生成処理部163は、対象画面に含まれる部品のそれぞれについての試験コードに基づいて、対象画面のソースコードに単体試験用の入力を与える単体試験用ソースコードを、更に生成する。   In this case, the generation processing unit 163 further generates unit test source code that gives unit test input to the source code of the target screen based on the test code for each of the components included in the target screen.

これによれば、対象画面のプログラムのソースコードを単体試験するための単体試験用ソースプログラムを併せて生成することができる。   According to this, it is possible to generate a unit test source program for unit testing the source code of the program of the target screen.

なお、この単体試験用ソースコードは、テンプレートから作成された第1の自動生成ソースコードに対して単体試験用の入力を与えるプログラムのソースコードである。これによれば、テンプレートに形態が定まっているため単体試験の入力を規定することが比較的容易な第1の自動生成ソースコードを独立した形に生成するので、容易に、その部分についての単体試験用のソースプログラムを併せて生成することができる。   The unit test source code is a source code of a program that gives an input for unit test to the first automatically generated source code created from the template. According to this, since the template is fixed in form, the first automatically generated source code that is relatively easy to define the input of the unit test is generated in an independent form. A test source program can also be generated.

図6は、GUIプログラム自動生成装置10がGUIプログラムのソースコードを自動生成するときの動作の流れを示すフローチャートである。図6において、細線矢印は処理の流れを示し、破線矢印はファイルの入力を示し、太線矢印はファイルの出力を示している。GUIプログラムのソースコードの生成に用いる、共通定義設計書70、画面設計書20、ソースコードテンプレートファイル50、入力条件設計書40、およびインタフェース30は、外部記憶装置80に格納されている。また、GUIプログラム自動生成装置10が自動生成した、GUIレイアウトソースコード61、画面間シナリオ定義ソースコード62、通信インタフェース定義63、単体試験用ソースコード64、イベント動作定義ソースコード65、および独自処理雛形ソースコード66は外部記憶装置80に格納される。   FIG. 6 is a flowchart showing an operation flow when the GUI program automatic generation device 10 automatically generates the source code of the GUI program. In FIG. 6, thin line arrows indicate the flow of processing, broken line arrows indicate file input, and thick line arrows indicate file output. The common definition design document 70, the screen design document 20, the source code template file 50, the input condition design document 40, and the interface 30 used for generating the source code of the GUI program are stored in the external storage device 80. In addition, the GUI layout source code 61, the inter-screen scenario definition source code 62, the communication interface definition 63, the unit test source code 64, the event operation definition source code 65, and the unique processing template automatically generated by the GUI program automatic generation apparatus 10 The source code 66 is stored in the external storage device 80.

GUIプログラム自動生成装置10は、一時格納領域としてメモリ11と中央演算装置としてCPU12を備えている。メモリ11に適時情報を格納し、その情報を持ってCPU12で演算を行う基本構成のコンピュータ装置上で動作する。   The GUI program automatic generation device 10 includes a memory 11 as a temporary storage area and a CPU 12 as a central processing unit. It operates on a computer device having a basic configuration in which timely information is stored in the memory 11 and the CPU 12 performs calculations with the information.

GUIプログラムの自動生成を開始すると、GUIプログラム自動生成装置10は、まず初めに共通定義設計書70をメモリ11に格納する(ステップ200)。これは、ソースコードテンプレートファイル50とGUI部品とを対応付ける紐付き情報と、他の画面のGUIプログラムの情報を取得するためである。   When the automatic generation of the GUI program is started, the GUI program automatic generation apparatus 10 first stores the common definition design document 70 in the memory 11 (step 200). This is because the association information for associating the source code template file 50 with the GUI component and the information of the GUI program on another screen are acquired.

それらの情報の取得が完了すると、GUIプログラム自動生成装置10は、次に画面設計のための情報として、自動生成の対象画面の画面設計書20とソースコードテンプレートファイル50と入力条件設計書40を外部記憶装置80から取得してメモリ11に格納する(ステップ205)。   When the acquisition of these pieces of information is completed, the GUI program automatic generation apparatus 10 then obtains the screen design document 20 of the target screen for automatic generation, the source code template file 50, and the input condition design document 40 as information for screen design. Obtained from the external storage device 80 and stored in the memory 11 (step 205).

次に、GUIプログラム自動生成装置10は、それまでにメモリ11に格納した情報を元に、CPU12によって、各設計書のチェックを実施する(ステップ210)。設計書のチェック内容としては、例えば、画面項目設計書21に記載してあるGUI部品名称が共通定義設計書70に存在しているか、記入漏れの項目が存在しているかがある。設計書のチェックは既存の方法で実施すればよい。   Next, the GUI program automatic generation device 10 checks each design document by the CPU 12 based on the information stored in the memory 11 so far (step 210). The check contents of the design document include, for example, whether the GUI part name described in the screen item design document 21 exists in the common definition design document 70, or there is an item that is not filled in. The design document can be checked using existing methods.

設計書のチェックが完了すると、GUIプログラム自動生成装置10は、次に、画面項目設計書21内に記載のあるGUI部品情報に基づき、ステップ200で共通定義設計書70から取得しておいた共通定義の情報から、ソースコードテンプレートファイル50とGUI部品情報との紐付き情報を参照し、画面項目設計書21内に記載のあるGUI部品情報に対応するソースコードテンプレートファイル50の該当ソースコードを取得し、GUIプログラムとする(ステップ215)。このステップ215で、当該GUI部品のGUIレイアウトソースコード61とイベント動作定義ソースコード65の準備が整う。   When the design document check is completed, the GUI program automatic generation device 10 next acquires the common information acquired from the common definition design document 70 in step 200 based on the GUI part information described in the screen item design document 21. From the definition information, link information between the source code template file 50 and the GUI part information is referred to, and the corresponding source code of the source code template file 50 corresponding to the GUI part information described in the screen item design document 21 is acquired. , A GUI program is set (step 215). In step 215, the GUI layout source code 61 and the event action definition source code 65 of the GUI part are ready.

画面設計書20に記載のある全てのGUI部品に対してステップ215を繰り返し実施し、各GUI部品のGUIレイアウトソースコード61とイベント動作定義ソースコード65をGUIプログラムに加えていく(ステップ220)。   Step 215 is repeatedly performed for all GUI parts described in the screen design document 20, and the GUI layout source code 61 and event action definition source code 65 of each GUI part are added to the GUI program (step 220).

次に、GUIプログラム自動生成装置10は、ステップ220で作成したGUIプログラムに対して、他のGUIプログラムとの関連動作の処理シナリオをシナリオ定義設計書22から取得し、画面間遷移の動作定義を構築する(ステップ230)。このステップ230では、画面間シナリオ定義ソースコード62が準備される。   Next, the GUI program automatic generation device 10 acquires a processing scenario of an operation related to another GUI program from the scenario definition design document 22 for the GUI program created in step 220, and defines an operation definition of transition between screens. Build (step 230). In this step 230, the inter-screen scenario definition source code 62 is prepared.

この段階でGUIプログラムの基本動作部分は完成するので、GUIプログラム自動生成装置10は、入力条件設計書40を用いて、GUIプログラムを構成しているGUI部品単位で、それぞれの試験を実施するための試験コードを生成する(ステップ235)。   Since the basic operation part of the GUI program is completed at this stage, the GUI program automatic generation apparatus 10 uses the input condition design document 40 to perform each test for each GUI component constituting the GUI program. The test code is generated (step 235).

GUI部品単位での試験コードの作成方式について説明する。   A test code creation method for each GUI component will be described.

上述したように図3には画面項目設計書21の記述例が示されている。図3を参照すると、画面項目設計書21には、GUIプログラムを構成するGUI部品の情報として、項目名301と、コントロール種別302と、タブオーダー303、コンテンツ情報304、および配置情報305が格納されている。項目名301は、設計するGUIプログラムの中で使用するGUI部品の名称となる。コントロール種別302はGUI部品の種別を表す。ここでは画面項目設計書21に記載する内容として上記を例示しているが、その他の情報を追加で定義してもよい。   As described above, a description example of the screen item design document 21 is shown in FIG. Referring to FIG. 3, the screen item design document 21 stores an item name 301, a control type 302, a tab order 303, content information 304, and arrangement information 305 as information on GUI parts constituting the GUI program. ing. The item name 301 is the name of a GUI component used in the GUI program to be designed. The control type 302 represents the type of GUI component. Here, the above is exemplified as the contents described in the screen item design document 21, but other information may be additionally defined.

図7は、入力条件設計書40の記述例を示す図である。   FIG. 7 is a diagram illustrating a description example of the input condition design document 40.

入力条件設計書40には、テキスト入力やボタン操作などの入力が可能なGUI部品のそれぞれについて、その入力条件が規定されている。これが単体テストコードを生成するための設計書となる。   The input condition design document 40 defines the input conditions for each GUI component that allows input such as text input and button operation. This is the design document for generating unit test code.

入力条件設計書40のテーブル400には、各GUI部品について、コントロール種別401、項目名402、入力条件値403が記述されている。コントロール種別401は、単体試験を実施するGUI部品の種別を表す。項目名402は単体試験を実施する項目を表すものである。入力条件値403には、当該項目に入る基本の値、入力可能な最小値および最大値、入力可能でない範囲の値が記述されている。なお、ここでは図7に示したものを例示したが、その他の情報を追加記載してもよい。また、入力条件は通常の入力条件の他に、最小入力値および最大入力値等については、試験を実施する分だけ定義を記述することにしてもよい。   In the table 400 of the input condition design document 40, a control type 401, an item name 402, and an input condition value 403 are described for each GUI component. The control type 401 represents the type of GUI component that performs the unit test. An item name 402 represents an item for which a unit test is performed. The input condition value 403 describes a basic value that falls into the item, a minimum value and a maximum value that can be input, and a value in a range that cannot be input. In addition, although what was shown in FIG. 7 was illustrated here, other information may be described additionally. In addition to the normal input conditions, the input conditions may be defined for the minimum input value and the maximum input value as much as the test is performed.

次に本実施形態の図3と図4において、GUI部品単位での試験コード作成方式について説明する。GUIプログラム自動生成装置10は画面項目設計書21からコントロール種別302と、項目名301を抽出し、そこから入力条件設計書の中からコントロール種別302と一致するコントロール種別401を検索し、一致した検索結果の中から項目名301と項目名402が一致する項目を検索する。一致した行が存在した場合は、入力条件値403から入力条件を抽出して、GUI部品に対する入力試験コードを自動的に生成する。別のGUIプログラムを設計する際に既存のGUIプログラムと同じ入力項目が存在する場合、作成済みの入力条件設計書40に定義したコントロール種別401と項目名402と同じ定義で画面項目設計書を作成することで、入力条件設計書40を共有して使用することができる。単体試験用ソースコード64は、単体動作可能なソースコードを生成するでもよいし、一般的な単体試験用プログラムを利用する形のソースコードを生成することでもよい。   Next, a test code creation method for each GUI component will be described with reference to FIGS. 3 and 4 of the present embodiment. The GUI program automatic generation device 10 extracts the control type 302 and the item name 301 from the screen item design document 21, searches the input condition design document for the control type 401 that matches the control type 302, and matches the search. From the results, an item having the same item name 301 and item name 402 is searched. If there is a matching line, the input condition is extracted from the input condition value 403, and the input test code for the GUI component is automatically generated. When designing another GUI program, if the same input items as the existing GUI program exist, create a screen item design document with the same definition as the control type 401 and the item name 402 defined in the created input condition design document 40 By doing so, the input condition design document 40 can be shared and used. The unit test source code 64 may generate a source code capable of operating alone, or may generate a source code using a general unit test program.

ステップ235で各部品毎の試験コード生成が完了した後、自動生成対象のGUIプログラムが使用する他通信網用のインタフェースを判別し(ステップ240)、対象のインタフェース設計書30をメモリ11に読み出す(ステップ245)。ここまでのステップまでに準備された情報を用いて、ステップ250にてGUIレイアウトソースコード61、画面間シナリオ定義ソースコード62、通信インタフェース定義63、単体試験用ソースコード64、イベント動作定義ソースコード65を生成する。   After the test code generation for each component is completed in step 235, the interface for the other communication network used by the GUI program to be automatically generated is determined (step 240), and the target interface design document 30 is read into the memory 11 ( Step 245). Using the information prepared so far, the GUI layout source code 61, the inter-screen scenario definition source code 62, the communication interface definition 63, the unit test source code 64, and the event operation definition source code 65 are used in step 250. Is generated.

画面項目設計書21に、図7で示すような独自処理の定義が存在するかをチェック(ステップ255)し、存在する場合には独自処理を記載するための雛形ソースコードとして、独自処理雛形ソースコード66を生成する(ステップ260)。本実施形態における独自処理の記述例について、図7を用いて説明する。   It is checked whether or not the definition of the unique process as shown in FIG. 7 exists in the screen item design document 21 (step 255), and if it exists, as the template source code for describing the unique process, the unique process model source A code 66 is generated (step 260). A description example of the unique process in this embodiment will be described with reference to FIG.

上述した図4のテーブル500において、項目名503は、独自処理を呼び出す項目を示し、コントロール種別502は、その項目の制御に関する種別を示している。独自処理名504は、独自処理の名称である。これは、画面項目設計書21における独自処理について、呼び出し方(項目名503、コントロール種別502、およびアクション501)と、呼び出し先ファンクション名称(独自処理名504)とを対応づけた紐付け情報を定義したものである。   In the table 500 of FIG. 4 described above, an item name 503 indicates an item for calling an independent process, and a control type 502 indicates a type related to control of the item. The unique process name 504 is a name of the unique process. This defines the association information that associates the calling method (item name 503, control type 502, and action 501) with the callee function name (unique process name 504) for the unique process in the screen item design document 21. It is what.

アクション501には、GUI部品に対してどのような動作を実施した場合に呼び出し先ファンクションが呼び出されるかが定義される。コントロール種別502と項目名503は、どのGUI部品に対する独自処理なのかが定義される。独自処理名504は呼び出し先ファンクションのファンクション名称が定義される。   The action 501 defines what kind of operation is performed on the GUI component when the call destination function is called. The control type 502 and the item name 503 define which GUI component is unique processing. The unique process name 504 defines the function name of the call destination function.

なお、本実施形態では、独自処理の部分の定義を画面項目設計書21中に記述する形態を例示するが、それを独立した設計書として作成することにしてもよい。   In the present embodiment, an example in which the definition of the part of the unique process is described in the screen item design document 21 is exemplified, but it may be created as an independent design document.

また、図4におけるコントロール種別502および項目名503は、図3におけるコントロール種別302および項目名301と紐付くように定義し、それが示すGUI部品に対して、アクション501に定義された動作が行われたときに、独自処理名504の独自処理のファンクションが呼び出されるような定義が設定される。   Also, the control type 502 and the item name 503 in FIG. 4 are defined so as to be associated with the control type 302 and the item name 301 in FIG. 3, and the action defined in the action 501 is performed for the GUI component indicated by the control type 502 and the item name 503. The definition is set so that the function of the unique process having the unique process name 504 is called when the function is called.

また、図3、図4、図7では、一例として表形式で各情報を定義しているが、XML、CSVまたはその他の形式で情報を定義してもよい。   Further, in FIGS. 3, 4, and 7, each information is defined in a table format as an example, but the information may be defined in XML, CSV, or other formats.

上述したように、本実施形態では、GUIプログラムを製造する際に独自処理部分をGUIプログラムの基本部分とは独立したソースコードで生成することで、ソースコードの可読性を向上させることが可能となる。また、独自部分のみの改修が必要となった場合でも、ソースコードが独立しているため、プログラムの再構築作業は独自部分箇所のみ実施すればよい。   As described above, in this embodiment, when the GUI program is manufactured, the unique processing part is generated with the source code independent of the basic part of the GUI program, so that the readability of the source code can be improved. . Even if only the original part needs to be refurbished, the source code is independent, so it is only necessary to reconstruct the program for the original part.

図8は、GUIプログラム自動生成装置10を用いたGUIプログラム開発の流れを示すフローチャートである。   FIG. 8 is a flowchart showing the flow of GUI program development using the GUI program automatic generation apparatus 10.

はじめに、GUIプログラムの開発を行うにあたり、GUIプログラム自動生成装置10で生成するための基本情報として、画面設計書20を作成する(ステップ600)。次に、作成するGUIプログラムのGUI部品に対し、単体試験の要否および必要な試験内容を決定し、それを基に入力条件設計書40を作成する(ステップ610)。また、作成するGUIプログラムが他サーバ向けに新しい通信インタフェースを使用する場合、その通信インタフェースを規定するインタフェース設計書30を作成する(ステップ620)。なお、既存の通信インタフェースを利用するのであれば、インタフェース設計書30を作成する必要はない。   First, when developing a GUI program, the screen design document 20 is created as basic information to be generated by the GUI program automatic generation apparatus 10 (step 600). Next, the necessity of the unit test and necessary test contents are determined for the GUI part of the GUI program to be created, and the input condition design document 40 is created based on the determination (step 610). When the GUI program to be created uses a new communication interface for other servers, an interface design document 30 that defines the communication interface is created (step 620). If an existing communication interface is used, the interface design document 30 does not need to be created.

次に、共通定義設計書70が既に存在するが新しいGUI部品を追加するなどの修正がある場合など、共通定義設計書70における共通定義を修正する必要があるか否かを判断し(ステップ630)、必要に応じて共通定義設計書70を修正する(ステップ640)。   Next, it is determined whether or not the common definition in the common definition design document 70 needs to be corrected, for example, when the common definition design document 70 already exists but there is correction such as adding a new GUI component (step 630). The common definition design document 70 is modified as necessary (step 640).

以上、これら設計書の作成が完了した後、GUIプログラム自動生成装置10にて、設計書のチェックを実施する(ステップ210)。設計書に不備が存在していた場合は設計書を修正し(ステップ650)、再度設計書チェックを実施することを、不備がなくなるまで繰り返す。設計書に不備が無くなったら、GUIプログラム自動生成装置10にて、各ソースコードの自動生成を実施する(ステップ250)。なお、このとき独自処理が存在するのであれば、GUIプログラム自動生成装置10は独自処理雛形ソースコード66も生成する。このとき生成される独自処理雛形ソースコード66は、独自処理名504で定義されたファンクション名のみが定義された状態である。そのため、独自処理の実装が必要であれば、独自処理の実装を行う(ステップ660)。その場合、ステップ660で実装した独自処理の部分についての確認を実施する(ステップ670)。   As described above, after the creation of these design documents is completed, the design document is checked by the GUI program automatic generation apparatus 10 (step 210). If any deficiency exists in the design document, the design document is corrected (step 650), and the design document check is performed again until the deficiency disappears. When there is no deficiency in the design document, each source code is automatically generated by the GUI program automatic generation device 10 (step 250). If unique processing exists at this time, the GUI program automatic generation device 10 also generates a unique processing template source code 66. In the unique process template source code 66 generated at this time, only the function name defined by the unique process name 504 is defined. Therefore, if the unique process needs to be implemented, the unique process is implemented (step 660). In that case, confirmation of the part of the unique process implemented in step 660 is performed (step 670).

更に、単体試験用ソースコード64を用いた対象画面のGUIプログラムの単体試験を実施する(ステップ680)。   Further, a unit test of the GUI program for the target screen using the unit test source code 64 is performed (step 680).

なお、図中には記載していないが、ステップ680で想定通りの動作が起こらない場合、ステップ650に戻り、それ以降の作業を再度実施する。本実施形態のGUIプログラム自動生成装置10が生成した自動生成ソースコード60は、独自処理の部分と、テンプレートを用いて生成された部分とが互いに独立しているので、修正内容が独自処理に影響しないものであれば、ステップ660およびステップ670を省略することができる。   Although not shown in the figure, if the expected operation does not occur in step 680, the process returns to step 650 and the subsequent operations are performed again. In the automatically generated source code 60 generated by the GUI program automatic generation apparatus 10 of the present embodiment, the part of the unique process and the part generated using the template are independent from each other. If not, step 660 and step 670 can be omitted.

また、ステップ670で想定通りの動作が起こらない場合は、ステップ660に戻りそれ以降の作業を再度実施するだけでよい。独自処理の部分に修正や設計変更が発生した場合、本実施形態では独自処理雛形ソースコード66に処理の実装を行ったソースコードの部分に対してのみ修正を実施すればよく、テンプレートから自動生成された他のソースコードに影響を及ぼすことがない。   If the expected operation does not occur in step 670, it is only necessary to return to step 660 and perform the subsequent work again. When correction or design change occurs in the original processing part, in this embodiment, it is only necessary to correct the source code part in which the processing is implemented in the original processing template source code 66, and it is automatically generated from the template. It does not affect other source code that has been generated.

上述した本発明の実施形態は、本発明の説明のための例示であり、本発明の範囲をそれらの実施形態にのみ限定する趣旨ではない。当業者は、本発明の要旨を逸脱することなしに、他の様々な態様で本発明を実施することができる。   The above-described embodiments of the present invention are examples for explaining the present invention, and are not intended to limit the scope of the present invention only to those embodiments. Those skilled in the art can implement the present invention in various other modes without departing from the spirit of the present invention.

10…GUIプログラム自動生成装置、11…メモリ、12…CPU、15…テンプレート選択部、16…ソースコード生成部、161…画面間シナリオ定義作成部、162…試験コード生成部、163…生成処理部、164…通信インタフェース特定部、17…独自処理有無判定部、18…雛形ソースコード生成部、19…設計書チェック部、20…画面設計書、21…画面項目設計書、22…シナリオ定義設計書、30…インタフェース設計書、300…テーブル、301…項目名、302…コントロール種別、303…タブオーダー、304…コンテンツ情報、305…配置情報、40…入力条件設計書、400…テーブル、401…コントロール種別、402…項目名、403…入力条件値、50…ソースコードテンプレートファイル、500…テーブル、501…アクション、502…コントロール種別、503…項目名、504…独自処理名、60…自動生成ソースコード、61…GUIレイアウトソースコード、62…画面間シナリオ定義ソースコード、63…通信インタフェース定義、64…単体試験用ソースコード、65…イベント動作定義ソースコード、66…独自処理雛形ソースコード、70…共通定義設計書、80…外部記憶装置
DESCRIPTION OF SYMBOLS 10 ... GUI program automatic generation apparatus, 11 ... Memory, 12 ... CPU, 15 ... Template selection part, 16 ... Source code generation part, 161 ... Inter-screen scenario definition creation part, 162 ... Test code generation part, 163 ... Generation process part DESCRIPTION OF SYMBOLS 164 ... Communication interface specific | specification part, 17 ... Original processing presence determination part, 18 ... Template source code generation part, 19 ... Design document check part, 20 ... Screen design document, 21 ... Screen item design document, 22 ... Scenario definition design document 30 ... Interface design document, 300 ... Table, 301 ... Item name, 302 ... Control type, 303 ... Tab order, 304 ... Content information, 305 ... Arrangement information, 40 ... Input condition design document, 400 ... Table, 401 ... Control Type 402 ... Item name 403 ... Input condition value 50 ... Source code template file , 500 ... Table, 501 ... Action, 502 ... Control type, 503 ... Item name, 504 ... Unique process name, 60 ... Automatically generated source code, 61 ... GUI layout source code, 62 ... Inter-screen scenario definition source code, 63 ... Communication interface definition, 64 ... Source code for unit test, 65 ... Event action definition source code, 66 ... Original processing template source code, 70 ... Common definition design document, 80 ... External storage device

Claims (8)

対象画面について画面構成および処理シナリオを規定した画面設計書に基づいて、グラフィックユーザインタフェースを備えたプログラムのソースコードを生成するプログラム生成装置であって、
前記画面設計書に規定された画面構成に基づいて、前記対象画面のプログラムのソースコードに使用するテンプレートを選択するテンプレート選択手段と、
前記画面設計書に規定された処理シナリオに基づいて、画面遷移のシナリオ定義を作成するシナリオ定義作成手段と、
前記テンプレートおよび前記シナリオ定義を用いて、前記対象画面の画面構成と前記対象画面への入力に対する動作とを実現する第1の自動生成ソースコードを生成する生成処理手段と、
個別に作成すべき独自処理があるか否か判定する独自処理有無判定手段と、
前記独自処理があれば、前記独自処理を示すソースコードの雛形である第2の自動生成ソースコードを、前記第1のソースコードから独立した形で生成する雛形ソースコード生成手段と、
を有するプログラム生成装置。
A program generation device that generates a source code of a program having a graphic user interface based on a screen design document that defines a screen configuration and a processing scenario for a target screen,
Template selection means for selecting a template to be used for the source code of the program of the target screen based on the screen configuration defined in the screen design document;
Scenario definition creating means for creating a screen transition scenario definition based on the processing scenario defined in the screen design document;
Generation processing means for generating a first automatically generated source code that realizes a screen configuration of the target screen and an operation for an input to the target screen using the template and the scenario definition;
A unique process presence / absence judging means for judging whether or not there is a unique process to be created individually;
If there is the unique process, a model source code generation unit that generates a second automatically generated source code that is a model of the source code indicating the unique process in a form independent of the first source code;
A program generation device having:
外部装置との通信に用いる通信インタフェースを特定する通信インタフェース特定手段を更に有し、
前記生成処理手段は、前記通信インタフェース特定手段で特定された前記通信インタフェースの情報を更に用いて、前記第1の自動生成ソースコードに含まれ前記通信インタフェースを実現する通信インタフェース定義を生成する、
請求項1に記載のプログラム生成装置。
A communication interface specifying means for specifying a communication interface used for communication with an external device;
The generation processing means further uses the information of the communication interface specified by the communication interface specifying means to generate a communication interface definition that realizes the communication interface included in the first automatically generated source code.
The program generation device according to claim 1.
前記対象画面に含まれる部品に対する試験のための入力を定めた試験コードを作成する試験コード生成手段を更に有し、
前記生成処理手段は、前記部品のそれぞれについての試験コードに基づいて、前記対象画面のソースコードに単体試験用の入力を与える単体試験用ソースコードを、更に生成する、請求項1に記載のプログラム生成装置。
A test code generating means for creating a test code that defines an input for testing a component included in the target screen;
2. The program according to claim 1, wherein the generation processing unit further generates unit test source code that gives an input for unit test to the source code of the target screen based on the test code for each of the components. 3. Generator.
前記単体試験用ソースコードは、前記第1の自動生成ソースコードに対して単体試験用の入力を与えるプログラムのソースコードである、請求項3に記載のプログラム生成装置。   4. The program generation apparatus according to claim 3, wherein the unit test source code is a source code of a program that gives an input for unit test to the first automatically generated source code. 対象画面について画面構成および処理シナリオを規定した画面設計書に基づいて、グラフィックユーザインタフェースを備えたプログラムのソースコードを生成するためのプログラム生成方法あって、
前記画面設計書に規定された画面構成に基づいて、前記対象画面のプログラムのソースコードに使用するテンプレートを選択し、
前記画面設計書に規定された処理シナリオに基づいて、画面遷移のシナリオ定義を作成し、
前記テンプレートおよび前記シナリオ定義を用いて、前記対象画面の画面構成と前記対象画面への入力に対する動作とを実現する第1の自動生成ソースコードを生成し、
個別に作成すべき独自処理があるか否か判定し、
前記独自処理があれば、前記独自処理を示すソースコードの雛形である第2の自動生成ソースコードを生成する、
を有するプログラム生成方法。
A program generation method for generating a source code of a program having a graphic user interface based on a screen design document that defines a screen configuration and a processing scenario for a target screen,
Based on the screen configuration specified in the screen design document, select a template to be used for the source code of the program of the target screen,
Create a screen transition scenario definition based on the processing scenario specified in the screen design document,
Using the template and the scenario definition, generate a first automatically generated source code that realizes a screen configuration of the target screen and an operation for input to the target screen,
Determine whether there is a unique process to be created individually,
If there is the unique process, a second automatically generated source code that is a template of the source code indicating the unique process is generated.
A program generation method comprising:
外部装置との通信に用いる通信インタフェースを特定し、
特定した前記通信インタフェースの情報を用いて、前記通信インタフェースを備えた前記第1の自動生成ソースコードを生成する、
請求項5に記載のプログラム生成方法。
Identify the communication interface used for communication with external devices,
Generating the first automatically generated source code provided with the communication interface using the information of the identified communication interface;
The program generation method according to claim 5.
更に、前記対象画面に含まれる部品に対する試験のための入力を定めた試験コードを作成し、
前記部品のそれぞれについての試験コードに基づいて、前記対象画面のソースコードに単体試験用の入力を与える単体試験用ソースコードを生成する、
請求項5に記載のプログラム生成方法。
Furthermore, create a test code that defines input for testing the parts included in the target screen,
Based on the test code for each of the components, generate unit test source code that gives unit test input to the source code of the target screen.
The program generation method according to claim 5.
前記単体試験用ソースコードは、前記第1の自動生成ソースコードに対して単体試験用の入力を与えるプログラムのソースコードである、請求項7に記載のプログラム生成方法。
The program generation method according to claim 7, wherein the unit test source code is a source code of a program that gives an input for unit test to the first automatically generated source code.
JP2014021178A 2014-02-06 2014-02-06 Program generating apparatus and method Active JP6097231B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014021178A JP6097231B2 (en) 2014-02-06 2014-02-06 Program generating apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014021178A JP6097231B2 (en) 2014-02-06 2014-02-06 Program generating apparatus and method

Publications (2)

Publication Number Publication Date
JP2015148925A true JP2015148925A (en) 2015-08-20
JP6097231B2 JP6097231B2 (en) 2017-03-15

Family

ID=53892240

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014021178A Active JP6097231B2 (en) 2014-02-06 2014-02-06 Program generating apparatus and method

Country Status (1)

Country Link
JP (1) JP6097231B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022143770A (en) * 2021-03-18 2022-10-03 三菱電機Itソリューションズ株式会社 System development method
CN117093205A (en) * 2023-08-24 2023-11-21 武汉人云智物科技有限公司 Software development full-flow low-code engineering construction method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001117761A (en) * 1999-10-21 2001-04-27 Nec Corp Method and device for manufacturing picture program and recording medium stored with picture program manufacturing program
JP2008299423A (en) * 2007-05-29 2008-12-11 Toshiba Corp Information processor and information processing program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001117761A (en) * 1999-10-21 2001-04-27 Nec Corp Method and device for manufacturing picture program and recording medium stored with picture program manufacturing program
JP2008299423A (en) * 2007-05-29 2008-12-11 Toshiba Corp Information processor and information processing program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022143770A (en) * 2021-03-18 2022-10-03 三菱電機Itソリューションズ株式会社 System development method
CN117093205A (en) * 2023-08-24 2023-11-21 武汉人云智物科技有限公司 Software development full-flow low-code engineering construction method
CN117093205B (en) * 2023-08-24 2024-02-20 武汉人云智物科技有限公司 Software development full-flow low-code engineering construction method

Also Published As

Publication number Publication date
JP6097231B2 (en) 2017-03-15

Similar Documents

Publication Publication Date Title
US9720811B2 (en) Unified model for visual component testing
US9076072B2 (en) System and method for web page rendering test automation suite
US8504981B2 (en) Application development support device, program, and recording medium
CN108762743B (en) Data table operation code generation method and device
US20150100946A1 (en) Using mock data to validate applications
US20190243750A1 (en) Test reuse exchange and automation system and method
CN112988605B (en) Method and device for realizing WEB application automatic test
US8984487B2 (en) Resource tracker
US10951486B2 (en) Terminal device, UI expansion method, and UI expansion program
WO2022000888A1 (en) Apparatus and method for executing customized artificial intelligence production line, and device and medium
US9477582B2 (en) Executable software specification generation
JP4626675B2 (en) Firmware providing method, communication system and service server using communication network
JP6097231B2 (en) Program generating apparatus and method
US20210004524A1 (en) Catalog file creation assistance device, catalog file creation assistance method, and catalog file creation assistance program
US10061686B2 (en) Method, electronic apparatus, system, and storage medium for automated testing of application user interface
WO2022180704A1 (en) Display control device, display control method, and display control program
JP4977681B2 (en) Data pattern / test data generation / storage method and system
JP5119765B2 (en) Specification creation support apparatus and support method
JP2007164353A (en) Command line generation system, method, and program
CN108170557B (en) Method and apparatus for outputting information
JP2017054217A (en) Test support apparatus, test support method, and test support program
JP2009075788A (en) Software development support device
JP2007115155A (en) Program structure management device and program structure management program
US20220197477A1 (en) Information processing apparatus and non-transitory computer readable medium storing program
JP2012150740A (en) Program generating device and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160225

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170131

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170207

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170217

R150 Certificate of patent or registration of utility model

Ref document number: 6097231

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150