JP5487180B2 - Test case generation program and test case generation apparatus - Google Patents

Test case generation program and test case generation apparatus Download PDF

Info

Publication number
JP5487180B2
JP5487180B2 JP2011216730A JP2011216730A JP5487180B2 JP 5487180 B2 JP5487180 B2 JP 5487180B2 JP 2011216730 A JP2011216730 A JP 2011216730A JP 2011216730 A JP2011216730 A JP 2011216730A JP 5487180 B2 JP5487180 B2 JP 5487180B2
Authority
JP
Japan
Prior art keywords
metamodel
design
test case
class
item
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2011216730A
Other languages
Japanese (ja)
Other versions
JP2013077173A (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.)
Toshiba Corp
Toshiba Digital Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Solutions 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 Toshiba Corp, Toshiba Solutions Corp filed Critical Toshiba Corp
Priority to JP2011216730A priority Critical patent/JP5487180B2/en
Publication of JP2013077173A publication Critical patent/JP2013077173A/en
Application granted granted Critical
Publication of JP5487180B2 publication Critical patent/JP5487180B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明の実施形態は、テストケース生成プログラム及びテストケース生成装置に関する。   Embodiments described herein relate generally to a test case generation program and a test case generation apparatus.

一般に、テストケースを生成する作業者は、システム全体、機能の組合せ又は機能等のテスト対象毎に、テストケースへのマッピング方法(変換方法)を検討する。その後、作業者は、得られたマッピング方法に基づき、テスト対象からテストケースを生成する。   In general, an operator who generates a test case considers a mapping method (conversion method) to a test case for each test target such as the entire system, a combination of functions, or a function. Thereafter, the worker generates a test case from the test target based on the obtained mapping method.

例えば、作業者は、テスト対象の要件/設計要素からテストケースへのマッピング方法を個別に検討して抽出する。続いて、作業者は、抽出したマッピング方法に基づき、要件/設計要素をテストケースにマッピングし、テストケースを生成する。   For example, the worker individually examines and extracts a mapping method from requirements / design elements to be tested to test cases. Subsequently, the worker maps the requirement / design element to the test case based on the extracted mapping method, and generates a test case.

特開2004−220330号公報JP 2004-220330 A 特許第3464159号公報Japanese Patent No. 3464159

しかしながら、以上のようなテストケース生成作業では、マッピング方法をどのように抽出するかが不明確であり、マッピング方法を個別に検討する手間がかかる結果、生成されるテストケースの質が低下する傾向にある。なお、ここでいう質の低下は、作業者のノウハウや経験に依存して発生しており、要件/設計要素に対応するテストケース全体が漏れている場合や、テスト条件が不十分なためにテストケースの一部が漏れている場合がある。すなわち、未熟な作業者である程、テストケースに漏れが発生し易い傾向にある。   However, in the test case generation work as described above, it is unclear how to extract the mapping method, and it takes time to examine the mapping method individually, and as a result, the quality of the generated test case tends to deteriorate. It is in. Note that the deterioration in quality here depends on the know-how and experience of the operator, either because the entire test case corresponding to the requirement / design element is missing or because the test conditions are insufficient. Some test cases may be leaking. That is, the more unskilled the worker, the more likely it is that leakage occurs in the test case.

従って、テストケース生成の際に、未熟な作業者に対してもテストケースの漏れの発生を無くすことが求められている。   Therefore, when generating test cases, it is required that unskilled workers eliminate the occurrence of test case leakage.

本発明が解決しようとする課題は、テストケース生成の際に、未熟な作業者に対してもテストケースの漏れの発生を無くし得るテストケース生成プログラム及びテストケース生成装置を提供することである。   The problem to be solved by the present invention is to provide a test case generation program and a test case generation apparatus that can eliminate the occurrence of test case leakage even for unskilled workers when generating test cases.

実施形態のテストケース生成装置は、テスト対象の設計書に記述された画面又はデータに対応する設計要素と、前記設計要素の構造を表す設計メタモデルと、前記設計メタモデルの構造を表す設計メタメタモデルと、前記設計要素を用いてテスト内容を記述したテストケースの構造を表すテストケースメタモデルと、前記テストケースメタモデルの構造を表すテストケースメタメタモデルと、前記テストケースメタメタモデル及び前記設計メタメタモデル間の関係を表すマッピングルールメタメタモデルと、前記テストケースメタモデル及び前記設計メタモデル間の関連付けを表すマッピングルールメタモデルと、前記テストケースとを記憶するための記憶手段を備えている。   The test case generation apparatus of the embodiment includes a design element corresponding to a screen or data described in a design document to be tested, a design metamodel representing the structure of the design element, and a design metameta representing the structure of the design metamodel. A test case metamodel representing a model, a test case structure describing test contents using the design elements, a test case metametamodel representing the structure of the test case metamodel, the test case metametamodel, and the design metameta A storage unit is provided for storing a mapping rule meta-meta model representing a relationship between models, a mapping rule meta-model representing an association between the test case meta model and the design meta model, and the test case.

前記テストケース生成装置は、前記設計要素との置換部分を含んで前記テストケースのひな型を表すテストケーステンプレートを前記テストケースメタモデルの一部として準備し、前記テストケーステンプレートの置換部分を前記テスト対象の設計要素に置換して前記テストケースを生成する。   The test case generation device prepares a test case template that includes a replacement part for the design element and represents a template of the test case as a part of the test case metamodel, and uses the replacement part of the test case template as the test part. The test case is generated by replacing the target design element.

前記テストケース生成装置は、それぞれUMLのクラス図で表された前記設計メタメタモデル、前記テストケースメタメタモデル及び前記マッピングルールメタメタモデルを予め前記記憶手段に書込む。   The test case generation apparatus writes the design meta meta model, the test case meta meta model, and the mapping rule meta meta model, each represented by a UML class diagram, in the storage unit in advance.

前記テストケース生成装置は、前記記憶手段内の設計メタメタモデルを表示することにより、前記設計メタモデルを表すUMLのクラス図の入力を促す。   The test case generation device prompts the user to input a UML class diagram representing the design metamodel by displaying the design metametamodel in the storage means.

前記テストケース生成装置は、前記入力を受け付けた前記設計メタモデルを表すUMLのクラス図を前記記憶手段に書込む。   The test case generation apparatus writes a UML class diagram representing the design metamodel that has received the input into the storage unit.

前記テストケース生成装置は、前記記憶手段内の前記設計メタモデルを表すUMLのクラス図を表示することにより、前記設計メタモデルを構成する設計メタモデル要素を示す設計メタモデル要素データ、当該設計メタモデル要素の属性を示す設計メタモデル要素属性データ及び関連先の設計メタモデル要素データの入力を促す。   The test case generation device displays design metamodel element data indicating design metamodel elements constituting the design metamodel by displaying a UML class diagram representing the design metamodel in the storage unit, the design metamodel The user is prompted to input design metamodel element attribute data indicating the attribute of the model element and related design metamodel element data.

前記テストケース生成装置は、前記入力を受け付けた前記設計メタモデル要素データ、前記設計メタモデル要素属性データ及び前記関連先の設計メタモデル要素データを前記記憶手段に書込む。   The test case generation device writes the design metamodel element data, the design metamodel element attribute data, and the related design metamodel element data that have received the input to the storage unit.

前記テストケース生成装置は、前記記憶手段内の前記設計メタモデルを表すUMLのクラス図、前記設計メタモデル要素データ、前記設計メタモデル要素属性データ及び前記関連先の設計メタモデル要素データに対し、前記記憶手段内の設計メタメタモデルに違反している箇所を含むか否かを検証する。   The test case generation apparatus performs the UML class diagram representing the design metamodel in the storage unit, the design metamodel element data, the design metamodel element attribute data, and the design metamodel element data of the related destination. It is verified whether or not a location that violates the design meta-meta model in the storage means is included.

前記テストケース生成装置は、この検証結果が否を示す場合、前記記憶手段内の前記設計メタモデルを表すUMLのクラス図、前記設計メタモデル要素データ、前記設計メタモデル要素属性データ及び前記関連先の設計メタモデル要素データを表示することにより、前記設計要素を特定する要素データ、当該設計要素の項目を示す要素項目データ及び当該設計要素の処理を示す要素処理データの入力を促す。   When the verification result indicates NO, the test case generation device, the UML class diagram representing the design metamodel in the storage means, the design metamodel element data, the design metamodel element attribute data, and the related destination By displaying the design metamodel element data, it is urged to input element data specifying the design element, element item data indicating an item of the design element, and element processing data indicating a process of the design element.

前記テストケース生成装置は、前記入力を受け付けた前記要素データ、前記要素項目データ及び前記要素処理データを前記記憶手段に書込む。   The test case generation device writes the element data, the element item data, and the element processing data that have received the input into the storage unit.

前記テストケース生成装置は、前記記憶手段内のテストケースメタメタモデルを表すUMLのクラス図及び前記設計メタモデルを表すUMLのクラス図を表示することにより、前記テストケースメタモデルを表すUMLのクラス図の入力を促す。   The test case generation apparatus displays a UML class diagram representing a test case meta metamodel in the storage unit and a UML class diagram representing the design meta model, thereby displaying a UML class diagram representing the test case meta model. Prompt for

前記テストケース生成装置は、前記入力を受け付けた前記テストケースメタモデルを表すUMLのクラス図を前記記憶手段に書込む。   The test case generation apparatus writes a UML class diagram representing the test case metamodel that has received the input into the storage unit.

前記テストケース生成装置は、前記記憶手段内の前記テストケースメタモデルを表すUMLのクラス図を表示することにより、前記テストケースメタモデルを構成するテストケースメタモデル要素を示すテストケースメタモデル要素データ及び当該テストケースメタモデル要素の属性を示すテストケースメタモデル要素属性データの入力を促す。   The test case generation apparatus displays test case metamodel element data indicating test case metamodel elements constituting the test case metamodel by displaying a UML class diagram representing the test case metamodel in the storage unit. And prompting for input of test case metamodel element attribute data indicating the attribute of the test case metamodel element.

前記テストケース生成装置は、前記入力を受け付けた前記テストケースメタモデル要素データ及び前記テストケースメタモデル要素属性データを前記記憶手段に書込む。   The test case generation device writes the test case metamodel element data and the test case metamodel element attribute data that have received the input into the storage unit.

前記テストケース生成装置は、前記記憶手段内の前記テストケースメタモデルを表すUMLのクラス図、前記テストケースメタモデル要素データ及び前記テストケースメタモデル要素属性データに対し、前記記憶手段内のテストケースメタメタモデルに違反している箇所を含むか否かを検証する。   The test case generation apparatus is configured to test a test case in the storage unit for a UML class diagram representing the test case metamodel in the storage unit, the test case metamodel element data, and the test case metamodel element attribute data. It is verified whether the location that violates the meta-meta model is included.

前記テストケース生成装置は、この検証結果が否を示す場合、前記記憶手段内のマッピングルールメタメタモデルを表すUMLのクラス図、前記記憶手段内のテストケースメタモデルを表すUMLのクラス図及び前記設計メタモデルを表すUMLのクラス図を表示することにより、前記マッピングルールメタモデルを表すUMLのクラス図の入力を促す。   When the verification result indicates NO, the test case generation device, the UML class diagram representing the mapping rule meta meta model in the storage means, the UML class diagram representing the test case meta model in the storage means, and the design By displaying the UML class diagram representing the meta model, the user is prompted to input the UML class diagram representing the mapping rule meta model.

前記テストケース生成装置は、前記入力を受け付けた前記マッピングルールメタモデルを表すUMLのクラス図を前記記憶手段に書込む。   The test case generation apparatus writes a UML class diagram representing the mapping rule metamodel that has received the input into the storage unit.

前記テストケース生成装置は、前記記憶手段内の前記マッピングルールメタモデルを表すUMLのクラス図、前記設計メタモデル要素データ及び前記テストケースメタモデル要素データを表示することにより、前記マッピングルールメタモデルを構成するマッピングルールメタモデル要素を示すマッピングルールメタモデル要素データ及び当該マッピングルールメタモデル要素の属性を示すマッピングルールメタモデル要素属性データの入力を促す。   The test case generation apparatus displays the mapping rule metamodel by displaying a UML class diagram representing the mapping rule metamodel in the storage unit, the design metamodel element data, and the test case metamodel element data. The user is prompted to input mapping rule metamodel element data indicating a mapping rule metamodel element to be configured and mapping rule metamodel element attribute data indicating an attribute of the mapping rule metamodel element.

前記テストケース生成装置は、前記入力を受け付けた前記マッピングルールメタモデル要素データ及び前記マッピングルールメタモデル要素属性データを前記記憶手段に書込む。   The test case generation device writes the mapping rule metamodel element data and the mapping rule metamodel element attribute data that have received the input to the storage unit.

前記テストケース生成装置は、前記記憶手段内の前記マッピングルールメタモデルを表すUMLのクラス図、前記マッピングルールメタモデル要素データ及び前記マッピングルールメタモデル要素属性データに対し、前記記憶手段内のマッピングルールメタメタモデルに違反している箇所を含むか否かを検証する。   The test case generation device includes a mapping rule in the storage unit for a UML class diagram representing the mapping rule metamodel in the storage unit, the mapping rule metamodel element data, and the mapping rule metamodel element attribute data. It is verified whether the location that violates the meta-meta model is included.

前記テストケース生成装置は、この検証結果が否を示す場合、前記記憶手段内のマッピングルールメタモデルを表すクラス図と前記テストケースメタモデル要素属性データとを表示することにより、前記設計要素との置換部分として前記要素データ、前記要素項目データ及び前記要素処理データ内のいずれかの項目を含んで前記テストケースのひな型を表すテストケーステンプレートの入力を促す。   If the verification result indicates NO, the test case generation device displays a class diagram representing the mapping rule metamodel in the storage unit and the test case metamodel element attribute data, thereby The user is prompted to input a test case template representing a model of the test case including any item in the element data, the element item data, and the element processing data as a replacement part.

前記テストケース生成装置は、前記入力を受け付けたテストケーステンプレートを前記記憶手段に書込む。   The test case generation device writes the test case template that has received the input into the storage unit.

前記テストケース生成装置は、前記記憶手段内の前記テストケーステンプレートの置換部分の各項目を、前記要素データ、前記要素項目データ及び前記要素処理データ内の前記いずれかの項目の値に置換して前記テストケースを生成する。   The test case generation device replaces each item of the replacement part of the test case template in the storage unit with the value of any one of the items in the element data, the element item data, and the element processing data. The test case is generated.

前記テストケース生成装置は、当該生成したテストケースを前記記憶手段に書込む。   The test case generation device writes the generated test case in the storage means.

一実施形態に係るテストケース生成装置に用いられる各モデルの階層を説明するための模式図である。It is a schematic diagram for demonstrating the hierarchy of each model used for the test case production | generation apparatus which concerns on one Embodiment. 同実施形態におけるテストケース生成装置の構成を示す模式図である。It is a schematic diagram which shows the structure of the test case production | generation apparatus in the same embodiment. 同実施形態における設計要素記憶部を説明するための模式図である。It is a schematic diagram for demonstrating the design element memory | storage part in the embodiment. 同実施形態における設計要素記憶部を説明するための模式図である。It is a schematic diagram for demonstrating the design element memory | storage part in the embodiment. 同実施形態における設計メタメタモデル記憶部を説明するための模式図である。It is a schematic diagram for demonstrating the design meta metamodel memory | storage part in the embodiment. 同実施形態における設計メタメタモデル、テストケースメタメタモデル及びマッピングルールメタメタモデルを示す模式図である。It is a schematic diagram which shows the design meta meta model in the same embodiment, a test case meta meta model, and a mapping rule meta meta model. 同実施形態における設計メタモデル記憶部を説明するための模式図である。It is a schematic diagram for demonstrating the design metamodel memory | storage part in the embodiment. 同実施形態における設計メタモデル記憶部を説明するための模式図である。It is a schematic diagram for demonstrating the design metamodel memory | storage part in the embodiment. 同実施形態におけるテストケースメタメタモデル記憶部を説明するための模式図である。It is a schematic diagram for demonstrating the test case metameta model memory | storage part in the embodiment. 同実施形態におけるテストケースメタモデル記憶部を説明するための模式図である。It is a schematic diagram for demonstrating the test case metamodel memory | storage part in the embodiment. 同実施形態におけるテストケースメタモデル記憶部を説明するための模式図である。It is a schematic diagram for demonstrating the test case metamodel memory | storage part in the embodiment. 同実施形態におけるマッピングルールメタメタモデル記憶部を説明するための模式図である。It is a schematic diagram for demonstrating the mapping rule metametamodel memory | storage part in the embodiment. 同実施形態におけるマッピングルールメタモデル記憶部を説明するための模式図である。It is a schematic diagram for demonstrating the mapping rule metamodel memory | storage part in the embodiment. 同実施形態におけるマッピングルールメタモデル記憶部を説明するための模式図である。It is a schematic diagram for demonstrating the mapping rule metamodel memory | storage part in the embodiment. 同実施形態におけるテストケース記憶部を説明するための模式図である。It is a schematic diagram for demonstrating the test case memory | storage part in the same embodiment. 同実施形態におけるテストケース生成装置の全体動作を説明するためのフローチャートである。It is a flowchart for demonstrating the whole operation | movement of the test case production | generation apparatus in the same embodiment. 同実施形態における設計メタモデルの作成・登録の動作を説明するためのフローチャートである。It is a flowchart for demonstrating the operation | movement of creation / registration of the design metamodel in the embodiment. 同実施形態における設計メタメタモデルの一部を示す模式図である。It is a schematic diagram which shows a part of design meta metamodel in the embodiment. 同実施形態において作成・登録された設計メタモデル要素データ及び設計メタモデル要素属性データの一例を示す模式図である。It is a schematic diagram which shows an example of the design metamodel element data and design metamodel element attribute data which were created and registered in the embodiment. 同実施形態において作成・登録された関連先の設計メタモデル要素データの一例を示す模式図である。It is a schematic diagram which shows an example of the design metamodel element data of the relation destination created and registered in the embodiment. 同実施形態において作成・登録された設計メタモデルの一部を示す模式図である。It is a schematic diagram which shows a part of design metamodel created and registered in the embodiment. 同実施形態における設計メタモデルの検証の動作を説明するためのフローチャートである。It is a flowchart for demonstrating the operation | movement of verification of the design metamodel in the embodiment. 同実施形態における設計要素の作成・登録の動作を説明するための模式図である。It is a schematic diagram for demonstrating operation | movement of creation / registration of the design element in the embodiment. 同実施形態におけるテストケースメタモデルの作成・登録の動作を説明するための模式図である。It is a schematic diagram for demonstrating operation | movement of creation / registration of the test case metamodel in the embodiment. 同実施形態におけるテストケースメタメタモデルの一部を示す模式図である。It is a schematic diagram which shows a part of test case meta meta model in the embodiment. 同実施形態において作成・登録されたテストケースメタモデル要素データ及びテストケースメタモデル要素属性データの一例を示す模式図である。It is a schematic diagram which shows an example of the test case metamodel element data and test case metamodel element attribute data which were created and registered in the embodiment. 同実施形態において作成・登録されたテストケースメタモデルの一部を示す模式図である。It is a schematic diagram which shows a part of test case metamodel created and registered in the embodiment. 同実施形態におけるテストケースメタモデルの検証の動作を説明するためのフローチャートである。It is a flowchart for demonstrating the operation | movement of verification of the test case metamodel in the embodiment. 同実施形態におけるマッピングルールメタモデルの作成・登録の動作を説明するためのフローチャートである。It is a flowchart for demonstrating operation | movement of creation / registration of the mapping rule metamodel in the embodiment. 同実施形態におけるマッピングルールメタメタモデルの一部を示す模式図である。It is a schematic diagram which shows a part of mapping rule meta meta model in the embodiment. 同実施形態において作成・登録されたマッピングルールメタモデル要素データ及びマッピングルールメタモデル要素属性データの一例を示す模式図である。It is a schematic diagram which shows an example of the mapping rule metamodel element data and mapping rule metamodel element attribute data which were created and registered in the embodiment. 同実施形態において作成・登録されたマッピングルールの一部を示す模式図である。It is a schematic diagram which shows a part of mapping rule created and registered in the same embodiment. 同実施形態におけるマッピングルールメタモデルの検証の動作を説明するためのフローチャートである。It is a flowchart for demonstrating the operation | movement of verification of the mapping rule metamodel in the embodiment. 同実施形態におけるテストケースの生成の動作を説明するためのフローチャートである。It is a flowchart for demonstrating the operation | movement of the production | generation of the test case in the embodiment. 同実施形態におけるテストケーステンプレート及びマッピングルールメタモデルを示す模式図である。It is a schematic diagram which shows the test case template and mapping rule metamodel in the embodiment. 同実施形態においてテストケーステンプレートの置換部分への置換に用いられる要素データ、要素項目データ及び要素処理データの一例を示す模式図である。FIG. 4 is a schematic diagram illustrating an example of element data, element item data, and element processing data used for replacement with a replacement part of a test case template in the embodiment. 同実施形態において生成されたテストケースの一例を示す模式図である。It is a schematic diagram which shows an example of the test case produced | generated in the embodiment.

以下、本発明の各実施形態について図面を用いて説明する。なお、以下の各装置は、装置毎に、ハードウェア構成、又はハードウェア資源とソフトウェアとの組合せ構成のいずれでも実施可能となっている。組合せ構成のソフトウェアとしては、予めネットワーク又は記憶媒体から対応する装置のコンピュータにインストールされ、対応する装置の機能を実現させるためのプログラムが用いられる。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. Each of the following devices can be implemented for each device with either a hardware configuration or a combination configuration of hardware resources and software. As the software of the combined configuration, a program that is installed in advance on a computer of a corresponding device from a network or a storage medium and that realizes the function of the corresponding device is used.

本実施形態では、テスト対象の要件/設計要素の構造(設計メタモデル)を、テストケースの構造(テストケースメタモデル)にマッピングすることにより、テストケースの生成を行うことができる。実際に、要件/設計要素をテストケースに変換する際には、テストケースのテンプレートを用意する。但し、このテストケースのテンプレートは、テストケースの構造(テストケースメタモデル)の種類だけ用意すればよい。また、テスト対象の要件/設計要素の構造(設計メタモデル)、テストケースの構造(テストケースメタモデル)、及び両者のマッピングルール(マッピングルールメタモデル)を、利用者が定義してシステムに取り込むことを可能にし、テストケース生成の適用範囲を拡げることも容易になる。   In the present embodiment, a test case can be generated by mapping a requirement / design element structure (design metamodel) to be tested to a test case structure (test case metamodel). Actually, when converting requirements / design elements into test cases, a test case template is prepared. However, the test case templates need only be prepared for the type of test case structure (test case metamodel). Also, the user defines the requirements / design element structure (design metamodel) to be tested, the test case structure (test case metamodel), and the mapping rules (mapping rule metamodel) of both, and imports them into the system. This makes it easy to expand the scope of test case generation.

設計メタモデルの構造のパターン、テストケースメタモデルの構造のパターン、及び両者間のマッピングルールメタモデルのパターンは、図1に示すように、各メタモデルの上層である各メタメタモデルの階層で記述できるようにする。メタメタモデルの階層で、メタモデルの構造のパターンを記述することにより、メタメタモデルを利用してメタモデルの検証を可能にする。   As shown in Fig. 1, the design metamodel structure pattern, test case metamodel structure pattern, and mapping rule metamodel pattern between them are described in the hierarchy of each metametamodel. It can be so. By describing the pattern of the metamodel structure in the metametamodel hierarchy, the metamodel can be verified using the metametamodel.

本実施形態での用語の定義は、以下の通りである。   Definitions of terms in the present embodiment are as follows.

要件/設計要素は、要件定義や外部設計、内部設計の結果である成果物、要件定義書や、設計書の内容を表す。以下の説明では、要件定義書の内容を示す要件要素と、設計書の内容を表す設計要素のうち、設計要素を代表例に用いて要件/設計要素を述べる。   The requirement / design element represents a requirement definition, an external design, a product that is a result of the internal design, a requirement definition document, and the contents of the design document. In the following description, among the requirement elements indicating the contents of the requirement definition document and the design elements representing the contents of the design document, the requirements / design elements are described using the design elements as representative examples.

設計メタモデルは、設計要素を構成する要素が、どのような属性をもち、他の要素とどのように関連しているかを表したモデルを表す。設計メタモデルは、例えば、UML(Unified Modeling Language:統一モデリング言語)のクラス図の表記で記述される。   The design metamodel represents a model representing what attributes the elements constituting the design element have and how they are related to other elements. The design metamodel is described in, for example, UML (Unified Modeling Language) class diagram notation.

設計メタメタモデルは、設計メタモデルの要素が、他の要素とどのように関連しているか、その構造を表したモデルを表す。また、設計メタメタモデルは、設計メタモデルの構造のパターンを表しており、例えば、UMLのクラス図の表記で記述される。   The design meta metamodel represents a model representing how the elements of the design meta model are related to other elements. The design meta metamodel represents a structure pattern of the design meta model, and is described by, for example, UML class diagram notation.

テストケースは、テスト対象である設計要素のテストの最小単位を表す。   The test case represents the minimum unit of test of the design element to be tested.

・テストケースメタモデルは、テストケースを構成する要素が、どのような属性をもち、他の要素とどのように関連しているかを表したモデルを表しており、例えば、UMLのクラス図の表記で記述される。 The test case metamodel represents a model that expresses what attributes the elements that make up a test case have and how they relate to other elements. For example, the notation of a UML class diagram It is described by.

テストケースメタメタモデルは、テストケースメタモデルの要素が、他の要素とどのように関連しているか、その構造を表したモデルを表す。テストケースメタメタモデルは、テストケースメタモデルの構造のパターンを表しており、例えば、UMLのクラス図の表記で記述される。   The test case meta-meta model represents a model representing how the elements of the test case meta model are related to other elements. The test case meta-meta model represents a pattern of the structure of the test case meta model, and is described by, for example, UML class diagram notation.

マッピングルールメタモデルは、設計メタモデルとテストケースメタモデルの対応関係を表したモデルを表し、例えば、UMLのクラス図の表記で記述される。   The mapping rule metamodel represents a model representing the correspondence relationship between the design metamodel and the test case metamodel, and is described by, for example, UML class diagram notation.

マッピングルールメタメタモデルは、設計メタメタモデルとテストケースメタメタモデルの対応関係を表したモデルを表す。マッピングルールメタメタモデルは、設計メタモデルとテストケースメタモデルのマッピングの構造のパターンを表しており、例えば、UMLのクラス図の表記で記述される。   The mapping rule meta meta model represents a model representing the correspondence between the design meta meta model and the test case meta meta model. The mapping rule meta-meta model represents a pattern of the structure of the mapping between the design meta model and the test case meta model, and is described in, for example, UML class diagram notation.

次に、一実施形態の具体的な構成について説明する。図2は一実施形態に係るテストケース生成装置の構成を示す模式図である。このテストケース生成装置は、テスト対象の設計書に記述された画面又はデータに対応する設計要素と、設計要素の構造を表す設計メタモデルと、設計メタモデルの構造を表す設計メタメタモデルと、設計要素を用いてテスト内容を記述したテストケースの構造を表すテストケースメタモデルと、テストケースメタモデルの構造を表すテストケースメタメタモデルと、テストケースメタメタモデル及び設計メタメタモデル間の関係を表すマッピングルールメタメタモデルと、テストケースメタモデル及び設計メタモデル間の関連付けを表すマッピングルールメタモデルと、テストデータとを記憶する記憶部201〜208を備えている。また、テストケース生成装置は、設計要素との置換部分を含んでテストケースのひな型を表すテストケーステンプレートをテストケースメタモデルの一部として準備し、テストケーステンプレートの置換部分をテスト対象の設計要素に置換してテストケースを生成する。   Next, a specific configuration of one embodiment will be described. FIG. 2 is a schematic diagram illustrating a configuration of a test case generation device according to an embodiment. This test case generation device includes a design element corresponding to a screen or data described in a design document to be tested, a design metamodel that represents the structure of the design element, a design metametamodel that represents the structure of the design metamodel, and a design A test case metamodel that represents the structure of a test case that describes the test contents using elements, a test case metamodel that represents the structure of the test case metamodel, and a mapping rule that represents the relationship between the test case metametamodel and the design metametamodel Storage units 201 to 208 are provided for storing a meta meta model, a mapping rule meta model representing an association between the test case meta model and the design meta model, and test data. In addition, the test case generation device prepares a test case template representing a test case template including a replacement part with a design element as a part of the test case metamodel, and the replacement part of the test case template is a design element to be tested. To generate a test case.

具体的には、テストケース生成装置は、入出力部200、設計要素記憶部201、設計メタメタモデル記憶部202、設計メタモデル記憶部203、テストケースメタメタモデル記憶部204、テストケースメタモデル記憶部205、マッピングルールメタメタモデル記憶部206、マッピングルールメタモデル記憶部207、テストケース記憶部208、制御部209、設計メタモデル登録部210、設計メタモデル検証部211、設計要素入力部212、テストケースメタモデル登録部213、テストケースメタモデル検証部214、マッピングルールメタモデル登録部215、マッピングルールメタモデル検証部216及びテストケース生成部217を備えている。   Specifically, the test case generation apparatus includes an input / output unit 200, a design element storage unit 201, a design meta meta model storage unit 202, a design meta model storage unit 203, a test case meta meta model storage unit 204, and a test case meta model storage unit. 205, mapping rule meta meta model storage unit 206, mapping rule meta model storage unit 207, test case storage unit 208, control unit 209, design meta model registration unit 210, design meta model verification unit 211, design element input unit 212, test case A metamodel registration unit 213, a test case metamodel verification unit 214, a mapping rule metamodel registration unit 215, a mapping rule metamodel verification unit 216, and a test case generation unit 217 are provided.

ここで、入出力部200は、テストケース生成者(本システムの利用者)に対するユーザ・インタフェースである。入出力部200としては、例えば、ディスプレイ等の表示出力装置と、キーボード及びマウス等の入力装置とが使用可能となっている。すなわち、入出力部200は、テストケース生成者の操作により、種々のデータを制御部209に入力する機能と、制御部209から受けるデータを表示する機能と、この表示により、種々のデータの入力を促す機能とをもっている。   Here, the input / output unit 200 is a user interface for a test case generator (a user of this system). As the input / output unit 200, for example, a display output device such as a display and an input device such as a keyboard and a mouse can be used. In other words, the input / output unit 200 has a function of inputting various data to the control unit 209 and a function of displaying data received from the control unit 209 by the operation of the test case generator. It has a function to promote.

設計要素記憶部201は、図3及び図4に示すように、各部209〜217から読出/書込可能であって、テスト対象の設計書に記述された画面又はデータに対応する設計要素201aを記憶するためのDBMS(DataBase Management System)、記憶装置又は記憶装置の記憶領域である。なお、各記憶部201〜208は、別々の記憶装置として実現してもよく、同一の記憶装置内の別々の記憶領域として実現してもよい。   As shown in FIGS. 3 and 4, the design element storage unit 201 can read / write from each unit 209 to 217, and can store a design element 201a corresponding to the screen or data described in the design document to be tested. Data base management system (DBMS) for storage, storage device or storage area of storage device. Each storage unit 201 to 208 may be realized as a separate storage device, or may be realized as a separate storage area in the same storage device.

ここで、設計要素201aは、設計要素を特定する要素データ201a1,201a4、当該設計要素の項目を示す要素項目データ201a2,201a5及び当該設計要素の処理を示す要素処理データ201a3から構成される。   Here, the design element 201a includes element data 201a1 and 201a4 for specifying a design element, element item data 201a2 and 201a5 indicating items of the design element, and element processing data 201a3 indicating processing of the design element.

要素データ201a1,201a4は、設計要素を識別する要素IDの項目と値及び設計要素の名称を示す設計要素名の項目と値を含んでいる。   The element data 201a1, 201a4 includes an element ID item and value for identifying the design element, and a design element name item and value indicating the name of the design element.

要素項目データ201a2,201a5は、要素IDの項目と値、要素の項目を識別する要素項目IDの項目と値、要素の項目の名称を示す要素項目名の項目と値を含んでいる。   The element item data 201a2 and 201a5 include an element ID item and value, an element item ID item and value for identifying the element item, and an element item name item and value indicating the element item name.

要素処理データ201a3は、要素IDの項目と値、設計要素の処理を識別する要素処理IDの項目と値、設計要素の処理の名称を示す要素処理名の項目と値、要素項目IDの項目と値、イベントを識別するイベントIDの項目と値、処理先の要素項目IDの項目と値、設計要素の処理の結果を示す処理結果の項目と値を含んでいる。   The element processing data 201a3 includes an element ID item and value, an element processing ID item and value for identifying the design element processing, an element processing name item and value indicating the design element processing name, and an element item ID item. It includes a value, an item and value of an event ID for identifying an event, an item and value of an element item ID of a processing destination, and an item and value of a processing result indicating a processing result of a design element.

設計メタメタモデル記憶部202は、図5に示すように、各部209〜217から読出/書込可能であって、設計メタモデルの構造を表す設計メタメタモデル202aを記憶するためのDBMS、記憶装置又は記憶装置の記憶領域である。   As shown in FIG. 5, the design meta metamodel storage unit 202 is readable / writable from each unit 209 to 217, and stores a design meta meta model 202 a representing the structure of the design metamodel, a storage device, or This is a storage area of the storage device.

ここで、設計メタメタモデル202aは、設計要素を表す設計要素クラスに汎化される全体要素クラス及び項目要素クラスと、当該汎化される全体要素クラス又は項目要素クラス間の関係を示す組合せ情報クラス及び遷移情報クラスとの4種類の要素が設計メタモデルにあることを表し、項目要素クラスが多重度0以上で所有されるように全体要素クラスに関連付けられ、組合せ情報クラスが当該汎化されるいずれかの各要素クラスの関係を示す関連クラスであり、遷移情報クラスが当該汎化されるいずれかの各要素クラスに関連付けられることを表す情報である。また、設計メタメタモデル202aは、図6に示すように、他のメタメタモデル204a,206aと関係している。   Here, the design meta-meta model 202a is a combination information class indicating the relationship between the general element class and the item element class generalized to the design element class representing the design element, and the general element class or the item element class to be generalized. And the transition information class indicate that there are four types of elements in the design metamodel, the item element class is associated with the entire element class so that it is owned with a multiplicity of 0 or more, and the combination information class is generalized. This is a related class indicating the relationship between any one of the element classes, and is information indicating that the transition information class is associated with any one of the generalized element classes. The design meta meta model 202a is related to other meta meta models 204a and 206a as shown in FIG.

設計メタモデル記憶部203は、図7及び図8に示すように、各部209〜217から読出/書込可能であって、設計要素の構造を表す設計メタモデル203aを記憶するためのDBMS、記憶装置又は記憶装置の記憶領域である。   As shown in FIGS. 7 and 8, the design metamodel storage unit 203 is readable / writable from each unit 209 to 217, and is a DBMS for storing a design metamodel 203a representing the structure of the design element. A storage area of a device or a storage device.

補足すると、設計メタモデル記憶部203は、設計メタモデル203aを表すUMLのクラス図、設計メタモデル203aを構成する設計メタモデル要素を示す設計メタモデル要素データ203a1、当該設計メタモデル要素の属性を示す設計メタモデル要素属性データ203a2及び関連先の設計メタモデル要素データ203a3が書き込まれる。   Supplementally, the design metamodel storage unit 203 stores the UML class diagram representing the design metamodel 203a, the design metamodel element data 203a1 indicating the design metamodel elements constituting the design metamodel 203a, and the attributes of the design metamodel elements. The indicated design metamodel element attribute data 203a2 and related design metamodel element data 203a3 are written.

設計メタモデル203aを表すUMLのクラス図は、全体要素クラス及び項目要素クラスの両者に対応するステレオタイプ名と設計メタモデル要素の名称を示すメタモデル要素名とをもつクラスと、項目要素クラスに対応するステレオタイプ名と前記メタモデル要素名とをもつクラスと、組合せ情報クラスに対応するステレオタイプ名と前記メタモデル要素名とをもつクラスと、遷移情報クラスに対応するステレオタイプ名と前記メタモデル要素名とをもつクラスとを関連付けて表した情報である。   The UML class diagram representing the design metamodel 203a includes a class having a stereotype name corresponding to both the overall element class and the item element class, a metamodel element name indicating the name of the design metamodel element, and an item element class. A class having a corresponding stereotype name and the metamodel element name, a class having a stereotype name corresponding to a combination information class and the metamodel element name, a stereotype name corresponding to a transition information class, and the meta This is information that associates and expresses a class having a model element name.

設計メタモデル要素データ203a1は、設計メタモデル要素を識別するメタモデル要素IDの項目と値及びメタモデル要素名の項目と値を含んでいる。   The design metamodel element data 203a1 includes a metamodel element ID item and value for identifying a design metamodel element, and a metamodel element name item and value.

設計メタモデル要素属性データ203a2は、メタモデル要素IDの項目と値、設計メタモデル要素の属性を識別するメタモデル要素属性IDの項目と値、設計メタモデル要素の属性の名称を示すメタモデル要素属性名の項目と値及び設計メタモデル要素の属性の型を示すメタモデル要素属性型の項目と値を含んでいる。   The design metamodel element attribute data 203a2 includes metamodel element ID items and values, metamodel element attribute ID items and values for identifying design metamodel element attributes, and metamodel elements indicating the names of design metamodel element attributes. It includes an attribute name item and value, and a metamodel element attribute type item and value indicating the attribute type of the design metamodel element.

関連先の設計メタモデル要素データ203a3は、設計メタモデル要素の関連先の設計メタモデル要素を識別するメタモデル要素IDの項目と値及び関連先の設計メタモデル要素の名称を示すメタモデル要素名の項目と値を含んでいる。   The related design metamodel element data 203a3 is a metamodel element name indicating the item and value of the metamodel element ID for identifying the design metamodel element of the design metamodel element, and the name of the design metamodel element of the related target. Contains items and values.

テストケースメタメタモデル記憶部204は、図9に示すように、各部209〜217から読出/書込可能であって、テストケースメタモデルの構造を表すテストケースメタメタモデル204aを記憶するための記憶装置又は記憶装置の記憶領域である。   As shown in FIG. 9, the test case meta-meta model storage unit 204 is a storage device for storing a test case meta-meta model 204a that can be read / written from each unit 209 to 217 and represents the structure of the test case meta model. Alternatively, it is a storage area of the storage device.

ここで、テストケースメタメタモデル204aは、図6に示すように、設計メタメタモデル202aの設計要素クラスに関連付けられた多重度0以上のテストケース要素クラスという1種類の要素がテストケースメタモデルにあることを表し、テストケース要素クラスが一連のテスト要素を表すテストスイート要素クラスに所有され、テストケース要素クラスが多重度0以上のテスト観点クラスに関連付けられ、テストケース要素クラスがテストケーステンプレートクラスに関連付けられ、テストケーステンプレートクラスに汎化される組合せテストケーステンプレート、遷移テストケーステンプレート及び一覧テストケーステンプレートを含む情報である。   Here, as shown in FIG. 6, the test case meta-meta model 204a has one type of element called a test case element class having a multiplicity of 0 or more that is associated with the design element class of the design meta-meta model 202a. The test case element class is owned by a test suite element class that represents a series of test elements, the test case element class is associated with a test viewpoint class with a multiplicity of 0 or more, and the test case element class becomes a test case template class The information includes a combination test case template, a transition test case template, and a list test case template that are related and generalized to a test case template class.

テストケースメタモデル記憶部205は、図10及び図11に示すように、各部209〜217から読出/書込可能であって、設計要素を用いてテスト内容を記述したテストケースの構造を表すテストケースメタモデル205aを記憶するためのDBMS、記憶装置又は記憶装置の記憶領域である。   As shown in FIGS. 10 and 11, the test case metamodel storage unit 205 is a readable / writable test from each unit 209 to 217, and represents a test case structure in which test contents are described using design elements. A DBMS for storing the case metamodel 205a, a storage device, or a storage area of the storage device.

補足すると、テストケースメタモデル記憶部205は、テストケースメタモデル205aを表すUMLのクラス図、テストケースメタモデル205aを構成するテストケースメタモデル要素を示すテストケースメタモデル要素データ205a1、当該テストケースメタモデル要素の属性を示すテストケースメタモデル要素属性データ205a2及びテストケーステンプレート205bが書き込まれる。   Supplementally, the test case metamodel storage unit 205 includes a UML class diagram representing the test case metamodel 205a, test case metamodel element data 205a1 indicating test case metamodel elements constituting the test case metamodel 205a, and the test case. Test case metamodel element attribute data 205a2 and a test case template 205b indicating attributes of the metamodel element are written.

ここで、テストケースメタモデル205aを表すUMLのクラス図は、設計メタモデル203aを表すクラス図内の各クラスのステレオタイプ名に代えてテストケース要素クラスに対応するステレオタイプ名をもつと共に、当該各クラスのメタモデル要素名に対するテストケース要素クラスを表すメタモデル要素名をもつ各クラスを表した情報である。   Here, the UML class diagram representing the test case metamodel 205a has a stereotype name corresponding to the test case element class instead of the stereotype name of each class in the class diagram representing the design metamodel 203a. This is information representing each class having a metamodel element name representing a test case element class corresponding to the metamodel element name of each class.

テストケースメタモデル要素データ205a1は、テストスイート要素クラスに対応するテストスイートIDの項目と値、テストケースメタモデル要素を識別するメタモデル要素IDの項目と値及びテストケース要素クラスを表すメタモデル要素名の項目と値を含んでいる。   The test case metamodel element data 205a1 includes a test suite ID item and value corresponding to the test suite element class, a metamodel element ID item and value for identifying the test case metamodel element, and a metamodel element representing the test case element class. Contains name fields and values.

テストケースメタモデル要素属性データ205a2は、メタモデル要素IDの項目と値、テストケースメタモデル要素の属性を識別するメタモデル要素属性IDの項目と値、テストケースメタモデル要素の属性の名称を示すメタモデル要素属性名の項目と値及びテストケースメタモデル要素の属性の型を示すメタモデル要素属性型の項目と値を含んでいる。   The test case metamodel element attribute data 205a2 indicates the item and value of the metamodel element ID, the item and value of the metamodel element attribute ID for identifying the attribute of the test case metamodel element, and the name of the attribute of the test case metamodel element It includes items and values of metamodel element attribute names and items and values of metamodel element attribute types indicating the attribute types of test case metamodel elements.

テストケーステンプレート205bは、設計要素との置換部分として要素データ、要素項目データ及び要素処理データ内のいずれかの項目を含んでいるテストケースが記述されている。   The test case template 205b describes a test case including any item in element data, element item data, and element processing data as a replacement part with a design element.

マッピングルールメタメタモデル記憶部206は、図12及び図6に示すように、各部209〜217から読出/書込可能であって、テストケースメタメタモデル204a及び設計メタメタモデル202a間の関係を表すマッピングルールメタメタモデル206aを記憶するためのDBMS、記憶装置又は記憶装置の記憶領域である。   As shown in FIGS. 12 and 6, the mapping rule meta-meta model storage unit 206 is readable / writable from each unit 209 to 217, and represents a mapping rule representing the relationship between the test case meta-meta model 204 a and the design meta-meta model 202 a. A DBMS for storing the meta meta model 206a, a storage device, or a storage area of the storage device.

ここで、マッピングルールメタメタモデル206aは、設計メタメタモデル202a内の設計要素とテストケースメタメタモデル204a内のテストケース要素との関係を示す関連クラスであるマッピングルール要素クラスに汎化される組合せマッピングルール要素クラス、遷移マッピングルール要素クラス及び一覧マッピングルール要素クラスの3種類の要素がマッピングルールメタモデルにあることを表す情報である。   Here, the mapping rule meta-meta model 206a is a combination mapping rule that is generalized to a mapping rule element class that is a related class indicating the relationship between the design element in the design meta-meta model 202a and the test case element in the test case meta-meta model 204a. This is information indicating that there are three types of elements in the mapping rule metamodel: element class, transition mapping rule element class, and list mapping rule element class.

マッピングルールメタモデル記憶部207は、図13及び図14に示すように、各部209〜217から読出/書込可能であって、テストケースメタモデル205a及び設計メタモデル203a間の関連付けを表すマッピングルールメタモデル207aを記憶するためのDBMS、記憶装置又は記憶装置の記憶領域である。   As shown in FIGS. 13 and 14, the mapping rule metamodel storage unit 207 is readable / writable from each unit 209 to 217, and represents a mapping rule representing the association between the test case metamodel 205a and the design metamodel 203a. This is a DBMS for storing the metamodel 207a, a storage device, or a storage area of the storage device.

補足すると、マッピングルールメタモデル記憶部207は、マッピングルールメタモデル207aを表すUMLのクラス図、マッピングルールメタモデル207aを構成するマッピングルールメタモデル要素を示すマッピングルールメタモデル要素データ207a1、及び当該マッピングルールメタモデル要素の属性を示すマッピングルールメタモデル要素属性データ207a2が書き込まれる。   Supplementally, the mapping rule metamodel storage unit 207 includes a UML class diagram representing the mapping rule metamodel 207a, mapping rule metamodel element data 207a1 indicating the mapping rule metamodel elements constituting the mapping rule metamodel 207a, and the mapping Mapping rule metamodel element attribute data 207a2 indicating the attribute of the rule metamodel element is written.

ここで、マッピングルールメタモデル207aを表すUMLのクラス図は、設計メタモデル203aを表すクラス図内の各クラスと、テストケースメタモデル205aを表すクラス図内の各クラスと、当該テストケースメタモデル205aを表すクラス図内の各クラスが設計メタモデル203aを表すクラス図内の各クラスに依存する旨を表すように依存元のクラスから依存先のクラスを結ぶ破線の矢印と、破線の矢印に近接して記述された依存先のクラスのステレオタイプ名とを表す情報である。   Here, the UML class diagram representing the mapping rule metamodel 207a includes the classes in the class diagram representing the design metamodel 203a, the classes in the class diagram representing the test case metamodel 205a, and the test case metamodel. A broken line arrow connecting a dependency source class to a dependency destination class and a broken line arrow indicate that each class in the class diagram representing 205a depends on each class in the class diagram representing the design metamodel 203a. This is information representing the stereotype name of the dependency class described in the vicinity.

マッピングルールメタモデル要素データ207a1は、破線の矢印を識別するマッピング要素IDの項目と値及び破線の矢印の名称を表すマッピング要素名の項目と値を含んでいる。   The mapping rule metamodel element data 207a1 includes a mapping element ID item and value for identifying a dashed arrow, and a mapping element name item and value representing the name of the dashed arrow.

マッピングルールメタモデル要素属性データ207a2は、依存先のクラスを識別する設計メタモデル要素IDの項目と値、依存元のクラスを識別するテストケースメタモデル要素IDの項目と値、及び破線の矢印に近接して記述されたステレオタイプ名の項目と値を含んでいる。   The mapping rule metamodel element attribute data 207a2 includes a design metamodel element ID item and value for identifying a dependency destination class, a test case metamodel element ID item and value for identifying a dependency source class, and a dashed arrow. It contains a stereotype name item and a value written in close proximity.

テストケース記憶部208は、図15に示すように、各部209〜217から読出/書込可能であって、テストケーステンプレートの置換部分がテスト対象の設計要素に置換されて生成されたテストケース208dを記憶するためのDBMS、記憶装置又は記憶装置の記憶領域である。なお、テストケース記憶部208は、利用シナリオ毎にテストケース208dを含むテストケース一覧表208a、機能毎にテストケース208dを含むテストケース一覧表208b、及び機能の組合せ毎にテストケース208dを含むテストケース一覧表208cを記憶するものとしてもよい。   As shown in FIG. 15, the test case storage unit 208 is readable / writable from each unit 209 to 217, and is generated by replacing the replacement part of the test case template with the design element to be tested. Is a DBMS, a storage device, or a storage area of the storage device. The test case storage unit 208 includes a test case list 208a including a test case 208d for each usage scenario, a test case list 208b including a test case 208d for each function, and a test including a test case 208d for each function combination. The case list 208c may be stored.

制御部209は、入出力部200及び各部210〜217を制御する機能をもっている。具体的には例えば、制御部209は、以下の機能(f209-1)〜(f209-3)をもっている。   The control unit 209 has a function of controlling the input / output unit 200 and each unit 210 to 217. Specifically, for example, the control unit 209 has the following functions (f209-1) to (f209-3).

(f209-1) UMLのクラス図で表された設計メタメタモデル202aを予め設計メタメタモデル記憶部202に書込む機能。   (f209-1) A function of previously writing the design meta metamodel 202a represented by the UML class diagram into the design meta metamodel storage unit 202.

(f209-2) UMLのクラス図で表されたテストケースメタメタモデル204aを予めテストケースメタメタモデル記憶部204に書込む機能。   (f209-2) A function of previously writing the test case meta meta model 204a represented by the UML class diagram into the test case meta meta model storage unit 204.

(f209-3) UMLのクラス図で表されたマッピングルールメタメタモデル206aを予めマッピングルールメタメタ記憶部206に書込む機能。   (f209-3) A function of previously writing the mapping rule meta-meta model 206a represented by the UML class diagram into the mapping rule meta-meta storage unit 206.

設計メタモデル登録部210は、入出力部200からの設計メタモデル登録の依頼にしたがって、設計メタモデル203aを設計メタモデル記憶部203に書き込む機能をもっている。このとき、設計メタモデル登録部210は、予め記憶された設計メタメタモデル202aに基づき、設計メタメタモデル検証部211に設計メタモデル203aを検証させる。具体的には例えば、設計メタモデル登録部210は、以下の機能(f210-1)〜(f210-4)をもっている。   The design metamodel registration unit 210 has a function of writing the design metamodel 203 a into the design metamodel storage unit 203 in accordance with a design metamodel registration request from the input / output unit 200. At this time, the design metamodel registration unit 210 causes the design metametamodel verification unit 211 to verify the design metamodel 203a based on the prestored design metametamodel 202a. Specifically, for example, the design metamodel registration unit 210 has the following functions (f210-1) to (f210-4).

(f210-1) 設計メタメタモデル記憶部202内の設計メタメタモデル202aを入出力部200にて表示することにより、設計メタモデル203aを表すUMLのクラス図の入力を促す機能。   (f210-1) A function that prompts the user to input a UML class diagram representing the design metamodel 203a by displaying the design metametamodel 202a in the design metametamodel storage unit 202 on the input / output unit 200.

(f210-2) 入力を受け付けた設計メタモデル203aを表すUMLのクラス図を設計メタモデル記憶部203に書込む機能。   (f210-2) A function of writing a UML class diagram representing the design metamodel 203a that has received an input into the design metamodel storage unit 203.

(f210-3) 設計メタモデル記憶部203内の設計メタモデル203aを表すUMLのクラス図を入出力部200にて表示することにより、設計メタモデル203aを構成する設計メタモデル要素を示す設計メタモデル要素データ203a1、当該設計メタモデル要素の属性を示す設計メタモデル要素属性データ203a2及び関連先の設計メタモデル要素データ203a3の入力を促す機能。   (f210-3) The design meta model indicating the design meta model elements constituting the design meta model 203a by displaying the UML class diagram representing the design meta model 203a in the design meta model storage unit 203 on the input / output unit 200. A function that prompts input of model element data 203a1, design metamodel element attribute data 203a2 indicating attributes of the design metamodel element, and related design metamodel element data 203a3.

(f210-4) 入力を受け付けた設計メタモデル要素データ203a1、設計メタモデル要素属性データ203a2及び関連先の設計メタモデル要素データ203a3を設計メタモデル記憶部203に書込む機能。   (f210-4) A function of writing the input design metamodel element data 203a1, design metamodel element attribute data 203a2, and related design metamodel element data 203a3 into the design metamodel storage unit 203.

設計メタモデル検証部211は、設計メタモデル記憶部203内の設計メタモデル203aを表すUMLのクラス図、設計メタモデル要素データ203a1、設計メタモデル要素属性データ203a2及び関連先の設計メタモデル要素データ203a3に対し、設計メタメタモデル記憶部202内の設計メタメタモデル202aに違反している箇所を含むか否かを検証する機能をもっている。   The design metamodel verification unit 211 includes a UML class diagram representing the design metamodel 203a in the design metamodel storage unit 203, design metamodel element data 203a1, design metamodel element attribute data 203a2, and related design metamodel element data. 203a3 has a function of verifying whether or not it includes a location that violates the design metametamodel 202a in the design metametamodel storage unit 202.

設計要素入力部212は、入出力部からの設計要素入力の依頼にしたがって、設計要素を設計要素記憶部201に書き込む機能をもっている。具体的には設計要素入力部212は、以下の機能(f212-1)〜(f212-2)をもっている。   The design element input unit 212 has a function of writing a design element into the design element storage unit 201 in accordance with a design element input request from the input / output unit. Specifically, the design element input unit 212 has the following functions (f212-1) to (f212-2).

(f212-1) 設計メタモデル検証部211による検証結果が否を示す場合、設計メタモデル記憶部203内の設計メタモデル203aを表すUMLのクラス図、設計メタモデル要素データ203a1、設計メタモデル要素属性データ203a2及び関連先の設計メタモデル要素データ203a3を入出力部200にて表示することにより、設計要素を特定する要素データ201a1,201a4、当該設計要素の項目を示す要素項目データ201a2,201a5及び当該設計要素の処理を示す要素処理データ201a3の入力を促す機能。   (f212-1) When the verification result by the design metamodel verification unit 211 indicates NO, the UML class diagram representing the design metamodel 203a in the design metamodel storage unit 203, the design metamodel element data 203a1, and the design metamodel element By displaying the attribute data 203a2 and the related design metamodel element data 203a3 on the input / output unit 200, element data 201a1, 201a4 for specifying a design element, element item data 201a2, 201a5 indicating an item of the design element, and A function that prompts input of element processing data 201a3 indicating processing of the design element.

(f212-2) 入力を受け付けた要素データ201a1,201a4、要素項目データ201a2,201a5及び要素処理データ201a3を設計要素記憶部201に書込む機能。   (f212-2) A function of writing the element data 201a1, 201a4, element item data 201a2, 201a5, and element processing data 201a3 that has received the input into the design element storage unit 201.

テストケースメタモデル登録部213は、入出力部200からのテストケースメタモデル登録の依頼にしたがって、テストケースメタモデル205aをテストケースメタモデル記憶部205に書き込む機能をもっている。なお、テストケースメタモデル登録部213は、テストケースメタメタモデル検証部214にテストケースメタモデル205aを検証させる機能ももっている。具体的にはテストケースメタモデル登録部213は、以下の機能(f213-1)〜(f213-6)をもっている。   The test case metamodel registration unit 213 has a function of writing the test case metamodel 205 a into the test case metamodel storage unit 205 in accordance with a test case metamodel registration request from the input / output unit 200. Note that the test case metamodel registration unit 213 also has a function of causing the test case metametamodel verification unit 214 to verify the test case metamodel 205a. Specifically, the test case metamodel registration unit 213 has the following functions (f213-1) to (f213-6).

(f213-1) テストケースメタメタモデル記憶部204内のテストケースメタメタモデル204aを表すUMLのクラス図及び設計メタモデル記憶部203内の設計メタモデル203aを表すUMLのクラス図を入出力部200にて表示することにより、テストケースメタモデル205aを表すUMLのクラス図の入力を促す機能。   (f213-1) The UML class diagram representing the test case meta meta model 204a in the test case meta meta model storage unit 204 and the UML class diagram representing the design meta model 203a in the design meta model storage unit 203 are input to the input / output unit 200. The function of prompting the user to input a UML class diagram representing the test case metamodel 205a.

(f213-2) 入力を受け付けたテストケースメタモデル205aを表すUMLのクラス図をテストケースメタモデル記憶部205に書込む機能。   (f213-2) A function of writing the UML class diagram representing the test case metamodel 205a that has received the input into the test case metamodel storage unit 205.

(f213-3) テストケースメタモデル記憶部205内のテストケースメタモデル205aを表すUMLのクラス図を入出力部200にて表示することにより、テストケースメタモデル205aを構成するテストケースメタモデル要素を示すテストケースメタモデル要素データ205a1及び当該テストケースメタモデル要素の属性を示すテストケースメタモデル要素属性データ205a2の入力を促す機能。   (f213-3) Test case metamodel elements constituting the test case metamodel 205a by displaying the UML class diagram representing the test case metamodel 205a in the test case metamodel storage unit 205 in the input / output unit 200 A function that prompts the user to input test case metamodel element data 205a1 indicating the attribute and test case metamodel element attribute data 205a2 indicating the attribute of the test case metamodel element.

(f213-4) 入力を受け付けたテストケースメタモデル要素データ205a1及びテストケースメタモデル要素属性データ205a2をテストケースメタモデル記憶部205に書込む機能。   (f213-4) A function of writing the test case metamodel element data 205a1 and the test case metamodel element attribute data 205a2 that has received the input into the test case metamodel storage unit 205.

(f213-5) マッピングルールメタモデル検証部216による検証結果が否を示す場合、マッピングルールメタモデル記憶部207内のマッピングルールメタモデル207aを表すクラス図とテストケースメタモデル記憶部205内のテストケースメタモデル要素属性データ205a2とを入出力部200にて表示することにより、テストケースのひな型を表すテストケーステンプレート205bの入力を促す機能。   (f213-5) If the verification result by the mapping rule metamodel verification unit 216 indicates NO, the class diagram representing the mapping rule metamodel 207a in the mapping rule metamodel storage unit 207 and the test in the test case metamodel storage unit 205 A function that prompts the user to input a test case template 205b representing a test case template by displaying the case metamodel element attribute data 205a2 on the input / output unit 200.

なお、この機能(f213-5)は、マッピングルールメタモデル記憶部207内のマッピングルールメタモデル207aを表すクラス図とテストケースメタモデル記憶部205内のテストケースメタモデル要素属性データ205a2内のメタモデル要素属性名の値に含まれるテストケーステンプレート名とを入出力部200にて表示する機能を含んでいる。   Note that this function (f213-5) includes a class diagram representing the mapping rule metamodel 207a in the mapping rule metamodel storage unit 207 and a meta in the test case metamodel element attribute data 205a2 in the test case metamodel storage unit 205. A function of displaying the test case template name included in the value of the model element attribute name on the input / output unit 200 is included.

(f213-6) 入力を受け付けたテストケーステンプレート205bをテストケースメタモデル記憶部205に書込む機能。   (f213-6) A function of writing the test case template 205b that has received the input into the test case metamodel storage unit 205.

テストケースメタモデル検証部214は、テストケースメタモデル記憶部205内のテストケースメタモデル205aを表すUMLのクラス図、テストケースメタモデル要素データ205a1及びテストケースメタモデル要素属性データ205a2に対し、テストケースメタメタモデル記憶部204内のテストケースメタメタモデル204aに違反している箇所を含むか否かを検証する機能をもっている。   The test case metamodel verification unit 214 performs a test on the UML class diagram representing the test case metamodel 205a in the test case metamodel storage unit 205, the test case metamodel element data 205a1, and the test case metamodel element attribute data 205a2. It has a function of verifying whether or not a location that violates the test case meta-meta model 204a in the case meta-meta model storage unit 204 is included.

マッピングルールメタモデル登録部215は、入出力部200からのマッピングルールメタモデル登録の依頼にしたがって、マッピングルールメタモデル207aをマッピングルールメタモデル記憶部207に書き込む機能をもっている。なお、マッピングルールメタモデル登録部215は、マッピングルールメタモデル検証部216にマッピングルールメタモデル207aを検証させる機能ももっている。具体的にはマッピングルールメタモデル登録部215は、以下の機能(f215-1)〜(f215-4)をもっている。   The mapping rule metamodel registration unit 215 has a function of writing the mapping rule metamodel 207 a to the mapping rule metamodel storage unit 207 in accordance with a mapping rule metamodel registration request from the input / output unit 200. The mapping rule metamodel registration unit 215 also has a function of causing the mapping rule metamodel verification unit 216 to verify the mapping rule metamodel 207a. Specifically, the mapping rule metamodel registration unit 215 has the following functions (f215-1) to (f215-4).

(f215-1) テストケースメタモデル検証部214による検証結果が否を示す場合、マッピングルールメタメタモデル記憶部206内のマッピングルールメタメタモデル206aを表すUMLのクラス図、テストケースメタモデル記憶部205内のテストケースメタモデル205aを表すUMLのクラス図及び設計メタモデル記憶部203内の設計メタモデル203aを表すUMLのクラス図を入出力部200にて表示することにより、マッピングルールメタモデル207aを表すUMLのクラス図の入力を促す機能。   (f215-1) When the verification result by the test case metamodel verification unit 214 indicates NO, the UML class diagram representing the mapping rule metametamodel 206a in the mapping rule metametamodel storage unit 206, in the test case metamodel storage unit 205 The UML class diagram representing the test case metamodel 205a and the UML class diagram representing the design metamodel 203a in the design metamodel storage unit 203 are displayed on the input / output unit 200 to represent the mapping rule metamodel 207a. A function that prompts the user to enter a UML class diagram.

(f215-2) 入力を受け付けたマッピングルールメタモデル207aを表すUMLのクラス図をマッピングルールメタモデル記憶部207に書込む機能。   (f215-2) A function of writing a UML class diagram representing the mapping rule metamodel 207a that has received an input into the mapping rule metamodel storage unit 207.

(f215-3) マッピングルールモデル記憶部207内のマッピングルールメタモデル207aを表すUMLのクラス図、設計メタモデル記憶部203内の設計メタモデル要素データ203a1及びテストケースメタモデル記憶部205内のテストケースメタモデル要素データ205a1を入出力部200にて表示することにより、マッピングルールメタモデル207aを構成するマッピングルールメタモデル要素を示すマッピングルールメタモデル要素データ207a1及び当該マッピングルールメタモデル要素の属性を示すマッピングルールメタモデル要素属性データ207a2の入力を促す機能。   (f215-3) UML class diagram representing mapping rule metamodel 207a in mapping rule model storage unit 207, design metamodel element data 203a1 in design metamodel storage unit 203, and test in test case metamodel storage unit 205 By displaying the case metamodel element data 205a1 at the input / output unit 200, the mapping rule metamodel element data 207a1 indicating the mapping rule metamodel element constituting the mapping rule metamodel 207a and the attributes of the mapping rule metamodel element are displayed. A function that prompts input of the mapping rule metamodel element attribute data 207a2 to be shown.

(f215-4) 入力を受け付けたマッピングルールメタモデル要素データ207a1及びマッピングルールメタモデル要素属性データ207a2をマッピングルールメタモデル記憶部207に書込む機能。   (f215-4) A function of writing the mapping rule metamodel element data 207a1 and the mapping rule metamodel element attribute data 207a2 that have received the input into the mapping rule metamodel storage unit 207.

マッピングメタモデル検証部216は、マッピングルールメタモデル記憶部207内のマッピングルールメタモデル207aを表すUMLのクラス図、マッピングルールメタモデル要素データ207a1及びマッピングルールメタモデル要素属性データ207a2に対し、マッピングルールメタメタモデル記憶部206内のマッピングルールメタメタモデル206aに違反している箇所を含むか否かを検証する機能をもっている。   The mapping metamodel verification unit 216 performs mapping rules for the UML class diagram representing the mapping rule metamodel 207a in the mapping rule metamodel storage unit 207, the mapping rule metamodel element data 207a1, and the mapping rule metamodel element attribute data 207a2. It has a function of verifying whether or not a location that violates the mapping rule meta-meta model 206a in the meta-meta model storage unit 206 is included.

テストケース生成部217は、入出力部200からのテストケース生成の依頼にしたがって、テストケース208dを生成する機能をもっている。テストケース208dの生成は、設計要素201aから、マッピングルールメタモデル207aに基づいて、テストケース208dへのマッピングを行うことによって実現する。具体的にはテストケース生成部217は、以下の機能(f217-1)〜(f217-2)をもっている。   The test case generation unit 217 has a function of generating a test case 208d in accordance with a test case generation request from the input / output unit 200. The generation of the test case 208d is realized by mapping from the design element 201a to the test case 208d based on the mapping rule metamodel 207a. Specifically, the test case generation unit 217 has the following functions (f217-1) to (f217-2).

(f217-1) テストケースメタモデル記憶部205内のテストケーステンプレート205bの置換部分の各項目を、要素データ、要素項目データ及び要素処理データ内のいずれかの項目の値に置換してテストケース208dを生成する機能。   (f217-1) A test case in which each item in the replacement part of the test case template 205b in the test case metamodel storage unit 205 is replaced with the value of any item in the element data, element item data, and element processing data Function to generate 208d.

(f217-2) 当該生成したテストケース208dをテストケース記憶部208に書込む機能。   (f217-2) A function of writing the generated test case 208d into the test case storage unit 208.

次に、以上のように構成されたテストケース生成装置の動作について図16乃至図37を用いて説明する。具体的には図16に示すように、設計メタモデル203aの作成・登録(ST100)、設計メタモデル203aの検証(ST200)、設計要素201aの作成・登録(ST300)、テストケースメタモデル205aの作成・登録(ST400)、テストケースメタモデル205aの検証(ST500)、マッピングルールメタモデル207aの作成・登録(ST600)、マッピングルールメタモデル207aの検証(ST700)及びテストケース208dの生成(ST800)の順に動作を述べる。また、各メタメタモデル202a,204a,206aは、予め入出力部200から制御部209を介して各記憶部202a,204a,206aに書き込まれているとする。   Next, the operation of the test case generation apparatus configured as described above will be described with reference to FIGS. Specifically, as shown in FIG. 16, creation / registration of design metamodel 203a (ST100), verification of design metamodel 203a (ST200), creation / registration of design element 201a (ST300), test case metamodel 205a Creation / registration (ST400), verification of test case metamodel 205a (ST500), creation / registration of mapping rule metamodel 207a (ST600), verification of mapping rule metamodel 207a (ST700), and generation of test case 208d (ST800) The operation will be described in the order. Further, it is assumed that the meta-meta models 202a, 204a, and 206a are written in advance in the storage units 202a, 204a, and 206a from the input / output unit 200 via the control unit 209.

始めに、ステップST100における設計メタモデル203aの作成・登録の動作について図17を用いて述べる。まず、設計メタモデル登録部210は、設計メタメタモデル記憶部202内の設計メタメタモデル202aを入出力部200にて表示することにより、設計メタモデル203aを表すUMLのクラス図の入力を促す。ここで、設計メタメタモデル202aは、作成対象である設計メタモデル203aの構造を表す。具体的には、設計メタメタモデル202aは、設計メタモデルにはどのような種類の要素(全体要素、項目要素、組合せ情報、遷移情報)があり、その要素がどのように関連付けられるか(全体要素−項目要素、(全体要素、項目要素のいずれか)−組合せ情報、(全体要素、項目要素のいずれか)−遷移情報)を表している。   First, the creation / registration operation of the design metamodel 203a in step ST100 will be described with reference to FIG. First, the design metamodel registration unit 210 prompts the user to input a UML class diagram representing the design metamodel 203a by displaying the design metametamodel 202a in the design metametamodel storage unit 202 on the input / output unit 200. Here, the design meta meta model 202a represents the structure of the design meta model 203a to be created. Specifically, the design meta meta model 202a includes what kind of elements (overall elements, item elements, combination information, transition information) in the design meta model and how the elements are associated (overall elements). -An item element (any element or item element)-combination information (any element or item element)-transition information).

続いて、設計メタモデル登録部210は、図17に示すように、テストケース生成者による入出力部200の操作により、入力を受け付けた設計メタモデル要素を追加していき(ST101〜ST102)、次いで、設計メタモデル要素を関連付けていく(ST103〜ST104)。このとき、テストケース生成者は、追加する設計メタモデル要素に関し、要素のステレオタイプ(どんな種類か)を設計メタメタモデル202aから選択する(ST102)。また、テストケース生成者は、設計メタモデル要素どうしを関連付けるときに、関連付けのステレオタイプ(どんな関連付けか)を、設計メタメタモデル202aから選択する(ST104)。   Subsequently, as shown in FIG. 17, the design metamodel registration unit 210 adds design metamodel elements that have received inputs by the operation of the input / output unit 200 by the test case generator (ST101 to ST102). Next, design metamodel elements are associated (ST103 to ST104). At this time, the test case generator selects the stereotype (what kind) of the element from the design meta metamodel 202a regarding the design metamodel element to be added (ST102). Further, when associating the design metamodel elements, the test case generator selects an association stereotype (what kind of association) from the design metametamodel 202a (ST104).

しかる後、設計メタモデル要素の追加が不要になれば(ST101;追加不要)、設計メタモデル登録部210は、設計メタモデル203aを登録する(ST105)。すなわち、設計メタモデル登録部210は、入力を受け付けた設計メタモデル203aを表すUMLのクラス図を設計メタモデル記憶部203に書込む。   Thereafter, if it becomes unnecessary to add a design metamodel element (ST101; addition is unnecessary), the design metamodel registration unit 210 registers the design metamodel 203a (ST105). That is, the design metamodel registration unit 210 writes a UML class diagram representing the design metamodel 203 a that has received the input into the design metamodel storage unit 203.

また、設計メタモデル登録部210は、設計メタモデル記憶部203内の設計メタモデル203aを表すUMLのクラス図を入出力部200にて表示することにより、設計メタモデル203aを構成する設計メタモデル要素を示す設計メタモデル要素データ203a1、当該設計メタモデル要素の属性を示す設計メタモデル要素属性データ203a2及び関連先の設計メタモデル要素データ203a3の入力を促す。   The design metamodel registration unit 210 displays a UML class diagram representing the design metamodel 203a in the design metamodel storage unit 203 on the input / output unit 200, thereby configuring the design metamodel 203a. The user is prompted to input design metamodel element data 203a1 indicating an element, design metamodel element attribute data 203a2 indicating an attribute of the design metamodel element, and related design metamodel element data 203a3.

しかる後、設計メタモデル登録部210は、入力を受け付けた設計メタモデル要素データ203a1、設計メタモデル要素属性データ203a2及び関連先の設計メタモデル要素データ203a3を設計メタモデル記憶部203に書込む。   Thereafter, the design metamodel registration unit 210 writes the design metamodel element data 203 a 1, the design metamodel element attribute data 203 a 2, and the related design metamodel element data 203 a 3 that have received the input into the design metamodel storage unit 203.

このように書き込まれた設計メタモデルの例を図18、図19、図20及び図21に示す。すなわち、図18に示す設計メタメタモデル202aに対し、図19及び図20に示す設計メタモデル要素データ203a1、設計メタモデル要素属性データ203a2及び関連先の設計メタモデル要素データ203a3が設計メタモデル記憶部203に書き込まれる。これにより、図21に示す部分の設計メタモデル203aが作成・登録される。   Examples of the design metamodel written in this way are shown in FIG. 18, FIG. 19, FIG. 20, and FIG. That is, with respect to the design meta meta model 202a shown in FIG. 18, the design meta model element data 203a1, the design meta model element attribute data 203a 2 and the related design meta model element data 203a 3 shown in FIG. 19 and FIG. 203 is written. As a result, the design metamodel 203a of the portion shown in FIG. 21 is created and registered.

次に、ステップST200の設計メタモデル203aの検証の動作について図22を用いて述べる。ステップST200では、設計メタモデル検証部211は、設計メタモデル記憶部203内の設計メタモデル203aを表すUMLのクラス図、設計メタモデル要素データ203a1、設計メタモデル要素属性データ203a2及び関連先の設計メタモデル要素データ203a3に対し、設計メタメタモデル記憶部202内の設計メタメタモデル202aに違反している箇所を含むか否かを検証する。このような設計メタモデルの検証においては、設計メタモデル要素を検証し、次いで、設計メタモデル要素の関連付けを検証していくことにより、検証結果を得ることができる。検証結果には、設計メタモデル203aの中で、設計メタメタモデル202aに違反している箇所が含まれる。   Next, the verification operation of the design metamodel 203a in step ST200 will be described with reference to FIG. In step ST200, the design metamodel verification unit 211 includes a UML class diagram representing the design metamodel 203a in the design metamodel storage unit 203, design metamodel element data 203a1, design metamodel element attribute data 203a2, and related destination design. It is verified whether or not the metamodel element data 203a3 includes a portion that violates the design metametamodel 202a in the design metametamodel storage unit 202. In such verification of the design metamodel, the verification result can be obtained by verifying the design metamodel element and then verifying the association of the design metamodel element. The verification result includes a portion of the design metamodel 203a that violates the design metametamodel 202a.

具体的には設計メタモデル検証部211は、図22に示すように、メタモデル記憶部203内の全ての設計メタモデル要素データ203a1を取得し(ST201)、未検証の設計メタモデル要素データ203a1があるか否かを判定する(ST202)。ステップST202の判定結果が否の場合(ST202;なし)にはステップST213に進み、検証結果を出力して処理を終了する。   Specifically, as shown in FIG. 22, the design metamodel verification unit 211 acquires all design metamodel element data 203a1 in the metamodel storage unit 203 (ST201), and unverified design metamodel element data 203a1. It is determined whether or not there is (ST202). If the determination result in step ST202 is negative (ST202; none), the process proceeds to step ST213, the verification result is output, and the process ends.

ステップST202の判定結果が未検証のデータありを示す場合(ST202;あり)、設計メタモデル検証部211は、設計メタモデル203aを表すクラス図内の各クラスのうち、当該設定メタモデル要素データ203a1のメタモデル要素名をもつクラスからステレオタイプを取得し(ST203)、このステレオタイプ名が設計メタメタモデル202aで定義済みか否かを判定する(ST204)。ステップST204の判定結果が否の場合(ST204;未定義)、設計メタモデル検証部211は、当該設計メタモデル要素データ203a1と、ステレオタイプ名が未定義である旨とを含む検証結果を既存の検証結果に追加し(ST205)、ステップST202の処理に戻る。   When the determination result in step ST202 indicates that there is unverified data (ST202; present), the design metamodel verification unit 211 sets the set metamodel element data 203a1 among the classes in the class diagram representing the design metamodel 203a. The stereotype is acquired from the class having the metamodel element name (ST203), and it is determined whether or not the stereotype name has been defined in the design metametamodel 202a (ST204). If the determination result in step ST204 is negative (ST204; undefined), the design metamodel verification unit 211 uses the existing verification result including the design metamodel element data 203a1 and the fact that the stereotype name is undefined. It adds to a verification result (ST205), and returns to the process of step ST202.

ステップST204の判定結果が定義済みを示す場合、当該設計メタモデル要素データ203a1における全ての関連先の設計メタモデル要素データ203a3を設計メタモデル記憶部203から取得し(ST206)、未検証の関連先の設計メタモデル要素データ203a3があるか否かを判定する(ST207)。ステップST207の判定結果が否の場合(ST207;なし)にはステップST202の処理に戻る。   When the determination result in step ST204 indicates that the definition has been made, all the related design metamodel element data 203a3 in the design metamodel element data 203a1 is acquired from the design metamodel storage unit 203 (ST206), and the unverified related destination It is determined whether there is any design metamodel element data 203a3 (ST207). If the determination result in step ST207 is negative (ST207; none), the process returns to step ST202.

ステップST207の判定結果が未検証の関連先ありを示す場合(ST207;あり)、設計メタモデル検証部211は、設計メタモデル203aを表すクラス図内の各クラスのうち、当該設定メタモデル要素データ203a3の関連元の設定メタモデル要素データ203a1のメタモデル要素名をもつクラスからステレオタイプを取得し(ST208)、当該関連先の設定メタモデル要素データ203a3のメタモデル要素名をもつクラスからステレオタイプを取得し(ST209)、両クラス間の関連を示す関連ステレオタイプを当該クラス図から取得する(ST210)。   When the determination result in step ST207 indicates that there is an unverified related destination (ST207; present), the design metamodel verification unit 211 sets the set metamodel element data among the classes in the class diagram representing the design metamodel 203a. The stereotype is acquired from the class having the metamodel element name of the setting metamodel element data 203a1 of the association source 203a3 (ST208), and the stereotype is acquired from the class having the metamodel element name of the setting metamodel element data 203a3 of the related destination (ST209), and a related stereotype indicating a relationship between both classes is acquired from the class diagram (ST210).

しかる後、設計メタモデル検証部211は、この関連ステレオタイプ名が設計メタメタモデル202aで定義済みか否かを判定する(ST211)。ステップST211の判定結果が否の場合(ST211;未定義)、設計メタモデル検証部211は、当該設計メタモデル要素203a1及び関連先の設計メタモデル要素データ203a3と、両者間の関連ステレオタイプ名が未定義である旨とを含む検証結果を既存の検証結果に追加し、ステップST207の処理に戻る。なお、ステップST207の処理に戻った後、前述した通り、ステップST207の判定により未検証の関連先がなければ、ステップST202の処理に戻り、ステップST202の判定により未検証の設計メタモデル要素データ203a1がなければ、検証結果を出力して(ST213)、検証処理を終了する。   Thereafter, the design metamodel verification unit 211 determines whether or not the related stereotype name has been defined in the design metametamodel 202a (ST211). If the determination result in step ST211 is negative (ST211; undefined), the design metamodel verification unit 211 determines that the design metamodel element 203a1 and the related design metamodel element data 203a3 and the associated stereotype name between them are the same. A verification result including “undefined” is added to the existing verification result, and the process returns to step ST207. After returning to step ST207, as described above, if there is no unverified related destination as determined in step ST207, the process returns to step ST202, and unverified design metamodel element data 203a1 is determined as determined in step ST202. If not, the verification result is output (ST213) and the verification process is terminated.

次に、ステップST300における設計要素の作成・登録の動作について図23を用いて述べる。ステップST300における設計要素の作成・登録は、設計メタモデル203a,203a1〜203a3で示された設計要素の構造毎に、設計要素を追加していく処理により実行される。   Next, the design element creation / registration operations in step ST300 will be described with reference to FIG. The creation / registration of design elements in step ST300 is executed by a process of adding design elements for each design element structure indicated by the design metamodels 203a, 203a1 to 203a3.

具体的には図23に示すように、設計要素入力部212は、設計メタモデル検証部211による検証結果が違反箇所を含まない場合、設計メタモデル記憶部203内の設計メタモデル203aを表すUMLのクラス図、設計メタモデル要素データ203a1、設計メタモデル要素属性データ203a2及び関連先の設計メタモデル要素データ203a3を取得して(ST301)入出力部200にて表示する。   Specifically, as shown in FIG. 23, the design element input unit 212, when the verification result by the design metamodel verification unit 211 does not include a violation part, represents a UML representing the design metamodel 203a in the design metamodel storage unit 203. Class diagram, design metamodel element data 203a1, design metamodel element attribute data 203a2, and related design metamodel element data 203a3 are acquired (ST301) and displayed on the input / output unit 200.

これにより、設計要素入力部212は、設計要素を特定する要素データ201a1,201a4、当該設計要素の項目を示す要素項目データ201a2,201a5及び当該設計要素の処理を示す要素処理データ201a3の入力を促す。   As a result, the design element input unit 212 prompts input of element data 201a1, 201a4 for specifying the design element, element item data 201a2, 201a5 indicating the item of the design element, and element processing data 201a3 indicating the process of the design element. .

ここで、これら要素データ201a1,201a4、要素項目データ201a2,201a5及び要素処理データ201a3を未入力の設計メタモデル要素が無ければ(ST302;なし)、ステップST305に進み、登録を完了して処理を終了する。   If there is no design metamodel element that has not been entered in the element data 201a1, 201a4, element item data 201a2, 201a5, and element processing data 201a3 (ST302; none), the process proceeds to step ST305 to complete registration and processing. finish.

一方、未入力の設計メタモデル要素があれば(ST302;あり)、設計要素入力部212は、入出力部200から要素データ201a1,201a4、要素項目データ201a2,201a5及び要素処理データ201a3の追加入力を受け付ける(ST303)。また、設計要素入力部212は、入力を受け付けた要素データ201a1,201a4、要素項目データ201a2,201a5及び要素処理データ201a3を設計要素記憶部201に書込む。   On the other hand, if there is an uninput design metamodel element (ST302; present), the design element input unit 212 additionally inputs element data 201a1, 201a4, element item data 201a2, 201a5, and element processing data 201a3 from the input / output unit 200. Is accepted (ST303). In addition, the design element input unit 212 writes the element data 201a1, 201a4, element item data 201a2, 201a5, and element processing data 201a3 that have received the input into the design element storage unit 201.

しかる後、設計要素入力部212は、未入力の要素データ201a1,201a4、要素項目データ201a2,201a5及び要素処理データ201a3があれば(ST304;あり)、ステップST303の処理に戻る。   Thereafter, if there is uninputted element data 201a1, 201a4, element item data 201a2, 201a5, and element processing data 201a3 (ST304; present), the design element input unit 212 returns to the process of step ST303.

また、設計要素入力部212は、未入力の要素データ201a1,201a4、要素項目データ201a2,201a5及び要素処理データ201a3がなければ(ST304;なし)、ステップST302の処理に戻る。なお、ステップST302の処理に戻った後、前述した通り、ステップST302の判定により要素データ等を未入力の設計メタモデル要素がなければ(ST302;なし)、登録を完了して処理を終了する(ST305)。   If there is no element data 201a1, 201a4, element item data 201a2, 201a5, and element processing data 201a3 (ST304; none), the design element input unit 212 returns to the process of step ST302. After returning to the process of step ST302, as described above, if there is no design metamodel element for which element data or the like has not been input as a result of the determination of step ST302 (ST302; none), the registration is completed and the process is terminated ( ST305).

ステップST400におけるテストケースメタモデル205aの作成・登録の動作について図24を用いて述べる。まず、テストケースメタモデル登録部213は、テストケースメタメタモデル記憶部204内のテストケースメタメタモデル204aを表すUMLのクラス図及び設計メタモデル記憶部203内の設計メタモデル203aを表すUMLのクラス図を入出力部200にて表示することにより、テストケースメタモデル205aを表すUMLのクラス図の入力を促す。ここで、テストケースメタメタモデル204aは、作成対象であるテストケースメタモデル205aの構造を表す。具体的には、テストケースメタメタモデル204aは、テストケースメタモデル205aにはどのような種類の要素(テストケース要素)があるのかを表す。なお、テストケースメタモデル205aの要素同士を関連付けるという考え方はない。   The operation of creating / registering the test case metamodel 205a in step ST400 will be described with reference to FIG. First, the test case metamodel registration unit 213 includes a UML class diagram representing the test case metametamodel 204 a in the test case metametamodel storage unit 204 and a UML class diagram representing the design metamodel 203 a in the design metamodel storage unit 203. Is displayed on the input / output unit 200 to prompt the user to input a UML class diagram representing the test case metamodel 205a. Here, the test case meta meta model 204a represents the structure of the test case meta model 205a to be created. Specifically, the test case meta meta model 204a represents what kind of element (test case element) is present in the test case meta model 205a. There is no concept of associating elements of the test case metamodel 205a.

続いて、テストケースメタモデル登録部213は、図24に示すように、テストケース生成者による入出力部200の操作により、テストケースメタモデル要素の追加が不要となるまで(ST401)、入力を受け付けたテストケースメタモデル要素を追加していく(ST402)。また、ステップST402中、テストケース生成者は、テストケースメタモデル要素を追加するときに、要素のステレオタイプ(どんな種類か)を、テストケースメタメタモデル204aに基づいてテストケース生成者が選択する。   Subsequently, as shown in FIG. 24, the test case metamodel registration unit 213 performs input until the addition of the test case metamodel element becomes unnecessary by the operation of the input / output unit 200 by the test case generator (ST401). The accepted test case metamodel elements are added (ST402). Further, in step ST402, when adding a test case metamodel element, the test case generator selects a stereotype (what kind) of the element based on the test case metameta model 204a.

しかる後、テストケースメタモデル要素の追加が不要になれば(ST401;追加不要)、テストケースメタモデル登録部213は、テストケースメタモデル205aを登録する(ST403)。すなわち、テストケースメタモデル登録部213は、入力を受け付けたテストケースメタモデル205aを表すUMLのクラス図をテストケースメタモデル記憶部205に書込む。   Thereafter, if it is not necessary to add a test case metamodel element (ST401; addition is unnecessary), the test case metamodel registration unit 213 registers the test case metamodel 205a (ST403). That is, the test case metamodel registration unit 213 writes the UML class diagram representing the test case metamodel 205 a that has received the input into the test case metamodel storage unit 205.

また、テストケースメタモデル登録部213は、テストケースメタモデル記憶部205内のテストケースメタモデル205aを表すUMLのクラス図を入出力部200にて表示することにより、テストケースメタモデル205aを構成するテストケースメタモデル要素を示すテストケースメタモデル要素データ205a1及び当該テストケースメタモデル要素の属性を示すテストケースメタモデル要素属性データ205a2の入力を促す。   Further, the test case metamodel registration unit 213 configures the test case metamodel 205 a by displaying a UML class diagram representing the test case metamodel 205 a in the test case metamodel storage unit 205 on the input / output unit 200. The test case metamodel element data 205a1 indicating the test case metamodel element to be input and the test case metamodel element attribute data 205a2 indicating the attribute of the test case metamodel element are prompted to input.

しかる後、テストケースメタモデル登録部213は、入力を受け付けたテストケースメタモデル要素データ205a1及びテストケースメタモデル要素属性データ205a2をテストケースメタモデル記憶部205に書込む。   Thereafter, the test case metamodel registration unit 213 writes the received test case metamodel element data 205a1 and test case metamodel element attribute data 205a2 in the test case metamodel storage unit 205.

このように書き込まれたテストケースメタモデルの例を図25、図26及び図27に示す。すなわち、図25に示すテストケースメタメタモデル204aに対し、図26に示すテストケースメタモデル要素データ205a1及びテストケースメタモデル要素属性データ205a2がテストケースメタモデル記憶部205に書き込まれる。これにより、図27に示す部分のテストケースメタモデル205aが作成・登録される。   Examples of the test case metamodel written in this way are shown in FIGS. That is, the test case metamodel element data 205a1 and test case metamodel element attribute data 205a2 shown in FIG. 26 are written in the test case metamodel storage unit 205 for the test case metametamodel 204a shown in FIG. As a result, the test case metamodel 205a shown in FIG. 27 is created and registered.

ステップST500のテストケースメタモデル205aの検証の動作について図28を用いて述べる。ステップST500では、テストケースメタモデル検証部214は、テストケースメタモデル記憶部205内のテストケースメタモデル205aを表すUMLのクラス図、テストケースメタモデル要素データ205a1及びテストケースメタモデル要素属性データ205a2に対し、テストケースメタメタモデル記憶部204内のテストケースメタメタモデル204aに違反している箇所を含むか否かを検証する。このようなテストケースメタモデル205aの検証においては、テストケースメタモデル要素を検証していくことで、検証結果を得ることができる。検証結果には、テストケースメタモデル205aの中で、テストケースメタメタモデル204aに違反している箇所が含まれる。 The verification operation of the test case metamodel 205a in step ST500 will be described with reference to FIG. In step ST500, the test case metamodel verification unit 214, a UML class diagram representing a test case metamodel 205 a of a test case metamodel storage unit 205, the test case metamodel element data 205 a1 and test cases metamodel element attributes to the data 205 a2, verifies whether containing portion which violates the test case meta-metamodel 204 a test case meta-metamodel in the storage unit 204. In such verification of the test case metamodel 205a, verification results can be obtained by verifying the test case metamodel elements. The verification result includes a portion of the test case metamodel 205a that violates the test case metametamodel 204a.

具体的にはテストケースメタモデル検証部214は、テストケースモデル記憶部205内の全てのテストケースメタモデル要素データ205a1を取得し(ST501)、未検証のテストケースメタモデル要素データ205a1があるか否かを判定する(ST502)。ステップST502の判定結果が否の場合(ST502;なし)にはステップST506に進み、検証結果を出力して処理を終了する。   Specifically, the test case metamodel verification unit 214 acquires all the test case metamodel element data 205a1 in the test case model storage unit 205 (ST501), and whether there is unverified test case metamodel element data 205a1. It is determined whether or not (ST502). If the determination result in step ST502 is negative (ST502; none), the process proceeds to step ST506, the verification result is output, and the process ends.

ステップST502の判定結果が未検証のデータありを示す場合(ST502;あり)、テストケースメタモデル検証部214は、テストケースメタモデル205aを表すクラス図内の各クラスのうち、当該テストケースメタモデル要素データ205a1のメタモデル要素名をもつクラスからステレオタイプを取得し(ST503)、このステレオタイプ名がテストケースメタメタモデル204aで定義済みか否かを判定する(ST504)。ステップST504の判定結果が否の場合(ST504;未定義)、テストケースメタモデル検証部214は、当該テストケースメタモデル要素データ205a1と、ステレオタイプ名が未定義である旨とを含む検証結果を既存の検証結果に追加し(ST505)、ステップST502の処理に戻る。   When the determination result in step ST502 indicates that there is unverified data (ST502; present), the test case metamodel verification unit 214 includes the test case metamodel among the classes in the class diagram representing the test case metamodel 205a. A stereotype is acquired from the class having the metamodel element name of the element data 205a1 (ST503), and it is determined whether or not this stereotype name has been defined in the test case metametamodel 204a (ST504). If the determination result in step ST504 is negative (ST504; undefined), the test case metamodel verification unit 214 outputs a verification result including the test case metamodel element data 205a1 and the stereotype name being undefined. It adds to the existing verification result (ST505), and returns to the process of step ST502.

ステップST504の判定結果が定義済みを示す場合、テストケースメタモデル検証部214は、ステップST502の処理に戻る。なお、ステップST502の処理に戻った後、前述した通り、ステップST502の判定により未検証のテストケースメタモデル要素データ205a1がなければ、検証結果を出力して(ST506)、検証処理を終了する。   When the determination result in step ST504 indicates that it has been defined, the test case metamodel verification unit 214 returns to the process in step ST502. After returning to the process of step ST502, as described above, if there is no unverified test case metamodel element data 205a1 by the determination of step ST502, a verification result is output (ST506), and the verification process is terminated.

ステップST600におけるマッピングルールメタモデル207aの作成・登録の動作について図29を用いて述べる。始めに、マッピングルールメタモデル登録部215は、テストケースメタモデル検証部214による検証結果が違反箇所を含まない場合、設計メタモデル記憶部203から、マッピングの候補となる、マッピングルールメタメタモデル206aで定義された3種類の設計メタモデル203aの構造を持つ設計メタモデル203aの組み合わせを抽出する(ST601)。ここで、マッピングルールメタメタモデル206aは、作成対象であるマッピングルールメタモデル207aの構造を表す。具体的には、マッピングルールメタメタモデル206aは、マッピングルールメタモデル207aが対象とする設計メタモデル203aにはどのような構造があり、その設計メタモデル203aがテストケースメタモデル205aとどのように関連付くかを表す。   The operation of creating / registering the mapping rule metamodel 207a in step ST600 will be described with reference to FIG. First, when the verification result by the test case metamodel verification unit 214 does not include a violation part, the mapping rule metamodel registration unit 215 receives a mapping rule metameta model 206a from the design metamodel storage unit 203 as a mapping candidate. A combination of design metamodels 203a having the defined three types of design metamodels 203a is extracted (ST601). Here, the mapping rule meta-meta model 206a represents the structure of the mapping rule meta-model 207a to be created. Specifically, the mapping rule meta-meta model 206a has any structure in the design meta model 203a targeted by the mapping rule meta model 207a, and how the design meta model 203a relates to the test case meta model 205a. Indicates whether it is attached.

続いて、マッピングルールメタモデル登録部215は、マッピングルールメタメタモデル記憶部206内のマッピングルールメタメタモデル206aを表すUMLのクラス図、テストケースメタモデル記憶部205内のテストケースメタモデル205aを表すUMLのクラス図及び設計メタモデル記憶部203内の設計メタモデル203aを表すUMLのクラス図を入出力部200にて表示することにより、マッピングルールメタモデル登録部215は、マッピングルールメタモデル207aを表すUMLのクラス図の入力を促す。   Subsequently, the mapping rule metamodel registration unit 215 includes a UML class diagram representing the mapping rule metametamodel 206a in the mapping rule metametamodel storage unit 206, and a UML representing the test case metamodel 205a in the test case metamodel storage unit 205. The mapping rule metamodel registration unit 215 represents the mapping rule metamodel 207a by displaying the class diagram of UML and the UML class diagram representing the design metamodel 203a in the design metamodel storage unit 203 on the input / output unit 200. Prompts the user to enter a UML class diagram.

次いで、マッピングルールメタモデル登録部215は、抽出した設計メタモデル203aの構造毎に、テストケース生成者による入出力部200の操作により、マッピングルールメタモデル要素の追加が不要となるまで(ST602)、入力を受け付けたテストスイートメタモデル要素(ステレオタイプ全体要素をもつ設計メタモデルにマッピングするテストスイートメタモデル要素)、及びこのテストスイートメタモデル要素に関連付けるテストケースメタモデル要素を選択し(ST603,ST604)、テストケースメタモデル要素と、抽出した設計メタモデル要素の残りとを関連付けていく(ST605)。   Next, the mapping rule metamodel registration unit 215 adds the mapping rule metamodel element for each structure of the extracted design metamodel 203a by the operation of the input / output unit 200 by the test case generator (ST602). The test suite metamodel element (test suite metamodel element mapped to the design metamodel having the stereotype overall element) that has received the input, and the test case metamodel element to be associated with this test suite metamodel element are selected (ST603, ST604), the test case metamodel element is associated with the remaining design metamodel element extracted (ST605).

しかる後、マッピングルールメタモデル要素の追加が不要になれば(ST602;追加不要)、マッピングルールメタモデル207aを登録する(ST606)。すなわち、マッピングルールメタモデル登録部215は、マッピングルールメタモデル登録部215は、入力を受け付けたマッピングルールメタモデル207aを表すUMLのクラス図をマッピングルールメタモデル記憶部207に書込む。   After that, if it becomes unnecessary to add the mapping rule metamodel element (ST602; addition unnecessary), the mapping rule metamodel 207a is registered (ST606). That is, the mapping rule metamodel registration unit 215 writes the UML class diagram representing the mapping rule metamodel 207 a that has received the input into the mapping rule metamodel storage unit 207.

また、マッピングルールメタモデル登録部215は、マッピングルールモデル記憶部207内のマッピングルールメタモデル207aを表すUMLのクラス図、設計メタモデル記憶部203内の設計メタモデル要素データ203a1及びテストケースメタモデル記憶部205内のテストケースメタモデル要素データ205a1を入出力部200にて表示することにより、マッピングルールメタモデル207aを構成するマッピングルールメタモデル要素を示すマッピングルールメタモデル要素データ207a1及び当該マッピングルールメタモデル要素の属性を示すマッピングルールメタモデル要素属性データ207a2の入力を促す。   The mapping rule metamodel registration unit 215 also includes a UML class diagram representing the mapping rule metamodel 207a in the mapping rule model storage unit 207, design metamodel element data 203a1 in the design metamodel storage unit 203, and a test case metamodel. By displaying the test case metamodel element data 205a1 in the storage unit 205 on the input / output unit 200, the mapping rule metamodel element data 207a1 indicating the mapping rule metamodel elements constituting the mapping rule metamodel 207a and the mapping rule The user is prompted to input mapping rule metamodel element attribute data 207a2 indicating the attributes of the metamodel element.

しかる後、マッピングルールメタモデル登録部215は、入力を受け付けたマッピングルールメタモデル要素データ207a1及びマッピングルールメタモデル要素属性データ207a2をマッピングルールメタモデル記憶部207に書込む。   Thereafter, the mapping rule metamodel registration unit 215 writes the mapping rule metamodel element data 207a1 and the mapping rule metamodel element attribute data 207a2 that have received the input into the mapping rule metamodel storage unit 207.

このように書き込まれたマッピングルールメタモデルの例を図30、図31及び図32に示す。図30に示すマッピングルールメタメタモデル206aに対し、図31に示すマッピングルールメタモデル要素データ207a1及びマッピングルールメタモデル要素属性データ207a2がマッピングルールメタモデル記憶部207に書き込まれる。これにより、図32に示す部分のマッピングルールメタモデル207aが作成・登録される。   Examples of the mapping rule metamodel written in this way are shown in FIGS. 30, 31, and 32. FIG. For the mapping rule meta-meta model 206a shown in FIG. 30, the mapping rule meta-model element data 207a1 and the mapping rule meta-model element attribute data 207a2 shown in FIG. As a result, the mapping rule metamodel 207a shown in FIG. 32 is created and registered.

ステップST700のマッピングルールメタモデル207aの検証の動作について図33を用いて述べる。ステップST700では、マッピングメタモデル検証部216は、マッピングルールメタモデル記憶部207内のマッピングルールメタモデル207aを表すUMLのクラス図、マッピングルールメタモデル要素データ207a1及びマッピングルールメタモデル要素属性データ207a2に対し、マッピングルールメタメタモデル記憶部206内のマッピングルールメタメタモデル206aに違反している箇所を含むか否かを検証する。このようなマッピングルールメタモデル207aの検証においては、マッピングルールメタモデル要素を検証し、次いで、マッピングルールメタモデル要素の関連付けを検証していくことで、検証結果を得ることができる。検証結果には、マッピングルールメタモデル207aの中で、マッピングルールメタメタモデル206aに違反している箇所が含まれる。   The verification operation of the mapping rule metamodel 207a in step ST700 will be described with reference to FIG. In step ST700, the mapping metamodel verification unit 216 adds a UML class diagram representing the mapping rule metamodel 207a in the mapping rule metamodel storage unit 207, mapping rule metamodel element data 207a1, and mapping rule metamodel element attribute data 207a2. On the other hand, it is verified whether or not a location that violates the mapping rule meta-meta model 206a in the mapping rule meta-meta model storage unit 206 is included. In such verification of the mapping rule metamodel 207a, the verification result can be obtained by verifying the mapping rule metamodel element and then verifying the association of the mapping rule metamodel element. The verification result includes a portion in the mapping rule meta model 207a that violates the mapping rule meta meta model 206a.

具体的にはマッピングルールメタモデル検証部216は、図33に示すように、マッピングルールメタモデル記憶部207内の全てのマッピングルールメタモデル要素データ207a1を取得し(ST701)、未検証のマッピングルールメタモデル要素データ207a1があるか否かを判定する(ST702)。ステップST702の判定結果が否の場合(ST702;なし)にはステップST712に進み、検証結果を出力して処理を終了する。   Specifically, the mapping rule metamodel verification unit 216 acquires all the mapping rule metamodel element data 207a1 in the mapping rule metamodel storage unit 207 as shown in FIG. 33 (ST701), and unverified mapping rules. It is determined whether there is metamodel element data 207a1 (ST702). If the determination result in step ST702 is negative (ST702; none), the process proceeds to step ST712, the verification result is output, and the process ends.

ステップST702の判定結果が未検証のデータありを示す場合(ST702;あり)、マッピングルールメタモデル検証部216は、未検証のマッピングルールメタモデル要素データ207a1が設計メタモデル203a又はテストケースメタモデル205aで定義済みか否かを判定する(ST703)。ステップST703の判定結果が否の場合(ST703;未定義)、マッピングルールメタモデル検証部214は、当該マッピングルールメタモデル要素データ207a1が未定義である旨を含む検証結果を既存の検証結果に追加し(ST704)、ステップST702の処理に戻る。   When the determination result in step ST702 indicates that there is unverified data (ST702; present), the mapping rule metamodel verification unit 216 determines that the unverified mapping rule metamodel element data 207a1 is the design metamodel 203a or the test case metamodel 205a. It is determined whether or not it has been defined in (ST703). If the determination result in step ST703 is negative (ST703; undefined), the mapping rule metamodel verification unit 214 adds a verification result including that the mapping rule metamodel element data 207a1 is undefined to the existing verification result. Then (ST704), the process returns to step ST702.

ステップST703の判定結果が定義済みを示す場合、当該マッピングルールメタモデル要素データ207a1における全ての関連先のメタモデル要素データ203a1をメタモデル記憶部203から取得し(ST705)、未検証の関連先のメタモデル要素データ203a1があるか否かを判定する(ST706)。ステップST706の判定結果が否の場合(ST706;なし)にはステップST702の処理に戻る。   When the determination result in step ST703 indicates that the definition is completed, all the related metamodel element data 203a1 in the mapping rule metamodel element data 207a1 is acquired from the metamodel storage unit 203 (ST705), and the unverified related destination It is determined whether there is metamodel element data 203a1 (ST706). If the determination result in step ST706 is negative (ST706; none), the process returns to step ST702.

ステップST706の判定結果が未検証の関連先ありを示す場合(ST706;あり)、マッピングルールメタモデル検証部216は、マッピングルールメタモデル207aを表すクラス図内の各クラスのうち、当該マッピングルールメタモデル要素データ203a3の関連元のテストケースメタモデル要素データ205a1のメタモデル要素名をもつクラスからステレオタイプを取得し(ST707)、当該関連先の設定メタモデル要素データ203a1のメタモデル要素名をもつクラスからステレオタイプを取得し(ST708)、両クラス間の関連を示す関連ステレオタイプを当該クラス図から取得する(ST709)。   When the determination result in step ST706 indicates that there is an unverified related destination (ST706; present), the mapping rule metamodel verification unit 216 selects the mapping rule meta from the classes in the class diagram representing the mapping rule metamodel 207a. A stereotype is acquired from the class having the metamodel element name of the test case metamodel element data 205a1 of the association source of the model element data 203a3 (ST707), and has the metamodel element name of the setting metamodel element data 203a1 of the association destination The stereotype is acquired from the class (ST708), and the related stereotype indicating the relationship between both classes is acquired from the class diagram (ST709).

しかる後、マッピングルールメタモデル検証部216は、この関連ステレオタイプ名がマッピングルールメタメタモデル206aで定義済みか否かを判定する(ST710)。ステップST710の判定結果が否の場合(ST710;未定義)、マッピングルールメタモデル検証部216は、当該テストケースメタモデル要素205a1及び関連先の設計メタモデル要素データ203a1と、両者間の関連ステレオタイプ名が未定義である旨とを含む検証結果を既存の検証結果に追加し(ST711)、ステップST706の処理に戻る。なお、ステップST706の処理に戻った後、前述した通り、ステップST706の判定により未検証の関連先がなければ、ステップST702の処理に戻り、ステップST702の判定により未検証のマッピングルールメタモデル要素データ207a1がなければ、検証結果を出力して(ST712)、検証処理を終了する。   Thereafter, the mapping rule metamodel verification unit 216 determines whether or not the related stereotype name has been defined in the mapping rule metametamodel 206a (ST710). If the determination result in step ST710 is negative (ST710; undefined), the mapping rule metamodel verification unit 216 determines the test case metamodel element 205a1 and the related design metamodel element data 203a1 and the related stereotypes between the two. A verification result including that the name is undefined is added to the existing verification result (ST711), and the process returns to step ST706. After returning to the process of step ST706, as described above, if there is no unverified related destination by the determination of step ST706, the process returns to the process of step ST702, and the unverified mapping rule metamodel element data is determined by the determination of step ST702. If there is no 207a1, a verification result is output (ST712), and the verification process is terminated.

なお、マッピングルールメタモデル検証部216による検証結果が違反箇所を含まない場合、テストケースメタモデル登録部213は、マッピングルールメタモデル記憶部207内のマッピングルールメタモデル207aを表すクラス図とテストケースメタモデル記憶部205内のテストケースメタモデル要素属性データ205a2とを入出力部200にて表示することにより、テストケースのひな型を表すテストケーステンプレート205bの入力を促す。なお、入出力部200による表示は、マッピングルールメタモデル記憶部207内のマッピングルールメタモデル207aを表すクラス図とテストケースメタモデル記憶部205内のテストケースメタモデル要素属性データ205a2内のメタモデル要素属性名の値に含まれるテストケーステンプレート名とを含んでいる。   When the verification result by the mapping rule metamodel verification unit 216 does not include a violation part, the test case metamodel registration unit 213 displays a class diagram and a test case representing the mapping rule metamodel 207a in the mapping rule metamodel storage unit 207. The test case metamodel element attribute data 205a2 in the metamodel storage unit 205 is displayed on the input / output unit 200, thereby prompting the user to input a test case template 205b representing a test case template. The input / output unit 200 displays a class diagram representing the mapping rule metamodel 207a in the mapping rule metamodel storage unit 207 and a metamodel in the test case metamodel element attribute data 205a2 in the test case metamodel storage unit 205. The test case template name included in the value of the element attribute name is included.

しかる後、テストケースメタモデル登録部213は、入力を受け付けたテストケーステンプレート205bをテストケースメタモデル記憶部205に書込む。   Thereafter, the test case metamodel registration unit 213 writes the received test case template 205b in the test case metamodel storage unit 205.

次に、ステップST800のテストケース208dの生成の動作について図34を用いて述べる。ステップST800では、テストケース生成部217は、テストケースメタモデル記憶部205内のテストケーステンプレート205bの置換部分の各項目を、要素データ201a1,201a4、要素項目データ201a2,201a5及び要素処理データ201a3内のいずれかの項目の値に置換してテストケース208dを生成する。このようなテストケース208dの生成は、全てのテストスイートメタモデル要素の、全てのテストケースメタモデル要素に対して行う。テストケースメタモデル要素には、テストケーステンプレート205bがある。そのテンプレート205bの可変部分を、設計要素で置換していくことで、テストケース208dを生成する。   Next, the operation for generating the test case 208d in step ST800 will be described with reference to FIG. In step ST800, the test case generation unit 217 sets each item of the replacement part of the test case template 205b in the test case metamodel storage unit 205 as element data 201a1, 201a4, element item data 201a2, 201a5, and element processing data 201a3. The test case 208d is generated by replacing the value of any of the items. Such test case 208d is generated for all test case metamodel elements of all test suite metamodel elements. The test case metamodel element includes a test case template 205b. The test case 208d is generated by replacing the variable part of the template 205b with a design element.

具体的にはテストケース生成部217は、図34に示すように、テストケースメタモデル記憶部205内の全てのテストスイートメタモデル要素を取得し(ST801)、未生成のテストスイートメタモデル要素があるか否かを判定する(ST802)。ステップST802の判定結果が否の場合(ST802;なし)にはステップST812に進み、テストケースを出力して処理を終了する。   Specifically, as shown in FIG. 34, the test case generation unit 217 acquires all the test suite metamodel elements in the test case metamodel storage unit 205 (ST801), and the ungenerated test suite metamodel elements are obtained. It is determined whether or not there is (ST802). If the determination result in step ST802 is negative (ST802; none), the process proceeds to step ST812, a test case is output, and the process ends.

ステップST802の判定結果が未生成のテストスイートメタモデル要素ありを示す場合(ST802;あり)、テストケース生成部217は、当該テストスイートメタモデル要素に関連付く全てのテストケースメタモデル要素208a1をテストケースメタモデル記憶部205から取得する(ST803)。   When the determination result in step ST802 indicates that there is an ungenerated test suite metamodel element (ST802; present), the test case generation unit 217 tests all the test case metamodel elements 208a1 associated with the test suite metamodel element. Obtained from the case metamodel storage unit 205 (ST803).

次に、テストケース生成部217は、未生成のテストケースメタモデル要素があるか否かを判定し(ST804)、判定結果が否の場合(ST804;なし)にはステップST802に戻る。   Next, the test case generation unit 217 determines whether there is an ungenerated test case metamodel element (ST804). If the determination result is negative (ST804; none), the process returns to step ST802.

ステップST804の判定結果が未生成のテストケースメタモデル要素ありを示す場合(ST804;あり)、テストケース生成部217は、当該テストケースメタモデル要素に関連付くテストケーステンプレート205bをテストケースメタモデル記憶部205から取得する(ST805)。   When the determination result in step ST804 indicates that there is an ungenerated test case metamodel element (ST804; present), the test case generation unit 217 stores the test case template 205b associated with the test case metamodel element in the test case metamodel storage. Obtained from unit 205 (ST805).

続いて、テストケース生成部217は、テストスイートメタモデル要素に関連付く設計メタモデル要素に基づく設計要素を設計要素記憶部201から取得し(ST806)、テストケースメタモデル要素に関連付く設計要素を設計要素記憶部201から取得する(ST807)。   Subsequently, the test case generation unit 217 obtains a design element based on the design metamodel element associated with the test suite metamodel element from the design element storage unit 201 (ST806), and selects the design element associated with the test case metamodel element. Obtained from the design element storage unit 201 (ST807).

しかる後、テストケース生成部217は、テストケーステンプレート205b内に未変換の可変部分があるか否かを判定し(ST808)、可変部分があれば、当該可変部分に対応する設計要素を構成する要素データ201a1,201a4、要素項目データ201a2,201a5及び要素処理データ201a3を取得し(ST809)、テストケーステンプレート205bの置換部分の各項目を、要素データ201a1,201a4、要素項目データ201a2,201a5及び要素処理データ201a3内のいずれかの項目の値に置換する(ST810)。   Thereafter, the test case generation unit 217 determines whether or not there is an unconverted variable part in the test case template 205b (ST808), and if there is a variable part, configures a design element corresponding to the variable part. Element data 201a1, 201a4, element item data 201a2, 201a5 and element processing data 201a3 are acquired (ST809), and each item in the replacement part of the test case template 205b is replaced with element data 201a1, 201a4, element item data 201a2, 201a5 and element The value of any item in the processing data 201a3 is replaced (ST810).

ステップST808の判定の結果、未変換の可変部分がなければ(ST808;なし)、テストケース生成部217は、全ての可変部分を置換後のテストケーステンプレート205bをテストケース208dとして生成し、当該生成したテストケース208dをテストケース記憶部208に追加(書込み)して、ステップST804に戻る。   If there is no unconverted variable part as a result of the determination in step ST808 (ST808; none), the test case generation unit 217 generates the test case template 205b after replacing all the variable parts as the test case 208d, and generates that The test case 208d is added (written) to the test case storage unit 208, and the process returns to step ST804.

なお、ステップST804の処理に戻った後、テストケース生成部217は、前述した通り、ステップST804の判定により、未生成のテストケースメタモデル要素がなければ(ST804;なし)、ステップST802に戻り、未生成のテストスイートメタモデル要素がなければ(ST802;なし)、テストケース208dを出力して(ST812)、処理を終了する。   After returning to the process of step ST804, as described above, the test case generation unit 217 returns to step ST802 if there is no ungenerated test case metamodel element (ST804; none) as a result of the determination of step ST804 as described above. If there is no ungenerated test suite metamodel element (ST802; none), the test case 208d is output (ST812), and the process ends.

このようにテストケースを生成する例を図35、図36及び図37に示す。すなわち、図35に示すテストケーステンプレート205bの置換部分の各項目を、図36に示す要素データ201a1,201a4、要素項目データ201a2,201a5及び要素処理データ201a3内のいずれかの項目の値に置換する。このような置換後のテストケーステンプレート205bとして、図37に示すテストケース205bが生成される。   Examples of generating test cases in this way are shown in FIG. 35, FIG. 36, and FIG. That is, each item in the replacement portion of the test case template 205b shown in FIG. 35 is replaced with the value of any item in the element data 201a1, 201a4, element item data 201a2, 201a5, and element processing data 201a3 shown in FIG. . As such a replaced test case template 205b, a test case 205b shown in FIG. 37 is generated.

上述したように本実施形態によれば、テスト対象の設計書に記述された画面又はデータに対応する設計要素201aの構造を表す設計メタモデル203aと、設計メタモデル203aの構造を表す設計メタメタモデル202aと、設計要素201aを用いてテスト内容を記述したテストケース208dの構造を表すテストケースメタモデル205aと、テストケースメタモデル205aの構造を表すテストケースメタメタモデル204aと、テストケースメタメタモデル204a及び設計メタメタモデル202a間の関係を表すマッピングルールメタメタモデル206aと、テストケースメタモデル205a及び設計メタモデル203a間の関連付けを表すマッピングルールメタモデル207aとを用い、設計要素201aとの置換部分を含んでテストケース208dのひな型を表すテストケーステンプレート205bを準備する構成により、テストケース生成の際に、未熟な作業者に対してもテストケースの漏れの発生を無くすことができる。   As described above, according to the present embodiment, the design meta model 203a representing the structure of the design element 201a corresponding to the screen or data described in the design document to be tested, and the design meta meta model representing the structure of the design meta model 203a. 202a, a test case meta model 205a representing the structure of the test case 208d describing the test content using the design element 201a, a test case meta meta model 204a representing the structure of the test case meta model 205a, a test case meta meta model 204a, The mapping rule meta-meta model 206a representing the relationship between the design meta-meta models 202a and the mapping rule meta-model 207a representing the association between the test case meta-model 205a and the design meta-model 203a are used, and a replacement part with the design element 201a is included. In the configuration of preparing a test case template 205b representing the template of test case 208d, during test case generation, it is possible to eliminate the occurrence of leakage of the test case against unskilled workers.

また、本実施形態によれば、設計要素201a及びテストケーステンプレート205bに基づいてテストケース208dを生成する構成により、テスト対象からテストケースを生成する作業を自動化することができる。   In addition, according to the present embodiment, the operation of generating a test case from a test target can be automated by the configuration in which the test case 208d is generated based on the design element 201a and the test case template 205b.

また、メタメタモデル202a,204a,206aを利用することにより、設計メタモデル203a、テストケースメタモデル205a、マッピングルールメタモデル207aの作成が容易になり、作成したメタモデル203a,205a,207aの検証が可能になる。   Further, by using the meta meta models 202a, 204a, and 206a, it becomes easy to create the design meta model 203a, the test case meta model 205a, and the mapping rule meta model 207a, and the created meta models 203a, 205a, and 207a can be verified. It becomes possible.

さらに、テストケース生成者のノウハウや経験を、設計メタモデル203a、テストケースメタモデル205a、マッピングルールメタモデル207aという形で形式知化して蓄積することができるため、生成されるテストケース208dのバラつきがなくなり、テストケース208dの品質を向上させることができる。   Furthermore, the know-how and experience of the test case creator can be formalized and accumulated in the form of the design meta model 203a, the test case meta model 205a, and the mapping rule meta model 207a. Thus, the quality of the test case 208d can be improved.

補足すると、本実施形態は、特許文献1に記載の技術とは異なり、固定のテストシナリオ作成ルールを持たないことから、テストシナリオ生成の適用範囲が限定されない。また、本実施形態は、特許文献2に記載の技術とは異なり、テスト仕様書のテンプレートをテストのパターン毎に用意しないことから、テスト仕様書テンプレートの作成に手間がかからない。   Supplementally, unlike the technique described in Patent Document 1, the present embodiment does not have a fixed test scenario creation rule, so that the application range of test scenario generation is not limited. In addition, unlike the technique described in Patent Document 2, this embodiment does not prepare a test specification template for each test pattern, so that it does not take time to create a test specification template.

また、本実施形態の設計要素201a、設計メタモデル203a、設計メタメタモデル202a、テストケースメタモデル205a、テストケースメタメタモデル204a、マッピングルールメタモデル207a、マッピングルールメタメタモデル206a及びテストケース208dは、DBMSに格納してもよく、表形式のファイルに格納してもよい。   In addition, the design element 201a, the design meta model 203a, the design meta meta model 202a, the test case meta model 205a, the test case meta meta model 204a, the mapping rule meta model 207a, the mapping rule meta meta model 206a, and the test case 208d of the present embodiment include a DBMS. Or may be stored in a tabular file.

また、本実施形態の設計メタメタモデル202aでは、3種類の構造(一覧、遷移、組合)を対象にしているが、その他の構造としてもよい。また、本実施形態のマッピングルールメタメタモデル206aでは、設計メタメタモデル202aの3種類の構造毎に一つずつ計3種類のマッピングの構造を定義しているが、その他のマッピングの構造を定義してもよい。   In the design meta-meta model 202a of the present embodiment, three types of structures (list, transition, combination) are targeted, but other structures may be used. In addition, in the mapping rule meta-meta model 206a of this embodiment, a total of three types of mapping structures are defined for each of the three types of structures of the design meta-meta model 202a, but other mapping structures are defined. Also good.

また、本実施形態は、設計メタメタモデル202aの組合せ構造に基づいて、設計メタモデル203aを構築する際に、二つの設計メタモデル要素を選択して組み合わせているが、三つ以上で組み合わせることもできる。   In the present embodiment, when the design metamodel 203a is constructed based on the combination structure of the design metametamodel 202a, two design metamodel elements are selected and combined. it can.

なお、上記の各実施形態に記載した手法は、コンピュータに実行させることのできるプログラムとして、磁気ディスク(フロッピー(登録商標)ディスク、ハードディスクなど)、光ディスク(CD−ROM、DVDなど)、光磁気ディスク(MO)、半導体メモリなどの記憶媒体に格納して頒布することもできる。   Note that the methods described in the above embodiments are, as programs that can be executed by a computer, magnetic disks (floppy (registered trademark) disks, hard disks, etc.), optical disks (CD-ROMs, DVDs, etc.), magneto-optical disks. (MO), stored in a storage medium such as a semiconductor memory, and distributed.

また、この記憶媒体としては、プログラムを記憶でき、かつコンピュータが読み取り可能な記憶媒体であれば、その記憶形式は何れの形態であっても良い。   In addition, as long as the storage medium can store a program and can be read by a computer, the storage format may be any form.

また、記憶媒体からコンピュータにインストールされたプログラムの指示に基づきコンピュータ上で稼働しているOS(オペレーティングシステム)や、データベース管理ソフト、ネットワークソフト等のMW(ミドルウェア)等が上記実施形態を実現するための各処理の一部を実行しても良い。   In addition, an OS (operating system) running on a computer based on an instruction of a program installed in the computer from a storage medium, MW (middleware) such as database management software, network software, and the like realize the above-described embodiment. A part of each process may be executed.

さらに、各実施形態における記憶媒体は、コンピュータと独立した媒体に限らず、LANやインターネット等により伝送されたプログラムをダウンロードして記憶または一時記憶した記憶媒体も含まれる。   Furthermore, the storage medium in each embodiment is not limited to a medium independent of a computer, but also includes a storage medium in which a program transmitted via a LAN, the Internet, or the like is downloaded and stored or temporarily stored.

また、記憶媒体は1つに限らず、複数の媒体から上記の各実施形態における処理が実行される場合も本発明における記憶媒体に含まれ、媒体構成は何れの構成であっても良い。   Further, the number of storage media is not limited to one, and the case where the processing in each of the above embodiments is executed from a plurality of media is also included in the storage media in the present invention, and the media configuration may be any configuration.

なお、各実施形態におけるコンピュータは、記憶媒体に記憶されたプログラムに基づき、上記の各実施形態における各処理を実行するものであって、パソコン等の1つからなる装置、複数の装置がネットワーク接続されたシステム等の何れの構成であっても良い。   Note that the computer in each embodiment executes each process in each of the above embodiments based on a program stored in a storage medium. Any configuration of the system or the like may be used.

また、各実施形態におけるコンピュータとは、パソコンに限らず、情報処理機器に含まれる演算処理装置、マイコン等も含み、プログラムによって本発明の機能を実現することが可能な機器、装置を総称している。   In addition, the computer in each embodiment is not limited to a personal computer, and includes an arithmetic processing device, a microcomputer, and the like included in an information processing device, and is a generic term for devices and devices that can realize the functions of the present invention by a program. Yes.

なお、本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。   In addition, although some embodiment of this invention was described, these embodiment is shown as an example and is not intending limiting the range of invention. These novel embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the scope of the invention. These embodiments and modifications thereof are included in the scope and gist of the invention, and are included in the invention described in the claims and the equivalents thereof.

200…入出力部、201…設計要素記憶部、201a…設計要素、201a1,201a4…要素データ、201a2,201a5…要素項目データ、201a3…要素処理データ、202…設計メタメタモデル記憶部、202a…設計メタメタモデル、203…設計メタモデル記憶部、203a…設計メタモデル、203a1…設計メタモデル要素データ、203a2…設計メタモデル要素属性データ、203a3…関連先の設計メタモデル要素データ、204…テストケースメタメタモデル記憶部、204a…テストケースメタメタモデル、205…テストケースメタモデル記憶部、205a…テストケースメタモデル、205a1…テストケースメタモデル要素データ、205a2…テストケースメタモデル要素属性データ、205b…テストケーステンプレート、206…マッピングルールメタメタモデル記憶部、206a…マッピングルールメタメタモデル、207…マッピングルールメタモデル記憶部、207a…マッピングルールメタモデル、207a1…マッピングルールメタモデル要素データ、207a2…マッピングルールメタモデル要素属性データ、208…テストケース記憶部、208a〜208c…テストケース一覧表、208d…テストケース、209…制御部、210…設計メタモデル登録部、211…設計メタモデル検証部、212…設計要素入力部、213…テストケースメタモデル登録部、214…テストケースメタモデル検証部、215…マッピングルールメタモデル登録部、216…マッピングルールメタモデル検証部、217…テストケース生成部。   DESCRIPTION OF SYMBOLS 200 ... Input / output unit, 201 ... Design element storage unit, 201a ... Design element, 201a1, 201a4 ... Element data, 201a2, 201a5 ... Element item data, 201a3 ... Element processing data, 202 ... Design meta meta model storage unit, 202a ... Design Meta meta model, 203 ... Design meta model storage unit, 203 a ... Design meta model, 203 a 1 ... Design meta model element data, 203 a 2 ... Design meta model element attribute data, 203 a 3 ... Related design meta model element data, 204 ... Test case meta meta Model storage unit, 204a ... test case meta model, 205 ... test case meta model storage unit, 205a ... test case meta model, 205a1 ... test case meta model element data, 205a2 ... test case meta model element attribute data, 205 ... test case template, 206 ... mapping rule meta meta model storage unit, 206a ... mapping rule meta model, 207 ... mapping rule meta model storage unit, 207a ... mapping rule meta model, 207a1 ... mapping rule meta model element data, 207a2 ... mapping rule Meta model element attribute data, 208... Test case storage unit, 208 a to 208 c... Test case list, 208 d... Test case, 209 ... control unit, 210 ... design meta model registration unit, 211 ... design meta model verification unit, 212. Design element input unit, 213 ... test case metamodel registration unit, 214 ... test case metamodel verification unit, 215 ... mapping rule metamodel registration unit, 216 ... mapping rule metamodel verification unit, 217 ... test Case generation unit.

Claims (4)

テスト対象の設計書に記述された画面又はデータに対応する設計要素と、前記設計要素の構造を表す設計メタモデルと、前記設計メタモデルの構造を表す設計メタメタモデルと、前記設計要素を用いてテスト内容を記述したテストケースの構造を表すテストケースメタモデルと、前記テストケースメタモデルの構造を表すテストケースメタメタモデルと、前記テストケースメタメタモデル及び前記設計メタメタモデル間の関係を表すマッピングルールメタメタモデルと、前記テストケースメタモデル及び前記設計メタモデル間の関連付けを表すマッピングルールメタモデルと、前記テストケースとを記憶するための記憶手段を備え、前記設計要素との置換部分を含んで前記テストケースのひな型を表すテストケーステンプレートを前記テストケースメタモデルの一部として準備し、前記テストケーステンプレートの置換部分を前記テスト対象の設計要素に置換して前記テストケースを生成するテストケース生成装置に用いられるテストケース生成プログラムであって、
前記テストケース生成装置を、
それぞれUMLのクラス図で表された前記設計メタメタモデル、前記テストケースメタメタモデル及び前記マッピングルールメタメタモデルを予め前記記憶手段に書込む手段、
前記記憶手段内の設計メタメタモデルを表示することにより、前記設計メタモデルを表すUMLのクラス図の入力を促す手段、
前記入力を受け付けた前記設計メタモデルを表すUMLのクラス図を前記記憶手段に書込む手段、
前記記憶手段内の前記設計メタモデルを表すUMLのクラス図を表示することにより、前記設計メタモデルを構成する設計メタモデル要素を示す設計メタモデル要素データ、当該設計メタモデル要素の属性を示す設計メタモデル要素属性データ及び関連先の設計メタモデル要素データの入力を促す手段、
前記入力を受け付けた前記設計メタモデル要素データ、前記設計メタモデル要素属性データ及び前記関連先の設計メタモデル要素データを前記記憶手段に書込む手段、
前記記憶手段内の前記設計メタモデルを表すUMLのクラス図、前記設計メタモデル要素データ、前記設計メタモデル要素属性データ及び前記関連先の設計メタモデル要素データに対し、前記記憶手段内の設計メタメタモデルに違反している箇所を含むか否かを検証する手段、
この検証結果が否を示す場合、前記記憶手段内の前記設計メタモデルを表すUMLのクラス図、前記設計メタモデル要素データ、前記設計メタモデル要素属性データ及び前記関連先の設計メタモデル要素データを表示することにより、前記設計要素を特定する要素データ、当該設計要素の項目を示す要素項目データ及び当該設計要素の処理を示す要素処理データの入力を促す手段、
前記入力を受け付けた前記要素データ、前記要素項目データ及び前記要素処理データを前記記憶手段に書込む手段、
前記記憶手段内のテストケースメタメタモデルを表すUMLのクラス図及び前記設計メタモデルを表すUMLのクラス図を表示することにより、前記テストケースメタモデルを表すUMLのクラス図の入力を促す手段、
前記入力を受け付けた前記テストケースメタモデルを表すUMLのクラス図を前記記憶手段に書込む手段、
前記記憶手段内の前記テストケースメタモデルを表すUMLのクラス図を表示することにより、前記テストケースメタモデルを構成するテストケースメタモデル要素を示すテストケースメタモデル要素データ及び当該テストケースメタモデル要素の属性を示すテストケースメタモデル要素属性データの入力を促す手段、
前記入力を受け付けた前記テストケースメタモデル要素データ及び前記テストケースメタモデル要素属性データを前記記憶手段に書込む手段、
前記記憶手段内の前記テストケースメタモデルを表すUMLのクラス図、前記テストケースメタモデル要素データ及び前記テストケースメタモデル要素属性データに対し、前記記憶手段内のテストケースメタメタモデルに違反している箇所を含むか否かを検証する手段、
この検証結果が否を示す場合、前記記憶手段内のマッピングルールメタメタモデルを表すUMLのクラス図、前記記憶手段内のテストケースメタモデルを表すUMLのクラス図及び前記設計メタモデルを表すUMLのクラス図を表示することにより、前記マッピングルールメタモデルを表すUMLのクラス図の入力を促す手段、
前記入力を受け付けた前記マッピングルールメタモデルを表すUMLのクラス図を前記記憶手段に書込む手段、
前記記憶手段内の前記マッピングルールメタモデルを表すUMLのクラス図、前記設計メタモデル要素データ及び前記テストケースメタモデル要素データを表示することにより、前記マッピングルールメタモデルを構成するマッピングルールメタモデル要素を示すマッピングルールメタモデル要素データ及び当該マッピングルールメタモデル要素の属性を示すマッピングルールメタモデル要素属性データの入力を促す手段、
前記入力を受け付けた前記マッピングルールメタモデル要素データ及び前記マッピングルールメタモデル要素属性データを前記記憶手段に書込む手段、
前記記憶手段内の前記マッピングルールメタモデルを表すUMLのクラス図、前記マッピングルールメタモデル要素データ及び前記マッピングルールメタモデル要素属性データに対し、前記記憶手段内のマッピングルールメタメタモデルに違反している箇所を含むか否かを検証する手段、
この検証結果が否を示す場合、前記記憶手段内のマッピングルールメタモデルを表すクラス図と前記テストケースメタモデル要素属性データとを表示することにより、前記設計要素との置換部分として前記要素データ、前記要素項目データ及び前記要素処理データ内のいずれかの項目を含んで前記テストケースのひな型を表すテストケーステンプレートの入力を促す手段、
前記入力を受け付けたテストケーステンプレートを前記記憶手段に書込む手段、
前記記憶手段内の前記テストケーステンプレートの置換部分の各項目を、前記要素データ、前記要素項目データ及び前記要素処理データ内の前記いずれかの項目の値に置換して前記テストケースを生成する手段、
当該生成したテストケースを前記記憶手段に書込む手段、
として機能させるためのテストケース生成プログラム。
Using a design element corresponding to a screen or data described in a design document to be tested, a design metamodel representing the structure of the design element, a design metametamodel representing the structure of the design metamodel, and the design element A test case meta model representing the structure of the test case describing the test contents, a test case meta meta model representing the structure of the test case meta model, and a mapping rule meta meta representing the relationship between the test case meta meta model and the design meta meta model A storage unit for storing a model, a mapping rule metamodel representing an association between the test case metamodel and the design metamodel, and the test case, and includes a replacement part with the design element. A test case template representing the template of the case Prepared as part of Sumetamoderu, a test case generation program used the replaced portion of the test case template test case generator for generating the test case to replace the design elements of the test subject,
The test case generator is
Means for preliminarily writing the design meta metamodel, the test case meta metamodel, and the mapping rule meta metamodel respectively represented by UML class diagrams in the storage means;
Means for prompting input of a UML class diagram representing the design metamodel by displaying the design metametamodel in the storage means;
Means for writing a UML class diagram representing the design metamodel that has received the input into the storage means;
By displaying a UML class diagram representing the design metamodel in the storage means, design metamodel element data indicating design metamodel elements constituting the design metamodel, and design indicating attributes of the design metamodel elements Means for prompting input of metamodel element attribute data and related design metamodel element data;
Means for writing the design metamodel element data that has received the input, the design metamodel element attribute data, and the design metamodel element data of the related destination into the storage means;
The UML class diagram representing the design metamodel in the storage means, the design metamodel element data, the design metamodel element attribute data, and the related design metamodel element data, the design metameta in the storage means A means of verifying whether the model contains violations,
If this verification result indicates NO, the UML class diagram representing the design metamodel in the storage means, the design metamodel element data, the design metamodel element attribute data, and the related design metamodel element data Means for prompting input of element data for specifying the design element, element item data indicating an item of the design element, and element processing data indicating processing of the design element by displaying,
Means for writing the element data that has received the input, the element item data, and the element processing data into the storage means;
Means for prompting input of a UML class diagram representing the test case metamodel by displaying a UML class diagram representing the test case metametamodel in the storage means and a UML class diagram representing the design metamodel;
Means for writing a UML class diagram representing the test case metamodel that has received the input into the storage means;
By displaying a UML class diagram representing the test case metamodel in the storage means, test case metamodel element data indicating test case metamodel elements constituting the test case metamodel, and the test case metamodel elements A means to prompt input of test case metamodel element attribute data indicating attributes of
Means for writing the test case metamodel element data and the test case metamodel element attribute data that received the input into the storage means;
The UML class diagram representing the test case metamodel in the storage means, the test case metamodel element data, and the test case metamodel element attribute data violate the test case metametamodel in the storage means. Means for verifying whether or not the location is included,
If this verification result indicates NO, the UML class diagram representing the mapping rule meta-meta model in the storage means, the UML class diagram representing the test case meta model in the storage means, and the UML class representing the design meta model Means for prompting input of a UML class diagram representing the mapping rule metamodel by displaying a diagram;
Means for writing a UML class diagram representing the mapping rule metamodel that received the input into the storage means;
Mapping rule metamodel elements constituting the mapping rule metamodel by displaying the UML class diagram representing the mapping rule metamodel in the storage means, the design metamodel element data, and the test case metamodel element data Means for prompting input of mapping rule metamodel element data indicating the mapping rule metamodel element attribute data indicating the attribute of the mapping rule metamodel element
Means for writing the mapping rule metamodel element data and the mapping rule metamodel element attribute data that received the input into the storage means;
The UML class diagram representing the mapping rule metamodel in the storage means, the mapping rule metamodel element data, and the mapping rule metamodel element attribute data violate the mapping rule metametamodel in the storage means. Means for verifying whether or not the location is included,
If this verification result indicates NO, the element data as a replacement part with the design element by displaying a class diagram representing the mapping rule metamodel in the storage means and the test case metamodel element attribute data, Means for prompting input of a test case template representing any of the items in the element item data and the element processing data and representing a model of the test case;
Means for writing the test case template that has received the input into the storage means;
Means for generating the test case by replacing each item in the replacement part of the test case template in the storage means with the value of any one of the items in the element data, the element item data, and the element processing data ,
Means for writing the generated test case into the storage means;
Test case generation program to function as
請求項1に記載のテストケース生成プログラムにおいて、
前記設計メタメタモデルは、前記設計要素を表す設計要素クラスに汎化される全体要素クラス及び項目要素クラスと、当該汎化される全体要素クラス又は項目要素クラス間の関係を示す組合せ情報クラス及び遷移情報クラスとの4種類の要素が前記設計メタモデルにあることを表し、前記項目要素クラスが多重度0以上で所有されるように前記全体要素クラスに関連付けられ、前記組合せ情報クラスが前記汎化されるいずれかの各要素クラスの関係を示す関連クラスであり、前記遷移情報クラスが前記汎化されるいずれかの各要素クラスに関連付けられることを表す情報であり、
前記テストケースメタメタモデルは、前記設計要素クラスに関連付けられた多重度0以上のテストケース要素クラスという1種類の要素が前記テストケースメタモデルにあることを表し、前記テストケース要素クラスが一連のテスト要素を表すテストスイート要素クラスに所有され、前記テストケース要素クラスが多重度0以上のテスト観点クラスに関連付けられ、前記テストケース要素クラスがテストケーステンプレートクラスに関連付けられ、前記テストケーステンプレートクラスに汎化される組合せテストケーステンプレート、遷移テストケーステンプレート及び一覧テストケーステンプレートを含む情報であり、
前記マッピングルールメタメタモデルは、前記設計メタメタモデル内の設計要素と前記テストケースメタメタモデル内のテストケース要素との関係を示す関連クラスであるマッピングルール要素クラスに汎化される組合せマッピングルール要素クラス、遷移マッピングルール要素クラス及び一覧マッピングルール要素クラスの3種類の要素が前記マッピングルールメタモデルにあることを表す情報であり、
前記設計メタモデルを表すUMLのクラス図は、前記全体要素クラス及び項目要素クラスの両者に対応するステレオタイプ名と前記設計メタモデル要素の名称を示すメタモデル要素名とをもつクラスと、前記項目要素クラスに対応するステレオタイプ名と前記メタモデル要素名とをもつクラスと、前記組合せ情報クラスに対応するステレオタイプ名と前記メタモデル要素名とをもつクラスと、前記遷移情報クラスに対応するステレオタイプ名と前記メタモデル要素名とをもつクラスとを関連付けて表した情報であり、
前記設計メタモデル要素データは、前記設計メタモデル要素を識別するメタモデル要素IDの項目と値及び前記メタモデル要素名の項目と値を含んでおり、
前記設計メタモデル要素属性データは、前記メタモデル要素IDの項目と値、前記設計メタモデル要素の属性を識別するメタモデル要素属性IDの項目と値、前記設計メタモデル要素の属性の名称を示すメタモデル要素属性名の項目と値及び前記設計メタモデル要素の属性の型を示すメタモデル要素属性型の項目と値を含んでおり、
前記関連先の設計メタモデル要素データは、前記設計メタモデル要素の関連先の設計メタモデル要素を識別するメタモデル要素IDの項目と値及び前記関連先の設計メタモデル要素の名称を示すメタモデル要素名の項目と値を含んでおり、
前記要素データは、前記設計要素を識別する要素IDの項目と値及び前記設計要素の名称を示す設計要素名の項目と値を含んでおり、
前記要素項目データは、前記要素IDの項目と値、前記要素の項目を識別する要素項目IDの項目と値、前記要素の項目の名称を示す要素項目名の項目と値を含んでおり、
前記要素処理データは、前記要素IDの項目と値、前記設計要素の処理を識別する要素処理IDの項目と値、前記設計要素の処理の名称を示す要素処理名の項目と値、前記要素項目IDの項目と値、イベントを識別するイベントIDの項目と値、処理先の要素項目IDの項目と値、前記設計要素の処理の結果を示す処理結果の項目と値を含んでおり、
前記テストケースメタモデルを表すUMLのクラス図は、前記設計メタモデルを表すクラス図内の各クラスのステレオタイプ名に代えて前記テストケース要素クラスに対応するステレオタイプ名をもつと共に、当該各クラスのメタモデル要素名に対する前記テストケース要素クラスを表すメタモデル要素名をもつ各クラスを表した情報であり、
前記テストケースメタモデル要素データは、前記テストスイート要素クラスに対応するテストスイートIDの項目と値、前記テストケースメタモデル要素を識別するメタモデル要素IDの項目と値及び前記テストケース要素クラスを表すメタモデル要素名の項目と値を含んでおり、
前記テストケースメタモデル要素属性データは、前記メタモデル要素IDの項目と値、前記テストケースメタモデル要素の属性を識別するメタモデル要素属性IDの項目と値、前記テストケースメタモデル要素の属性の名称を示すメタモデル要素属性名の項目と値及び前記テストケースメタモデル要素の属性の型を示すメタモデル要素属性型の項目と値を含んでおり、
前記マッピングルールメタモデルを表すUMLのクラス図は、前記設計メタモデルを表すクラス図内の各クラスと、前記テストケースメタモデルを表すクラス図内の各クラスと、当該テストケースメタモデルを表すクラス図内の各クラスが前記設計メタモデルを表すクラス図内の各クラスに依存する旨を表すように依存元のクラスから依存先のクラスを結ぶ破線の矢印と、前記破線の矢印に近接して記述された依存先のクラスのステレオタイプ名とを表す情報であり、
前記マッピングルールメタモデル要素データは、前記破線の矢印を識別するマッピング要素IDの項目と値及び前記破線の矢印の名称を表すマッピング要素名の項目と値を含んでおり、
前記マッピングルールメタモデル要素属性データは、前記依存先のクラスを識別する設計メタモデル要素IDの項目と値、前記依存元のクラスを識別するテストケースメタモデル要素IDの項目と値、及び前記破線の矢印に近接して記述されたステレオタイプ名の項目と値を含んでおり、
前記テストケーステンプレートの入力を促す手段は、前記記憶手段内のマッピングルールメタモデルを表すクラス図と前記テストケースメタモデル要素属性データ内のメタモデル要素属性名の値に含まれるテストケーステンプレート名とを表示する手段、を含んでいることを特徴とするテストケース生成プログラム。
In the test case generation program according to claim 1,
The design meta-meta model includes an overall element class and item element class generalized to a design element class representing the design element, and a combination information class and transition indicating a relationship between the general element class or item element class to be generalized 4 types of elements with the information class are present in the design metamodel, the item element class is associated with the overall element class so that it is owned with a multiplicity of 0 or more, and the combination information class is the generalization Is a related class indicating a relationship between any one of the element classes, information indicating that the transition information class is associated with any one of the generalized element classes,
The test case meth metamodel, indicates that the one of the multiplicity of zero or more test case element classes associated with design elements class elements are in the test case metamodel, the test case element class is set Owned by a test suite element class representing a test element, the test case element class is associated with a test viewpoint class having a multiplicity of 0 or more, the test case element class is associated with a test case template class, and the test case template class Information including generalized combination test case template, transition test case template and list test case template,
The mapping rule meta metamodel is a combination mapping rule element class that is generalized to a mapping rule element class that is a related class indicating a relationship between a design element in the design meta meta model and a test case element in the test case meta meta model, Information indicating that there are three types of elements in the mapping rule metamodel: transition mapping rule element class and list mapping rule element class;
The UML class diagram representing the design metamodel includes a class having a stereotype name corresponding to both the overall element class and the item element class and a metamodel element name indicating the name of the design metamodel element, and the item. A class having a stereotype name corresponding to an element class and the metamodel element name, a class having a stereotype name corresponding to the combination information class and the metamodel element name, and a stereo corresponding to the transition information class Information that represents a type name and a class having the metamodel element name in association with each other,
The design metamodel element data includes a metamodel element ID item and value for identifying the design metamodel element, and a metamodel element name item and value.
The design metamodel element attribute data indicates the item and value of the metamodel element ID, the item and value of the metamodel element attribute ID for identifying the attribute of the design metamodel element, and the name of the attribute of the design metamodel element A metamodel element attribute name item and value, and a metamodel element attribute type item and value indicating the attribute type of the design metamodel element,
The associated design metamodel element data includes a metamodel element ID item and value for identifying the associated design metamodel element of the design metamodel element, and a metamodel indicating the name of the associated design metamodel element Contains element name fields and values,
The element data includes an element ID item and value for identifying the design element, and a design element name item and value indicating the name of the design element,
The element item data includes an item and value of the element ID, an item and value of an element item ID for identifying the item of the element, and an item and value of an element item name indicating the name of the item of the element,
The element processing data includes an element ID item and value, an element processing ID item and value identifying the design element processing, an element processing name item and value indicating the design element processing name, and the element item. An ID item and value, an event ID item and value for identifying an event, a processing element element ID item and value, and a processing result item and value indicating the processing result of the design element,
The UML class diagram representing the test case metamodel has a stereotype name corresponding to the test case element class in place of the stereotype name of each class in the class diagram representing the design metamodel, and each class Information representing each class having a metamodel element name representing the test case element class for the metamodel element name of
The test case metamodel element data represents a test suite ID item and value corresponding to the test suite element class, a metamodel element ID item and value for identifying the test case metamodel element, and the test case element class. Contains metamodel element name fields and values,
The test case metamodel element attribute data includes the item and value of the metamodel element ID, the item and value of the metamodel element attribute ID for identifying the attribute of the test case metamodel element, and the attribute of the test case metamodel element A metamodel element attribute name item and value indicating a name, and a metamodel element attribute type item and value indicating an attribute type of the test case metamodel element,
The UML class diagram representing the mapping rule metamodel includes each class in the class diagram representing the design metamodel, each class in the class diagram representing the test case metamodel, and a class representing the test case metamodel. In order to indicate that each class in the diagram depends on each class in the class diagram representing the design metamodel, a dashed arrow connecting the dependency source class to the dependency destination class, and the proximity of the dashed arrow It is information that represents the stereotype name of the described dependency class,
The mapping rule metamodel element data includes an item and value of a mapping element ID that identifies the dashed arrow, and an item and value of a mapping element name that represents the name of the dashed arrow,
The mapping rule metamodel element attribute data includes a design metamodel element ID item and value for identifying the dependency-destination class, a test case metamodel element ID item and value for identifying the dependency-source class, and the broken line Contains stereotype name items and values written close to the arrow,
The means for prompting input of the test case template includes a class diagram representing a mapping rule metamodel in the storage means, and a test case template name included in a value of a metamodel element attribute name in the test case metamodel element attribute data, A test case generation program comprising: means for displaying
テスト対象の設計書に記述された画面又はデータに対応する設計要素と、前記設計要素の構造を表す設計メタモデルと、前記設計メタモデルの構造を表す設計メタメタモデルと、前記設計要素を用いてテスト内容を記述したテストケースの構造を表すテストケースメタモデルと、前記テストケースメタモデルの構造を表すテストケースメタメタモデルと、前記テストケースメタメタモデル及び前記設計メタメタモデル間の関係を表すマッピングルールメタメタモデルと、前記テストケースメタモデル及び前記設計メタモデル間の関連付けを表すマッピングルールメタモデルと、前記テストケースとを記憶するための記憶手段を備え、前記設計要素との置換部分を含んで前記テストケースのひな型を表すテストケーステンプレートを前記テストケースメタモデルの一部として準備し、前記テストケーステンプレートの置換部分を前記テスト対象の設計要素に置換して前記テストケースを生成するテストケース生成装置であって、
それぞれUMLのクラス図で表された前記設計メタメタモデル、前記テストケースメタメタモデル及び前記マッピングルールメタメタモデルを予め前記記憶手段に書込む手段と、
前記記憶手段内の設計メタメタモデルを表示することにより、前記設計メタモデルを表すUMLのクラス図の入力を促す手段と、
前記入力を受け付けた前記設計メタモデルを表すUMLのクラス図を前記記憶手段に書込む手段と、
前記記憶手段内の前記設計メタモデルを表すUMLのクラス図を表示することにより、前記設計メタモデルを構成する設計メタモデル要素を示す設計メタモデル要素データ、当該設計メタモデル要素の属性を示す設計メタモデル要素属性データ及び関連先の設計メタモデル要素データの入力を促す手段と、
前記入力を受け付けた前記設計メタモデル要素データ、前記設計メタモデル要素属性データ及び前記関連先の設計メタモデル要素データを前記記憶手段に書込む手段と、
前記記憶手段内の前記設計メタモデルを表すUMLのクラス図、前記設計メタモデル要素データ、前記設計メタモデル要素属性データ及び前記関連先の設計メタモデル要素データに対し、前記記憶手段内の設計メタメタモデルに違反している箇所を含むか否かを検証する手段と、
この検証結果が否を示す場合、前記記憶手段内の前記設計メタモデルを表すUMLのクラス図、前記設計メタモデル要素データ、前記設計メタモデル要素属性データ及び前記関連先の設計メタモデル要素データを表示することにより、前記設計要素を特定する要素データ、当該設計要素の項目を示す要素項目データ及び当該設計要素の処理を示す要素処理データの入力を促す手段と、
前記入力を受け付けた前記要素データ、前記要素項目データ及び前記要素処理データを前記記憶手段に書込む手段と、
前記記憶手段内のテストケースメタメタモデルを表すUMLのクラス図及び前記設計メタモデルを表すUMLのクラス図を表示することにより、前記テストケースメタモデルを表すUMLのクラス図の入力を促す手段と、
前記入力を受け付けた前記テストケースメタモデルを表すUMLのクラス図を前記記憶手段に書込む手段と、
前記記憶手段内の前記テストケースメタモデルを表すUMLのクラス図を表示することにより、前記テストケースメタモデルを構成するテストケースメタモデル要素を示すテストケースメタモデル要素データ及び当該テストケースメタモデル要素の属性を示すテストケースメタモデル要素属性データの入力を促す手段と、
前記入力を受け付けた前記テストケースメタモデル要素データ及び前記テストケースメタモデル要素属性データを前記記憶手段に書込む手段と、
前記記憶手段内の前記テストケースメタモデルを表すUMLのクラス図、前記テストケースメタモデル要素データ及び前記テストケースメタモデル要素属性データに対し、前記記憶手段内のテストケースメタメタモデルに違反している箇所を含むか否かを検証する手段と、
この検証結果が否を示す場合、前記記憶手段内のマッピングルールメタメタモデルを表すUMLのクラス図、前記記憶手段内のテストケースメタモデルを表すUMLのクラス図及び前記設計メタモデルを表すUMLのクラス図を表示することにより、前記マッピングルールメタモデルを表すUMLのクラス図の入力を促す手段と、
前記入力を受け付けた前記マッピングルールメタモデルを表すUMLのクラス図を前記記憶手段に書込む手段と、
前記記憶手段内の前記マッピングルールメタモデルを表すUMLのクラス図、前記設計メタモデル要素データ及び前記テストケースメタモデル要素データを表示することにより、前記マッピングルールメタモデルを構成するマッピングルールメタモデル要素を示すマッピングルールメタモデル要素データ及び当該マッピングルールメタモデル要素の属性を示すマッピングルールメタモデル要素属性データの入力を促す手段と、
前記入力を受け付けた前記マッピングルールメタモデル要素データ及び前記マッピングルールメタモデル要素属性データを前記記憶手段に書込む手段と、
前記記憶手段内の前記マッピングルールメタモデルを表すUMLのクラス図、前記マッピングルールメタモデル要素データ及び前記マッピングルールメタモデル要素属性データに対し、前記記憶手段内のマッピングルールメタメタモデルに違反している箇所を含むか否かを検証する手段と、
この検証結果が否を示す場合、前記記憶手段内のマッピングルールメタモデルを表すクラス図と前記テストケースメタモデル要素属性データとを表示することにより、前記設計要素との置換部分として前記要素データ、前記要素項目データ及び前記要素処理データ内のいずれかの項目を含んで前記テストケースのひな型を表すテストケーステンプレートの入力を促す手段と、
前記入力を受け付けたテストケーステンプレートを前記記憶手段に書込む手段と、
前記記憶手段内の前記テストケーステンプレートの置換部分の各項目を、前記要素データ、前記要素項目データ及び前記要素処理データ内の前記いずれかの項目の値に置換して前記テストケースを生成する手段と、
当該生成したテストケースを前記記憶手段に書込む手段と、
を備えたことを特徴とするテストケース生成装置。
Using a design element corresponding to a screen or data described in a design document to be tested, a design metamodel representing the structure of the design element, a design metametamodel representing the structure of the design metamodel, and the design element A test case meta model representing the structure of the test case describing the test contents, a test case meta meta model representing the structure of the test case meta model, and a mapping rule meta meta representing the relationship between the test case meta meta model and the design meta meta model A storage unit for storing a model, a mapping rule metamodel representing an association between the test case metamodel and the design metamodel, and the test case, and includes a replacement part with the design element. A test case template representing the template of the case Prepared as part of Sumetamoderu, the replaced portion of the test case template A test case generator for generating the test case to replace the design elements of the test subject,
Means for preliminarily writing the design meta metamodel, the test case meta metamodel and the mapping rule meta metamodel, each represented by a UML class diagram, to the storage means;
Means for prompting input of a UML class diagram representing the design metamodel by displaying the design metametamodel in the storage means;
Means for writing a UML class diagram representing the design metamodel that has received the input into the storage means;
By displaying a UML class diagram representing the design metamodel in the storage means, design metamodel element data indicating design metamodel elements constituting the design metamodel, and design indicating attributes of the design metamodel elements Means for prompting input of metamodel element attribute data and related design metamodel element data;
Means for writing the design metamodel element data that has received the input, the design metamodel element attribute data, and the design metamodel element data of the related destination into the storage means;
The UML class diagram representing the design metamodel in the storage means, the design metamodel element data, the design metamodel element attribute data, and the related design metamodel element data, the design metameta in the storage means A means of verifying whether the model contains a violation of the model,
If this verification result indicates NO, the UML class diagram representing the design metamodel in the storage means, the design metamodel element data, the design metamodel element attribute data, and the related design metamodel element data Means for prompting input of element data for specifying the design element, element item data indicating an item of the design element, and element processing data indicating processing of the design element by displaying;
Means for writing the element data that has received the input, the element item data, and the element processing data into the storage means;
Means for prompting input of a UML class diagram representing the test case metamodel by displaying a UML class diagram representing the test case metametamodel in the storage means and a UML class diagram representing the design metamodel;
Means for writing, into the storage means, a UML class diagram representing the test case metamodel that has received the input;
By displaying a UML class diagram representing the test case metamodel in the storage means, test case metamodel element data indicating test case metamodel elements constituting the test case metamodel, and the test case metamodel elements A means to prompt input of test case metamodel element attribute data indicating the attributes of
Means for writing the test case metamodel element data and the test case metamodel element attribute data that received the input into the storage means;
The UML class diagram representing the test case metamodel in the storage means, the test case metamodel element data, and the test case metamodel element attribute data violate the test case metametamodel in the storage means. Means for verifying whether or not the location is included,
If this verification result indicates NO, the UML class diagram representing the mapping rule meta-meta model in the storage means, the UML class diagram representing the test case meta model in the storage means, and the UML class representing the design meta model Means for prompting input of a UML class diagram representing the mapping rule metamodel by displaying a diagram;
Means for writing a UML class diagram representing the mapping rule metamodel that has received the input into the storage means;
Mapping rule metamodel elements constituting the mapping rule metamodel by displaying the UML class diagram representing the mapping rule metamodel in the storage means, the design metamodel element data, and the test case metamodel element data Means for prompting input of mapping rule metamodel element data indicating the mapping rule metamodel element attribute data indicating the attribute of the mapping rule metamodel element
Means for writing the mapping rule metamodel element data and the mapping rule metamodel element attribute data that received the input into the storage means;
The UML class diagram representing the mapping rule metamodel in the storage means, the mapping rule metamodel element data, and the mapping rule metamodel element attribute data violate the mapping rule metametamodel in the storage means. Means for verifying whether or not the location is included,
If this verification result indicates NO, the element data as a replacement part with the design element by displaying a class diagram representing the mapping rule metamodel in the storage means and the test case metamodel element attribute data, Means for prompting an input of a test case template that includes any item in the element item data and the element processing data and represents a model of the test case;
Means for writing the test case template that has received the input into the storage means;
Means for generating the test case by replacing each item in the replacement part of the test case template in the storage means with the value of any one of the items in the element data, the element item data, and the element processing data When,
Means for writing the generated test case into the storage means;
A test case generation device comprising:
請求項3に記載のテストケース生成装置において、
前記設計メタメタモデルは、前記設計要素を表す設計要素クラスに汎化される全体要素クラス及び項目要素クラスと、当該汎化される全体要素クラス又は項目要素クラス間の関係を示す組合せ情報クラス及び遷移情報クラスとの4種類の要素が前記設計メタモデルにあることを表し、前記項目要素クラスが多重度0以上で所有されるように前記全体要素クラスに関連付けられ、前記組合せ情報クラスが前記汎化されるいずれかの各要素クラスの関係を示す関連クラスであり、前記遷移情報クラスが前記汎化されるいずれかの各要素クラスに関連付けられることを表す情報であり、
前記テストケースメタメタモデルは、前記設計要素クラスに関連付けられた多重度0以上のテストケース要素クラスという1種類の要素が前記テストケースメタモデルにあることを表し、前記テストケース要素クラスが一連のテスト要素を表すテストスイート要素クラスに所有され、前記テストケース要素クラスが多重度0以上のテスト観点クラスに関連付けられ、前記テストケース要素クラスがテストケーステンプレートクラスに関連付けられ、前記テストケーステンプレートクラスに汎化される組合せテストケーステンプレート、遷移テストケーステンプレート及び一覧テストケーステンプレートを含む情報であり、
前記マッピングルールメタメタモデルは、前記設計メタメタモデル内の設計要素と前記テストケースメタメタモデル内のテストケース要素との関係を示す関連クラスであるマッピングルール要素クラスに汎化される組合せマッピングルール要素クラス、遷移マッピングルール要素クラス及び一覧マッピングルール要素クラスの3種類の要素が前記マッピングルールメタモデルにあることを表す情報であり、
前記設計メタモデルを表すUMLのクラス図は、前記全体要素クラス及び項目要素クラスの両者に対応するステレオタイプ名と前記設計メタモデル要素の名称を示すメタモデル要素名とをもつクラスと、前記項目要素クラスに対応するステレオタイプ名と前記メタモデル要素名とをもつクラスと、前記組合せ情報クラスに対応するステレオタイプ名と前記メタモデル要素名とをもつクラスと、前記遷移情報クラスに対応するステレオタイプ名と前記メタモデル要素名とをもつクラスとを関連付けて表した情報であり、
前記設計メタモデル要素データは、前記設計メタモデル要素を識別するメタモデル要素IDの項目と値及び前記メタモデル要素名の項目と値を含んでおり、
前記設計メタモデル要素属性データは、前記メタモデル要素IDの項目と値、前記設計メタモデル要素の属性を識別するメタモデル要素属性IDの項目と値、前記設計メタモデル要素の属性の名称を示すメタモデル要素属性名の項目と値及び前記設計メタモデル要素の属性の型を示すメタモデル要素属性型の項目と値を含んでおり、
前記関連先の設計メタモデル要素データは、前記設計メタモデル要素の関連先の設計メタモデル要素を識別するメタモデル要素IDの項目と値及び前記関連先の設計メタモデル要素の名称を示すメタモデル要素名の項目と値を含んでおり、
前記要素データは、前記設計要素を識別する要素IDの項目と値及び前記設計要素の名称を示す設計要素名の項目と値を含んでおり、
前記要素項目データは、前記要素IDの項目と値、前記要素の項目を識別する要素項目IDの項目と値、前記要素の項目の名称を示す要素項目名の項目と値を含んでおり、
前記要素処理データは、前記要素IDの項目と値、前記設計要素の処理を識別する要素処理IDの項目と値、前記設計要素の処理の名称を示す要素処理名の項目と値、前記要素項目IDの項目と値、イベントを識別するイベントIDの項目と値、処理先の要素項目IDの項目と値、前記設計要素の処理の結果を示す処理結果の項目と値を含んでおり、
前記テストケースメタモデルを表すUMLのクラス図は、前記設計メタモデルを表すクラス図内の各クラスのステレオタイプ名に代えて前記テストケース要素クラスに対応するステレオタイプ名をもつと共に、当該各クラスのメタモデル要素名に対する前記テストケース要素クラスを表すメタモデル要素名をもつ各クラスを表した情報であり、
前記テストケースメタモデル要素データは、前記テストスイート要素クラスに対応するテストスイートIDの項目と値、前記テストケースメタモデル要素を識別するメタモデル要素IDの項目と値及び前記テストケース要素クラスを表すメタモデル要素名の項目と値を含んでおり、
前記テストケースメタモデル要素属性データは、前記メタモデル要素IDの項目と値、前記テストケースメタモデル要素の属性を識別するメタモデル要素属性IDの項目と値、前記テストケースメタモデル要素の属性の名称を示すメタモデル要素属性名の項目と値及び前記テストケースメタモデル要素の属性の型を示すメタモデル要素属性型の項目と値を含んでおり、
前記マッピングルールメタモデルを表すUMLのクラス図は、前記設計メタモデルを表すクラス図内の各クラスと、前記テストケースメタモデルを表すクラス図内の各クラスと、当該テストケースメタモデルを表すクラス図内の各クラスが前記設計メタモデルを表すクラス図内の各クラスに依存する旨を表すように依存元のクラスから依存先のクラスを結ぶ破線の矢印と、前記破線の矢印に近接して記述された依存先のクラスのステレオタイプ名とを表す情報であり、
前記マッピングルールメタモデル要素データは、前記破線の矢印を識別するマッピング要素IDの項目と値及び前記破線の矢印の名称を表すマッピング要素名の項目と値を含んでおり、
前記マッピングルールメタモデル要素属性データは、前記依存先のクラスを識別する設計メタモデル要素IDの項目と値、前記依存元のクラスを識別するテストケースメタモデル要素IDの項目と値、及び前記破線の矢印に近接して記述されたステレオタイプ名の項目と値を含んでおり、
前記テストケーステンプレートの入力を促す手段は、前記記憶手段内のマッピングルールメタモデルを表すクラス図と前記テストケースメタモデル要素属性データ内のメタモデル要素属性名の値に含まれるテストケーステンプレート名とを表示する手段、を備えたことを特徴とするテストケース生成装置。
In the test case generation device according to claim 3,
The design meta-meta model includes an overall element class and item element class generalized to a design element class representing the design element, and a combination information class and transition indicating a relationship between the general element class or item element class to be generalized 4 types of elements with the information class are present in the design metamodel, the item element class is associated with the overall element class so that it is owned with a multiplicity of 0 or more, and the combination information class is the generalization Is a related class indicating a relationship between any one of the element classes, information indicating that the transition information class is associated with any one of the generalized element classes,
The test case meth metamodel, indicates that the one of the multiplicity of zero or more test case element classes associated with design elements class elements are in the test case metamodel, the test case element class is set Owned by a test suite element class representing a test element, the test case element class is associated with a test viewpoint class having a multiplicity of 0 or more, the test case element class is associated with a test case template class, and the test case template class Information including generalized combination test case template, transition test case template and list test case template,
The mapping rule meta metamodel is a combination mapping rule element class that is generalized to a mapping rule element class that is a related class indicating a relationship between a design element in the design meta meta model and a test case element in the test case meta meta model, Information indicating that there are three types of elements in the mapping rule metamodel: transition mapping rule element class and list mapping rule element class;
The UML class diagram representing the design metamodel includes a class having a stereotype name corresponding to both the overall element class and the item element class and a metamodel element name indicating the name of the design metamodel element, and the item. A class having a stereotype name corresponding to an element class and the metamodel element name, a class having a stereotype name corresponding to the combination information class and the metamodel element name, and a stereo corresponding to the transition information class Information that represents a type name and a class having the metamodel element name in association with each other,
The design metamodel element data includes a metamodel element ID item and value for identifying the design metamodel element, and a metamodel element name item and value.
The design metamodel element attribute data indicates the item and value of the metamodel element ID, the item and value of the metamodel element attribute ID for identifying the attribute of the design metamodel element, and the name of the attribute of the design metamodel element A metamodel element attribute name item and value, and a metamodel element attribute type item and value indicating the attribute type of the design metamodel element,
The associated design metamodel element data includes a metamodel element ID item and value for identifying the associated design metamodel element of the design metamodel element, and a metamodel indicating the name of the associated design metamodel element Contains element name fields and values,
The element data includes an element ID item and value for identifying the design element, and a design element name item and value indicating the name of the design element,
The element item data includes an item and value of the element ID, an item and value of an element item ID for identifying the item of the element, and an item and value of an element item name indicating the name of the item of the element,
The element processing data includes an element ID item and value, an element processing ID item and value identifying the design element processing, an element processing name item and value indicating the design element processing name, and the element item. An ID item and value, an event ID item and value for identifying an event, a processing element element ID item and value, and a processing result item and value indicating the processing result of the design element,
The UML class diagram representing the test case metamodel has a stereotype name corresponding to the test case element class in place of the stereotype name of each class in the class diagram representing the design metamodel, and each class Information representing each class having a metamodel element name representing the test case element class for the metamodel element name of
The test case metamodel element data represents a test suite ID item and value corresponding to the test suite element class, a metamodel element ID item and value for identifying the test case metamodel element, and the test case element class. Contains metamodel element name fields and values,
The test case metamodel element attribute data includes the item and value of the metamodel element ID, the item and value of the metamodel element attribute ID for identifying the attribute of the test case metamodel element, and the attribute of the test case metamodel element A metamodel element attribute name item and value indicating a name, and a metamodel element attribute type item and value indicating an attribute type of the test case metamodel element,
The UML class diagram representing the mapping rule metamodel includes each class in the class diagram representing the design metamodel, each class in the class diagram representing the test case metamodel, and a class representing the test case metamodel. In order to indicate that each class in the diagram depends on each class in the class diagram representing the design metamodel, a dashed arrow connecting the dependency source class to the dependency destination class, and the proximity of the dashed arrow It is information that represents the stereotype name of the described dependency class,
The mapping rule metamodel element data includes an item and value of a mapping element ID that identifies the dashed arrow, and an item and value of a mapping element name that represents the name of the dashed arrow,
The mapping rule metamodel element attribute data includes a design metamodel element ID item and value for identifying the dependency-destination class, a test case metamodel element ID item and value for identifying the dependency-source class, and the broken line Contains stereotype name items and values written close to the arrow,
The means for prompting input of the test case template includes a class diagram representing a mapping rule metamodel in the storage means, and a test case template name included in a value of a metamodel element attribute name in the test case metamodel element attribute data, A test case generation device comprising: means for displaying the test case.
JP2011216730A 2011-09-30 2011-09-30 Test case generation program and test case generation apparatus Active JP5487180B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011216730A JP5487180B2 (en) 2011-09-30 2011-09-30 Test case generation program and test case generation apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011216730A JP5487180B2 (en) 2011-09-30 2011-09-30 Test case generation program and test case generation apparatus

Publications (2)

Publication Number Publication Date
JP2013077173A JP2013077173A (en) 2013-04-25
JP5487180B2 true JP5487180B2 (en) 2014-05-07

Family

ID=48480587

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011216730A Active JP5487180B2 (en) 2011-09-30 2011-09-30 Test case generation program and test case generation apparatus

Country Status (1)

Country Link
JP (1) JP5487180B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298592B (en) * 2014-09-09 2017-09-01 南京国电南自电网自动化有限公司 The instantiation method of the relay protection test use-case template of object-oriented
JP6436705B2 (en) * 2014-09-26 2018-12-12 株式会社野村総合研究所 Test execution device, test execution method, and computer program
US10534881B2 (en) * 2018-04-10 2020-01-14 Advanced Micro Devices, Inc. Method of debugging a processor
JP6847383B1 (en) * 2019-09-23 2021-03-24 株式会社デンソークリエイト Design support tool
CN112346986B (en) * 2020-11-25 2022-10-21 武汉光庭信息技术股份有限公司 Test case layered storage method and system, electronic device and storage medium
CN113342646B (en) * 2021-05-31 2024-02-13 中国工商银行股份有限公司 Use case generation method, device, electronic equipment and medium
CN113267702A (en) * 2021-06-24 2021-08-17 广东电网有限责任公司 Method and device for generating test case of power distribution network fault self-healing system

Also Published As

Publication number Publication date
JP2013077173A (en) 2013-04-25

Similar Documents

Publication Publication Date Title
JP5487180B2 (en) Test case generation program and test case generation apparatus
JP5350428B2 (en) Automatic program generation apparatus, method and computer program
CN103718155A (en) Runtime system
TW200844855A (en) Using collaborative development information in a team environment
KR101770292B1 (en) Computer-executable model reverse engineering method and apparatus performing the same
RU2461058C2 (en) Definable application assistant
US20230086854A1 (en) Dynamically controlling case model structure using case fragments
US20060026506A1 (en) Test display module for testing application logic independent of specific user interface platforms
US11150879B2 (en) Method and system for configuring processes of software applications using activity fragments
US8103701B2 (en) Metadata to technical design review document process
CN106484389B (en) Action stream segment management
CN103186661A (en) Declarative view objects
Haarmann et al. Refining case models using cardinality constraints
Wimmer et al. On using inplace transformations for model co-evolution
CN104572439A (en) Regression alert method and system
Savic et al. Use case specification at different levels of abstraction
Wei et al. Automatic generation of UML profile graphical editors for Papyrus
Elouali et al. A model-based approach for engineering multimodal mobile interactions
Barišić et al. A requirements engineering approach for usability-driven DSL development
Veeramani et al. Abstract syntax tree based unified modeling language to object oriented code conversion
US7917893B2 (en) Using a system of annotations to generate views and adapters
JP2008165388A (en) Program update management system, program update management method and computer program
JP2016126700A (en) Program verification device, program verification method, and program verification program
CN113918664B (en) Data processing method and device
Céspedes et al. Lessons learned by using the Integrated Domain Modeling toolset

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131023

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131029

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131205

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131212

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131219

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131226

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131226

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20140109

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140224

R150 Certificate of patent or registration of utility model

Ref document number: 5487180

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350