JP5651050B2 - Data generation apparatus and data generation program - Google Patents

Data generation apparatus and data generation program Download PDF

Info

Publication number
JP5651050B2
JP5651050B2 JP2011050498A JP2011050498A JP5651050B2 JP 5651050 B2 JP5651050 B2 JP 5651050B2 JP 2011050498 A JP2011050498 A JP 2011050498A JP 2011050498 A JP2011050498 A JP 2011050498A JP 5651050 B2 JP5651050 B2 JP 5651050B2
Authority
JP
Japan
Prior art keywords
data
test
information
test data
item
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.)
Expired - Fee Related
Application number
JP2011050498A
Other languages
Japanese (ja)
Other versions
JP2012190063A (en
Inventor
加藤 寛之
寛之 加藤
圭司 佐藤
圭司 佐藤
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.)
Fujitsu Marketing Ltd
Original Assignee
Fujitsu Marketing 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 Fujitsu Marketing Ltd filed Critical Fujitsu Marketing Ltd
Priority to JP2011050498A priority Critical patent/JP5651050B2/en
Publication of JP2012190063A publication Critical patent/JP2012190063A/en
Application granted granted Critical
Publication of JP5651050B2 publication Critical patent/JP5651050B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Description

この発明は、データ生成装置及びデータ生成プログラムに関する。   The present invention relates to a data generation device and a data generation program.

従来、WebブラウザやGUI(Graphical User Interface)を利用した業務アプリケーションプログラムの開発においては、開発した業務アプリケーションプログラムに係るテストが行われる。このようなテストでは、テストを実行する担当者が、テキストエディタ(text editor)などを用いてテスト内容に応じたテストデータを作成し、作成したテストデータを用いて各種テストが行われる。   Conventionally, in the development of a business application program using a Web browser or a GUI (Graphical User Interface), a test related to the developed business application program is performed. In such a test, a person who executes the test creates test data corresponding to the test content using a text editor or the like, and various tests are performed using the created test data.

例えば、担当者は、業務アプリケーションの画面から入力する入力値のテストデータを作成し、作成した入力値のテストデータを用いて、業務アプリケーションが入力値に対して想定通りに動作するか否かをテストする。また、担当者は、業務アプリケーションの画面に表示される表示値のテストデータを作成し、作成した表示値のテストデータを用いて、表示される値が想定通りであるか否かをテストする。また、担当者は、大量のテストデータを用いて、業務アプリケーションの処理が遅滞することなく実行されるか否かをテストする。   For example, the person in charge creates test data for input values to be entered from the business application screen, and uses the created test data for input values to determine whether the business application operates as expected with respect to the input values. Testing. Further, the person in charge creates display value test data displayed on the screen of the business application, and tests whether the displayed value is as expected using the created display value test data. The person in charge uses a large amount of test data to test whether the processing of the business application is executed without delay.

ここで、業務アプリケーションプログラムのテストに用いられるテストデータを作成するためのいくつかの技術が知られている。例えば、テストデータを作成するための技術としては、既存のテストデータに類似したテストデータを作成する技術が知られている。また、例えば、既存のデータベースからデータの定義情報やキー情報を元に、データの参照関係の整合性を維持したテストデータを作成する技術が知られている。また、例えば、データベースに記憶されたテーブル間の対応関係を元に、データの参照関係の整合性を維持したテストデータを作成する技術が知られている。   Here, several techniques for creating test data used for testing business application programs are known. For example, a technique for creating test data similar to existing test data is known as a technique for creating test data. In addition, for example, a technique for creating test data that maintains the consistency of the data reference relationship based on data definition information and key information from an existing database is known. In addition, for example, a technique for creating test data that maintains the consistency of the data reference relationship based on the correspondence between tables stored in a database is known.

特開2010−140166号公報JP 2010-140166 A 特開2008−226056号公報JP 2008-226056 A 特開2009−99126号公報JP 2009-99126 A

しかしながら、上述した従来技術では、データ間の整合性が維持されたテストデータを容易に作成することができないという課題があった。例えば、上述した従来技術では、既存のテストデータとは類似しないテストデータを作成することが困難であり、新たな参照関係の整合性を維持したテストデータを容易に作成することができない。また、例えば、上述した従来技術では、データに関する定義情報やキー情報、或いはテーブル間の対応関係に関する情報がない場合にはテストデータを作成することができず、データ間の参照関係の整合性が維持されたテストデータを容易に作成することができない。   However, the above-described conventional technique has a problem that test data in which consistency between data is maintained cannot be easily created. For example, in the conventional technology described above, it is difficult to create test data that is not similar to existing test data, and it is not possible to easily create test data that maintains the consistency of new reference relationships. In addition, for example, in the above-described conventional technology, test data cannot be created when there is no definition information or key information about data, or information about correspondence between tables, and the consistency of the reference relationship between the data is reduced. Maintained test data cannot be easily created.

そこで、本開示の技術は、上述した従来技術の問題に鑑みて、データ間の整合性が維持されたテストデータを容易に作成することを可能にするデータ生成装置及びデータ生成プログラムを提供することを目的とする。   Accordingly, in view of the above-described problems of the conventional technology, the technology of the present disclosure provides a data generation device and a data generation program that can easily create test data in which consistency between data is maintained. With the goal.

上述した課題を解決し、目的を達成するため、開示の装置は、データ情報取得部とデータ生成部とを有する。データ情報取得部は、テスト対象の業務アプリケーションによって用いられるデータの項目ごとに、当該データの属性を示すデータ項目の情報と、前記業務アプリケーションによって用いられるデータに関するデータ間の参照関係を示す参照情報を取得する。データ生成部は、前記データの項目ごとに、前記データ情報取得部によって取得されたデータ項目の情報及び参照情報の参照関係のうち少なくとも一方に応じたテストデータを生成する。   In order to solve the above-described problems and achieve the object, the disclosed apparatus includes a data information acquisition unit and a data generation unit. For each item of data used by the business application to be tested, the data information acquisition unit includes information on a data item indicating the attribute of the data and reference information indicating a reference relationship between data regarding the data used by the business application. get. A data generation part produces | generates the test data according to at least one among the information relation of the data item acquired by the said data information acquisition part, and the reference information for every item of the said data.

開示の装置は、データ間の整合性が維持されたテストデータを容易に作成することを可能にする。   The disclosed apparatus makes it possible to easily create test data in which consistency between data is maintained.

図1は、実施例1に係るテストデータ生成装置の構成の一例を示す図である。FIG. 1 is a diagram illustrating an example of the configuration of the test data generation apparatus according to the first embodiment. 図2は、実施例1に係る表示装置によって表示出力されるGUIの第1の例を示す図である。FIG. 2 is a diagram illustrating a first example of a GUI displayed and output by the display device according to the first embodiment. 図3は、実施例1に係るデータベース情報取得部によって取得される情報を説明するための図である。FIG. 3 is a diagram for explaining information acquired by the database information acquisition unit according to the first embodiment. 図4は、実施例1に係るデータ種別の一例を示す図である。FIG. 4 is a diagram illustrating an example of data types according to the first embodiment. 図5Aは、実施例1に係る参照情報の一例を示す図である。FIG. 5A is a diagram illustrating an example of reference information according to the first embodiment. 図5Bは、実施例1に係るテストデータ構造作成制御部による処理の一例を説明するための図である。FIG. 5B is a schematic diagram illustrating an example of processing performed by the test data structure creation control unit according to the first embodiment. 図5Cは、実施例1に係るテストデータ構造入力受付部によって受付けられるSQL文の一例を示す図である。FIG. 5C is a diagram illustrating an example of an SQL sentence received by the test data structure input receiving unit according to the first embodiment. 図6は、実施例1に係るテストデータ生成部によって生成されるテストデータの第1の例を示す図である。FIG. 6 is a diagram illustrating a first example of test data generated by the test data generation unit according to the first embodiment. 図7は、実施例1に係る業務アプリケーションの画面の一例を説明するための図である。FIG. 7 is a schematic diagram illustrating an example of a business application screen according to the first embodiment. 図8は、実施例1に係る画面処理のソースコードの一例を示す図である。FIG. 8 is a diagram illustrating an example of the source code of the screen processing according to the first embodiment. 図9は、実施例1に係る入力チェックの外部定義の一例を示す図である。FIG. 9 is a diagram illustrating an example of the external definition of the input check according to the first embodiment. 図10は、実施例1に係るフレームワークのチェック定義の一例を示す図である。FIG. 10 is a diagram illustrating an example of a framework check definition according to the first embodiment. 図11は、実施例1に係る表示装置によって表示出力されるGUIの第2の例を示す図である。FIG. 11 is a diagram illustrating a second example of a GUI displayed and output by the display device according to the first embodiment. 図12Aは、実施例1に係るテストデータ生成部によって生成されるテストデータの第2の例を示す図である。FIG. 12A is a diagram illustrating a second example of test data generated by the test data generation unit according to the first embodiment. 図12Bは、実施例1に係るテストデータ生成部によって生成されるテストデータの第3の例を示す図である。FIG. 12B is a diagram illustrating a third example of the test data generated by the test data generation unit according to the first embodiment. 図13は実施例1に係るテストデータ生成装置によって表示されるテストデータ検索画面の一例を示す図である。FIG. 13 is a diagram illustrating an example of a test data search screen displayed by the test data generation apparatus according to the first embodiment. 図14は、実施例1に係るテストデータ生成装置によるデータベースからのデータ種別の取得処理の手順を説明するためのフローチャートである。FIG. 14 is a flowchart for explaining a procedure of data type acquisition processing from the database by the test data generation apparatus according to the first embodiment. 図15は、実施例1に係るテストデータ生成装置によるデータ項目の参照関係の決定処理の手順を説明するためのフローチャートである。FIG. 15 is a flowchart for explaining the procedure of the data item reference relationship determination process performed by the test data generation apparatus according to the first embodiment. 図16は、実施例1に係るテストデータ生成装置によるテストデータ生成処理の第1の手順を説明するためのフローチャートである。FIG. 16 is a flowchart for explaining a first procedure of test data generation processing by the test data generation apparatus according to the first embodiment. 図17は、実施例1に係るテストデータ生成装置によるテストデータ生成処理の第2の手順として関連データの作成を説明するためのフローチャートである。FIG. 17 is a flowchart for explaining the creation of related data as the second procedure of the test data generation process performed by the test data generation apparatus according to the first embodiment. 図18は、実施例1に係るテストデータ生成装置によるテストデータ生成処理の第3の手順を説明するためのフローチャートである。FIG. 18 is a flowchart for explaining a third procedure of the test data generation process performed by the test data generation apparatus according to the first embodiment. 図19は、実施例1に係るテストデータ生成装置による画面処理実装のソースコードからのデータ種別の取得処理の手順を説明するためのフローチャートである。FIG. 19 is a flowchart for explaining the procedure of the data type acquisition process from the source code for the screen processing implemented by the test data generation apparatus according to the first embodiment. 図20は、実施例1に係るテストデータ生成装置によるフレームワーク入力チェック定義からのデータ項目ごとの情報の取得処理の手順を説明するためのフローチャートである。FIG. 20 is a flowchart for explaining the procedure for acquiring information for each data item from the framework input check definition by the test data generation apparatus according to the first embodiment. 図21は、実施例1に係るテストデータ生成装置によるテストデータ生成処理の第4の手順を説明するためのフローチャートである。FIG. 21 is a flowchart for explaining a fourth procedure of the test data generation process performed by the test data generation apparatus according to the first embodiment. 図22は、実施例2に係るデータ生成プログラムを実行するコンピュータを説明するための図である。FIG. 22 is a diagram for explaining a computer that executes a data generation program according to the second embodiment.

以下に添付図面を参照して、本願の開示するデータ生成装置及びデータ生成プログラムの実施例を詳細に説明する。なお、本願の開示するデータ生成装置及びデータ生成プログラムは、以下の実施例により限定されるものではない。   Exemplary embodiments of a data generation device and a data generation program disclosed in the present application will be described below in detail with reference to the accompanying drawings. Note that the data generation device and the data generation program disclosed in the present application are not limited to the following embodiments.

実施例1に係るテストデータ生成装置は、業務アプリケーションの開発に際して実行されるプログラムテストに用いられるテストデータを生成する。具体的には、実施例1に係るテストデータ生成装置は、テスト対象の業務アプリケーションによって用いられるデータの項目ごとに、当該データの属性を示すデータ項目の情報を取得する。そして、実施例1に係るテストデータ生成装置は、業務アプリケーションによって用いられるデータに関するデータ間の参照関係を示す参照情報を取得する。そして、実施例1に係るテストデータ生成装置は、データの項目ごとに、データの属性及び参照情報の参照関係のうち少なくとも一方に応じたテストデータを生成する。   The test data generating apparatus according to the first embodiment generates test data used for a program test executed when developing a business application. Specifically, the test data generation device according to the first embodiment acquires data item information indicating an attribute of the data for each item of data used by the business application to be tested. Then, the test data generation apparatus according to the first embodiment acquires reference information indicating a reference relationship between data regarding data used by the business application. The test data generation device according to the first embodiment generates test data corresponding to at least one of the data attribute and the reference relationship of the reference information for each data item.

例えば、実施例1に係るテストデータ生成装置は、データベースの定義又は画面処理を実装するソースコードから、テストデータを生成するデータ項目ごとにデータの属性を示すデータ項目の情報を取得する。そして、実施例1に係るテストデータ生成装置は、データ項目ごとに、テーブルの対応関係、或いは、ユーザによって設定されたSQL(Structured Query Language)文からデータ間の参照関係を取得する。そして、実施例1に係るテストデータ生成装置は、データ項目ごとに、データの属性に応じたテストデータや、参照関係に応じたテストデータなどを生成する。従って、実施例1に係るテストデータ生成装置は、例えば、既存のテストデータとは類似しないテストデータを作成することができる。また、実施例1に係るテストデータ生成装置は、データに関する定義情報やキー情報、或いはテーブル間の対応関係に関する情報がない場合であっても、SQL文を用いることでテストデータを作成することができる。その結果、実施例1に係るテストデータ生成装置は、データ間の整合性が維持されたテストデータを容易に作成することを可能にする。   For example, the test data generation apparatus according to the first embodiment acquires data item information indicating data attributes for each data item for generating test data from a source code that implements database definition or screen processing. The test data generation apparatus according to the first embodiment acquires a table correspondence or a reference relationship between data from an SQL (Structured Query Language) sentence set by the user for each data item. Then, the test data generation apparatus according to the first embodiment generates test data corresponding to the data attribute, test data corresponding to the reference relationship, and the like for each data item. Therefore, the test data generation apparatus according to the first embodiment can create test data that is not similar to existing test data, for example. In addition, the test data generation apparatus according to the first embodiment can create test data by using an SQL statement even when there is no definition information or key information regarding data, or information regarding correspondence between tables. it can. As a result, the test data generation apparatus according to the first embodiment can easily create test data in which consistency between data is maintained.

ここで、まず、実施例1に係るテストデータ生成装置の構成を説明する。図1は、実施例1に係るテストデータ生成装置100の構成の一例を示す図である。図1に示すように、テストデータ生成装置100は、入力装置110と、表示装置120と、テストデータ構造作成制御部130と、データ情報取得部140と、テストデータ構造入力受付部150と、テストデータ作成制御部160と、データベースデータ取得部170と、テストデータ生成部180と、関連データ生成部190とを有する。そして、テストデータ生成装置100は、図1に示すように、業務アプリケーションが実行される端末200及び各種データが記憶されたデータベース300に接続される。そして、テストデータ生成装置100は、図1に示すように、データベース300によって記憶された各種データ及び端末200によって記憶された業務アプリケーションのソースファイル/データの定義ファイル201などを用いて、負荷テスト用テストデータ181、表示テスト用テストデータ182、入力テスト用テストデータ183及び関連データ191などを生成する。   First, the configuration of the test data generation apparatus according to the first embodiment will be described. FIG. 1 is a diagram illustrating an example of the configuration of the test data generation apparatus 100 according to the first embodiment. As shown in FIG. 1, the test data generation device 100 includes an input device 110, a display device 120, a test data structure creation control unit 130, a data information acquisition unit 140, a test data structure input reception unit 150, a test A data creation control unit 160, a database data acquisition unit 170, a test data generation unit 180, and a related data generation unit 190 are included. As shown in FIG. 1, the test data generation apparatus 100 is connected to a terminal 200 on which a business application is executed and a database 300 in which various data are stored. As shown in FIG. 1, the test data generation apparatus 100 uses a variety of data stored in the database 300 and a business application source file / data definition file 201 stored in the terminal 200 and the like for load testing. Test data 181, display test test data 182, input test test data 183, related data 191, and the like are generated.

端末200は、例えば、開発フレームワークを用いて作成された業務アプリケーションのソースファイル及び開発フレームワークの定義ファイルなどを記憶する。そして、端末200は、記憶した業務アプリケーションに係る各種処理を実行する。データベース300は、例えば、端末200によって実行される業務アプリケーションに用いられる各種データ及びテーブル間の参照関係などを示すリレーショナルデータベースなどを記憶する。   The terminal 200 stores, for example, a business application source file created using a development framework and a development framework definition file. Then, the terminal 200 executes various processes related to the stored business application. The database 300 stores, for example, a relational database indicating various data used in a business application executed by the terminal 200 and a reference relationship between tables.

負荷テスト用テストデータ181は、業務アプリケーションの処理が遅滞することなく実行されるか否かをテストするためのテストデータである。表示テスト用テストデータ182は、業務アプリケーションの画面に表示される値が想定通りであるか否かをテストするためのテストデータである。入力テスト用テストデータ183は、業務アプリケーションの画面から入力された入力値に対して業務アプリケーションが想定通りに動作するか否かをテストするためのテストデータである。なお、関連データ191については後述する。   The load test test data 181 is test data for testing whether or not business application processing is executed without delay. The display test test data 182 is test data for testing whether or not the value displayed on the screen of the business application is as expected. The input test test data 183 is test data for testing whether or not the business application operates as expected with respect to an input value input from the screen of the business application. The related data 191 will be described later.

入力装置110は、例えば、キーボード、マウスなどであり、ユーザによる種々の情報の入力処理を受付ける。一例を挙げると、入力装置110は、テスト内容を示す情報や、テストデータを生成する際の参照先を示すSQL文などの入力処理を受付ける。表示装置120は、例えば、ディスプレイなどであり、後述するテストデータ構造作成制御部130による制御の元、ユーザに対して処理結果を表示出力する。一例を挙げると、表示装置120は、ユーザに対してGUIを介してテストデータの生成過程を表示出力する。   The input device 110 is, for example, a keyboard, a mouse, and the like, and accepts various information input processes by the user. For example, the input device 110 accepts input processing such as information indicating test contents and an SQL sentence indicating a reference destination when generating test data. The display device 120 is, for example, a display, and displays and outputs the processing result to the user under the control of the test data structure creation control unit 130 described later. For example, the display device 120 displays and outputs a test data generation process to the user via the GUI.

図2は、実施例1に係る表示装置120によって表示出力されるGUIの第1の例を示す図である。例えば、表示装置120は、図2に示すように、「PT(Program Test)データ生成ツール」ウィンドウを表示出力する。表示装置120によって表示出力される「PT(Program Test)データ生成ツール」ウィンドウは、図2に示すように、「生成データ設定」タブと「DB接続設定」タブとを有する。「生成データ設定」タブは、テストデータを生成する際の設定事項が表示されるタブであり、テストデータの生成対象となるデータに関する情報が表示される。   FIG. 2 is a diagram illustrating a first example of a GUI displayed and output by the display device 120 according to the first embodiment. For example, as shown in FIG. 2, the display device 120 displays and outputs a “PT (Program Test) data generation tool” window. As shown in FIG. 2, the “PT (Program Test) data generation tool” window displayed and output by the display device 120 has a “generation data setting” tab and a “DB connection setting” tab. The “generation data setting” tab is a tab on which setting items for generating test data are displayed, and information on data for which test data is to be generated is displayed.

「生成データ設定」タブは、図2に示すように、「生成対象」、「テーブル名」、「日本語名」及び「生成データ件数」が対応付けられた上側のウィンドウと、「カラムNo」、「項目名」、「タイプ」、「桁数」、「日本語名」、「データ生成方法」、「データ桁数」及び「データ生成パターン」が対応付けられた下側のウィンドウとを有する。上側のウィンドウにおいては、テストデータの生成対象となるデータが含まれるテーブルに関する情報が表示される。例えば、上側のウィンドウにおいては、図2に示すように、「テーブル名:M_SHAIN、日本語名:社員マスタ(共通)」が表示される。また、上側のウィンドウにおける「生成対象」は、ユーザがテストデータの生成対象となるテーブルを選択する領域である。また、「生成データ件数」は、生成するテストデータの件数がユーザによって入力される領域である。   As shown in FIG. 2, the “generation data setting” tab includes an upper window in which “generation target”, “table name”, “Japanese name”, and “number of generated data items” are associated, and “column number”. , “Item Name”, “Type”, “Number of Digits”, “Japanese Name”, “Data Generation Method”, “Data Digits” and “Data Generation Pattern” are associated with the lower window . In the upper window, information regarding a table including data to be generated as test data is displayed. For example, in the upper window, as shown in FIG. 2, “table name: M_SHAIN, Japanese name: employee master (common)” is displayed. The “generation target” in the upper window is an area where the user selects a table for which test data is to be generated. The “number of generated data items” is an area where the number of test data items to be generated is input by the user.

下側のウィンドウにおいては、上側のウィンドウにおいて選択されたテーブルに含まれるデータの項目ごとの情報が表示される。例えば、下側のウィンドウにおいては、図2に示すように、「カラムNo:1、項目名:SOSHIKIZU_CD、タイプ:varchar、桁数:6、日本語名:組織図コード、データ生成方法:全角日本語、データ桁数:6」などが表示される。上記した情報は、上側のウィンドウの「テーブル名:M_SEDAI、日本語名:世代管理マスタ(共通)」がユーザによって選択された場合に、選択されたテーブルに含まれるデータの項目について下側のウィンドウに表示される。なお、下側のウィンドウにおける項目ごとの情報の詳細については、後述する。また、「DB接続設定」タブは、テストデータ生成装置100とデータベース300との接続設定が表示されるタブである。   In the lower window, information for each item of data included in the table selected in the upper window is displayed. For example, in the lower window, as shown in FIG. 2, “Column No. 1, Item name: SOSHIKIZU_CD, Type: varchar, Number of digits: 6, Japanese name: Organization chart code, Data generation method: Full-width Japan “Word, number of data digits: 6”, etc. are displayed. The above-described information is obtained when the user selects “table name: M_SEDAI, Japanese name: generation management master (common)” in the upper window, and the lower window for the items of data included in the selected table. Is displayed. Details of information for each item in the lower window will be described later. The “DB connection setting” tab is a tab on which connection settings between the test data generating apparatus 100 and the database 300 are displayed.

図1に戻って、テストデータ構造作成制御部130は、作成するテストデータの構造決定に係る各種処理を制御する。具体的には、テストデータ構造作成制御部130は、まず、ユーザによって指定されたテスト内容に基づいて、データの項目ごとの情報の取得先を選択する。より具体的には、テストデータ構造作成制御部130は、入力装置110を介して入力されたテスト内容の情報に基づいて、データの項目ごとの情報の取得先としてデータベース300又は端末200のどちらか一方を選択する。   Returning to FIG. 1, the test data structure creation control unit 130 controls various processes related to the structure determination of the test data to be created. Specifically, the test data structure creation control unit 130 first selects an information acquisition destination for each data item based on the test content specified by the user. More specifically, the test data structure creation control unit 130 selects either the database 300 or the terminal 200 as an acquisition source of information for each data item based on the test content information input via the input device 110. Select one.

例えば、テストデータ構造作成制御部130は、テスト内容が負荷テストである旨の情報を受付けると、取得先としてデータベース300を選択し、データベース300よって記憶されたテーブルの情報からデータの項目ごとの情報を取得するように後述するデータ情報取得部140のデータベース情報取得部141を制御する。また、テストデータ構造作成制御部130は、テスト内容が表示テスト又は入力テストである旨の情報を受付けると、取得先として端末200を選択し、端末200よって記憶された業務アプリケーションのソースコード又はフレームワークの定義ファイルからデータの項目ごとの情報を取得するように後述するデータ情報取得部140の画面情報取得部142を制御する。   For example, when the test data structure creation control unit 130 receives information indicating that the test content is a load test, the test data structure creation control unit 130 selects the database 300 as an acquisition source, and stores information for each data item from the table information stored by the database 300. The database information acquisition unit 141 of the data information acquisition unit 140, which will be described later, is controlled so as to acquire. When the test data structure creation control unit 130 receives information indicating that the test content is a display test or an input test, the test data structure creation control unit 130 selects the terminal 200 as an acquisition destination and stores the source code or frame of the business application stored by the terminal 200 The screen information acquisition unit 142 of the data information acquisition unit 140 (to be described later) is controlled so as to acquire information for each data item from the work definition file.

そして、テストデータ構造作成制御部130は、データ情報取得部140のデータベース情報取得部141又は画面情報取得部142によって取得されたデータの項目ごとの情報を反映させた情報を内部メモリに記憶して、記憶した情報に基づいてウィンドウを表示装置120に表示させるように制御する。以下では、まず、データベース300からデータ項目の情報を取得して、負荷テスト用テストデータを生成する場合について説明した後に、端末200からデータ項目の情報を取得して、入力テスト用テストデータを生成する場合について説明する。   Then, the test data structure creation control unit 130 stores in the internal memory information reflecting the information for each item of data acquired by the database information acquisition unit 141 or the screen information acquisition unit 142 of the data information acquisition unit 140. Then, control is performed so that the window is displayed on the display device 120 based on the stored information. In the following, first, the case where data item information is acquired from the database 300 and load test test data is generated will be described, and then data item information is acquired from the terminal 200 to generate input test test data. The case where it does is demonstrated.

データ情報取得部140は、図1に示すように、データベース情報取得部141と、画面情報取得部142とを有し、テスト対象の業務アプリケーションによって用いられるデータの項目ごとに、当該データの属性を示すデータ項目の情報と、前記業務アプリケーションによって用いられるデータに関するデータ間の参照関係を示す参照情報を取得する。データベース情報取得部141は、テスト対象の業務アプリケーションによって用いられるデータの項目ごとに、当該データの属性を示すデータ項目の情報を取得する。具体的には、データベース情報取得部141は、テストデータ構造作成制御部130の制御の元、テスト対象の業務アプリケーションによって用いられるデータに関する情報を記憶するデータベース300から、当該データのテーブル情報を取得する。そして、データベース情報取得部141は、テストデータの生成対象となるテーブルがユーザによって選択されると、選択されたテーブルに含まれるデータの項目ごとの情報を取得する。   As shown in FIG. 1, the data information acquisition unit 140 includes a database information acquisition unit 141 and a screen information acquisition unit 142. For each data item used by the business application to be tested, an attribute of the data is acquired. The information of the data item to be displayed and the reference information indicating the reference relationship between the data related to the data used by the business application are acquired. The database information acquisition unit 141 acquires, for each data item used by the test target business application, data item information indicating the attribute of the data. Specifically, the database information acquisition unit 141 acquires table information of the data from the database 300 that stores information related to data used by the test target business application under the control of the test data structure creation control unit 130. . Then, when a table that is a test data generation target is selected by the user, the database information acquisition unit 141 acquires information for each item of data included in the selected table.

図3は、実施例1に係るデータベース情報取得部141によって取得される情報を説明するための図である。図3においては、データベース情報取得部141によってデータの項目ごとの情報が取得された後の状態について示す。例えば、データベース情報取得部141は、まず、図3の領域(2)に示す「テーブル名:M_SHAIN、日本語名:社員マスタ(共通)」などのテーブル情報をデータベース300から取得する。そして、図3の領域(1)に示すように、ユーザによってテーブル情報から「テーブル名:M_SEDAI、日本語名:世代管理マスタ(共通)」のテーブルが選択されると、データベース情報取得部141は、図3の領域(3)及び(4)に示すように、選択された「テーブル名:M_SEDAI、日本語名:世代管理マスタ(共通)」のテーブルに含まれるデータの項目ごとに、当該データの属性を示すデータ項目の情報をデータベース300から取得する。例えば、データベース情報取得部141は、「項目名:SOSHIKIZU_CD」のデータ種別「タイプ:varchar、桁数:6、日本語名:組織図コード」を取得する。さらに、データベース情報取得部141は、項目ごとにデータの参照関係をデータベース300から取得する。図3の領域(5)にプルダウン方式で示されたデータ生成方法は、データベース情報取得部141によって取得されたデータ項目の情報及びデータの参照関係に基づいて、テストデータ構造作成制御部130によって表示する内容が決定される。また、図3の領域(6)に示すデータ生成パターンは、図3の領域(5)に示すプルダウンからユーザによって選択されたデータ生成方法に基づいて、参照先の情報が表示される。   FIG. 3 is a diagram for explaining information acquired by the database information acquisition unit 141 according to the first embodiment. FIG. 3 shows a state after information for each data item is acquired by the database information acquisition unit 141. For example, the database information acquisition unit 141 first acquires table information such as “table name: M_SHAIN, Japanese name: employee master (common)” shown in the area (2) of FIG. Then, as shown in the area (1) of FIG. 3, when the table “table name: M_SEDAI, Japanese name: generation management master (common)” is selected by the user from the table information, the database information acquisition unit 141 3, for each data item included in the selected table of “table name: M_SEDAI, Japanese name: generation management master (common)”, as shown in areas (3) and (4) of FIG. The information of the data item indicating the attribute is acquired from the database 300. For example, the database information acquisition unit 141 acquires the data type “type: varchar, number of digits: 6, Japanese name: organization chart code” of “item name: SOSHIKIZU_CD”. Furthermore, the database information acquisition unit 141 acquires a data reference relationship from the database 300 for each item. The data generation method shown in the pull-down method in the area (5) of FIG. 3 is displayed by the test data structure creation control unit 130 based on the data item information acquired by the database information acquisition unit 141 and the data reference relationship. The content to be determined is determined. In the data generation pattern shown in the area (6) of FIG. 3, reference destination information is displayed based on the data generation method selected by the user from the pull-down shown in the area (5) of FIG.

ここで、図3の領域(4)〜(6)に設定される内容の詳細について説明する。図3の領域(4)に示す「タイプ」とは、データ項目のタイプを意味し、例えば、数値、文字、日付などがある。すなわち、図3の「タイプ」は、各項目のデータがどのような文字列で作成されるかを示したものであり、例えば、「varchar」は、データが日本語などの文字によって生成されることを示す。また、図3の「int」は、データが数値によって生成されることを示し、「datetime」はデータが日付形式によって生成されることを示す。次に「桁数」とは、データ項目の最大の桁数を意味する。例えば、桁数「8」は8桁以下のデータで作成される文字列であることを示す。次に「日本語名」とはデータ項目の名称を日本語で表した名称を示す。これらの文字列の情報は、データベース300に記憶される定義情報から取得される。   Here, details of contents set in the areas (4) to (6) of FIG. 3 will be described. The “type” shown in the area (4) of FIG. 3 means the type of the data item, and includes, for example, a numerical value, a character, and a date. That is, “Type” in FIG. 3 indicates what character string the data of each item is created. For example, “varchar” is generated by characters such as Japanese. It shows that. Further, “int” in FIG. 3 indicates that data is generated by a numerical value, and “datetime” indicates that data is generated by a date format. “Number of digits” means the maximum number of digits of the data item. For example, the number of digits “8” indicates a character string created with data of 8 digits or less. Next, “Japanese name” indicates the name of the data item in Japanese. Information on these character strings is acquired from definition information stored in the database 300.

図3の領域(5)に示すデータ生成方法は、タイプの情報及びデータベース情報取得部141によって取得された情報に基づいて、すなわち、図3の領域(4)に示された情報に基づいて、テストデータ構造作成制御部130によってデータ種別が設定される。図4は、実施例1に係るデータ種別の一例を示す図である。例えば、データ生成方法には、データ項目の情報に基づいて、図4に示されるデータ種別の何れかが自動選択されて設定される。例えば、「タイプ」が「datatime」で、桁数が「8」の場合には、データ種別として「日付型_日付(YYYYMMDD形式)」が選択される。別の例として、「タイプ」が「varchar」で、桁数が「6」の場合、データ種別として「文字型_半角&数字」が選択される。ここで、データ種別を選択する基準として、データタイプの日本語名がどの様な文字列で表現されているかによって判断してもよい。例えば、データタイプの日本語名が「〜コード」の文字列で表される場合は、必要とされるテストデータが数値コードであると判断して「文字型_半角&数字」を選択する。   The data generation method shown in the area (5) of FIG. 3 is based on the type information and the information acquired by the database information acquisition unit 141, that is, based on the information shown in the area (4) of FIG. The data type is set by the test data structure creation control unit 130. FIG. 4 is a diagram illustrating an example of data types according to the first embodiment. For example, in the data generation method, one of the data types shown in FIG. 4 is automatically selected and set based on the data item information. For example, when “type” is “datatime” and the number of digits is “8”, “date type_date (YYYYMMDD format)” is selected as the data type. As another example, when “type” is “varchar” and the number of digits is “6”, “character type_half-width & number” is selected as the data type. Here, as a criterion for selecting the data type, it may be determined depending on what character string represents the Japanese name of the data type. For example, when the Japanese name of the data type is represented by a character string of “˜code”, it is determined that the required test data is a numerical code, and “character type_half-width & number” is selected.

一方、参照関係を示す参照情報がデータベース300に記憶されている場合には、テストデータ構造作成制御部130は、以下に記載するように、データ生成方法とデータ生成パターンとを設定する。図5Aは、実施例1に係る参照情報の一例を示す図である。図5Aにおいては、主キー(PK:Primary Key)と外部キー(FK:Foreign Key)とにより参照関係が示された参照情報を示す。例えば、図5Aに示す商品データを対象としたテストデータを生成する際に、「項目:カテゴリコード」のデータは、参照先のカテゴリデータにおけるカテゴリコードを利用するようにデータ生成方法及びデータ生成パターンが設定される。   On the other hand, when the reference information indicating the reference relationship is stored in the database 300, the test data structure creation control unit 130 sets a data generation method and a data generation pattern as described below. FIG. 5A is a diagram illustrating an example of reference information according to the first embodiment. FIG. 5A shows reference information in which a reference relationship is indicated by a primary key (PK) and a foreign key (FK). For example, when generating test data for the product data shown in FIG. 5A, the data of “item: category code” is a data generation method and data generation pattern so that the category code in the category data of the reference destination is used. Is set.

図5Bは、実施例1に係るテストデータ構造作成制御部130による処理の一例を説明するための図である。図5においては、「項目:カテゴリコード(CATEGORY_CD)」を対象とした場合のウィンドウの一部を示す。図5Aに示す参照情報がデータベース300に記憶されており、データベース情報取得部141によって取得されると、テストデータ構造作成制御部130は、図5Bに示すように、データ生成方法を「外部参照」と設定する。そして、テストデータ構造作成制御部130は、図5Bに示すように、カテゴリデータのカテゴリコードが参照先である旨の情報である「M_CATEGORY.CATEGORY_CD」をデータ生成パターンに設定する。また、データ生成方法としてユーザの選択により「ランダム生成」又は「SQL設定」を設定することも可能である。データ生成方法が「ランダム生成」の場合は、データタイプの「タイプ」及び「桁数」に整合性が合う形式にデータを生成する方法となる。データ生成方法が「SQL設定」の場合は、データ生成パターンにSQL文を設定して、設定されたSQLに応じてデータを生成する方法となる。この場合、SQL文はデータ生成パターンに設定する。なお、データ生成方法は、図3及び図5Bに示すように、プルダウンである。すなわち、データ生成方法として設定される内容は、複数設定することが可能であり、最終的なデータ生成方法はユーザによって選択されるようにすることが可能である。   FIG. 5B is a schematic diagram illustrating an example of processing performed by the test data structure creation control unit 130 according to the first embodiment. FIG. 5 shows a part of the window when “item: category code (CATEGORY_CD)” is targeted. When the reference information shown in FIG. 5A is stored in the database 300 and acquired by the database information acquisition unit 141, the test data structure creation control unit 130 sets the data generation method to “external reference” as shown in FIG. 5B. And set. Then, as shown in FIG. 5B, the test data structure creation control unit 130 sets “M_CATEGORY.CATEGORY_CD”, which is information indicating that the category code of the category data is the reference destination, as the data generation pattern. In addition, “random generation” or “SQL setting” can be set as a data generation method by user selection. When the data generation method is “random generation”, the data is generated in a format that matches the data type “type” and “number of digits”. When the data generation method is “SQL setting”, a SQL statement is set in the data generation pattern, and data is generated according to the set SQL. In this case, the SQL sentence is set as a data generation pattern. The data generation method is pull-down as shown in FIGS. 3 and 5B. That is, a plurality of contents to be set as the data generation method can be set, and the final data generation method can be selected by the user.

図1に戻って、テストデータ構造入力受付部150は、入力装置110を介してユーザから入力された設定を図3に示すウィンドウに反映する。例えば、テストデータ構造入力受付部150は、テストデータの生成対象となるテーブル選択や、プルダウンによるデータ生成方法の選択を受付けて、各設定項目に反映させる。また、テストデータ構造入力受付部150は、データの項目ごとに生成するデータ件数を受付けて、ウィンドウ内の「生成データ件数」に反映する。   Returning to FIG. 1, the test data structure input receiving unit 150 reflects the setting input from the user via the input device 110 in the window shown in FIG. 3. For example, the test data structure input accepting unit 150 accepts selection of a table to be a test data generation target or selection of a data generation method by pull-down, and reflects it in each setting item. In addition, the test data structure input receiving unit 150 receives the number of data items generated for each data item and reflects the number of data items generated in the window.

さらに、テストデータ構造入力受付部150は、データ生成方法に「SQL設定」が設定された場合には、参照情報としてSQL文を受付けて、ウィンドウ内のデータ生成パターンに反映させる。図5Cは、実施例1に係るテストデータ構造入力受付部150によって受付けられるSQL文の一例を示す図である。例えば、テストデータ構造入力受付部150は、図5Cに示すように、「部門マスタから部門コードのデータを選択する」旨のSQL文「SELECT BUMON_CD FROM M_BUMON」を入力装置110を介して受付け、データ生成パターンに設定する。同様に、テストデータ構造入力受付部150は、図5Cに示すように、「部門マスタから部門コードのデータを選択する際に、部門コードが010から250までのデータを選択する」旨のSQL文「SELECT BUMON_CD FROM M_BUMON WHERE BUMON_CD BETWEEN ‘010’AND‘250’」を入力装置110を介して受付け、データ生成パターンに設定する。   Further, when “SQL setting” is set as the data generation method, the test data structure input receiving unit 150 receives an SQL sentence as reference information and reflects it in the data generation pattern in the window. FIG. 5C is a diagram illustrating an example of an SQL sentence received by the test data structure input receiving unit 150 according to the first embodiment. For example, as shown in FIG. 5C, the test data structure input receiving unit 150 receives an SQL statement “SELECT BUMON_CD FROM M_BUMON” to “select department code data from the department master” via the input device 110. Set to generation pattern. Similarly, the test data structure input receiving unit 150, as shown in FIG. 5C, the SQL statement “Selecting data with department codes 010 to 250 when selecting department code data from the department master”. "SELECT BUMON_CD FROM M_BUMON WHERE BUMON_CD BETWEEN '010' AND'250 '" is received via the input device 110 and set as a data generation pattern.

図1に戻って、テストデータ作成制御部160は、テストデータ構造作成制御部130及びテストデータ構造入力受付部によって設定されたウィンドウの情報に基づいたテストデータの生成に係る各種処理を制御する。具体的には、テストデータ作成制御部160は、後述するデータベースデータ取得部170、テストデータ生成部180、関連データ生成部190による処理を制御する。   Returning to FIG. 1, the test data creation control unit 160 controls various processes related to generation of test data based on the window information set by the test data structure creation control unit 130 and the test data structure input reception unit. Specifically, the test data creation control unit 160 controls processing by a database data acquisition unit 170, a test data generation unit 180, and a related data generation unit 190 described later.

データベースデータ取得部170は、テストデータ構造作成制御部130及びテストデータ構造入力受付部150によって設定されたウィンドウの情報に基づいて、テストデータの生成に用いられるデータをデータベース300から取得する。例えば、データ生成方法に「外部参照」が設定されている場合に、データベースデータ取得部170は、図5Aに示す「カテゴリデータ」から「カテゴリコード」のデータをデータベース300から取得する。   The database data acquisition unit 170 acquires data used for generating test data from the database 300 based on the window information set by the test data structure creation control unit 130 and the test data structure input reception unit 150. For example, when “external reference” is set as the data generation method, the database data acquisition unit 170 acquires data from “category data” to “category code” shown in FIG.

テストデータ生成部180は、データの項目ごとに、データベース情報取得部141によって取得されたデータタイプの情報に基づいて設定されたデータ種別の属性又は参照情報又はSQL設定又はランダム生成のうち少なくとも1つに応じたテストデータを生成する。具体的には、テストデータ生成部180は、ウィンドウの情報に含まれるデータ生成方法及びデータ生成パターンに基づいてテストデータを生成する。   The test data generation unit 180 has at least one of data type attribute or reference information, SQL setting, or random generation set based on the data type information acquired by the database information acquisition unit 141 for each data item. Generate test data according to Specifically, the test data generation unit 180 generates test data based on the data generation method and data generation pattern included in the window information.

例えば、テストデータ生成部180は、データ生成パターンが設定されていない場合には、データ生成方法の設定内容に応じたテストデータを、設定された件数生成する。一例を挙げると、図3の「SOSHIKIZU_CD」のテストデータを生成する場合には、データ生成パターンが設定されておらず、データ生成方法が、データ種別である「データ生成方法:全角日本語」であることから、テストデータ生成部180は、6文字の全角日本語のランダムな文字列をテストデータとして生成する。同様に、データ生成方法が「ランダム生成」の場合は、データタイプの「タイプ」及び「桁数」に整合性が合う形式にデータがランダムに生成される。例えば、タイプが「int」で桁数が「3」の場合には、テストデータ生成部180は、ランダムな3桁の数字をテストデータとして生成する。   For example, when the data generation pattern is not set, the test data generation unit 180 generates the set number of test data corresponding to the setting contents of the data generation method. For example, when generating the test data of “SOSHIKIZU_CD” in FIG. 3, the data generation pattern is not set, and the data generation method is “data generation method: full-width Japanese”. For this reason, the test data generation unit 180 generates a 6-byte random Japanese character string as test data. Similarly, when the data generation method is “random generation”, data is randomly generated in a format that matches the data type “type” and “number of digits”. For example, when the type is “int” and the number of digits is “3”, the test data generation unit 180 generates a random three-digit number as test data.

一方、データ生成パターンが設定されている場合には、テストデータ生成部180は、データ生成方法及びデータ生成パターンの設定内容に応じたテストデータを、設定された件数生成する。一例を挙げると、図5Bの「CATEGORY_CD」のテストデータを生成する場合には、データ生成方法が「外部参照」であり、データ生成パターンに参照先として「M_CATEGORY.CATEGORY_CD」が設定されていることから、テストデータ生成部180は、外部参照の参照先として「M_CATEGORY.CATEGORY_CD」を参照して、「CATEGORY_CD」のテストデータを生成する。具体的には、データベースデータ取得部170がデータベース300より「M_CATEGORY」テーブルに登録されている「CATEGORY_CD」の値を複数取得する。そして、テストデータ生成部180は、取得された複数データから任意にデータ選択してテストデータとして生成する。同様に、データ生成方法が「SQL設定」であり、データ生成パターンにSQL文が設定されていた場合には、テストデータ生成部180は、SQL文に記載された参照先のデータをテストデータとして生成する。具体的には、データベースデータ取得部170は、設定されたSQL文をデータベース300で実行し、実行結果として複数データを取得する。テストデータ生成部180は、データベースデータ取得部170が実行結果として取得した複数データから任意にデータを選択し、当該項目のテストデータとして生成する。   On the other hand, when the data generation pattern is set, the test data generation unit 180 generates the set number of test data according to the data generation method and the setting contents of the data generation pattern. As an example, when the test data of “CATEGORY_CD” in FIG. 5B is generated, the data generation method is “external reference”, and “M_CATEGORY.CATEGORY_CD” is set as the reference destination in the data generation pattern. Therefore, the test data generation unit 180 refers to “M_CATEGORY.CATEGORY_CD” as a reference destination of the external reference, and generates test data of “CATEGORY_CD”. Specifically, the database data acquisition unit 170 acquires a plurality of values of “CATEGORY_CD” registered in the “M_CATEGORY” table from the database 300. Then, the test data generation unit 180 arbitrarily selects data from the acquired plurality of data and generates it as test data. Similarly, when the data generation method is “SQL setting” and the SQL statement is set in the data generation pattern, the test data generation unit 180 uses the reference destination data described in the SQL statement as test data. Generate. Specifically, the database data acquisition unit 170 executes the set SQL statement in the database 300 and acquires a plurality of data as the execution result. The test data generation unit 180 arbitrarily selects data from a plurality of data acquired as an execution result by the database data acquisition unit 170 and generates it as test data for the item.

図6は、実施例1に係るテストデータ生成部180によって生成されるテストデータの第1の例を示す図である。図6においては、図3に示すウィンドウに設定された情報に基づいて生成されたテストデータを示す。例えば、テストデータ生成部180は、図6に示すように、「組織図コード:組織1−1、世代コード:20、利用開始年月日:21年4月1日、利用終了年月日:22年3月31日、カレント区分:1111、登録日付:20090331、登録社員コード:社員ID0111、更新日付:20091211、更新社員コード:社員ID0222」とするテストデータを生成してデータベース300に格納させる。同様に、テストデータ生成部180は、図6に示すように、世代管理データのテストデータを生成する。   FIG. 6 is a diagram illustrating a first example of test data generated by the test data generation unit 180 according to the first embodiment. FIG. 6 shows test data generated based on information set in the window shown in FIG. For example, as shown in FIG. 6, the test data generation unit 180 displays “Organization chart code: Organization 1-1, Generation code: 20, Usage start date: April 1, 211, Usage end date: March 31, 2010, current classification: 1111, registration date: 200909031, registered employee code: employee ID 0111, update date: 20009211, updated employee code: employee ID 0222 "is generated and stored in the database 300. Similarly, the test data generation unit 180 generates test data of generation management data as shown in FIG.

図1に戻って、関連データ生成部190は、参照関係を示す参照情報が設定されたデータ間のテストデータを生成する際に、参照先にデータが登録されていない場合に、参照先のデータを関連データとして生成する。具体的には、データ生成方法として外部参照が設定されており、データ生成パターンに設定された参照先にデータが登録されていない場合に、データ種別に応じたデータを関連データ191として生成して、生成したデータをデータベース300に登録する。   Returning to FIG. 1, when the related data generation unit 190 generates test data between data in which reference information indicating a reference relationship is set, if the data is not registered in the reference destination, the reference destination data Is generated as related data. Specifically, when external reference is set as the data generation method and data is not registered in the reference destination set in the data generation pattern, data corresponding to the data type is generated as related data 191. The generated data is registered in the database 300.

例えば、関連データ生成部190は、図5Bのデータ生成パターンに示す参照先「M_CATEGORY.CATEGORY_CD」にデータが登録されていない場合に、同一カラム内の「タイプ」、「桁数」を参照する。そして、「タイプ」が「varchar」であり。「桁数」が「6」であることから、関連データ生成部190は、6文字の文字データを生成する。そして、関連データ生成部は、生成したデータを「M_CATEGORY.CATEGORY_CD」に登録する。   For example, the related data generation unit 190 refers to “type” and “number of digits” in the same column when data is not registered in the reference destination “M_CATEGORY.CATEGORY_CD” shown in the data generation pattern of FIG. 5B. The “type” is “varchar”. Since the “digit number” is “6”, the related data generation unit 190 generates 6-character data. Then, the related data generation unit registers the generated data in “M_CATEGORY.CATEGORY_CD”.

上述したように、実施例1に係るテストデータ生成装置100は、負荷テスト用テストデータを生成する場合に、データベース300からデータ項目の情報を取得してテストデータを生成する。続いて、端末200からデータ項目の情報を取得して、入力テスト用テストデータを生成する場合について説明する。   As described above, when generating test data for load testing, the test data generation device 100 according to the first embodiment acquires data item information from the database 300 and generates test data. Subsequently, a case where data item information is acquired from the terminal 200 and test data for input test is generated will be described.

図1に戻って、画面情報取得部142は、テスト対象の業務アプリケーションによって用いられるデータの項目ごとに、当該データの属性を示すデータ項目の情報を取得する。具体的には、画面情報取得部142は、テストデータ構造作成制御部130の制御の元、テスト対象の業務アプリケーションの画面処理が実装されたソースコード又はフレームワーク定義を端末200から取得する。図7は、実施例1に係る業務アプリケーションの画面の一例を説明するための図である。例えば、実施例1に係る業務アプリケーションの画面としては、図7に示すように、「商品コード」、「メーカーコード」、「メーカー商品コード」、「商品名」、「カテゴリコード」、「商品説明」及び「単価」の入力項目が設定された商品情報編集の画面がある。以下では、画面処理が実装されたソースコードからデータ項目の情報を取得する場合について説明した後、フレームワーク定義からデータ項目の情報を取得する場合について説明する。   Returning to FIG. 1, the screen information acquisition unit 142 acquires, for each data item used by the test target business application, data item information indicating the attribute of the data. Specifically, the screen information acquisition unit 142 acquires from the terminal 200 the source code or framework definition in which the screen processing of the business application to be tested is implemented under the control of the test data structure creation control unit 130. FIG. 7 is a schematic diagram illustrating an example of a business application screen according to the first embodiment. For example, as shown in FIG. 7, the screen of the business application according to the first embodiment includes “product code”, “maker code”, “maker product code”, “product name”, “category code”, “product description”. "And" Unit price "input items are set in the product information editing screen. In the following, a case where data item information is acquired from source code in which screen processing is implemented will be described, and then a case where data item information is acquired from the framework definition will be described.

画面処理が実装されたソースコードからデータ項目の情報を取得する場合には、画面情報取得部142は、フレームワークの画面共通処理クラスを継承するソースコードの一覧を取得することにより、図7に示すような画面処理が実装されたプログラムの一覧を取得する。そして、画面情報取得部142は、テストデータを生成するデータ項目を取得したソースコードの入力チェック実装箇所から取得する。   When acquiring data item information from the source code in which screen processing is implemented, the screen information acquisition unit 142 acquires a list of source codes inheriting the screen common processing class of the framework, thereby obtaining FIG. Get a list of programs with screen processing as shown. Then, the screen information acquisition unit 142 acquires the data item for generating the test data from the input check implementation location of the acquired source code.

図8は、実施例1に係る画面処理のソースコードの一例を示す図である。図8においては、図7に示す画面の入力チェック処理が実装されたソースコードについて示す。例えば、画面情報取得部142は、まず、フレームワークの入力チェック処理メソッドの一覧から対象となる変数名を取得する。一例を挙げると、画面情報取得部142は、図8に示すソースコードから「Set Default Validation」メソッドの一覧を取得する。そして、画面情報取得部142は、取得したメソッドの引数からテストデータの生成対象となる項目を取得する。一例を挙げると、画面情報取得部142は、図8に示す「validator.Set Default Validation(Me.SearchShohinCd,“商品コード(検索)”,InputValidator.CheckType.LengthCheck,0,4)」から、「SearchShohinCd」を項目名、「“商品コード(検索)”」を日本語名として取得する。   FIG. 8 is a diagram illustrating an example of the source code of the screen processing according to the first embodiment. FIG. 8 shows source code in which the input check process for the screen shown in FIG. 7 is implemented. For example, the screen information acquisition unit 142 first acquires a target variable name from the list of input check processing methods of the framework. For example, the screen information acquisition unit 142 acquires a list of “Set Default Validation” methods from the source code illustrated in FIG. 8. Then, the screen information acquisition unit 142 acquires an item as a test data generation target from the acquired method argument. For example, the screen information acquisition unit 142 may be configured from “validator. Set Default Validation (Me. Search Shohin Cd,“ product code (search) ”, Input Validator. Check Type. Length Check, 0, 4)”, “Che”, “Che”. "As an item name and" "product code (search)" "as a Japanese name.

フレームワーク定義からデータ項目の情報を取得する場合には、画面情報取得部142は、フレームワークの入力チェック定義より、入力チェックが定義されている画面一覧を取得する。図9は、実施例1に係る入力チェックの外部定義の一例を示す図である。例えば、画面情報取得部142は、図9に示すように、<Screen id=・・・>〜</Screen>となっているScreenタグの項目を画面一覧として取得する。そして、画面情報取得部142は、画面の入力チェック定義より入力チェックの定義タグを取得する。例えば、画面情報取得部142は、図9に示す「Check」タグを入力チェックの定義タグとして取得する。   When acquiring data item information from the framework definition, the screen information acquisition unit 142 acquires a screen list in which the input check is defined from the input check definition of the framework. FIG. 9 is a diagram illustrating an example of the external definition of the input check according to the first embodiment. For example, as illustrated in FIG. 9, the screen information acquisition unit 142 acquires the items of the Screen tag that are <Screen id =...> To </ Screen> as a screen list. Then, the screen information acquisition unit 142 acquires an input check definition tag from the screen input check definition. For example, the screen information acquisition unit 142 acquires a “Check” tag illustrated in FIG. 9 as an input check definition tag.

そして、画面情報取得部142は、取得したCheckタグからテストデータの生成対象となる項目を取得する。例えば、画面情報取得部142は、図9に示す<Check DisplayName=“商品コード”ControlId=“ShohinCd”Name=“商品コード”>から、「ShohinCd」を項目名、「“商品コード”」を日本語名として取得する。   And the screen information acquisition part 142 acquires the item used as the production | generation object of test data from the acquired Check tag. For example, the screen information acquisition unit 142 selects “ShoinCd” as the item name and ““ Product code ”” from “<Check DisplayName =“ Product code ”ControlId =“ ShohinCd ”Name =“ Product code ”>” shown in FIG. Get as a word name.

ここで、画面情報取得部142は、フレームワークのチェック定義を参照して、取得したデータの項目ごとにタイプなどのデータタイプを設定する。図10は、実施例1に係るフレームワークのチェック定義の一例を示す図である。図10に示すように、フレームワークのチェック定義には、入力チェック種類(Check Type)ごとに、入力チェックの内容と、チェックの概要と、入力チェックの条件1及び2が対応付けられている。   Here, the screen information acquisition unit 142 refers to the check definition of the framework and sets a data type such as a type for each item of acquired data. FIG. 10 is a diagram illustrating an example of a framework check definition according to the first embodiment. As shown in FIG. 10, in the check definition of the framework, the contents of the input check, the outline of the check, and the conditions 1 and 2 of the input check are associated with each input check type (Check Type).

例えば、図8に示す「日本語名:商品コード」についてデータ種別を設定する場合には、「日本語名:商品コード」に係る入力チェック処理メソッドが「validator.Set Default Validation(Me.ShohinCd,“商品コード”,InputValidator.CheckType.NullCheck,,,)」、「validator.Set Default Validation(Me.ShohinCd,“商品コード”,InputValidator.CheckType.LengthCheck,0,4)」、「validator.Set Default Validation(Me.ShohinCd,“商品コード”,InputValidator.CheckType.Natural Number Check,,,)」であることから「タイプ:数値」、「桁数:4桁」、「日本語名:商品コード」、「データ生成方法:数値」、「データ桁数:4桁」とするデータ種別が設定される。   For example, when the data type is set for “Japanese name: product code” shown in FIG. 8, the input check processing method related to “Japanese name: product code” is “validator.Set Default Validation (Me. ShohinCd, “Product Code”, InputValidator.CheckType.NullCheck,,) ”,“ validator.Set Default Validation (Me. ShohinCald, “Product Code”, InputValidator.CheckType. (Me. ShohinCd, “Product Code”, InputValidator. CheckTy e.Natural Number Check,,) ”,“ Type: Numeric ”,“ Number of Digits: 4 Digits ”,“ Japanese Name: Product Code ”,“ Data Generation Method: Numeric ”,“ Data Digits: A data type “4 digits” is set.

また、例えば、図9に示す「日本語名:伝票番号」についてデータタイプを設定する場合には、「日本語名:伝票番号」に係るCheckタグが、<Check CheckType=“Natural Number Check”>、<Check Arg1=“10000”Arg2=“99999”CheckType=“Range Check”/>、<Check Arg1=“0”Arg2=“5”CheckType=“Length Check”/>であり、チェック定義として「Natural Number Check」及び「Range Check」で10000〜99999、「Length Check」で0〜5文字が定義されていることから、「タイプ:数値」、「桁数:5桁」、「日本語名:伝票番号」、「データ生成パターン:10000〜99999が、異常値、正常値、閾値として設定される」が設定される。   Also, for example, when the data type is set for “Japanese name: slip number” shown in FIG. 9, the Check tag related to “Japanese name: slip number” is <Check CheckType = “Natural Number Check”> <Check Arg1 = “10000” Arg2 = “99999” CheckType = “Range Check” />, <Check Arg1 = “0” Arg2 = “5”, CheckType = “Length Check” /> “Number Check” and “Range Check” are defined as 10,000 to 99999, and “Length Check” are defined as 0 to 5 characters. Therefore, “Type: Numeric”, “Number of Digits: Five Digits”, “Japanese Name: Slip” number" , “Data generation pattern: 10000 to 99999 is set as an abnormal value, normal value, and threshold” is set.

上述した画面情報取得部142によるデータ項目の情報の取得においても、テストデータ構造作成制御部130によってウィンドウが表示出力される。図11は、実施例1に係る表示装置によって表示出力されるGUIの第2の例を示す図である。例えば、図11に示すように、画面情報取得部142によってソースコードから画面名が取得され、「商品情報編集マスタ」がテストデータ生成の対象として選択されると、商品情報編集マスタに含まれる入力項目が展開され、項目ごとに「タイプ」、「桁数」、「日本語名」、「データ生成方法」、「データ桁数」及び「データ生成パターン」が設定される。ここで、図11の領域(5)に示すデータ生成パターンには、外部参照としてSQL文が設定される。   Also in the acquisition of data item information by the screen information acquisition unit 142 described above, the test data structure creation control unit 130 displays and outputs a window. FIG. 11 is a diagram illustrating a second example of a GUI displayed and output by the display device according to the first embodiment. For example, as shown in FIG. 11, when the screen name is acquired from the source code by the screen information acquisition unit 142 and “product information edit master” is selected as the test data generation target, the input included in the product information edit master The items are expanded, and “type”, “digit number”, “Japanese name”, “data generation method”, “data digit number”, and “data generation pattern” are set for each item. Here, an SQL statement is set as an external reference in the data generation pattern shown in the area (5) of FIG.

テストデータ生成部180は、上記したウィンドウに設定された情報に基づいてテストデータを生成する。図12Aは、実施例1に係るテストデータ生成部によって生成されるテストデータの第2の例を示す図である。図12Aにおいては、図11に示すウィンドウに設定された情報に基づいて生成されたテストデータを示す。   The test data generation unit 180 generates test data based on the information set in the window described above. FIG. 12A is a diagram illustrating a second example of test data generated by the test data generation unit according to the first embodiment. FIG. 12A shows test data generated based on information set in the window shown in FIG.

例えば、テストデータ生成部180は、図12Aに示すように、端末200の業務アプリケーションに入力するためのテストデータとして、「商品コード:S0002、メーカーコード:F001、メーカー商品コード:28475684、商品名:えんぴつX、カテゴリコード:01、商品説明:文房具、単価:200」とするテストデータを生成して入力用テストデータ183として出力する。同様に、テストデータ生成部180は、図12Aに示すように、端末200の業務アプリケーションで表示するためにデータベース300に登録するテストデータとして、商品データのテストデータとして表示用テストデータ182を出力する。また、関連データ生成部190は、参照先のテストデータを生成する。図12Bは、実施例1に係るテストデータ生成部によって生成されるテストデータの第3の例を示す図である。例えば、データ生成方法が「外部参照」、データ生成パターンが「CATEGORY.CATEGORY_CD」と設定されている場合に、関連データ生成部190は、図12Bに示すように、「カテゴリコード:01、カテゴリ名:文具」とする関連データ191を生成してデータベース300に格納させる。   For example, as shown in FIG. 12A, the test data generation unit 180 uses “product code: S0002, manufacturer code: F001, manufacturer product code: 28745684, product name: as test data to be input to the business application of the terminal 200. Test data with “Epis X, category code: 01, product description: stationery, unit price: 200” is generated and output as input test data 183. Similarly, as shown in FIG. 12A, the test data generation unit 180 outputs display test data 182 as test data of product data as test data registered in the database 300 for display by the business application of the terminal 200. . Further, the related data generation unit 190 generates reference destination test data. FIG. 12B is a diagram illustrating a third example of the test data generated by the test data generation unit according to the first embodiment. For example, when the data generation method is set to “external reference” and the data generation pattern is set to “CATEGORY.CATEGORY_CD”, the related data generation unit 190 displays “category code: 01, category name” as shown in FIG. 12B. : The related data 191 for “stationery” is generated and stored in the database 300.

上述したように、実施例1に係るテストデータ生成装置100は、データベースの定義や、画面処理が実装されたソースコード、フレームワークの定義を用いて、業務アプリケーションのテストデータを生成する。そして、実施例1に係るテストデータ生成装置100は、生成したテストデータをデータベース300又は端末200に格納させる。実施例1に係るテストデータ生成装置100は、このようにして生成したテストデータの検索を実行させることも可能である。図13は実施例1に係るテストデータ生成装置100によって表示されるテストデータ検索画面の一例を示す図である。   As described above, the test data generation apparatus 100 according to the first embodiment generates test data for a business application using a database definition, a source code on which screen processing is implemented, and a framework definition. Then, the test data generation apparatus 100 according to the first embodiment stores the generated test data in the database 300 or the terminal 200. The test data generation apparatus 100 according to the first embodiment can also execute a search for the test data generated in this way. FIG. 13 is a diagram illustrating an example of a test data search screen displayed by the test data generation apparatus 100 according to the first embodiment.

例えば、実施例1に係るテストデータ生成装置100は、図13に示すように、「商品コード」、「メーカーコード」及び「メーカー商品コード」などの複数の検索条件を受付けて、受け付けた検索結果の論理積の検索結果を表示させることも可能である。   For example, the test data generation device 100 according to the first embodiment receives a plurality of search conditions such as “product code”, “maker code”, and “maker product code” as shown in FIG. It is also possible to display the search result of the logical product of.

次に、図14〜図21を用いて、実施例1に係るテストデータ生成装置100の処理の手順を説明する。図14は、実施例1に係るテストデータ生成装置100によるデータベースからのデータ種別の取得処理の手順を説明するためのフローチャートである。なお、図14においては、テスト内容に応じたデータ種別の取得先が決定された後の処理について示す。   Next, a processing procedure of the test data generation apparatus 100 according to the first embodiment will be described with reference to FIGS. FIG. 14 is a flowchart for explaining the procedure of the data type acquisition process from the database by the test data generation apparatus 100 according to the first embodiment. FIG. 14 shows processing after the acquisition source of the data type corresponding to the test content is determined.

図14に示すように、実施例1に係るテストデータ生成装置100においては、データベース情報取得部141が、データベース300よりテーブル一覧を取得する(ステップS101)。そして、テストデータ構造入力受付部150が、テストデータを作成する対象テーブルの選択を受け付ける(ステップS102)。その後、データベース情報取得部141が、テストデータを作成するデータ項目を選択されたテーブルより取得する(ステップS103)。   As illustrated in FIG. 14, in the test data generation device 100 according to the first embodiment, the database information acquisition unit 141 acquires a table list from the database 300 (step S101). Then, the test data structure input receiving unit 150 receives selection of a target table for creating test data (step S102). Thereafter, the database information acquisition unit 141 acquires data items for creating test data from the selected table (step S103).

そして、テストデータ構造入力受付部150が、テストデータを作成するデータ項目の変更/入力を受け付ける(ステップS104)。その後、データベース情報取得部141が、データベース300より対象テーブルのデータ項目の情報を取得する(ステップS105)。そして、テストデータ構造入力受付部150が、データ項目の情報の変更/入力を受付ける(ステップS106)。続いて、テストデータ構造作成制御部130が、データ項目ごとにデータ種別を決定する(ステップS107)。そして、テストデータ構造入力受付部150が、データ項目ごとにデータ種別の変更を受付け(ステップS108)、データ生成パターンの入力を受け付けて(ステップS109)、処理を終了する。   Then, the test data structure input receiving unit 150 receives a change / input of a data item for creating test data (step S104). Thereafter, the database information acquisition unit 141 acquires data item information of the target table from the database 300 (step S105). Then, the test data structure input receiving unit 150 receives a change / input of data item information (step S106). Subsequently, the test data structure creation control unit 130 determines a data type for each data item (step S107). Then, the test data structure input receiving unit 150 receives the data type change for each data item (step S108), receives the data generation pattern input (step S109), and ends the process.

図15は、実施例1に係るテストデータ生成装置100によるデータ項目の参照関係の決定処理の手順を説明するためのフローチャートである。なお、図15においては、データ項目が決定された後の処理について示す。   FIG. 15 is a flowchart for explaining the procedure of the data item reference relation determination process performed by the test data generation apparatus 100 according to the first embodiment. FIG. 15 shows the processing after the data item is determined.

図15に示すように、実施例1に係るテストデータ生成装置100においては、データベース情報取得部141が、データベース300よりテーブルの関連情報を取得する(ステップS201)。そして、テストデータ構造作成制御部130が、データベース情報取得部141によって取得されたテーブルの関連情報よりデータ項目ごとの関連を決定する(ステップS202)。その後、テストデータ構造入力受付部150が、データ項目の関連の入力を受け付けて(ステップS203)、処理を終了する。   As illustrated in FIG. 15, in the test data generation device 100 according to the first embodiment, the database information acquisition unit 141 acquires table related information from the database 300 (step S201). Then, the test data structure creation control unit 130 determines the relationship for each data item from the related information of the table acquired by the database information acquisition unit 141 (step S202). Thereafter, the test data structure input receiving unit 150 receives an input related to the data item (step S203), and ends the process.

図16は、実施例1に係るテストデータ生成装置100によるテストデータ生成処理の第1の手順を説明するためのフローチャートである。なお、図16においては、データ項目ごとの情報がデータベース300より取得された場合のテストデータ生成処理について示す。また、図16においては、データ項目ごとのデータ生成方法及びデータ生成パターンが設定された後の処理について示す。   FIG. 16 is a flowchart for explaining a first procedure of the test data generation process performed by the test data generation apparatus 100 according to the first embodiment. FIG. 16 shows a test data generation process when information for each data item is acquired from the database 300. FIG. 16 shows a process after the data generation method and data generation pattern for each data item are set.

図16に示すように、実施例1に係るテストデータ生成装置100においては、テストデータ生成部180が、データ項目のデータ生成パターンを取得し(ステップS301)、データ生成パターンにデータ種別が設定されているか否かを判定する(ステップS302)。ここで、データ生成パターンにデータ種別が設定されている場合には(ステップS302肯定)、テストデータ生成部180が、データ種別に応じたテストデータを作成して(ステップS303)、設定された件数を生成したか否かを判定する(ステップS304)。   As illustrated in FIG. 16, in the test data generation device 100 according to the first embodiment, the test data generation unit 180 acquires the data generation pattern of the data item (step S301), and the data type is set in the data generation pattern. It is determined whether or not (step S302). Here, when the data type is set in the data generation pattern (Yes at Step S302), the test data generation unit 180 creates test data according to the data type (Step S303), and the set number of cases. Is determined (step S304).

ここで、設定された件数を生成していない場合には(ステップS304否定)、テストデータ生成部180が、ステップS303に戻って、データ種別に応じたテストデータを作成する。一方、設定された件数を生成した場合には(ステップS304肯定)、テストデータ生成部180が、ステップS310の判定を実行する。   Here, when the set number of cases has not been generated (No at Step S304), the test data generation unit 180 returns to Step S303 and creates test data according to the data type. On the other hand, when the set number of cases has been generated (Yes at Step S304), the test data generation unit 180 executes the determination at Step S310.

ステップS302において、データ生成パターンにデータ種別が設定されていない場合には(ステップS302否定)、テストデータ生成部180が、データ生成パターンに応じたテストデータを生成する。データ生成パターンがランダム生成設定の場合には(ステップS305)、テストデータ生成部180が、データタイプに応じたテストデータをランダムに生成して(ステップS306)、設定された件数を生成したか否かを判定する(ステップS307)。   If the data type is not set in the data generation pattern in step S302 (No in step S302), the test data generation unit 180 generates test data corresponding to the data generation pattern. When the data generation pattern is set to random generation (step S305), the test data generation unit 180 randomly generates test data according to the data type (step S306), and generates the set number of cases. Is determined (step S307).

ここで、設定された件数を生成していない場合には(ステップS307否定)、テストデータ生成部180が、ステップS306に戻って、ランダム生成設定の場合の処理を実行する。一方、設定された件数を生成した場合には(ステップS307肯定)、テストデータ生成部180が、ステップS310の判定を実行する。同様に、データ生成パターンが外部参照設定の場合(ステップS308)及びSQL設定の場合(ステップS309)についても、各設定でテストデータを生成して設定された件数を生成したか否かを判定する(ステップS307)。なお、データ生成パターンが外部参照設定の場合のテストデータ生成処理の手順及びSQL設定の場合のテストデータ生成処理の手順については、それぞれ図17及び18において説明する。   Here, when the set number of cases has not been generated (No at Step S307), the test data generation unit 180 returns to Step S306 and executes the process in the case of the random generation setting. On the other hand, when the set number of cases is generated (Yes at Step S307), the test data generation unit 180 executes the determination at Step S310. Similarly, in the case where the data generation pattern is the external reference setting (step S308) and the SQL setting (step S309), it is determined whether or not the number of items set by generating test data is generated for each setting. (Step S307). The procedure of the test data generation process when the data generation pattern is the external reference setting and the procedure of the test data generation process when the SQL setting is set will be described with reference to FIGS.

各設定におけるテストデータを設定された件数生成した場合には(ステップS304肯定、ステップS307肯定)、テストデータ生成部180が、全てのデータ項目について処理したか否かを判定する(ステップS310)。ここで、全てのデータ項目について処理していない場合には(ステップS310否定)、テストデータ生成部180は、ステップS301に戻って、未処理のデータ項目のデータ生成パターンを取得する。一方、全てのデータ項目について処理した場合には(ステップS310肯定)、テストデータ生成部180は、処理を終了する。   When the set number of test data in each setting is generated (Yes at Step S304, Yes at Step S307), the test data generation unit 180 determines whether all data items have been processed (Step S310). If all the data items have not been processed (No at Step S310), the test data generation unit 180 returns to Step S301 and acquires the data generation pattern of the unprocessed data item. On the other hand, when all the data items have been processed (Yes at step S310), the test data generation unit 180 ends the process.

図17は、実施例1に係るテストデータ生成装置100によるテストデータ生成処理の第2の手順として関連データの作成を説明するためのフローチャートである。なお、図17においては、図16におけるステップS308とステップS307との間の処理について示す。   FIG. 17 is a flowchart for explaining the creation of related data as the second procedure of the test data generation process performed by the test data generation apparatus 100 according to the first embodiment. FIG. 17 shows the processing between step S308 and step S307 in FIG.

図17に示すように、実施例1に係るテストデータ生成装置100においては、データ生成パターンが外部参照設定の場合には(図16、ステップS308)、データベース情報取得部141が、参照先のテーブルに登録データがあるか否かを判定する(ステップS311)。ここで、参照先のテーブルに登録データがある場合には(ステップS311肯定)、データベースデータ取得部170は、参照先テーブルより登録データの一覧を取得する(ステップS312)。   As illustrated in FIG. 17, in the test data generation device 100 according to the first embodiment, when the data generation pattern is the external reference setting (FIG. 16, step S308), the database information acquisition unit 141 performs the reference table It is determined whether or not there is registered data (step S311). Here, when there is registration data in the reference table (Yes in step S311), the database data acquisition unit 170 acquires a list of registration data from the reference table (step S312).

そして、テストデータ生成部180が、取得したデータよりランダムに値を1つ選択して(ステップS313)、選択したデータをテストデータとして生成して(ステップS314)、処理を終了する。一方、ステップS312の判定において、参照先のテーブルに登録データがない場合には(ステップS311否定)、関連データ生成部190が、データタイプに応じてテストデータを生成して(ステップS315)、生成したデータが参照先のテーブルにあるか否かを判定する(ステップS316)。   Then, the test data generation unit 180 randomly selects one value from the acquired data (step S313), generates the selected data as test data (step S314), and ends the process. On the other hand, in the determination in step S312, if there is no registered data in the reference table (No in step S311), the related data generation unit 190 generates test data according to the data type (step S315) and generates It is determined whether or not the processed data is in the reference table (step S316).

ここで、生成したデータが参照先のテーブルにある場合には(ステップS316肯定)、関連データ生成部が処理を終了する。一方、生成したデータが参照先のテーブルにない場合には(ステップS316否定)、関連データ生成部190が、参照先テーブルにキーデータを関連データ191として作成して(ステップS318)、処理を終了する。なお、図17に示す処理が終了すると、図16に示すステップS307の判定処理が実行される。   If the generated data is in the reference table (Yes at step S316), the related data generation unit ends the process. On the other hand, if the generated data is not in the reference destination table (No at step S316), the related data generation unit 190 creates key data as the related data 191 in the reference destination table (step S318), and ends the process. To do. When the process shown in FIG. 17 ends, the determination process in step S307 shown in FIG. 16 is executed.

図18は、実施例1に係るテストデータ生成装置100によるテストデータ生成処理の第3の手順を説明するためのフローチャートである。なお、図18においては、図16におけるステップS310とステップS308との間の処理について示す。   FIG. 18 is a flowchart for explaining a third procedure of the test data generation process performed by the test data generation apparatus 100 according to the first embodiment. Note that FIG. 18 shows processing between step S310 and step S308 in FIG.

図18に示すように、実施例1に係るテストデータ生成装置100においては、データ生成パターンがSQL設定の場合には(図16、ステップS309)、テストデータ生成部180が、SQLのチェックが設定されているか否かをデータ生成パターンの設定から判定する(ステップS318)。ここで、SQLのチェックが設定されていない場合には(ステップS318否定)、テストデータ生成部180が、SQLの実行結果の一覧を取得する(ステップS319)。   As shown in FIG. 18, in the test data generation apparatus 100 according to the first embodiment, when the data generation pattern is SQL setting (FIG. 16, step S309), the test data generation unit 180 sets the SQL check. It is determined from the setting of the data generation pattern whether or not it is done (step S318). If the SQL check is not set (No at Step S318), the test data generation unit 180 acquires a list of SQL execution results (Step S319).

そして、テストデータ生成部180が、取得したデータよりランダムに値を1つ選択して(ステップS320)、選択したデータをテストデータとして生成して(ステップS321)、処理を終了する。一方、SQLのチェックが設定されている場合には(ステップS318肯定)、テストデータ生成部180が、データタイプに応じてテストデータを生成して(ステップS322)、データ生成パターンに設定されているSQLをデータベースデータ取得部170で実行する。そして、データベースデータ取得部170が、SQLの実行結果に生成したデータが含まれるか否かを判定する(ステップS323)。   Then, the test data generation unit 180 randomly selects one value from the acquired data (step S320), generates the selected data as test data (step S321), and ends the process. On the other hand, when the SQL check is set (Yes at Step S318), the test data generation unit 180 generates test data according to the data type (Step S322) and is set to the data generation pattern. SQL is executed by the database data acquisition unit 170. Then, the database data acquisition unit 170 determines whether or not the generated data is included in the SQL execution result (step S323).

ここで、SQLの実行結果に生成したデータが含まれない場合には(ステップS323否定)、テストデータ生成部180が、データ参照エラーであると判定して、データを生成せずに(ステップS324)、処理を終了する。一方、SQLの実行結果に生成したデータが含まれる場合には(ステップS323肯定)、テストデータ生成部180が、処理を終了する。なお、図18に示す処理が終了すると、図16に示すステップS307の判定処理が実行される。   If the generated data is not included in the SQL execution result (No at Step S323), the test data generation unit 180 determines that there is a data reference error and does not generate data (Step S324). ), The process is terminated. On the other hand, when the generated data is included in the execution result of SQL (Yes in step S323), the test data generation unit 180 ends the process. When the process shown in FIG. 18 ends, the determination process in step S307 shown in FIG. 16 is executed.

図19は、実施例1に係るテストデータ生成装置100による画面処理実装のソースコードからのデータ種別の取得処理の手順を説明するためのフローチャートである。なお、図19においては、テスト内容に応じたデータ種別の取得先が決定された後の処理について示す。   FIG. 19 is a flowchart for explaining the procedure of the data type acquisition process from the source code for the screen processing implemented by the test data generation apparatus 100 according to the first embodiment. Note that FIG. 19 shows processing after the acquisition source of the data type corresponding to the test content is determined.

図19に示すように、実施例1に係るテストデータ生成装置100においては、画面情報取得部142が、端末200より画面処理実装のソース一覧を取得する(ステップS401)。そして、テストデータ構造入力受付部150が、テストデータを作成する画面の選択を受け付ける(ステップS402)。その後、画面情報取得部142が、テストデータを作成するデータ項目を画面ソースの入力チェック実装箇所より取得する(ステップS403)。   As illustrated in FIG. 19, in the test data generation device 100 according to the first embodiment, the screen information acquisition unit 142 acquires a source list of screen processing implementation from the terminal 200 (step S401). Then, the test data structure input receiving unit 150 receives selection of a screen for creating test data (step S402). Thereafter, the screen information acquisition unit 142 acquires a data item for creating test data from the input check implementation location of the screen source (step S403).

そして、テストデータ構造入力受付部150が、テストデータを作成するデータ項目の変更/入力を受け付ける(ステップS404)。その後、画面情報取得部142が、入力チェック実装より対象画面のチェック定義情報を取得して、テストデータ作成項目とする(ステップS405)。そして、テストデータ構造入力受付部150が、データ項目の情報の変更/入力を受付ける(ステップS406)。続いて、テストデータ構造作成制御部130が、データ生成パターンの入力を受け付けて(ステップS407)、処理を終了する。   Then, the test data structure input receiving unit 150 receives a change / input of a data item for creating test data (step S404). Thereafter, the screen information acquisition unit 142 acquires check definition information of the target screen from the input check implementation, and sets it as a test data creation item (step S405). Then, the test data structure input receiving unit 150 receives a change / input of data item information (step S406). Subsequently, the test data structure creation control unit 130 receives an input of a data generation pattern (step S407) and ends the process.

図20は、実施例1に係るテストデータ生成装置100によるフレームワーク入力チェック定義からのデータ項目ごとの情報の取得処理の手順を説明するためのフローチャートである。なお、図20においては、テスト内容に応じたデータ項目ごとの情報の取得先が決定された後の処理について示す。   FIG. 20 is a flowchart for explaining the procedure of the information acquisition process for each data item from the framework input check definition by the test data generation apparatus 100 according to the first embodiment. Note that FIG. 20 shows processing after the acquisition destination of information for each data item corresponding to the test content is determined.

図20に示すように、実施例1に係るテストデータ生成装置100においては、画面情報取得部142が、端末200より入力チェック定義が定義されている画面一覧を取得する(ステップS501)。そして、テストデータ構造入力受付部150が、テストデータを作成する画面の選択を受け付ける(ステップS502)。その後、画面情報取得部142が、テストデータを作成するデータ項目を画面の入力チェック定義より取得する(ステップS503)。   As illustrated in FIG. 20, in the test data generation device 100 according to the first embodiment, the screen information acquisition unit 142 acquires a screen list in which the input check definition is defined from the terminal 200 (step S501). Then, the test data structure input receiving unit 150 receives selection of a screen for creating test data (step S502). Thereafter, the screen information acquisition unit 142 acquires a data item for creating test data from the input check definition on the screen (step S503).

そして、テストデータ構造入力受付部150が、テストデータを作成するデータ項目の変更/入力を受け付ける(ステップS504)。その後、画面情報取得部142が、入力チェック定義より対象画面のチェック定義情報を取得して、テストデータ作成項目とする(ステップS505)。そして、テストデータ構造入力受付部150が、データ項目の情報の変更/入力を受付ける(ステップS506)。続いて、テストデータ構造作成制御部130が、データ生成パターンの入力を受け付けて(ステップS507)、処理を終了する。   Then, the test data structure input receiving unit 150 receives a change / input of a data item for creating test data (step S504). Thereafter, the screen information acquisition unit 142 acquires check definition information of the target screen from the input check definition and sets it as a test data creation item (step S505). Then, the test data structure input receiving unit 150 receives a change / input of data item information (step S506). Subsequently, the test data structure creation control unit 130 receives an input of a data generation pattern (step S507) and ends the process.

図21は、実施例1に係るテストデータ生成装置によるテストデータ生成処理の第4の手順を説明するためのフローチャートである。なお、図21においては、データ項目ごとのデータ種別が画面処理を実装するソースコード又はフレームワークの入力チェック定義より取得された場合のテストデータ生成処理について示す。また、図21においては、データ項目ごとのデータタイプ、データ生成方法及びデータ生成パターンが設定された後の処理について示す。   FIG. 21 is a flowchart for explaining a fourth procedure of the test data generation process performed by the test data generation apparatus according to the first embodiment. FIG. 21 shows a test data generation process when the data type for each data item is acquired from the source code for implementing the screen process or the input check definition of the framework. FIG. 21 shows processing after the data type, data generation method, and data generation pattern for each data item are set.

図21に示すように、実施例1に係るテストデータ生成装置100においては、テストデータ生成部180が、データ項目のデータ生成パターンを取得し(ステップS601)、データ生成パターンにデータ種別が設定されているか否かを判定する(ステップS602)。ここで、データ生成パターンにデータ種別が設定されている場合には(ステップS602肯定)、テストデータ生成部180が、データ種別に応じたテストデータを作成して(ステップS603)、設定された件数を生成したか否かを判定する(ステップS604)。   As illustrated in FIG. 21, in the test data generation device 100 according to the first embodiment, the test data generation unit 180 acquires the data generation pattern of the data item (step S601), and the data type is set in the data generation pattern. It is determined whether or not (step S602). Here, when the data type is set in the data generation pattern (Yes in step S602), the test data generation unit 180 creates test data corresponding to the data type (step S603), and the set number of cases Is determined (step S604).

ここで、設定された件数を生成していない場合には(ステップS604否定)、テストデータ生成部180が、ステップS603に戻って、データ種別に応じたテストデータを作成する。一方、設定された件数を生成した場合には(ステップS604肯定)、テストデータ生成部180が、ステップS609の判定を実行する。   If the set number has not been generated (No at Step S604), the test data generation unit 180 returns to Step S603 and creates test data corresponding to the data type. On the other hand, when the set number of cases is generated (Yes at Step S604), the test data generation unit 180 executes the determination at Step S609.

ステップS602において、データ生成パターンにデータ種別が設定されていない場合には(ステップS602否定)、テストデータ生成部180が、データ生成パターンに応じたテストデータを生成する。データ生成パターンがランダム生成設定の場合には(ステップS605)、テストデータ生成部180が、データタイプに応じてテストデータをランダムに生成して(ステップS606)、設定された件数を生成したか否かを判定する(ステップS607)。   In step S602, when the data type is not set in the data generation pattern (No in step S602), the test data generation unit 180 generates test data corresponding to the data generation pattern. If the data generation pattern is set to random generation (step S605), the test data generation unit 180 generates test data randomly according to the data type (step S606), and whether or not the set number has been generated. Is determined (step S607).

ここで、設定された件数を生成していない場合には(ステップS607否定)、テストデータ生成部180が、ステップS605に戻って、ランダム生成設定の場合の処理を実行する。一方、設定された件数を生成した場合には(ステップS607肯定)、テストデータ生成部180が、ステップS609の判定を実行する。同様に、データ生成パターンがSQL設定の場合(ステップS608)についても、各設定でテストデータを作成して設定された件数を生成したか否かを判定する(ステップS607)。なお、データ生成パターンがSQL設定の場合のテストデータ生成処理の手順については、図18と同様である。   If the set number has not been generated (No at Step S607), the test data generation unit 180 returns to Step S605 and executes the process for the case of random generation setting. On the other hand, when the set number of cases is generated (Yes at Step S607), the test data generation unit 180 executes the determination at Step S609. Similarly, when the data generation pattern is SQL setting (step S608), it is determined whether test data is created for each setting and the number of cases set is generated (step S607). The procedure of the test data generation process when the data generation pattern is SQL setting is the same as that in FIG.

各設定におけるテストデータを設定された件数生成した場合には(ステップS604肯定、ステップS607肯定)、テストデータ生成部180が、全てのデータ項目について処理したか否かを判定する(ステップS609)。ここで、全てのデータ項目について処理していない場合には(ステップS609否定)、テストデータ生成部180は、ステップS601に戻って、未処理のデータ項目のデータ生成パターンを取得する。一方、全てのデータ項目について処理した場合には(ステップS609肯定)、テストデータ生成部180は、処理を終了する。   When the set number of test data in each setting is generated (Yes in Step S604, Yes in Step S607), the test data generation unit 180 determines whether or not all data items have been processed (Step S609). If all the data items have not been processed (No at Step S609), the test data generation unit 180 returns to Step S601 and acquires the data generation pattern of the unprocessed data item. On the other hand, when all the data items have been processed (Yes at step S609), the test data generation unit 180 ends the process.

上述したように、実施例1によれば、データベース情報取得部141又は画面情報取得部142が、テスト対象の業務アプリケーションによって用いられるデータの項目ごとに、当該データの属性を示すデータ項目の情報を取得し、テストデータ構造作成制御部130がデータ種別を設定する。また、データベース情報取得部141又は画面情報取得部142が、業務アプリケーションによって用いられるデータに関するデータ間の参照関係を示す参照情報を取得する。そして、テストデータ生成部180が、データの項目ごとに、テストデータ構造作成制御部130によって設定されたデータ種別の属性及び参照情報の参照関係のうち少なくとも一方に応じたテストデータを生成する。従って、実施例1に係るテストデータ生成装置100は、例えば、既存のテストデータとは類似しないテストデータを作成したり、データに関する定義情報やキー情報、或いはテーブル間の対応関係に関する情報がない場合にテストデータを作成したりすることができ、データ間の参照関係の整合性が維持されたテストデータを容易に作成することを可能にする。   As described above, according to the first embodiment, the database information acquisition unit 141 or the screen information acquisition unit 142 sets the data item information indicating the attribute of the data for each item of data used by the business application to be tested. The test data structure creation control unit 130 acquires the data type and sets the data type. In addition, the database information acquisition unit 141 or the screen information acquisition unit 142 acquires reference information indicating a reference relationship between data regarding data used by the business application. Then, the test data generation unit 180 generates test data corresponding to at least one of the attribute of the data type set by the test data structure creation control unit 130 and the reference relationship of the reference information for each data item. Therefore, for example, the test data generation apparatus 100 according to the first embodiment creates test data that is not similar to existing test data, or there is no definition information or key information about data, or information about correspondence between tables. Test data can be created easily, and test data in which the consistency of the reference relationship between the data is maintained can be easily created.

また、実施例1によれば、データベース情報取得部141は、テスト対象の業務アプリケーションによって用いられるデータに関する情報を記憶するデータベース300から当該データのデータ項目の情報を取得する。また、データベース情報取得部141は、データベース300によって記憶されたテーブル定義又は利用者によって設定されたSQL文により参照情報を取得する。そして、テストデータ生成部180は、テーブル定義によって参照関係が定義されたテーブル間において、参照情報が含まれていない場合に、当該参照関係が定義されたテーブル間の参照情報として、データベース情報取得部141によって取得されたデータ種別に応じたデータを生成する。従って、実施例1に係るテストデータ生成装置100は、データ間の整合性を維持したテストデータを利用者が所望する分量だけ生成することを可能にする。   Further, according to the first embodiment, the database information acquisition unit 141 acquires information on data items of the data from the database 300 that stores information on data used by the business application to be tested. In addition, the database information acquisition unit 141 acquires reference information using a table definition stored in the database 300 or an SQL sentence set by a user. Then, when the reference information is not included in the tables in which the reference relationship is defined by the table definition, the test data generation unit 180 uses the database information acquisition unit as the reference information between the tables in which the reference relationship is defined. 141 generates data corresponding to the data type acquired in 141. Therefore, the test data generation apparatus 100 according to the first embodiment can generate test data in an amount desired by the user while maintaining consistency between data.

また、実施例1によれば、画面情報取得部142は、テスト対象の業務アプリケーションにおける画面のソースコードから当該画面に入力されるデータのデータ項目の情報を取得する。また、画面情報取得部142は、利用者によって設定されたSQL文により参照情報を取得する。従って、実施例1に係るテストデータ生成装置100は、データ間の整合性を確実に維持したテストデータを生成することを可能にする。   Further, according to the first embodiment, the screen information acquisition unit 142 acquires data item information of data input to the screen from the source code of the screen in the business application to be tested. The screen information acquisition unit 142 acquires reference information using an SQL sentence set by the user. Therefore, the test data generation apparatus 100 according to the first embodiment can generate test data that reliably maintains consistency between data.

また、実施例1によれば、テストデータ構造入力受付部150がテスト内容を受け付ける。そして、データベース情報取得部141は、テストデータ構造入力受付部150によって受付けられたテスト内容が負荷テストであった場合に、テスト対象の業務アプリケーションによって用いられるデータに関する情報を記憶するデータベース300から当該データのデータ項目の情報を取得する。画面情報取得部142は、テストデータ構造入力受付部150によって受付けられたテスト内容が入力テスト又は表示テストであった場合に、テスト対象の業務アプリケーションにおける画面のソースコードから当該画面に入力されるデータのデータ項目の情報を取得する。また、データベース情報取得部141は、テストデータ構造入力受付部150によって受付けられたテスト内容が負荷テストであった場合に、データベース300によって記憶されたテーブル定義又は利用者によって設定されたSQL文により参照情報を取得する。そして、画面情報取得部142は、テストデータ構造入力受付部150によって受付けられたテスト内容が入力テスト又は表示テストであった場合に、利用者によって設定されたSQL文により参照情報を取得する。従って、実施例1に係るテストデータ生成装置100は、テスト内容に応じたテストデータを自動で生成することを可能にする。   According to the first embodiment, the test data structure input receiving unit 150 receives test contents. Then, when the test content received by the test data structure input receiving unit 150 is a load test, the database information acquisition unit 141 stores the data from the database 300 that stores information on data used by the business application to be tested. Get information about the data item. When the test content received by the test data structure input receiving unit 150 is an input test or a display test, the screen information acquiring unit 142 is data input to the screen from the source code of the screen in the business application to be tested Get information about the data item. In addition, when the test content received by the test data structure input reception unit 150 is a load test, the database information acquisition unit 141 refers to the table definition stored in the database 300 or the SQL sentence set by the user. Get information. Then, when the test content received by the test data structure input receiving unit 150 is an input test or a display test, the screen information acquisition unit 142 acquires reference information using an SQL sentence set by the user. Therefore, the test data generating apparatus 100 according to the first embodiment can automatically generate test data corresponding to the test contents.

例えば、従来技術では、データ項目の情報等に応じて、ランダムに大量のテストデータを生成することが可能であるが、データ間の整合性が確保されていない場合が多い。その結果、データ間に整合性が維持されていないテストデータを用いて業務アプリケーションのテストを行うこととなり、テスト時に問題が発生した際に、テストデータの問題なのか、業務アプリケーションの問題なのか判別することが困難になる場合があった。さらに、従来技術では、データ間の整合性が維持されていないために、作成されたテストデータを画面から登録する場合において、例えば、画面からの入力をプルダウンにより選択する必要があるにも関わらず、作成されたテストデータの入力がプルダウンでは選択できないという問題が発生する場合があった。   For example, in the prior art, a large amount of test data can be randomly generated according to data item information or the like, but there are many cases where consistency between data is not ensured. As a result, the business application is tested using test data that does not maintain consistency between the data. When a problem occurs during the test, it is determined whether the problem is a test data problem or a business application problem. It could be difficult to do. Furthermore, in the conventional technique, since consistency between data is not maintained, when registering the created test data from the screen, for example, it is necessary to select input from the screen by pull-down. In some cases, the input of the created test data cannot be selected from the pull-down menu.

本実施例に係るテストデータ生成装置100では、データ間の整合性が維持されたテストデータを大量に生成することを可能にするとともに、テスト特性に合わせたテストデータを容易に生成することを可能する。その結果、本実施例に係るテストデータ生成装置100は、業務アプリケーションのテストを正確に行うことも可能にする。   In the test data generation device 100 according to the present embodiment, it is possible to generate a large amount of test data in which consistency between data is maintained, and it is possible to easily generate test data according to the test characteristics. To do. As a result, the test data generation apparatus 100 according to the present embodiment can also accurately test a business application.

さて、これまで実施例1について説明したが、上述した実施例1以外にも、種々の異なる形態にて実施されてよいものである。   Although the first embodiment has been described above, the present invention may be implemented in various different forms other than the first embodiment described above.

上述した実施例1では、データベースからのデータ項目ごとの情報の取得と、画面処理を実装したソースコード又はフレームワーク入力チェック定義からのデータ項目ごとのっ情報の取得とを両方実行するテストデータ生成装置100について説明した。しかしながら、開示の技術はこれに限定されるものではなく、例えば、どちらか一方を実行する場合であってもよい。   In the first embodiment described above, test data generation that executes both acquisition of information for each data item from the database and acquisition of information for each data item from the source code or the framework input check definition that implements screen processing The apparatus 100 has been described. However, the disclosed technique is not limited to this. For example, one of the techniques may be executed.

また、例えば、データベースからのデータ項目ごとの情報の取得を実行する装置と、画面処理を実装したソースコード又はフレームワーク入力チェック定義からのデータ項目ごとの情報の取得を実行する装置とを接続して、実施例1に係るテストデータ生成装置100と同様の処理を実行するようにしてもよい。   In addition, for example, a device that acquires information for each data item from a database is connected to a device that acquires information for each data item from a source code or framework input check definition that implements screen processing. Thus, the same process as that performed by the test data generation apparatus 100 according to the first embodiment may be executed.

上述した実施例1では、テストデータ生成装置100が端末200及びデータベース300から独立している場合について説明した。しかしながら、開示の技術はこれに限定されるものではなく、例えば、テストデータ生成装置100が端末200に内蔵される場合であってもよい。   In the first embodiment described above, the case where the test data generation device 100 is independent from the terminal 200 and the database 300 has been described. However, the disclosed technique is not limited to this, and for example, the test data generation apparatus 100 may be built in the terminal 200.

[システム構成等]
図示した各装置の各構成要素は機能概念的なものであり、必ずしも物理的に図示された構成要素と同一であることを要しない。すなわち、各装置の分散・統合の具体的形態は図示のものに限られず、その全部または一部を、各種の負荷や使用状況などに応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。例えば、図1に示すデータベース情報取得部141と画面情報取得部142とを1つの情報取得部として統合してもよい。また、一方で、図1に示すテストデータ構造作成制御部130を、データ生成方法及びデータ生成パターンを設定する設定部と、表示装置120にGUIを表示出力させる表示制御部とに分散してもよい。
[System configuration, etc.]
Each component of each illustrated device is functionally conceptual, and does not necessarily need to be the same as the physically illustrated component. In other words, the specific form of distribution / integration of each device is not limited to that shown in the figure, and all or a part thereof may be functionally or physically distributed or arbitrarily distributed in arbitrary units according to various loads or usage conditions. Can be integrated and configured. For example, the database information acquisition unit 141 and the screen information acquisition unit 142 illustrated in FIG. 1 may be integrated as one information acquisition unit. On the other hand, the test data structure creation control unit 130 shown in FIG. 1 may be distributed to a setting unit that sets a data generation method and a data generation pattern and a display control unit that causes the display device 120 to display and output a GUI. Good.

また、本実施例において説明した各処理のうち、手動的に行われるものとして説明した処理の全部または一部を手動的に行うこともできる。例えば、生成するテストデータの件数の入力処理を自動で行ってもよい。かかる場合には、例えば、過去に生成したデータの件数を元に、生成するデータの件数を自動で決定するようにしてもよい。また、テストデータ生成部180をテストデータ生成装置100の外部装置としてネットワーク経由で接続するようにしてもよい。   In addition, all or a part of the processes described as being manually performed among the processes described in the present embodiment can be manually performed. For example, input processing for the number of test data items to be generated may be automatically performed. In such a case, for example, the number of data to be generated may be automatically determined based on the number of data generated in the past. Further, the test data generation unit 180 may be connected as an external device of the test data generation apparatus 100 via a network.

[データ生成プログラム]
ところで、上記実施例1では、ハードウェアロジックによって各種の処理を実現する場合を説明したが、本実施例はこれに限定されるものではなく、予め用意されたプログラムをコンピュータで実行するようにしてもよい。そこで、以下では、図22を用いて上記実施例1に示したテストデータ生成装置100と同様の機能を有するデータ生成プログラムを実行するコンピュータの一例を説明する。図22は、実施例2に係るデータ生成プログラムを実行するコンピュータを説明するための図である。
[Data generation program]
In the first embodiment, the case where various processes are realized by hardware logic has been described. However, the present embodiment is not limited to this, and a program prepared in advance is executed by a computer. Also good. Therefore, in the following, an example of a computer that executes a data generation program having the same function as the test data generation apparatus 100 shown in the first embodiment will be described with reference to FIG. FIG. 22 is a diagram for explaining a computer that executes a data generation program according to the second embodiment.

図22に示すように、コンピュータ1000は、例えば、メモリ1010と、CPU(Central Processing Unit)1020と、ハードディスクドライブインタフェース1030とを有する。また、図23に示すように、コンピュータ1000は、例えば、ディスクドライブインタフェース1040と、シリアルポートインタフェース1050と、ビデオアダプタ1060と、ネットワークインタフェース1070とを有し、これらの各部はバス1080によって接続される。   As shown in FIG. 22, the computer 1000 includes, for example, a memory 1010, a CPU (Central Processing Unit) 1020, and a hard disk drive interface 1030. As shown in FIG. 23, the computer 1000 includes, for example, a disk drive interface 1040, a serial port interface 1050, a video adapter 1060, and a network interface 1070. These units are connected by a bus 1080. .

メモリ1010は、図22に示すように、ROM(Read Only Memory)1011及びRAM(Random Access Memory)1012を含む。ROM1011は、例えば、BIOS(Basic Input Output System)等のブートプログラムを記憶する。ハードディスクドライブインタフェース1030は、図22に示すように、ハードディスクドライブ1090に接続される。ディスクドライブインタフェース1040は、図22に示すように、ディスクドライブ1100に接続される。例えば磁気ディスクや光ディスク等の着脱可能な記憶媒体が、ディスクドライブ1100に挿入される。シリアルポートインタフェース1050は、図22に示すように、例えばマウス1110、キーボード1120に接続される。ビデオアダプタ1060は、図23に示すように、例えばディスプレイ1130に接続される。   The memory 1010 includes a ROM (Read Only Memory) 1011 and a RAM (Random Access Memory) 1012 as shown in FIG. The ROM 1011 stores a boot program such as BIOS (Basic Input Output System). The hard disk drive interface 1030 is connected to the hard disk drive 1090 as shown in FIG. The disk drive interface 1040 is connected to the disk drive 1100 as shown in FIG. For example, a removable storage medium such as a magnetic disk or an optical disk is inserted into the disk drive 1100. The serial port interface 1050 is connected to, for example, a mouse 1110 and a keyboard 1120 as shown in FIG. The video adapter 1060 is connected to a display 1130, for example, as shown in FIG.

ここで、図22に示すように、ハードディスクドライブ1090は、例えば、OS(Operating System)1091、アプリケーションプログラム1092、プログラムモジュール1093、プログラムデータ1094を記憶する。すなわち、データ生成プログラムは、コンピュータ1000によって実行される指令が記述されたプログラムモジュール1093として、例えばハードディスクに記憶される。具体的には、上述した実施例で説明したデータ情報取得部140と同様の処理を実行するデータ情報取得手順と、テストデータ生成部180と同様の処理を実行するデータ生成手順とが記述されたプログラムモジュール1093が、ハードディスクに記憶される。   Here, as shown in FIG. 22, the hard disk drive 1090 stores, for example, an OS (Operating System) 1091, an application program 1092, a program module 1093, and program data 1094. That is, the data generation program is stored in, for example, a hard disk as a program module 1093 in which a command executed by the computer 1000 is described. Specifically, a data information acquisition procedure for executing processing similar to that of the data information acquisition unit 140 described in the above-described embodiment and a data generation procedure for executing processing similar to that of the test data generation unit 180 are described. A program module 1093 is stored in the hard disk.

また、上述した実施例で説明したテストデータ構造作成制御部130の内部メモリに記憶されるデータのように、規則検査プログラムによる情報処理に用いられるデータは、プログラムデータとして、例えばハードディスクに記憶される。そして、CPU1020が、ハードディスクに記憶されたプログラムモジュールやプログラムデータを必要に応じてRAM1012に読み出し、データ情報取得手順、データ生成手順を実行する。   Further, like the data stored in the internal memory of the test data structure creation control unit 130 described in the above-described embodiment, data used for information processing by the rule inspection program is stored as program data, for example, on a hard disk. . Then, the CPU 1020 reads program modules and program data stored in the hard disk to the RAM 1012 as necessary, and executes a data information acquisition procedure and a data generation procedure.

なお、データ生成プログラムに係るプログラムモジュールやプログラムデータは、ハードディスクに記憶される場合に限られず、例えば着脱可能な記憶媒体に記憶され、ディスクドライブ1100等を介してCPU1020によって読み出されてもよい。あるいは、解析プログラムに係るプログラムモジュールやプログラムデータは、ネットワーク(LAN(Local Area Network)、WAN(Wide Area Network)等)を介して接続された他のコンピュータに記憶され、ネットワークインタフェース1070を介してCPU1020によって読み出されてもよい。   Note that the program module and program data related to the data generation program are not limited to being stored in the hard disk, but may be stored in, for example, a removable storage medium and read out by the CPU 1020 via the disk drive 1100 or the like. Alternatively, the program module and program data relating to the analysis program are stored in another computer connected via a network (LAN (Local Area Network), WAN (Wide Area Network), etc.), and the CPU 1020 via the network interface 1070. May be read.

100 テストデータ生成装置
110 入力装置
120 表示装置
130 テストデータ構造作成制御部
140 データ情報取得部
141 データベース情報取得部
142 画面情報取得部
150 テストデータ構造入力受付部
160 テストデータ作成制御
170 データベースデータ取得部
180 テストデータ生成部
190 関連データ生成部
200 端末
300 データベース
DESCRIPTION OF SYMBOLS 100 Test data production | generation apparatus 110 Input device 120 Display apparatus 130 Test data structure creation control part 140 Data information acquisition part 141 Database information acquisition part 142 Screen information acquisition part 150 Test data structure input reception part 160 Test data creation control 170 Database data acquisition part 180 Test data generation unit 190 Related data generation unit 200 Terminal 300 Database

Claims (5)

テスト対象の業務アプリケーションによって用いられるデータの項目ごとに、当該データの属性を示すデータ項目の情報と、前記業務アプリケーションによって用いられるデータを記憶するデータベースに含まれるテーブルの項目間の参照関係を示す主キー及び外部キー、又は、前記業務アプリケーションのテストデータを前記データベースの何れから取得するかが利用者によって設定されたSQL文とを取得するデータ情報取得部と、
前記データの項目ごとに、前記データ情報取得部によって取得されたデータ項目の情報と、前記主キー及び前記外部キー、又は、前記SQL文とのうち少なくとも一方に応じたテストデータを生成するデータ生成部と、
を有することを特徴とするデータ生成装置。
For each item of data used by the business application to be tested, information on the data item indicating the attribute of the data and the reference relationship between the items of the table included in the database storing the data used by the business application A data information acquisition unit for acquiring a key and an external key, or an SQL sentence set by a user as to whether the test data of the business application is acquired from the database ;
Data generation for generating test data corresponding to at least one of the data item information acquired by the data information acquisition unit and the primary key and the foreign key or the SQL statement for each data item And
A data generation device comprising:
テスト対象の業務アプリケーションによって用いられるデータの項目ごとに、前記テスト対象の業務アプリケーションによって用いられるデータを記憶するデータベースから当該データのデータ項目の情報と、テーブル定義又は前記業務アプリケーションのテストデータを前記データベースの何れから取得するかが利用者によって設定されたSQL文とを取得するデータ情報取得部と、
前記データの項目ごとに、前記テーブル定義又は前記SQL文によって参照関係が定義されたテーブル間の対応するデータ項目に対応するデータが登録されていない場合、当該参照関係が定義されたテーブル間の参照情報として、前記データ情報取得部によって取得されたデータ項目の情報に応じたデータを生成するデータ生成部と、
を有することを特徴とするデータ生成装置。
For each item of data used by the test of the business application, and from said database for storing data used by the test of the business application data item of the data information, test data table definition or the business application the A data information acquisition unit for acquiring an SQL sentence set by a user as to which of the databases to acquire ;
For each data item, when data corresponding to a corresponding data item between tables in which a reference relationship is defined by the table definition or the SQL statement is not registered, reference between tables in which the reference relationship is defined As the information, a data generation unit that generates data according to the information of the data item acquired by the data information acquisition unit ,
A data generation device comprising:
スト対象の業務アプリケーションにおける画面のソースコードから当該画面に入力されるデータのデータ項目の情報を取得し、前記テスト対象の業務アプリケーションによって用いられるデータを記憶するデータベースから利用者によって設定されたSQL文に対応する、データ間の参照関係を示す参照情報を取得するデータ情報取得部と、
前記データの項目ごとに、前記データ情報取得部によって取得されたデータ項目の情報及び参照情報の参照関係のうち少なくとも一方に応じたテストデータを生成するデータ生成部と、
を有することを特徴とするデータ生成装置。
Te from the screen source code in strike target business application acquires information of a data item of data input to the screen, set by the user from a database that stores data used by the test of the business application SQL A data information acquisition unit for acquiring reference information corresponding to a sentence and indicating a reference relationship between data;
For each item of data, a data generation unit that generates test data according to at least one of the reference relationship of the data item information and reference information acquired by the data information acquisition unit;
A data generation device comprising:
テスト内容を受け付ける受付部と、
記受付部によって受付けられたテスト内容が負荷テストであった場合に、テスト対象の業務アプリケーションによって用いられるデータを記憶するデータベースから当該データのデータ項目の情報と、テーブル定義又は利用者によって設定されたSQL文に対応する、データ間の参照関係を示す参照情報とを取得するデータベース情報取得部と、
前記受付部によって受付けられたテスト内容が入力テスト又は表示テストであった場合に、前記テスト対象の業務アプリケーションにおける画面のソースコードから当該画面に入力されるデータのデータ項目の情報を取得する画面情報取得部と
前記データの項目ごとに、前記データベース情報取得部又は前記画面情報取得部によって取得されたデータ項目の情報、参照情報の参照関係のうち少なくとも一方に応じたテストデータを生成するデータ生成部と、
を有することを特徴とするデータ生成装置。
A reception unit that accepts test content ;
If the test contents received by front Symbol receiving unit was load test, the information of the data item of the data from a database that stores data used by the test subject of business applications, the table definition or user A database information acquisition unit that acquires reference information indicating a reference relationship between data corresponding to the set SQL sentence;
Screen information for acquiring data item information of data input to the screen from the source code of the screen in the business application to be tested when the test content received by the reception unit is an input test or a display test With the acquisition department
For each item of the data, a data generation unit that generates test data according to at least one of the data item information acquired by the database information acquisition unit or the screen information acquisition unit, the reference relationship of the reference information,
A data generation device comprising:
テスト対象の業務アプリケーションによって用いられるデータを記憶するデータベースから、前記テスト対象の業務アプリケーションによって用いられるデータの項目ごとに、
当該データの属性を示すデータ項目の情報と、当該データベースに含まれるテーブルの項目間の参照関係を示す主キー及び外部キー、又は、前記業務アプリケーションのテストデータを前記データベースの何れから取得するかが利用者によって設定されたSQL文とを取得するデータ情報取得手順と、
前記データの項目ごとに、前記データ情報取得手順によって取得されたデータ項目の情報と、前記主キー及び前記外部キー、又は、前記SQL文とのうち少なくとも一方に応じたテストデータを生成するデータ生成手順と、
をコンピュータに実行させることを特徴とするデータ生成プログラム。
From a database that stores data used by the test of the business application, and for each item of data used by the test of the business application,
Information on the data item indicating the attribute of the data and the primary key and foreign key indicating the reference relationship between the items of the table included in the database, or from which database the test data of the business application is acquired. A data information acquisition procedure for acquiring an SQL sentence set by the user ;
Data generation for generating test data corresponding to at least one of the data item information acquired by the data information acquisition procedure and the primary key and the foreign key, or the SQL statement for each data item Procedure and
A data generation program for causing a computer to execute.
JP2011050498A 2011-03-08 2011-03-08 Data generation apparatus and data generation program Expired - Fee Related JP5651050B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011050498A JP5651050B2 (en) 2011-03-08 2011-03-08 Data generation apparatus and data generation program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011050498A JP5651050B2 (en) 2011-03-08 2011-03-08 Data generation apparatus and data generation program

Publications (2)

Publication Number Publication Date
JP2012190063A JP2012190063A (en) 2012-10-04
JP5651050B2 true JP5651050B2 (en) 2015-01-07

Family

ID=47083187

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011050498A Expired - Fee Related JP5651050B2 (en) 2011-03-08 2011-03-08 Data generation apparatus and data generation program

Country Status (1)

Country Link
JP (1) JP5651050B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6382610B2 (en) * 2014-07-15 2018-08-29 株式会社日立製作所 Simulator system, gateway system test apparatus, and gateway system test method
CN107077413B (en) * 2014-09-08 2021-01-15 起元科技有限公司 Data driven test framework
JP6684233B2 (en) * 2017-01-12 2020-04-22 株式会社日立製作所 Test input information retrieval device and method
JP6988997B2 (en) * 2018-03-30 2022-01-05 日本電気株式会社 Information processing equipment, test management methods and programs
JP6679770B1 (en) * 2019-01-18 2020-04-15 ソフトバンク株式会社 Test case creation support device and program
CN113419774A (en) * 2021-05-31 2021-09-21 西南电子技术研究所(中国电子科技集团公司第十研究所) Test method for automatically traversing different test parameters of tested product

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3504605B2 (en) * 2000-11-17 2004-03-08 三菱電機株式会社 Software automatic test method
JP2006227958A (en) * 2005-02-18 2006-08-31 Nomura Research Institute Ltd Test data generation system and method
JP4395761B2 (en) * 2005-03-04 2010-01-13 日本電気株式会社 Program test support apparatus and method
JP2009289083A (en) * 2008-05-29 2009-12-10 Hitachi Information Systems Ltd Test data-generating system and test data-generating method
JP5620984B2 (en) * 2009-06-10 2014-11-05 アビニシオ テクノロジー エルエルシー How to generate test data

Also Published As

Publication number Publication date
JP2012190063A (en) 2012-10-04

Similar Documents

Publication Publication Date Title
CN111722839B (en) Code generation method and device, electronic equipment and storage medium
JP3057019B2 (en) Component selection device and component selection system with CAD function
US8601438B2 (en) Data transformation based on a technical design document
JP5651050B2 (en) Data generation apparatus and data generation program
US7216340B1 (en) Analysis data validation tool for use in enterprise architecture modeling with result based model updating
US8407262B2 (en) Systems and methods for generating an entity diagram
US20050091206A1 (en) Method and system for handling data available in multidimensional databases using a spreadsheet
US20060271841A1 (en) Generating free form reports within a data array
KR101201019B1 (en) Declarative sequenced report parameterization
US6698010B1 (en) System, method and computer program product for automatic generation of data processing program
US20010025287A1 (en) Document integrated management apparatus and method
WO2005008534A2 (en) System and method for generating sql using templates
US20030110175A1 (en) Deploying predefined data warehouse process models
US8606762B2 (en) Data quality administration framework
US20060136471A1 (en) Differential management of database schema changes
US10241899B2 (en) Test input information search device and method
US7890523B2 (en) Search-based filtering for property grids
US20080071593A1 (en) Business process editor, business process editing method, and computer product
JP2008269515A (en) Method for dynamically generating image layout by parameter
JP4929018B2 (en) Design method using cell concept, drawing creation device, program, and recording medium
JP2008176364A (en) Program segmentation support apparatus
CN114238467A (en) Structured data analysis method and system
JP3373129B2 (en) Program development support method
JP2011209971A (en) Test support apparatus, test support system, control method, program and recording medium
JP5336906B2 (en) Design process management device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20131211

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140620

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140715

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140908

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: 20141104

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20141114

R150 Certificate of patent or registration of utility model

Ref document number: 5651050

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees