JP5523526B2 - Test data generation apparatus, method and program having multiple reference accesses in test path - Google Patents
Test data generation apparatus, method and program having multiple reference accesses in test path Download PDFInfo
- Publication number
- JP5523526B2 JP5523526B2 JP2012199324A JP2012199324A JP5523526B2 JP 5523526 B2 JP5523526 B2 JP 5523526B2 JP 2012199324 A JP2012199324 A JP 2012199324A JP 2012199324 A JP2012199324 A JP 2012199324A JP 5523526 B2 JP5523526 B2 JP 5523526B2
- Authority
- JP
- Japan
- Prior art keywords
- test case
- test
- record
- group
- variable
- 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.)
- Active
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Description
本発明は、テストパス中に複数の参照アクセスをもつテスト用のデータ生成装置及び方法及びプログラムに係り、特に、DB(データベース)に格納されているデータの読み出し操作を伴うような機能性テストの際に、テストパス中に複数の参照アクセス(SELECT)が含まれるテストデータを生成するテストデータ生成装置及び方法及びプログラムに関する。 The present invention relates to a test data generation apparatus, method, and program having a plurality of reference accesses in a test path, and more particularly to a functionality test that involves a read operation of data stored in a DB (database). In particular, the present invention relates to a test data generation apparatus, method, and program for generating test data including a plurality of reference accesses (SELECT) in a test path.
データベースに格納されているデータの読み出しの操作を伴うような機能性テストのためのテストデータ生成技術として以下のようなものがある。なお、ここで、テストデータとは、データベースの初期状態(以下、「DB初期状態」と記す)と入力値のペアであり、データベースアプリケーションのテストのため、テスト実施時の各画面の入力フィールドへの入力、データベースに予め入れておくデータセットとして利用する。 There are the following test data generation techniques for functional tests that involve an operation of reading data stored in a database. Here, the test data is a pair of the initial state of the database (hereinafter referred to as “DB initial state”) and the input value. To test the database application, to the input field of each screen at the time of test execution Is used as a data set to be entered in advance in the database.
従来は、テストケースごとに記述された事前条件を入力として、テストケース(DB初期状態を含む)生成する方法(例えば、非特許文献1参照)や、ソフトウェアの設計情報を入力として、テストケース及び、そのテストケースの事前条件を抽出し、テストケース毎にテストケースの事前条件を満たすDB初期状態を生成する方法(例えば、非特許文献2参照)がある。 Conventionally, a method for generating a test case (including an initial DB state) (for example, refer to Non-Patent Document 1) using a precondition described for each test case as an input, and a software design information as an input, There is a method of extracting a precondition of the test case and generating a DB initial state that satisfies the precondition of the test case for each test case (for example, see Non-Patent Document 2).
しかしながら、同じカラムに対する検索条件の空間に重なりがある場合、上記従来方法を用いると、テストパス上のガード条件(整数算術式、整数比較演算子等の整数制約)で予定したレコード件数と異なるレコード件数が返ってきてしまうという問題がある。 However, if the search condition space for the same column overlaps, using the above conventional method, records that differ from the number of records planned under the guard condition on the test path (integer constraints such as integer arithmetic expressions and integer comparison operators) There is a problem that the number of cases is returned.
また、これらの技術は、1テストケースにつき、1つのDB初期状態を生成するため、高々1回のDB定義(Persons)のSELECTアクセスしか扱えない。従ってテスト実施毎に、DB初期状態の入れ替えの回数が多いという問題がある。例えば、図1に示す入力値定義、DB定義(Persons)があり、処理フロー図から抽出されたテストケースにおいて、SELECT文として「SELECT * FROM Persons WHERE Age<= maxAge AND Age>= minAge」が与えられた場合(1つのSELECT文が使われている場合)は、同図右に示すような検索結果レコード件数が2件となるテストデータを得ることができる。しかし、同一テーブル(Persons)に対して複数回の参照アクセス、条件分岐がある場合には、対応できないという問題がある。 Moreover, since these technologies generate one DB initial state per test case, they can handle only SELECT access of DB definition (Persons) at most once. Therefore, there is a problem that the number of times of initial DB replacement is large every time the test is performed. For example, there are the input value definition and DB definition (Persons) shown in Fig. 1. In the test case extracted from the process flow diagram, "SELECT * FROM Persons WHERE Age <= maxAge AND Age> = minAge" is given as the SELECT statement. If this is done (when one SELECT statement is used), test data with two search result records can be obtained as shown on the right side of the figure. However, if there are multiple reference accesses and conditional branches for the same table (Persons), there is a problem that it cannot be handled.
本発明は、上記の点に鑑みなされたもので、複数回のSELECT文の検索結果レコード件数に応じて後続するSELECT文の実行を行うテストケースを生成でき、かつ、テスト実施時のDBの初期状態の入れ替え回数を削減することが可能なテストパス中に複数の参照アクセスをもつテスト用のデータ生成装置及び方法及びプログラムを提供することを目的とする。 The present invention has been made in view of the above points, and can generate a test case for executing a subsequent SELECT statement in accordance with the number of search result records of a plurality of SELECT statements, and the initial DB of the test execution It is an object of the present invention to provide a test data generation apparatus, method, and program having a plurality of reference accesses in a test path capable of reducing the number of state replacements.
上記の課題を解決するため、本発明(請求項1)は、テストパス中にデータベース(DB)への複数の参照アクセスをもつテスト用のデータを生成するためのテストパス中に複数の参照アクセスをもつテスト用のデータ生成装置であって、
入力された設計情報からテストケースを抽出し、テストケース記憶手段に格納するテストケース抽出手段と、
前記テストケース記憶手段から前記テストケースを読み出し、同じDB初期状態を共有可能なテストケースを、同じグループに属するテストケースの各SELECT文が抽出するレコードに重複がないようにテストケースグループとしてグルーピングし、テストケースグループ集合記憶手段に格納するテストケースグルーピング手段と、
前記テストケースグループ集合記憶手段から前記テストケースグループを読み出し、該テストケースグループのテストケースの入力変数の制約式を生成し、該テストケースが含まれるテストケースグループ集合記憶手段の制約集合に格納する入力変数制約式生成手段と、
前記テストケースグループ集合記憶手段から前記テストケースグループを取得し、該テストケースグループに含まれるテストケースのDBテーブル変数を前記テストケース記憶手段から取得し、該DBテーブル変数のレコード件数を決定し、該DBテーブル変数の参照クエリ群へSELECTクエリを追加する処理を、該レコード件数分繰り返し、レコード配置表記憶手段の該DBテーブル変数の参照クエリ群に追加し、該レコード配置表記憶手段の該DBテーブル変数を前記テストケースグループ集合記憶手段に反映させるレコード配置決定手段と、
前記テストケースグループ集合記憶手段のテストケースグループに含まれる前記DBテーブル変数について、一意性を保証する制約式を生成し、該テストケースグループ集合記憶手段に格納するDBテーブル変数制約式生成手段と、
前記テストケースグループ集合記憶手段に格納された前記制約式を任意の解法を用いて解き、テストケース毎の入力値と、該テストケースを共有するDB初期状態をテストデータとして出力する制約式解法手段と、を有する。
In order to solve the above-described problem, the present invention (Claim 1) provides a plurality of reference accesses in a test path for generating test data having a plurality of reference accesses to a database (DB) during the test path. A data generator for testing with
A test case extraction means for extracting a test case from the inputted design information and storing it in the test case storage means;
The test cases are read from the test case storage means, and test cases that can share the same initial DB state are grouped as test case groups so that there is no duplication in the records extracted by each SELECT statement of test cases belonging to the same group. , Test case grouping means for storing in the test case group set storage means,
The test case group is read from the test case group set storage means, a constraint expression of the input variables of the test cases of the test case group is generated, and stored in the constraint set of the test case group set storage means including the test case. Input variable constraint expression generation means;
Obtaining the test case group from the test case group set storage means, obtaining a DB table variable of a test case included in the test case group from the test case storage means , determining a record number of the DB table variable; The process of adding a SELECT query to the reference query group of the DB table variable is repeated for the number of records , added to the reference query group of the DB table variable of the record arrangement table storage unit, and the DB of the record arrangement table storage unit Record placement determining means for reflecting table variables in the test case group set storage means ;
For the DB table variables included in the test case a group of the test case group set storage unit, generates a constraint equation to ensure uniqueness, and DB table variable constraint expression generating means for storing in the test case groups set storage unit ,
Constraint equation solving means that solves the constraint expression stored in the test case group set storage means using an arbitrary solution and outputs the input value for each test case and the DB initial state sharing the test case as test data And having.
また、本発明(請求項2)は、前記テストケースグルーピング手段において、
グルーピング対象のテストケースから任意に1つのテストケースを選択し、選択されたテストケースのDBテーブル変数を、前記テストケースグループのDBテーブル変数に代入する手段を含む。
The present invention (Claim 2) is the test case grouping means,
Means for arbitrarily selecting one test case from the test cases to be grouped and substituting the DB table variable of the selected test case into the DB table variable of the test case group;
また、本発明(請求項3)は、前記レコード配置決定手段において、
前記レコードの件数を、各参照クエリの検索結果レコード件数の合計値とする手段を含む。
In the present invention (Claim 3), in the record arrangement determining means,
Means for setting the number of records to be the total number of search result records for each reference query.
また、本発明(請求項4)は、前記DBテーブル変数制約式生成手段において、
前記レコード配置表記憶手段の前記DBテーブル変数のSELECT文が参照するWHERE句の条件に合うレコードを生成し、参照しないレコードはWHERE句の条件に一致しないようにレコードを生成する手段を含む。
Further, the present invention (Claim 4), in the DB table variable constraint expression generation means,
It includes means for generating a record that meets a condition of a WHERE clause referenced by a SELECT statement of the DB table variable of the record arrangement table storage unit , and generating a record so that a record that is not referenced does not match the condition of the WHERE clause.
上記のように本発明によれば、SELECT文毎に、当該SELECT文が参照するレコードはWHERE句の条件に合うレコードを生成し、参照しないレコードはWHERE句の条件に一致しないようにレコードを生成するため、テストパス上の各参照アクセスで、予定した件数のレコードが過不足なく返却されることを保証し、結果として、直前のSELECT文の参照結果のレコード件数に応じて後続するSELECT文の実行を行うテストケース(テストパス)を試験するためのテストデータを構成するDB初期状態を生成することができる。 As described above, according to the present invention, for each SELECT statement, a record that the SELECT statement references generates a record that meets the conditions of the WHERE clause, and a record that does not reference generates a record that does not match the conditions of the WHERE clause. Therefore, with each reference access on the test path, it is guaranteed that the expected number of records will be returned without excess or deficiency, and as a result, the subsequent SELECT statement will be returned according to the number of records in the reference result of the previous SELECT statement. It is possible to generate an initial DB state that constitutes test data for testing a test case (test path) to be executed.
また、本発明では、同じDB初期状態を使いまわすテストケースをグルーピングすることにより、同じグループに属するテストケースの各SELECT文が抽出するレコードに、重複がないようにDB初期状態を1つ生成するため、結果として生成されたDB初期状態は、各テストケース(各テストパス)とするためのテストデータを構成するDB初期状態となる。また、DB初期状態の入れ替え回数を削減することができる。 In the present invention, by grouping test cases that reuse the same DB initial state, one DB initial state is generated so that there is no duplication in the records extracted by each SELECT statement of test cases belonging to the same group. Therefore, the DB initial state generated as a result becomes the DB initial state constituting the test data for each test case (each test pass). In addition, the number of DB initial state replacements can be reduced.
以下、図面と共に本発明の実施の形態を説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
本発明は、図2に示すように、設計情報(XML)として入力値定義、テストケース(経路)、DB定義(本実施の形態ではPersonsテーブル)を入力する。テストケースは、同一テーブル(Persons)に対してn回(同図の例では2回)の参照アクセス及びC1,C2の2回の条件分岐を行うものである。これらの設計情報から同図右側に示すように、2箇所の分岐(C1,C2)を制御するテストデータを生成する。同図の例では、条件分岐C1に対して0件、C2に対して2件のレコードを返すことを示している。 In the present invention, as shown in FIG. 2, an input value definition, a test case (path), and a DB definition (in the present embodiment, a Persons table) are input as design information (XML). In the test case, the same table (Persons) is accessed n times (2 times in the example in the figure) and the conditional branching of C1 and C2 is performed twice. As shown on the right side of the figure, test data for controlling two branches (C1, C2) is generated from the design information. In the example shown in the figure, 0 records are returned for the conditional branch C1, and 2 records are returned for C2.
図3は、本発明の一実施の形態におけるテストデータ生成装置の構成を示す。 FIG. 3 shows a configuration of the test data generation apparatus according to the embodiment of the present invention.
同図に示すテストデータ生成装置1は、テストケース抽出部10、テストケースグルーピング部30、入力変数制約式生成部40、レコード配置決定部50、DBテーブル変数制約式生成部60、制約式解法部70、テストデータ出力部80、テストケース記憶部15、テストケースグループ集合記憶部35、レコード配置表メモリ55から構成される。テストケース記憶部15、テストケースグループ集合記憶部35、レコード配置表メモリ55は、ハードディスクやメモリ等の記憶媒体である。また、レコード配置表メモリ55は、レコード配置決定部50の外部に設けているが、この例に限定されることなく、レコード配置決定部50内に具備してもよい。
Test
まず、端末2からテストデータ生成装置1に入力されるデータについて説明する。
First, data input from the
図4〜図6は、本発明の設計情報の例を示す。 4 to 6 show examples of design information of the present invention.
図4は、本発明の一実施の形態における入力されるDB定義の例である。 FIG. 4 is an example of a DB definition input according to the embodiment of the present invention.
DB定義(Personsテーブル)は、DBテーブルID、DBレコードのカラム、カラムID(String型と定義域、カラムの種類(Normal/Primary Key))、型と定義域、整数定義域、カラムの種類等が定義されている。 DB definition (Persons table) is DB table ID, DB record column, column ID (String type and domain, column type (Normal / Primary Key)), type and domain, integer domain, column type, etc. Is defined.
図5は、本発明の一実施の形態における入力されるテストケース(経路)の例である。同図(A)に示す処理フロー図は、処理内容を示すノードと、ある処理から次の処理への遷移を示すエッジからなり、ノード、ノード内容、クエリ(SELECT,UPDATE,INSERT,DELETE)ID、カラムと設定値、WHERE句条件群、次ノード接続エッジ群、エッジ、ガード条件、整数制約、整数算術式、整数項、整数比較演算子、整数因子、カラム参照、変数参照等が規定されている。なお、SELECTクエリはResultRecordCountを含む。 FIG. 5 is an example of a test case (path) that is input in one embodiment of the present invention. The processing flow diagram shown in Fig. 2A consists of a node indicating the processing content and an edge indicating the transition from one processing to the next, and the node, node content, and query (SELECT, UPDATE, INSERT, DELETE) ID , Column and setting value, WHERE clause condition group, next node connection edge group, edge, guard condition, integer constraint, integer arithmetic expression, integer term, integer comparison operator, integer factor, column reference, variable reference, etc. Yes. Note that the SELECT query includes ResultRecordCount.
図6は、本発明の一実施の形態における入力される入力値定義の例である。 FIG. 6 is an example of an input value definition to be input in an embodiment of the present invention.
入力値定義は、入力値と、その入力値のString型と定義域を含む。 An input value definition includes an input value, a String type and a domain of the input value.
上記の構成における処理を説明する。 Processing in the above configuration will be described.
図7は、本発明の一実施の形態におけるテストデータ生成装置の概要動作のフローチャートである。 FIG. 7 is a flowchart of an outline operation of the test data generation apparatus according to the embodiment of the present invention.
ステップ110) テストケース抽出部10は、端末2から入力された設計情報(XML形式)から、テストケースを抽出し、テストケース記憶部15に格納する。詳細な動作は図9で詳述する。
Step 110) The test
ステップ130) テストケースグルーピング部30は、ステップ110で抽出されたテストケースをテストケース記憶部15から読み込み、同じDB初期状態を使い回すテストケースをテストケースグループとしてグルーピングし、テストケースグループ集合記憶部35に格納する。テストケースグループ集合記憶部35には、図8に示すように、テストケースグループID(テストケース+制約集合、DBテーブル変数)毎に、テストケース記憶部15から取得したテストケースが格納される。テストケースは、テストケースId,FlowId、(テストパス、変換済み更新クエリ)、制約集合、DBテーブル変数、DBフィールド変数、参照群クエリ(SELECTクエリ)、入力変数、整数型変数を含む。
Step 130) The test
なお、本実施の形態では、ユーザ入力された、参照クエリについてグルーピングするためのパラメータに基づいて、グルーピングを行うものとする。詳細な動作は図11で詳述する。 In the present embodiment, it is assumed that grouping is performed based on a parameter input for grouping a reference query input by the user. Detailed operation will be described in detail with reference to FIG.
ステップ140) 入力変数制約式生成部40は、テストケースグループ集合記憶部35からテストケースグループを取得し、当該テストケースグループに含まれるテストケースをテストケース記憶部15から取得し、テストケースにおける入力変数の制約式を生成し、テストケースグループ集合記憶部35のテストケースグループ毎の制約集合へ追加する。当該処理を取得した全テストケースについて繰り返す。詳細な処理は図13で詳述する。
Step 140) The input variable constraint
ステップ150) レコード配置決定部50は、テストケースグループ集合記憶部35からテストケースグループを読み込み、当該テストケースグループの設計情報のDBテーブル変数をテストケース記憶部15から取得する。DBテーブル変数に基づいて、最終的に生成するDBテーブルにおけるレコードの件数、そして、各参照クエリにヒットするレコードをそれぞれどの位置に配置するかを決定する。レコード件数は各DBテーブルのクエリ(SELECT)の検索結果レコード件数(ResultRecordCount)の合計値とし、DBテーブル変数の参照クエリ群へSELECTクエリを追加する処理を、該レコード件数分繰り返し、該テストケースグループ集合記憶部35の該DBレコード変数の参照クエリ群に追加する。詳細な処理は図14で詳述する。
Step 150) The record
ステップ160) DBテーブル変数制約式生成部60は、テストケースグループ集合記憶部35からテストケースグループを読み込み、当該テストケースグループに含まれるテストケースのDBテーブル変数を抽出し、各DBフィールド変数に関する制約式を生成してテストケースグループ集合記憶部34のテストケースグループの制約集合へ追加する。加えて、各テストケースの入力変数に関する制約式も生成し、同様に制約集合へ追加する。詳細な処理は図16で詳述する。
Step 160) The DB table variable constraint
ステップ170) 制約式解法部70は、テストケースグループ集合記憶部35のテストケースグループの制約集合を読み出して、制約式を取り出し、連立不等式を解き、ランダムに解を一つ得て、テストケースグループ集合記憶部35に格納する。なお、連立不等式の解をとるために、既存の制約ソルバ(Trends in constraint Programming (Frederic Benhamou et. al., Wiley-ISTE, 1905209975, 2007)を用いる。
Step 170) The constraint
ステップ180) テストデータ出力部80は、テストケースグループ集合記憶部35から取得したテストケース毎の入力値と、テストケースで使いまわすDB初期状態値1つを、このテストケースグループの使用するテストデータとしてまとめ、出力する。当該処理には、例えば、特許文献1:特開2010-267022号公報に記載の技術を適用することが可能である。
Step 180) The test
以下に、上記の図7の各ステップの動作を詳細に説明する。 The operation of each step in FIG. 7 will be described in detail below.
<テストケース抽出部の処理(ステップ110)>
次に、図7のステップ110のテストケース抽出部10の処理について説明する。
<Process of Test Case Extraction Unit (Step 110)>
Next, the process of the test
図9は、本発明の一実施の形態におけるS110の詳細処理のフローチャートである。 FIG. 9 is a flowchart of detailed processing in S110 according to the embodiment of the present invention.
ステップ210) テストケース抽出部10は、入力された設計情報の処理フロー図からテストパスを抽出する。例えば、図5の例では、分岐条件C1カバレッジを満たすよう、全てのテストパスを抽出する。
Step 210) The test
ステップ220) 次に、抽出されたテストパスから当該テストパスを持つテストケースを作成し、テストケース記憶部15に格納する。テストケースの作成方法としては、処理フロー図から抽出したそれぞれのパスに対応するテストケース(抽出した1本のパスが1テストケースとなる)を抽出するための特許文献1(特許4966386号公報)に記載の方法を用いることが可能である。
Step 220) Next, a test case having the test path is created from the extracted test path and stored in the test
ステップ230) 設計情報のDB定義を取得し、DBテーブル変数を抽出し、テストケース記憶部15のテストケースに対応付けて追加する。テストケース記憶部15へのDBテーブル変数の追加の例を図10に示す。
Step 230) Obtain the DB definition of the design information, extract the DB table variable, and add it in association with the test case in the test
ステップ240) 設計情報の入力値定義を読み込み、入力変数と制約を抽出し、テストケース記憶部15のテストケースに対応付けて、図10に示すように追加する。図6の例では、中緑地名に対応する型、最小値、最大値を抽出し、これを図10の入力変数として、テストケースに対応付けて追加する。
Step 240) The input value definition of the design information is read, input variables and constraints are extracted, added to the test case in the test
<テストケースグルーピング部の処理(ステップ130)>
次に、図7のステップ130のテストケースグルーピング部30の処理について説明する。当該処理は、DB初期状態を使いまわすテストケース毎にグループ化し、テストケースグループ集合記憶部35に格納するものである。
<Processing of test case grouping unit (step 130)>
Next, the process of the test
図11は、本発明の一実施の形態におけるテストケースグルーピング部の詳細処理のフローチャートである。 FIG. 11 is a flowchart of detailed processing of the test case grouping unit according to the embodiment of the present invention.
ステップ610) テストケースグルーピング部30は、テストケース記憶部15からテストケース集合を読み込む。
Step 610) The test
ステップ620) 空のテストケースグループ集合をテストケースグループ集合記憶部35上に生成する。
Step 620) An empty test case group set is generated on the test case group set
ステップ630) テストケースグループ集合記憶部35に空の参照クエリテストケース集合を生成する。
Step 630) An empty reference query test case set is generated in the test case group set
ステップ650) ステップ610で読み込んだテストケースをテストケースグループ集合記憶部35の参照クエリテストケース集合に追加する。当該処理をテストケース集合の各テストケース全てに対して行う。
Step 650) The test case read in
ステップ657) ユーザから、参照クエリテストケースをまとめるためのグルーピングパラメータを取得する。 Step 657) A grouping parameter for collecting reference query test cases is acquired from the user.
ステップ660) グルーピングパラメータを元に、テストケースをグルーピングする。なお、本発明では、グルーピングパラメータは、参照クエリテストケースに対するものであり、他の更新クエリ等には適用されない。 Step 660) Group test cases based on the grouping parameters. In the present invention, the grouping parameter is for the reference query test case, and is not applied to other update queries.
具体的には、入力されたグルーピングパラメータが{[1,2,3],[4,5]}であれば、IDが1,2,3の参照クエリのテストケース群、IDが4,5の参照クエリのテストケース群をそれぞれ一つのテストグループとしてまとめる。このとき、同じグループに属するテストケースの各SELECT文が抽出するレコードに重複がないようにまとめる。なお、入力されたグルーピングパラメータを用いることに限定されることなく、任意の技術を適用しても良い。
Specifically, if the input grouping parameter is {[1, 2, 3], [4, 5]}, the test case group of the reference query with
ステップ680) テストグループに属するテストケースを任意に1つ選ぶ。なお、どのテストケースを選んでもDBテーブル変数群は同じである。 Step 680) An arbitrary test case belonging to the test group is selected. The DB table variable group is the same regardless of which test case is selected.
ステップ690) 選んだテストケースのDBテーブル変数を複製して、テストケースグループのDBテーブル変数へ代入し、図12に示すように、テストケースグループ集合記憶部35のテストケースに追加する。なお、同図では、ユーザ入力パラメータの指定に基づいてテストケースをグルーピングする例である。
Step 690) The DB table variable of the selected test case is duplicated, substituted into the DB table variable of the test case group, and added to the test case in the test case group set
本発明では、上記のように、複数のテストケースをグルーピングすることにより、グループ化したテストケースが使いまわせるDB初期状態を生成するため、1つのテストケースに対して1つのDB初期状態を生成する従来技術よりもDB初期状態の入れ替え回数が少なくなる。 In the present invention, as described above, by creating a DB initial state that can be used by grouped test cases by grouping a plurality of test cases, one DB initial state is generated for one test case. The number of replacements of the DB initial state is less than that of the prior art.
<入力変数制約式生成部の処理(ステップ140)>
次に、図7のステップ140の入力変数制約式生成部40の処理について説明する。
<Processing of Input Variable Constraint Expression Generation Unit (Step 140)>
Next, the processing of the input variable constraint
図13は、本発明の一実施の形態における入力変数制約式生成部の詳細処理のフローチャートである。下記に示す入力変数制約式の生成には従来技術を用いることができる。 FIG. 13 is a flowchart of detailed processing of the input variable constraint expression generation unit in one embodiment of the present invention. Conventional techniques can be used to generate the input variable constraint equations shown below.
ステップ810) 入力変数制約式生成部40は、テストケースグループ集合記憶部35からテストケースグループを読み込む。
Step 810) The input variable constraint
ステップ820) 読み込んだテストケースの集合からテストケースを抽出する。 Step 820) Extract test cases from the set of read test cases.
ステップ830) 抽出されたテストケースの各入力変数全てに対し、当該入力変数の定義域から制約式を生成する。詳しくは、入力変数をXとする。当該入力変数Xに対応する入力値定義の「整数定義域」の最小値(Min Value)、最大値(Max Value)を取得し、X≧Min Value、X≦Max Valueという制約式を新たに生成し、テストグループに対応付けてテストケースグループ集合記憶部35の制約集合に追加する処理を入力変数の各入力変数に対して繰り返す。
Step 830) For all the input variables of the extracted test cases, a constraint expression is generated from the domain of the input variables. Specifically, let X be the input variable. Get the minimum value (Min Value) and maximum value (Max Value) of the “integer domain” of the input value definition corresponding to the input variable X, and generate a new constraint expression of X ≧ Min Value, X ≦ Max Value The process of adding to the constraint set in the test case group set
ステップ840) 処理フロー図(図5参照)に含まれるガード条件と、テストグループ集合記憶部35から取得したテストケースグループを入力とし、ガード条件の整数制約を、テストケースグループ集合記憶部35のテストケースグループの制約集合に追加する。
Step 840) The guard condition included in the processing flow diagram (see FIG. 5) and the test case group acquired from the test group set
<レコード配置決定部の処理(ステップ150)>
次に、図7のステップ150のレコード配置決定部50の処理について説明する。
<Processing of Record Placement Determination Unit (Step 150)>
Next, the process of the record
当該処理は、DBテーブルをレコード配置表にクエリと対応付けてレコード配置表を作成するものである。 This process is to create a record arrangement table by associating a DB table with a query in the record arrangement table.
図14は、本発明の一実施の形態におけるレコード配置決定部の詳細処理のフローチャートである。 FIG. 14 is a flowchart of detailed processing of the record arrangement determination unit in the embodiment of the invention.
ステップ910) レコード配置決定部50は、テストグループ集合記憶部35からテストケースグループを読み込む。
Step 910) The record
ステップ920) テストケース記憶部15からテストケースグループに含まれるテストケースのDB定義のDBテーブル変数を読み込む。
Step 920) The DB table variable of the DB definition of the test case included in the test case group is read from the test
ステップ930) SELECTクエリの「FROM Table ID」がDBテーブル変数のIDと一致している場合は、レコード配置表メモリ55のテーブル(図15の例では、テーブル変数=「Table A」)にDBテーブル変数の参照クエリ群へSELECTクエリを追加する。 Step 930) When the “FROM Table ID” of the SELECT query matches the ID of the DB table variable, the DB table is added to the table in the record arrangement table memory 55 (table variable = “Table A” in the example of FIG. 15). Add SELECT query to variable reference query group.
当該処理を、テストケースグループに属するテストケースの各SELECTクエリに対して繰り返す。 This process is repeated for each SELECT query of test cases belonging to the test case group.
ステップ940) DB変数の参照クエリ群における各クエリQ1,Q2,…,Qn,Qiの検索結果レコード件数(ResultRecordCount)をRiとおく。DBレコードの件数Rは、R1+R2+…+Rnとし、DBレコード変数をR個生成し、DBテーブル変数へ追加する。なお、検索結果レコード件数は、図5の処理フロー図のSELECTクエリが保持する「Result RecordCount」に対応する。 Step 940) The search result record count (ResultRecordCount) of each query Q1, Q2,..., Qn, Qi in the DB variable reference query group is set to Ri. The number of DB records R is R1 + R2 + ... + Rn, and R DB record variables are generated and added to the DB table variables. The number of search result records corresponds to “Result RecordCount” held by the SELECT query in the processing flow diagram of FIG.
ステップ950) メモリ(図示せず)上にレコード位置カウンタを生成し、0で初期化する。 Step 950) Generate a record position counter on a memory (not shown) and initialize it with zero.
ステップ960) SELECTクエリをレコード配置表メモリ55のレコード配置表のDBテーブル変数のレコード位置カウンタの箇所へ登録し、レコード位置カウンタを1インクリメントする。
Step 960) The SELECT query is registered in the record position counter of the DB table variable of the record arrangement table in the record
詳しくは、DBテーブル変数の「レコード位置カウンタ」番目のDBレコード変数の参照クエリ群へSELECTクエリを追加し、テストケース毎に参照クエリ群にタグを付与する。タグは任意に設定可能であるが、例えば、テストケースIdを付与することが考えられる。その後、レコード位置カウンタを1インクリメントする。 Specifically, a SELECT query is added to the reference query group of the DB record variable “record position counter” in the DB table variable, and a tag is assigned to the reference query group for each test case. The tag can be arbitrarily set, but for example, it can be considered to give a test case Id. Thereafter, the record position counter is incremented by one.
上記の動作を、図15を用いて説明する。Q1〜Q3のクエリはSELECTクエリであり、これらのSELECTクエリはDBテーブル変数「TableA」を参照している。Q4、Q5は、更新系クエリ変換部20でSELECTクエリに変換された変換済み更新クエリである。検索結果レコード件数は、クエリQ1が1件、クエリQ2が2件、クエリQ3が3件であるため、この件数に沿って、1+2+3=6件のレコードをレコード配置表メモリ55に作成する。
The above operation will be described with reference to FIG. The queries of Q1 to Q3 are SELECT queries, and these SELECT queries refer to the DB table variable “TableA”. Q4 and Q5 are converted update queries converted into SELECT queries by the update
例えば、クエリとして、
Q1:SELECT * from TableA WHERE … ResultCount==1
Q2:SELECT * from TableA WHERE … ResultCount==2
Q3:SELECT * from TalbeA WHERE … ResultCount==3
があるとする。この場合の、レコードの配置パターンは、
レコード位置カウンタ=1:レコード[1] Q1が参照するレコード;
レコード位置カウンタ=2:レコード[2] Q2が参照するレコード;
レコード位置カウンタ=3:レコード[3] Q2が参照するレコード;
レコード位置カウンタ=4:レコード[4] Q3が参照するレコード;
レコード位置カウンタ=5:レコード[5] Q3が参照するレコード;
レコード位置カウンタ=6:レコード[6] Q3が参照するレコード;
となる。
For example, as a query:
Q1: SELECT * from TableA WHERE… ResultCount == 1
Q2: SELECT * from TableA WHERE… ResultCount == 2
Q3: SELECT * from TalbeA WHERE… ResultCount == 3
Suppose there is. In this case, the record layout pattern is
Record position counter = 1: Record [1] Record referenced by Q1;
Record position counter = 2: Record [2] Record referenced by Q2;
Record position counter = 3: Record [3] Record referenced by Q2;
Record position counter = 4: Record [4] Record referenced by Q3;
Record position counter = 5: Record [5] Record referenced by Q3;
Record position counter = 6: Record [6] Record referenced by Q3;
It becomes.
上記のSELECTクエリのレコード件数分の処理が終了したら、レコード配置表のDBテーブル変数(SELECTクエリ)をテストケースグループ集合記憶部35に反映させる。
When the processing for the number of records of the SELECT query is completed, the DB table variable (SELECT query) of the record arrangement table is reflected in the test case group set
なお、上記ではレコード配置表メモリ55のレコード配置表を用いているが、テストケースグループ集合記憶部35のDBテーブル変数の各レコード変数が持つ参照クエリ群に直接設定することが可能である。例えば、DBレコード変数として、Record1、Record2があるとき、クエリQ1,Q2を設定する場合、Record1にはクエリQ1を設定し、Record2にはクエリQ1、Q2を設定することができる。
In the above description, the record arrangement table of the record
<DBテーブル変数制約式生成部の処理(ステップ160)>
次に、図7のステップ160のDBテーブル変数制約式生成部60の処理について説明する。当該処理は、レコード配置決定部50により更新されたテストケースグループ集合記憶部35のDBテーブル変数から制約式を生成する。このとき、参照するレコードに対しては、WHERE句の条件に合うレコードを生成し、参照しないレコードに対してはWHERE句の条件に一致しないようにレコードを生成するための処理を行う。
<Processing DB table variable constraint generator (step 160)>
Next, a description is given of processing of the DB table
図16は、本発明の一実施の形態におけるDBテーブル変数制約式生成部の詳細処理のフローチャートである。 Figure 16 is a flowchart of detailed processing of the DB table variable constraint generator according to an embodiment of the present invention.
ステップ1010) DBテーブル変数制約式生成部60は、テストケースグループ集合記憶部35からテストケースグループを読み込む。
Step 1010) DB table variable constraint
ステップ1020) 読み込まれたテストケースグループ集合に含まれるテストケースを抽出し、当該テストケースのDBテーブル変数を読み込む。 Step 1020) A test case included in the read test case group set is extracted, and a DB table variable of the test case is read.
ステップ1030) DBテーブル変数のSELECTクエリのWHERE句条件群を複製する。 Step 1030) Duplicate the WHERE clause group of the SELECT query of the DB table variable.
ステップ1040) ステップ1030で複製されたWHERE句条件群に含まれる各「カラム参照」(図5の処理フロー図の「カラム参照」)を、当該「カラム参照」に対応するDBレコード変数のDBフィールド変数に置き換える。 Step 1040) For each “column reference” (“column reference” in the processing flow diagram of FIG. 5) included in the WHERE clause condition group duplicated in step 1030, the DB field of the DB record variable corresponding to the “column reference” Replace with a variable.
ステップ1050) SELECTクエリがDBレコード変数の参照クエリ群に含まれる場合には、複製クエリ条件群の論理否定を作成するため、「複製WHERE句条件群」を「NOT(複製WHERE句条件群)」へと変換し、新たな複製クエリ条件群とする。SELECTクエリが参照クエリ群に含まれない場合は当該処理をスキップする。 Step 1050) If the SELECT query is included in the reference query group of the DB record variable, in order to create a logical negation of the duplicate query condition group, “duplicate WHERE clause condition group” is set to “NOT (duplicate WHERE clause condition group)”. Into a new replication query condition group. If the SELECT query is not included in the reference query group, this process is skipped.
ステップ1060) 複製WHERE句条件群をテストケースグループ集合記憶部35のテストケースグループの制約集合へ追加する。
Step 1060) The duplicate WHERE clause condition group is added to the test case group constraint set in the test case group set
ステップ1070) テストケースグループ集合記憶部35のDBテーブル変数において、対応するカラムの種類がPrimary KeyであるDBフィールド変数をF1,F2,…,Fnとする(nはDBレコード変数の件数となる)。「F1<F2<…Fn」というFi同士の一意性を保証するための制約式を生成し、テストケースグループ集合記憶部35の制約集合へ追加する。
Step 1070) In the DB table variables of the test case group set
以下に、図17を用いてDBテーブル変数制約式生成部60の処理を説明する。
The following describes the processing of the DB table
DBテーブル変数制約式生成部60は、テーブルごとに参照クエリについて、確実に検索結果レコード件数(ResultRecordCount)で指定した件数を返すよう制約式を生成する。図17(a)のPersonsテーブルと同図(b)のテストケースグループ集合記憶部35のDBテーブル変数(レコード配置表)を読み込んで、Personsテーブルの参照クエリ(SELECT)に対して、指定された検索結果レコード件数分の制約式を生成し、テストケースグループ集合記憶部35の制約集合に追加する。同図の例において、クエリQ1:「SELECT *FROM Persons WHERE Id < 10 ResultRecordCount ==1については、同図(c)に示すように、制約式として、Id[1] Q1のWHERE句条件、「not (Age[1].>=20) not (Q2のWHERE句条件)」を設定している。
DB table variable constraint
DBテーブル変数制約式生成部60は、上記で得られた制約式をテストケース集合記憶部35に格納する。
DB table
上記のレコード配置決定部50と、DBテーブル変数制約式生成部60により、SELECT文毎に、自身が参照するレコードについては、WHERE句の条件に合うレコードを生成し、参照しないレコードはWHERE句の条件に一致しないようNOT WHERE句としてレコードを生成する。これにより、直前のSELECT文の参照結果のレコード件数に応じて後続するSELECT文の実行を行うテストケースを試験するためのテストデータを生成することが可能となる。また、テストパス上の各参照アクセスで、予定した件数のレコードが過不足なく返ってくることが保証される。結果として、直前のSELECT文の参照結果のレコード件数に応じて後続するSELECT文の実行を行うテストケース(テストパス)を試験するためのテストデータを構成するDB初期状態を生成できる。
A record
制約式解法部70は、テストケース集合記憶部35から制約式を読み込み、当該制約式に制約ソルバを適用することにより、テストケースの解を得て、テストケースグループ集合記憶部35の各テーブル変数、各DBレコードのそれぞれのDBフィールド変数に対して追加する。
The constraint
テストデータ出力部80は、テストケースグループ集合記憶部35からテストケースとテストデータを読み込み、テキスト形式でテストケースグループとテストパスを出力する。テストケースグループは、図18に示すように、テストケースグループのデータとして、テストグループId、DBテーブル変数、テストケース(Id、フローId、テストパス)、DBテーブル変数(Id、DBレコード変数)、DBレコード変数(Id、インデックス、DBフィールド変数)、DBフィールド変数(Id、整数型変数入力)、変数(Id、整数型変数)、整数型変数(変数値)を含む。
The test
なお、上記の図3に示すテストデータ生成装置の構成要素の動作をプログラムとして構築し、テストデータ生成装置として利用されるコンピュータにインストールして実行させる、または、ネットワークを介して流通させることが可能である。 The operation of the constituent elements of the test data generation apparatus shown in FIG. 3 can be constructed as a program, installed on a computer used as the test data generation apparatus, executed, or distributed via a network. It is.
本発明は、上記の実施の形態に限定されることなく、特許請求の範囲内において、種々変更・応用が可能である。 The present invention is not limited to the above-described embodiments, and various modifications and applications are possible within the scope of the claims.
1 テストデータ生成装置
2 ユーザ端末
10 テストケース抽出部
15 テストケース記憶部
30 テストケースグルーピング部
35 テストケースグループ集合記憶部
40 入力変数制約式生成部
50 レコード配置決定部
55 レコード配置表メモリ
60 DBテーブル変換制約式生成部
70 制約式解法部
80 テストデータ出力部
1 Test
Claims (9)
入力された設計情報からテストケースを抽出し、テストケース記憶手段に格納するテストケース抽出手段と、
前記テストケース記憶手段から前記テストケースを読み出し、同じDB初期状態を共有可能なテストケースを、同じグループに属するテストケースの各SELECT文が抽出するレコードに重複がないようにテストケースグループとしてグルーピングし、テストケースグループ集合記憶手段に格納するテストケースグルーピング手段と、
前記テストケースグループ集合記憶手段から前記テストケースグループを読み出し、該テストケースグループのテストケースの入力変数の制約式を生成し、該テストケースが含まれるテストケースグループ集合記憶手段の制約集合に格納する入力変数制約式生成手段と、
前記テストケースグループ集合記憶手段から前記テストケースグループを取得し、該テストケースグループに含まれるテストケースのDBテーブル変数を前記テストケース記憶手段から取得し、該DBテーブル変数のレコード件数を決定し、該DBテーブル変数の参照クエリ群へSELECTクエリを追加する処理を、該レコード件数分繰り返し、レコード配置表記憶手段の該DBテーブル変数の参照クエリ群に追加し、該レコード配置表記憶手段の該DBテーブル変数を前記テストケースグループ集合記憶手段に反映させるレコード配置決定手段と、
前記テストケースグループ集合記憶手段のテストケースグループに含まれる前記DBテーブル変数について、一意性を保証する制約式を生成し、該テストケースグループ集合記憶手段に格納するDBテーブル変数制約式生成手段と、
前記テストケースグループ集合記憶手段に格納された前記制約式を任意の解法を用いて解き、テストケース毎の入力値と、該テストケースを共有するDB初期状態をテストデータとして出力する制約式解法手段と、
を有することを特徴とするテストパス中に複数の参照アクセスをもつテスト用のデータ生成装置。 A test data generation device having a plurality of reference accesses in a test path for generating test data having a plurality of reference accesses to a database (DB) during the test path,
A test case extraction means for extracting a test case from the inputted design information and storing it in the test case storage means;
The test cases are read from the test case storage means, and test cases that can share the same initial DB state are grouped as test case groups so that there is no duplication in the records extracted by each SELECT statement of test cases belonging to the same group. , Test case grouping means for storing in the test case group set storage means,
The test case group is read from the test case group set storage means, a constraint expression of the input variables of the test cases of the test case group is generated, and stored in the constraint set of the test case group set storage means including the test case. Input variable constraint expression generation means;
Obtaining the test case group from the test case group set storage means, obtaining a DB table variable of a test case included in the test case group from the test case storage means , determining a record number of the DB table variable; The process of adding a SELECT query to the reference query group of the DB table variable is repeated for the number of records , added to the reference query group of the DB table variable of the record arrangement table storage unit, and the DB of the record arrangement table storage unit Record placement determining means for reflecting table variables in the test case group set storage means ;
For the DB table variables included in the test case a group of the test case group set storage unit, generates a constraint equation to ensure uniqueness, and DB table variable constraint expression generating means for storing in the test case groups set storage unit ,
Constraint equation solving means that solves the constraint expression stored in the test case group set storage means using an arbitrary solution and outputs the input value for each test case and the DB initial state sharing the test case as test data When,
A test data generation apparatus having a plurality of reference accesses in a test path.
グルーピング対象のテストケースから任意に1つのテストケースを選択し、選択されたテストケースのDBテーブル変数を、前記テストケースグループのDBテーブル変数に代入する手段を含む
請求項1記載のテストパス中に複数の参照アクセスをもつテスト用のデータ生成装置。 The test case grouping means includes:
The test path according to claim 1, further comprising means for arbitrarily selecting one test case from the test cases to be grouped and substituting the DB table variable of the selected test case into the DB table variable of the test case group. A test data generator with multiple reference accesses.
前記レコードの件数を、各参照クエリの検索結果レコード件数の合計値とする手段を含む
請求項1記載のテストパス中に複数の参照アクセスをもつテスト用のデータ生成装置。 The record arrangement determining means is
2. The test data generation apparatus having a plurality of reference accesses in a test path according to claim 1, further comprising means for setting the number of records as a total value of the number of search result records of each reference query.
前記レコード配置表記憶手段の前記DBテーブル変数のSELECT文が参照するWHERE句の条件に合うレコードを生成し、参照しないレコードはWHERE句の条件に一致しないようにレコードを生成する手段を含む
請求項1記載のテストパス中に複数の参照アクセスをもつテスト用のデータ生成装置。 The DB table variable constraint expression generating means,
A means for generating a record that meets a condition of a WHERE clause referred to by a SELECT statement of the DB table variable of the record arrangement table storage unit , and a record that generates a record so that a record that is not referred to does not match a condition of the WHERE clause. A test data generation apparatus having a plurality of reference accesses in one test path.
テストケース記憶手段、テストケースグループ集合記憶手段、テストケース抽出手段、テストケースグルーピング手段、入力変数制約式生成手段、レコード配置決定手段、DBテーブル変数制約式生成手段、制約式解法手段を有する装置において、
前記テストケース抽出手段が、入力された設計情報からテストケースを抽出し、前記テストケース記憶手段に格納するテストケース抽出ステップと、
前記テストケースグルーピング手段が、前記テストケース記憶手段から前記テストケースを読み出し、同じDB初期状態を共有可能なテストケースを、同じグループに属するテストケースの各SELECT文が抽出するレコードに重複がないようにテストケースグループとしてグルーピングし、テストケースグループ集合記憶手段に格納するテストケースグルーピングステップと、
前記入力変数制約式生成手段が、前記テストケースグループ集合記憶手段から前記テストケースグループを取得し、該テストケースグループに含まれるテストケースのDBテーブル変数を前記テストケース記憶手段から取得し、該テストケースの入力変数の制約式を生成し、該テストケースが含まれる前記テストケースグループ集合記憶手段の制約集合に格納する入力変数制約式生成ステップと、
前記レコード配置決定手段が、前記テストケースグループ集合記憶手段から前記テストケースグループを取得し、該テストケースグループに含まれるテストケースのDBテーブル変数を前記テストケース記憶手段から取得し、該DBテーブル変数のレコード件数を決定し、該DBテーブル変数の参照クエリ群へSELECTクエリを追加する処理を、該レコード件数分繰り返し、レコード配置表記憶手段の該DBテーブル変数の参照クエリ群に追加し、該レコード配置表記憶手段の該DBテーブル変数を前記テストケースグループ集合記憶手段に反映させるレコード配置決定ステップと、
前記DBテーブル変数制約式生成手段が、前記テストケースグループ集合記憶手段のテストケースグループに含まれる前記DBテーブル変数について、一意性を保証する制約式を生成し、該テストケースグループ集合記憶手段に格納するDBテーブル変数制約式生成ステップと、
前記制約式解法手段が、前記テストケースグループ集合記憶手段に格納された前記制約式を任意の解法を用いて解き、テストケース毎の入力値と、該テストケースを共有するDB初期状態をテストデータとして出力する制約式解法ステップと、
を行うことを特徴とするテストパス中に複数の参照アクセスをもつテスト用のデータ生成方法。 A test data generation method having a plurality of reference accesses in a test path for generating test data having a plurality of reference accesses to a database (DB) during the test path,
Test case storage unit, the test case group set storage unit, the test case extraction means, test case grouping means, the input variable constraint expression generation unit, the record arrangement determining means, DB table variable constraint expression generating means, devices having a constraint solver In
The test case extraction means extracts a test case from the inputted design information and stores it in the test case storage means;
The test case grouping unit reads the test case from the test case storage unit, and the test cases that can share the same DB initial state are not duplicated in the records extracted by the SELECT statements of the test cases belonging to the same group. A test case grouping step for grouping as test case groups and storing them in a test case group set storage means;
The input variable constraint expression generation unit acquires the test case group from the test case group set storage unit, acquires a DB table variable of a test case included in the test case group from the test case storage unit, and An input variable constraint expression generating step of generating a constraint expression of a case input variable and storing it in a constraint set of the test case group set storage means including the test case;
The record arrangement determining means acquires the test case group from the test case group set storage means, acquires a DB table variable of a test case included in the test case group from the test case storage means , and the DB table variable of determining the number of records, the process of adding a SELECT query to see query group of the DB table variable, the record number of items repeated, adding to the reference query group of the DB table variable record arrangement table storage means, the record A record placement determination step of reflecting the DB table variable of the placement table storage means in the test case group set storage means ;
The DB table variable constraint expression generating means for the DB table variables included in the test case a group of the test case group set storage unit, generates a constraint equation to ensure uniqueness, to the test case group set storage unit and DB table variable constraint expression generation step of storing,
The constraint equation solving means solves the constraint expression stored in the test case group set storage means using an arbitrary solution, and inputs test values for each test case and the DB initial state sharing the test case. A constraint solution step to output as
A test data generation method having a plurality of reference accesses in a test path.
グルーピング対象のテストケースから任意に1つのテストケースを選択し、選択されたテストケースのDBテーブル変数を、前記テストケースグループのDBテーブル変数に代入する
請求項5記載のテストパス中に複数の参照アクセスをもつテスト用のデータ生成方法。 In the test case grouping step,
6. A plurality of references in a test path according to claim 5, wherein one test case is arbitrarily selected from the test cases to be grouped, and the DB table variable of the selected test case is substituted into the DB table variable of the test case group. Data generation method for the test with access.
前記レコードの件数を、各参照クエリの検索結果レコード件数の合計値とする
請求項5記載のテストパス中に複数の参照アクセスをもつテスト用のデータ生成方法。 In the record arrangement determining step,
6. The test data generation method having a plurality of reference accesses in a test path according to claim 5, wherein the number of records is the total value of the search result records of each reference query.
前記レコード配置表記憶手段の前記DBテーブル変数のSELECT文が参照するWHERE句の条件に合うレコードを生成し、参照しないレコードはWHERE句の条件に一致しないようにレコードを生成する
請求項5記載のテストパス中に複数の参照アクセスをもつテスト用のデータ生成方法。 In the DB table variable constraint expression generation step,
6. The record according to claim 5, wherein a record that satisfies a condition of a WHERE clause referenced by a SELECT statement of the DB table variable of the record arrangement table storage unit is generated, and a record that is not referred to is generated so as not to match the condition of the WHERE clause. A data generation method for testing with multiple reference accesses in the test path.
請求項1乃至4のいずれか1項に記載のテストパス中に複数の参照アクセスをもつテスト用のデータ生成装置の各手段として機能させるためのテストパス中に複数の参照アクセスをもつテスト用のデータ生成プログラム。 Computer
A test for having a plurality of reference accesses in a test path for functioning as each means of a test data generating apparatus having a plurality of reference accesses in a test path according to any one of claims 1 to 4. Data generation program.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012199324A JP5523526B2 (en) | 2012-09-11 | 2012-09-11 | Test data generation apparatus, method and program having multiple reference accesses in test path |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012199324A JP5523526B2 (en) | 2012-09-11 | 2012-09-11 | Test data generation apparatus, method and program having multiple reference accesses in test path |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2014056307A JP2014056307A (en) | 2014-03-27 |
| JP5523526B2 true JP5523526B2 (en) | 2014-06-18 |
Family
ID=50613592
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2012199324A Active JP5523526B2 (en) | 2012-09-11 | 2012-09-11 | Test data generation apparatus, method and program having multiple reference accesses in test path |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5523526B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10241899B2 (en) | 2017-01-12 | 2019-03-26 | Hitachi, Ltd. | Test input information search device and method |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2017145300A1 (en) * | 2016-02-24 | 2017-08-31 | 三菱電機株式会社 | Test case generating device and test case generating program |
| CN110221956A (en) * | 2018-03-02 | 2019-09-10 | 富士通株式会社 | Method and apparatus for generating the test case of block chain intelligence contract |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5609681B2 (en) * | 2011-01-27 | 2014-10-22 | 富士通株式会社 | Test data generation program, method and apparatus |
-
2012
- 2012-09-11 JP JP2012199324A patent/JP5523526B2/en active Active
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10241899B2 (en) | 2017-01-12 | 2019-03-26 | Hitachi, Ltd. | Test input information search device and method |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2014056307A (en) | 2014-03-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| De Leoni et al. | A holistic approach for soundness verification of decision-aware process models | |
| Mannhardt et al. | Decision mining revisited-discovering overlapping rules | |
| US9466041B2 (en) | User selected flow graph modification | |
| Dixit et al. | Interactive data-driven process model construction | |
| KR20110027821A (en) | Data Logging in Graph-Based Calculations | |
| US10146530B1 (en) | Simulating and evaluating code branch merge | |
| Klarner et al. | Basins of attraction, commitment sets, and phenotypes of Boolean networks | |
| US20160350449A1 (en) | Exceptional logic element management | |
| JP6692281B2 (en) | Test case generation device and test case generation method | |
| Rahman | Characteristics of defective infrastructure as code scripts in devops | |
| Kessentini et al. | Automated metamodel/model co-evolution using a multi-objective optimization approach | |
| JP5523526B2 (en) | Test data generation apparatus, method and program having multiple reference accesses in test path | |
| Begicheva et al. | Discovering high-level process models from event logs | |
| Hmami et al. | Enhancing change mining from a collection of event logs: Merging and Filtering approaches | |
| Horváth et al. | Probabilistic process discovery with stochastic process trees | |
| JP6205512B2 (en) | Rule management support device and rule management support method | |
| JP7331715B2 (en) | Method and system for creating engineering data for industrial control systems | |
| Cabodi et al. | A graph‐labeling approach for efficient cone‐of‐influence computation in model‐checking problems with multiple properties | |
| JP2014056304A (en) | Device, method and program for generating minimum test data | |
| JP5523525B2 (en) | Test data generation apparatus, method and program having update access during test path | |
| JP2014056306A (en) | Db data debug support device, method and program | |
| Stepien et al. | Challenges of composing XACML policies | |
| US20230291653A1 (en) | Lazy graph construction with compression and a hybrid graph-relational model for representing a network topology | |
| JPH11282716A (en) | Estimation logic state management method for fault diagnosis, device for the same and machine readable recording medium for recording program | |
| Siddiqui et al. | Computing alignments for partially-ordered traces through petri net unfoldings |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140107 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140310 |
|
| 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: 20140401 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20140408 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 5523526 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |