JP5690657B2 - Program test support device, program test support method, program test support program - Google Patents
Program test support device, program test support method, program test support program Download PDFInfo
- Publication number
- JP5690657B2 JP5690657B2 JP2011120854A JP2011120854A JP5690657B2 JP 5690657 B2 JP5690657 B2 JP 5690657B2 JP 2011120854 A JP2011120854 A JP 2011120854A JP 2011120854 A JP2011120854 A JP 2011120854A JP 5690657 B2 JP5690657 B2 JP 5690657B2
- Authority
- JP
- Japan
- Prior art keywords
- test
- test case
- program
- storage unit
- unit
- 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
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Description
本発明は、ソフトウェアプログラムの単体テストを支援する技術に関する。 The present invention relates to a technique for supporting unit testing of software programs.
情報処理システムの開発は、設計、製造、テスト等の工程を経て行われるのが一般的である。テスト工程においては、そのコンピュータシステムを構成するモジュールであるソフトウェアプログラムにおける条件分岐や入出力の妥当性を検査する単体テストや、複数のモジュールを結合して複数モジュール間の連携を検査する結合テスト等などが行われる。特許文献1、2には、このようなテストを自動化する技術が記載されている。
Development of an information processing system is generally performed through processes such as design, manufacturing, and testing. In the test process, a unit test that checks the validity of conditional branching and input / output in the software program that is a module that constitutes the computer system, a combined test that checks the linkage between multiple modules, etc. Is done.
しかしながら、製造されたソフトウェアプログラムに基づいて単体テストのテストプログラムを自動生成する場合、例えばそのプログラム言語の言語仕様に基づいた限界値等を考慮したテストケースは網羅できるとしても、業務仕様に基づくテストケースを考慮したテストプログラムを生成することは困難である。また、ソフトウェアプログラムに入力する引数等の値の組み合わせを総当りで検査するテストケースを自動生成すると、膨大なテストケースが生成されることになり、テスト工程に過剰な工数が必要となってしまう。そこで、業務仕様を考慮し、かつ、ソフトウェアプログラムの品質を検査できる妥当な量のテストケースを生成することが望ましい。 However, when automatically generating a test program for a unit test based on a manufactured software program, for example, a test case based on a business specification can be covered even if a test case considering the limit value based on the language specification of the program language can be covered. It is difficult to generate a test program that takes into account In addition, if test cases are automatically generated that test all combinations of values such as arguments that are input to the software program, an enormous number of test cases are generated, which requires excessive man-hours for the test process. . Therefore, it is desirable to generate a reasonable amount of test cases that can be used to check the quality of software programs in consideration of business specifications.
本発明は、このような状況に鑑みてなされたもので、業務仕様を考慮し、かつ、ソフトウェアプログラムの品質を検査できる妥当な量のテストケースを生成するプログラムテスト支援装置、プログラムテスト支援方法、プログラムテスト支援プログラムを提供する。 The present invention has been made in view of such a situation, a program test support apparatus, a program test support method, which generates a reasonable amount of test cases that can check the quality of a software program in consideration of business specifications, Provide a program test support program.
上述した課題を解決するために、本発明は、プログラム言語により記述され、入力される値に応じて定められた情報処理を行った処理結果を出力するソフトウェアプログラムの単体テストを支援するプログラムテスト支援装置であって、単体テストの対象であるソフトウェアプログラムが記憶されている試験対象記憶部と、ソフトウェアプログラムに対して行う単体テストの観点を示すテスト項目が記憶されるテスト項目記憶部と、ソフトウェアプログラムに対して入力する値の組み合わせであるテストケースが記憶されるテストケース記憶部と、値の、プログラム言語における型に応じた限界値を示す言語仕様が記憶されている言語仕様記憶部と、ソフトウェアプログラムが利用されるシステムにおける業務仕様に応じた値の境界値が含まれる業務仕様が記憶されている業務仕様記憶部と、テスト項目の入力を受け付けてテスト項目記憶部に記憶させるテスト項目登録部と、ソフトウェアプログラムと、言語仕様と、業務仕様とに基づいて、定められたテストケース生成技法に基づいてテストケースを生成してテストケース記憶部に記憶させるテストケース生成部と、テストケース生成部が生成したテストケース毎に、テストケースに対応するテスト項目を対応付ける対応関係の入力を受け付ける対応関係入力部と、対応関係入力部に入力された対応関係に基づいて、テストケースが対応付けられていないテスト項目が存在するか否かを判定する判定部と、判定部が、テストケースが対応付けられていないテスト項目が存在すると判定すると、警告を出力する警告部と、を備えることを特徴とする。 In order to solve the above-described problem, the present invention provides a program test support device that supports unit testing of a software program that outputs a processing result that is described in a program language and that has been subjected to information processing determined according to an input value. A test target storage unit that stores a software program that is a unit test target, a test item storage unit that stores a test item indicating a viewpoint of a unit test performed on the software program, and a software program Used by a test case storage unit that stores test cases that are combinations of input values, a language specification storage unit that stores language specifications that indicate limit values of values according to types in the programming language, and a software program Boundary value of values according to business specifications in the system to be included Determined based on the business specification storage unit that stores the business specifications to be stored, the test item registration unit that accepts input of test items and stores them in the test item storage unit, software programs, language specifications, and business specifications A test case generation unit that generates a test case based on the specified test case generation technique and stores the test case in a test case storage unit, and a test item corresponding to the test case for each test case generated by the test case generation unit A correspondence input unit that receives an input of a relationship, a determination unit that determines whether or not there is a test item that is not associated with a test case, based on the correspondence input to the correspondence input unit; and a determination unit Provides a warning unit that outputs a warning when it is determined that there is a test item that is not associated with a test case. And wherein the door.
また、本発明は、テストケース生成部は、テストケース生成技法であるAll−Pair法に基づいてテストケースを生成することを特徴とする。 Further, the present invention is characterized in that the test case generation unit generates a test case based on an All-Pair method that is a test case generation technique.
また、本発明は、テスト項目を条件として、テストケースを動作とするデシジョンテーブル形式のテストケース表を生成して出力するテストケース表生成部と、を備えることを特徴とする。 In addition, the present invention includes a test case table generation unit that generates and outputs a test case table in a decision table format in which a test case is operated on the condition of a test item.
また、本発明は、プログラム言語により記述され、入力される値に応じて定められた情報処理を行った処理結果を出力するソフトウェアプログラムの単体テストを支援し、単体テストの対象であるソフトウェアプログラムが記憶されている試験対象記憶部と、ソフトウェアプログラムに対して行う単体テストの観点を示すテスト項目が記憶されるテスト項目記憶部と、ソフトウェアプログラムに対して入力する値の組み合わせであるテストケースが記憶されるテストケース記憶部と、値の、プログラム言語における型に応じた限界値を示す言語仕様が記憶されている言語仕様記憶部と、ソフトウェアプログラムが利用されるシステムにおける業務仕様に応じた値の境界値が含まれる業務仕様が記憶されている業務仕様記憶部と、を備えたプログラムテスト支援装置のプログラムテスト支援方法であって、テスト項目の入力を受け付けてテスト項目記憶部に記憶させるステップと、ソフトウェアプログラムと、言語仕様と、業務仕様とに基づいて、定められたテストケース生成技法に基づいてテストケースを生成してテストケース記憶部に記憶させるステップと、生成したテストケース毎に、テストケースに対応するテスト項目を対応付ける対応関係の入力を受け付けるステップと、入力された対応関係に基づいて、テストケースが対応付けられていないテスト項目が存在するか否かを判定するステップと、テストケースが対応付けられていないテスト項目が存在すると判定すると、警告を出力するステップと、を備えることを特徴とする。 The present invention also supports unit testing of a software program that is described in a program language and outputs a processing result obtained by performing information processing determined according to an input value, and stores a software program that is a unit test target. Test object storage unit, a test item storage unit storing test items indicating the viewpoint of unit tests performed on the software program, and a test storing a test case that is a combination of values input to the software program The case storage unit, the language specification storage unit storing the language specification indicating the limit value according to the type of the value in the programming language, and the boundary value of the value corresponding to the business specification in the system in which the software program is used A business specification storage unit storing business specifications included therein A program test support method for a ram test support device, which is a test case determined based on a step of receiving input of a test item and storing it in a test item storage unit, a software program, a language specification, and a business specification A step of generating a test case based on the generation technique and storing it in the test case storage unit, a step of receiving an input of a correspondence relationship for associating a test item corresponding to the test case for each generated test case, and an input correspondence A step of determining whether there is a test item that is not associated with a test case based on the relationship; a step of outputting a warning when it is determined that there is a test item that is not associated with a test case; It is characterized by providing.
また、本発明は、プログラム言語により記述され、入力される値に応じて定められた情報処理を行った処理結果を出力するソフトウェアプログラムの単体テストを支援し、単体テストの対象であるソフトウェアプログラムが記憶されている試験対象記憶部と、ソフトウェアプログラムに対して行う単体テストの観点を示すテスト項目が記憶されるテスト項目記憶部と、ソフトウェアプログラムに対して入力する値の組み合わせであるテストケースが記憶されるテストケース記憶部と、値の、プログラム言語における型に応じた限界値を示す言語仕様が記憶されている言語仕様記憶部と、ソフトウェアプログラムが利用されるシステムにおける業務仕様に応じた値の境界値が含まれる業務仕様が記憶されている業務仕様記憶部と、を備えたプログラムテスト支援装置のコンピュータに、テスト項目の入力を受け付けてテスト項目記憶部に記憶させるステップと、ソフトウェアプログラムと、言語仕様と、業務仕様とに基づいて、定められたテストケース生成技法に基づいてテストケースを生成してテストケース記憶部に記憶させるステップと、生成したテストケース毎に、テストケースに対応するテスト項目を対応付ける対応関係の入力を受け付けるステップと、入力された対応関係に基づいて、テストケースが対応付けられていないテスト項目が存在するか否かを判定するステップと、テストケースが対応付けられていないテスト項目が存在すると判定すると、警告を出力するステップと、を実行させるためのプログラムテスト支援プログラムである。 The present invention also supports unit testing of a software program that is described in a program language and outputs a processing result obtained by performing information processing determined according to an input value, and stores a software program that is a unit test target. Test object storage unit, a test item storage unit storing test items indicating the viewpoint of unit tests performed on the software program, and a test storing a test case that is a combination of values input to the software program The case storage unit, the language specification storage unit storing the language specification indicating the limit value according to the type of the value in the programming language, and the boundary value of the value corresponding to the business specification in the system in which the software program is used A business specification storage unit storing business specifications included therein Based on the test case generation technique determined based on the step of receiving the test item input in the computer of the lamb test support device and storing it in the test item storage unit, the software program, the language specification, and the business specification Based on the input correspondence relationship, the step of generating a test case and storing it in the test case storage unit, the step of accepting the input of the correspondence relationship for associating the test item corresponding to the test case for each generated test case, A step for determining whether or not there is a test item that is not associated with a test case, and a step for outputting a warning when it is determined that there is a test item that is not associated with a test case . This is a program test support program.
以上説明したように、本発明によれば、ソフトウェアプログラムに対して行う単体テストの観点を示すテスト項目の入力を受け付けて記憶し、予め記憶されたソフトウェアプログラムと、言語仕様と、業務仕様とに基づいて、定められたテストケース生成技法に基づいて、ソフトウェアプログラムに対して入力する値の組み合わせであるテストケースを生成し、生成したテストケース毎に、テストケースに対応するテスト項目を対応付ける対応関係の入力を受け付け、入力された対応関係に基づいて、テストケースが対応付けられていないテスト項目が存在するか否かを判定し、テストケースが対応付けられていないテスト項目が存在すると判定すると、警告を出力するようにしたので、業務仕様を考慮し、かつ、ソフトウェアプログラムの品質を検査できる妥当な量のテストケースを生成することが可能となる。 As described above, according to the present invention, the input of the test item indicating the viewpoint of the unit test performed on the software program is received and stored, and based on the pre-stored software program, the language specification, and the business specification. Based on the defined test case generation technique, a test case that is a combination of values input to the software program is generated, and a test item corresponding to the test case is associated with each generated test case. Accept the input, determine whether there is a test item that is not associated with the test case based on the input correspondence, and if it is determined that there is a test item that is not associated with the test case, a warning Is output, so that business specifications are taken into account and the software program It is possible to produce a reasonable amount of test cases that can be inspected quality.
以下、本発明の一実施形態について、図面を参照して説明する。
図1は、本実施形態によるプログラムテスト支援装置100の構成を示すブロック図である。プログラムテスト支援装置100は、プログラム言語により記述され、入力される値に応じて定められた情報処理を行った処理結果を出力するソフトウェアプログラムの単体テストを支援するコンピュータ装置である。プログラムテスト支援装置100は、ユーザからの入力を受け付けるマウスやキーボード等の入力デバイスや、情報を表示するディスプレイ等を有する。試験対象記憶部101と、テストケース雛形記憶部102と、テストケース表生成部103と、テスト項目登録部104と、テスト項目記憶部105と、業務仕様記憶部107と、テストケース生成部108と、テストケース記憶部109と、対応関係入力部110と、判定部111と、警告部112と、テストプログラム生成部113とを備えている。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a configuration of a program
試験対象記憶部101には、単体テストの対象であるソフトウェアプログラムが記憶される。図2は、試験対象記憶部101に記憶されているソフトウェアプログラムのソースコードの例を示す図である。ここでは、JAVA(登録商標)によって記述されたソフトウェアプログラムの例を示しているが、他のプログラム言語によって記述されたソフトウェアプログラムを試験対象としても良い。ここでは、SmplBLogicImplクラスのcalcSumメソッドを試験対象とする例を説明する。calcSumメソッドは、引数として渡されたIDの商品の単価と個数をもとに、配送料を加算した合計金額を計算する処理を行う。calcSumメソッドは、文字列型であるStringの変数であるitemIDと、整数型であるintの変数であるcntとを引数とする。図においては、符号aに示す箇所にクラス名が記載されており、符号bに示す箇所に戻り値の型が記載されており、符号cとdに示す箇所に引数が記載されている。
The test
テストケース表雛形記憶部102には、プログラムテスト支援装置100が生成するテストケース表の雛形が予め記憶される。図3は、テストケース雛形記憶部102に記憶されているテストケース表雛形の例を示す図である。このようなテストケース表雛形は、例えば表計算ソフトによるシートとして記憶されている。符号aに示す箇所には、試験対象の情報が入力される。符号bに示す箇所は、テスト項目を条件として、テストケースを動作とするデシジョンテーブル形式のテストケース表であり、テスト項目やテストケースが入力される。ここで、テスト項目とは、ソフトウェアプログラムに対して行う単体テストの観点を示す情報であり、例えば、「配送料が加算される条件の場合に正しい合計金額になること」のような情報である。テストケースは、ソフトウェアプログラムに対して入力する値の組み合わせであり、例えば、変数itemIDと変数cntとに入力する値の組み合わせである。
The test case table
テストケース表生成部103は、テストケース表雛形記憶部102から読み出したテストケース表雛形に各種情報を入力し、デシジョンテーブル形式のテストケース表を生成して出力する。図4は、図3において符号aに示した箇所に情報が入力された例を示す図である。ここには、試験対象のクラス名と、メソッド名と、引数と、戻り値と、テスト対象概要との情報が入力される。これらの情報は、ユーザから入力された情報が入力されるようにしても良いし、テストケース表生成部103が試験対象のソフトウェアプログラムから読み出して入力するようにしても良い。
The test case
図5は、図3において符号bに示した箇所を示す図である。この箇所の上部には、テスト観点が入力され、テスト観点毎に具体的なテスト項目が対応付けられて入力される。これらの情報は、テスト対象のモジュール等やテスト方針等に応じて、予め記憶されたテスト観点を読み出して入力するようにしても良いし、ユーザから入力された情報を入力するようにしても良い。事前条件、入力値、期待結果の欄には、テストケース表生成部103が、テスト対象のモジュールに含まれる情報を読み出して入力する。組み合わせ条件の欄には、テストケースを生成する際の組み合わせに関する条件を指定することができる。例えば、テストケースの生成対象とする値を選択したり、テストケースから除外する値の組み合わせ等を指定したりすることができる。
FIG. 5 is a diagram illustrating a portion indicated by a symbol b in FIG. In the upper part of this portion, a test viewpoint is input, and specific test items are input in association with each test viewpoint. These pieces of information may be read out and input from pre-stored test viewpoints according to the module to be tested, the test policy, or the like, or information input from the user may be input. . In the precondition, input value, and expected result columns, the test case
テスト項目登録部104は、ユーザからのテスト項目の入力を受け付けて、テスト項目記憶部105に記憶させる。テスト項目登録部104に記憶されたテスト項目は、テストケース表生成部103によって読み出されてテストケース表に入力される。図6は、テスト項目が入力されたテストケース表の例を示す図である。テスト項目の欄には、「配送料が加算される条件の場合に正しい合計金額になること」や、「配送料が加算されない条件の場合に正しい合計金額になること」等の情報が入力される。
テスト項目記憶部105には、テスト項目登録部104に入力されたテスト項目が記憶される。
The test
The test
業務仕様記憶部106には、ソフトウェアプログラムが利用されるシステムにおける業務仕様に応じた引数や事前条件の境界値が含まれる業務仕様が記憶されている。図7は、業務仕様記憶部106に記憶されている業務仕様のデータ例を示す図である。例えば、月齢データの最小値「1」と最大値「12」と、日付データの最小値「1」と最大値「31」、うるう年の場合の2月の日付の特殊値としての「29」などが記憶される。
The business
言語仕様記憶部107には、引数や事前条件の値の、プログラム言語における型に応じた限界値を示す言語仕様が記憶される。例えば、図8の言語仕様の欄に示す様に、型がintであれば、言語仕様としての上限値と下限値とが対応付けられる。
The language
テストケース生成部108は、試験対象記憶部101に記憶されている試験対象のソフトウェアプログラムと、言語仕様記憶部107に記憶されている言語仕様と、業務仕様記憶部106に記憶されている業務仕様とを読み出し、読み出したソフトウェアプログラムと、言語仕様と、業務仕様とに基づいて、定められたテスト技法に基づいてテストケース候補値を生成してテストケース記憶部109に記憶させる。例えば、図7に示したような業務仕様から、図8の業務仕様の欄に示すように、最大値と最小値の間の値である正常値と、最大と最小との境界値と、特殊値とを判定する。また、テストケース生成部108は、図8に示したようなデータから、図9に示すような、テストケース候補値を生成する。ここでは、テストケース生成部108は、例えば同値分割や境界値分析等のテスト技法に基づいて、テストケース候補値を生成する。テストケース生成部108は、このように生成したテストケース候補値をテストケース記憶部109に記憶させる。テストケース記憶部109に記憶させたテストケース候補値は、テストケース表生成部103によって読み出され、図6に示すように、事前条件と入力値との値が入力される。
The test
また、テストケース生成部108は、定められたテストケース生成技法に基づいてテストケースを生成してテストケース記憶部109に記憶させる。テストケース生成技法とは、例えば、All−Pair法や直交表を用いた手法や、代表値のみの組み合わせから1変数のみ値を変更する等の手法が適用できる。このような値を組み合わせてテストケースを生成する際には、PICT(Pairwise Independent Combinatorial Testing tool)などのテストケース生成ツール等を使用することができる。テストケース生成部108は、このように生成したテストケースをテストケース記憶部109に記憶させる。テストケース記憶部109に記憶させたテストケースは、テストケース表生成部103によって読み出され、図10の符号aに示すように、テストケース表にプロットされて入力される。ここでは、「Y」の文字が入力された箇所の値を組み合わせることを示している。本実施形態では、テストケース生成ツール等を使用してテストケースを生成する例を示すが、テストケース表生成部103が、ユーザからの手動によるテストケースの入力を受け付けて、入力されたテストケースをテストケース記憶部109に記憶させるようにしても良い。ここで、図に示すように、テストケース表には、「Y」が入力された数を、行ごと、列ごとに示す「cnt」の項目を設けることができる。
テストケース記憶部109には、テストケース生成部108によって生成されたテストケース候補値やテストケースが記憶される。
In addition, the test
The test
対応関係入力部110は、テストケース生成部108が生成したテストケース毎に、そのテストケースに対応するテスト項目を対応付ける対応関係の入力を受け付ける。例えば、図11は、テストケース表に入力された対応関係の例を示す図である。符号aに示すように、テストケースに対応するテスト項目の欄に、「Y」の文字を入力することにより対応関係を示している。また、このようなテストケースに応じた戻り値の入力を受け付け、戻り値の欄に入力する。
The
判定部111は、対応関係入力部110に入力された対応関係に基づいて、テストケースが対応付けられていないテスト項目が存在するか否かを判定する。ここで、判定部111は、図11の符号aに示す箇所において、「Y」が入力された数を行毎に算出し、符号aの左のcnt列に入力する。ここで、cnt列に0が入力された行があれば、テスト項置くに対応するテストケースが生成されていないと考えられる。
The
警告部112は、判定部111が、テストケースが対応付けられていないテスト項目が存在すると判定すると、警告を出力する。警告とは、例えば、警告文が表示されたポップアップ画面を表示するようにしても良いし、例えばcnt列が0である行を赤文字や網掛け等により強調するようにしても良い。警告部112が警告を出力すると、テストケース表生成部103が、警告に応じてユーザから追加入力される必要なテストケースを受け付けて、テストケース記憶部109に記憶させる。これにより、テスト項目の全てについてテストケースが対応付けられた後に、テストプログラムを生成するようにすることができる。
If the
テストプログラム生成部113は、生成されたテストケース表に基づいてテストプログラムを生成する。テストプログラム生成部113は、判定部111によってテストケースが対応付けられていないテスト項目が存在しないと判定された場合に、テストプログラムを生成するようにしても良い。図12は、テストプログラム生成部113が生成するテストプログラムのソースコードの例を示す図である。符号aの箇所には、対応するテスト項目が記載され、符号b、cの箇所にはテストケースに指定された引数が記載され、符号dの箇所には戻り値が記載される。ここでは、テスト対象のソフトウェアプログラムに対するドライバやスタブ等も生成される。
The test
次に、本実施形態によるプログラムテスト支援装置100の動作例を説明する。テストケース表生成部103は、テストケース表雛形記憶部102に記憶されているテストケース表雛形を読み出す(ステップS1)。そして、試験対象記憶部101に記憶されているテスト対象のソフトウェアプログラムを読み出し、ソフトウェアプログラムに含まれるコメントやクラス名等を読み出して、テストケース表に入力する(ステップS2)。テスト項目登録部104は、テスト項目の入力を受け付け、テスト項目記憶部105に記憶させる(ステップS3)。
Next, an operation example of the program
テストケース表生成部103は、言語仕様記憶部107に記憶された言語仕様と、業務仕様記憶部106に記憶された業務使用とを読み出し、同値分割や境界値分析等のテスト技法に基づいてテストケース候補値を算出し、テストケース表に入力する(ステップS4)。そして、テストケース表生成部103は、テストケース生成技法に基づいてテストケースを生成し、テストケース表に入力する(ステップS5)。対応関係入力部110は、テスト項目とテストケースとの対応関係の入力を受け付ける(ステップS6)。そして、判定部111が、テストケースが対応付けられていないテスト項目が存在するか否かを判定する(ステップS7)。
The test case
ここで、判定部111が、テストケースが対応付けられていないテスト項目が存在すると判定すると、警告部112が警告を出力する(ステップS8)。テストケース表生成部103は新たなテストケースの入力を受け付け(ステップS9)、ステップS7に戻る。ステップS7において、判定部111が、テストケースが対応付けられていないテスト項目が存在しないと判定すると、テストプログラム生成部113が、テストケース表に基づいてテストプログラムを生成し(ステップS10)、処理を終了する。
If the
以上説明したように、本実施形態によれば、業務仕様を考慮し、かつ、ソフトウェアプログラムの品質を検査できる妥当な量のテストケースを生成し、このようなテストケースに基づくテストプログラムを生成することができる。これにより、過剰な量のテストを行わずに、テスト対象のプログラムの品質を検査することができる。また、テスト項目とテストケースとを視覚的に対応付けるテストケース表を生成するので、ユーザは、テストケース表をみながら、テストケースの過不足や妥当性を効率良く確認することができる。 As described above, according to the present embodiment, a reasonable amount of test cases that can check the quality of software programs are generated in consideration of business specifications, and a test program based on such test cases is generated. be able to. Thereby, the quality of the program to be tested can be inspected without performing an excessive amount of tests. Also, since the test case table that visually associates the test items with the test cases is generated, the user can efficiently check the excess or deficiency of the test cases and the validity while viewing the test case table.
なお、本発明における処理部の機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することによりプログラムテストの支援を行ってもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。また、「コンピュータシステム」は、ホームページ提供環境(あるいは表示環境)を備えたWWWシステムも含むものとする。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムが送信された場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリ(RAM)のように、一定時間プログラムを保持しているものも含むものとする。 In addition, the program for realizing the function of the processing unit in the present invention is recorded on a computer-readable recording medium, and the program recorded on the recording medium is read into a computer system and executed to support program testing. May be performed. Here, the “computer system” includes an OS and hardware such as peripheral devices. The “computer system” includes a WWW system having a homepage providing environment (or display environment). The “computer-readable recording medium” refers to a storage device such as a flexible medium, a magneto-optical disk, a portable medium such as a ROM and a CD-ROM, and a hard disk incorporated in a computer system. Further, the “computer-readable recording medium” refers to a volatile memory (RAM) in a computer system that becomes a server or a client when a program is transmitted via a network such as the Internet or a communication line such as a telephone line. In addition, those holding programs for a certain period of time are also included.
また、上記プログラムは、このプログラムを記憶装置等に格納したコンピュータシステムから、伝送媒体を介して、あるいは、伝送媒体中の伝送波により他のコンピュータシステムに伝送されてもよい。ここで、プログラムを伝送する「伝送媒体」は、インターネット等のネットワーク(通信網)や電話回線等の通信回線(通信線)のように情報を伝送する機能を有する媒体のことをいう。また、上記プログラムは、前述した機能の一部を実現するためのものであっても良い。さらに、前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であっても良い。 The program may be transmitted from a computer system storing the program in a storage device or the like to another computer system via a transmission medium or by a transmission wave in the transmission medium. Here, the “transmission medium” for transmitting the program refers to a medium having a function of transmitting information, such as a network (communication network) such as the Internet or a communication line (communication line) such as a telephone line. The program may be for realizing a part of the functions described above. Furthermore, what can implement | achieve the function mentioned above in combination with the program already recorded on the computer system, and what is called a difference file (difference program) may be sufficient.
100 プログラムテスト支援装置
101 試験対象記憶部
102 テストケース表雛形記憶部
103 テストケース表生成部
104 テスト項目登録部
105 テスト項目記憶部
106 業務仕様記憶部
107 言語仕様記憶部
108 テストケース生成部
109 テストケース記憶部
110 対応関係入力部
111 判定部
112 警告部
113 テストプログラム生成部
DESCRIPTION OF
Claims (5)
単体テストの対象であるソフトウェアプログラムが記憶されている試験対象記憶部と、
前記ソフトウェアプログラムに対して行う単体テストの観点を示すテスト項目が記憶されるテスト項目記憶部と、
前記ソフトウェアプログラムに対して入力する値の組み合わせであるテストケースが記憶されるテストケース記憶部と、
前記値の、前記プログラム言語における型に応じた限界値を示す言語仕様が記憶されている言語仕様記憶部と、
前記ソフトウェアプログラムが利用されるシステムにおける業務仕様に応じた前記値の境界値が含まれる業務仕様が記憶されている業務仕様記憶部と、
前記テスト項目の入力を受け付けて前記テスト項目記憶部に記憶させるテスト項目登録部と、
前記ソフトウェアプログラムと、前記言語仕様と、前記業務仕様とに基づいて、定められたテストケース生成技法に基づいて前記テストケースを生成して前記テストケース記憶部に記憶させるテストケース生成部と、
前記テストケース生成部が生成した前記テストケース毎に、当該テストケースに対応する前記テスト項目を対応付ける対応関係の入力を受け付ける対応関係入力部と、
前記対応関係入力部に入力された前記対応関係に基づいて、前記テストケースが対応付けられていない前記テスト項目が存在するか否かを判定する判定部と、
前記判定部が、前記テストケースが対応付けられていない前記テスト項目が存在すると判定すると、警告を出力する警告部と、
を備えることを特徴とするプログラムテスト支援装置。 A program test support device that supports unit testing of a software program that outputs a processing result obtained by performing information processing that is described in a program language and that is determined according to an input value,
A test target storage unit in which a software program that is a unit test target is stored;
A test item storage unit that stores test items indicating viewpoints of unit tests performed on the software program;
A test case storage unit that stores a test case that is a combination of values input to the software program;
A language specification storage unit storing a language specification indicating a limit value corresponding to a type of the value in the programming language;
A business specification storage unit storing a business specification including a boundary value of the value according to a business specification in a system in which the software program is used;
A test item registration unit that accepts input of the test item and stores it in the test item storage unit;
Based on the software program, the language specification, and the business specification, a test case generation unit that generates the test case based on a predetermined test case generation technique and stores the test case in the test case storage unit,
For each of the test cases generated by the test case generation unit, a correspondence input unit that receives an input of a correspondence relationship that associates the test items corresponding to the test case;
A determination unit that determines whether or not there is the test item that is not associated with the test case based on the correspondence input to the correspondence input unit;
When the determination unit determines that there is the test item that is not associated with the test case, a warning unit that outputs a warning;
A program test support device comprising:
ことを特徴とする請求項1に記載のプログラムテスト支援装置。 The program test support apparatus according to claim 1, wherein the test case generation unit generates the test case based on an All-Pair method that is the test case generation technique.
を備えることを特徴とする請求項1または請求項2に記載のプログラムテスト支援装置。 A test case table generation unit that generates and outputs a test table in the form of a decision table that operates the test case on the condition of the test item;
The program test support apparatus according to claim 1, further comprising:
前記テスト項目の入力を受け付けて前記テスト項目記憶部に記憶させるステップと、
前記ソフトウェアプログラムと、前記言語仕様と、前記業務仕様とに基づいて、定められたテストケース生成技法に基づいて前記テストケースを生成して前記テストケース記憶部に記憶させるステップと、
生成した前記テストケース毎に、当該テストケースに対応する前記テスト項目を対応付ける対応関係の入力を受け付けるステップと、
入力された前記対応関係に基づいて、前記テストケースが対応付けられていない前記テスト項目が存在するか否かを判定するステップと、
前記テストケースが対応付けられていない前記テスト項目が存在すると判定すると、警告を出力するステップと、
を備えることを特徴とするプログラムテスト支援方法。 Test target storage unit that supports unit testing of software programs that output processing results that have been processed in accordance with the values that are described in the program language and that are input, and that stores software programs that are targets of unit testing A test item storage unit that stores a test item indicating a viewpoint of a unit test performed on the software program, and a test case storage unit that stores a test case that is a combination of values input to the software program; , A language specification storage unit storing a language specification indicating a limit value corresponding to a type in the programming language of the value, and a boundary value of the value corresponding to a business specification in a system in which the software program is used A business specification storage unit that stores the business specifications included A program test support method of program test support equipment,
Receiving the test item input and storing it in the test item storage unit;
Generating the test case based on a test case generation technique determined based on the software program, the language specification, and the business specification, and storing the test case in the test case storage unit;
For each of the generated test cases, receiving a correspondence input that associates the test items corresponding to the test cases;
Determining whether or not there is the test item not associated with the test case based on the input correspondence relationship;
If it is determined that the test item that is not associated with the test case exists, outputting a warning;
A program test support method comprising:
前記テスト項目の入力を受け付けて前記テスト項目記憶部に記憶させるステップと、
前記ソフトウェアプログラムと、前記言語仕様と、前記業務仕様とに基づいて、定められたテストケース生成技法に基づいて前記テストケースを生成して前記テストケース記憶部に記憶させるステップと、
生成した前記テストケース毎に、当該テストケースに対応する前記テスト項目を対応付ける対応関係の入力を受け付けるステップと、
入力された前記対応関係に基づいて、前記テストケースが対応付けられていない前記テスト項目が存在するか否かを判定するステップと、
前記テストケースが対応付けられていない前記テスト項目が存在すると判定すると、警告を出力するステップと、
を実行させるためのプログラムテスト支援プログラム。 Test target storage unit that supports unit testing of software programs that output processing results that have been processed in accordance with the values that are described in the program language and that are input, and that stores software programs that are targets of unit testing A test item storage unit that stores a test item indicating a viewpoint of a unit test performed on the software program, and a test case storage unit that stores a test case that is a combination of values input to the software program; , A language specification storage unit storing a language specification indicating a limit value corresponding to a type in the programming language of the value, and a boundary value of the value corresponding to a business specification in a system in which the software program is used A business specification storage unit that stores the business specifications included The computer of the program test support equipment,
Receiving the test item input and storing it in the test item storage unit;
Generating the test case based on a test case generation technique determined based on the software program, the language specification, and the business specification, and storing the test case in the test case storage unit;
For each of the generated test cases, receiving a correspondence input that associates the test items corresponding to the test cases;
Determining whether or not there is the test item not associated with the test case based on the input correspondence relationship;
If it is determined that the test item that is not associated with the test case exists, outputting a warning;
Program test support program for running
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2011120854A JP5690657B2 (en) | 2011-05-30 | 2011-05-30 | Program test support device, program test support method, program test support program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2011120854A JP5690657B2 (en) | 2011-05-30 | 2011-05-30 | Program test support device, program test support method, program test support program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2012248101A JP2012248101A (en) | 2012-12-13 |
| JP5690657B2 true JP5690657B2 (en) | 2015-03-25 |
Family
ID=47468470
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2011120854A Active JP5690657B2 (en) | 2011-05-30 | 2011-05-30 | Program test support device, program test support method, program test support program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5690657B2 (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6037307B2 (en) * | 2013-02-15 | 2016-12-07 | 国立研究開発法人産業技術総合研究所 | Test data generator |
| JP6369102B2 (en) * | 2014-04-04 | 2018-08-08 | 富士電機株式会社 | Software test support system |
| WO2017199517A1 (en) * | 2016-05-19 | 2017-11-23 | 株式会社Nttドコモ | Test selection device |
| CN108255653B (en) * | 2018-01-02 | 2021-05-04 | 深圳壹账通智能科技有限公司 | Product testing method and terminal thereof |
| JP7629880B2 (en) * | 2022-01-25 | 2025-02-14 | 株式会社日立製作所 | Program modification support system and program modification support method |
-
2011
- 2011-05-30 JP JP2011120854A patent/JP5690657B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2012248101A (en) | 2012-12-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Abduganiev | Towards automated web accessibility evaluation: a comparative study | |
| CN108628741A (en) | Webpage test method, device, electronic equipment and medium | |
| US20140033011A1 (en) | Defining Hints for Dynamic Selection of Default Render/Submit/Runtime Configuration | |
| JP5690657B2 (en) | Program test support device, program test support method, program test support program | |
| CN110931097A (en) | Processing and analyzing system for inspection report | |
| Ha et al. | Using lean six sigma methodology to improve a mass immunizations process at the United States naval academy | |
| US9304785B2 (en) | Localizing a software product | |
| US10324970B2 (en) | Feedback analysis for content improvement tasks | |
| Sajida et al. | Evaluating public website performance: Content analyses on Malang City Government website | |
| US20170068931A1 (en) | Method and system for providing continuous reference architecture and bill of material modeling | |
| WO2025206954A1 (en) | System and method for automated grading and quality assessment of educational content | |
| WO2022130650A1 (en) | Analysis assistance program, analysis assistance device, and analysis assistance method | |
| KR101691929B1 (en) | An apparatus for implementing an automation of a web user interface and method therefor | |
| WO2023249855A1 (en) | Customized agreement validation | |
| de Oliveira et al. | A software acceptance testing approach with accessibility for the deaf | |
| Sivaji et al. | Enhancing the effectiveness of usability evaluation by automated heuristic evaluation system | |
| JP2004110378A (en) | Object-oriented development supporting method and device | |
| US12493835B2 (en) | Systems and methods of evaluating socio-economic and environmental impact | |
| CN113297082A (en) | Product quality evaluation method and device | |
| JP2007108979A (en) | Project plan validity check method and program | |
| Mehdawi et al. | Usability Evaluation of a Locally Developed Software in Libya Using IsoMetrics | |
| Zulkifly¹ et al. | Integrated Payment Gateway Adoption by Women-Owned Micro, Small and Medium Enterprises (MSMEs) | |
| Kathiravan et al. | Financial accounting of ISO 9001: 1994 based on quality information system | |
| Susanti et al. | UI/UX Design of the “PrintOn!” Printing Services Marketplace for UMKM Photocopying and Printing Businesses Using the User Centered Design Method | |
| Owen et al. | Integration of Natural Language Processing for Self-Healing in Software Documentation |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20130515 |
|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20130816 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20130828 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20140530 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140617 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140730 |
|
| 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: 20150106 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20150202 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 5690657 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |