JP4966386B2 - Test item generation method, apparatus and program - Google Patents

Test item generation method, apparatus and program Download PDF

Info

Publication number
JP4966386B2
JP4966386B2 JP2010022105A JP2010022105A JP4966386B2 JP 4966386 B2 JP4966386 B2 JP 4966386B2 JP 2010022105 A JP2010022105 A JP 2010022105A JP 2010022105 A JP2010022105 A JP 2010022105A JP 4966386 B2 JP4966386 B2 JP 4966386B2
Authority
JP
Japan
Prior art keywords
screen
storage means
document
intermediate language
test 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
JP2010022105A
Other languages
Japanese (ja)
Other versions
JP2011159202A (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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2010022105A priority Critical patent/JP4966386B2/en
Publication of JP2011159202A publication Critical patent/JP2011159202A/en
Application granted granted Critical
Publication of JP4966386B2 publication Critical patent/JP4966386B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、テスト項目生成方法及び装置及びプログラムに係り、特に、ソフトウェア設計情報を用いて結合テストを行う場合のテスト項目を生成するためのテスト項目生成方法及び装置及びプログラムに関する。   The present invention relates to a test item generation method, apparatus, and program, and more particularly, to a test item generation method, apparatus, and program for generating a test item when performing an integration test using software design information.

従来、ソフトウェア設計情報を用いた結合テストのテスト項目を生成するための第1の技術として、UML(Unified Modeling Language)のアクティビティ図やクラス図を入力とし、テスト項目として、テスト経路、テストデータを出力する方法がある(例えば、非特許文献1参照)。   Conventionally, as a first technique for generating test items for integration tests using software design information, UML (Unified Modeling Language) activity diagrams and class diagrams are used as inputs, and test paths and test data are used as test items. There is a method of outputting (see, for example, Non-Patent Document 1).

また、第2の技術として、クラス図、ステートチャート図(画面遷移図に相当)を入力とし、テスト項目として画面遷移の経路を出力する方法がある(例えば、特許文献1参照)。   Further, as a second technique, there is a method of inputting a class diagram and a state chart diagram (corresponding to a screen transition diagram) and outputting a screen transition route as a test item (for example, see Patent Document 1).

特開2007−94453号公報JP 2007-94453 A

張暁晶、星野隆、"設計モデルを用いたテスト項目抽出とテストデータ生成手法"、電子情報通信学会技術研究報告.KBSE, 知能ソフトウェア工学,Technical report of IEICE KBSE 109(41) pp.37-42, 20090514.Akira Zhang, Takashi Hoshino, "Test Item Extraction and Test Data Generation Method Using Design Model", IEICE Technical Report. KBSE, Intelligent Software Engineering, Technical report of IEICE KBSE 109 (41) pp.37-42, 20090514.

しかしながら、上記従来の第1の技術は、画面遷移図、画面要素定義書、処理イベント定義書、入力制約定義書等を扱えないため、出力されるテスト項目の種類が十分でない、という問題がある。   However, the above first conventional technique cannot handle screen transition diagrams, screen element definition documents, process event definition documents, input constraint definition documents, etc., and therefore has a problem that the types of test items to be output are not sufficient. .

また、上記従来の第2の技術は、処理イベント定義書、入力制約定義書、処理概要フロー等を扱えないため、上記と同様に、出力されるテスト項目の種類が十分でない、という問題がある。   In addition, since the second conventional technique cannot handle a process event definition document, an input constraint definition document, a process overview flow, and the like, there is a problem that the types of test items to be output are not sufficient as described above. .

本発明は、上記の点に鑑みなされたもので、テスト生成のために入力できる設計ドキュメントの種類として、従来の、画面遷移図、処理概要フロー図に加えて、画面要素定義書、処理イベント定義書、入力制約定義書を入力することが可能で、かつ、自動的に生成できるテスト項目として、従来の処理の振る舞い、DB変更の有無に加えて、入力エラーの有無、結果出力の仕方をも出力可能なテスト項目生成方法及び装置及びプログラムを提供することを目的とする。   The present invention has been made in view of the above points, and as a type of design document that can be input for test generation, in addition to the conventional screen transition diagram and process overview flowchart, a screen element definition document and a process event definition Test items that can be entered automatically and automatically generated as test items that can be generated automatically, including the behavior of conventional processing, whether there are DB changes, whether there are input errors, and how to output results It is an object of the present invention to provide a test item generation method, apparatus, and program that can be output.

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

本発明(請求項1)は、ソフトウェア設計情報を用いて結合テストを行う場合のテスト項目を生成するテスト項目生成装置であって、
機能内における各画面間の遷移を示す画面遷移図、画面内の各構成要素について、入出力可否や属性に関する定義を記載した画面要素定義書、入力となる画面要素単体についての制約事項である入力制約定義書、画面上で発生したイベントに起因する状態の遷移が記載された処理イベント定義書、処理の振る舞いを明確にするための処理フローが記載された処理概要フロー定義書を格納したドキュメント記憶手段101と、
ドキュメントから中間形式の言語に変換されたオブジェクトを格納する中間言語記憶手段102と、
生成された設計モデルを格納する設計モデル記憶手段103と、
抽出されたテスト項目を格納するテスト項目記憶手段104と、
ドキュメント記憶手段101から各ドキュメント群を読み込み、単一の中間形式の言語に変換したオブジェクトを中間言語記憶手段102に格納するドキュメント読み込み手段110と、
中間言語記憶手段102から、中間形式の言語に変換したオブジェクトを、単一の設計モデルに統合し、設計モデル記憶手段103に格納する設計モデル生成手段120と、
設計モデル記憶手段103から、設計モデルを取得して、入力エラーの有無、テスト経路、DB変更の有無、結果出力の仕方をテスト項目として抽出し、テスト項目記憶手段104に格納するテスト項目抽出手段130と、
テスト項目記憶手段104からテスト項目を読み出して、所定の帳票形式に成型し、出力する出力手段140と、を有する。
The present invention (Claim 1) is a test item generation device for generating a test item when performing an integration test using software design information,
Screen transition diagram showing transitions between screens in the function, screen element definition document describing definitions related to input / output and attributes for each component in the screen, input that is a restriction on the screen element alone Document memory that stores a constraint definition document, a process event definition document that describes state transitions caused by events that occurred on the screen, and a process overview flow definition document that describes the process flow for clarifying the behavior of the process Means 101;
Intermediate language storage means 102 for storing an object converted from a document into an intermediate language;
Design model storage means 103 for storing the generated design model;
Test item storage means 104 for storing the extracted test items;
A document reading means 110 that reads each document group from the document storage means 101 and stores an object converted into a single intermediate language into the intermediate language storage means 102;
A design model generation unit 120 that integrates objects converted from the intermediate language storage unit 102 into an intermediate format language into a single design model and stores the design model storage unit 103;
A test item extracting unit that acquires a design model from the design model storage unit 103, extracts the presence / absence of an input error, a test path, the presence / absence of a DB change, and a result output method as test items, and stores the test items in the test item storage unit 104 130,
And an output unit 140 that reads out test items from the test item storage unit 104, forms them into a predetermined form format, and outputs them.

また、本発明(請求項2)は、請求項1のドキュメント読み込み手段110において、
指定されたファイルパスに基づいて、ドキュメント記憶手段から画面遷移図を読み込み、対応する中間言語の画面遷移図オブジェクトを生成し、該画面遷移図の各画面に対応する中間言語の画面オブジェクトを生成し、該画面遷移図オブジェクトとリンクさせたリストを中間言語記憶手段に格納し、
画面遷移図の画面IDに基づいて、ドキュメント記憶手段101から画面要素定義書を読み込み、対応する中間言語の画面要素オブジェクトを生成し、画面オブジェクトとリンクさせたリストを中間言語記憶手段102に格納し、
画面要素定義書の画面IDに基づいて、ドキュメント記憶手段101から入力制約定義書を読み込み、対応する中間言語の入力制約オブジェクトを生成し、画面要素オブジェクトとリンクさせたリストを中間言語記憶手段102に格納し、
画面要素定義書の画面IDに基づいて、ドキュメント記憶手段101から処理イベント定義書を読み込み、対応する中間言語の処理イベントオブジェクトを生成し、画面要素オブジェクトとリンクさせたリストを中間言語記憶手段102に格納し、
処理イベント定義書の画面IDに基づいて、ドキュメント記憶手段101から処理概要フロー図を読み込み、対応する中間言語の処理概要フローオブジェクトを生成し、処理イベントオブジェクトとリンクさせたリストを中間言語記憶手段102に格納する手段を含み、
設計モデル生成手段120は、
中間言語記憶手段102から、オブジェクト同士をリンクさせたリストを読み出して、
画面オブジェクトにリンクされている画面要素オブジェクトを、統一フォーマットツールを用いて所定の統一形式に変換し、
画面オブジェクトにリンクされている処理イベントオブジェクトを、統一フォーマットツールを用いて所定の統一形式に変換し、
画面要素オブジェクトにリンクされている入力制約オブジェクトと処理イベントオブジェクトにリンクされている処理概要フローオブジェクトをマージして、全体フローオブジェクトを生成し、該全体フローオブジェクトを、統一フォーマットツールを用いて所定の統一形式に変換し、設計モデル記憶手段103に格納する。
Further, the present invention (Claim 2) is the document reading means 110 of Claim 1,
Based on the specified file path, the screen transition diagram is read from the document storage means, the corresponding intermediate language screen transition diagram object is generated, and the intermediate language screen object corresponding to each screen of the screen transition diagram is generated. , Store the list linked with the screen transition diagram object in the intermediate language storage means,
Based on the screen ID of the screen transition diagram, the screen element definition document is read from the document storage unit 101, a corresponding intermediate language screen element object is generated, and a list linked to the screen object is stored in the intermediate language storage unit 102. ,
Based on the screen ID of the screen element definition document, the input constraint definition document is read from the document storage unit 101, a corresponding intermediate language input constraint object is generated, and the list linked to the screen element object is stored in the intermediate language storage unit 102. Store and
Based on the screen ID of the screen element definition document, the process event definition document is read from the document storage unit 101, a corresponding intermediate language process event object is generated, and a list linked to the screen element object is stored in the intermediate language storage unit 102. Store and
Based on the screen ID of the process event definition document, the process outline flow diagram is read from the document storage unit 101, a process outline flow object corresponding to the intermediate language is generated, and the list linked with the process event object is stored in the intermediate language storage unit 102. Including means for storing in
The design model generation means 120
A list in which the objects are linked is read from the intermediate language storage unit 102,
A screen element object linked to a screen object is converted into a predetermined unified format using a unified formatting tool,
Convert the processing event object linked to the screen object into a predetermined unified format using the unified formatting tool,
The input constraint object linked to the screen element object and the process overview flow object linked to the process event object are merged to generate an overall flow object, and the overall flow object is set to a predetermined format using a unified format tool. The data is converted into a unified format and stored in the design model storage unit 103.

また、本発明(請求項3)は、上記の請求項1または請求項2のドキュメント記憶手段101において、
画面遷移図の代わりに、画面一覧を格納し、
ドキュメント読み込み手段110は、
画面一覧の各画面に対応する中間言語の画面オブジェクトを生成し、該画面遷移図オブジェクトとリンクさせたリストを前記中間言語記憶手段に格納する手段を含む。
Further, the present invention (Claim 3) provides the document storage means 101 of Claim 1 or Claim 2 described above.
Instead of screen transition diagram, store screen list,
The document reading means 110
Means for generating an intermediate language screen object corresponding to each screen of the screen list and storing the list linked with the screen transition diagram object in the intermediate language storage means;

また、本発明(請求項4)は、請求項1乃至3のテスト項目抽出手段130において、
設計モデル記憶手段103から、設計モデルを読み出して、所定の統一形式に変換された全体フローオブジェクトからテストすべき実行経路を抽出し、該実行経路からテスト経路と入力エラーの有無、DBの変更有無、結果出力の仕方をテスト項目として抽出し、これらを一つのテスト項目としてグループ化し、テスト項目表を生成し、処理イベント名を付与してテスト項目記憶手段104に格納する手段を含む。
Further, the present invention (Claim 4) is the test item extraction means 130 according to Claims 1 to 3,
The design model is read from the design model storage means 103, the execution path to be tested is extracted from the entire flow object converted into a predetermined unified format, the test path and input errors are detected from the execution path, and the DB is changed The method includes extracting a result output method as a test item, grouping them as a single test item, generating a test item table, assigning a processing event name, and storing it in the test item storage unit 104.

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

本発明(請求項5)は、ソフトウェア設計情報を用いて結合テストを行う場合のテスト項目を生成するテスト項目生成方法であって、
機能内における各画面間の遷移を示す画面遷移図、画面内の各構成要素について、入出力可否や属性に関する定義を記載した画面要素定義書、入力となる画面要素単体についての制約事項である入力制約定義書、画面上で発生したイベントに起因する状態の遷移が記載された処理イベント定義書、処理の振る舞いを明確にするための処理フローが記載された処理概要フロー定義書を格納したドキュメント記憶手段と、
ドキュメントから中間形式の言語に変換されたオブジェクトを格納する中間言語記憶手段と、
生成された設計モデルを格納する設計モデル記憶手段と、
抽出されたテスト項目を格納するテスト項目記憶手段と、
を有する装置において、
ドキュメント記憶手段から各ドキュメント群を読み込み、単一の中間形式の言語に変換したオブジェクトを中間言語記憶手段に格納するドキュメント読み込みステップ(ステップ1)と、
中間言語記憶手段から、中間形式の言語に変換したオブジェクトを、単一の設計モデルに統合し、設計モデル記憶手段に格納する設計モデル生成ステップ(ステップ2)と、
設計モデル記憶手段から、設計モデルを取得して、入力エラーの有無、テスト経路、DB変更の有無、結果出力の仕方をテスト項目として抽出し、テスト項目記憶ステップ(ステップ3)と、
テスト項目記憶手段からテスト項目を読み出して、所定の帳票形式に成型し、出力する出力ステップ(ステップ4)と、を行う。
The present invention (Claim 5) is a test item generation method for generating a test item when performing an integration test using software design information,
Screen transition diagram showing transitions between screens in the function, screen element definition document describing definitions related to input / output and attributes for each component in the screen, input that is a restriction on the screen element alone Document memory that stores a constraint definition document, a process event definition document that describes state transitions caused by events that occurred on the screen, and a process overview flow definition document that describes the process flow for clarifying the behavior of the process Means,
Intermediate language storage means for storing objects converted from a document into an intermediate language;
Design model storage means for storing the generated design model;
Test item storage means for storing the extracted test items;
In a device having
A document reading step (step 1) for reading each document group from the document storage means and storing the object converted into a single intermediate language into the intermediate language storage means;
A design model generation step (step 2) in which objects converted from the intermediate language storage means into an intermediate language are integrated into a single design model and stored in the design model storage means (step 2);
A design model is acquired from the design model storage means, the presence / absence of an input error, a test path, the presence / absence of a DB change, and a result output method are extracted as test items, and a test item storage step (step 3);
An output step (step 4) of reading the test item from the test item storage means, forming it into a predetermined form format, and outputting it is performed.

また、本発明(請求項6)は、請求項5のドキュメント読み込みステップにおいて、
指定されたファイルパスに基づいて、ドキュメント記憶手段から画面遷移図を読み込み、対応する中間言語の画面遷移図オブジェクトを生成し、該画面遷移図の各画面に対応する中間言語の画面オブジェクトを生成し、該画面遷移図オブジェクトとリンクさせたリストを中間言語記憶手段に格納し、
画面遷移図の画面IDに基づいて、ドキュメント記憶手段から画面要素定義書を読み込み、対応する中間言語の画面要素オブジェクトを生成し、画面オブジェクトとリンクさせたリストを中間言語記憶手段に格納し、
画面要素定義書の画面IDに基づいて、ドキュメント記憶手段から入力制約定義書を読み込み、対応する中間言語の入力制約オブジェクトを生成し、画面要素オブジェクトとリンクさせたリストを中間言語記憶手段に格納し、
画面要素定義書の画面IDに基づいて、ドキュメント記憶手段から処理イベント定義書を読み込み、対応する中間言語の処理イベントオブジェクトを生成し、画面要素オブジェクトとリンクさせたリストを中間言語記憶手段に格納し、
処理イベント定義書の画面IDに基づいて、ドキュメント記憶手段から処理概要フロー図を読み込み、対応する中間言語の処理概要フローオブジェクトを生成し、処理イベントオブジェクトとリンクさせたリストを中間言語記憶手段に格納するステップを行い、
設計モデル生成ステップにおいて、
中間言語記憶手段から、オブジェクト同士をリンクさせたリストを読み出して、
画面オブジェクトにリンクされている画面要素オブジェクトを、統一フォーマットツールを用いて所定の統一形式に変換し、
画面オブジェクトにリンクされている処理イベントオブジェクトを、統一フォーマットツールを用いて所定の統一形式に変換し、
画面要素オブジェクトにリンクされている入力制約オブジェクトと処理イベントオブジェクトにリンクされている処理概要フローオブジェクトをマージして、全体フローオブジェクトを生成し、該全体フローオブジェクトを、統一フォーマットツールを用いて所定の統一形式に変換し、設計モデル記憶手段に格納するステップを行う。
According to the present invention (Claim 6), in the document reading step of Claim 5,
Based on the specified file path, the screen transition diagram is read from the document storage means, the corresponding intermediate language screen transition diagram object is generated, and the intermediate language screen object corresponding to each screen of the screen transition diagram is generated. , Store the list linked with the screen transition diagram object in the intermediate language storage means,
Based on the screen ID of the screen transition diagram, the screen element definition is read from the document storage means, a corresponding intermediate language screen element object is generated, a list linked with the screen object is stored in the intermediate language storage means,
Based on the screen ID of the screen element definition document, the input constraint definition document is read from the document storage means, the corresponding intermediate language input constraint object is generated, and the list linked with the screen element object is stored in the intermediate language storage means. ,
Based on the screen ID of the screen element definition document, the processing event definition document is read from the document storage means, a corresponding intermediate language processing event object is generated, and a list linked with the screen element object is stored in the intermediate language storage means. ,
Based on the screen ID of the process event definition document, the process overview flow diagram is read from the document storage means, a corresponding process overview flow object of intermediate language is generated, and a list linked to the process event object is stored in the intermediate language storage means Perform the steps to
In the design model generation step,
Read a list of linked objects from the intermediate language storage means,
A screen element object linked to a screen object is converted into a predetermined unified format using a unified formatting tool,
Convert the processing event object linked to the screen object into a predetermined unified format using the unified formatting tool,
The input constraint object linked to the screen element object and the process overview flow object linked to the process event object are merged to generate an overall flow object, and the overall flow object is set to a predetermined format using a unified format tool. A step of converting to a unified format and storing in the design model storage means is performed.

また、本発明(請求項7)は、請求項6のドキュメント記憶手段において、
画面遷移図の代わりに、画面一覧を格納しているとき、
ドキュメント読み込みステップは、
画面一覧の各画面に対応する中間言語の画面オブジェクトを生成し、該画面遷移図オブジェクトとリンクさせたリストを中間言語記憶手段に格納するステップを行う。
According to the present invention (Claim 7), in the document storage means of Claim 6,
When a screen list is stored instead of a screen transition diagram,
The document loading step
An intermediate language screen object corresponding to each screen of the screen list is generated, and a list linked with the screen transition diagram object is stored in the intermediate language storage means.

また、本発明(請求項8)は、請求項5乃至7のテスト項目抽出ステップにおいて、
設計モデル記憶手段から、設計モデルを読み出して、所定の統一形式に変換された全体フローオブジェクトからテストすべき実行経路を抽出し、該実行経路からテスト経路と入力エラーの有無、DBの変更有無、結果出力の仕方をテスト項目として抽出し、これらを一つのテスト項目としてグループ化し、テスト項目表を生成し、処理イベント名を付与してテスト項目記憶手段に格納する。
Further, the present invention (Claim 8) is the test item extraction step of Claims 5 to 7,
The design model is read from the design model storage means, the execution path to be tested is extracted from the entire flow object converted into a predetermined unified format, the test path and the presence or absence of an input error, the presence or absence of a DB change, The result output method is extracted as test items, these are grouped as one test item, a test item table is generated, a processing event name is given, and the result is stored in the test item storage means.

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

上記のように本発明によれば、画面遷移図、画面要素定義書、処理イベント定義書、処理概要フロー図を中間形式の言語に変換することができ、加えて、画面遷移図の代わりに画面一覧を用いることも可能である。さらに、入力制約定義書も入力可能であるため、5種類の設計ドキュメントを入力として扱うことができる。   As described above, according to the present invention, a screen transition diagram, a screen element definition document, a process event definition document, and a process overview flow diagram can be converted into an intermediate language, and in addition, a screen instead of a screen transition diagram. It is also possible to use a list. Furthermore, since an input constraint definition document can be input, five types of design documents can be handled as input.

また、各設計ドキュメントに対応する個別の中間形式の言語を1つの設計モデル(XMI形式のUMLモデル)に統合することで、テスト項目に必要な情報を集約することができる。   Also, by integrating individual intermediate format languages corresponding to each design document into one design model (XMI format UML model), it is possible to collect information necessary for test items.

また、設計モデルからテスト項目として、テスト経路、DBの変更の有無、結果出力の仕方等を抽出すると共に、入力エラーの有無も抽出することが可能であるため、4種類のテスト項目を出力することができる。   In addition, it is possible to extract test path, presence / absence of DB change, result output method, etc. as test items from the design model, and also extract presence / absence of input errors, so four types of test items are output. be able to.

本発明の原理構成図である。It is a principle block diagram of this invention. 本発明の原理を説明するための図である。It is a figure for demonstrating the principle of this invention. 本発明の一実施の形態における入力設計ドキュメント(画面遷移図)の例である。It is an example of the input design document (screen transition diagram) in one embodiment of the present invention. 本発明の一実施の形態における入力設計ドキュメント(画面要素定義書)の例である。It is an example of the input design document (screen element definition document) in one embodiment of this invention. 本発明の一実施の形態における入力設計ドキュメント(入力制約定義書)の例である。It is an example of the input design document (input constraint definition document) in one embodiment of the present invention. 本発明の一実施の形態における入力設計ドキュメント(処理イベント定義書)の例である。It is an example of the input design document (processing event definition document) in one embodiment of this invention. 本発明の一実施の形態における入力設計ドキュメント(処理概要フロー図)の例である。It is an example of the input design document (process outline | summary flowchart) in one embodiment of this invention. 本発明の一実施の形態におけるテスト項目生成装置の構成図である。It is a block diagram of the test item generation apparatus in one embodiment of this invention. 本発明の一実施の形態における概要動作のフローチャートである。It is a flowchart of the outline | summary operation | movement in one embodiment of this invention. 本発明の一実施の形態における出力ドキュメント(テスト項目表)の例である。It is an example of the output document (test item table | surface) in one embodiment of this invention. 本発明の一実施の形態におけるドキュメント読み込み部における動作のフローチャート(その1)である。It is a flowchart (the 1) of operation | movement in the document reading part in one embodiment of this invention. 本発明の一実施の形態におけるドキュメント読み込み部における動作のフローチャート(その2)である。It is a flowchart (the 2) of the operation | movement in the document reading part in one embodiment of this invention. 本発明の一実施の形態におけるドキュメント読み込み部における動作のフローチャート(その3)である。It is a flowchart (the 3) of operation | movement in the document reading part in one embodiment of this invention. 本発明の一実施の形態におけるドキュメント読み込み部における動作のフローチャート(その4)である。It is a flowchart (the 4) of operation | movement in the document reading part in one embodiment of this invention. 本発明の一実施の形態における中間言語生成処理を示す図である。It is a figure which shows the intermediate language production | generation process in one embodiment of this invention. 本発明の一実施の形態における設計モデル生成部の動作のフローチャートである。It is a flowchart of operation | movement of the design model production | generation part in one embodiment of this invention. 本発明の一実施の形態におけるテスト項目抽出部の動作のフローチャートである。It is a flowchart of operation | movement of the test item extraction part in one embodiment of this invention. 本発明の一実施の形態におけるテスト項目抽出部の動作のフローチャートである。It is a flowchart of operation | movement of the test item extraction part in one embodiment of this invention. 本発明の一実施の形態におけるS340の詳細フローチャートである。It is a detailed flowchart of S340 in one embodiment of the present invention.

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

最初に、本明細書中で用いる用語について説明する。   First, terms used in this specification will be described.

「画面遷移図」とは、機能内における各画面間の遷移を示すドキュメントを指す。画面遷移図の例を図3に示す。   “Screen transition diagram” refers to a document showing transitions between screens within a function. An example of a screen transition diagram is shown in FIG.

「画面要素一覧」とは、画面内の各構成要素について,入出力可否や属性(テキスト、プルダウンリスト等)に関して定義を記述したものである。この例を図4に示す。   The “screen element list” is a description in which definitions for input / output availability and attributes (text, pull-down list, etc.) are described for each component in the screen. An example of this is shown in FIG.

「入力制約定義書」とは、入力となる画面要素単体についての制約事項を記述したものである。この例を図5に示す。   The “input constraint definition document” describes restrictions on a single screen element to be input. An example of this is shown in FIG.

「処理イベント定義書」とは、画面上で発生したイベント(主にユーザ操作)に起因する状態の遷移を記述したものである。この例を図6に示す。   The “processing event definition document” describes state transitions caused by events (mainly user operations) that occur on the screen. An example of this is shown in FIG.

「処理概要フロー定義書」とは、処理の振る舞いを明確にするための処理フロー(メインフロー)である。この例を図7に示す。   The “process overview flow definition document” is a process flow (main flow) for clarifying the behavior of the process. An example of this is shown in FIG.

図8は、本発明の一実施の形態におけるテスト項目生成装置の構成を示す。   FIG. 8 shows the configuration of the test item generation device according to the embodiment of the present invention.

同図に示すテスト項目生成装置100は、ドキュメント読み込み部110、設計モデル生成部120、テスト項目抽出部130、テスト項目出力部140、画面遷移図記憶部101、中間言語記憶部102、設計モデル記憶部103、テスト項目記憶部104から構成される。このうち、ドキュメント記憶部101、中間言語記憶部102、設計モデル記憶部103、テスト項目記憶部104は、ハードディスク装置やメモリ等の記憶媒体である。また、ドキュメント記憶部101には、図3〜図6に示した画面遷移図、画面要素定義書、処理イベント定義書、入力制約定義書、処理概要フロー図が格納されているものとする。なお、画面要素定義書、入力制約定義書、処理イベント定義書には、それぞれが属する画面IDが設定されている。   The test item generation apparatus 100 shown in the figure includes a document reading unit 110, a design model generation unit 120, a test item extraction unit 130, a test item output unit 140, a screen transition diagram storage unit 101, an intermediate language storage unit 102, and a design model storage. Unit 103 and test item storage unit 104. Among these, the document storage unit 101, the intermediate language storage unit 102, the design model storage unit 103, and the test item storage unit 104 are storage media such as a hard disk device and a memory. Further, it is assumed that the document storage unit 101 stores the screen transition diagram, the screen element definition document, the process event definition document, the input constraint definition document, and the process outline flowchart shown in FIGS. The screen ID to which each of the screen element definition document, input constraint definition document, and process event definition document belongs is set.

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

図9は、本発明の一実施の形態における概要動作のフローチャートである。   FIG. 9 is a flowchart of an outline operation in one embodiment of the present invention.

ステップ110) ドキュメント読み込み部110は、当該テスト項目生成装置100に接続されているユーザ端末200からファイルパスを取得すると、当該ファイルパスに基づいて、ドキュメント記憶部101から設計ドキュメント群を読み込み、単一の中間言語(JavaObject)に変換し、中間言語記憶部102に格納する。   Step 110) When the document reading unit 110 obtains a file path from the user terminal 200 connected to the test item generation device 100, the document reading unit 110 reads a design document group from the document storage unit 101 based on the file path. To the intermediate language (JavaObject) and stored in the intermediate language storage unit 102.

ステップ120) 設計モデル生成部120は、中間言語記憶部102からJavaObjectに変換されているドキュメントを読み込み、単一の設計モデル(XMI形式UML)に変換し、変換モデルとして設計モデル記憶部103に格納する。   Step 120) The design model generation unit 120 reads a document converted into JavaObject from the intermediate language storage unit 102, converts it into a single design model (XMI format UML), and stores it in the design model storage unit 103 as a conversion model. To do.

ステップ130) テスト項目抽出部130は、設計モデル記憶部103から設計モデルを読み込んで、テスト項目として、入力エラーの有無、処理の振る舞い(テスト経路)、DB変更の有無、結果出力の仕方等を抽出し、これらをテスト項目としてテスト項目記憶部104に格納する。   Step 130) The test item extraction unit 130 reads the design model from the design model storage unit 103, and as test items, the presence / absence of an input error, the behavior of the process (test path), the presence / absence of DB change, the method of outputting the result, etc. These are extracted and stored in the test item storage unit 104 as test items.

ステップ140) テスト項目出力部140は、テスト項目記憶部104からテスト項目を読み込み、帳票形式に整形して出力する。図10に出力例を示す。   Step 140) The test item output unit 140 reads the test item from the test item storage unit 104, formats it into a form, and outputs it. FIG. 10 shows an output example.

以下に、上記の各ステップの詳細を示す。   Details of the above steps will be described below.

最初に、ステップ110のドキュメント読み込み部110の詳細な動作を示す。   First, the detailed operation of the document reading unit 110 in step 110 will be described.

図11は、本発明の一実施の形態におけるドキュメント読み込み部の動作のフローチャート(その1)である。   FIG. 11 is a flowchart (No. 1) of the operation of the document reading unit in the embodiment of the invention.

ステップ210) 端末200入力された画面遷移図を読み込むためのファイルパスを取得し、指定されたファイルパスに対応する画面遷移図をドキュメント記憶部101から読み込み、対応する中間言語(画面遷移図オブジェクト)を生成して、画面遷移図の各画面に対応する中間言語(画面オブジェクト)を生成して、画面遷移図オブジェクトとリンクさせ、画面オブジェクトのリストを中間言語記憶部102に格納する。   Step 210) Obtain a file path for reading the screen transition diagram input to the terminal 200, read the screen transition diagram corresponding to the specified file path from the document storage unit 101, and corresponding intermediate language (screen transition diagram object). Is generated, an intermediate language (screen object) corresponding to each screen of the screen transition diagram is generated, linked with the screen transition diagram object, and a list of screen objects is stored in the intermediate language storage unit 102.

ステップ220) ステップ210で生成された画面遷移図に含まれる画面IDに基づいてドキュメント記憶部101から画面要素定義書を読み込み、対応する中間言語(画面要素オブジェクト)を生成し、ステップ210で得られた画面オブジェクトとリンクさせ、リンク情報を含む画面オブジェクトリストを生成し、画面要素オブジェクトを中間言語記憶部102に格納する。   Step 220) Based on the screen ID included in the screen transition diagram generated in Step 210, the screen element definition document is read from the document storage unit 101, and the corresponding intermediate language (screen element object) is generated. The screen object list including the link information is generated, and the screen element object is stored in the intermediate language storage unit 102.

ステップ230) ステップ220で読み込んだ画面要素定義書の画面IDに基づいて、ドキュメント記憶部101から入力制約定義書を読み込み、対応する中間言語(入力制約オブジェクト)を生成し、ステップ220で得られた画面要素オブジェクトとリンクさせ、リンク情報を含む入力制約オブジェクトを中間言語記憶部102に格納する。   Step 230) Based on the screen ID of the screen element definition document read in Step 220, the input constraint definition document is read from the document storage unit 101, and the corresponding intermediate language (input constraint object) is generated. An input constraint object including link information is stored in the intermediate language storage unit 102 by linking with the screen element object.

ステップ240) 画面要素定義書に記載されているIDに基づいて、ドキュメント記憶部101から処理イベント定義書を読み込み、対応する中間言語(処理イベントオブジェクト)を生成し、ステップ220で得られた画面要素オブジェクトとリンクさせ、リンク情報を含む処理イベントオブジェクトを中間言語記憶部102に格納する。   Step 240) Based on the ID described in the screen element definition document, the process event definition document is read from the document storage unit 101, the corresponding intermediate language (process event object) is generated, and the screen element obtained in step 220 The process event object including the link information is stored in the intermediate language storage unit 102 by linking with the object.

ステップ250) ステップ240で読み込んだ処理イベント定義書に含まれる処理イベントの画面IDに基づいて、ドキュメント記憶部101から処理概要フロー図を読み込み、当該処理概要フロー図(ノードとエッジ)を読み込み、対応する中間言語(処理概要フローオブジェクト)を生成し、処理イベントオブジェクトとリンクさせ、リンク情報を含む画面要素オブジェクトを中間言語記憶部102に格納する。   Step 250) Based on the screen ID of the processing event included in the processing event definition document read in Step 240, the processing outline flow diagram is read from the document storage unit 101, and the processing outline flow diagram (node and edge) is read. Intermediate language (processing outline flow object) to be generated is linked to the processing event object, and the screen element object including the link information is stored in the intermediate language storage unit 102.

なお、上記の処理において、図11のステップ210の処理の代わりに、図12のステップ610に示すように、画面一覧を中間言語に変換するようにしてもよい。   In the above process, instead of the process of step 210 in FIG. 11, the screen list may be converted into an intermediate language as shown in step 610 of FIG.

これにより、上記の図11で画面遷移図、画面要素定義書、処理イベント定義書、処理概要フロー図を入力できることに加え、画面一覧も設計ドキュメントとして入力することができる。   Thereby, in addition to being able to input the screen transition diagram, the screen element definition document, the process event definition document, and the process overview flowchart in FIG. 11, the screen list can also be input as a design document.

また、図11のステップ220の画面要素定義書を中間言語に変換する処理を、図13に示すように省いてもよい。   Further, the process of converting the screen element definition document in step 220 in FIG. 11 into an intermediate language may be omitted as shown in FIG.

また、図11のステップ230の入力制約定義書を中間言語に変換する処理を、図14に示すように省いてもよい。   Further, the process of converting the input constraint definition document in step 230 of FIG. 11 into an intermediate language may be omitted as shown in FIG.

図15に、上記のステップ210〜250で生成される中間言語(オブジェクト)とリンクの関係を示す。   FIG. 15 shows the relationship between the intermediate language (object) generated in steps 210 to 250 and the link.

次に、図9のステップ120の詳細な処理について説明する。   Next, detailed processing of step 120 in FIG. 9 will be described.

図16は、本発明の一実施の形態における設計モデル生成部の動作のフローチャートである。   FIG. 16 is a flowchart of the operation of the design model generation unit in one embodiment of the present invention.

ステップ310) 設計モデル生成部120は、中間言語記憶部102から画面遷移図オブジェクトを読み込み、メモリ(図示せず)に格納する。   Step 310) The design model generation unit 120 reads the screen transition diagram object from the intermediate language storage unit 102 and stores it in the memory (not shown).

ステップ320) ステップ310で読み込まれた各画面遷移図オブジェクトの各画面オブジェクトにリンクされている画面要素オブジェクトをXMI形式に変換して設計モデル記憶部103に追加書き込みを行う。尚、XMI形式への変換方法については、例えば、「Stream http://xstream. Codehaus.org/tutorial.html」を用いるものとする。   Step 320) The screen element object linked to each screen object of each screen transition diagram object read in Step 310 is converted into the XMI format and additionally written to the design model storage unit 103. For example, “Stream http: // xstream. Codehaus.org/tutorial.html” is used as the conversion method to the XMI format.

ステップ330) 画面オブジェクトにリンクされている処理イベントオブジェクトをXMI形式に変換して設計モデル記憶部103に追加書き込みを行う。XMI形式への変換については、上記と同様の方法を用いるものとする。   Step 330) The process event object linked to the screen object is converted into the XMI format and additionally written to the design model storage unit 103. The same method as described above is used for conversion to the XMI format.

ステップ340) 中間言語記憶部102から画面要素オブジェクトと処理イベントオブジェクトを読み込み、画面要素オブジェクトにリンクされている入力制約オブジェクト処理概要フローオブジェクトをマージして全体フローオブジェクトを生成する。当該処理の詳細については、図19にて後述する。   Step 340) The screen element object and the processing event object are read from the intermediate language storage unit 102, and the input restriction object processing outline flow object linked to the screen element object is merged to generate the entire flow object. Details of this processing will be described later with reference to FIG.

ステップ350) 全体フローオブジェクトを上記の方式を用いて、XMI形式に変換して設計モデル記憶部103に追加書き込みを行う。   Step 350) The entire flow object is converted into the XMI format using the above method, and additional writing is performed in the design model storage unit 103.

上記のステップ340とステップ350の処理を全ての処理イベントオブジェクトに対して繰り返し、さらに、ステップ310で読み込まれ、メモリ(図示せず)に格納されている全画面オブジェクトに対して、ステップ320以降の処理を繰り返す。   The above steps 340 and 350 are repeated for all process event objects. Further, for all screen objects read in step 310 and stored in a memory (not shown), the steps after step 320 are performed. Repeat the process.

次に、図9のステップ130のテスト項目抽出部130の処理について説明する。   Next, the processing of the test item extraction unit 130 in step 130 of FIG. 9 will be described.

図17は、本発明の一実施の形態におけるテスト項目抽出部の動作のフローチャートである。   FIG. 17 is a flowchart of the operation of the test item extraction unit in one embodiment of the present invention.

ステップ410) 設計モデル記憶部103からステップ120で生成された設計モデル(XMIファイル)を読み込み、全体フロー図としてメモリ(図示せず)に格納する。   Step 410) The design model (XMI file) generated in Step 120 is read from the design model storage unit 103 and stored in a memory (not shown) as an overall flowchart.

ステップ420) 各全体フロー図の属する処理イベントの処理イベント名を抽出する。   Step 420) The process event name of the process event to which each overall flow chart belongs is extracted.

ステップ430) 全体フロー図からテストすべき実行経路を抽出する。   Step 430) Extract the execution path to be tested from the overall flow diagram.

ステップ440) ステップ430で抽出されたテストすべき実行経路から処理の振る舞い(テスト経路)を抽出し、メモリ(図示せず)に格納する。   Step 440) The processing behavior (test path) is extracted from the execution path to be tested extracted in step 430, and stored in a memory (not shown).

ステップ450) 上記の実行経路から入力エラーの有無を抽出し、メモリ(図示せず)に格納する。入力エラーを検出する際には、経路の「終了ノード」に入力エラーを示すフラグを検出する。   Step 450) The presence / absence of an input error is extracted from the execution path and stored in a memory (not shown). When an input error is detected, a flag indicating the input error is detected at the “end node” of the route.

ステップ460) 上記の実行経路からDB変更の有無を抽出し、メモリ(図示せず)に格納する。   Step 460) The presence / absence of DB change is extracted from the execution path and stored in a memory (not shown).

ステップ470) 上記の実行経路から結果出力の仕方を抽出し、メモリ(図示せず)に格納する。   Step 470) The method of outputting the results is extracted from the execution path and stored in a memory (not shown).

ステップ480) ステップ440,450,460,470で得られ、メモリ(図示せず)に格納されている画面名、処理の振る舞い(テスト経路)、入力エラーの有無、DB変更の有無、結果出力の仕方を一つのテスト項目としてグループ化してメモリ(図示せず)に格納する。   Step 480) Screen names obtained in Steps 440, 450, 460 and 470, stored in a memory (not shown), processing behavior (test path), presence of input error, presence / absence of DB change, result output The methods are grouped as one test item and stored in a memory (not shown).

ステップ490) メモリ(図示せず)に格納されているグループ化されたテスト項目群を要素として持つ表(テスト項目表)を作成し、表の名前として全体フロー図に対応する処理イベント名を付与し、テスト項目記憶部104に格納する。   Step 490) A table (test item table) having grouped test item groups stored in a memory (not shown) as an element is created, and a processing event name corresponding to the entire flow diagram is assigned as a table name And stored in the test item storage unit 104.

上記の処理を、ステップ410で読み込まれた全ての設計モデル内の全体フロー図に対して行う。   The above processing is performed on the entire flow diagrams in all the design models read in step 410.

なお、図18に示すように、上記のステップ450の入力エラーの有無を抽出する処理を省くことも可能である。   As shown in FIG. 18, the process of extracting the presence / absence of an input error in the above step 450 can be omitted.

次に、上記の図16における設計モデル生成部120のステップ340の処理概要フローオブジェクトと入力制約オブジェクトをマージする詳細な動作を説明する。   Next, a detailed operation of merging the process outline flow object and the input constraint object in step 340 of the design model generation unit 120 in FIG. 16 will be described.

図19は、本発明の一実施の形態におけるS340の詳細フローチャートである。   FIG. 19 is a detailed flowchart of S340 according to the embodiment of the present invention.

ステップ510) 処理概要フローオブジェクトを中間言語記憶部102から読み込む。   Step 510) The process overview flow object is read from the intermediate language storage unit 102.

ステップ520) 入力制約オブジェクトを中間言語記憶部102から読み込む。   Step 520) The input constraint object is read from the intermediate language storage unit 102.

ステップ530) 入力制御オブジェクトが保持している入力制約項目オブジェクトリストにあるそれぞれの入力制約項目オブジェクトに対して、入力制約項目オブジェクトの定義域を満たす場合に対応するエッジ(trueエッジ)を生成する。   Step 530) For each input constraint item object in the input constraint item object list held by the input control object, an edge (true edge) corresponding to the case where the domain of the input constraint item object is satisfied is generated.

ステップ540) 入力制約項目オブジェクトの定義域を満たさない場合に対応するエッジ(falseエッジ)を生成する。   Step 540) An edge (false edge) corresponding to the case where the domain of the input constraint item object is not satisfied is generated.

ステップ550) 入力制約項目オブジェクトに対応する分岐ノード、終了ノードを生成し、当該入力制約項目オブジェクトが入力制約項目オブジェクトリストの先頭にある入力制約項目オブジェクトである場合はステップ570に移行し、先頭にない入力制約項目オブジェクトである場合はステップ560に移行する。なお、終了ノードを生成する際に、入力エラーの有無を示すフラグを設定するものとする。   Step 550) A branch node and an end node corresponding to the input constraint item object are generated, and if the input constraint item object is the input constraint item object at the head of the input constraint item object list, the process proceeds to step 570, and the head If there is no input restriction item object, the process proceeds to step 560. It is assumed that a flag indicating the presence or absence of an input error is set when generating the end node.

ステップ560) 入力制約項目オブジェクトリストで一つ前の分岐ノードのtrueエッジの終点を分岐ノードにつなぐ。   Step 560) The end point of the true edge of the previous branch node in the input constraint item object list is connected to the branch node.

ステップ570) trueエッジの始点を分岐ノードにつなぐ。   Step 570) Connect the start point of the true edge to the branch node.

ステップ580) falseエッジの始点を分岐ノードにつなぎ、終点を終点ノードにつなぐ。   Step 580) Connect the start point of the false edge to the branch node and the end point to the end node.

上記のステップ530からステップ580の処理を入力制約オブジェクトが保持している入力制約項目オブジェクトリストにあるそれぞれの入力制約項目オブジェクトに対して繰り返し行う。   The processes from step 530 to step 580 are repeated for each input constraint item object in the input constraint item object list held by the input constraint object.

ステップ590) 入力項目木を処理概要フローオブジェクトの開始ノードの直後に挿入する。   Step 590) Insert the input item tree immediately after the start node of the process overview flow object.

これにより、各設計ドキュメントに対する個別の中間形式の言語を1つの設計モデル(XML形式のUMLモデル)に統合することができる。   As a result, it is possible to integrate individual intermediate format languages for each design document into one design model (XML format UML model).

また、上記のテスト項目生成装置のドキュメント読み込み部110、設計モデル生成部120、テスト項目抽出部130、テスト項目出力部140の動作をプログラムとして構築し、テスト項目生成装置として利用されるコンピュータにインストールしてじっこうさせる、または、ネットワークを介して流通させることが可能である。   Further, the operations of the document reading unit 110, the design model generation unit 120, the test item extraction unit 130, and the test item output unit 140 of the test item generation device are constructed as programs and installed in a computer used as the test item generation device. Thus, it can be distributed or distributed through a network.

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

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

100 テスト項目生成装置
101 ドキュメント記憶手段、ドキュメント読み込み部
102 中間言語記憶手段、中間言語記憶部
103 設計モデル記憶手段、設計モデル記憶部
104 テスト項目記憶手段、テスト項目記憶部
110 ドキュメント読み込み手段、ドキュメント読み込み部
120 設計モデル生成手段、設計モデル生成部
130 テスト項目抽出手段、テスト項目抽出部
140 出力手段、テスト項目出力部
200 ユーザ端末
100 Test Item Generation Device 101 Document Storage Unit, Document Reading Unit 102 Intermediate Language Storage Unit, Intermediate Language Storage Unit 103 Design Model Storage Unit, Design Model Storage Unit 104 Test Item Storage Unit, Test Item Storage Unit 110 Document Reading Unit, Document Reading Unit 120 design model generation unit, design model generation unit 130 test item extraction unit, test item extraction unit 140 output unit, test item output unit 200 user terminal

Claims (9)

ソフトウェア設計情報を用いて結合テストを行う場合のテスト項目を生成するテスト項目生成装置であって、
機能内における各画面間の遷移を示す画面遷移図、画面内の各構成要素について、入出力可否や属性に関する定義を記載した画面要素定義書、入力となる画面要素単体についての制約事項である入力制約定義書、画面上で発生したイベントに起因する状態の遷移が記載された処理イベント定義書、処理の振る舞いを明確にするための処理フローが記載された処理概要フロー定義書を格納したドキュメント記憶手段と、
ドキュメントから中間形式の言語に変換されたオブジェクトを格納する中間言語記憶手段と、
生成された設計モデルを格納する設計モデル記憶手段と、
抽出されたテスト項目を格納するテスト項目記憶手段と、
前記ドキュメント記憶手段から各ドキュメント群を読み込み、単一の中間形式の言語に変換したオブジェクトを前記中間言語記憶手段に格納するドキュメント読み込み手段と、
前記中間言語記憶手段から、前記中間形式の言語に変換したオブジェクトを、単一の設計モデルに統合し、前記設計モデル記憶手段に格納する設計モデル生成手段と、
前記設計モデル記憶手段から、前記設計モデルを取得して、入力エラーの有無、テスト経路、DB変更の有無、結果出力の仕方をテスト項目として抽出し、前記テスト項目記憶手段に格納するテスト項目抽出手段と、
前記テスト項目記憶手段から前記テスト項目を読み出して、所定の帳票形式に成型し、出力する出力手段と、
を有することを特徴とするテスト項目生成装置。
A test item generation device that generates a test item when performing an integration test using software design information,
Screen transition diagram showing transitions between screens in the function, screen element definition document describing definitions related to input / output and attributes for each component in the screen, input that is a restriction on the screen element alone Document memory that stores a constraint definition document, a process event definition document that describes state transitions caused by events that occurred on the screen, and a process overview flow definition document that describes the process flow for clarifying the behavior of the process Means,
Intermediate language storage means for storing objects converted from a document into an intermediate language;
Design model storage means for storing the generated design model;
Test item storage means for storing the extracted test items;
Document reading means for reading each document group from the document storage means and storing the object converted into a single intermediate language into the intermediate language storage means;
An object converted from the intermediate language storage means into the intermediate format language, integrated into a single design model, and stored in the design model storage means;
Test item extraction by acquiring the design model from the design model storage means, extracting the presence / absence of input error, test path, presence / absence of DB change, and method of outputting the results as test items, and storing them in the test item storage means Means,
An output means for reading out the test items from the test item storage means, forming them into a predetermined form format, and outputting them;
A test item generation device characterized by comprising:
前記ドキュメント読み込み手段は、
指定されたファイルパスに基づいて、前記ドキュメント記憶手段から前記画面遷移図を読み込み、対応する中間言語の画面遷移図オブジェクトを生成し、該画面遷移図の各画面に対応する中間言語の画面オブジェクトを生成し、該画面遷移図オブジェクトとリンクさせたリストを前記中間言語記憶手段に格納し、
前記画面遷移図の画面IDに基づいて、前記ドキュメント記憶手段から前記画面要素定義書を読み込み、対応する中間言語の画面要素オブジェクトを生成し、前記画面オブジェクトとリンクさせたリストを前記中間言語記憶手段に格納し、
前記画面要素定義書の画面IDに基づいて、前記ドキュメント記憶手段から前記入力制約定義書を読み込み、対応する中間言語の入力制約オブジェクトを生成し、前記画面要素オブジェクトとリンクさせたリストを前記中間言語記憶手段に格納し、
前記画面要素定義書の画面IDに基づいて、前記ドキュメント記憶手段から処理イベント定義書を読み込み、対応する中間言語の処理イベントオブジェクトを生成し、前記画面要素オブジェクトとリンクさせたリストを前記中間言語記憶手段に格納し、
前記処理イベント定義書の画面IDに基づいて、前記ドキュメント記憶手段から処理概要フロー図を読み込み、対応する中間言語の処理概要フローオブジェクトを生成し、前記処理イベントオブジェクトとリンクさせたリストを前記中間言語記憶手段に格納する手段を含み、
前記設計モデル生成手段は、
前記中間言語記憶手段から、オブジェクト同士をリンクさせたリストを読み出して、
前記画面オブジェクトにリンクされている前記画面要素オブジェクトを、統一フォーマットツールを用いて所定の統一形式に変換し、
前記画面オブジェクトにリンクされている前記処理イベントオブジェクトを、前記統一フォーマットツールを用いて所定の統一形式に変換し、
前記画面要素オブジェクトにリンクされている前記入力制約オブジェクトと前記処理イベントオブジェクトにリンクされている処理概要フローオブジェクトをマージして、全体フローオブジェクトを生成し、該全体フローオブジェクトを、前記統一フォーマットツールを用いて所定の統一形式に変換し、前記設計モデル記憶手段に格納する
請求項1記載のテスト項目生成装置。
The document reading means includes:
Based on the designated file path, the screen transition diagram is read from the document storage means, a corresponding intermediate language screen transition diagram object is generated, and an intermediate language screen object corresponding to each screen of the screen transition diagram is generated. A list generated and linked with the screen transition diagram object is stored in the intermediate language storage means;
Based on the screen ID of the screen transition diagram, the screen element definition is read from the document storage means, a corresponding intermediate language screen element object is generated, and a list linked with the screen object is stored in the intermediate language storage means. Stored in
Based on the screen ID of the screen element definition document, the input constraint definition document is read from the document storage means, a corresponding intermediate language input constraint object is generated, and a list linked to the screen element object is displayed in the intermediate language. Stored in storage means,
Based on the screen ID of the screen element definition document, a processing event definition document is read from the document storage means, a corresponding processing event object in the intermediate language is generated, and a list linked to the screen element object is stored in the intermediate language storage. Stored in the means,
Based on the screen ID of the processing event definition document, a processing outline flow diagram is read from the document storage means, a processing outline flow object corresponding to the intermediate language is generated, and a list linked with the processing event object is displayed in the intermediate language. Means for storing in the storage means;
The design model generation means includes
A list in which the objects are linked is read from the intermediate language storage means,
The screen element object linked to the screen object is converted into a predetermined unified format using a unified format tool,
The processing event object linked to the screen object is converted into a predetermined unified format using the unified formatting tool,
The input constraint object linked to the screen element object and the process overview flow object linked to the process event object are merged to generate an overall flow object, and the overall flow object is converted to the unified format tool. The test item generation device according to claim 1, wherein the test item generation device converts the data into a predetermined unified format and stores it in the design model storage means.
前記ドキュメント記憶手段は、
前記画面遷移図の代わりに、画面一覧を格納し、
前記ドキュメント読み込み手段は、
前記画面一覧の各画面に対応する中間言語の画面オブジェクトを生成し、該画面遷移図オブジェクトとリンクさせたリストを前記中間言語記憶手段に格納する手段を含む、
請求項2記載のテスト項目生成装置。
The document storage means includes
Instead of the screen transition diagram, store a screen list,
The document reading means includes:
A means for generating a screen object in an intermediate language corresponding to each screen of the screen list, and storing a list linked with the screen transition diagram object in the intermediate language storage means;
The test item generation device according to claim 2.
前記テスト項目抽出手段は、
前記設計モデル記憶手段から、前記設計モデルを読み出して、前記所定の統一形式に変換された全体フローオブジェクトからテストすべき実行経路を抽出し、該実行経路からテスト経路と入力エラーの有無、DBの変更有無、結果出力の仕方をテスト項目として抽出し、これらを一つのテスト項目としてグループ化し、テスト項目表を生成し、処理イベント名を付与して前記テスト項目記憶手段に格納する手段を含む
請求項1乃至3のいずれか1項に記載のテスト項目生成装置。
The test item extraction means includes
The design model is read from the design model storage means, an execution path to be tested is extracted from the entire flow object converted into the predetermined unified format, and the test path and the presence / absence of an input error are detected from the execution path. Including means for extracting the presence / absence of a change and a result output method as test items, grouping them as one test item, generating a test item table, assigning a processing event name, and storing the result in the test item storage unit Item 4. The test item generation device according to any one of Items 1 to 3.
ソフトウェア設計情報を用いて結合テストを行う場合のテスト項目を生成するテスト項目生成方法であって、
機能内における各画面間の遷移を示す画面遷移図、画面内の各構成要素について、入出力可否や属性に関する定義を記載した画面要素定義書、入力となる画面要素単体についての制約事項である入力制約定義書、画面上で発生したイベントに起因する状態の遷移が記載された処理イベント定義書、処理の振る舞いを明確にするための処理フローが記載された処理概要フロー定義書を格納したドキュメント記憶手段と、
ドキュメントから中間形式の言語に変換されたオブジェクトを格納する中間言語記憶手段と、
生成された設計モデルを格納する設計モデル記憶手段と、
抽出されたテスト項目を格納するテスト項目記憶手段と、
を有する装置において、
前記ドキュメント記憶手段から各ドキュメント群を読み込み、単一の中間形式の言語に変換したオブジェクトを前記中間言語記憶手段に格納するドキュメント読み込みステップと、
前記中間言語記憶手段から、前記中間形式の言語に変換したオブジェクトを、単一の設計モデルに統合し、前記設計モデル記憶手段に格納する設計モデル生成ステップと、
前記設計モデル記憶手段から、前記設計モデルを取得して、入力エラーの有無、テスト経路、DB変更の有無、結果出力の仕方をテスト項目として抽出し、前記テスト項目記憶ステップと、
前記テスト項目記憶手段から前記テスト項目を読み出して、所定の帳票形式に成型し、出力する出力ステップと、
を行うことを特徴とするテスト項目生成方法。
A test item generation method for generating a test item when performing an integration test using software design information,
Screen transition diagram showing transitions between screens in the function, screen element definition document describing definitions related to input / output and attributes for each component in the screen, input that is a restriction on the screen element alone Document memory that stores a constraint definition document, a process event definition document that describes state transitions caused by events that occurred on the screen, and a process overview flow definition document that describes the process flow for clarifying the behavior of the process Means,
Intermediate language storage means for storing objects converted from a document into an intermediate language;
Design model storage means for storing the generated design model;
Test item storage means for storing the extracted test items;
In a device having
A document reading step of reading each document group from the document storage means and storing an object converted into a single intermediate language into the intermediate language storage means;
A design model generation step of integrating the object converted from the intermediate language storage means into the intermediate format language into a single design model and storing it in the design model storage means;
Obtaining the design model from the design model storage means, extracting the presence / absence of an input error, a test path, presence / absence of a DB change, and a method of outputting a result as test items,
An output step of reading out the test item from the test item storage means, forming it into a predetermined form format, and outputting it;
A test item generation method characterized by:
前記ドキュメント読み込みステップにおいて、
指定されたファイルパスに基づいて、前記ドキュメント記憶手段から前記画面遷移図を読み込み、対応する中間言語の画面遷移図オブジェクトを生成し、該画面遷移図の各画面に対応する中間言語の画面オブジェクトを生成し、該画面遷移図オブジェクトとリンクさせたリストを前記中間言語記憶手段に格納し、
前記画面遷移図の画面IDに基づいて、前記ドキュメント記憶手段から前記画面要素定義書を読み込み、対応する中間言語の画面要素オブジェクトを生成し、前記画面オブジェクトとリンクさせたリストを前記中間言語記憶手段に格納し、
前記画面要素定義書の画面IDに基づいて、前記ドキュメント記憶手段から前記入力制約定義書を読み込み、対応する中間言語の入力制約オブジェクトを生成し、前記画面要素オブジェクトとリンクさせたリストを前記中間言語記憶手段に格納し、
前記画面要素定義書の画面IDに基づいて、前記ドキュメント記憶手段から処理イベント定義書を読み込み、対応する中間言語の処理イベントオブジェクトを生成し、前記画面要素オブジェクトとリンクさせたリストを前記中間言語記憶手段に格納し、
前記処理イベント定義書の画面IDに基づいて、前記ドキュメント記憶手段から処理概要フロー図を読み込み、対応する中間言語の処理概要フローオブジェクトを生成し、前記処理イベントオブジェクトとリンクさせたリストを前記中間言語記憶手段に格納するステップを行い、
前記設計モデル生成ステップにおいて、
前記中間言語記憶手段から、オブジェクト同士をリンクさせたリストを読み出して、
前記画面オブジェクトにリンクされている前記画面要素オブジェクトを、統一フォーマットツールを用いて所定の統一形式に変換し、
前記画面オブジェクトにリンクされている前記処理イベントオブジェクトを、前記統一フォーマットツールを用いて所定の統一形式に変換し、
前記画面要素オブジェクトにリンクされている前記入力制約オブジェクトと前記処理イベントオブジェクトにリンクされている処理概要フローオブジェクトをマージして、全体フローオブジェクトを生成し、該全体フローオブジェクトを、前記統一フォーマットツールを用いて所定の統一形式に変換し、前記設計モデル記憶手段に格納するステップを行う
請求項5記載のテスト項目生成方法。
In the document reading step,
Based on the designated file path, the screen transition diagram is read from the document storage means, a corresponding intermediate language screen transition diagram object is generated, and an intermediate language screen object corresponding to each screen of the screen transition diagram is generated. A list generated and linked with the screen transition diagram object is stored in the intermediate language storage means;
Based on the screen ID of the screen transition diagram, the screen element definition is read from the document storage means, a corresponding intermediate language screen element object is generated, and a list linked with the screen object is stored in the intermediate language storage means. Stored in
Based on the screen ID of the screen element definition document, the input constraint definition document is read from the document storage means, a corresponding intermediate language input constraint object is generated, and a list linked to the screen element object is displayed in the intermediate language. Stored in storage means,
Based on the screen ID of the screen element definition document, a processing event definition document is read from the document storage means, a corresponding processing event object in the intermediate language is generated, and a list linked to the screen element object is stored in the intermediate language storage. Stored in the means,
Based on the screen ID of the processing event definition document, a processing outline flow diagram is read from the document storage means, a processing outline flow object corresponding to the intermediate language is generated, and a list linked with the processing event object is displayed in the intermediate language. Performing the step of storing in the storage means;
In the design model generation step,
A list in which the objects are linked is read from the intermediate language storage means,
The screen element object linked to the screen object is converted into a predetermined unified format using a unified format tool,
The processing event object linked to the screen object is converted into a predetermined unified format using the unified formatting tool,
The input constraint object linked to the screen element object and the process overview flow object linked to the process event object are merged to generate an overall flow object, and the overall flow object is converted to the unified format tool. The test item generation method according to claim 5, wherein the step of converting to a predetermined unified format using the design model storage means is performed.
前記ドキュメント記憶手段は、
前記画面遷移図の代わりに、画面一覧を格納し、
前記ドキュメント読み込みステップは、
前記画面一覧の各画面に対応する中間言語の画面オブジェクトを生成し、該画面遷移図オブジェクトとリンクさせたリストを前記中間言語記憶手段に格納するステップを行う、
請求項6記載のテスト項目生成方法。
The document storage means includes
Instead of the screen transition diagram, store a screen list,
The document reading step includes:
Generating an intermediate language screen object corresponding to each screen of the screen list, and storing the list linked with the screen transition diagram object in the intermediate language storage means;
The test item generation method according to claim 6.
前記テスト項目抽出ステップにおいて、
前記設計モデル記憶手段から、前記設計モデルを読み出して、前記所定の統一形式に変換された全体フローオブジェクトからテストすべき実行経路を抽出し、該実行経路からテスト経路と入力エラーの有無、DBの変更有無、結果出力の仕方をテスト項目として抽出し、これらを一つのテスト項目としてグループ化し、テスト項目表を生成し、処理イベント名を付与して前記テスト項目記憶手段に格納する
請求項5乃至7のいずれか1項に記載のテスト項目生成方法。
In the test item extraction step,
The design model is read from the design model storage means, an execution path to be tested is extracted from the entire flow object converted into the predetermined unified format, and the test path and the presence / absence of an input error are detected from the execution path. 6. The presence / absence of a change and a method of outputting a result are extracted as test items, grouped as one test item, a test item table is generated, a processing event name is given, and the test item storage unit stores the test event name. 8. The test item generation method according to any one of 7 above.
請求項1乃至4のいずれか1項に記載のテスト項目生成装置を構成する各手段としてコンピュータを機能させるためのテスト項目生成プログラム。   A test item generation program for causing a computer to function as each means constituting the test item generation device according to claim 1.
JP2010022105A 2010-02-03 2010-02-03 Test item generation method, apparatus and program Active JP4966386B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010022105A JP4966386B2 (en) 2010-02-03 2010-02-03 Test item generation method, apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010022105A JP4966386B2 (en) 2010-02-03 2010-02-03 Test item generation method, apparatus and program

Publications (2)

Publication Number Publication Date
JP2011159202A JP2011159202A (en) 2011-08-18
JP4966386B2 true JP4966386B2 (en) 2012-07-04

Family

ID=44591080

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010022105A Active JP4966386B2 (en) 2010-02-03 2010-02-03 Test item generation method, apparatus and program

Country Status (1)

Country Link
JP (1) JP4966386B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5404721B2 (en) * 2011-09-08 2014-02-05 日本電信電話株式会社 Test item generation apparatus, method and program for scenario test
EP3121711B1 (en) * 2014-03-20 2021-10-20 Mitsubishi Electric Corporation Action designing device and action designing program
CN109544097B (en) * 2018-10-19 2024-04-05 中国平安人寿保险股份有限公司 Moon knot information processing method based on new product development, electronic device and readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3273576B2 (en) * 1992-12-24 2002-04-08 川崎製鉄株式会社 Program specification automatic conversion device
JP2001282536A (en) * 2000-03-29 2001-10-12 Hitachi Software Eng Co Ltd Test item extraction device
JP4488701B2 (en) * 2003-08-22 2010-06-23 キヤノンソフトウェア株式会社 PROGRAM GENERATION DEVICE, PROGRAM GENERATION METHOD, AND PROGRAM
JP2005196291A (en) * 2003-12-26 2005-07-21 Fujitsu Ltd User interface application development program and development device
JP2005258561A (en) * 2004-03-09 2005-09-22 Fuji Xerox Co Ltd Apparatus, method and program for creation of specification of software
JP2008293382A (en) * 2007-05-25 2008-12-04 Fuji Electric Holdings Co Ltd Automatic test specification generation system
JP2009289162A (en) * 2008-05-30 2009-12-10 Toshiba Mitsubishi-Electric Industrial System Corp Apparatus for automatically creating control program and testing method plan

Also Published As

Publication number Publication date
JP2011159202A (en) 2011-08-18

Similar Documents

Publication Publication Date Title
JP5197688B2 (en) Integrated environment generator
JP4667386B2 (en) Business model diagram creation support program, business model diagram creation support method, and business model diagram creation support device
US9081924B2 (en) Method and apparatus for transaction recording and visualization
JP5659238B2 (en) Source code conversion method and source code conversion program
JP5350428B2 (en) Automatic program generation apparatus, method and computer program
JP2012059026A (en) Source code conversion method and source code conversion program
US20180300125A1 (en) Analyzing components related to a software application in a software development environment
JP2017535887A (en) Computer-executable model reverse engineering method and apparatus
JP2010003008A (en) Detection program, detection device, and detection method
WO2015088316A1 (en) Functional test automation framework using user defined ontology
JP4966386B2 (en) Test item generation method, apparatus and program
CN114328278B (en) Distributed simulation test method, system, readable storage medium and computer equipment
Kuloor et al. Aspect-oriented requirements engineering for software product lines
JP5164920B2 (en) Test data generation method, apparatus and program
CN102693128A (en) Method, apparatus and computer program product for generating system specifications
JP5404721B2 (en) Test item generation apparatus, method and program for scenario test
JP5958088B2 (en) Update program, update method, and update apparatus
CN106462814B (en) Navigating and compiling configured product lifecycle data
JP4906424B2 (en) Web service design method and apparatus
JP2011204069A (en) Testing method, and automatic test specification and test data generation apparatus
JP5772233B2 (en) Program execution trace information aggregation program, apparatus, and method
GB2397905A (en) Method for automatically generating and ordering test scripts
CN112394930A (en) Method, electronic device, and medium for automatically constructing front-end interface
JP6827610B1 (en) Development support equipment, programs and development support methods
JP2016042317A (en) Software design support device, and method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120321

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120330

R150 Certificate of patent or registration of utility model

Ref document number: 4966386

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20150406

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350