JP2010267022A - Test data generation method, device and program - Google Patents

Test data generation method, device and program Download PDF

Info

Publication number
JP2010267022A
JP2010267022A JP2009116916A JP2009116916A JP2010267022A JP 2010267022 A JP2010267022 A JP 2010267022A JP 2009116916 A JP2009116916 A JP 2009116916A JP 2009116916 A JP2009116916 A JP 2009116916A JP 2010267022 A JP2010267022 A JP 2010267022A
Authority
JP
Japan
Prior art keywords
test data
level
execution path
factor
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2009116916A
Other languages
Japanese (ja)
Other versions
JP5164918B2 (en
Inventor
Akimasa Cho
暁晶 張
Takashi Hoshino
隆 星野
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2009116916A priority Critical patent/JP5164918B2/en
Publication of JP2010267022A publication Critical patent/JP2010267022A/en
Application granted granted Critical
Publication of JP5164918B2 publication Critical patent/JP5164918B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To generate test data allowing intensive detection of trouble having high occurrence frequency, and allowing unique specification of a variable causing the trouble. <P>SOLUTION: When generating the test data including a pair of an input (a combination between a factor and a level) and an expectation value, a combination between the inputs not but combinations between all the levels possible to the factor is generated such that each of all the levels in each factor is used in a test at least once. As the combination between the inputs, a combination (a normal input) including all normal levels and a combination (an abnormal input) between the factor and the level including only one of abnormal levels are generated. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、テストデータ生成方法及び装置及びプログラムに係り、特に、システムが、設計モデルに記述された設計意図の通りに、構築されたか否かを、確認するためのテストで用いるテストデータを人手により作成するのではなく、設計モデルにより自動的に作成するためのテストデータ生成方法及び装置及びプログラムに関する。詳しくは、不具合の原因特定を行うためのテストデータ生成方法及び装置及びプログラムに関する。   The present invention relates to a test data generation method, apparatus, and program, and in particular, test data used in a test for confirming whether or not a system has been constructed in accordance with a design intent described in a design model. The present invention relates to a test data generation method, apparatus, and program for automatically generating a design model rather than using a design model. Specifically, the present invention relates to a test data generation method, apparatus, and program for identifying the cause of a defect.

プログラム開発工程におけるテストでは、システムが設計通りに構築されたか否かという確認を行うため、その際にテストデータが必要となる。人手に代わり、自動でテストデータを準備できれば、開発のコスト改善につながる。また、少ないテストデータで効果的にテストを実施できればテストのコストを更に削減することができる。   In the test in the program development process, whether or not the system is constructed as designed is confirmed, and test data is required at that time. If test data can be prepared automatically instead of manpower, development costs can be improved. In addition, if the test can be carried out effectively with a small amount of test data, the test cost can be further reduced.

効果的にテストを実施できるテストデータとは、不具合をより検出しやすいテストデータ、不具合が検出された場合に原因特定を容易にするテストデータであると考える。   Test data that can be effectively tested is considered to be test data that makes it easier to detect a defect, and test data that makes it easier to identify the cause when a defect is detected.

テストデータは、複数の変数がとる値の組合せからなる。あり得る全ての組合せをテストデータとして生成すると、変数が増えた場合に組合せ爆発により処理不能になってしまうという問題がある。そのため、通常は全組合せの一部のみをテストデータとするが、この際に組み合わせ数を絞り込む手法が必要となる。   Test data consists of combinations of values taken by a plurality of variables. If all the possible combinations are generated as test data, there is a problem that when the number of variables increases, the combination explosion makes processing impossible. For this reason, usually, only a part of all combinations is used as test data. However, a method for narrowing down the number of combinations is required at this time.

テストデータの自動生成技術としては、例えば、階層構造を持つデータ型を基本型まで分解し、その基本型に所定の値を与える方法や、単独の変数に割り当てる値を生成する技術がある(例えば、特許文献1、非特許文献1参照)。   As test data automatic generation technology, there are, for example, a method of decomposing a data type having a hierarchical structure into a basic type and giving a predetermined value to the basic type, and a technology of generating a value to be assigned to a single variable (for example, Patent Document 1, Non-Patent Document 1).

特開平9−231103号公報JP-A-9-231103

Jon Edvardsson. "A Survey on Automatic Test Data Generation". In Proceedings of the 2nd Conference on Computer Science and Engineering, Pages 21-28, 1999. http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.20.963Jon Edvardsson. "A Survey on Automatic Test Data Generation". In Proceedings of the 2nd Conference on Computer Science and Engineering, Pages 21-28, 1999. http://citeseerx.ist.psu.edu/viewdoc/summary?doi= 10.1.1.20.963

しかしながら、従来のテストデータの自動生成技術では、上記の複数の変数がとる値の組み合わせの問題に対して言及しない、もしくはポリシーがないままランダムに組み合わせを生成するものが多い。上記の特許文献1や非特許文献1の技術には、単独の変数に割り当てる値の生成については述べられているが、複数の変数がある場合に組み合わせを具体的にどう生成するかについては言及していない。   However, many conventional test data automatic generation techniques do not mention the problem of a combination of values taken by the plurality of variables, or generate a combination randomly without a policy. In the techniques of Patent Document 1 and Non-Patent Document 1 described above, generation of a value to be assigned to a single variable is described. However, when there are a plurality of variables, a specific combination is generated. Not done.

このように、従来のテストデータの自動生成技術を組み合わせても、少ないテストデータでも不具合の検出が容易で、また、不具合を検出した場合に原因の特定を容易にすることができないという問題がある。   As described above, there is a problem that even if the conventional automatic test data generation technology is combined, it is easy to detect a defect even with a small amount of test data, and it is not possible to easily identify the cause when a defect is detected. .

本発明は、上記の点に鑑みなされたもので、構造体やオブジェクト型データを含む設計モデルに基づくシステムへのテストデータの自動生成において、発生頻度の高い不具合を重点的に検出することが可能で、さらに、不具合の原因となる変数を一意に特定することが可能なテストデータ生成方法及び装置及びプログラムを提供することを目的とする。   The present invention has been made in view of the above points, and in the automatic generation of test data to a system based on a design model including structure and object type data, it is possible to focus on frequently occurring defects. It is another object of the present invention to provide a test data generation method, apparatus, and program that can uniquely specify a variable that causes a failure.

図1は、本発明の原理構成図である。   FIG. 1 is a principle configuration diagram of the present invention.

本発明(請求項1)は、システムの設計情報を形式的な言語で記述した設計モデルの設計意図に沿って構築されたか否かを確認するためのテストデータを生成するテストデータ生成装置であって、
ユーザ端末20より、UMLクラス図とアクティビティ図のみで記述した設計モデルを読み込む設計モデル読込手段1と、
読み込まれた設計モデルからアクティビティ図をテスト対象として抽出する設計モデル分析手段2と、
テスト対象から実行経路を抽出する実行経路抽出手段3と、
テストデータ仕様が格納されたテストデータ仕様記憶手段12と、
実行経路抽出手段4から抽出された各実行経路を持つアクティビティの入力パラメータを変数(実験計画法でいう「因子」)が満たすべき実行経路の始点ノードから終点ノードを走査することにより抽出した制約条件に基づいて、テストデータ仕様記憶手段12に格納されているテストデータ仕様を更新するテストデータ仕様生成手段4と、
テストデータ仕様記憶手段12から前記テストデータ仕様を読み込み、因子のとる値(実験計画法でいう「水準」)として、該テストデータ仕様の値に応じて、実行経路にとって許容する正常水準と、実行経路にとって許容しない異常水準を生成し、実行経路に対応させて該因子と該水準を実行経路・水準記憶手段11に格納する水準生成手段5と、
実行経路・水準記憶手段11から因子と水準と前記実行経路を取得して、該因子と前記正常水準のみの組み合わせである正常入力と、該因子と異常水準を一つのみ含む水準の組み合わせである異常入力を生成し、該実行経路中に事後条件が含まれるか否かにより期待値を求め、該入力に該期待値を付与したテストデータを生成し、テストデータ記憶手段13に格納するテストデータ生成手段6と、
テストデータをユーザ端末20に出力する出力手段7と、を有する。
The present invention (Claim 1) is a test data generation device for generating test data for confirming whether or not the design information of a system is constructed in accordance with the design intention of a design model described in a formal language. And
A design model reading means 1 for reading a design model described only by a UML class diagram and an activity diagram from the user terminal 20;
Design model analysis means 2 for extracting an activity diagram as a test object from the read design model;
Execution path extraction means 3 for extracting an execution path from the test target;
Test data specification storage means 12 storing test data specifications;
Constraints extracted by scanning the end-point node from the start-point node of the execution path that the variable (“factor” in the experimental design method) should satisfy the input parameters of the activity having each execution path extracted from the execution-path extraction means 4 The test data specification generation means 4 for updating the test data specification stored in the test data specification storage means 12,
The test data specification is read from the test data specification storage means 12, and a normal level allowed for the execution path according to the value of the test data specification as a value taken by the factor ("level" in the experimental design method) and execution Level generation means 5 for generating an abnormal level that is not allowed for the path, and storing the factor and the level in the execution path / level storage means 11 in correspondence with the execution path;
It is a combination of a normal input that is a combination of only the factor and the normal level, and a level that includes only one of the factor and the abnormal level, by acquiring the factor, the level, and the execution path from the execution path / level storage unit 11. Test data that generates an abnormal input, obtains an expected value based on whether or not a postcondition is included in the execution path, generates test data with the expected value added to the input, and stores the test data in the test data storage unit 13 Generating means 6;
Output means 7 for outputting test data to the user terminal 20.

図2は、本発明の原理を説明するための図である。   FIG. 2 is a diagram for explaining the principle of the present invention.

本発明(請求項2)は、システムの設計情報を形式的な言語で記述した設計モデルの設計意図に沿って構築されたか否かを確認するためのテストデータを生成するテストデータ生成方法であって、
ユーザ端末より、UMLクラス図とアクティビティ図のみで記述した設計モデルを読み込む設計モデル読込ステップ(ステップ1)と、
読み込まれた設計モデルからアクティビティ図をテスト対象として抽出する設計モデル分析ステップ(ステップ2)と、
テスト対象から実行経路を抽出する実行経路抽出ステップ(ステップ3)と、
実行経路抽出ステップで抽出された各実行経路を持つアクティビティの入力パラメータを変数(実験計画法でいう「因子」)が満たすべき実行経路の始点ノードから終点ノードを走査することにより抽出した制約条件に基づいて、テストデータ仕様記憶手段に格納されているテストデータ仕様を更新するテストデータ仕様生成ステップ(ステップ4)と、
テストデータ仕様記憶手段から前記テストデータ仕様を読み込み、前記因子のとる値(実験計画法でいう「水準」)として、該テストデータ仕様の値に応じて、実行経路にとって許容する正常水準と、実行経路にとって許容しない異常水準を生成し、実行経路に対応させて該因子と該水準を実行経路・水準記憶手段に格納する水準生成ステップ(ステップ5)と、
実行経路・水準記憶手段から因子と前記水準と実行経路を取得して、該因子と前記正常水準のみの組み合わせである正常入力と、該因子と異常水準を一つのみ含む水準の組み合わせである異常入力を生成し(ステップ6)、該実行経路中に事後条件が含まれるか否かにより期待値を求め、該入力に該期待値を付与したテストデータを生成し(ステップ7)、テストデータ記憶手段に格納するテストデータ生成ステップと、
テストデータをユーザ端末に出力する出力ステップ(ステップ8)と、を行う。
The present invention (Claim 2) is a test data generation method for generating test data for confirming whether or not the system design information is constructed in accordance with the design intent of the design model described in a formal language. And
A design model reading step (step 1) for reading a design model described only by a UML class diagram and an activity diagram from a user terminal;
A design model analysis step (step 2) for extracting an activity diagram as a test target from the read design model;
An execution path extraction step (step 3) for extracting an execution path from the test target;
The input parameters of the activity with each execution path extracted in the execution path extraction step are the constraints extracted by scanning the end node from the start node of the execution path that the variable ("factor" in the experimental design method) should satisfy A test data specification generation step (step 4) for updating the test data specification stored in the test data specification storage means,
The test data specification is read from the test data specification storage means, and the normal level allowed for the execution path according to the value of the test data specification as the value of the factor ("level" in the experimental design method) and the execution A level generation step (step 5) for generating an abnormal level that is not allowed for the path, and storing the factor and the level in the execution path / level storage means in correspondence with the execution path;
An abnormality that is a combination of a normal input that is a combination of only the factor and the normal level, and a level that includes only one of the factor and the abnormal level, by acquiring the factor, the level, and the execution path from the execution path / level storage means. An input is generated (step 6), an expected value is obtained based on whether or not a postcondition is included in the execution path, test data with the expected value added to the input is generated (step 7), and test data is stored A test data generation step to be stored in the means;
An output step (step 8) of outputting test data to the user terminal is performed.

本発明(請求項3)は、請求項1記載のいずれか1項記載のテストデータ生成装置を構成する各手段としてコンピュータを機能させるためのテストデータ生成プログラムである。   The present invention (Claim 3) is a test data generation program for causing a computer to function as each means constituting the test data generation apparatus according to any one of Claims 1.

上記のように本発明によれば、テストにおいては、複数の変数(実験計画法の用語で「因子」)の値(実験計画法の用語で「値」)の組み合わせに起因する不具合よりも、1つの変数の値に起因する不具合が多いという経験的事実(例えば、文献:R.D. Kuhn et al. "Software Fault Interactions and Implications for Software Testing." IEEE Transactions on Softweare Engineering, 30(6), June 2004.)に基づいて、因子と正常水準のみの組み合わせの「正常入力」と、該因子と異常水準を一つのみ含む水準の組み合わせである「異常入力」を生成し、テストデータ生成で効果的にテストデータの数を絞ることで、より少数のテストデータにより発生頻度の高い不具合を検出することができる。すなわち、自動生成したテストデータによって発生頻度の高い不具合を重点的に検出できる。   As described above, according to the present invention, in the test, rather than a defect caused by a combination of values (“value” in the term of the experimental design method) of a plurality of variables (“factor” in the term of the experimental design method) An empirical fact that there are many failures due to the value of one variable (eg, literature: RD Kuhn et al. "Software Fault Interactions and Implications for Software Testing." IEEE Transactions on Softweare Engineering, 30 (6), June 2004. ) To generate a “normal input” that is a combination of only a factor and a normal level, and an “abnormal input” that is a combination of a level that includes only one of the factor and an abnormal level. By narrowing down the number of data, it is possible to detect defects that occur frequently with a smaller number of test data. In other words, it is possible to focus on frequently occurring defects by using automatically generated test data.

また、本発明によれば、不具合の原因特定を容易にするような、有用性の高いテストデータを生成することで、不具合の原因となる変数を一意に特定することが可能となる。すなわち、システムに入力したあるテストデータによって不具合が検出された場合、テストデータを構成する変数のうち、どの変数に原因があるかを特定できる。   Furthermore, according to the present invention, it is possible to uniquely identify a variable that causes a defect by generating highly useful test data that facilitates identifying the cause of the defect. That is, when a failure is detected by certain test data input to the system, it is possible to identify which variable has the cause among the variables constituting the test data.

本発明の原理構成図である。It is a principle block diagram of this invention. 本発明の原理を説明するための図である。It is a figure for demonstrating the principle of this invention. 本発明の一実施の形態におけるテストデータ生成装置の構成図である。It is a block diagram of the test data generation device in one embodiment of the present invention. 本発明で用いるUML設計モデルイメージを示す図である。It is a figure which shows the UML design model image used by this invention. 本発明の一実施の形態におけるテストデータ仕様のフォーマットを示す図である。It is a figure which shows the format of the test data specification in one embodiment of this invention. 本発明の一実施の形態におけるテストデータ生成装置の入出力イメージである。It is an input-output image of the test data generation device in one embodiment of the present invention. 本発明の一実施の形態におけるテストデータ生成処理概要のフローチャートである。It is a flowchart of the test data generation process outline | summary in one embodiment of this invention. 本発明の一実施の形態における実行経路抽出部で抽出される実行経路の例である。It is an example of the execution path | route extracted by the execution path | route extraction part in one embodiment of this invention. 本発明の一実施の形態におけるテストデータ仕様生成部のフローチャートである。It is a flowchart of the test data specification production | generation part in one embodiment of this invention. 本発明の一実施の形態における実行経路を説明するための図である。It is a figure for demonstrating the execution path | route in one embodiment of this invention. 本発明の一実施の形態における正常入力と異常入力の生成方法を示す図である。It is a figure which shows the production | generation method of the normal input and abnormal input in one embodiment of this invention. 本発明の一実施の形態におけるテストデータ生成部のフローチャートである。It is a flowchart of the test data generation part in one embodiment of this invention. 本発明の一実施の形態におけるテストデータ生成部の「正常入力の生成」処理のフローチャートである。It is a flowchart of the "generation of normal input" process of the test data generation unit in one embodiment of the present invention. 本発明の一実施の形態におけるテストデータ生成部の「正常入力の生成」処理のプログラムレベルのフローチャートである。It is a program level flowchart of a "normal input generation" process of a test data generation unit in an embodiment of the present invention. 本発明の一実施の形態におけるテストデータ生成部の「異常入力の生成」処理のフローチャートである。It is a flowchart of the "abnormal input generation" process of the test data generation part in one embodiment of this invention. 本発明の一実施の形態におけるテストデータ生成部の「異常入力の生成」処理のプログラムレベルのフローチャートである。It is a program level flowchart of the "abnormal input generation" process of the test data generation part in one embodiment of this invention. 本発明の一実施の形態におけるテストデータ生成部野「入力への期待値付与」処理のフローチャートである。It is a flowchart of the test data generation section "giving expected value to input" processing in an embodiment of the present invention.

以下、図面と共に本発明の実施の形態を説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

最初に、以下の実施の形態で用いる用語について説明する。   First, terms used in the following embodiments will be described.

「設計モデル」とは、システムの設計情報を、曖昧性をもつ自然言語ではなく、何らかの形式的な記述言語により厳密的・形式的に記述したものである。   A “design model” is a description of system design information strictly and formally in some formal description language rather than a vague natural language.

「制約条件」とは、設計モデルから抽出された実行経路に含まれ、『a>3』のようなある因子(ここではa)の取り得る値に関する条件を指す。『a>3』の例では、制約条件は因子の名前(a)、オペレータ(>)、オペランド(3)から成り、当該制約条件が付けられている場所により、「不変条件」、「事前条件」、「分岐条件」の3種類に分かれる。制約条件のオペレータには、不等号や文字列比較等通常使われる記法を用いる。   The “constraint condition” refers to a condition relating to a value that can be taken by a certain factor (here, a), such as “a> 3”, included in the execution path extracted from the design model. In the example of “a> 3”, the constraint condition is composed of a factor name (a), an operator (>), and an operand (3), and “invariant condition” and “precondition” depending on the location where the constraint condition is attached. ”And“ branching conditions ”. For the operator of the constraint condition, a commonly used notation such as an inequality sign or a character string comparison is used.

「テストデータ仕様」とは、設計モデル中の特定の実行経路を通るための因子(変数)が満たすべき性質を集めたもので、テストデータが満たすべき「仕様」を指す。   The “test data specification” is a collection of properties to be satisfied by factors (variables) for passing through a specific execution path in the design model, and indicates “specification” that the test data should satisfy.

「テストデータ仕様の更新」とは、テストデータ仕様を、生成直後の初期値から実行経路中の制約条件の処理に従って上書きしていくことである。   “Updating the test data specification” means overwriting the test data specification from the initial value immediately after generation according to the processing of the constraint condition in the execution path.

「正常水準」とは、実行経路にとって許容する入力値である。   The “normal level” is an input value allowed for the execution path.

「異常水準」とは、実行経路にとって許容しない入力値である。   The “abnormal level” is an input value that is not allowed for the execution path.

「正常入力」とは、因子と正常水準のみから構成される入力である。   “Normal input” is an input composed only of a factor and a normal level.

「異常水準」とは、因子と1つの異常水準を含む入力である。   The “abnormal level” is an input including a factor and one abnormal level.

図3は、本発明の一実施の形態におけるテストデータ生成装置の構成を示す。   FIG. 3 shows a configuration of the test data generation apparatus according to the embodiment of the present invention.

同図に示すテストデータ生成装置10は、設計モデル読込部1、設計モデル分析部2、実行経路抽出部3、テストデータ仕様生成部4、水準生成部5、テストデータ生成部6、出力部7、実行経路・水準記憶部11、テストデータ仕様記憶部12、テストデータ記憶部13から構成される。   The test data generation device 10 shown in FIG. 1 includes a design model reading unit 1, a design model analysis unit 2, an execution path extraction unit 3, a test data specification generation unit 4, a level generation unit 5, a test data generation unit 6, and an output unit 7. , An execution path / level storage unit 11, a test data specification storage unit 12, and a test data storage unit 13.

このうち、設計モデル読込部1、設計モデル分析部2、実行経路抽出部3、テストデータ仕様生成部4、水準生成部5、テストデータ生成部6、出力部7は、CPU上の機能であり、実行経路・水準記憶部11、テストデータ仕様記憶部12、テストデータ記憶部13は、ハードディスク装置等の記憶媒体である。   Among these, the design model reading unit 1, the design model analysis unit 2, the execution path extraction unit 3, the test data specification generation unit 4, the level generation unit 5, the test data generation unit 6, and the output unit 7 are functions on the CPU. The execution path / level storage unit 11, the test data specification storage unit 12, and the test data storage unit 13 are storage media such as a hard disk device.

ユーザ端末20は、モデリングツール21とビューワ22を有し、モデルリングツール21より設計モデルをテストデータ生成装置の設計モデル読込部1にエクスポートする。ビューワ22は、テストデータ生成装置10からテストデータを取得する。   The user terminal 20 includes a modeling tool 21 and a viewer 22, and exports a design model from the modeling tool 21 to the design model reading unit 1 of the test data generation device. The viewer 22 acquires test data from the test data generation device 10.

設計モデル読込部1は、ユーザ端末20のモデリングツール21からエクスポートされた図4に示すようなXML形式のUMLモデル(クラス図、アクティビティ図)を読み込む。   The design model reading unit 1 reads the XML model UML model (class diagram, activity diagram) as shown in FIG. 4 exported from the modeling tool 21 of the user terminal 20.

設計モデル分析部2は、読み込まれたUMLモデルを分析して、アクティビティをテスト対象として抽出する。   The design model analysis unit 2 analyzes the read UML model and extracts activities as test targets.

実行経路抽出部3は、テスト対象から実行経路(Path)を抽出し、抽出した実行経路をテストデータ生成部4と実行経路・水準記憶部11に出力する。   The execution path extraction unit 3 extracts an execution path (Path) from the test target, and outputs the extracted execution path to the test data generation unit 4 and the execution path / level storage unit 11.

テストデータ仕様生成部4は、実行経路抽出部3で抽出された全実行経路から、特定の実行経路を通るための、変数(実験計画法でいう「因子」)が満たすべき性質を集め、テストデータ仕様記憶部12に格納する。テストデータ仕様は、図5に示すように、データ型(Integer型、Enum型、Object型、Boolean型、String型Collection型)毎に異なり、因子を規定するドメインをもつ。ドメインは更新(上書き)されるに従い、範囲が狭められていくものとする。例えば、String型の因子に対するテストデータ仕様は、長さ下限、長さ上限、部分文字列などの値を含んでおり、"name:String"という因子は、長さ0〜30までであり、文字列"M"を含むというように、テストデータ仕様は因子(ここでは、「name」)の取り得る値を制限するものである。   The test data specification generation unit 4 collects the properties to be satisfied by variables (“factors” in the experimental design method) for passing a specific execution path from all the execution paths extracted by the execution path extraction unit 3, It is stored in the data specification storage unit 12. As shown in FIG. 5, the test data specification differs for each data type (Integer type, Enum type, Object type, Boolean type, String type Collection type) and has a domain that defines factors. As the domain is updated (overwritten), the range is narrowed. For example, the test data specification for a String type factor includes values such as a lower limit, an upper limit, and a substring. The factor "name: String" has a length of 0 to 30, Test data specifications limit the possible values of a factor (here "name"), such as including the column "M".

水準生成部5は、テストデータ仕様記憶部12からテストデータ仕様を読み込み、因子のとる値(実験計画法でいう「水準」)を生成し、当該因子、実行経路(Path Name)に対応させて実行経路・水準記憶部11に格納する。水準生成部5は、テストデータ仕様で示される値に基づいて、正常水準または異常水準を生成する。   The level generation unit 5 reads the test data specification from the test data specification storage unit 12, generates a value of the factor (“level” in the experimental design method), and associates it with the factor and the execution path (Path Name). Stored in the execution path / level storage unit 11. The level generation unit 5 generates a normal level or an abnormal level based on the value indicated by the test data specification.

テストデータ生成部6は、実行経路・水準記憶部11から実行経路と水準を取得し、入力(因子と水準の組)と期待値のペアを含むテストデータを生成し、図6(B)に示すようなフォーマットでテストデータ記憶部13に格納する。テストデータは、図6(B)に示すように、実行経路名、テストデータID、水準(値)、因子(変数)、期待値、正常入力または異常入力区別、テスト結果の項目からなる。   The test data generation unit 6 acquires the execution path and level from the execution path / level storage unit 11 and generates test data including a pair of an input (a set of factors and levels) and an expected value, as shown in FIG. The data is stored in the test data storage unit 13 in the format shown. As shown in FIG. 6B, the test data includes items of an execution path name, test data ID, level (value), factor (variable), expected value, normal input or abnormal input distinction, and test result.

出力部7は、テストデータ生成部6で生成されたテストデータをテストデータ記憶部13から読み出してユーザ端末20に出力する。ここでは、CSV形式で出力するものとする。   The output unit 7 reads the test data generated by the test data generation unit 6 from the test data storage unit 13 and outputs it to the user terminal 20. Here, the output is in CSV format.

以下に、上記の構成における動作を説明する。   The operation in the above configuration will be described below.

図7は、本発明の一実施の形態におけるテストデータ生成装置の動作のフローチャートである。   FIG. 7 is a flowchart of the operation of the test data generation apparatus in one embodiment of the present invention.

ステップ100) 設計モデル読込部1は、ユーザ端末200からエクスポートされたXML形式のUML(Unified Modeling Language)モデルを読み込み、設計モデル分析部2に渡す。   Step 100) The design model reading unit 1 reads an XML (Unified Modeling Language) model in XML format exported from the user terminal 200 and passes it to the design model analysis unit 2.

ステップ110) 設計モデル分析部2は、設計モデル読込部1から取得したUML設計モデルを分解してアクティビティをテスト対象として抽出し、実行経路抽出部3に渡す。   Step 110) The design model analysis unit 2 decomposes the UML design model acquired from the design model reading unit 1, extracts activities as test targets, and passes them to the execution path extraction unit 3.

ステップ120) 実行経路抽出部3は、図8に示すように、取得した各テスト対象(アクティビティ)の開始ノードから終了ノードまで走査して実行経路を抽出し、全ての実行経路情報を実行経路・水準記憶部11及びテストデータ仕様生成部4に渡す。実行経路情報は図10に示すように各ノードの処理、分岐条件、事後条件を含む。   Step 120) As shown in FIG. 8, the execution path extraction unit 3 scans from the start node to the end node of each acquired test target (activity) to extract the execution path, and extracts all execution path information from the execution path / The data is passed to the level storage unit 11 and the test data specification generation unit 4. The execution path information includes processing of each node, branch conditions, and post-conditions as shown in FIG.

ステップ130) テストデータ仕様生成部4は、各実行経路情報に基づいて図5に示すようなフォーマットでテストデータ仕様を生成し、テストデータ仕様記憶部12に格納する。   Step 130) The test data specification generation unit 4 generates a test data specification in a format as shown in FIG. 5 based on each execution path information, and stores it in the test data specification storage unit 12.

以下に、テストデータ仕様生成部4の動作を説明する。図9は、本発明の一実施の形態におけるテストデータ仕様生成部のフローチャートである。以下では、テストデータ仕様記憶部12は因子の型に基づき対応するテストデータ仕様をデフォルトで初期化されているものとする。   Below, operation | movement of the test data specification production | generation part 4 is demonstrated. FIG. 9 is a flowchart of the test data specification generation unit in one embodiment of the present invention. In the following, it is assumed that the test data specification storage unit 12 is initialized by default with the corresponding test data specification based on the type of factor.

ステップ131) テストデータ仕様生成部4は、実行経路抽出部3から実行経路情報を取得し、メモリ(図示せず)に格納する。     Step 131) The test data specification generation unit 4 acquires execution path information from the execution path extraction unit 3 and stores it in a memory (not shown).

ステップ132) メモリ(図示せず)から実行経路を取得して、図10に示すような実行経路の開始ノードから終了ノードまでを走査し、その中に含まれる制約条件を抽出する。     Step 132) An execution path is acquired from a memory (not shown), and the execution path as shown in FIG. 10 is scanned from the start node to the end node, and the constraint conditions contained therein are extracted.

ステップ133 テストデータ仕様記憶部12から1件のテストデータ仕様を読み込む。全てのテストデータ仕様を読み込んだ場合は、当該処理を終了する。     Step 133 One test data specification is read from the test data specification storage unit 12. When all the test data specifications have been read, the process ends.

ステップ134) 読み込んだテストデータ仕様の因子名と制約条件に含まれる因子を比較し、一致する場合は、ステップ135に移行し、一致しない場合はステップ133に戻る。     Step 134) The factor name of the read test data specification is compared with the factor included in the constraint condition. If they match, the process proceeds to Step 135, and if they do not match, the process returns to Step 133.

ステップ135) 因子名が一致する場合は、テストデータ仕様記憶部12のテストデータ仕様を制約条件の内容で更新する。     Step 135) If the factor names match, the test data specification in the test data specification storage unit 12 is updated with the contents of the constraint condition.

ステップ140) 水準生成部5は、テストデータ仕様記憶部12からテストデータ仕様を読み込み、因子のとる値(実験計画法でいう『水準』)を生成し、実行経路・水準記憶部11に格納する。水準は、テストデータ仕様の型によって異なる。   Step 140) The level generation unit 5 reads the test data specification from the test data specification storage unit 12, generates a value taken by the factor ("level" in the experimental design method), and stores it in the execution path / level storage unit 11 . The level depends on the type of test data specification.

例えば、テストデータ仕様の型が「Boolean型」である場合は、図5に示すBoolean型テストデータ仕様の値vを取得して、「true」「false」を正常水準とし、null、Boolean型ではない値を異常水準として生成する。   For example, when the type of the test data specification is “Boolean type”, the value v of the Boolean type test data specification shown in FIG. 5 is acquired, and “true” and “false” are set to the normal level. Generate a non-existing value as an abnormal level

また、Enum型テストデータ仕様の場合は、図5に示すEnum型テストデータ仕様の「許容する要素S」の各要素sを正常水準とし、Sに属さない要素s'及び、null、Enum型でない値を異常水準とする。   In the case of the Enum type test data specification, each element s of the “allowable element S” of the Enum type test data specification shown in FIG. 5 is set to a normal level, and the element s ′ not belonging to S, null, and Enum type are not used. The value is an abnormal level.

また、Integer型テストデータ仕様の場合は、図5に示すInteger型テストデータ仕様の下限L,上限Uを取得し、L,L−1,U−1,U、ランダム値X(L≦X≦U)を正常水準とし、L−1,U+1、正、負でオーバーフローとなる値、null、Integer型でない値を異常水準とする。   In the case of the Integer type test data specification, the lower limit L and the upper limit U of the Integer type test data specification shown in FIG. 5 are acquired, and L, L-1, U-1, U, and a random value X (L ≦ X ≦ U) is a normal level, L-1, U + 1, positive and negative values that overflow, null, and non-integer values are abnormal levels.

他の型についてもテストデータ仕様の型毎に所定の水準を求める。   For other types, a predetermined level is obtained for each type of test data specification.

上記のようにして求められた水準を因子と共に実行経路・水準記憶部11に格納する。   The level obtained as described above is stored in the execution path / level storage unit 11 together with the factor.

ステップ150) テストデータ生成部6は、実行経路・水準記憶部11から水準と因子の組(入力)を取得して、入力と期待値のペアからなるテストデータを生成し、図6(B)に示すようなフォーマットでテストデータ記憶部13に格納する。「入力」とは、実行経路・水準記憶部11から取得した因子と水準の組み合わせである。「入力」として、1つの因子に対し、全て正常水準の組み合わせを「正常入力」とし、また、1つの因子に対し、正常水準と1つの異常水準の組み合せを「異常入力」とする。図11(A)に示すように、正常水準の組み合わせを正常入力とし、同図(B)に示すように正常水準と1つの異常水準を含む組み合わせを異常水準とする。   Step 150) The test data generation unit 6 obtains a set of levels and factors (input) from the execution path / level storage unit 11, and generates test data consisting of pairs of inputs and expected values, as shown in FIG. Is stored in the test data storage unit 13 in the format shown in FIG. The “input” is a combination of a factor and a level acquired from the execution path / level storage unit 11. As an “input”, a combination of all normal levels for one factor is “normal input”, and a combination of a normal level and one abnormal level is “abnormal input” for one factor. As shown in FIG. 11A, a combination of normal levels is set as a normal input, and a combination including a normal level and one abnormal level is set as an abnormal level as shown in FIG.

当該入力の生成方法については、図12以降で詳述する。   A method for generating the input will be described in detail with reference to FIG.

ステップ160) 出力部7は、テストデータ生成部6で生成されたテストデータ(CSVファイル)をテストデータ記憶部13から読み込んで、外部ファイル(ユーザ端末のビューア220)に出力する。   Step 160) The output unit 7 reads the test data (CSV file) generated by the test data generation unit 6 from the test data storage unit 13 and outputs it to an external file (user terminal viewer 220).

次に、ステップ150のテストデータ生成部6の処理について説明する。   Next, the process of the test data generation unit 6 in step 150 will be described.

図12は、本発明の一実施の形態におけるテストデータ生成部のフローチャートである。   FIG. 12 is a flowchart of the test data generation unit in one embodiment of the present invention.

ステップ151) 実行経路・水準記憶部11から全因子の全水準を取得し、メモリ(図示せず)に格納する。   Step 151) All levels of all factors are acquired from the execution path / level storage unit 11 and stored in a memory (not shown).

ステップ152) 各因子において正常水準からなる正常入力の生成を行う。当該正常入力の詳細な生成処理を図13に示し、正常入力の例を図11(A)に示す。   Step 152) A normal input consisting of a normal level is generated for each factor. The detailed generation process of the normal input is shown in FIG. 13, and an example of normal input is shown in FIG.

ステップ1521) ステップ151で取得した全因子より、最も正常水準を多く持つ因子Aの正常水準数Mを特定する。     Step 1521) The normal level number M of the factor A having the most normal level is specified from all the factors acquired in Step 151.

ステップ1522) テストデータ記憶部13上に、M件の空の正常入力を生成する(レコードを生成する)。     Step 1522) M empty normal inputs are generated on the test data storage unit 13 (a record is generated).

ステップ1523) 生成されたレコードの正常入力のカラムに因子Aの正常水準を順番に埋める。     Step 1523) The normal level of factor A is sequentially filled in the normal input column of the generated record.

ステップ1524) 次に、因子A以外の各因子の正常水準を繰り返し正常入力に埋める。     Step 1524) Next, the normal level of each factor other than factor A is repeatedly filled in the normal input.

ここでは、ありうる全組み合わせではなく、各因子における全ての水準が少なくとも1回はテストで使用されるよう、入力の組み合わせを作る。この基準を「全水準網羅」と呼ぶ。全ての正常水準からなる組み合わせを「正常入力」とする。従って生成される正常入力の数は、最も水準数の多い因子の水準数と一致し、これは全水準網羅を満たす最小の組み合わせ数である。   Here, the input combinations are made so that all levels in each factor are used at least once in the test, rather than all possible combinations. This criterion is called “all-level coverage”. A combination consisting of all normal levels is defined as “normal input”. Therefore, the number of normal inputs generated coincides with the number of levels of the factor with the highest number of levels, which is the minimum number of combinations that satisfies all level coverage.

上記の処理をプログラムレベルで表すと図14に示すような流れとなる。   When the above processing is expressed at the program level, the flow is as shown in FIG.

ステップ153) 各因子において、1つの異常水準を含む異常入力の生成を行う。以下に、図15に従って当該異常入力の生成処理について説明する。また、その例を図11(B)に示す。   Step 153) For each factor, an abnormal input including one abnormal level is generated. The abnormal input generation process will be described below with reference to FIG. An example thereof is shown in FIG.

ステップ1531) メモリ(図示せず)に格納されている全因子より、各因子の異常水準数の合計Nを特定する。     Step 1531) The total number N of abnormal levels of each factor is specified from all factors stored in a memory (not shown).

ステップ1532) テストデータ記憶部13上に、N件の空の異常入力を生成する(レコードを生成する)。     Step 1532) N empty input entries are generated on the test data storage unit 13 (a record is generated).

ステップ1533) 生成した正常入力をレコード上の異常入力に繰り返し上書きする。     Step 1533) The generated normal input is repeatedly overwritten on the abnormal input on the record.

ステップ1534) 次に、各異常水準について、どの因子のものかに基づいて、異常水準を異常入力の該当箇所の1箇所のみに上書きする。     Step 1534) Next, for each abnormal level, the abnormal level is overwritten on only one corresponding portion of the abnormal input based on which factor.

この処理は、全水準網羅を満たす最小な組み合わせ数ではく、1つの組み合わせには1つの異常水準しか含めないように組み合わせを生成する。これは、異常入力によりシステムの不具合が発見された場合に、どの因子に起因する不具合か、特定できるようにするためである。   In this process, a combination is generated so that only one abnormal level is included in one combination, not the minimum number of combinations that satisfy all levels. This is in order to be able to specify which factor causes the malfunction when a malfunction of the system is discovered due to an abnormal input.

上記の処理をプログラムレベルで表すと図16に示すような流れとなる。   When the above processing is expressed at the program level, the flow is as shown in FIG.

ステップ154) 各入力に対して期待値を付与する。   Step 154) An expected value is assigned to each input.

以下に、図17に沿って期待値の付与について説明する。   Below, giving of an expected value is demonstrated along FIG.

図17は、本発明の一実施の形態におけるテストデータ生成部の「入力への期待値付与」処理のフローチャートである。   FIG. 17 is a flowchart of the “applying expected value to input” process of the test data generation unit according to the embodiment of the present invention.

ステップ1541) 実行経路・水準記憶部12から入力(因子+水準)と当該入力に対応する実行経路を取得する。     Step 1541) An input (factor + level) and an execution path corresponding to the input are acquired from the execution path / level storage unit 12.

ステップ1542) 実行経路中の全事後条件を取得する。事後条件は、図10に示すように、実行経路の開始ノードから終了ノードまで順にノードをチェックすることにより取得できる。     Step 1542) All postconditions in the execution path are acquired. As shown in FIG. 10, the post-condition can be acquired by checking the nodes in order from the start node to the end node of the execution path.

ステップ1543) 入力(因子+水準)が正常入力である場合は、ステップ1544に移行し、そうでない場合は、ステップ1545に移行する。     Step 1543) If the input (factor + level) is a normal input, the process proceeds to step 1544; otherwise, the process proceeds to step 1545.

ステップ1544) ステップ1542において事後条件が取得できた場合は、ステップ1547に移行し、取得できなかった場合はステップ1546に移行する。     Step 1544) If the post-conditions can be acquired in step 1542, the process proceeds to step 1547. If the post-conditions cannot be acquired, the process proceeds to step 1546.

ステップ1545) 期待値を「不定」として、入力(因子+水準)に付与する。     Step 1545) The expected value is set to “undefined” and given to the input (factor + level).

ステップ1546) 期待値を「未定義」として、入力(因子+水準)に付与する。     Step 1546) The expected value is set as “undefined” and given to the input (factor + level).

ステップ1457) 期待値を「事後条件の集合」として、入力(因子+水準)に付与する。     Step 1457) The expected value is assigned to the input (factor + level) as “a set of post-conditions”.

ここで、図6に示す例では、[status=APPROVED,orderld=任意文字列(999文字)]
が1つの入力で、[changedOrderが追加されていること]が期待値である。
In the example shown in FIG. 6, [status = APPROVED, orderld = arbitrary character string (999 characters)]
Is one input and [changedOrder has been added] is the expected value.

なお、上記の図3に示すテストデータ生成装置の各構成要素の動作をプログラムとして構築し、テストデータ生成装置として利用されるコンピュータにインストールして実行させる、または、ネットワークを介して流通させることが可能である。   The operation of each component of the test data generation device shown in FIG. 3 can be constructed as a program and can be installed and executed on a computer used as the test data generation device, or distributed via a network. Is possible.

また、構築されたプログラムをハードディスクや、フレキシブルディスク・CD−ROM等の可搬記憶媒体に格納し、コンピュータにインストールする、または、配布することが可能である。   Further, the constructed program can be stored in a portable storage medium such as a hard disk, a flexible disk, or a CD-ROM, and can be installed or distributed in a computer.

なお、本発明は、上記の実施の形態及び実施例に限定されることなく、特許請求の範囲内において種々変更・応用が可能である。   The present invention is not limited to the above-described embodiments and examples, and various modifications and applications can be made within the scope of the claims.

1 設計モデル読込手段、設計モデル読込部
2 設計モデル分析手段、設計モデル分析部
3 実行経路抽出手段、実行経路抽出部
4 テストデータ仕様生成手段、テストデータ仕様生成部
5 水準生成手段、水準生成部
6 テストデータ生成手段、テストデータ生成部
7 出力手段、出力部
10 テストデータ生成装置
11 実行経路・水準記憶手段、実行経路・水準記憶部
12 テストデータ仕様記憶手段、テストデータ仕様記憶部
13 テストデータ記憶手段、テストデータ記憶部
20 ユーザ端末
21 モデリングツール
22 ビューア
1 design model reading means, design model reading section 2 design model analyzing means, design model analyzing section 3 execution path extracting means, execution path extracting section 4 test data specification generating means, test data specification generating section 5 level generating means, level generating section 6 Test Data Generation Unit, Test Data Generation Unit 7 Output Unit, Output Unit 10 Test Data Generation Device 11 Execution Path / Level Storage Unit, Execution Path / Level Storage Unit 12 Test Data Specification Storage Unit, Test Data Specification Storage Unit 13 Test Data Storage means, test data storage unit 20 User terminal 21 Modeling tool 22 Viewer

Claims (3)

システムの設計情報を形式的な言語で記述した設計モデルの設計意図に沿って構築されたか否かを確認するためのテストデータを生成するテストデータ生成装置であって、
ユーザ端末より、UMLクラス図とアクティビティ図のみで記述した設計モデルを読み込む設計モデル読込手段と、
読み込まれた前記設計モデルからアクティビティ図をテスト対象として抽出する設計モデル分析手段と、
前記テスト対象から実行経路を抽出する実行経路抽出手段と、
テストデータ仕様が格納されたテストデータ仕様記憶手段と、
前記実行経路抽出手段から抽出された各実行経路を持つアクティビティの入力パラメータを変数(実験計画法でいう「因子」)が満たすべき実行経路の始点ノードから終点ノードを走査することにより抽出した制約条件に基づいて、前記テストデータ仕様記憶手段に格納されているテストデータ仕様を更新するテストデータ仕様生成手段と、
前記テストデータ仕様記憶手段から前記テストデータ仕様を読み込み、該テストデータ仕様の値に応じて、前記因子のとる値(実験計画法でいう「水準」)として、実行経路にとって許容する正常水準と、実行経路にとって許容しない異常水準を生成し、前記実行経路に対応させて該因子と該水準を実行経路・水準記憶手段に格納する水準生成手段と、
前記実行経路・水準記憶手段から前記因子と前記水準と前記実行経路を取得して、該因子と前記正常水準のみの組み合わせである正常入力と、該因子と異常水準を一つのみ含む水準の組み合わせである異常入力を生成し、該実行経路中に事後条件が含まれるか否かにより期待値を求め、該入力に該期待値を付与したテストデータを生成し、テストデータ記憶手段に格納するテストデータ生成手段と、
前記テストデータを前記ユーザ端末に出力する出力手段と、
を有することを特徴とするテストデータ生成装置。
A test data generation device for generating test data for confirming whether or not the system design information is constructed according to the design intention of a design model described in a formal language,
A design model reading means for reading a design model described only by a UML class diagram and an activity diagram from a user terminal;
Design model analysis means for extracting an activity diagram as a test target from the read design model;
Execution path extraction means for extracting an execution path from the test target;
Test data specification storage means storing test data specifications;
Constraint conditions extracted by scanning the end point node from the start point node of the execution path that the variable ("factor" in the experimental design method) should satisfy the input parameters of the activity having each execution path extracted from the execution path extracting means Based on the test data specification storage means for updating the test data specification stored in the test data specification storage means,
The test data specification is read from the test data specification storage means, and according to the value of the test data specification, as a value taken by the factor ("level" in the experimental design method), a normal level allowed for the execution path, Level generation means for generating an abnormal level that is not allowed for the execution path, and storing the factor and the level in the execution path / level storage means in correspondence with the execution path;
A combination of a level including only one of the factor and the abnormal level obtained by acquiring the factor, the level and the execution path from the execution path / level storage means, and a normal input which is a combination of the factor and the normal level only. A test for generating an abnormal input, obtaining an expected value based on whether or not a postcondition is included in the execution path, generating test data with the expected value added to the input, and storing the test data in the test data storage means Data generation means;
Output means for outputting the test data to the user terminal;
A test data generation apparatus comprising:
システムの設計情報を形式的な言語で記述した設計モデルの設計意図に沿って構築されたか否かを確認するためのテストデータを生成するテストデータ生成方法であって、
ユーザ端末より、UMLクラス図とアクティビティ図のみで記述した設計モデルを読み込む設計モデル読込ステップと、
読み込まれた前記設計モデルからアクティビティ図をテスト対象として抽出する設計モデル分析ステップと、
前記テスト対象から実行経路を抽出する実行経路抽出ステップと、
前記実行経路抽出ステップで抽出された各実行経路を持つアクティビティの入力パラメータを変数(実験計画法でいう「因子」)が満たすべき実行経路の始点ノードから終点ノードを走査することにより抽出した制約条件に基づいて、テストデータ仕様記憶手段に格納されているテストデータ仕様を更新するテストデータ仕様生成ステップと、
前記テストデータ仕様記憶手段から前記テストデータ仕様を読み込み、該テストデータ仕様の値に応じて、前記因子のとる値(実験計画法でいう「水準」)として、実行経路にとって許容する正常水準と、実行経路にとって許容しない異常水準を生成し、前記実行経路に対応させて該因子と該水準を実行経路・水準記憶手段に格納する水準生成ステップと、
前記実行経路・水準記憶手段から前記因子と前記水準と前記実行経路を取得して、該因子と前記正常水準のみの組み合わせである正常入力と、該因子と異常水準を一つのみ含む水準の組み合わせである異常入力を生成し、該実行経路中に事後条件が含まれるか否かにより期待値を求め、該入力に該期待値を付与したテストデータを生成し、テストデータ記憶手段に格納するテストデータ生成ステップと、
前記テストデータを前記ユーザ端末に出力する出力ステップと、
を行うことを特徴とするテストデータ生成方法。
A test data generation method for generating test data for confirming whether or not the design information of a system is constructed according to the design intention of a design model described in a formal language,
A design model reading step for reading a design model described only by a UML class diagram and an activity diagram from a user terminal;
A design model analysis step of extracting an activity diagram from the read design model as a test target;
An execution path extraction step for extracting an execution path from the test target;
Constraint conditions extracted by scanning the end node from the start node of the execution path that the variable ("factor" in the experimental design method) should satisfy the input parameters of the activity having each execution path extracted in the execution path extraction step And a test data specification generation step for updating the test data specification stored in the test data specification storage means,
The test data specification is read from the test data specification storage means, and according to the value of the test data specification, as a value taken by the factor (“level” in the experimental design method), a normal level allowed for the execution path, A level generation step of generating an abnormal level that is not allowed for the execution path, and storing the factor and the level in the execution path / level storage unit in association with the execution path;
A combination of a level including only one of the factor and the abnormal level obtained by acquiring the factor, the level and the execution path from the execution path / level storage means, and a normal input which is a combination of the factor and the normal level only. A test that generates an abnormal input that is, calculates an expected value based on whether or not a postcondition is included in the execution path, generates test data with the expected value added to the input, and stores the test data in a test data storage unit A data generation step;
Outputting the test data to the user terminal;
The test data generation method characterized by performing.
請求項1記載のテストデータ生成装置を構成する各手段としてコンピュータを機能させるためのテストデータ生成プログラム。   A test data generation program for causing a computer to function as each means constituting the test data generation apparatus according to claim 1.
JP2009116916A 2009-05-13 2009-05-13 Test data generation method, apparatus and program Active JP5164918B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009116916A JP5164918B2 (en) 2009-05-13 2009-05-13 Test data generation method, apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009116916A JP5164918B2 (en) 2009-05-13 2009-05-13 Test data generation method, apparatus and program

Publications (2)

Publication Number Publication Date
JP2010267022A true JP2010267022A (en) 2010-11-25
JP5164918B2 JP5164918B2 (en) 2013-03-21

Family

ID=43363955

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009116916A Active JP5164918B2 (en) 2009-05-13 2009-05-13 Test data generation method, apparatus and program

Country Status (1)

Country Link
JP (1) JP5164918B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013148968A (en) * 2012-01-17 2013-08-01 Fujitsu Ltd Test data generation device, test data generation program and test data generation method
JP2016081229A (en) * 2014-10-15 2016-05-16 日本電信電話株式会社 Abnormal system test data generating device, method, and program, for multiple input variables
JP2016081231A (en) * 2014-10-15 2016-05-16 日本電信電話株式会社 Abnormal system test data generating device, method, and program, permitting ready recognition of multiple input variables
JP2016081228A (en) * 2014-10-15 2016-05-16 日本電信電話株式会社 Normal system test data generating device, method, and program, for multiple input variables
JP2016081230A (en) * 2014-10-15 2016-05-16 日本電信電話株式会社 Abnormal system test data generating device, method, and program, capable of efficiently covering specifications regarding multiple input variables

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04276835A (en) * 1991-03-04 1992-10-01 Nippon Telegr & Teleph Corp <Ntt> Method of generating program single body test data
JP2001282536A (en) * 2000-03-29 2001-10-12 Hitachi Software Eng Co Ltd Test item extraction device
JP2004151884A (en) * 2002-10-29 2004-05-27 Cats Kk Program for extracting test item
JP2005085182A (en) * 2003-09-11 2005-03-31 Fujitsu Ltd Test support system
JP2007018378A (en) * 2005-07-08 2007-01-25 I L C:Kk Debugging support system, method, target program, and host program
JP2007249826A (en) * 2006-03-17 2007-09-27 Mitsubishi Electric Corp Test item generation device
JP2007323573A (en) * 2006-06-05 2007-12-13 Internatl Business Mach Corp <Ibm> Functional test script generator

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04276835A (en) * 1991-03-04 1992-10-01 Nippon Telegr & Teleph Corp <Ntt> Method of generating program single body test data
JP2001282536A (en) * 2000-03-29 2001-10-12 Hitachi Software Eng Co Ltd Test item extraction device
JP2004151884A (en) * 2002-10-29 2004-05-27 Cats Kk Program for extracting test item
JP2005085182A (en) * 2003-09-11 2005-03-31 Fujitsu Ltd Test support system
JP2007018378A (en) * 2005-07-08 2007-01-25 I L C:Kk Debugging support system, method, target program, and host program
JP2007249826A (en) * 2006-03-17 2007-09-27 Mitsubishi Electric Corp Test item generation device
JP2007323573A (en) * 2006-06-05 2007-12-13 Internatl Business Mach Corp <Ibm> Functional test script generator

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013148968A (en) * 2012-01-17 2013-08-01 Fujitsu Ltd Test data generation device, test data generation program and test data generation method
JP2016081229A (en) * 2014-10-15 2016-05-16 日本電信電話株式会社 Abnormal system test data generating device, method, and program, for multiple input variables
JP2016081231A (en) * 2014-10-15 2016-05-16 日本電信電話株式会社 Abnormal system test data generating device, method, and program, permitting ready recognition of multiple input variables
JP2016081228A (en) * 2014-10-15 2016-05-16 日本電信電話株式会社 Normal system test data generating device, method, and program, for multiple input variables
JP2016081230A (en) * 2014-10-15 2016-05-16 日本電信電話株式会社 Abnormal system test data generating device, method, and program, capable of efficiently covering specifications regarding multiple input variables

Also Published As

Publication number Publication date
JP5164918B2 (en) 2013-03-21

Similar Documents

Publication Publication Date Title
US20170053121A1 (en) Techniques for correlating vulnerabilities across an evolving codebase
JP5164918B2 (en) Test data generation method, apparatus and program
JP2009116847A (en) Device and method for inspecting software for vulnerabilities
JP2009176246A (en) System and method for verifying operation of system
EP3682324A1 (en) Method and apparatus for finding long methods in code
US9069963B2 (en) Statistical inspection systems and methods for components and component relationships
JP6559600B2 (en) Information processing apparatus, information processing program, and inspection system
KR20190031030A (en) Method and system for identifying an open source software package based on binary files
JP5164920B2 (en) Test data generation method, apparatus and program
JP5164919B2 (en) Test data generation method, apparatus and program
US9734458B2 (en) Predicting outcome based on input
JP6945768B2 (en) Detection device, detection method, and detection program
US8572005B2 (en) Representation of a set of numeric values in a computerized environment
JP5755861B2 (en) Test case generation apparatus, test case generation method, and test case generation program
JP2016167180A (en) Debug support apparatus, debug support system, debug support method and debug support program
US20130262487A1 (en) Log management method, log management system, and information processing apparatus
US8554522B2 (en) Detection of design redundancy
US20220164277A1 (en) Analysis and Testing of Embedded Code
JP5900212B2 (en) Test data generation apparatus, program, and method
US20090235223A1 (en) Program generation apparatus and program generation method
US20230281368A1 (en) Systems and methods for identifying and remediating architecture risk
JP2005316710A (en) Software test support device
JP2008262473A (en) Equipment maintenance management system
JP2010097328A (en) Loop optimization system, loop optimization method, and program for loop optimization
JP6919570B2 (en) Software analysis device, software analysis method, and software analysis program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110202

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120203

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120731

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120925

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121218

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151228

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5164918

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350