JP6610037B2 - Test execution apparatus, method, and program - Google Patents

Test execution apparatus, method, and program Download PDF

Info

Publication number
JP6610037B2
JP6610037B2 JP2015133674A JP2015133674A JP6610037B2 JP 6610037 B2 JP6610037 B2 JP 6610037B2 JP 2015133674 A JP2015133674 A JP 2015133674A JP 2015133674 A JP2015133674 A JP 2015133674A JP 6610037 B2 JP6610037 B2 JP 6610037B2
Authority
JP
Japan
Prior art keywords
data
test
copy
pattern
data pattern
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
Application number
JP2015133674A
Other languages
Japanese (ja)
Other versions
JP2017016469A (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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP2015133674A priority Critical patent/JP6610037B2/en
Publication of JP2017016469A publication Critical patent/JP2017016469A/en
Application granted granted Critical
Publication of JP6610037B2 publication Critical patent/JP6610037B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Description

本発明は、テスト実施装置、方法、および、プログラム、特に、入力テストデータの登録を必要とするテスト実施装置、方法、および、プログラムに関する。   The present invention relates to a test execution device, method, and program, and more particularly, to a test execution device, method, and program that require registration of input test data.

電子計算機のために作成されたプログラムは、仕様通りの動きをするかテストされる。このテストは最初の開発時だけではなく、仕様変更時にも実施される。このテストは、仕様変更された機能のテストはもちろん、それ以外の機能のテストも含んでいる。なぜなら、仕様変更された機能以外の機能が、意図せずに変更されてしまう可能性があるからである。このようなテストは、回帰テストまたはリグレッションテストと呼ばれる。   Programs created for electronic computers are tested to see if they work as specified. This test is performed not only at the time of initial development but also at the time of specification change. This test includes tests for other functions as well as tests for changed specifications. This is because functions other than those whose specifications have been changed may be changed unintentionally. Such a test is called a regression test or a regression test.

特許文献1は、プログラムの回帰テストを自動化する装置を開示している。この装置は、前回テストを行ったときの入力テストデータや実行結果を保存しておく。テストを再度行う場合に、この装置は、自動的に、前回テストを行ったときの入力テストデータを登録し、テストを実行し、新たな実行結果と前回の実行結果を比較する。これにより、この装置は、仕様変更された機能以外の機能を、意図せずに、変更してしまっていないかを確認する。   Patent Document 1 discloses an apparatus for automating a regression test of a program. This apparatus stores input test data and execution results when the previous test was performed. When the test is performed again, this apparatus automatically registers the input test data when the previous test was performed, executes the test, and compares the new execution result with the previous execution result. Thereby, this apparatus confirms whether functions other than the function whose specification has been changed have been changed unintentionally.

このように回帰テストを含めプログラムのテストにおいては、広く一般に、テストケースごとに入力テストデータをテストデータベースに登録する必要がある。この入力テストデータの登録に時間がかかるという問題が起きている。   As described above, in a program test including a regression test, it is generally necessary to register input test data in a test database for each test case. There is a problem that it takes time to register the input test data.

特許文献2は、この入力テストデータの登録(ロード)時間を短縮する為の方法を開示する。この方法を用いたサーバ装置は、複数プログラムのテストを連続して実行する際、前のテストで更新されたテストデータ部分と、次のテストでアクセスされることとなるデータ部分との差異が最小となるように、テストの実施順序を決定する。そのうえで、このサーバ装置は、次のテストでアクセスされるデータの部分ロードまたは全体ロードを行う。なお、このサーバ装置は、各テストの最初の実行時にデータ更新情報を記録し、当該情報を用いて上述の差分を把握する。   Patent Document 2 discloses a method for shortening the registration (loading) time of the input test data. When a server device using this method continuously executes tests for a plurality of programs, the difference between the test data part updated in the previous test and the data part to be accessed in the next test is minimized. The test execution order is determined so that In addition, the server device performs partial load or full load of data accessed in the next test. The server device records data update information at the first execution of each test, and grasps the above-described difference using the information.

特開特開平4−172538号公報JP-A-4-172538 国際公開第2012/104991号International Publication No. 2012/104991

特許文献2が開示する方法は、テストの実施前に少なくとも部分的なテストデータのロードを実行する。したがって、このテストデータのロードに時間がかかるテスト環境においては、依然としてテストデータの登録時間短縮が不十分となる。さらに、この方法は、実行順序が決められているテスト、初めて実行されるテストに対しては適用できない。   The method disclosed in Patent Document 2 loads at least a part of test data before performing a test. Therefore, in the test environment where it takes a long time to load the test data, the test data registration time is still insufficiently shortened. Furthermore, this method cannot be applied to tests in which the execution order is determined or tests that are executed for the first time.

本発明は、上記課題を解決するテスト実施装置、方法、および、プログラムを提供することを目的とする。   It is an object of the present invention to provide a test execution apparatus, method, and program that solve the above-described problems.

本発明の1実施の形態のテスト実施装置は、トランザクションデータの第1と第2のデータパターンを格納する入力データ記憶手段と、前記第1のデータパターンのコピーを格納するデータベース記憶手段と、前記データベース記憶手段のデータアクセスを行うデータベース管理手段と、前記入力データ記憶手段内の前記第1と第2のデータパターンを比較して差分を抽出し、前記第1のデータパターンのコピーを使用した第1の業務処理テストを実行後、前記データベース管理手段に当該差分を前記第1のデータパターンのコピーに反映させる差分反映処理を実行し、その後、前記第2のデータパターンのコピーを使用する第2の業務処理テストを実行するテストスイート管理手段と、を備える。   The test execution apparatus according to an embodiment of the present invention includes input data storage means for storing first and second data patterns of transaction data, database storage means for storing a copy of the first data pattern, A database management unit that performs data access of the database storage unit, a first comparison between the first and second data patterns in the input data storage unit, a difference is extracted, and a copy of the first data pattern is used. After executing the first business process test, the database management means executes a difference reflection process for reflecting the difference in the first data pattern copy, and then uses the second data pattern copy. And test suite management means for executing the business process test.

本発明の1実施の形態の方法は、トランザクションデータの第1と第2のデータパターンを入力データ記憶手段に格納し、前記第1のデータパターンのコピーをデータベース記憶手段に格納し、前記入力データ記憶手段内の前記第1と第2のデータパターンを比較して差分を抽出し、前記第1のデータパターンのコピーを使用した第1の業務処理テストを実行後、当該差分を前記第1のデータパターンのコピーに反映する差分反映処理を実行し、その後、前記第2のデータパターンのコピーを使用する第2の業務処理テストを実行する。   According to one embodiment of the present invention, the first and second data patterns of transaction data are stored in input data storage means, a copy of the first data pattern is stored in database storage means, and the input data The first and second data patterns in the storage means are compared to extract a difference, and after executing a first business process test using a copy of the first data pattern, the difference is converted to the first data pattern. A difference reflection process to be reflected in the copy of the data pattern is executed, and then a second business process test using the copy of the second data pattern is executed.

本発明の1実施の形態のプログラムは、トランザクションデータの第1と第2のデータパターンを入力データ記憶手段に格納する処理と、前記第1のデータパターンのコピーをデータベース記憶手段に格納する処理と、前記データベース記憶手段のデータアクセスを行うデータベース管理処理と、前記入力データ記憶手段内の前記第1と第2のデータパターンを比較して差分を抽出し、前記第1のデータパターンのコピーを使用した第1の業務処理テストを実行後、前記データベース管理処理により当該差分を前記第1のデータパターンのコピーに反映させる差分反映処理を実行し、その後、前記第2のデータパターンのコピーを使用する第2の業務処理テストを実行するテストスイート管理処理と、をコンピュータに実行させる。   A program according to an embodiment of the present invention includes a process for storing first and second data patterns of transaction data in input data storage means, and a process for storing a copy of the first data pattern in database storage means. A database management process for accessing data in the database storage means, and comparing the first and second data patterns in the input data storage means to extract a difference and using a copy of the first data pattern After executing the first business process test, a difference reflection process for reflecting the difference on the copy of the first data pattern is executed by the database management process, and then the copy of the second data pattern is used. The computer is caused to execute a test suite management process for executing the second business process test.

本発明にかかるテスト実施装置は、連続して実施されるテストのテストデータの登録を高速に行うことが出来る。   The test execution apparatus according to the present invention can register test data of tests that are continuously performed at high speed.

図1は、第1の実施の形態にかかるテスト実施装置30の構成図である。FIG. 1 is a configuration diagram of a test execution device 30 according to the first embodiment. 図2は、コンピュータ装置40の構成図である。FIG. 2 is a configuration diagram of the computer device 40. 図3は、テストスイート定義記憶部33に格納されているテストスイート定義情報の構成図である。FIG. 3 is a configuration diagram of test suite definition information stored in the test suite definition storage unit 33. 図4は、テストスイート管理部31の動作概要を示すフローチャートである。FIG. 4 is a flowchart showing an outline of the operation of the test suite management unit 31. 図5は、テストスイート管理部31のマスタデータ登録処理の動作フローチャートである。FIG. 5 is an operation flowchart of the master data registration process of the test suite management unit 31. 図6は、テストスイート管理部31のトランザクションデータ登録処理の動作フローチャートである。FIG. 6 is an operation flowchart of transaction data registration processing of the test suite management unit 31. 図7は、読込管理表37の構成を示す図である。FIG. 7 is a diagram showing the configuration of the read management table 37. 図8は、トランザクションデータのデータパターン例を示す図である。FIG. 8 is a diagram illustrating an example data pattern of transaction data. 図9は、第2の実施の形態にかかるテスト実施装置30の構成図である。FIG. 9 is a configuration diagram of the test execution apparatus 30 according to the second embodiment.

プログラムのテスト、例えば、回帰テスト、を行う場合に、テストを実施する前提となる入力テストデータの原本を新たにテストシステムに格納する必要がある。これをテストケースごとに行うと、入力テストデータの格納に時間がかかる。本発明にかかるテストシステム(テスト実施装置30)は、テストケースごとに入力テストデータの格納をできるだけしないようにすることで、テストの実施を高速化する。   When performing a test of a program, for example, a regression test, it is necessary to newly store the original input test data, which is a precondition for executing the test, in the test system. If this is done for each test case, it takes time to store the input test data. The test system (test execution apparatus 30) according to the present invention speeds up test execution by minimizing the storage of input test data for each test case.

<第1の実施の形態>
<構成>
図1は、本実施の形態にかかるテスト実施装置30の構成図である。テスト実施装置30は、テストスイート管理部31、データベース管理部32、テストスイート定義記憶部33、テストプログラム記憶部34、入力データ記憶部35、データベース記憶部36、および、読込管理表37を備える。
<First Embodiment>
<Configuration>
FIG. 1 is a configuration diagram of a test execution apparatus 30 according to the present embodiment. The test execution apparatus 30 includes a test suite management unit 31, a database management unit 32, a test suite definition storage unit 33, a test program storage unit 34, an input data storage unit 35, a database storage unit 36, and a read management table 37.

テストスイート定義記憶部33は、テストスイート定義情報を記憶する。テストスイート定義情報は1以上のテストスイートを定義し、テストスィートごとに複数のテストケースを定義する。さらに、テストスイート定義情報は、テストスィート内の各テストケースの実施順序、使用するテストデータ、および、使用するテストプログラム、等を定義する。   The test suite definition storage unit 33 stores test suite definition information. The test suite definition information defines one or more test suites, and defines a plurality of test cases for each test suite. Furthermore, the test suite definition information defines the execution order of each test case in the test suite, the test data to be used, the test program to be used, and the like.

テストプログラム記憶部34は、各テストケースで使用されるテストプログラムを記憶する。   The test program storage unit 34 stores a test program used in each test case.

入力データ記憶部35は、各テストケースで使用される入力テストデータの原本を記憶する。データベース記憶部36は、あるテストケースが実施されている間、当該テストケースで使用される入力テストデータのコピーを記憶する。各テストケースにおいて、テストプログラムは、データベース記憶部36に登録されている入力テストデータをアクセスして、テストを実施する。   The input data storage unit 35 stores the original input test data used in each test case. The database storage unit 36 stores a copy of input test data used in a test case while a test case is being executed. In each test case, the test program accesses the input test data registered in the database storage unit 36 and performs the test.

入力テストテータは、大きく2種類に分類される。それらは、トランザクションデータとマスタデータである。マスタデータは複数の業務処理に共通のデータであり、トランザクションデータはある業務処理固有のデータである。マスタデータは、例えば、銀行口座情報である。トランザクションデータは、例えば、オンライン取引トランザクションデータ、日次バッチ処理用データ、月次バッチ処理用データである。   Input test data is roughly classified into two types. They are transaction data and master data. Master data is data common to a plurality of business processes, and transaction data is data specific to a certain business process. The master data is, for example, bank account information. The transaction data is, for example, online transaction transaction data, daily batch processing data, and monthly batch processing data.

入力テストデータのうちトランザクションデータは、テストケースごとに、当該テストケース用に毎回新たにデータベース記憶部36に登録される必要がある。一方、マスタデータは、必ずしもテストケースごとに毎回データベース記憶部36に登録される必要はない。   Of the input test data, transaction data needs to be newly registered in the database storage unit 36 for each test case for each test case. On the other hand, the master data does not necessarily have to be registered in the database storage unit 36 every test case.

なお、トランザクションデータは、テストケースごとにデータが異なるのであるが、異なるデータは一部だけであることが多い。例えば、トランザクションデータが複数のレコードの集合である場合、各レコードのすべてのデータ項目が異なっているわけではない、異なっているのはごく一部のデータ項目であり、他のデータ項目は同じであるようなケースが多い。   Note that transaction data is different for each test case, but only a part of the data is different. For example, if the transaction data is a collection of records, not all data items in each record are different, only a few data items are different, and other data items are the same. There are many cases.

例えば、ある整数データ項目の値が100以上かどうかで処理が分岐するような閾値に関するテストケースに使用されるトランザクションデータは、当該整数データ項目の値が異なる2つのレコードを包含する。この2つのレコードは、例えば、当該整数データ項目の値が100のレコードと99のレコードである。しかし、その2つのレコードの中で、値が異なるのは当該整数データ項目のみであり、他のデータ項目の値に差異は無い場合が多い。   For example, transaction data used in a test case relating to a threshold value that causes a process to branch depending on whether a value of an integer data item is 100 or more includes two records having different values of the integer data item. These two records are, for example, a record in which the value of the integer data item is 100 and a record in 99. However, in the two records, only the integer data item has a different value, and there is often no difference in the values of the other data items.

本実施の形態にかかるテスト実施装置30は、トランザクションデータをマスタデータと区別したうえで、トランザクションデータのこの特性を利用して、テストデータを効率よくデータベース記憶部36に登録する。   The test execution device 30 according to the present embodiment distinguishes the transaction data from the master data and uses this characteristic of the transaction data to efficiently register the test data in the database storage unit 36.

読込管理表37は、既にデータベース記憶部36に登録された入力テストデータを記録している表である。既にデータベース記憶部36に登録された入力テストデータとは、実施済みのテストケースで使用された入力テストデータである。   The read management table 37 is a table in which input test data already registered in the database storage unit 36 is recorded. The input test data already registered in the database storage unit 36 is input test data used in a test case that has already been performed.

テストスイート管理部31は、テストスイート定義情報に基づいて、利用者から指定されたテストスィート内の各テストケースを実施する。すなわち、テストスイート管理部31は、指定されたテストスイートのテストスイート定義情報から、各テストケースの情報を定義された順番に取り出し、定義された入力テストデータのコピーをデータベース記憶部36に登録する。テストスイート管理部31は、その後、定義されたテストプログラムを起動する。テストスイート管理部31は、テストプログラムの実行が終了したとき、所定の結果データに基づいて当該テストケースの正常/異常を判定しても良い。   The test suite management unit 31 executes each test case in the test suite designated by the user based on the test suite definition information. In other words, the test suite management unit 31 extracts the test case information from the test suite definition information of the specified test suite in the defined order, and registers a copy of the defined input test data in the database storage unit 36. . Thereafter, the test suite management unit 31 activates the defined test program. The test suite manager 31 may determine whether the test case is normal or abnormal based on predetermined result data when the execution of the test program is completed.

データベース管理部32は、テストスイート管理部31やテストプログラムから指示を受け、データベース記憶部36内のデータにアクセスする。データベース管理部32は、例えば、リレーショナルデータベースシステムである。データベース管理部32は、データの更新履歴と更新前後のデータをログファイルに保存しており、テストスイート管理部31の要求に応じて、データ更新の有無の判断とその情報提供、及び、更新データを復元する処理を行う。   The database management unit 32 receives an instruction from the test suite management unit 31 or the test program and accesses data in the database storage unit 36. The database management unit 32 is, for example, a relational database system. The database management unit 32 stores the update history of the data and the data before and after the update in a log file. In response to a request from the test suite management unit 31, it determines whether or not to update the data, provides information thereof, and updates the data. Process to restore.

ここで、テストスイート管理部31、および、データベース管理部32は、論理回路で構成される。テストスイート定義記憶部33、テストプログラム記憶部34、入力データ記憶部35、および、データベース記憶部36は、ディスク装置、または、半導体記憶装置等の記憶装置である。読込管理表37は、RAM(Random Access Memory)等の半導体記憶装置に格納されている。   Here, the test suite management unit 31 and the database management unit 32 are configured by logic circuits. The test suite definition storage unit 33, the test program storage unit 34, the input data storage unit 35, and the database storage unit 36 are storage devices such as disk devices or semiconductor storage devices. The read management table 37 is stored in a semiconductor storage device such as a RAM (Random Access Memory).

なお、テスト実施装置30は、コンピュータ装置40により実現されても良い。図2は、コンピュータ装置40の構成図である。   Note that the test execution device 30 may be realized by the computer device 40. FIG. 2 is a configuration diagram of the computer device 40.

コンピュータ装置40は、バス44で相互に接続された、プロセッサ41、主記憶部43、および、外部記憶装置42を備える。プロセッサ41は、バス44を経由して、主記憶部43、および、外部記憶装置42に対してデータの読み書きを行う。また、プロセッサ41は、主記憶部43に格納されているプログラム45を実行する。なお、プログラム45は、当初外部記憶装置42に格納されており、コンピュータ装置40の初期設定時に、プロセッサ41が外部記憶装置42から主記憶部43にロードしても良い。   The computer device 40 includes a processor 41, a main storage unit 43, and an external storage device 42 that are connected to each other via a bus 44. The processor 41 reads and writes data from and to the main storage unit 43 and the external storage device 42 via the bus 44. Further, the processor 41 executes a program 45 stored in the main storage unit 43. The program 45 is initially stored in the external storage device 42, and the processor 41 may be loaded from the external storage device 42 into the main storage unit 43 when the computer device 40 is initially set.

ここで、主記憶部43はRAM等の半導体記憶装置である。外部記憶装置42はディスク装置、または、半導体記憶装置等の記憶装置である。   Here, the main storage unit 43 is a semiconductor storage device such as a RAM. The external storage device 42 is a storage device such as a disk device or a semiconductor storage device.

プロセッサ41は、プログラム45を実行することにより、テストスイート管理部31、および、データベース管理部32として機能する。すなわち、プロセッサ41は、プログラム45を実行することにより、テストスイート管理部31、および、データベース管理部32が行う処理を実行する。外部記憶装置42は、テストスイート定義記憶部33、テストプログラム記憶部34、入力データ記憶部35、および、データベース記憶部36として機能する。さらに、プロセッサ41は、主記憶部43に読込管理表37を作成する。   The processor 41 functions as the test suite management unit 31 and the database management unit 32 by executing the program 45. That is, the processor 41 executes the process performed by the test suite management unit 31 and the database management unit 32 by executing the program 45. The external storage device 42 functions as a test suite definition storage unit 33, a test program storage unit 34, an input data storage unit 35, and a database storage unit 36. Further, the processor 41 creates a read management table 37 in the main storage unit 43.

図3は、テストスイート定義記憶部33に格納されているテストスイート定義情報の構成図である。テストスイート定義情報は、例えば、テストスイート内のテストケース対応の複数の行レコードを包含する。各行レコードは、例えば、テストスイートID(Identification)、テストケースID、実施順、トランザクションデータ定義、マスタデータ定義、テストプログラムIDを包含する。   FIG. 3 is a configuration diagram of test suite definition information stored in the test suite definition storage unit 33. The test suite definition information includes, for example, a plurality of row records corresponding to test cases in the test suite. Each row record includes, for example, a test suite ID (Identification), a test case ID, an execution order, a transaction data definition, a master data definition, and a test program ID.

テストスイートID、および、テストケースIDは、それぞれ、テストスイート、および、テストケースの識別情報である。実施順は、当該テストケースが実行される、当該テストスイートの中における順序を定義する。テストプログラムIDは、当該テストケースで使用されるテストプログラムを定義する。   The test suite ID and the test case ID are identification information of the test suite and the test case, respectively. The execution order defines the order in the test suite in which the test case is executed. The test program ID defines a test program used in the test case.

トランザクションデータ定義は、当該テストケースで使用される1以上のトランザクションデータとそのデータパターンを定義している。入力データ記憶部35は、トランザクションデータ毎に、複数のデータパターンのデータの原本を格納している。   The transaction data definition defines one or more transaction data used in the test case and its data pattern. The input data storage unit 35 stores original data of a plurality of data patterns for each transaction data.

図3のテストスイート定義情報例の先頭行は、テストスイートT01のテストケースAが、トランザクションデータAのデータパターンAAを用いることを示している。第2行は、テストスイートT01のテストケースBが、同じトランザクションデータAであるが異なるパターンのデータであるデータパターンABを用いることを示している。さらに、第3行は、テストスイートT01のテストケースCが、同じトランザクションデータAであるが第3のパターンのデータであるデータパターンACを用いることを示している。ここで、トランザクションデータAのパターンAA、AB、及び、ACは、大部分が類似し、一部のデータ項目の値だけが異なっているデータかもしれない。   The first line of the test suite definition information example in FIG. 3 indicates that the test case A of the test suite T01 uses the data pattern AA of the transaction data A. The second row shows that the test case B of the test suite T01 uses the data pattern AB which is the same transaction data A but different pattern data. Further, the third row shows that the test case C of the test suite T01 uses the same transaction data A but the data pattern AC that is the third pattern data. Here, the patterns AA, AB, and AC of the transaction data A may be data that is mostly similar and only the values of some data items are different.

マスタデータ定義は、当該テストケースで使用される1以上のマスタデータを定義している。マスタデータは、複数のテストケースで共有されるデータである。入力データ記憶部35は、マスタデータ対応にデータの原本を格納している。   The master data definition defines one or more master data used in the test case. Master data is data shared by a plurality of test cases. The input data storage unit 35 stores the original data corresponding to the master data.

図3のテストスイート定義情報例の先頭行は、テストスイートT01のテストケースAは、マスタデータXを用いることを示している。第2行は、テストスイートT01のテストケースBは、マスタデータXとYを用いることを示している。さらに、第3行は、テストスイートT01のテストケースCは、マスタデータYを用いることを示している。   The first line of the test suite definition information example in FIG. 3 indicates that the master data X is used for the test case A of the test suite T01. The second row indicates that the test data B of the test suite T01 uses the master data X and Y. Further, the third row indicates that the master data Y is used for the test case C of the test suite T01.

<動作>
テスト実施装置30の利用者は、テストを実施する前に、テストスイート定義情報を準備し、テストスイート定義記憶部33に格納しておく。このとき、利用者は、各テストケースが入力・更新するデータを、トランザクションデータかマスタデータかを区別して定義しておく。
<Operation>
The user of the test execution device 30 prepares test suite definition information and stores it in the test suite definition storage unit 33 before executing the test. At this time, the user defines the data to be input / updated by each test case by distinguishing whether the data is transaction data or master data.

また、利用者は、テストスイート定義情報に定義したマスタデータを準備して、入力データ記憶部35に格納しておく。さらに利用者は、テストスイート定義情報に定義したトランザクションデータの各データパターンを準備して、入力データ記憶部35に格納しておく。   Further, the user prepares master data defined in the test suite definition information and stores it in the input data storage unit 35. Further, the user prepares each data pattern of transaction data defined in the test suite definition information and stores it in the input data storage unit 35.

そのうえで、利用者は、テストを実施するテストスイートのIDを指定して、テストスイート管理部31を起動する。利用者は、テスト実施装置30に接続されている図示されないコンソール装置等を使用して、テストスイート管理部31を起動する。   In addition, the user activates the test suite management unit 31 by specifying the ID of the test suite for performing the test. The user activates the test suite management unit 31 using a console device (not shown) connected to the test execution device 30.

図4は、テストスイート管理部31の動作概要を示すフローチャートである。テストスイート管理部31は、テストスイート定義情報から、指定されたテストスイートのテストケースの情報を順次取り出す(S1)。テストスイート管理部31は、各テストケースを、テストスイート定義情報に記載されている順序で取り出す。   FIG. 4 is a flowchart showing an outline of the operation of the test suite management unit 31. The test suite management unit 31 sequentially extracts information on the test cases of the designated test suite from the test suite definition information (S1). The test suite management unit 31 extracts each test case in the order described in the test suite definition information.

テストスイート管理部31は、マスタデータ定義で示されている当該テストケースで使用するマスタデータをデータベース記憶部36に登録する(S2;詳細は後述)。次いで、テストスイート管理部31は、トランザクション定義で示されている当該テストケースで使用するトランザクションデータのデータパターンをデータベース記憶部36に登録する(S3;詳細は後述)。   The test suite management unit 31 registers the master data used in the test case indicated by the master data definition in the database storage unit 36 (S2; details will be described later). Next, the test suite management unit 31 registers the data pattern of transaction data used in the test case indicated in the transaction definition in the database storage unit 36 (S3; details will be described later).

入力テストデータのデータベース記憶部36への登録を完了した後、テストスイート管理部31は、テストプログラムIDで示されている当該テストケースで使用するテストプログラムを起動する。テストプログラムは、データベース記憶部36に登録されている入力テストデータを参照または更新しながら、テストを実行する(S5)。テストプログラムの実行後、テストスイート管理部31は、テストプログラムの出力値や、テストプログラムが更新した入力テストデータの内容からテストの良否を判断し、判断結果を装置外部に出力しても良い。   After completing the registration of the input test data in the database storage unit 36, the test suite management unit 31 activates the test program used in the test case indicated by the test program ID. The test program executes the test while referring to or updating the input test data registered in the database storage unit 36 (S5). After execution of the test program, the test suite management unit 31 may determine whether the test is good or bad from the output value of the test program and the content of the input test data updated by the test program, and may output the determination result to the outside of the apparatus.

テストスイート管理部31は、以上の動作を、指定されたテストスイートの全てのテストケースのテストが終了するまで(S5でY)、繰り返す
図5は、テストスイート管理部31のマスタデータ登録処理の動作フローチャートである。この処理は、図4のフローチャートのS2で実行される。
The test suite management unit 31 repeats the above operation until the test of all the test cases of the designated test suite is completed (Y in S5). FIG. 5 shows the master data registration process of the test suite management unit 31. It is an operation | movement flowchart. This process is executed in S2 of the flowchart of FIG.

テストスイート管理部31は、まず、いまから実施しようとするテストケースのマスタデータが既にデータベース記憶部36に登録済みであるか否かをチェックする(S11)。このチェックは、以前に実施されたテストケースにより、いまから実施しようとするテストケースのマスタデータが既に登録されたか否かをチェックするものである。このチェックは、読込管理表37を参照して行われる。   First, the test suite management unit 31 checks whether or not the master data of the test case to be implemented has already been registered in the database storage unit 36 (S11). This check is to check whether or not the master data of the test case to be executed has already been registered by the test case executed before. This check is performed with reference to the read management table 37.

図7は、読込管理表37の構成を示す図である。読込管理表37は、テストスイート定義情報に登録されているマスタデータおよびトランザクションデータごとに、既に登録が『済み』であるか『否』か、を示すフラグを記録する。テストスイート管理部31は、起動されるとすぐ(S1より以前)に、読込管理表37を生成して初期化する。初期状態において、読込管理表37の全てのマスタデータおよびトランザクションデータのフラグは、『否』(図7では空欄で示されている)の状態を示す。   FIG. 7 is a diagram showing the configuration of the read management table 37. The read management table 37 records a flag indicating whether registration is already “completed” or “not” for each master data and transaction data registered in the test suite definition information. As soon as the test suite management unit 31 is activated (before S1), it generates and initializes the read management table 37. In the initial state, the flags of all master data and transaction data in the read management table 37 indicate a state of “No” (indicated by a blank in FIG. 7).

図7のA)は、図3のテストスイート定義情報例に基づく、初期状態の読込管理表37を示す。この読込管理表37は、トランザクションデータA及びB、並びに、マスタデータX及びYのいずれも、未登録であることを示している。   FIG. 7A shows an initial read management table 37 based on the test suite definition information example shown in FIG. The read management table 37 indicates that both the transaction data A and B and the master data X and Y are unregistered.

いまから実施しようとするテストケースのマスタデータが未だ登録されていなければ(S11でN)、テストスイート管理部31は、入力データ記憶部35のマスタデータ原本を読み込んで、データベース記憶部36に登録する(S14)。テストスイート管理部31は、データベース管理部32を用いてデータベース記憶部36にデータを登録する。このとき、テストスイート管理部31は、登録した当該マスタデータが登録済みとなったことを、読込管理表37に記録する。   If the master data of the test case to be implemented is not yet registered (N in S11), the test suite management unit 31 reads the master data original in the input data storage unit 35 and registers it in the database storage unit 36. (S14). The test suite management unit 31 registers data in the database storage unit 36 using the database management unit 32. At this time, the test suite management unit 31 records in the read management table 37 that the registered master data has been registered.

このように、テストスイート管理部31は、トランザクションデータA及びB、並びに、マスタデータX及びYの何れかを始めて登録するたびに、その登録を読込管理表37に記録していく。   As described above, the test suite management unit 31 records the registration in the read management table 37 each time the transaction data A and B and the master data X and Y are registered for the first time.

図7のB)は、図3のテストスイート定義情報例の1行目のテストケース(テストスイートT01、テストケースA)のマスタデータ、及び、トランザクションデータ登録後の読込管理表37を示す。なお、各テストケースは、図3で記載されている実施順に実施される。この読込管理表37は、マスタデータXとトランザクションデータAが登録済みであることを示している。   FIG. 7B shows master data of the test case (test suite T01, test case A) in the first line of the test suite definition information example of FIG. 3, and the read management table 37 after transaction data registration. In addition, each test case is implemented in the implementation order described in FIG. This read management table 37 indicates that master data X and transaction data A have been registered.

図7のC)は、図3のテストスイート定義情報例の2行目のテストケース(テストスイートT01、テストケースB)のマスタデータ、及び、トランザクションデータ登録後の読込管理表37を示す。この読込管理表37は、マスタデータXとY、並びに、トランザクションデータAが登録済みであることを示している。   FIG. 7C shows the master data of the test case (test suite T01, test case B) on the second line of the test suite definition information example of FIG. 3, and the read management table 37 after transaction data registration. This read management table 37 indicates that master data X and Y and transaction data A have been registered.

なお、図3のテストスイート定義情報例の3行目のテストケース(テストスイートT01、テストケースC)のマスタデータ、及び、トランザクションデータ登録後の読込管理表37も、図7のC)通りである。その理由は、当該テストケースで使用されるマスタデータXとトランザクションデータAは、それ以前のテストケースで登録されているからである。   Note that the master data of the test case (test suite T01, test case C) on the third line of the test suite definition information example of FIG. 3 and the read management table 37 after transaction data registration are also as shown in FIG. 7C). is there. This is because the master data X and transaction data A used in the test case are registered in the previous test case.

図7のD)は、図3のテストスイート定義情報例の4行目のテストケース(テストスイートT02、テストケースα)のマスタデータ、及び、トランザクションデータ登録後の読込管理表37を示す。なお、テストスイートT02は、テストスイートT02に続いて実施されたとする。この読込管理表37は、マスタデータXとY、並びに、トランザクションデータAとBが登録済みであることを示している。   FIG. 7D shows the master data of the test case (test suite T02, test case α) on the fourth line of the test suite definition information example of FIG. 3, and the read management table 37 after transaction data registration. Note that it is assumed that the test suite T02 is performed after the test suite T02. This read management table 37 indicates that master data X and Y and transaction data A and B have been registered.

図5に戻り、いまから実施しようとするテストケースのマスタデータが登録済みであれば(S11でY)、テストスイート管理部31は、データベース管理部32に当該マスタデータの更新の有無、更新データの復元の可否を問い合わせる。すなわち、テストスイート管理部31は、以前に実施されたテストケースの実施過程で、いまから実施しようとするテストケースのマスタデータが変更を受けているのか、変更を受けていれば元に戻せるのかを、データベース管理部32を用いてチェックする。   Returning to FIG. 5, if the master data of the test case to be implemented has already been registered (Y in S11), the test suite management unit 31 updates the database management unit 32 with whether or not the master data has been updated. Queries the availability of restoration. In other words, the test suite management unit 31 has changed whether or not the master data of the test case to be executed has been changed in the course of executing the test case that has been executed before, or can be restored if it has been changed. Is checked using the database management unit 32.

更新が無い場合(S12でN)、登録済みマスタデータは再使用可能であるので、テストスイート管理部31は当該マスタデータの登録処理を終了する。   When there is no update (N in S12), since the registered master data can be reused, the test suite management unit 31 ends the master data registration process.

更新があっても(S12でY)、更新データの復元が可能な場合(S15でY)、テストスイート管理部31は、データベース管理部32に依頼して更新データの復元を行う(S17)。更新データが復元されれば、登録済みマスタデータは再使用可能であるので、テストスイート管理部31は当該マスタデータの登録処理を終了する。   If there is an update (Y in S12) and update data can be restored (Y in S15), the test suite management unit 31 requests the database management unit 32 to restore the update data (S17). If the update data is restored, the registered master data can be reused, and the test suite management unit 31 ends the master data registration process.

更新があって(S12でY)、かつ、更新データの復元が不可能な場合(S15でN)、テストスイート管理部31は、登録済みデータをデータベース記憶部36から削除する(S16)。そして、テストスイート管理部31は、入力データ記憶部35のマスタデータ原本を読み込んで、データベース記憶部36に登録し直す(S18)。   If there is an update (Y in S12) and the update data cannot be restored (N in S15), the test suite management unit 31 deletes the registered data from the database storage unit 36 (S16). Then, the test suite management unit 31 reads the master data original in the input data storage unit 35 and re-registers it in the database storage unit 36 (S18).

当該マスタデータの登録処理を終了する(S12でY、S14、S17、S18)と、テストスイート管理部31は、いまから実施しようとするテストケースのマスタデータが全て登録済みであれば(S13でY)、マスタデータの登録処理を終了する。いまから実施しようとするテストケースのマスタデータで未登録なものがあれば(S13でN)、テストスイート管理部31は、次のマスタデータの登録処理を行う(S11に戻る)。   When the master data registration process ends (Y in S12, S14, S17, and S18), the test suite management unit 31 has already registered all the master data of the test case to be implemented (S13). Y) The master data registration process is terminated. If there is unregistered master data of the test case to be executed from now (N in S13), the test suite management unit 31 performs the next master data registration process (returns to S11).

図6は、テストスイート管理部31のトランザクションデータ登録処理の動作フローチャートである。この処理は、図4のフローチャートのS3で実行される。   FIG. 6 is an operation flowchart of transaction data registration processing of the test suite management unit 31. This process is executed in S3 of the flowchart of FIG.

テストスイート管理部31は、まず、いまから実施しようとするテストケースのトランザクションデータが既にデータベース記憶部36に登録済みであるか否かをチェックする(S21)。この時、テストスイート管理部31は、トランザクションデータの登録有無をチェックするのであり、これから登録しようとするデータパターンの登録有無をチェックするのではない。   First, the test suite management unit 31 checks whether or not the transaction data of the test case to be implemented has already been registered in the database storage unit 36 (S21). At this time, the test suite management unit 31 checks whether the transaction data is registered, and does not check whether the data pattern to be registered is registered.

このチェックは、以前に実施されたテストケースにより、いまから実施しようとするテストケースのトランザクションデータが既に登録されたか否かをチェックするものである。このチェックは、前述した読込管理表37を参照して行われる。   This check is to check whether or not the transaction data of the test case to be executed has already been registered by the test case executed previously. This check is performed with reference to the read management table 37 described above.

いまから実施するテストケースのトランザクションデータが未だ登録されていなければ(S21でN)、テストスイート管理部31は、いまから実施するテストケースのトランザクションデータデータパターンの原本を読み込んで登録する(S28)。テストスイート管理部31は、当該データパターンを、入力データ記憶部35から読み込んで、データベース記憶部36に登録する。   If the transaction data of the test case to be executed is not yet registered (N in S21), the test suite management unit 31 reads and registers the original transaction data data pattern of the test case to be executed (S28). . The test suite management unit 31 reads the data pattern from the input data storage unit 35 and registers it in the database storage unit 36.

このとき、テストスイート管理部31は、登録したトランザクションデータを読込管理表37に記録する。テストスイート管理部31は、登録したトランザクションデータのデータパターンを読込管理表37に記録しても良い。こうすることで、テストスイート管理部31は、トランザクションデータが登録されている場合に、どのデータパターンが登録されていたのかを簡単に知ることが出来る。   At this time, the test suite management unit 31 records the registered transaction data in the read management table 37. The test suite management unit 31 may record the data pattern of the registered transaction data in the read management table 37. By doing so, the test suite management unit 31 can easily know which data pattern is registered when transaction data is registered.

いまから実施しようとするテストケースのトランザクションデータが登録済みであれば(S21でY)、テストスイート管理部31は、データベース管理部32に当該トランザクションデータの更新の有無、更新データの復元の可否を問い合わせる。すなわち、テストスイート管理部31は、以前に実施されたテストケースの実施過程で、いまから実施しようとするテストケースのトランザクションデータが変更を受けているのか、変更を受けていれば元に戻せるのかを、チェックする。   If the transaction data of the test case to be executed has already been registered (Y in S21), the test suite management unit 31 determines whether or not the transaction data is updated and whether or not the update data can be restored. Inquire. In other words, the test suite management unit 31 determines whether the transaction data of the test case to be executed has been changed in the course of executing the test case that has been executed before, or can be restored if it has been changed. Check.

更新が無い場合(S22でN)、テストスイート管理部31は、既に登録されているデータパターン(以降、前パターン)を、いまから実施しようとするテストケースのトランザクションデータのデータパターン(以降、新パターン)に変更する。この処理は、差分反映処理と呼ばれる。   If there is no update (N in S22), the test suite management unit 31 uses the already registered data pattern (hereinafter referred to as the previous pattern) as the data pattern (hereinafter referred to as the new data pattern) of the test case transaction data to be executed. Pattern). This process is called a difference reflection process.

更新があっても(S22でY)、更新データの復元が可能な場合(S29でY)、テストスイート管理部31は、データベース管理部32に依頼して更新データの復元を行う(S31)。更新データが復元されれば、テストスイート管理部31は、差分反映処理を実行する。   Even if there is an update (Y in S22), if the update data can be restored (Y in S29), the test suite management unit 31 requests the database management unit 32 to restore the update data (S31). If the update data is restored, the test suite management unit 31 executes a difference reflection process.

例えば、図3のテストスイート定義情報例の2行目のテストケース(テストスイートT01、テストケースB)のトランザクションデータAの登録時に、テストスイート管理部31は、差分反映処理により前データパターンAAを新データパターンABに変更する。   For example, when registering the transaction data A of the test case (test suite T01, test case B) on the second line in the test suite definition information example of FIG. 3, the test suite management unit 31 changes the previous data pattern AA by the difference reflection process. Change to new data pattern AB.

トランザクションデータは、複数のレコードの集合であり、各レコードは、レコードIDと複数のデータ項目を包含しているものとする。   The transaction data is a set of a plurality of records, and each record includes a record ID and a plurality of data items.

差分反映処理において、テストスイート管理部31は、入力データ記憶部35内の前テータパターン、および、新データパターンの両者にアクセスする。テストスイート管理部31は、前テータパターン、および、新データパターンがどのデータパターンであるかを、テストスイート定義情報から得る。テストスイート管理部31は、前テータパターンがどのデータパターンであるかを、読込管理表37から得ても良い。   In the difference reflection process, the test suite management unit 31 accesses both the previous data pattern and the new data pattern in the input data storage unit 35. The test suite manager 31 obtains from the test suite definition information which data pattern is the previous data pattern and the new data pattern. The test suite management unit 31 may obtain from the read management table 37 which data pattern is the previous data pattern.

そして、テストスイート管理部31は、それらの一方または両方に含まれている全てのレコードIDについて、当該IDのレコードが、前、新データパターンの何れに含まれているかの切り分けを行い(S23)、切り分け結果に応じて以下の処理を行う。   Then, the test suite management unit 31 determines, for all record IDs included in one or both of them, whether the record of the ID is included in the previous or new data pattern (S23). The following processing is performed according to the result of the separation.

ア:当該IDのレコードが前、新データパターン両方に含まれている場合
この場合、テストスイート管理部31は、同一IDのレコードを前データパターン、および、新データパターンの各々から取り出し、両レコードのデータをデータ項目単位に比較する。テストスイート管理部31は、差異が有るデータ項目を検出すると、新データパターンに含まれている値で、データベース記憶部36内の同一IDのレコードの当該テータ項目の値を、データベース管理部32を用いて置換する(S24)。
A: When the record of the ID is included in both the previous and new data patterns In this case, the test suite management unit 31 takes out the record of the same ID from each of the previous data pattern and the new data pattern, and both records Is compared with the data item unit. When the test suite management unit 31 detects a data item having a difference, the test suite management unit 31 sets the value of the data item of the record having the same ID in the database storage unit 36 with the value included in the new data pattern, and the database management unit 32 To replace (S24).

この場合の具体例が、図8のA)とB1)に示されている。図8のA)は、入力データ記憶部35内の前テータパターンである。図8のB1)は、入力データ記憶部35内の、新データパターンである。ここで、ID01乃至ID03の各レコードが両データパターンに含まれている。この場合、テストスイート管理部31は、ID01の両レコードのデータを比較し、データ項目1の値が、前データパターンでは“a”であるのに対し、新データパターンでは“d”であることを検出する。そして、テストスイート管理部31は、データベース記憶部36内のID01のレコードのデータ項目1の値を“a”から“d”に更新する。同様に、テストスイート管理部31は、データベース記憶部36内のID02とID003のレコードのデータ項目1の値を“b”、“c”から“e”、“f”に置換する。   Specific examples in this case are shown in A) and B1) of FIG. 8A shows a pre-data pattern in the input data storage unit 35. FIG. B1) in FIG. 8 is a new data pattern in the input data storage unit 35. Here, each record of ID01 to ID03 is included in both data patterns. In this case, the test suite management unit 31 compares the data of both records of ID01, and the value of data item 1 is “a” in the previous data pattern, but “d” in the new data pattern. Is detected. Then, the test suite management unit 31 updates the value of the data item 1 of the record of ID01 in the database storage unit 36 from “a” to “d”. Similarly, the test suite management unit 31 replaces the values of the data item 1 of the records of ID02 and ID003 in the database storage unit 36 with “e” and “f” from “b” and “c”.

イ:当該IDのレコードが前データパターンにだけ含まれている場合
この場合、テストスイート管理部31は、データベース記憶部36内の当該IDのレコードを削除する(S25)。
B: When the record of the ID is included only in the previous data pattern In this case, the test suite management unit 31 deletes the record of the ID in the database storage unit 36 (S25).

この場合の具体例が、図8のA)とB2)に示されている。図8のA)は、入力データ記憶部35内の前テータパターンである。図8のB2)は、入力データ記憶部35内の、新データパターンである。ここで、ID02のレコードは前データパターンにだけ含まれている。この場合、テストスイート管理部31は、データベース記憶部36内のID02のレコードを削除する。   Specific examples in this case are shown in FIGS. 8A and 8B. 8A shows a pre-data pattern in the input data storage unit 35. FIG. B2) in FIG. 8 is a new data pattern in the input data storage unit 35. Here, the record of ID02 is included only in the previous data pattern. In this case, the test suite management unit 31 deletes the record of ID02 in the database storage unit 36.

ハ:当該IDのレコードが新データパターンにだけ含まれている場合
この場合、テストスイート管理部31は、入力データ記憶部35内の当該IDのレコードのコピーをデータベース記憶部36に追加登録する(S26)。
C: When the record of the ID is included only in the new data pattern In this case, the test suite management unit 31 additionally registers a copy of the record of the ID in the input data storage unit 35 in the database storage unit 36 ( S26).

この場合の具体例が、図8のA)とB3)に示されている。図8のA)は、入力データ記憶部35内の前テータパターンである。図8のB3)は、入力データ記憶部35内の、新データパターンである。ここで、ID04のレコードは新データパターンにだけ含まれている。この場合、テストスイート管理部31は、入力データ記憶部35内のID04のレコードのコピーをデータベース記憶部36に追加登録する。   Specific examples in this case are shown in A) and B3) of FIG. 8A shows a pre-data pattern in the input data storage unit 35. FIG. B3) in FIG. 8 is a new data pattern in the input data storage unit 35. Here, the record of ID04 is included only in the new data pattern. In this case, the test suite management unit 31 additionally registers a copy of the record with ID 04 in the input data storage unit 35 in the database storage unit 36.

図6に戻って、更新があって(S22でY)、かつ、更新データの復元が不可能な場合(S29でN)、テストスイート管理部31は、登録済みデータをデータベース記憶部36から削除する(S30)。続いて、テストスイート管理部31は、入力データ記憶部35のトランザクションデータの新データパターン原本を読み込んで、データベース記憶部36に登録する(S32)。   Returning to FIG. 6, when there is an update (Y in S22), and update data cannot be restored (N in S29), the test suite management unit 31 deletes the registered data from the database storage unit 36. (S30). Subsequently, the test suite management unit 31 reads a new original data pattern of transaction data in the input data storage unit 35 and registers it in the database storage unit 36 (S32).

当該トランザクションデータの登録処理を終了すると、テストスイート管理部31は、いまから実施しようとするテストケースのトランザクションデータが全て登録済みであれば(S27でY)、トランザクションデータの登録処理を終了する。いまから実施しようとするテストケースのトランザクションデータの何れかが未登録であれば(S27でN)、テストスイート管理部31は、次のトランザクションデータの登録処理を行う(S21に戻る)。   When the transaction data registration process ends, the test suite management unit 31 ends the transaction data registration process if all the transaction data of the test case to be executed has been registered (Y in S27). If any of the transaction data of the test case to be implemented is unregistered (N in S27), the test suite management unit 31 performs the next transaction data registration process (returns to S21).

<効果>
本実施の形態のテスト実施装置30は、連続して実施されるテストのテストデータの登録を高速に行うことが出来る。
<Effect>
The test execution device 30 according to the present embodiment can register test data of tests that are continuously performed at high speed.

その第1の理由は、テストスイート管理部31が、トランザクションデータのデータパターンの差異をデータベース記憶部36に反映することで、これから実施するテストケースのデータを登録するからである。   The first reason is that the test suite management unit 31 registers the data of the test case to be executed by reflecting the difference in the data pattern of the transaction data in the database storage unit 36.

トランザクションデータはテストケースごとに差異は有るが、それは一部のデータである場合が多い。また、データベースシステム、特に、リレーショナルデータベースシステムでは、一般的に、INSERT処理のコストはUPDATE処理に比べて高い。その理由は、UPDATE処理ではINSERT処理に比べてインデックス作成のコストがかからないこと、および、転送するデータの数がINSERT処理に比べて少ないからである。このため、例えば、回帰テストのように、一部しか異ならないデータを毎回入れ直すような場合には、INSERT処理ではなくUPDATE処理を使うことで、トランザクションデータ登録の高速化を実現することができる。   Transaction data is different for each test case, but it is often partial data. In a database system, particularly a relational database system, the cost of INSERT processing is generally higher than that of UPDATE processing. The reason is that the UPDATE process is less expensive to create an index than the INSERT process, and the number of data to be transferred is smaller than the INSERT process. For this reason, for example, when data that differs only partially is reinserted each time, such as in a regression test, transaction data registration can be speeded up by using UPDATE processing instead of INSERT processing.

その第2の理由は、テストケース固有のトランザクションデータと区別されているため、テストケース共通のマスタデータについて、データ比較を行わなくて済むからである。   The second reason is that the data is not compared with the master data common to the test case because it is distinguished from the transaction data unique to the test case.

また、本実施の形態のテスト実施装置30は、テストプログラムの入力データアクセスに過度の制約をかけない。   Further, the test execution device 30 of the present embodiment does not place excessive restrictions on the input data access of the test program.

その理由は、更新データを復元するため、テストプログラムは、マスタデータ、および、トランザクションの更新が可能だからである。トランザクションデータのデータパターンの差異をデータベース記憶部36に反映する前に、更新データを復元しておくことで、入力データ記憶部35のトランザクションデータの差異に基づいて、データベース記憶部36内の差分反映が可能となる。   This is because the test program can update the master data and the transaction in order to restore the update data. Before reflecting the difference in the data pattern of the transaction data in the database storage unit 36, the update data is restored, so that the difference in the database storage unit 36 is reflected based on the difference in the transaction data in the input data storage unit 35. Is possible.

<変形例>
データベース管理部32は、リレーショナルデータベースシステムでなくても良い。データベース管理部32は、索引順編成ファイルシステムやインメモリデータベースシステムでも良い。同様の効果が得られる。その理由は、レコードの削除と追加の2つの処理をレコードの更新だけの1つの処理に減らすことができるからである。
<Modification>
The database management unit 32 may not be a relational database system. The database management unit 32 may be an index sequential file system or an in-memory database system. Similar effects can be obtained. The reason is that the two processes of deleting and adding records can be reduced to one process only for updating records.

<第2の実施形態>
図9は、第2の実施の形態にかかるテスト実施装置30の構成図である。テスト実施装置30は、テストスイート管理部31、データベース管理部32、入力データ記憶部35、および、データベース記憶部36を備える。
<Second Embodiment>
FIG. 9 is a configuration diagram of the test execution apparatus 30 according to the second embodiment. The test execution device 30 includes a test suite management unit 31, a database management unit 32, an input data storage unit 35, and a database storage unit 36.

入力データ記憶部35は、トランザクションデータの第1と第2のデータパターンを格納する。データベース記憶部36は、第1のデータパターンのコピーを格納する。データベース管理部32は、データベース記憶部36のデータアクセスを行う。   The input data storage unit 35 stores first and second data patterns of transaction data. The database storage unit 36 stores a copy of the first data pattern. The database management unit 32 performs data access to the database storage unit 36.

テストスイート管理部31は、入力データ記憶部35内の第1と第2のデータパターンを比較して差分を抽出する。そして、テストスイート管理部31は、第1のデータパターンのコピーを使用した第1の業務処理テストを実行する。その後、テストスイート管理部31は、データベース管理部32に当該差分を第1のデータパターンのコピーに反映させる差分反映処理を実行し、第2のデータパターンのコピーを使用する第2の業務処理テストを実行する。   The test suite management unit 31 compares the first and second data patterns in the input data storage unit 35 and extracts a difference. Then, the test suite management unit 31 executes a first business process test using a copy of the first data pattern. Thereafter, the test suite management unit 31 executes a difference reflection process for causing the database management unit 32 to reflect the difference on the copy of the first data pattern, and a second business process test using the copy of the second data pattern Execute.

本実施の形態のテスト実施装置30は、連続して実施されるテストのテストデータの登録を高速に行うことが出来る。   The test execution device 30 according to the present embodiment can register test data of tests that are continuously performed at high speed.

その理由は、テストスイート管理部31が、トランザクションデータのデータパターンの差異をデータベース記憶部36に反映することで、これから実施するテストケースのデータを登録するからである。   The reason is that the test suite management unit 31 registers the data of the test case to be executed by reflecting the difference in the data pattern of the transaction data in the database storage unit 36.

以上、実施形態を参照して本願発明を説明したが、本願発明は上記実施形態に限定されるものではない。本願発明の構成や詳細には、本願発明のスコープ内で当業者が理解し得る様々な変更をすることができる。   While the present invention has been described with reference to the embodiments, the present invention is not limited to the above embodiments. Various changes that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention.

30 テスト実施装置
31 テストスイート管理部
32 データベース管理部
33 テストスイート定義記憶部
34 テストプログラム記憶部
35 入力データ記憶部
36 データベース記憶部
37 読込管理表
40 コンピュータ装置
41 プロセッサ
42 外部記憶装置
43 主記憶部
44 バス
45 プログラム
DESCRIPTION OF SYMBOLS 30 Test execution apparatus 31 Test suite management part 32 Database management part 33 Test suite definition storage part 34 Test program storage part 35 Input data storage part 36 Database storage part 37 Reading management table 40 Computer apparatus 41 Processor 42 External storage apparatus 43 Main storage part 44 bus 45 program

Claims (10)

所定の実行順序が予め決められたトランザクションデータの第1と第2のデータパターンを格納する入力データ記憶手段と、
前記第1のデータパターンのコピーを格納するデータベース記憶手段と、
前記データベース記憶手段のデータアクセスを行うデータベース管理手段と、
前記入力データ記憶手段内の前記第1と第2のデータパターンを比較して差分を抽出し、前記第1のデータパターンのコピーを使用した第1の業務処理テストを実行後、前記データベース管理手段に当該差分を前記第1のデータパターンのコピーに反映させる差分反映処理を実行し、その後、前記第2のデータパターンのコピーを使用する第2の業務処理テストを実行するテストスイート管理手段と、を備えるテスト実施装置。
Input data storage means for storing first and second data patterns of transaction data in which a predetermined execution order is predetermined ;
Database storage means for storing a copy of the first data pattern;
Database management means for accessing data in the database storage means;
The database management means after comparing the first and second data patterns in the input data storage means to extract a difference and executing a first business process test using a copy of the first data pattern Executing a difference reflection process for reflecting the difference to the copy of the first data pattern, and then executing a second business process test using the copy of the second data pattern; A test execution device comprising:
前記第1と第2のデータパターンは、識別情報と複数のデータ項目を包含するレコードを複数含み、
前記テストスイート管理手段は、前記第1と第2のデータパターンの各々に含まれる同一識別情報のレコードの同一データ項目の値に差異がある場合に、前記第2のデータパターンに含まれるレコードの当該データ項目の値を、前記データベース記憶手段内の前記第1のデータパターンのコピーに記憶させる、請求項1のテスト実施装置。
The first and second data patterns include a plurality of records including identification information and a plurality of data items,
The test suite management means, when there is a difference in the value of the same data item in the record of the same identification information included in each of the first and second data patterns, of the record included in the second data pattern 2. The test execution apparatus according to claim 1, wherein the value of the data item is stored in a copy of the first data pattern in the database storage means.
前記データベース管理手段は、前記第1のデータパターンのコピーのうち前記第1の業務処理テスト実行中に更新されたデータを復元するデータパターン復元処理を行い、
前記テストスイート管理手段は、前記データパターン復元処理後に、前記第1のデータパターンのコピーに対する前記差分反映処理を実行する、請求項1乃至2の何れか1項のテスト実施装置。
The database management means performs data pattern restoration processing for restoring data updated during execution of the first business process test out of the copy of the first data pattern,
The test execution apparatus according to claim 1, wherein the test suite management unit executes the difference reflection process for the copy of the first data pattern after the data pattern restoration process.
前記入力データ記憶手段は、さらに、前記第1と第2の業務処理で共通に使用するマスタデータを格納し、
前記データベース記憶手段は、さらに、前記マスタデータのコピーを格納し、
データベース管理手段は、前記マスタデータのコピーのうち前記第1の業務処理テスト実行中に更新されたデータを復元するマスタデータ復元処理を行い、
前記テストスイート管理手段は、前記マスタデータ復元処理と、前記第1のデータパターンのコピーに対する前記差分反映処理後、前記第2のデータパターンを使用する第2の業務処理テストを実行する、請求項1乃至3の何れか1項のテスト実施装置。
The input data storage means further stores master data commonly used in the first and second business processes,
The database storage means further stores a copy of the master data;
The database management means performs a master data restoration process for restoring the data updated during the execution of the first business process test out of the copy of the master data,
The test suite management means executes a second business process test using the second data pattern after the master data restoration process and the difference reflection process for the copy of the first data pattern. 4. The test execution device according to any one of 1 to 3.
所定の実行順序が予め決められたトランザクションデータの第1と第2のデータパターンを入力データ記憶手段に格納し、
前記第1のデータパターンのコピーをデータベース記憶手段に格納し、
前記入力データ記憶手段内の前記第1と第2のデータパターンを比較して差分を抽出し、前記第1のデータパターンのコピーを使用した第1の業務処理テストを実行後、当該差分を前記第1のデータパターンのコピーに反映する差分反映処理を実行し、その後、前記第2のデータパターンのコピーを使用する第2の業務処理テストを実行する方法。
Storing first and second data patterns of transaction data in which a predetermined execution order is predetermined in the input data storage means;
Storing a copy of the first data pattern in a database storage means;
The first and second data patterns in the input data storage means are compared to extract a difference, and after executing a first business process test using a copy of the first data pattern, the difference is A method of executing a difference reflection process to be reflected in a copy of the first data pattern, and thereafter executing a second business process test using the copy of the second data pattern.
前記第1と第2のデータパターンは、識別情報と複数のデータ項目を包含するレコードを複数含み、
前記第1と第2のデータパターンの各々に含まれる同一識別情報のレコードの同一データ項目の値に差異がある場合に、前記第2のデータパターンに含まれるレコードの当該データ項目の値を、前記データベース記憶手段内の前記第1のデータパターンのコピーに記憶させる、請求項5の方法。
The first and second data patterns include a plurality of records including identification information and a plurality of data items,
When there is a difference in the value of the same data item of the record of the same identification information included in each of the first and second data patterns, the value of the data item of the record included in the second data pattern is 6. The method of claim 5, wherein the method is stored in a copy of the first data pattern in the database storage means.
前記第1のデータパターンのコピーのうち前記第1の業務処理テスト実行中に更新されたデータを復元するデータパターン復元処理を行い、
前記データパターン復元処理後に、前記第1のデータパターンのコピーに対する前記差分反映処理を実行する、請求項5乃至6の何れか1項の方法。
Performing a data pattern restoration process for restoring data updated during execution of the first business process test among copies of the first data pattern;
The method according to claim 5, wherein after the data pattern restoration process, the difference reflection process for the copy of the first data pattern is executed.
前記入力データ記憶手段に、さらに、前記第1と第2の業務処理で共通に使用するマスタデータを格納し、
前記データベース記憶手段に、さらに、前記マスタデータのコピーを格納し、
前記マスタデータのコピーのうち前記第1の業務処理テスト実行中に更新されたデータを復元するマスタデータ復元処理を行い、
前記マスタデータ復元処理と、前記第1のデータパターンのコピーに対する前記差分反映処理後、前記第2のデータパターンを使用する第2の業務処理テストを実行する、請求項5乃至7の何れか1項の方法。
In the input data storage means, further, master data commonly used in the first and second business processes is stored,
The database storage means further stores a copy of the master data,
Performing master data restoration processing for restoring data updated during execution of the first business process test among copies of the master data,
The second business process test using the second data pattern is executed after the master data restoration process and the difference reflection process for the copy of the first data pattern. Section method.
所定の実行順序が予め決められたトランザクションデータの第1と第2のデータパターンを入力データ記憶手段に格納する処理と、
前記第1のデータパターンのコピーをデータベース記憶手段に格納する処理と、
前記データベース記憶手段のデータアクセスを行うデータベース管理処理と、
前記入力データ記憶手段内の前記第1と第2のデータパターンを比較して差分を抽出し、前記第1のデータパターンのコピーを使用した第1の業務処理テストを実行後、前記データベース管理処理により当該差分を前記第1のデータパターンのコピーに反映させる差分反映処理を実行し、その後、前記第2のデータパターンのコピーを使用する第2の業務処理テストを実行するテストスイート管理処理と、をコンピュータに実行させるプログラム。
A process of storing first and second data patterns of transaction data having a predetermined execution order determined in the input data storage means;
Storing a copy of the first data pattern in a database storage means;
A database management process for accessing data in the database storage means;
The database management process after comparing the first and second data patterns in the input data storage means to extract a difference and executing a first business process test using a copy of the first data pattern Performing a difference reflection process for reflecting the difference to the copy of the first data pattern, and then a test suite management process for executing a second business process test using the copy of the second data pattern; A program that causes a computer to execute.
前記第1と第2のデータパターンは、識別情報と複数のデータ項目を包含するレコードを複数含み、
前記テストスイート管理処理においてコンピュータに、前記第1と第2のデータパターンの各々に含まれる同一識別情報のレコードの同一データ項目の値に差異がある場合に、前記第2のデータパターンに含まれるレコードの当該データ項目の値を、前記データベース記憶手段内の前記第1のデータパターンのコピーに記憶させる、請求項9のプログラム。
The first and second data patterns include a plurality of records including identification information and a plurality of data items,
Included in the second data pattern when there is a difference in the value of the same data item in the record of the same identification information included in each of the first and second data patterns in the test suite management process The program according to claim 9, wherein the value of the data item of the record is stored in a copy of the first data pattern in the database storage means.
JP2015133674A 2015-07-02 2015-07-02 Test execution apparatus, method, and program Active JP6610037B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015133674A JP6610037B2 (en) 2015-07-02 2015-07-02 Test execution apparatus, method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015133674A JP6610037B2 (en) 2015-07-02 2015-07-02 Test execution apparatus, method, and program

Publications (2)

Publication Number Publication Date
JP2017016469A JP2017016469A (en) 2017-01-19
JP6610037B2 true JP6610037B2 (en) 2019-11-27

Family

ID=57830781

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015133674A Active JP6610037B2 (en) 2015-07-02 2015-07-02 Test execution apparatus, method, and program

Country Status (1)

Country Link
JP (1) JP6610037B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012104991A1 (en) * 2011-02-01 2012-08-09 株式会社 日立製作所 Program test method, program test system, and program
JP5807594B2 (en) * 2012-03-19 2015-11-10 富士通株式会社 Verification support program, verification support method, and verification support apparatus

Also Published As

Publication number Publication date
JP2017016469A (en) 2017-01-19

Similar Documents

Publication Publication Date Title
CN107391628B (en) Data synchronization method and device
JP5598017B2 (en) Judgment program, method and apparatus
CN107122368B (en) Data verification method and device and electronic equipment
CN111104392B (en) Database migration method and device, electronic equipment and storage medium
EP3519987B1 (en) Intents and locks with intent
US9870314B1 (en) Update testing by build introspection
WO2017167289A1 (en) Code control method and apparatus
CN110795447A (en) Data processing method, data processing system, electronic device, and medium
CN115237444A (en) Concurrent control method, device and equipment based on version number and storage medium
US7814334B2 (en) Method and apparatus for changing and adding activation keys for functions of digital content without having to change and recompile the digital content
US10678864B2 (en) Analysis model preparing system, programming apparatus, and analysis model preparing method
CN111046073A (en) Test case query method and device and readable storage medium
JP2016181019A (en) Order reception processing system and order reception processing method
CN116467975B (en) Data processing method, device, electronic equipment and storage medium
EP3264254A1 (en) System and method for a simulation of a block storage system on an object storage system
JP6610037B2 (en) Test execution apparatus, method, and program
US20160306972A1 (en) Virus signature matching method and apparatus
CN112783954B (en) Data access method, device and server
WO2012104991A1 (en) Program test method, program test system, and program
JP6217440B2 (en) Symbolic execution program, symbolic execution method, and symbolic execution device
US10698802B1 (en) Method and system for generating a validation test
JPWO2020240873A1 (en) Verification method, information processing device and verification program
US9916339B2 (en) Efficient sorting in a relational database
US20230004361A1 (en) Code inspection interface providing method and apparatus for implementing the method
JP6699433B2 (en) Data management program, device, and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180615

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190227

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190312

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190418

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20191014

R150 Certificate of patent or registration of utility model

Ref document number: 6610037

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150