JPH11306046A - Test case generation system and test case generation method - Google Patents
Test case generation system and test case generation methodInfo
- Publication number
- JPH11306046A JPH11306046A JP10113842A JP11384298A JPH11306046A JP H11306046 A JPH11306046 A JP H11306046A JP 10113842 A JP10113842 A JP 10113842A JP 11384298 A JP11384298 A JP 11384298A JP H11306046 A JPH11306046 A JP H11306046A
- Authority
- JP
- Japan
- Prior art keywords
- test
- data
- item
- test case
- item data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
(57)【要約】
【課題】 機能仕様書情報とテストケースの間のリンク
を提供し、整合性を維持して、機能仕様を十分網羅した
高品質かつ効率的なテストを行うことにある。
【解決手段】 表形式の機能仕様データの入力に従っ
て、前記表の各行データに対応するフォーマットで、前
記項目データの組み合わせをテーブルに変換する機能仕
様データ管理部10と、テーブルを記憶する機能仕様デ
ータベース20と、検証の対象となるテスト項目データ
を指示するテスト仕様入力部60と、機能仕様データベ
ース20を検索して、指示された項目データと関連を有
する項目データの組み合わせを抽出し、該項目データの
組み合わせに従ってテストケースの生成を行うテストケ
ース生成部70とを具備する。
(57) [Summary] [PROBLEMS] To provide a link between functional specification information and a test case, maintain consistency, and perform a high quality and efficient test sufficiently covering the functional specification. SOLUTION: A function specification data management unit 10 converts a combination of the item data into a table in a format corresponding to each row data of the table in accordance with an input of a table of function specification data, and a function specification database storing the table 20, a test specification input unit 60 for designating test item data to be verified, and a search of the function specification database 20 to extract a combination of item data having a relationship with the designated item data, And a test case generation unit 70 that generates a test case according to the combination of the test cases.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、テストケース生成
システム及びテストケース生成方法に関し、特に、機能
仕様書上の記述とテストケースの間のリンクを提供して
整合性を維持することによって、機能仕様の確認上必要
十分なテストケースを自動生成し、もってシステム開発
上の機能テストにおける品質向上と工期短縮を実現する
ための技術に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a test case generation system and a test case generation method, and more particularly, to providing a link between a description on a functional specification and a test case to maintain a function. The present invention relates to a technology for automatically generating a necessary and sufficient test case for confirming specifications, thereby improving quality and shortening a construction period in a functional test in system development.
【0002】[0002]
【従来の技術】一般に、システム開発においては、設計
段階からテスト段階まで複数の段階を経てシステムが完
成する。2. Description of the Related Art Generally, in system development, a system is completed through a plurality of stages from a design stage to a test stage.
【0003】まず、プログラム設計段階において、要求
される機能を記述した設計仕様書(機能仕様書)を作成
する。そして、プログラム開発段階において、機能仕様
書に基づいてプログラムが作成される。その後に、テス
ト設計段階において、作成したプログラムが要求される
機能を実現するか否かを検証するためのテストケースを
記述したテスト仕様書を作成する。そして、テスト段階
において、テスト仕様書に基づいてテスト用のデータを
作成し、このテストデータによって当該プログラムのテ
ストを実行するという手順が一般的に用いられている。
最終的に、テスト仕様書に基づいて所望する結果が得ら
れた段階で当該プログラムは完成する。First, in a program design stage, a design specification (functional specification) describing a required function is created. Then, in the program development stage, a program is created based on the functional specification. After that, in a test design stage, a test specification is prepared which describes a test case for verifying whether or not the created program realizes a required function. In a test stage, a procedure is generally used in which test data is created based on a test specification, and a test of the program is executed using the test data.
Finally, the program is completed when a desired result is obtained based on the test specification.
【0004】このため、機能仕様書上の機能要求を満た
すプログラムを開発するためには、機能仕様書に記載さ
れた機能仕様に基づいて、これを網羅するようなテスト
ケースが作成されなければならないのである。Therefore, in order to develop a program that satisfies the function requirements in the function specification, a test case that covers the function specification must be created based on the function specification described in the function specification. It is.
【0005】以下に、従来技術におけるテストケースの
生成手法について説明する。第1には、機能仕様書に基
づいて、人手によってテストケースを作成する手法があ
る。具体的には、機能仕様書に記述された機能の内容を
人が判断して、これに基づいてテスト項目(テストケー
ス)の検討、作成を行っていた。[0005] A method of generating a test case in the prior art will be described below. First, there is a method of manually creating a test case based on a functional specification. Specifically, a person judges the content of the function described in the functional specification, and based on this, examines and prepares a test item (test case).
【0006】また、第2には、テストケース作成用の専
用ツールを用いる手法がある。具体的には、機能仕様書
に記述された機能の内容に基づき、専用言語や図表現な
ど、機能仕様書上の表現とは別表現となるフォーマット
で、機能仕様を再入力し、この入力内容からテストケー
スの自動生成を行っていた。[0006] Second, there is a method using a dedicated tool for creating a test case. Specifically, based on the contents of the function described in the function specification, re-input the function specification in a format that is different from the expression in the function specification, such as a special language or diagram expression. Automatically generated test cases from.
【0007】従来技術におけるこうした自動化ツールと
しては、以下のものがある。第1のツールとして、特開
平7−253905号公報掲載の「テストケース作成装
置及びテストケース作成方法」において、機能仕様(動
作仕様)に基づいて状態遷移図を入力し、この状態遷移
図に対して有向グラフとして探索を行うことによってテ
ストケースを自動生成する手法が開示されている。[0007] Such automation tools in the prior art include the following. As a first tool, a state transition diagram is input based on functional specifications (operation specifications) in “Test Case Creation Apparatus and Test Case Creation Method” described in Japanese Patent Application Laid-Open No. 7-253905, and A method for automatically generating a test case by performing a search as a directed graph is disclosed.
【0008】また、第2のツールとして、特開平9−6
604号公報掲載の「試験仕様書作成支援装置」があ
る。ここでは、まず、プログラムの設計仕様書に基づ
き、機能名と、これに対応する機能概要、入力装置、入
力内容、入力条件、出力装置、出力情報などの項目をツ
ール用のフォーマットに合わせて入力し、この入力内容
に基づいて機能概要(各モジュールに対応する)レベル
の機能別試験仕様書情報を試験項目データベースとして
保持する。そして、この試験項目データベースを検索す
ることによってプログラム設計仕様書に対応する機能別
試験仕様書を出力する手法が開示されている。As a second tool, Japanese Patent Application Laid-Open No. 9-6
There is a “test specification creation support device” published in Japanese Patent Publication No. 604. Here, first, based on the program design specifications, input the function name and the corresponding function overview, input device, input contents, input conditions, output device, output information, etc. according to the format for the tool Then, based on the input contents, function-specific test specification information at a function outline (corresponding to each module) level is held as a test item database. Then, a method of outputting a function-specific test specification corresponding to the program design specification by searching the test item database is disclosed.
【0009】しかしながら、上述した従来のテストケー
ス生成の手法には、以下の問題点があった。However, the above-described conventional test case generation method has the following problems.
【0010】まず、第1の人手によるテストケースの作
成では、機能仕様書上に記述された機能に基づいて、テ
ストケースを検討するという判断のステップが介在する
ため、機能仕様を完全に網羅したテストケースを作成す
ることが困難であった。First, the first manual test case creation involves a step of examining a test case based on the functions described in the functional specification, so that the functional specification is completely covered. It was difficult to create test cases.
【0011】また、第1の人手による手法を自動化する
目的の第2の専用ツールによるテストケースの生成手法
においても、事情は同様であり、機能仕様を完全に網羅
してテストケースを生成することは困難であった。[0011] In addition, the situation is the same in the test case generation method using the second dedicated tool for the purpose of automating the first manual method, and the test case is generated by completely covering the function specifications. Was difficult.
【0012】以下にその理由を説明する。一般に、機能
仕様書においては、自然言語の文章により仕様が記述さ
れるが、各機能について、表形式で記述されることが多
い。これは、表形式の表現が、文章表現その他よりも明
瞭かつ正確であることによる。ところが、従来技術にお
ける専用ツールでは、こうした機能仕様書における表形
式の機能記述とは別表現である状態遷移図などのフォー
マットに対して、機能仕様の再入力を行う構成となって
いた。このため、機能仕様の入力に際しての別表現への
変換、判断が介在するため、機能仕様を完全に網羅した
テストケースを作成することが困難であった。The reason will be described below. In general, in a function specification, specifications are described in sentences of a natural language, but each function is often described in a table format. This is because tabular expressions are clearer and more accurate than textual expressions and others. However, the dedicated tool in the related art has a configuration in which the function specification is re-input to a format such as a state transition diagram, which is a different expression from the tabular function description in the function specification. For this reason, it is difficult to create a test case that completely covers the functional specification, because the conversion to another expression and the judgment at the time of inputting the functional specification are involved.
【0013】また、先述のテストケースの検討や、別表
現への変換を行うためには、プログラム言語や図表現な
どについての習熟が必須であり、限られた専門要員に作
業を依存することとなっていた。In addition, in order to examine the above-described test cases and to convert them into different expressions, it is necessary to master a programming language, a diagram expression, and the like. Had become.
【0014】さらに、近年のシステムの大規模化、複雑
化に伴い、こうした困難性は加速し、テストケースの作
成に多くの時間と労力を要することとなって、システム
開発におけるボトルネックを構成していた。Further, with the recent increase in scale and complexity of the system, these difficulties have been accelerated, and a lot of time and effort have been required to create test cases, which constitute a bottleneck in system development. I was
【0015】このため、結果的に、プログラム、システ
ムの品質低下、開発期間の長期化を招聘していた。As a result, the quality of programs and systems has been reduced and the development period has been lengthened.
【0016】[0016]
【発明が解決しようとする課題】以上のように、本発明
は、従来技術における、機能仕様書情報とテストケース
の間のリンクがなく、整合性が維持できなかったため
に、テストケース生成用のデータエントリーを要し、ま
た機能仕様を十分網羅した高品質のテストが行えなかっ
たという問題点を解決するためになされたものである。As described above, according to the present invention, there is no link between functional specification information and a test case in the prior art, and consistency cannot be maintained. This was done to solve the problem that high-quality tests that required data entry and that fully covered functional specifications could not be performed.
【0017】そして、その目的とするところは、機能仕
様書で用いられる表形式の仕様データを項目毎抽出して
データベース化し、この機能仕様データベースからの検
索結果に基づいてテストケースを自動生成することによ
って、機能仕様書情報とテストケースの間のリンクを提
供し、整合性を維持して、機能仕様を十分網羅した高品
質かつ効率的なテストを可能とするテストケース生成シ
ステム及びテストケース生成方法を提供することにあ
る。The purpose is to extract tabular specification data used in the functional specification for each item and convert it into a database, and to automatically generate a test case based on a search result from the functional specification database. Provides a link between functional specification information and test cases, maintains consistency, and enables high-quality and efficient testing that fully covers functional specifications, and a test case generating method. Is to provide.
【0018】また、他の目的は、表形式での機能仕様表
現だけではカバーできない機能仕様や、後からの新たな
機能追加に対応した、新たなパラメータをテストケース
に適用可能にすることによって、さらに柔軟にテストケ
ースを生成してテストデータ作成を自動化することにあ
る。Another object of the present invention is to make it possible to apply a new parameter to a test case in response to a function specification that cannot be covered only by a table form of a function specification expression or a new function to be added later. Another object of the present invention is to automatically generate test data by generating test cases flexibly.
【0019】また、他の目的は、機能仕様データベース
検索の際に、テスト項目の入力内容に応じて、適宜デー
タベース中のテーブルを結合させることによって、機能
仕様データベース中の各テーブルを意識することなく、
柔軟なデータベースの検索を実現することにある。Another object is to combine tables in the database according to the input contents of the test items at the time of searching for the function specification database without being conscious of each table in the function specification database. ,
It is to realize a flexible database search.
【0020】[0020]
【課題を解決するための手段】上記の課題を達成するた
めの、本発明の第1の特徴は、上述のように、各機能が
表形式で記述されている点に着目し、機能仕様書と同一
フォーマットである表形式の仕様データをそのまま入力
とし、項目毎に抽出して機能仕様データベース化してプ
ログラム設計時とテスト設計時におけるデータの共用・
再利用を図る点にある。さらに、テスト項目データか
ら、これに関連する項目データの組み合わせを機能仕様
データベースから抽出し、この項目データに基づいてテ
ストケースを自動生成する点にある。A first feature of the present invention for achieving the above object is to focus on the fact that each function is described in a table format as described above, The table format specification data, which is the same format as the above, is input as it is, extracted for each item and made into a function specification database to share data during program design and test design.
The point is to aim for reuse. Further, a combination of item data related thereto is extracted from the test item data from the functional specification database, and a test case is automatically generated based on the item data.
【0021】また、第2の特徴は、テストケースに対し
て新たなパラメータを付加するための規則であるテスト
ルールを登録、適宜テストケースに適用可能とする点に
ある。A second feature is that a test rule, which is a rule for adding a new parameter to a test case, is registered and can be appropriately applied to the test case.
【0022】また、第3の特徴は、入力されたテスト項
目を有するデータベース中のテーブルの検索を行い、デ
ータベース中のテーブルを、各項目データが矛盾しない
ように適宜結合する点にある。A third feature is that a table in the database having the input test items is searched, and the tables in the database are appropriately combined so that each item data does not contradict.
【0023】かかる機能を実現するために、請求項1の
発明においては、機能仕様データに基づいて、対象物の
機能の検証を行うためのテストケースを生成するテスト
ケース生成システムであって、各項目間における項目デ
ータの組み合わせを表形式で記述する機能仕様データの
入力に従って、前記表の各行データに対応するフォーマ
ットで、前記項目データの組み合わせをテーブルに変換
する機能仕様データ管理部と、前記表に対応する前記テ
ーブルを記憶する機能仕様データベースと、機能の検証
を行う対象を指定するテスト項目データを入力するテス
ト仕様入力部と、前記機能仕様データベースを検索し
て、前記テスト項目データを含む1又は複数のテーブル
から、前記テスト項目データと関連を有する項目データ
の組み合わせを抽出し、該項目データの組み合わせに従
ってテストケースの生成を行うテストケース生成部とを
少なくとも具備することを特徴とするものである。In order to realize such a function, the invention according to claim 1 is a test case generation system for generating a test case for verifying a function of an object based on function specification data. A function specification data management unit that converts the combination of the item data into a table in a format corresponding to each row data of the table according to input of the function specification data that describes a combination of item data between items in a table format; A function specification database that stores the table corresponding to the above, a test specification input unit that inputs test item data that specifies a target to be verified, and a function specification database that searches the function specification database and includes the test item data. Or, from a plurality of tables, extract a combination of item data related to the test item data And it is characterized in that at least and a test case generator for generating test cases according to the combination of said item data.
【0024】上記構成によれば、仕様書で用いられてい
るのと同じ表現形式である表形式の機能仕様データをそ
のままデータベース化することが可能となる。また、こ
のデータベース化した機能仕様データから、関連する各
項目間の項目データ(項目値)の組み合わせ情報を得る
ことが可能となる。つまり、所望するテスト項目データ
に対して、機能仕様を十分網羅したテストケースを自動
生成することが可能となるのである。According to the above configuration, it is possible to make a database of the function specification data in the form of a table, which is the same expression form as that used in the specification, as it is. Further, from the functional specification data in the database, it is possible to obtain information on combination of item data (item values) between related items. That is, it is possible to automatically generate a test case that fully covers the functional specifications for desired test item data.
【0025】尚、ここで、表とは、一般の表計算ソフト
ウエアやワードプロセッサなどを用いて作成され、機能
仕様書をはじめとする通常の文書内で使用される表形式
となった項目データの集合をいう。また、テーブルと
は、この表から後述するアルゴリズムによって一義的に
作成され、データベース中に格納されるフォーマットと
なった項目データの集合をいう。Here, the table is defined as item data in the form of a table which is created using general spreadsheet software or a word processor and used in ordinary documents such as functional specifications. Refers to a set. The table is a set of item data that is uniquely created from the table by an algorithm described later and has a format stored in a database.
【0026】また、請求項2の発明においては、前記テ
ストケース生成部は、さらに、前記テスト項目データを
含む前記テーブルが複数である場合には、前記複数のテ
ーブルの間での共通項目データを有する行データ同士を
結合し、該結合された行データから、前記入力項目デー
タに対応する項目データの組み合わせを抽出するテーブ
ル結合手段を有することを特徴とする。[0026] In the invention according to claim 2, the test case generation unit further includes, when there are a plurality of tables including the test item data, common item data among the plurality of tables. It is characterized by having a table combining means for combining the row data with each other and extracting a combination of item data corresponding to the input item data from the combined row data.
【0027】上記構成によれば、複数のテーブルが探索
された場合に、複数のテーブルを、各テーブル間の共通
項目データが矛盾しないよう、整合性を維持して結合す
ることが可能となる。つまり、機能仕様データベース上
の各テーブルのフォーマットを意識することなく、柔軟
な検索を行うことが可能となるのである。According to the above configuration, when a plurality of tables are searched, it is possible to combine the plurality of tables while maintaining consistency so that the common item data between the tables does not contradict. That is, a flexible search can be performed without being aware of the format of each table in the functional specification database.
【0028】また、請求項3の発明においては、上記テ
ストケース生成システムは、さらに、各項目に対応し
て、各項目データを操作するための規則であるテストル
ールを定義するテストルール登録部と、該テストルール
を記憶するテストルール記憶手段と、該テストルール
を、前記テストケースの対応する項目に対して適用し
て、複次的なテストルールへの展開を行うテストルール
適用部とを具備することを特徴とする。Further, in the invention according to claim 3, the test case generation system further includes a test rule registration unit for defining a test rule corresponding to each item, which is a rule for operating each item data. A test rule storage unit for storing the test rule, and a test rule application unit for applying the test rule to a corresponding item of the test case to develop the test rule into a secondary test rule. It is characterized by doing.
【0029】上記構成によれば、機能仕様データベース
の検索により得られたテストケースに対して、各項目デ
ータを適宜操作、展開することが可能となる。つまり、
派生的に新たなパラメータをテストケースに対して付加
することが可能となり、また、テストデータの生成まで
を自動化することが可能となるのである。According to the above configuration, it is possible to appropriately operate and develop each item data for a test case obtained by searching the functional specification database. That is,
As a result, a new parameter can be added to the test case, and the generation of test data can be automated.
【0030】また、請求項4の発明においては、上記テ
ストケース生成システムは、さらに、前記テストルー
ル、および機能仕様データの付加データのいずれか1以
上についての記述を行う補助言語手段を有することによ
り、表形式で表現することが困難な仕様についてもプロ
グラミング言語などにより記述可能となり、表形式を補
完して、より具体的な、仕様を確実に網羅したテストケ
ースの生成が可能となるのである。Further, in the invention according to claim 4, the test case generation system further comprises auxiliary language means for describing at least one of the test rule and additional data of the function specification data. In addition, specifications that are difficult to express in a table format can also be described in a programming language or the like, and a test case that more reliably covers the specifications can be generated by complementing the table format.
【0031】また、請求項5の発明においては、上記テ
ストケース生成システムは、さらに、 前記機能仕様デ
ータ管理部に対して入力された前記機能仕様データの中
に記述された用語を抽出し、該抽出された用語を用語デ
ータとして登録する用語データ管理部と、該用語データ
を記憶する用語データ記憶手段と、該用語データを用い
て、入力された前記機能仕様データおよびテスト仕様デ
ータのいずれか1以上の入力データ内容の補完を行う入
力補助手段とを具備することを特徴とする。In the invention of claim 5, the test case generation system further extracts a term described in the function specification data input to the function specification data management unit, and A term data management unit for registering the extracted terms as term data, term data storage means for storing the term data, and any one of the functional specification data and test specification data input using the term data An input assisting means for complementing the contents of the input data described above is provided.
【0032】上記構成によれば、入力データを蓄積して
用語辞書化し、この用語辞書を入力データに適用するこ
とが可能となる。つまり、用語辞書を用いて、機能仕様
やテスト仕様などの新たな入力内容について、入力の検
証、補完を行うことが可能となる。According to the above configuration, it is possible to accumulate input data and make it a term dictionary, and apply this term dictionary to the input data. In other words, the input dictionary can be used to verify and supplement new input contents, such as functional specifications and test specifications, using the term dictionary.
【0033】また、請求項6の発明においては、上記テ
ストケース生成システムは、さらに、前記機能仕様デー
タベース、前記テストルール記憶手段、前記用語データ
記憶手段のいずれか1つ以上に対して、直接データの操
作を行うデータベースインターフェース部を具備するこ
とにより、保有データの変更、追加、削除など、各デー
タについて、直接メンテナンスを行うことが可能となる
のである。[0033] In the invention according to claim 6, the test case generation system further includes a direct data storage unit for directly storing at least one of the functional specification database, the test rule storage unit, and the term data storage unit. By providing the database interface unit for performing the above operations, it becomes possible to directly perform maintenance on each data such as change, addition, and deletion of the retained data.
【0034】また、請求項7の発明においては、前記テ
スト仕様入力部に対して入力される前記テスト仕様デー
タは、機能の検証を行う対象となる項目データの組み合
わせが表形式で記述されていることにより、機能仕様の
入力と統一した表形式のフォーマットで簡単かつ確実に
テスト仕様の入力、検索リストの作成を行うことが可能
となる。In the invention according to claim 7, the test specification data input to the test specification input section describes a combination of item data for which a function is to be verified in a table format. This makes it possible to easily and reliably input test specifications and create a search list in a tabular format unified with input of functional specifications.
【0035】また、請求項8の発明においては、上記テ
ストケース生成システムは、さらに、前記テストケース
生成部から出力される前記テストケースの各項目データ
に対応するヘッダを付加して、該項目データに対応する
テストケースを含むテスト仕様書を出力するテストケー
ス出力部を具備することにより、生成されたテストケー
スに基づくテスト仕様書フォーマットを自動生成するこ
とが可能となる。In the invention according to claim 8, the test case generation system further adds a header corresponding to each item data of the test case output from the test case generation unit, and By providing a test case output unit that outputs a test specification including a test case corresponding to the test case, it is possible to automatically generate a test specification format based on the generated test case.
【0036】また、請求項9の発明においては、上記テ
ストケース生成システムは、さらに、前記テストケース
出力部が出力する前記テストケースの入力に従って、該
テストケースに記述された項目データの組み合わせを満
たすテストデータを生成するテストデータ生成部を具備
することにより、生成されたテストケースを入力とし
て、対応する機能テストの入力用テストデータを自動生
成することが可能となる。In the ninth aspect of the present invention, the test case generation system further satisfies a combination of item data described in the test case according to the input of the test case output from the test case output unit. By providing the test data generation unit that generates test data, it is possible to automatically generate test data for inputting a corresponding functional test by using the generated test case as an input.
【0037】また、請求項10の発明においては、各項
目間における項目値の組み合わせを表形式で記述する機
能仕様データの入力に従って、前記表に記述された各項
目値と該項目値に対応する項目名との対応付けを含む項
目データを作成し、前記表の各行に記述された項目に一
義的に対応する前記項目データのリストを1の項目デー
タ群として、前記表に一義的に対応するテーブルに変換
する機能仕様データ管理部と、前記表に対応する前記テ
ーブルを関係型データベースに記憶する機能仕様データ
ベースとを、少なくとも具備することを特徴とする。According to the tenth aspect of the present invention, each item value described in the table and the item value correspond to each item value according to the input of the function specification data that describes the combination of the item values between the items in a table format. Item data including correspondence with item names is created, and a list of the item data uniquely corresponding to the item described in each row of the table is uniquely corresponded to the table as one item data group. It is characterized by comprising at least a function specification data management unit for converting into a table, and a function specification database for storing the table corresponding to the table in a relational database.
【0038】上記構成によれば、仕様書で用いられてい
るのと同じ表現形式である表形式の機能仕様データをそ
のままデータベース化することが可能となる。According to the above configuration, it is possible to make a database of the functional specification data in the form of a table, which is the same expression format as that used in the specification, as it is.
【0039】また、請求項11の発明においては、対象
物の機能の検証を行う対象を指定するテスト項目データ
を指示するテスト仕様データの入力に従って、前記テス
ト項目データに対応する項目データの検索を行うための
検索リストの作成を行うテスト仕様入力部と、各項目間
における項目データの組み合わせを表形式で記述する機
能仕様データに対応して、前記表の項目値と該項目値に
対応する項目名との対応付けを、前記表の各行に記述さ
れた項目に一義的に対応する項目データのリストとし
て、前記表に一義的に対応するテーブル中に保持する機
能仕様データベースに対して、前記検索リスト上の項目
データと一致する項目データを有する1または2以上の
テーブルを探索し、前記探索によって得られたテーブル
が複数である場合には、前記複数のテーブルの間での共
通項目データを有する行データ同士の結合を、テーブル
が1つに結合されるまで繰り返し行い、得られた1のテ
ーブルの行データから前記検索リスト上の前記項目デー
タに対応する項目データを抽出し、該抽出された項目デ
ータに基づいてテストケースの生成を行うテストケース
生成部とを少なくとも具備することを特徴とする。According to the eleventh aspect of the present invention, a search for item data corresponding to the test item data is performed in accordance with input of test specification data designating test item data for designating an object to verify the function of the object. A test specification input unit for creating a search list to be performed, and item values of the table and items corresponding to the item values corresponding to the function specification data describing a combination of item data between items in a table format The function specification database that holds the association with the name as a list of item data that uniquely corresponds to the item described in each row of the table in the table that uniquely corresponds to the table is searched for. Search for one or more tables having item data that matches the item data on the list, and when there are a plurality of tables obtained by the search, The row data having the common item data among the plurality of tables is repeatedly joined until the tables are joined into one, and the item on the search list is obtained from the obtained row data of one table. At least a test case generation unit that extracts item data corresponding to data and generates a test case based on the extracted item data is provided.
【0040】上記構成によれば、データベース化された
機能仕様データから、関連する各項目間の項目データ
(項目値)の組み合わせ情報を得ることが可能となる。
つまり、所望するテスト項目データに対して、機能仕様
を十分網羅したテストケースを自動生成することが可能
となるのである。According to the above configuration, it is possible to obtain information on combination of item data (item values) between related items from the function specification data in the database.
That is, it is possible to automatically generate a test case that fully covers the functional specifications for desired test item data.
【0041】さらに、本発明方法(請求項12)は、機
能仕様データに基づいて、対象物の機能の検証を行うた
めのテストケースを生成するテストケース生成方法であ
って、各項目間における項目データの組み合わせを表形
式で記述する機能仕様データの入力に従って、前記表の
各行データに対応するフォーマットで、前記項目データ
の組み合わせをテーブルに変換する機能仕様データ登録
ステップと、機能の検証を行う対象を指定するテスト項
目データの入力に従って、前記テスト項目データに対応
する項目データの検索を行うための検索リストの作成を
行うテスト仕様入力ステップと、前記検索リスト上の項
目データを含む1又は複数のテーブルから、前記テスト
項目データと関連を有する項目データの組み合わせを抽
出し、該項目データの組み合わせからテストケースの生
成を行うテストケース生成ステップとを含むことを特徴
とする。Further, the method of the present invention (Claim 12) is a test case generating method for generating a test case for verifying the function of an object based on the function specification data. A function specification data registration step of converting a combination of the item data into a table in a format corresponding to each row data of the table in accordance with input of the function specification data that describes a combination of data in a table form, and a function verification target A test specification input step of creating a search list for searching for item data corresponding to the test item data in accordance with input of test item data designating one or more items including one or more item data on the search list From the table, a combination of item data having a relationship with the test item data is extracted, and the item data is extracted. Wherein the combination of and a test case generation step for generating test cases.
【0042】上記ステップによれば、仕様書で用いられ
ているのと同じ表現形式である表形式の機能仕様データ
をそのままデータベース化することが可能となる。ま
た、このデータベース化した機能仕様データから、関連
する各項目間の項目データ(項目値)の組み合わせ情報
を得ることが可能となる。つまり、所望するテスト項目
データに対して、機能仕様を十分網羅したテストケース
を自動生成することが可能となるのである。According to the above steps, it is possible to directly create a database of functional specification data in the form of a table in the same expression format as used in the specification. Further, from the functional specification data in the database, it is possible to obtain information on combination of item data (item values) between related items. That is, it is possible to automatically generate a test case that fully covers the functional specifications for desired test item data.
【0043】さらに、本発明に係る記録媒体(請求項1
4)は、機能仕様データに基づいて、対象物の機能の検
証を行うためのテストケースを生成するテストケース生
成プログラムを格納したコンピュータ読み取り可能な記
録媒体であって、各項目間における項目データの組み合
わせを表形式で記述する機能仕様データの入力に従っ
て、前記表の各行データに対応するフォーマットで、前
記項目データの組み合わせをテーブルに変換する機能仕
様データ登録ステップと、機能の検証を行う対象を指定
するテスト項目データの入力に従って、前記テスト項目
データに対応する項目データの検索を行うための検索リ
ストの作成を行うテスト仕様入力ステップと、前記検索
リスト上の項目データを含む1又は複数のテーブルか
ら、前記テスト項目データと関連を有する項目データの
組み合わせを抽出し、該項目データの組み合わせからテ
ストケースの生成を行うテストケース生成ステップとを
含むことを特徴とする。Further, a recording medium according to the present invention (claim 1)
4) is a computer-readable recording medium storing a test case generation program for generating a test case for verifying the function of an object based on the function specification data, wherein the item data of the item data between each item is stored. A function specification data registration step of converting the combination of the item data into a table in a format corresponding to each row data of the table in accordance with the input of the function specification data describing the combination in a table form, and designating a target for function verification A test specification input step of creating a search list for searching for item data corresponding to the test item data according to the input of the test item data to be executed; and one or more tables including the item data on the search list. Extracting a combination of item data having an association with the test item data, Characterized in that it comprises a test case generation step of generating test cases from the combination of the item data.
【0044】上記ステップによれば、仕様書で用いられ
ているのと同じ表現形式である表形式の機能仕様データ
をそのままデータベース化することが可能となる。ま
た、このデータベース化した機能仕様データから、関連
する各項目間の項目データ(項目値)の組み合わせ情報
を得ることが可能となる。つまり、所望するテスト項目
データに対して、機能仕様を十分網羅したテストケース
を自動生成することが可能となるのである。According to the above-described steps, it becomes possible to directly convert the function specification data in the form of a table, which is the same expression format used in the specification, into a database. Further, from the functional specification data in the database, it is possible to obtain information on combination of item data (item values) between related items. That is, it is possible to automatically generate a test case that fully covers the functional specifications for desired test item data.
【0045】[0045]
【発明の実施の形態】以下、図面を用いて本発明の実施
形態を詳細に説明する。Embodiments of the present invention will be described below in detail with reference to the drawings.
【0046】本実施形態の構成は、表形式の機能仕様デ
ータの入力に従って、機能仕様データベースを構成する
機能仕様データの管理部分と、この機能仕様データベー
スに対して検索を行い、テストケースを自動生成するラ
ンタイム部分とに大別される。According to the configuration of this embodiment, a function specification data management part constituting the function specification database and a search for the function specification database are performed in accordance with the input of the table-shaped function specification data, and a test case is automatically generated. Runtime part.
【0047】図1に示すように、本実施形態に係るテス
トケース生成システムは、機能仕様データ管理部10
と、機能仕様データベース20と、テストルールライブ
ラリ30と、用語辞書ライブラリ40と、データベース
インターフェース部50と、テスト仕様入力部60と、
テストケース生成部70と、テストケース出力部80
と、テストデータ生成部90と、テスト実行部100と
を備えている。As shown in FIG. 1, the test case generation system according to this embodiment includes a function specification data management unit 10.
A function specification database 20, a test rule library 30, a term dictionary library 40, a database interface unit 50, a test specification input unit 60,
Test case generation unit 70 and test case output unit 80
, A test data generation unit 90 and a test execution unit 100.
【0048】機能仕様データ管理部10は、表形式で入
力される機能仕様データや付加情報であるテストルール
データの登録の管理を行う。The function specification data management unit 10 manages registration of function specification data input in a table format and test rule data as additional information.
【0049】機能仕様データ管理部10は、さらに、機
能仕様入力部12と、表解析・変換部14と、マクロ登
録部16と、用語辞書管理部18とを備えている。The function specification data management section 10 further includes a function specification input section 12, a table analysis / conversion section 14, a macro registration section 16, and a term dictionary management section 18.
【0050】機能仕様入力部12は、仕様書の中で用い
られている表形式による機能仕様データの入力を受け
る。尚、かかるデータの入力は、仕様書と同一の表のフ
ォーマットに対して再入力を行ってもよいが、予め表計
算ソフトウエアやワードプロセッサによって作成されて
いる表に対応するファイルが存在していれば、これをそ
のまま入力ファイルとしてインポートすることにより、
さらに、入力のワークロードを軽減することができる。The function specification input section 12 receives input of function specification data in a table format used in the specification. The input of such data may be re-input to the same table format as the specification, but if there is a file corresponding to the table created by spreadsheet software or a word processor in advance. If you import this as an input file,
Further, the input workload can be reduced.
【0051】表解析・変換部14は、機能仕様入力部1
2に対して入力された表を、機能仕様データベース20
上での形式に合わせて、変換処理を行い、データベース
登録を行う。The table analysis / conversion unit 14 includes the function specification input unit 1
2 into the functional specification database 20
Conversion processing is performed according to the above format, and database registration is performed.
【0052】マクロ登録部16は、生成されたテストケ
ースの項目に対する操作を行うための規則であるテスト
ルールを、マクロ形式で、マクロライブラリ24に対し
て登録する。尚、テストルールの詳細については後述す
る。The macro registration unit 16 registers, in a macro format, test rules, which are rules for performing operations on the generated test case items, in the macro library 24. The details of the test rule will be described later.
【0053】用語辞書管理部18は、機能仕様入力部1
2に対して入力された表の中で用いられた単語などの用
語を抽出し、用語辞書ライブラリ40に対して登録す
る。The term dictionary management unit 18 stores the function specification input unit 1
The terms such as the words used in the table input for No. 2 are extracted and registered in the term dictionary library 40.
【0054】機能仕様データベース20は、さらに、入
力された表に対応するテーブルを格納する機能仕様RD
B(Relational Database)と、マ
クロ形式により記述されるテストルールを格納するマク
ロライブラリ24とにより構成される。なお、この他の
用語辞書ライブラリ40やテストルールライブラリ30
も含め、これらのデータベースおよびライブラリは、ア
クセスのされ方や頻度により、物理編成方式は適宜定め
られるが、表形式の入力に対応し、柔軟なアクセスが可
能な関係型データベースであることが望ましい。また、
テストルールライブラリ30は、複数のマクロ(関数)
で共用されるようなシステム提供の汎用ルーチンについ
て、別ライブラリとして構成したライブラリである。The function specification database 20 further stores a function specification RD storing a table corresponding to the input table.
B (Relational Database) and a macro library 24 that stores test rules described in a macro format. Note that other term dictionary libraries 40 and test rule libraries 30
The physical organization system of these databases and libraries is appropriately determined depending on the access method and frequency, but it is desirable that the databases and libraries be relational databases that can respond to table-type inputs and can be accessed flexibly. Also,
The test rule library 30 includes a plurality of macros (functions)
This is a library that is configured as a separate library for system-provided general-purpose routines that are shared by.
【0055】データベースインターフェース部50は、
機能仕様データベース20や、テストルールライブラリ
30、用語辞書ライブラリ40に対して、直接データの
変更、追加、削除、再編成などの管理を行い、各データ
ベースのメンテナンスの機能を提供する。そのため、例
えば、誤った仕様を入力した場合でも適宜修正が可能と
なる。The database interface unit 50
It directly manages changes, additions, deletions, and reorganizations of data in the functional specification database 20, the test rule library 30, and the term dictionary library 40, and provides a function of maintaining each database. Therefore, for example, even if an incorrect specification is input, it can be appropriately corrected.
【0056】次に、テスト仕様入力部60は、求めたい
テスト仕様データの入力を受け、機能仕様データベース
20を検索するための検索リストを作成する。テスト仕
様入力部60は、さらに、テスト仕様入力のインターフ
ェース部分であるテスト項目入力部62と、入力された
テスト仕様データから、機能仕様データベース20を検
索するための検索リストの作成を行うテスト項目解析・
変換部64とから構成される。Next, the test specification input section 60 receives the input of the test specification data to be obtained, and creates a search list for searching the functional specification database 20. The test specification input unit 60 further includes a test item input unit 62 which is an interface part for test specification input, and a test item analysis for creating a search list for searching the functional specification database 20 from the input test specification data.・
And a conversion unit 64.
【0057】テストケース生成部70は、与えられた検
索リストを用いて機能仕様データベース20の検索を行
い、テスト仕様データに対応するテストケースの生成を
行う。The test case generator 70 searches the functional specification database 20 using the given search list, and generates a test case corresponding to the test specification data.
【0058】テストケース生成部70は、さらに、機能
仕様検索部72と、テストルール適用部74とにより構
成される。The test case generation unit 70 further includes a function specification search unit 72 and a test rule application unit 74.
【0059】機能仕様検索部72は、機能仕様データベ
ースから、検索リストに対応する項目データ(項目名、
項目値)の検索を行う。The function specification search unit 72 reads item data (item name, item name) corresponding to the search list from the function specification database.
Search for item value).
【0060】テストルール適用部74は、機能仕様検索
部72によって探索されたテーブルの項目に対応するテ
ストルールを、マクロライブラリ24およびテストルー
ルライブラリ30から検索・展開し、機能仕様検索部7
2によって得られたテストケースに対して適用して、最
終的なテストケースを生成する。尚、探索されたテーブ
ルに対応するテストルールが定義されていない場合に
は、テストルール適用部74での処理はバイパスして、
機能仕様検索部72で直接テストケース生成を行う構成
とすることは任意である。The test rule application unit 74 searches and expands the test rules corresponding to the items of the table searched by the function specification search unit 72 from the macro library 24 and the test rule library 30, and the function specification search unit 7
2 to generate the final test case. If the test rule corresponding to the searched table is not defined, the processing in the test rule application unit 74 is bypassed, and
It is optional that the functional specification search unit 72 directly generates test cases.
【0061】テストケース出力部80は、テストケース
生成部70により最終的に得られたテストケースのデー
タに合わせて適宜項目レイアウトの変更(整形)を行
い、項目名のヘッダを付加してテスト仕様書の形式で各
テストケースを出力する。The test case output unit 80 appropriately changes (shapes) the item layout in accordance with the test case data finally obtained by the test case generation unit 70 and adds a header of the item name to the test specification. Output each test case in the form of a certificate.
【0062】テストデータ生成部90は、テストケース
出力部80により出力されたテストケースに対応して、
実際の機能テストに対する入力データとなるテストデー
タの生成を行う。The test data generator 90 responds to the test case output from the test case output unit 80,
Generate test data as input data for an actual functional test.
【0063】テスト実行部100は、テストデータ生成
部90からのテストデータの入力を受けて所定の機能テ
ストを行い、結果データを出力する。Test execution section 100 receives a test data from test data generation section 90, performs a predetermined function test, and outputs result data.
【0064】また、ここで、本実施形態が具備するハー
ドウエア構成は、各種処理を行うためのCPUと、キー
ボード、マウス、各種リーダーなどの入力装置と、メモ
リ装置や各種ディスク装置などの外部記憶装置と、ディ
スプレー装置、プリンタ装置などの出力装置とを備えた
通常のコンピュータシステムを用いて実現することがで
きる。尚、CPUは、各種処理を行う演算部と、各種処
理のための命令及びデータを記憶する主記憶部とを備え
る。The hardware configuration of this embodiment includes a CPU for performing various processes, input devices such as a keyboard, a mouse, and various readers, and external storage such as a memory device and various disk devices. It can be realized using a normal computer system including the device and an output device such as a display device and a printer device. Note that the CPU includes an arithmetic unit that performs various processes, and a main storage unit that stores instructions and data for various processes.
【0065】尚、上述したテストケース生成を実現する
ためのプログラムは、メモリ装置、磁気ディスク装置、
光ディスク装置などの各種記録媒体に保存することがで
きる。かかる記録媒体をコンピュータにより読み出し、
当該プログラムを実行することにより、本発明を実施す
ることができるのである。The program for realizing the above-described test case generation includes a memory device, a magnetic disk device,
It can be stored in various recording media such as an optical disk device. The recording medium is read by a computer,
The present invention can be implemented by executing the program.
【0066】本実施形態に係るテストケース生成システ
ムは、上記のように構成されており、以下、その処理の
流れにつき、説明する。まず、第1に、機能仕様データ
の登録時の処理内容について説明する。まず、機能仕様
入力部12に対して、表形式によって機能仕様データが
入力される。The test case generation system according to the present embodiment is configured as described above, and the flow of the processing will be described below. First, the processing content at the time of registering the function specification data will be described. First, function specification data is input to the function specification input unit 12 in the form of a table.
【0067】ここで、機能仕様入力部12に対して、入
力される表の例を、図2に示す。Here, an example of a table input to the function specification input unit 12 is shown in FIG.
【0068】ここで入力される表は、一般の表計算ソフ
トウェアやワードプロセッサ等を用いて作成され、通常
の文書で使用される表の形式であり、かかる表形式のデ
ータはそのまま文書仕様書でも利用することができるデ
ータである。The table input here is created using general spreadsheet software or a word processor, and is in the form of a table used in a normal document. The data in such a table format can be used as it is in a document specification. Data that can be done.
【0069】図2は、入力とシステムの状態に対応して
変化する、処理およびランプ点灯の状態に関する機能仕
様を示す表である。図2(a)はR1からR4までの4
つの行を有し、また図2(b)はR5からR7までの3
つの行を有し、それぞれが1つの表を構成している。以
下においては、図2の表が入力されたものとして、具体
例の説明を行う。FIG. 2 is a table showing functional specifications relating to the processing and the lamp lighting state, which change according to the input and the state of the system. FIG. 2 (a) is a graph showing four values from R1 to R4.
And FIG. 2 (b) shows three rows from R5 to R7.
It has three rows, each of which makes up one table. In the following, a specific example will be described assuming that the table of FIG. 2 has been input.
【0070】次に、表解析・変換部14が、入力された
表に対応するテーブルを生成し、機能仕様RDB22に
対して機能仕様データの登録を行う。Next, the table analyzer / converter 14 generates a table corresponding to the input table, and registers the function specification data in the function specification RDB 22.
【0071】まず、入力された表の各行に対応して、各
列ごとの項目名とその項目値のリスト[(項目名、
値)、(項目名、値)、…]の形式で1レコード(エン
トリー)を構成する。そして、入力された表に対応し、
入力された表の行数分のレコードを1つの単位としたテ
ーブルが、機能仕様RDB22に登録される。First, a list of item names and their values for each column [(item name,
Value), (item name, value),...] Form one record (entry). And corresponding to the input table,
A table in which records corresponding to the number of rows of the input table as one unit are registered in the functional specification RDB 22.
【0072】図3に、表解析・変換部におけるアルゴリ
ズムのフローチャートを示す。まず、入力された表のヘ
ッダ部から、必要な項目名を取得する(S10、S1
1)。次に、各項目名に対応して表の各行に記述された
各項目値を、表のデータ部から抽出する(S12)。こ
の各項目値のそれぞれを、対応する項目名と対応づけて
項目データを構成し(S13)、表の各行に含まれる項
目に対応する項目データのリストを1レコードとして、
表の各行に対応するレコードを構成する(S14)。FIG. 3 shows a flowchart of the algorithm in the table analysis / conversion unit. First, necessary item names are acquired from the header part of the input table (S10, S1).
1). Next, each item value described in each row of the table corresponding to each item name is extracted from the data part of the table (S12). Each item value is associated with a corresponding item name to form item data (S13), and a list of item data corresponding to the items included in each row of the table is defined as one record.
A record corresponding to each row of the table is formed (S14).
【0073】S12からS14までの各行ごとの処理
を、入力された表の全行分について繰り返し行う(S1
5)。そして、最後に、テーブル毎にユニークとなる識
別子をテーブルに付与する(S16)。このように作成
されたテーブルが、機能仕様RDB22に対して登録さ
れる(S18)。The processing for each row from S12 to S14 is repeated for all rows of the input table (S1).
5). Finally, a unique identifier is assigned to each table for each table (S16). The table created in this way is registered in the function specification RDB 22 (S18).
【0074】尚、ここで、例えば「入力がONである場
合の状態表」などのように、表の全体に対して前提条件
が存在する場合には、機能仕様データの入力の際に、後
述の補助言語を用いて、各表に対する条件を記述する。
こうして各表についての条件が付加された場合には、テ
ーブル作成時に前提条件が、補助言語を用いてテーブル
に対して付加される(S17)。If there are prerequisites for the entire table, such as a “state table when the input is ON”, the function specification data will be described later. The conditions for each table are described using the auxiliary language.
When the conditions for each table are added in this way, preconditions are added to the table using the auxiliary language when the table is created (S17).
【0075】また、図2に説明した表解析・変換の処理
と同時に、用語辞書管理部18が、表の中で使われた用
語を抽出し、用語辞書ライブラリ40に対して登録す
る。この用語辞書のデータは、入力内容のチェックに用
いられる。即ち、機能仕様入力部12およびテスト項目
入力部62などに対しての入力時に、用語辞書のデータ
を用いて入力内容をチェックすることで、入力単語を補
完、検証することができる。かかる用語辞書ライブラリ
を用いた入力補助手段によって、入力をさらに容易に
し、また、入力精度を向上させることができる。At the same time as the table analysis and conversion processing described with reference to FIG. 2, the term dictionary management unit 18 extracts terms used in the table and registers them in the term dictionary library 40. The data of this term dictionary is used for checking the input contents. That is, at the time of inputting to the function specification input unit 12 and the test item input unit 62, the input words can be complemented and verified by checking the input contents using the data of the term dictionary. By the input assisting means using such a term dictionary library, input can be further facilitated and input accuracy can be improved.
【0076】次に、テストケース生成のランタイムの処
理内容について説明する。Next, a description will be given of the processing contents of the run time of test case generation.
【0077】テストケースを生成する場合には、まず、
テスト項目入力部62に対して、求めたいテスト仕様デ
ータを入力する。入力形式は、任意であるが、機能仕様
入力部12に対する入力と同様の表形式とすれば、統一
した入力形式を提供できるため、表計算ソフト等による
表形式の入力が望ましい。When generating a test case, first,
The test specification data to be obtained is input to the test item input section 62. The input format is arbitrary, but if a table format similar to the input to the function specification input unit 12 is used, a unified input format can be provided.
【0078】図2に示された機能仕様の表に対応する、
「運転中」の状態における入力と点灯ランプの動作を確
認するためのテスト仕様データを、図4(a)に示す。
テスト仕様は、図4(a)に示すように、表の項目名が
並ぶヘッダの形式で記述する。そして、各項目名の中
で、値が指定されている「状態」項目C2は既定の条件
として扱われる。即ち、「状態」項目C2が「運転中」
の値を持つ行レコードだけが検索され、この「運転中」
の値をとりうるテストケースだけが生成されることとな
る。一方、値が指定されていない「入力」項目C1、
「点灯ランプ」項目C3については、他の項目によって
与えられる条件の範囲内で、項目C1、C3が取り得る
全ての値が検索される。The function specification table corresponding to the function specification table shown in FIG.
FIG. 4A shows test specification data for confirming the input and the operation of the lighting lamp in the “running” state.
As shown in FIG. 4A, the test specification is described in the form of a header in which table item names are arranged. In each item name, the “status” item C2 for which a value is specified is treated as a predetermined condition. That is, the “state” item C2 is “operating”.
Only row records with the value of
Only test cases that can take the value of are generated. On the other hand, an “input” item C1 for which no value is specified,
As for the “lighting lamp” item C3, all possible values of the items C1 and C3 are searched for within the range given by the other items.
【0079】この入力されたテスト仕様データに従い、
テスト項目解析・変換部64が、前述した表解析・変換
部14と同様の項目名抽出処理を行う。即ち、テスト仕
様データとして値が指定された項目値を検索条件として
用い、他の項目について、指定された項目値に対応する
項目値のみを検索することとなる。ここでは、入力され
た項目データに基づき、機能仕様データベース20に対
する検索リストが生成される。その際、テスト仕様デー
タの各項目について、値の指定されている項目はその項
目値を入れ、一方項目値が指定されていない項目は別の
リストに分割してリストを生成するなど、検索リストを
適宜変換してもよい。このような検索リストの構成とす
れば、項目値が与えられた項目についてのみ先にテーブ
ルを探索し、検索対象範囲を収束することで、検索効率
を向上させることができる。According to the input test specification data,
The test item analysis / conversion unit 64 performs the same item name extraction processing as the table analysis / conversion unit 14 described above. That is, an item value whose value is specified as test specification data is used as a search condition, and only the item value corresponding to the specified item value is searched for other items. Here, a search list for the function specification database 20 is generated based on the input item data. At that time, for each item of the test specification data, the item for which the value is specified is entered with the item value, while the item for which the item value is not specified is divided into another list to generate a search list. May be appropriately converted. With such a search list configuration, the search efficiency can be improved by first searching the table only for the item given the item value and converging the search target range.
【0080】次に、機能仕様検索部72は、入力された
テスト仕様を満足する項目データ(項目名と項目値)の
組み合わせを、機能仕様データベース20のテーブルか
ら検索する。Next, the function specification search unit 72 searches the table of the function specification database 20 for a combination of item data (item name and item value) that satisfies the input test specification.
【0081】図5に、機能仕様データベースに対する検
索処理のアルゴリズムを示す。FIG. 5 shows an algorithm of a search process for the function specification database.
【0082】まず、仕様データとして入力された各項目
名を含むテーブルを機能仕様データベースから探索する
(S71)。このとき、項目名が複数のテーブルに含ま
れる場合には、入力された項目名をより多く含むテーブ
ルが優先して選択される。このようにすれば、後述する
テーブル結合の処理を軽減することができる。First, a table including each item name input as specification data is searched from the function specification database (S71). At this time, if the item names are included in a plurality of tables, the table including more input item names is preferentially selected. By doing so, it is possible to reduce the processing of table joining described below.
【0083】次に、ステップS73以降の処理では、選
択した各テーブルの項目データを基に、それぞれのテー
ブルの間の結合が行なわれる。この結合は、結合される
相互のテーブルの項目データが矛盾しないように行われ
る。具体的には、結合されるテーブルに共通項目データ
がある場合には、それぞれのテーブル中で、同じ項目値
をもつ行データの間で結合が行われる。Next, in the processing after step S73, the tables are joined based on the item data of each selected table. This joining is performed so that the item data of the tables to be joined does not contradict. Specifically, when there is common item data in the tables to be joined, the joining is performed between row data having the same item value in each table.
【0084】以下、上述の図2の2つの表が機能仕様と
して与えられている場合に、テスト仕様として図4
(a)が入力された場合の具体例に基づき、S73以下
の結合処理を説明する。Hereinafter, when the two tables shown in FIG. 2 are given as functional specifications, the test specifications shown in FIG.
Based on a specific example in the case where (a) is input, the combining process from S73 will be described.
【0085】いま、S71において、図2の2つの表に
対応するテーブルが探索され、このうち、「入力」項
目、「状態」項目については図2(a)のテーブルが、
「点灯ランプ」項目については図2(b)のテーブルが
選択されたとする。まず、選択された2つのテーブルの
うち1つを選択して結合の基準となる(被結合)テーブ
ルAとする(S73)。また、他方のテーブルを、結合
するテーブルBとする(S75)。Now, in S71, tables corresponding to the two tables in FIG. 2 are searched. Of these, the table of FIG.
It is assumed that the table in FIG. 2B has been selected for the “lighting lamp” item. First, one of the two selected tables is selected and set as a table A (combined) serving as a reference for combination (S73). Further, the other table is set as a table B to be joined (S75).
【0086】この2つの表には、共通する項目「処理」
があるので(S76)、この共通項目である「処理」項
目を用いて2つのテーブルを結合する(S82)。結合
がされた後、テーブルBをリストから削除する(S8
3)。The two tables have a common item “processing”.
Therefore, the two tables are joined using the "processing" item, which is a common item (S82). After the connection, the table B is deleted from the list (S8).
3).
【0087】即ち、「処理」項目を用いて「入力」、
「状態」、「処理」、「点灯ランプ」の各項目を持つテ
ーブルが結合により作成される。図2(a)のテーブル
では、「状態」項目の項目値が「運転中」である場合
の、「処理」項目の値は、“実行”、“待機”の2種類
である(R2、R4)。一方、図2(b)のテーブルの
「処理」項目の項目値には、この他に、“停止”という
値がある。ステップS82では、この2つの表に共通し
た「処理」項目の値が矛盾しないように項目をつなぎ合
わせ、結果として図4(b)に示されるような項目デー
タを含む行データを生成する。即ち、図2(a)のR2
の行データと図2(b)のR6の行データ、及び図2
(a)のR4の行データと図2(b)のR7の行データ
とが、それぞれつなぎ合わせられ、図4(b)の行デー
タが生成される。ここで、もし、2つのテーブルに共通
項目データが無く、また、機能仕様に対応する他の全て
のテーブルを使っても共通項目データが見つけられない
場合には、2つのテーブルは単純に連結される(S8
1)。That is, “input” using the “process” item,
A table having items of “state”, “process”, and “lighting lamp” is created by joining. In the table of FIG. 2A, when the item value of the “status” item is “during operation”, the values of the “process” item are two types of “execution” and “standby” (R2, R4). ). On the other hand, the item value of the “processing” item in the table of FIG. 2B also includes a value of “stop”. In step S82, the items of the "process" common to the two tables are joined so that the values do not contradict, and as a result, row data including the item data as shown in FIG. 4B is generated. That is, R2 in FIG.
2 and the row data of R6 in FIG.
The row data of R4 in FIG. 2A and the row data of R7 in FIG. 2B are joined together to generate the row data in FIG. Here, if there is no common item data in the two tables and no common item data can be found using all the other tables corresponding to the functional specifications, the two tables are simply connected. (S8
1).
【0088】以上の処理は、仕様データとして入力され
た全ての項目名が探索され、かつ各項目について選択さ
れたテーブルが一つに結合されるまで繰り返される(S
73〜S83)。The above processing is repeated until all the item names input as the specification data are searched, and the tables selected for each item are combined into one (S).
73-S83).
【0089】そして、最後に、結合されたテーブルの各
行データを出力する。この各行データは、与えられた仕
様データの項目値に関連する他の項目値の、機能仕様に
基づく組み合わせパターンを示している。従って、この
テーブルの結合を、ありうる全てのテーブルの組合せに
対して行なうことで、機能仕様の組合せを網羅したテス
トケース生成が可能となるのである。この出力時には、
表の探索順や組合せ等により、重複した検索結果が得え
られた場合は、重複する結果をそれぞれ保持、出力はさ
れず、全ての検索結果が一度だけ出力される。Finally, each row data of the joined table is output. Each row data indicates a combination pattern of other item values related to the item value of the given specification data based on the function specification. Therefore, by combining the tables with all possible combinations of the tables, it is possible to generate a test case covering the combinations of the functional specifications. At the time of this output,
If duplicate search results are obtained according to the search order or combination of the tables, the duplicate results are not held and output, but all the search results are output only once.
【0090】以上の処理によって生成されたテストケー
スは、テストケース生成部70で最終的に得られたテス
トケースの行データに合わせて、テスト仕様データ入力
時のヘッダの下に各テストケースが並べられた形式のテ
スト仕様書として出力される。The test cases generated by the above processing are arranged under the header at the time of inputting the test specification data in accordance with the test case row data finally obtained by the test case generation unit 70. It is output as a test specification in the specified format.
【0091】ここでのテストケースは、入力されたテス
ト仕様データの項目に対応させて列データを適宜抽出、
編集して作成することができる。また、後述するよう
に、テストルール適用によってヘッダの項目名が変化し
た場合は、この際にヘッダの変更が併せて行なわれる。The test case here extracts column data as appropriate in accordance with the input test specification data items.
Can be edited and created. As will be described later, when the item name of the header changes due to the application of the test rule, the header is also changed at this time.
【0092】このように作成されたテストケースから、
さらにテストデータを生成し、これを入力データとして
テストを自動的に行うこともできる。From the test case thus created,
Further, test data can be generated, and the test can be automatically performed using the test data as input data.
【0093】次に、上述したテストケース生成に際し
て、テストルールを適用する処理の内容について、以下
に説明する。Next, the contents of the processing for applying the test rules when generating the test case described above will be described below.
【0094】テストルールとは、テストケース中のある
項目名や所定の条件に従って各項目を操作し、新たなパ
ラメータをテストケースに付加するための規則である。
このテストルールは、補助言語などの手法を用いて記述
される。このテストルールを用いれば、あるテストケー
スから、派生的にテストケースを生成したり、また、表
入力の機能仕様の項目値だけでは、直接テストデータが
生成できないような場合には、この項目値に対してさら
に具体的な値生成の指示を行うことができる。The test rule is a rule for operating each item according to a certain item name or a predetermined condition in a test case and adding a new parameter to the test case.
This test rule is described using a technique such as an auxiliary language. If this test rule is used, a test case can be derived from a certain test case, or if it is not possible to directly generate test data using only the item values of the functional specifications in the table input, this item value Can be given a more specific value generation instruction.
【0095】図6から図8に、C言語に類似した補助言
語で記述され、適用されるテストルールの例を示す。FIGS. 6 to 8 show examples of test rules described and applied in an auxiliary language similar to the C language.
【0096】図6は、各項目データと、これに対応する
テストルールとの対応関係を示す表である。テストルー
ル対応表は、各項目データに対応して記述される関数名
(マクロ名)と、追加される項目データ、削除される項
目データなどのパラメータにより構成される。例えば、
図6に示すように、補助言語との対応表に、項目名(こ
の場合は「処理」項目)に対する各項目データに対応し
たルールである関数check_stop()、che
ck_ready()、check_run()と、補
助言語によって追加されるパラメータと、追加に伴って
削除されるパラメータが指定される。次にテストルール
として、項目名に対応したそれぞれの関数がマクロ形式
で記述される(図7)。各関数は必要なパラメータを生
成する。ここで、特に、複数の関数で利用されるような
処理は、図8に示すように、システム提供のライブラリ
ルーチンを共通に利用することも可能である。FIG. 6 is a table showing the correspondence between each item data and the corresponding test rule. The test rule correspondence table includes a function name (macro name) described corresponding to each item data, and parameters such as item data to be added and item data to be deleted. For example,
As shown in FIG. 6, in the correspondence table with the auxiliary language, functions check_stop (), che, which are rules corresponding to each item data for the item name (in this case, “process” item),
ck_ready (), check_run (), parameters added by the auxiliary language, and parameters deleted with the addition are specified. Next, as a test rule, each function corresponding to the item name is described in a macro format (FIG. 7). Each function produces the required parameters. Here, in particular, for a process used by a plurality of functions, a library routine provided by the system can be commonly used as shown in FIG.
【0097】ここで、例えば、図6に示されるテストル
ールに従い、図9(b)のマクロを、図9(a)に示さ
れるテストケース34に適用した場合を説明する。最初
の“待機”項目にcheck_ready()が(R2
1)、“実行”項目にcheck_run()が(R2
2)適用される。そして、「処理」項目が削除されて
「回転数」「判定結果」項目が付加され、最終結果とし
て図9(c)に示されるようなテストケースとなって出
力される。Here, for example, a case in which the macro of FIG. 9B is applied to the test case 34 shown in FIG. 9A according to the test rule shown in FIG. 6 will be described. Check_ready () is (R2
1) Check_run () is added to the “execute” item (R2
2) Applies. Then, the item of “processing” is deleted, and the items of “number of rotations” and “judgment result” are added, and the final result is output as a test case as shown in FIG. 9C.
【0098】このように、補助言語などの形式により、
テストルールを適宜登録、適用することで、検索結果の
テストケースに対して、さらに具体的に数値を与えてテ
ストケースを作成したり、例えば「有効範囲内で正常動
作する」といった表現の語句から、実際に有効範囲をチ
ェックするためのテストデータの数値列を作成すること
が可能となる。また、補助言語は、テストルールの定義
の他に、上述したように、表形式で表現することが難し
い仕様(仕様書の文章表現部分など)の入力を補助する
手段として、機能仕様入力部12などで利用することが
できる。As described above, in a format such as an auxiliary language,
By registering and applying test rules as appropriate, you can create test cases by giving numerical values more specifically to test cases in search results, or from words such as "normal operation within the effective range" Thus, it is possible to create a numerical sequence of test data for actually checking the effective range. The auxiliary language serves as a means for assisting the input of a specification (such as a text expression part of a specification) which is difficult to express in a table format, as described above, in addition to the definition of the test rules. And so on.
【0099】本実施形態によれば、以下のような効果が
得られる。According to the present embodiment, the following effects can be obtained.
【0100】即ち、機能仕様書で用いられる表形式の仕
様データを項目ごと抽出してデータベース化し、この機
能仕様データベースからの検索結果に基づいてテストケ
ースを自動生成するので、テストケース作成用の機能仕
様データの変換、再エントリーを不要にし、予め蓄積さ
れた機能仕様データベースの各項目間の関連情報によっ
て、相互に関連する項目値の範囲内で、機能仕様を十分
網羅したテストケースの生成を行うことができる。尚、
このテストケースを用いて行われる機能テストの単位は
任意であり、機能仕様に基づくテストであれば単体モジ
ュールであっても、プログラム単位であっても、パッケ
ージ単位であってもよい。That is, the specification data in the form of a table used in the functional specification is extracted for each item into a database, and a test case is automatically generated based on the search result from the functional specification database. This eliminates the need to convert and re-entry the specification data, and generates test cases that fully cover the functional specifications within the range of mutually related item values by using the related information between the items of the functional specification database that has been stored in advance. be able to. still,
The unit of the functional test performed using this test case is arbitrary, and a test based on the functional specification may be a single module, a program, or a package.
【0101】また、補助言語を用いたマクロ形式のテス
トルールを定義、テストルールに適用することによっ
て、表形式での機能仕様表現だけではカバーできない機
能仕様や、後からの新たな機能、条件追加に対応してさ
らに柔軟にテストケースを生成することができる。By defining a macro-style test rule using an auxiliary language and applying it to the test rule, a function specification that cannot be covered only by a functional specification expression in a table format, or a new function or condition added later. , Test cases can be generated more flexibly.
【0102】また、データベース中のテーブルを各項目
間の項目値の整合性を維持して結合させる機能を提供す
るので、機能仕様データベース中の各テーブルを意識す
ることなく、柔軟なデータベースの検索を行うことがで
きる。Also, since a function of joining tables in the database while maintaining the consistency of item values between items is provided, a flexible database search can be performed without being conscious of each table in the functional specification database. It can be carried out.
【0103】さらに、テスト作業者はこの表の各行のパ
ラメータを基にテストケースに従ってテストを実行する
ことで、迅速かつ正確なテストを行なうことができる。
さらに、テストケースの各行データを入力として、テス
トデータの自動生成および自動テスト実行までもが可能
となる。Further, the test operator can perform a quick and accurate test by executing a test in accordance with a test case based on the parameters of each row of the table.
Further, it is possible to automatically generate test data and execute automatic test by using each line data of the test case as an input.
【0104】また、実際にシステムが実装されていない
場合であっても、確認したいシステムの動作条件を入力
することで、仕様に基づいた出力されるべき結果がテス
ト仕様書へ出力されるので、設計された機能仕様の正当
性を仕様書文書をベースとして、容易に確認することが
可能となる。Even if the system is not actually mounted, by inputting the operating conditions of the system to be checked, the result to be output based on the specification is output to the test specification. The validity of the designed function specification can be easily confirmed based on the specification document.
【0105】[0105]
【発明の効果】以上説明したように、本発明によれば、
以下に記載されるような効果を奏する。As described above, according to the present invention,
The following effects are obtained.
【0106】即ち、本発明においては、機能仕様書で用
いられる表形式の仕様データを項目ごと抽出してデータ
ベース化し、この機能仕様データベースからの検索結果
に基づいてテストケースを自動生成する機能を提供す
る。このため、データ登録時においては、テストケース
作成用の機能仕様データのフォーマット変換を伴う再エ
ントリーを不要にし、統一した入力手段によって、仕様
データ入力が簡易かつ確実なものとなる。また、テスト
ケース作成時においても、機能仕様を十分網羅したテス
トケースの生成が可能となる。これにより、機能仕様書
情報とテストケースの間のリンクを提供し、整合性を維
持して、機能仕様を十分網羅した高品質かつ効率的なテ
ストを行うことが可能となる。また、機能仕様データベ
ースの情報を、他のシステムからも共用、再利用を図る
ことが可能となる。That is, the present invention provides a function of extracting tabular specification data used in a functional specification document for each item and converting it into a database, and automatically generating a test case based on a search result from the functional specification database. I do. Therefore, at the time of data registration, re-entry involving format conversion of functional specification data for creating test cases is not required, and specification data can be easily and reliably input by the unified input means. Also, at the time of test case creation, it is possible to generate a test case that fully covers the functional specifications. As a result, it is possible to provide a link between the functional specification information and the test case, maintain the consistency, and perform a high-quality and efficient test that sufficiently covers the functional specification. Further, the information of the function specification database can be shared and reused by other systems.
【0107】また、表形式での機能仕様表現だけではカ
バーできない機能仕様や、後からの新たな機能、条件追
加に対応してテストルールを用いてあらたなパラメータ
をテストケースに適用可能になる。このため、さらに柔
軟にテストケースを生成し、また、テストデータを自動
的に作成することが可能となるという効果が得られる。Further, new parameters can be applied to test cases using test rules in response to functional specifications that cannot be covered only by the table of functional specification expressions or new functions and conditions added later. For this reason, it is possible to more flexibly generate a test case and automatically generate test data.
【0108】また、データベース中のテーブルを結合さ
せる機能を提供するので、機能仕様データベース中の各
テーブルを意識することなく、柔軟なデータベースの検
索を行うことが可能となるという効果が得られる。Further, since the function of joining tables in the database is provided, an effect is obtained that a flexible database search can be performed without being conscious of each table in the function specification database.
【0109】このように、本発明を用いれば、機能仕様
書情報とテストケースの間のリンクを提供し、整合性を
維持して、機能仕様を十分網羅した高品質かつ効率的な
テストの実行環境を提供することとなる。従って、シス
テムの品質向上とTurn Around Time(TAT)の短縮を併せ
て実現することができるのであり、産業上その効果の極
めて大きい発明である。As described above, according to the present invention, the link between the functional specification information and the test case is provided, the consistency is maintained, and the high-quality and efficient test that sufficiently covers the functional specification is executed. Will provide the environment. Therefore, it is possible to realize both improvement of the system quality and shortening of the turn around time (TAT), and this is an invention having an extremely large industrial effect.
【図1】本発明の実施形態に係るテストケース生成シス
テムの機能構成を示すブロック図である。FIG. 1 is a block diagram showing a functional configuration of a test case generation system according to an embodiment of the present invention.
【図2】表形式の機能仕様の例を示す図である。FIG. 2 is a diagram illustrating an example of a functional specification in a table format.
【図3】表解析・変換の処理の詳細を示すフローチャー
トである。FIG. 3 is a flowchart illustrating details of a table analysis / conversion process.
【図4】図2の機能仕様に対応するテスト仕様からテス
トケース生成までの例を示す図である。FIG. 4 is a diagram showing an example from a test specification corresponding to the functional specification of FIG. 2 to test case generation.
【図5】機能仕様データベースの検索、結合の処理の詳
細を示すフローチャートである。FIG. 5 is a flowchart showing details of a process of searching and combining a function specification database.
【図6】補助言語と項目との対応表の例を示す図であ
る。FIG. 6 is a diagram showing an example of a correspondence table between auxiliary languages and items.
【図7】マクロの記述の例を示す図である。FIG. 7 is a diagram illustrating an example of a description of a macro.
【図8】テストルールライブラリ30中の、複数のマク
ロで共通使用される処理の記述の例を示す図である。8 is a diagram showing an example of a description of a process commonly used by a plurality of macros in a test rule library 30. FIG.
【図9】テストケースに対するテストルール適用の処理
を説明する図である。FIG. 9 is a diagram illustrating a process of applying a test rule to a test case.
R1〜R7、R10〜R12、R21、R22 項目の
各行 C1〜C3 項目の各列Each row of R1-R7, R10-R12, R21, R22 items Each column of C1-C3 items
Claims (15)
能の検証を行うためのテストケースを生成するテストケ
ース生成システムであって、 各項目間における項目データの組み合わせを表形式で記
述する機能仕様データの入力に従って、前記表の各行デ
ータに対応するフォーマットで、前記項目データの組み
合わせをテーブルに変換する機能仕様データ管理部と、 前記表に対応する前記テーブルを記憶する機能仕様デー
タベースと、 機能の検証を行う対象を指定するテスト項目データを入
力するテスト仕様入力部と、 前記機能仕様データベースを検索して、前記テスト項目
データを含む1又は複数のテーブルから、前記テスト項
目データと関連を有する項目データの組み合わせを抽出
し、該項目データの組み合わせに従ってテストケースの
生成を行うテストケース生成部とを少なくとも具備する
ことを特徴とするテストケース生成システム。1. A test case generation system for generating a test case for verifying a function of an object based on function specification data, wherein a function of describing a combination of item data between items in a table format. A function specification data management unit configured to convert the combination of the item data into a table in a format corresponding to each row data of the table in accordance with input of specification data; a function specification database storing the table corresponding to the table; A test specification input unit for inputting test item data specifying an object to be verified, and searching the functional specification database and having a relation with the test item data from one or a plurality of tables including the test item data. The combination of item data is extracted, and the test case Test case generation system, characterized in that at least and a test case generator which performs formed.
場合には、 前記複数のテーブルの間での共通項目データを有する行
データ同士を結合し、該結合された行データから、前記
入力項目データに対応する項目データの組み合わせを抽
出するテーブル結合手段を有することを特徴とする請求
項1記載のテストケース生成システム。2. The method according to claim 1, wherein the test case generation unit further includes: when the plurality of tables including the test item data are plural, combine the row data having common item data among the plurality of tables; 2. The test case generation system according to claim 1, further comprising a table combining unit that extracts a combination of item data corresponding to the input item data from the combined line data.
に、 各項目に対応して、各項目データを操作するための規則
であるテストルールを定義するテストルール登録部と、 該テストルールを記憶するテストルール記憶手段と、 該テストルールを、前記テストケースの対応する項目に
対して適用して、複次的なテストルールへの展開を行う
テストルール適用部とを具備することを特徴とする請求
項1または2記載のテストケース生成システム。3. The test case generation system according to claim 1, further comprising: a test rule registration unit for defining a test rule corresponding to each item, which is a rule for operating each item data; A rule storage unit, comprising: a test rule application unit that applies the test rule to a corresponding item of the test case and develops the test rule into a secondary test rule. 3. The test case generation system according to 1 or 2.
に、 前記テストルール、および機能仕様データの付加データ
のいずれか1以上についての記述を行う補助言語手段を
有することを特徴とする請求項1乃至3のいずれか記載
のテストケース生成システム。4. The test case generation system according to claim 1, further comprising auxiliary language means for describing at least one of the test rule and additional data of the function specification data. The test case generation system according to any of the above.
に、 前記機能仕様データ管理部に対して入力された前記機能
仕様データの中に記述された用語を抽出し、該抽出され
た用語を用語データとして登録する用語データ管理部
と、 該用語データを記憶する用語データ記憶手段と、 該用語データを用いて、入力された前記機能仕様データ
およびテスト仕様データのいずれか1以上の入力データ
内容の補完を行う入力補助手段とを具備することを特徴
とする請求項1乃至4のいずれか記載のテストケース生
成システム。5. The test case generation system further extracts a term described in the function specification data input to the function specification data management unit, and uses the extracted term as term data. A term data management unit to be registered; a term data storage means for storing the term data; and using the term data, complementing the input data content of at least one of the input functional specification data and test specification data. The test case generation system according to any one of claims 1 to 4, further comprising an input assisting means for performing the operation.
に、 前記機能仕様データベース、前記テストルール記憶手
段、前記用語データ記憶手段のいずれか1つ以上に対し
て、直接データの操作を行うデータベースインターフェ
ース部を具備することを特徴とする請求項1乃至5のい
ずれか記載のテストケース生成システム。6. The test case generation system further includes a database interface unit that directly operates data on at least one of the functional specification database, the test rule storage unit, and the term data storage unit. The test case generation system according to any one of claims 1 to 5, further comprising:
る前記テスト仕様データは、機能の検証を行う対象とな
る項目データの組み合わせが表形式で記述されているこ
とを特徴とする請求項1乃至6のいずれか記載のテスト
ケース生成システム。7. The test specification data input to the test specification input unit, wherein a combination of item data for which a function is to be verified is described in a table format. 7. The test case generation system according to any one of claims 6 to 6.
に、 前記テストケース生成部から出力される前記テストケー
スの各項目データに対応するヘッダを付加して、該項目
データに対応するテストケースを含むテスト仕様書を出
力するテストケース出力部を具備することを特徴とする
請求項1乃至7のいずれか記載のテストケース生成シス
テム。8. The test case generating system according to claim 1, further comprising: adding a header corresponding to each item data of the test case output from the test case generating unit to include a test case corresponding to the item data. The test case generation system according to claim 1, further comprising a test case output unit that outputs a specification.
に、 前記テストケース出力部が出力する前記テストケースの
入力に従って、該テストケースに記述された項目データ
の組み合わせを満たすテストデータを生成するテストデ
ータ生成部を具備することを特徴とする請求項8記載の
テストケース生成システム。9. The test case generation system according to claim 1, further comprising: generating test data satisfying a combination of item data described in the test case in accordance with the input of the test case output from the test case output unit. The test case generation system according to claim 8, further comprising a unit.
を表形式で記述する機能仕様データの入力に従って、前
記表に記述された各項目値と該項目値に対応する項目名
との対応付けを含む項目データを作成し、前記表の各行
に記述された項目に一義的に対応する前記項目データの
リストを1の項目データ群として、前記表に一義的に対
応するテーブルに変換する機能仕様データ管理部と、 前記表に対応する前記テーブルを関係型データベースに
記憶する機能仕様データベースとを、 少なくとも具備することを特徴とするテストケース生成
システム。10. In accordance with input of function specification data describing a combination of item values between respective items in a table format, a correspondence between each item value described in the table and an item name corresponding to the item value is included. Function specification data management for creating item data and converting the list of item data uniquely corresponding to the item described in each row of the table into one item data group into a table uniquely corresponding to the table A test case generation system, comprising: a unit; and a functional specification database that stores the table corresponding to the table in a relational database.
するテスト項目データを指示するテスト仕様データの入
力に従って、前記テスト項目データに対応する項目デー
タの検索を行うための検索リストの作成を行うテスト仕
様入力部と、 各項目間における項目データの組み合わせを表形式で記
述する機能仕様データに対応して、前記表の項目値と該
項目値に対応する項目名との対応付けを、前記表の各行
に記述された項目に一義的に対応する項目データのリス
トとして、前記表に一義的に対応するテーブル中に保持
する機能仕様データベースに対して、前記検索リスト上
の項目データと一致する項目データを有する1または2
以上のテーブルを探索し、 前記探索によって得られたテーブルが複数である場合に
は、前記複数のテーブルの間での共通項目データを有す
る行データ同士の結合を、テーブルが1つに結合される
まで繰り返し行い、 得られた1のテーブルの行データから前記検索リスト上
の前記項目データに対応する項目データを抽出し、 該抽出された項目データに基づいてテストケースの生成
を行うテストケース生成部とを少なくとも具備すること
を特徴とするテストケース生成システム。11. A search list for searching for item data corresponding to the test item data is created in accordance with input of test specification data indicating test item data for specifying a target for verifying the function of the target object. The test specification input section to be performed, and the correspondence between the item values of the table and the item names corresponding to the item values, corresponding to the function specification data describing the combination of the item data between the items in a table format, As a list of item data uniquely corresponding to the item described in each row of the table, a list of item data corresponding to the item data on the search list matches the function specification database held in the table uniquely corresponding to the table. 1 or 2 with item data
When the above-mentioned tables are searched, and there are a plurality of tables obtained by the search, the row data having the common item data among the plurality of tables is combined into one table. A test case generation unit that extracts item data corresponding to the item data on the search list from the obtained row data of one table, and generates a test case based on the extracted item data And a test case generation system comprising at least:
機能の検証を行うためのテストケースを生成するテスト
ケース生成方法であって、 各項目間における項目データの組み合わせを表形式で記
述する機能仕様データの入力に従って、前記表の各行デ
ータに対応するフォーマットで、前記項目データの組み
合わせをテーブルに変換する機能仕様データ登録ステッ
プと、 機能の検証を行う対象を指定するテスト項目データの入
力に従って、前記テスト項目データに対応する項目デー
タの検索を行うための検索リストの作成を行うテスト仕
様入力ステップと、 前記検索リスト上の項目データを含む1又は複数のテー
ブルから、前記項目データと関連を有する項目データの
組み合わせを抽出し、該項目データの組み合わせからテ
ストケースの生成を行うテストケース生成ステップとを
含むことを特徴とするテストケース生成方法。12. A test case generation method for generating a test case for verifying a function of an object based on function specification data, wherein a function of describing a combination of item data between respective items in a table format. According to the input of the specification data, a function specification data registration step of converting the combination of the item data into a table in a format corresponding to each row data of the table, and, according to the input of the test item data for specifying a target to be verified, A test specification input step of creating a search list for searching for the item data corresponding to the test item data; and having a relation with the item data from one or a plurality of tables including the item data on the search list. Extract a combination of item data and generate a test case from the combination of item data. Performing a test case generation step.
であるテストルールを定義するテストルール登録ステッ
プと、 該テストルールを、前記テストケースの対応する項目に
対して適用して、複次的なテストルールへの展開を行う
テストルール適用ステップとを含むことを特徴とする請
求項12記載のテストケース生成方法。13. The test case generating method according to claim 1, further comprising: a test rule registering step for defining a test rule corresponding to each item to operate each item data; 13. The test case generating method according to claim 12, further comprising: a test rule applying step of applying the item to a corresponding item of the case to develop the test rule into a secondary test rule.
能の検証を行うためのテストケースを生成するテストケ
ース生成プログラムを格納したコンピュータ読み取り可
能な記録媒体であって、 各項目間における項目データの組み合わせを表形式で記
述する機能仕様データの入力に従って、前記表の各行デ
ータに対応するフォーマットで、前記項目データの組み
合わせをテーブルに変換する機能仕様データ登録ステッ
プと、 機能の検証を行う対象を指定するテスト項目データの入
力に従って、前記テスト項目データに対応する項目デー
タの検索を行うための検索リストの作成を行うテスト仕
様入力ステップと、 前記検索リスト上の項目データを含む1又は複数のテー
ブルから、前記項目データと関連を有する項目データの
組み合わせを抽出し、該項目データの組み合わせからテ
ストケースの生成を行うテストケース生成ステップとを
含むことを特徴とするテストケースを生成するテストケ
ース生成プログラムを格納したコンピュータ読み取り可
能な記録媒体。14. A computer-readable recording medium storing a test case generation program for generating a test case for verifying a function of an object based on function specification data, wherein item data between items is stored. A function specification data registration step of converting the combination of the item data into a table in a format corresponding to each row data of the table according to the input of the function specification data describing the combination in a table format, A test specification input step of creating a search list for searching for item data corresponding to the test item data in accordance with input of the specified test item data; and one or more tables including the item data on the search list A combination of item data having a relationship with the item data is extracted from Computer readable recording medium storing a test case generation program for generating test cases, characterized in that it comprises a test case generation step of generating test cases from a combination of said item data.
納したコンピュータ読み取り可能な記録媒体は、さら
に、 各項目に対応して、各項目データを操作するための規則
であるテストルールを定義するテストルール登録ステッ
プと、 該テストルールを、前記テストケースの対応する項目に
対して適用して、複次的なテストルールへの展開を行う
テストルール適用ステップとを含むことを特徴とする請
求項14記載のテストケース生成プログラムを格納した
コンピュータ読み取り可能な記憶媒体。15. The computer-readable recording medium storing the test case generation program, further comprising: a test rule registration step for defining a test rule, which is a rule for operating each item data, corresponding to each item. The test according to claim 14, further comprising: a test rule applying step of applying the test rule to a corresponding item of the test case to develop the test rule into a secondary test rule. A computer-readable storage medium storing a case generation program.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11384298A JP3502543B2 (en) | 1998-04-23 | 1998-04-23 | Test case generation system and test case generation method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11384298A JP3502543B2 (en) | 1998-04-23 | 1998-04-23 | Test case generation system and test case generation method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH11306046A true JPH11306046A (en) | 1999-11-05 |
| JP3502543B2 JP3502543B2 (en) | 2004-03-02 |
Family
ID=14622429
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP11384298A Expired - Fee Related JP3502543B2 (en) | 1998-04-23 | 1998-04-23 | Test case generation system and test case generation method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3502543B2 (en) |
Cited By (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002297205A (en) * | 2001-03-30 | 2002-10-11 | Toyota Central Res & Dev Lab Inc | Verification pattern generating device and its method and verification pattern generating program |
| JP2006155393A (en) * | 2004-11-30 | 2006-06-15 | Toshiba Corp | Server accommodation device, server accommodation method, and server accommodation program |
| JP2006293711A (en) * | 2005-04-11 | 2006-10-26 | Omron Corp | Fare decision program confirming apparatus, fare decision program confirming method, and confirming program |
| JP2007109116A (en) * | 2005-10-17 | 2007-04-26 | Fukuoka Pref Gov Sangyo Kagaku Gijutsu Shinko Zaidan | Estimation device, table management device, selection device, table management method, program for causing a computer to implement the table management method, and storage medium for recording the program |
| JP2009009212A (en) * | 2007-06-26 | 2009-01-15 | Fuji Electric Holdings Co Ltd | Specification creation support apparatus and support method |
| DE112010004658T5 (en) | 2009-12-03 | 2012-11-08 | Hitachi, Ltd. | System specification generation device and test device |
| US8479165B1 (en) | 2011-05-23 | 2013-07-02 | International Business Machines Corporation | System for testing operation of software |
| WO2014091732A1 (en) * | 2012-12-11 | 2014-06-19 | 日本電気株式会社 | Test assistance device and test assistance method |
| JP2015060445A (en) * | 2013-09-19 | 2015-03-30 | 三菱電機株式会社 | Code generation system, code generation method, and code generation program |
| JP2015095248A (en) * | 2013-11-11 | 2015-05-18 | 株式会社スタットラボ | Pathological diagnosis report preparation supporting apparatus |
| JP2017010359A (en) * | 2015-06-24 | 2017-01-12 | 三菱電機エンジニアリング株式会社 | Lsi verification analysis device and lsi verification analysis method |
| CN110874326A (en) * | 2019-11-21 | 2020-03-10 | 望海康信(北京)科技股份公司 | Test case generation method and device, computer equipment and storage medium |
| CN114328059A (en) * | 2022-01-12 | 2022-04-12 | 平安壹钱包电子商务有限公司 | POS machine pressure testing method and device, computer equipment and readable storage medium |
| WO2024195336A1 (en) * | 2023-03-23 | 2024-09-26 | 三菱電機株式会社 | Traceability information extraction device and traceability information verification device |
-
1998
- 1998-04-23 JP JP11384298A patent/JP3502543B2/en not_active Expired - Fee Related
Cited By (19)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002297205A (en) * | 2001-03-30 | 2002-10-11 | Toyota Central Res & Dev Lab Inc | Verification pattern generating device and its method and verification pattern generating program |
| JP2006155393A (en) * | 2004-11-30 | 2006-06-15 | Toshiba Corp | Server accommodation device, server accommodation method, and server accommodation program |
| JP2006293711A (en) * | 2005-04-11 | 2006-10-26 | Omron Corp | Fare decision program confirming apparatus, fare decision program confirming method, and confirming program |
| JP2007109116A (en) * | 2005-10-17 | 2007-04-26 | Fukuoka Pref Gov Sangyo Kagaku Gijutsu Shinko Zaidan | Estimation device, table management device, selection device, table management method, program for causing a computer to implement the table management method, and storage medium for recording the program |
| JP2009009212A (en) * | 2007-06-26 | 2009-01-15 | Fuji Electric Holdings Co Ltd | Specification creation support apparatus and support method |
| DE112010004658T5 (en) | 2009-12-03 | 2012-11-08 | Hitachi, Ltd. | System specification generation device and test device |
| US8745588B2 (en) | 2011-05-23 | 2014-06-03 | International Business Machines Corporation | Method for testing operation of software |
| US8707268B2 (en) | 2011-05-23 | 2014-04-22 | Interntional Business Machines Corporation | Testing operations of software |
| US8479165B1 (en) | 2011-05-23 | 2013-07-02 | International Business Machines Corporation | System for testing operation of software |
| WO2014091732A1 (en) * | 2012-12-11 | 2014-06-19 | 日本電気株式会社 | Test assistance device and test assistance method |
| JPWO2014091732A1 (en) * | 2012-12-11 | 2017-01-05 | 日本電気株式会社 | Test support apparatus and test support method |
| US9792201B2 (en) | 2012-12-11 | 2017-10-17 | Nec Corporation | Test support device and test support method |
| JP2015060445A (en) * | 2013-09-19 | 2015-03-30 | 三菱電機株式会社 | Code generation system, code generation method, and code generation program |
| JP2015095248A (en) * | 2013-11-11 | 2015-05-18 | 株式会社スタットラボ | Pathological diagnosis report preparation supporting apparatus |
| JP2017010359A (en) * | 2015-06-24 | 2017-01-12 | 三菱電機エンジニアリング株式会社 | Lsi verification analysis device and lsi verification analysis method |
| CN110874326A (en) * | 2019-11-21 | 2020-03-10 | 望海康信(北京)科技股份公司 | Test case generation method and device, computer equipment and storage medium |
| CN110874326B (en) * | 2019-11-21 | 2023-10-27 | 望海康信(北京)科技股份公司 | Test case generation method and device, computer equipment and storage medium |
| CN114328059A (en) * | 2022-01-12 | 2022-04-12 | 平安壹钱包电子商务有限公司 | POS machine pressure testing method and device, computer equipment and readable storage medium |
| WO2024195336A1 (en) * | 2023-03-23 | 2024-09-26 | 三菱電機株式会社 | Traceability information extraction device and traceability information verification device |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3502543B2 (en) | 2004-03-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4949253A (en) | Method and apparatus for automatically generating program | |
| CN111399853A (en) | Templated deployment method of machine learning model and custom operator | |
| JP5005510B2 (en) | Software design support method, design support apparatus, and design support program | |
| JPS6375835A (en) | Apparatus for generating intended code, program, list and design document | |
| US20050149868A1 (en) | User interface application development program and development apparatus | |
| JPH11306046A (en) | Test case generation system and test case generation method | |
| US6374261B1 (en) | Expert system knowledge-deficiency reduction through automated database updates from semi-structured natural language documents | |
| CN111597243A (en) | Data warehouse-based abstract data loading method and system | |
| Neubauer et al. | XMLText: from XML schema to Xtext | |
| US8521762B2 (en) | Automated business process modeling | |
| JPH11249875A (en) | Method for supporting programming and device therefor | |
| US20050188323A1 (en) | Template creation apparatus and creation method | |
| JP2004094487A (en) | Document creation support system | |
| Wojszczyk et al. | The process of verifying the implementation of design patterns—used data models | |
| JP2006079484A (en) | Source program conversion program for system migration | |
| CN119806538B (en) | A dual-layer debugging-driven API arrangement method and system based on LLM | |
| JP3345522B2 (en) | Program development support device using data item parts | |
| Victorova et al. | Metamodel-Driven Design of Microservice Architecture Applications | |
| JP3584204B2 (en) | Automatic source program converter | |
| JP2002312167A (en) | Program for causing computer to calculate variable value, compilation program, variable value determination method, and program generation method | |
| JPH08314706A (en) | Software development support system | |
| JPH0830448A (en) | Program specification consistency inspecting device | |
| JPH1031586A (en) | Program generation device | |
| JP3031767B2 (en) | Natural language processor | |
| JP2014123321A (en) | Software development support device, software development support method, and software development support program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20031205 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20071212 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081212 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091212 Year of fee payment: 6 |
|
| LAPS | Cancellation because of no payment of annual fees |