JP2016110327A - Test case specification joining program, method, and device - Google Patents
Test case specification joining program, method, and device Download PDFInfo
- Publication number
- JP2016110327A JP2016110327A JP2014246197A JP2014246197A JP2016110327A JP 2016110327 A JP2016110327 A JP 2016110327A JP 2014246197 A JP2014246197 A JP 2014246197A JP 2014246197 A JP2014246197 A JP 2014246197A JP 2016110327 A JP2016110327 A JP 2016110327A
- Authority
- JP
- Japan
- Prior art keywords
- combination
- test case
- test
- test cases
- conditional
- 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.)
- Withdrawn
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
本発明は、テストケース仕様書結合プログラム、方法及び装置に関する。 The present invention relates to a test case specification combination program, method, and apparatus.
従来、統合テストにおいて、複数のシステム仕様書それぞれからテストケース仕様書を生成し、これらのテストケース仕様書を結合して1つの統合テスト仕様書を生成する技術が知られている。 2. Description of the Related Art Conventionally, in integration testing, a technique is known in which a test case specification is generated from each of a plurality of system specifications and a single integrated test specification is generated by combining these test case specifications.
テストケース仕様書の結合においては、通常、網羅性向上のため、全てのテストケース仕様書に含まれるテストケースの全組合せの充足可能性を確認する。このため、仕様書が多い場合や、仕様書が多くのテストケースを含む場合には、組合せの数が膨大になり(爆発し)、処理に長時間を要する又は処理に失敗するおそれがある。 When combining test case specifications, it is common to check the satisfiability of all combinations of test cases included in all test case specifications to improve completeness. For this reason, when there are many specifications or when the specifications include many test cases, the number of combinations becomes enormous (explodes), and there is a possibility that the processing will take a long time or the processing may fail.
また、システム仕様書が正常又は異常に分類されるテストケースを含む場合(例えば、チェック系仕様書)には、実際には無効となるはずのテストケースの組合せが統合テスト仕様書に含まれる可能性がある。 In addition, when the system specifications include test cases classified as normal or abnormal (for example, check specifications), a combination of test cases that should actually be invalid can be included in the integrated test specifications. There is sex.
1つの側面では、本発明は、効率的に有効なテストケースの組合せを決定することが可能なテストケース仕様書結合プログラム、方法及び装置を提供することを目的とする。 In one aspect, an object of the present invention is to provide a test case specification combination program, method, and apparatus capable of efficiently determining effective test case combinations.
一つの態様では、テストケース仕様書結合プログラムは、順序が予め定まっている複数のテストケース仕様書を結合するテストケース仕様書結合プログラムであって、前記複数のテストケース仕様書に含まれるテストケースを正常と異常の2種類に分類し、前記順序と、分類された前記テストケースの種類と、に基づいて特定されるテストケースの組合せの中から、取得済みの条件節を格納する格納部に格納されていない条件節を含み、該格納部に格納されていない条件節の数が最も多いテストケースの組合せを取得する処理と、取得した前記テストケースの組合せが充足可能な組合せかを判定する処理と、取得した前記テストケースの組合せに含まれる条件節を前記格納部に格納する処理とを、所定のタイミングまで繰り返し、充足可能な組合せと判定された前記テストケースの組合せを出力する、処理をコンピュータに実行させ、前記所定のタイミングは、前記格納部に格納された条件節が、前記複数のテストケース仕様書に含まれる全ての条件節と一致したタイミングである、テストケース仕様書結合プログラムである。 In one aspect, the test case specification combination program is a test case specification combination program for combining a plurality of test case specifications having a predetermined order, and the test cases included in the plurality of test case specifications. Is stored in a storage unit for storing acquired conditional clauses from combinations of test cases identified based on the order and the types of the classified test cases. A process for acquiring a combination of test cases including the conditional clauses that are not stored and having the largest number of conditional clauses not stored in the storage unit, and determining whether the acquired combination of test cases is a satisfactory combination The process and the process of storing the conditional clause included in the acquired combination of the test cases in the storage unit can be repeated until a predetermined timing is satisfied. Output a combination of the test cases determined to be combined, cause the computer to execute processing, and at the predetermined timing, the conditional clauses stored in the storage unit are all included in the plurality of test case specifications. This is a test case specification combination program that has the same timing as the conditional clause.
効率的に有効なテストケースの組合せを決定することができる。 An efficient combination of test cases can be determined.
以下、統合テスト装置の一実施形態について、図1〜図12に基づいて詳細に説明する。本実施形態の統合テスト装置10は、金融システム向けに、複数のシステム(SS:System Specification)仕様書から、統合テスト(IT:Integration Test)仕様書を自動生成する装置である。
Hereinafter, an embodiment of the integrated test apparatus will be described in detail with reference to FIGS. The
図1には、一実施形態に係るテストケース仕様書結合装置としての統合テスト装置10のハードウェア構成が示されている。図1に示すように、統合テスト装置10は、CPU(Central Processing Unit)90、ROM(Read Only Memory)92、RAM(Random Access Memory)94、記憶部(ここではHDD(Hard Disk Drive))96、ネットワークインタフェース97、表示部93、入力部95、及び可搬型記憶媒体用ドライブ99等を備えている。これら統合テスト装置10の構成各部は、バス98に接続されている。統合テスト装置10では、ROM92あるいはHDD96に格納されているプログラム(テストケース仕様書結合プログラムを含む)、或いは可搬型記憶媒体用ドライブ99が可搬型記憶媒体91から読み取ったプログラム(テストケース仕様書結合プログラムを含む)をCPU90が実行することにより、図2に示す機能が実現される。
FIG. 1 shows a hardware configuration of an integrated
図2には、統合テスト装置10の機能ブロック図が示されている。統合テスト装置10では、CPU90がプログラムを実行することで、プログラム変換部12、テストケース仕様書生成部14、テストケース仕様書結合部16、IT仕様書変換部18としての機能が実現されている。
FIG. 2 shows a functional block diagram of the integrated
プログラム変換部12は、SS仕様書(例えばEXCELデータ)をそれぞれJava(登録商標)プログラムに変換する。
The
テストケース仕様書生成部14は、シンボリック実行技術を用いてJava(登録商標)プログラムを解析し、テストケース仕様書(XMLデータ)を生成する。
The test case
テストケース仕様書結合部16は、全てのテストケース仕様書に含まれるテストケースの組合せのうち充足可能な組合せを抽出し、結合したテストケース仕様書として出力する。なお、テストケース仕様書結合部16の詳細については、後述する。
The test case
IT仕様書変換部18は、結合したテストケース仕様書(XMLデータ)を、人間が理解可能なIT仕様書(例えばEXCELデータ)に変換する。
The IT
ここで、本実施形態におけるテストケース仕様書の一例について、図3、図4に基づいて説明する。 Here, an example of the test case specification in the present embodiment will be described with reference to FIGS.
図3は、ATM(Automated Teller Machine)の利用シナリオの統合テスト内容を示し、図4は、図3の統合テストを実行するためのテストケース仕様書の例を示している。図3に示すように、統合テストのチェック項目は6種類(通帳、カード、取引、暗証番号、金額、エラー)あり、各チェック項目に対してあり得るチェック内容が定まっている。本例では、図4に示すように、テストケース仕様書は3つ(X,Y,Z)となり、XとYはチェック系の仕様書で、Zは更新系の仕様書である。ここで、チェック系仕様書とは、システム状態やユーザ入力の様々な条件をチェックし、チェック結果によって正常ケースと異常ケースに分割するものである。一方、更新系仕様書は、システム状態やユーザ入力の様々な条件をチェックし、チェック結果によってシステム状態やユーザ入力値を更新する物である。また、各テストケース仕様書には順序が予め決められており、本例では、X→Y→Zとなっている。更に、テストケース仕様書Xは9件のテストケースを有し、テストケース仕様書Yは4件のテストケースを有し、テストケース仕様書Zは4件のテストケースを有する。 FIG. 3 shows the contents of an integration test of an ATM (Automated Teller Machine) usage scenario, and FIG. 4 shows an example of a test case specification for executing the integration test of FIG. As shown in FIG. 3, there are six types of integration test check items (passbook, card, transaction, password, amount, and error), and the possible check contents are determined for each check item. In this example, as shown in FIG. 4, there are three test case specifications (X, Y, Z), where X and Y are check system specifications, and Z is an update system specification. Here, the check system specifications check various conditions of the system state and user input, and divide into normal cases and abnormal cases according to the check results. On the other hand, the update system specification is for checking various conditions of the system state and user input and updating the system state and user input value according to the check result. The order of each test case specification is determined in advance, and in this example, X → Y → Z. Further, the test case specification X has nine test cases, the test case specification Y has four test cases, and the test case specification Z has four test cases.
例えば、テストケース仕様書Xの場合、ID=X01,X02では、通帳記帳において、カードの有無を問わず、通帳が挿入されていなければエラーになることが示されている。また、ID=X03〜X06では、預入れにおいて、カード及び通帳のいずれか、又は両方でも預入れが可能だが、カード及び通帳の両方がなければエラーになることが示されている。また、ID=X07〜X09では、引き出しの場合、通帳の有無を問わず、カードが挿入されていなければエラーとなり、暗証番号が正しくない場合にもエラーとなることが示されている。 For example, in the case of the test case specification X, ID = X01 and X02 indicate that in the passbook entry, an error occurs if no passbook is inserted regardless of the presence or absence of a card. Further, ID = X03 to X06 indicates that, in depositing, it is possible to deposit either or both of a card and a passbook, but an error occurs if both the card and the passbook are not present. In addition, ID = X07 to X09 indicates that in the case of withdrawal, an error occurs if a card is not inserted regardless of whether there is a bankbook, and an error occurs even if the password is not correct.
また、テストケース仕様書Yの場合、ID=Y01,Y02では、引き出しの場合に、金額が50万円を超えるとエラーになることが示されている。また、ID=Y03,Y04では、預入れの場合に、100万円を超えるとエラーになることが示されている。 In the case of the test case specification Y, ID = Y01 and Y02 indicate that an error occurs if the amount exceeds 500,000 yen in the case of withdrawal. Further, ID = Y03, Y04 indicates that an error occurs if the deposit exceeds 1 million yen.
また、テストケース仕様書Zの場合、ID=Z01〜Z04では、条件によって更新処理が異なることが示されている。 Further, in the case of the test case specification Z, ID = Z01 to Z04 indicates that the update process varies depending on the conditions.
図5には、図2のテストケース仕様書結合部16の具体的な機能ブロック図が示されている。図5に示すように、テストケース仕様書結合部16は、分類部としての前処理部20、テストケース組合せ取得部22、充足可能性判定部24、出力部としての後処理部26を有する。なお、テストケース組合せ取得部22及び充足可能性判定部24を含んで処理部の機能が実現されている。
FIG. 5 shows a specific functional block diagram of the test case
前処理部20は、テストケース仕様書生成部14から出力されたテストケース仕様書(XMLデータ)を読み込み、条件を解析する。また、前処理部20は、テストケース仕様書に含まれる各テストケースを正常ケースと異常ケースに分割する。また、前処理部20は、全てのテストケースに含まれる条件節の集合(全条件節集合Call)を作成する。
The preprocessing
テストケース組合せ取得部22は、テストケースの組合せを1組ずつ作成し、その組合せが所定条件を満たす場合に、充足可能性判定を行う組合せとして取得する。
The test case
充足可能性判定部24は、テストケース組合せ取得部22が取得したテストケースの組合せをSATソルバ(Satisfiability Solver)実行用数式コードに変換する。また、充足可能性判定部24は、SATソルバ実行用数式コードを入力とし、SATソルバを実行して、充足可能(SAT)となった組合せを抽出する。ここで、SATソルバは、Yicesなどであり、与えられた条件や式を解析して充足可能性を判定する。この場合、SATソルバは、与えられた条件や式を満たす解釈やモデル、値セットが1つでも見つかった場合に充足可能(SAT)を出力し、見つからなかった場合に充足不可能(UNSAT)を出力する。
The
後処理部26は、テストケースのIDを整理するなどして、充足可能なテストケースの組合せを正規化し、正規化したテストケースの組合せをXMLデータに変換して、IT仕様書変換部18に出力する。
The
次に、本実施形態のテストケース仕様書結合部16が実行する処理について、図6のフローチャートに沿って詳細に説明する。図6の処理の前提として、図7(a)に示すようなテストケース仕様書がテストケース仕様書生成部14から入力されるものとする。具体的には、テストケース仕様書は、X,Y,Zの3種類があり、X,Yがチェック系仕様書で、Zが更新系仕様書となっている。また、テストケース使用書の順序は、X→Y→Zの順となっており、生成されたテストケース件数(テストケース仕様書が含むテストケースの数)は、Xが4、Yが4、Zが3となっている。
Next, processing executed by the test case
また、テストケース仕様書の各テストケースの条件(前処理部20によるXML解析後のテストケースのIDと条件式)は、図7(b)のようになっているものとする。なお、条件式は、実際には、図4に示すような式となる場合が多いが、本実施形態では、図7(b)に示すように、条件式を分かり易く表現するために変数(A,B…)を用いることとしている。図7(b)の各条件に含まれる変数は、図7(c)の変数のタイプ・値一覧に示すようになっている。なお、図7(b)の例では、error=0が正常を意味し、error=1が異常を意味している。また、テストケース仕様書Zは更新系仕様書であるため、正常ケース、異常ケースを分割するためのerror節は存在しない。 Further, it is assumed that the conditions for each test case in the test case specification (ID and conditional expression of the test case after the XML analysis by the preprocessing unit 20) are as shown in FIG. In practice, the conditional expression is often an expression as shown in FIG. 4, but in the present embodiment, as shown in FIG. 7B, a variable ( A, B ...) is used. The variables included in each condition in FIG. 7B are as shown in the variable type / value list in FIG. 7C. In the example of FIG. 7B, error = 0 means normal and error = 1 means abnormal. Further, since the test case specification Z is an updated specification, there is no error clause for dividing the normal case and the abnormal case.
また、前処理部20は、図6の処理の前に、テストケース仕様書に含まれる各テストケースを正常ケースと異常ケースに分割する。この場合、前処理部20は、各テストケースに含まれるerror節に基づいて、図8(a)に示すテストケースを、図8(b)に示すように正常ケース(上段)と、異常ケース(下段)とに分割する。なお、テストケース仕様書Zは、更新系仕様書であるので、全てのテストケースが正常ケースとなる。また、各テストケースのerror節は、分割後に各条件から削除される。なお、図6の処理が開始される時点では、選択済条件節集合Cselectedを空にしておく(図11の最上段参照)。なお、選択済条件節集合Cselectedには、テストケース組合せ取得部22が取得したテストケースの組合せに含まれる条件節が随時格納される。なお、予め正常ケースと異常ケースに分割されている場合には、上記処理は不要となる。
Further, the preprocessing
図6の処理では、まず、ステップS10において、前処理部20が、全条件節の和集合を全条件節集合Callとする。具体的には、図9において(1)〜(6)を付して示すように、各テストケースに含まれる条件節を取り出し、その和集合を全条件節集合Callとする。
In the process of FIG. 6, first, in step S10, the preprocessing
次いで、ステップS12では、テストケース組合せ取得部22が、次の組合せを取得する。ここで、テストケース組合せ取得部22は、以下の条件の下、次の組合せを取得する。
(A)正常ケースを多く含むテストケースの組合せを優先する。
(B)テストケース組合せに含まれる条件節のうち、選択済条件節集合Cselectedに含まれない条件節が多い組合せを優先して選択する。
(C)空の異常ケースを含む組合せは空とする、という条件の下、次の組合せを取得する。
Next, in step S12, the test case
(A) A combination of test cases including many normal cases is given priority.
(B) Among the conditional clauses included in the test case combination, a combination having a large number of conditional clauses not included in the selected conditional clause set C selected is preferentially selected.
(C) The following combination is acquired under the condition that a combination including an empty abnormal case is empty.
上記(A)の条件を適用すると、図10(a)の(1)に示すように、「X_正常→Y_正常→Z_正常」が最優先となる。また、次に優先されるのは、「X_正常→Y_正常→Z_異常」だが、Z_異常は空であるので、(C)の条件より、組合せが空となる。また、次に優先されるのは、「X_正常→Y_異常」であり、その次に優先されるのは、「X_異常」である。なお、図10(b)は、(A)、(C)の条件を適用した場合の優先順をまとめたテーブルである。 When the condition (A) is applied, “X_normal → Y_normal → Z_normal” has the highest priority as shown in (1) of FIG. The next priority is “X_normal → Y_normal → Z_abnormal”, but Z_abnormal is empty, so the combination is empty from the condition (C). The next priority is “X_normal → Y_abnormal”, and the next priority is “X_abnormal”. FIG. 10B is a table summarizing the priority order when the conditions (A) and (C) are applied.
したがって、ステップS12では、テストケース組合せ取得部22は、最も優先される「X_正常→Y_正常→Z_正常」の組合せの1つ(ここでは、X01→Y01→Z01を取得する(図11の符号(S12−1)参照)。なお、以下においては、テストケースの組合せを「X01Y01Z01」のように表記する。
Accordingly, in step S12, the test case
次いで、ステップS14では、テストケース組合せ取得部22が、条件節の和集合Ccombを取得する。この場合、テストケースの組合せX01Y01Z01においては、Ccombとして、「A=1 & B<100 & C!="p" & C!="q" & B>0 & D=true」が取得される(図11の符号(S14−1)参照)。
Next, in step S14, the test case
次いで、ステップS16では、テストケース組合せ取得部22が、Ccomb⊂Cselectedであるか否かを判断する。すなわち、テストケース組合せに含まれる全ての条件節が選択済条件節集合Cselectedに含まれる条件節に含まれているか否かを判断する。ここでは、Cselectedは、空であるので、判断は否定され、ステップS18に移行する。なお、ステップS16の判断が肯定された場合には、ステップS12に移行する。
Next, in step S <b> 16, the test case
ステップS18に移行すると、テストケース組合せ取得部22は、条件を組み合わせる。次いで、ステップS20では、充足可能性判定部24は、組み合わせた条件の充足可能性判定をSATソルバにより実行する。なお、ここでは、図11の符号(S20−1)に示すように、SATソルバの結果、SATであったとする。
If transfering it to step S18, the test case
次いで、ステップS22では、充足可能性判定部24が、SATソルバの結果、SATであったか否かを判断する。ここでの判断が否定された場合には、ステップS12に移行するが、肯定された場合には、ステップS24に移行する。
Next, in step S22, the
ステップS24に移行すると、充足可能性判定部24は、テストケースの組合せを出力のテストケース組合せに追加する(図11の符号(S24−1)参照)。次いで、ステップS26では、充足可能性判定部24が、テストケースの組合せに含まれる条件節のうち選択済条件節集合Cselectedに既存しない条件節をCselectedに追加する。この場合、ステップS14で取得した条件節の和集合Ccombの全てが選択済条件節集合Cselectedに追加される(図11の符号(S26−1)参照)。
In step S24, the
次いで、ステップS28では、充足可能性判定部24が、Cselected=Callであるか否かを判断する。なお、本処理においては、全てのテストケースの全ての条件節が、少なくとも1回、出力のテストケース組合せに出現していればよいという概念に基づいて、ステップS28の判断は行われる。ここでは、図9の全条件節集合Callと、選択済条件節集合Cselectedとは一致しないので、判断は否定され、ステップS12に戻る。
Next, in step S28, the
ステップS12に戻ると、上述した処理を繰り返す。すなわち、ステップS12では、テストケース組合せ取得部22は、最も優先される「X_正常→Y_正常→Z_正常」の組合せのうち、上述した(B)の条件(テストケース組合せに含まれる条件節のうち、選択済条件節集合Cselectedに含まれない条件節が多い組合せを優先して選択する)に基づいて、テストケースの組合せを取得する。ここでは、最も優先されるX_正常→Y_正常→Z_正常の組合せのうち(B)の条件を満たす組合せ「X03Y04Z02」が取得される(図11の符号(S12−2)参照)。
When returning to step S12, the above-described processing is repeated. That is, in step S12, the test case
次いで、ステップS14では、テストケース組合せ取得部22が、組合せ「X03Y04Z02」の条件節の和集合Ccombとして「A=2 & B≧200 & A!=3 & C="s" & B>300 & D=false」を取得する(図11の符号(S14−2)参照)。その後、ステップS16の判断が否定されると、ステップS18において、条件が組み合わされ、ステップS20において、充足可能性判定部24は、組み合わせた条件の充足可能性判定をSATソルバにより実行する。なお、ここでは、図11の符号(S20−2)に示すように、SATソルバの結果、SATであったとする。従って、ステップS22の判断は肯定され、ステップS24において、充足可能性判定部24は、テストケースの組合せを出力のテストケース組合せに追加する(図11の符号(S24−2)参照)。次いで、ステップS26では、充足可能性判定部24が、テストケースの組合せに含まれる条件節のうち選択済条件節集合Cselectedに既存しない条件節(図11の符号(S14−2)において下線を付した全ての条件節)をCselectedに追加する(図11の符号(S26−2)参照)。その後は、ステップS28において、充足可能性判定部24が、Cselected=Callであるか否かを判断する。ここでは、図9の全条件節集合Callと、選択済条件節集合Cselectedとは一致しないので、ステップS28の判断は否定され、ステップS12に戻る。
Next, in step S14, the test case
ステップS12に戻ると、テストケース組合せ取得部22は、上記と同様、最も優先される「X_正常→Y_正常→Z_正常」の組合せから次の組合せを取得しようとする。ただし、選択済条件節集合Cselectedに含まれない条件節を有するテストケースの組合せが存在していない(S16:肯定)。したがって、テストケース組合せ取得部22は、次に優先される「X_正常→Y_異常」の組合せ(図10(a)、図10(b)の(3)の組合せ)の中から次の組合せを取得する。この場合、テストケース組合せ取得部22は、図12に示すように、(B)の条件に基づいて、テストケースの組合せ「X01Y02」を取得する(符号(S12−3)参照)。
Returning to step S12, the test case
次いで、ステップS14では、テストケース組合せ取得部22が、組合せ「X01Y02」の条件節の和集合Ccombとして「A=1 & B<100 & A!=2 & C!="p"」を取得する(図12の符号(S14−3)参照)。その後、ステップS16の判断が否定されると、ステップS18において、条件が組み合わされ、ステップS20において、充足可能性判定部24は、組み合わせた条件の充足可能性判定をSATソルバにより実行する。なお、ここでは、図12の符号(S20−3)に示すように、SATソルバの結果、SATであったとする。従って、ステップS22の判断は肯定され、ステップS24において、充足可能性判定部24は、テストケースの組合せを出力のテストケース組合せに追加する(図12の符号(S24−3)参照)。次いで、ステップS26では、充足可能性判定部24が、テストケースの組合せに含まれる条件節のうち選択済条件節集合Cselectedに既存しない条件節(図12の符号(S14−3)において下線を付した条件節)をCselectedに追加する(図12の符号(S26−3)参照)。その後は、ステップS28において、充足可能性判定部24が、Cselected=Callであるか否かを判断する。ここでは、図9の全条件節集合Callと、選択済条件節集合Cselectedとは一致しないので、ステップS28の判断は否定され、ステップS12に戻る。
Subsequently, in step S14, the test case
ステップS12に戻ると、テストケース組合せ取得部22は、上記と同様、「X_正常→Y_異常」の組合せの中から次の組合せを取得する。この場合、テストケース組合せ取得部22は、図12に示すように、(B)の条件に基づいて、テストケースの組合せ「X03Y03」を取得する(符号(S12−4)参照)。
Returning to step S12, the test case
次いで、ステップS14では、テストケース組合せ取得部22が、組合せ「X03Y03」の条件節の和集合Ccombとして「A=2 & B≧200 & A!=3 & C="p"」を取得する(図12の符号(S14−4)参照)。その後、ステップS16の判断が否定されると、ステップS18において、条件が組み合わされ、ステップS20において、充足可能性判定部24は、組み合わせた条件の充足可能性判定をSATソルバにより実行する。なお、ここでは、図12の符号(S20−4)に示すように、SATソルバの結果、SATであったとする。従って、ステップS22の判断は肯定され、ステップS24において、充足可能性判定部24は、テストケースの組合せを出力のテストケース組合せに追加する(図12の符号(S24−4)参照)。次いで、ステップS26では、充足可能性判定部24が、テストケースの組合せに含まれる条件節のうち選択済条件節集合Cselectedに既存しない条件節(図12の符号(S14−4)において下線を付した条件節)をCselectedに追加する(図12の符号(S26−4)参照)。その後は、ステップS28において、充足可能性判定部24が、Cselected=Callであるか否かを判断する。ここでは、図9の全条件節集合Callと、選択済条件節集合Cselectedとは一致するので、ステップS28の判断は肯定され、ステップS30に移行する。
Subsequently, in step S14, the test case
ステップS30に移行すると、充足可能性判定部24は、最初の仕様書が異常の組合せがあれば、出力のテストケース組合せにそのまま追加する。本実施形態では、「X_異常」である「X02」と「X04」が、出力のテストケース組合せに追加される(図12の符号(S30−1)、(S30−2)参照)。ステップS30の後は、ステップS32に移行し、後処理部26は、出力のテストケース組合せをXMLデータに変換して、IT仕様書変換部18に出力する。その後は、図6の全処理が終了する。
In step S30, the
ここで、本実施形態では、図6の処理を実行することにより、SATソルバを網羅的に実行する場合と比べて、実行回数を減少することができる。本例ではSATソルバの実行回数は4回で済む。また、出力のテストケース組合せは、全て有効なものとなる。 Here, in the present embodiment, the number of executions can be reduced by executing the processing of FIG. 6 as compared to the case of exhaustively executing the SAT solver. In this example, the SAT solver needs to be executed four times. In addition, all combinations of output test cases are valid.
(比較例)
次に、比較例について、図13〜図19に基づいて説明する。
(Comparative example)
Next, a comparative example will be described based on FIGS.
図13には、比較例の手順の概要が示されている。図13に示すように、比較例においては、(1)テストケース仕様書から、テストケースの全組合せを網羅的に生成し、(2)SATソルバによる充足可能性判定により充足可能な組合せを抽出し、(3)条件網羅によりテストケース組合せを絞り込む処理を実行する。なお、条件網羅による絞込みについては、上記実施形態と同様、全てのテストケースの全ての条件節が、少なくとも1回、出力のテストケース組合せに出現していればよいという概念に基づいている。以下、比較例における処理の主体は、「テストケース仕様書結合部16’」であるものとして、説明する。
FIG. 13 shows an outline of the procedure of the comparative example. As shown in FIG. 13, in the comparative example, (1) all combinations of test cases are comprehensively generated from the test case specifications, and (2) combinations that can be satisfied are extracted by the satisfiability determination by the SAT solver. (3) A process of narrowing down test case combinations through condition coverage is executed. Note that narrowing down by condition coverage is based on the concept that all conditional clauses of all test cases only need to appear in the output test case combination at least once, as in the above embodiment. In the following description, it is assumed that the subject of processing in the comparative example is the “test case
この比較例の手順を実現するため、まず、(1)テストケース仕様書結合部16’は、X,Y、Zの全組合せを網羅的な順番に取得し、図14、図15に示すように、4×4×3=48件のテストケース組合せを生成する。なお、error節は比較例では用いないので、図14、図15では削除している。また、条件節が重複する組合せは、1つを残し、その他を削除する。例えば、図14のNo.13と、No.15が重複し、No.16とNo.18が重複するので、No.13とNo.16を残し、No.15とNo.18を削除する。
In order to realize the procedure of this comparative example, first, (1) the test case
次いで、(2)テストケース仕様書結合部16’は、各テストケースの組合せの充足可能性判定をSATソルバにより実行し、SATな組合せのみを抽出する。なお、図14、図15の条件節のうち、下線が付された条件節は、UNSATの原因となった競合する条件節を意味する。この場合、図14、図15に示すような充足可能性の判定結果から、図16の上段に示すような26組の組合せが抽出されることになる。
Next, (2) the test case
次いで、(3−1)テストケース仕様書結合部16’は、全てのテストケースの組合せの条件節の和集合を求め、全条件節集合Callを作成する(図16の下段参照)。次いで、(3−2)テストケース仕様書結合部16’は、選択済条件節集合Cselectedを空にし、(3−3)テストケース組合せを1つずつ取得し、チェックを行う。
Next, (3-1) the test case
(3−3)のチェックにおいては、テストケース仕様書結合部16’は、取得したテストケースの組合せの条件節の全てが、選択済条件節集合Cselectedに既存するか否かをチェックし、既存している場合には、そのテストケースの組合せを消去する。一方、取得したテストケースの組合せの条件節の少なくとも1つが選択済条件節集合Cselectedに既存していない場合には、取得したテストケースの組合せを消去せずに、既存していない条件節を選択済条件節集合Cselectedに含める。そして、選択済条件節集合Cselectedが全条件節集合Callと一致した場合に、チェックを終了する。
In the check of (3-3), the test case
具体的には、テストケース仕様書結合部16’は、図17に示すように、No.1、No.2…の順にテストケースの組合せを取得して、チェックを行う。すなわち、No.1のテストケースの組合せが取得されると、条件節の全てが選択済条件節集合Cselectedに含まれていないので、組合せは消去されずに、条件節の全てが選択済条件節集合Cselectedに含められる(図17の実線矢印)。次いで、No.2の組合せが取得されると、条件節の全てが選択済条件節集合Cselectedに含まれているので、組合せは消去される。この場合、選択済み条件節集合Cselectedには何も含められない(図17の破線矢印)。また、No.3の組合せが取得されると、条件節の一部が選択済条件節集合Cselectedに含まれていないので、組合せは消去されずに、選択済条件節集合Cselectedに含まれていない条件節が選択済条件節集合Cselectedに含められる。次いで、No.4の組合せが取得されると、条件節の全てが選択済条件節集合Cselectedに含まれているので、組合せは消去される。以降、No.17の組合せまで同様の処理を実行すると、選択済条件節集合Cselectedが全条件節集合Callと一致するので、チェックを終了する(No.18〜26のチェックは行わない)。 Specifically, as shown in FIG. 1, no. The test case combinations are acquired in the order of 2. That is, no. When the combination of one test case is acquired, all of the conditional clauses are not included in the selected conditional clause set C selected. Therefore, the combination is not deleted and all of the conditional clauses are selected in the selected conditional clause set C selected. (Solid arrow in FIG. 17). Then, No. When the combination of 2 is acquired, since all of the conditional clauses are included in the selected conditional clause set C selected , the combination is deleted. In this case, nothing is included in the selected conditional clause set C selected (broken arrow in FIG. 17). No. When the combination of 3 is acquired, since a part of the conditional clause is not included in the selected conditional clause set C selected , the combination is not deleted, and the conditional clause not included in the selected conditional clause set C selected. Are included in the selected conditional clause set C selected . Then, No. When the combination of 4 is acquired, since all of the conditional clauses are included in the selected conditional clause set C selected , the combination is deleted. Hereinafter, no. When the same processing is executed up to 17 combinations, the selected conditional clause set C selected matches all the conditional clause sets C all , so the check ends (Nos. 18 to 26 are not checked).
以上の処理により、比較例では、図18(a)に示すような6つのテストケースの組合せを出力することになる。図18(b)には、比較例と本実施形態におけるSATソルバの実行回数及び絞込みでの条件チェック回数を対比した表が示されている。比較例においては、SATソルバの実行回数が48回となり、絞込みでの条件チェック回数(図17のチェック回数)が17回となった。一方、本実施形態では、前述のように、SATソルバの回数が4回、絞込みでの条件チェック回数も4回となっている。この結果から、本実施形態では、SATソルバの実行回数、絞込みでの条件チェック回数を減少させることができたことがわかる。 With the above processing, in the comparative example, a combination of six test cases as shown in FIG. FIG. 18B shows a table comparing the number of executions of the SAT solver and the number of condition checks in narrowing down in the comparative example and the present embodiment. In the comparative example, the number of executions of the SAT solver was 48, and the number of condition checks in narrowing down (the number of checks in FIG. 17) was 17. On the other hand, in the present embodiment, as described above, the number of SAT solvers is four, and the number of condition checks in narrowing is four. From this result, it can be seen that in the present embodiment, the number of executions of the SAT solver and the number of condition checks in narrowing down can be reduced.
また、比較例においては、図19に示すように、無効となる組合せが4つ存在する。例えば、組合せ「X01Y02Z01」は、Y02が異常ケースであり、Z01と組み合わせても無駄であり、実際には無効になる組合せである。また、組合せ「X01Y03Z03」も、Y03が異常ケースであるので、Z03と組み合わせても無駄であり、実際には無効になる組合せである。また、「X02Y01Z02」は、X02が異常ケースであるため、Y01,Z02と組み合わせても無駄であり、実際には無効になる組合せである。更に、「X03Y03Z02」は、Y03が異常ケースであるため、Z02と組み合わせても無駄であり、実際には無効になる組合せである。これに対し、本実施形態では、予めテストケースを正常ケースと、異常ケースとに分けてテストケースを組合せているため、無効な組合せは出力されないという利点がある。 Further, in the comparative example, there are four invalid combinations as shown in FIG. For example, the combination “X01Y02Z01” is a combination in which Y02 is an abnormal case, is useless even when combined with Z01, and is actually invalid. Further, the combination “X01Y03Z03” is also a combination that is useless even in combination with Z03 because Y03 is an abnormal case, and is actually invalid. Further, “X02Y01Z02” is a combination that is useless even in combination with Y01 and Z02 because X02 is an abnormal case, and is actually invalid. Further, “X03Y03Z02” is a combination that is useless even in combination with Z02 because Y03 is an abnormal case, and is actually invalid. On the other hand, the present embodiment has an advantage that an invalid combination is not output because the test case is divided into a normal case and an abnormal case in advance to combine the test cases.
以上、詳細に説明したように、本実施形態によると、前処理部20が、順序が予め定まっている複数のテストケース仕様書に含まれるテストケースを正常ケースと異常ケースの2種類に分類する。そして、テストケース組合せ取得部22が実行する、順序と、分類されたテストケースの種類(正常ケース又は異常ケース)と、に基づいて特定されるテストケースの組合せの中から、選択済条件節集合Cselectedに含まれていない条件節を含み、その数が最も多いテストケースの組合せを取得する処理(S14、S16)と、充足可能性判定部24が実行する、取得したテストケースの組合せが充足可能な組合せかをSATソルバにより判定する処理(S20)と、取得したテストケースの組合せに含まれる条件節を選択済条件節集合Cselectedに追加する処理(S26)を、選択済条件節集合Cselectedに含まれる条件節と全条件節集合Callに含まれる条件節とが一致するまで繰り返し(S28)、後処理部26が、充足可能(SAT)と判定されたテストケースの組合せを出力する(S32)。これにより、テストケースを正常ケースと異常ケースに分割し、分割した結果に基づいてテストケースの組合せを特定するので、無効なテストケースの組合せが出力されるのを抑制することができる。特に、本実施形態では、テストケース組合せ取得部22は、テストケースの組合せを取得する際に、正常ケースを優先し、異常ケースの後に他のテストケースを組み合わせないこととしているので、無効なテストケースの組合せが出力されるのを防止することができる。また、上記のように正常ケースと異常ケースに分類して処理することで、テストケース仕様書が多い場合でも組合せが爆発する可能性が低くなり、処理の効率化を図ることが可能となる。また、選択済条件節集合Cselectedに含まれていない条件節を最も多く含むテストケースの組合せからSATソルバを実行し、当該テストケースの組合せに含まれる条件節を選択済条件節集合Cselectedに追加するので、網羅的にテストケースを特定する場合と比較して、選択済条件節集合Cselectedに含まれる条件節と全条件節集合Callに含まれる条件節とが一致するまでの時間を短くすることができるとともに、SATソルバの回数を低減することができる。更に、選択済条件節集合Cselectedに含まれていない条件節を含むテストケースの組合せについてのみ、充足可能な組合せかをSATソルバにより判定する(S20)ので、比較例のようにSATソルバによる判定の後に選択済条件節集合Cselectedに含まれていない条件節を含むか否かを判断する場合と比べ、SATソルバの回数を低減することができる。以上のように、本実施形態によれば、効率的に有効なテストケースの組合せを決定することができる。
As described above in detail, according to the present embodiment, the preprocessing
また、本実施形態では、後処理部26は、順序が最初のテストケース仕様書(X)に含まれる異常ケースをIT仕様書変換部18に出力する。これにより、他のテストケースと組み合わせることがないが、独立して充足可能なテストケースを漏れなく出力することが可能となる。
In the present embodiment, the
なお、上記実施形態では、金融システム向けのテスト仕様書に関する処理について説明したが、これに限らず、その他のチェック系仕様書を含む複数のテストケース仕様書を結合する処理において、上記実施形態を適用することも可能である。 In the above-described embodiment, the processing related to the test specification for the financial system has been described. However, the present invention is not limited to this, and the above-described embodiment is not limited to the processing for combining a plurality of test case specifications including other check-type specifications. It is also possible to apply.
なお、上記の処理機能は、コンピュータによって実現することができる。その場合、処理装置が有すべき機能の処理内容を記述したプログラムが提供される。そのプログラムをコンピュータで実行することにより、上記処理機能がコンピュータ上で実現される。処理内容を記述したプログラムは、コンピュータで読み取り可能な記録媒体(ただし、搬送波は除く)に記録しておくことができる。 The above processing functions can be realized by a computer. In that case, a program describing the processing contents of the functions that the processing apparatus should have is provided. By executing the program on a computer, the above processing functions are realized on the computer. The program describing the processing contents can be recorded on a computer-readable recording medium (except for a carrier wave).
プログラムを流通させる場合には、例えば、そのプログラムが記録されたDVD(Digital Versatile Disc)、CD−ROM(Compact Disc Read Only Memory)などの可搬型記録媒体の形態で販売される。また、プログラムをサーバコンピュータの記憶装置に格納しておき、ネットワークを介して、サーバコンピュータから他のコンピュータにそのプログラムを転送することもできる。 When the program is distributed, for example, it is sold in the form of a portable recording medium such as a DVD (Digital Versatile Disc) or a CD-ROM (Compact Disc Read Only Memory) on which the program is recorded. It is also possible to store the program in a storage device of a server computer and transfer the program from the server computer to another computer via a network.
プログラムを実行するコンピュータは、例えば、可搬型記録媒体に記録されたプログラムもしくはサーバコンピュータから転送されたプログラムを、自己の記憶装置に格納する。そして、コンピュータは、自己の記憶装置からプログラムを読み取り、プログラムに従った処理を実行する。なお、コンピュータは、可搬型記録媒体から直接プログラムを読み取り、そのプログラムに従った処理を実行することもできる。また、コンピュータは、サーバコンピュータからプログラムが転送されるごとに、逐次、受け取ったプログラムに従った処理を実行することもできる。 The computer that executes the program stores, for example, the program recorded on the portable recording medium or the program transferred from the server computer in its own storage device. Then, the computer reads the program from its own storage device and executes processing according to the program. The computer can also read the program directly from the portable recording medium and execute processing according to the program. Further, each time the program is transferred from the server computer, the computer can sequentially execute processing according to the received program.
上述した実施形態は本発明の好適な実施の例である。但し、これに限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変形実施可能である。 The above-described embodiment is an example of a preferred embodiment of the present invention. However, the present invention is not limited to this, and various modifications can be made without departing from the scope of the present invention.
なお、以上の実施形態の説明に関して、更に以下の付記を開示する。
(付記1) 順序が予め定まっている複数のテストケース仕様書を結合するテストケース仕様書結合プログラムであって、
前記複数のテストケース仕様書に含まれるテストケースを正常と異常の2種類に分類し、
前記順序と、分類された前記テストケースの種類と、に基づいて特定されるテストケースの組合せの中から、取得済みの条件節を格納する格納部に格納されていない条件節を含み、該格納部に格納されていない条件節の数が最も多いテストケースの組合せを取得する処理と、取得した前記テストケースの組合せが充足可能な組合せかを判定する処理と、取得した前記テストケースの組合せに含まれる条件節を前記格納部に格納する処理とを、所定のタイミングまで繰り返し、
充足可能な組合せと判定された前記テストケースの組合せを出力する、処理をコンピュータに実行させ、
前記所定のタイミングは、前記格納部に格納された条件節が、前記複数のテストケース仕様書に含まれる全ての条件節と一致したタイミングである、ことを特徴とするテストケース仕様書結合プログラム。
(付記2) 前記出力する処理では、更に、前記順序が最初のテストケース仕様書に含まれる異常に分類されたテストケースを出力する、ことを特徴とする付記1に記載のテストケース仕様書結合プログラム。
(付記3) 前記繰り返す処理において、前記テストケースの組合せを特定する際に、正常に分類されたテストケースを優先し、異常に分類されたテストケースと前記順序が該異常に分類されたテストケースの後方のテストケースとは組み合わせない、ことを特徴とする付記1又は2に記載のテストケース仕様書結合プログラム。
(付記4) 順序が予め定まっている複数のテストケース仕様書を結合するテストケース仕様書結合方法であって、
前記複数のテストケース仕様書に含まれるテストケースを正常と異常の2種類に分類し、
前記順序と、分類された前記テストケースの種類と、に基づいて特定されるテストケースの組合せの中から、取得済みの条件節を格納する格納部に格納されていない条件節を含み、該格納部に格納されていない条件節の数が最も多いテストケースの組合せを取得する処理と、取得した前記テストケースの組合せが充足可能な組合せかを判定する処理と、取得した前記テストケースの組合せに含まれる条件節を前記格納部に格納する処理とを、所定のタイミングまで繰り返し、
充足可能な組合せと判定された前記テストケースの組合せを出力する、処理をコンピュータが実行し、
前記所定のタイミングは、前記格納部に格納された条件節が、前記複数のテストケース仕様書に含まれる全ての条件節と一致したタイミングである、ことを特徴とするテストケース仕様書結合方法。
(付記5) 前記出力する処理では、更に、前記順序が最初のテストケース仕様書に含まれる異常に分類されたテストケースを出力する、ことを特徴とする付記4に記載のテストケース仕様書結合方法。
(付記6) 前記繰り返す処理において、前記テストケースの組合せを特定する際に、正常に分類されたテストケースを優先し、異常に分類されたテストケースと前記順序が該異常に分類されたテストケースの後方のテストケースとは組み合わせない、ことを特徴とする付記4又は5に記載のテストケース仕様書結合方法。
(付記7) 順序が予め定まっている複数のテストケース仕様書を結合するテストケース仕様書結合装置であって、
前記複数のテストケース仕様書に含まれるテストケースを正常と異常の2種類に分類する分類部と、
前記順序と、分類された前記テストケースの種類と、に基づいて特定されるテストケースの組合せの中から、取得済みの条件節を格納する格納部に格納されていない条件節を含み、該格納部に格納されていない条件節の数が最も多いテストケースの組合せを取得する処理と、取得した前記テストケースの組合せが充足可能な組合せかを判定する処理と、取得した前記テストケースの組合せに含まれる条件節を前記格納部に格納する処理とを、所定のタイミングまで繰り返す処理部と、
充足可能な組合せと判定された前記テストケースの組合せを出力する出力部と、を備え、
前記所定のタイミングは、前記格納部に格納された条件節が、前記複数のテストケース仕様書に含まれる全ての条件節と一致したタイミングである、ことを特徴とするテストケース仕様書結合装置。
(付記8) 前記出力部は、前記順序が最初のテストケース仕様書に含まれる異常に分類されたテストケースを更に出力する、ことを特徴とする付記7に記載のテストケース仕様書結合装置。
(付記9) 前記処理部は、前記テストケースの組合せを特定する際に、正常に分類されたテストケースを優先し、異常に分類されたテストケースと前記順序が該異常に分類されたテストケースの後方のテストケースとは組み合わせない、ことを特徴とする付記7又は8に記載のテストケース仕様書結合装置。
In addition, the following additional remarks are disclosed regarding description of the above embodiment.
(Supplementary note 1) A test case specification combining program for combining a plurality of test case specifications having a predetermined order,
The test cases included in the plurality of test case specifications are classified into two types, normal and abnormal,
A combination of test cases identified based on the order and the type of the classified test case, including a conditional clause that is not stored in a storage unit that stores the acquired conditional clause; A process for acquiring a combination of test cases having the largest number of conditional clauses not stored in a section, a process for determining whether the acquired combination of test cases is a satisfactory combination, and a combination of the acquired test cases The process of storing the conditional clause included in the storage unit is repeated until a predetermined timing,
Outputting a combination of the test cases determined to be a satisfactory combination, causing the computer to execute a process;
The test case specification combination program, wherein the predetermined timing is a timing at which a conditional clause stored in the storage unit matches all conditional clauses included in the plurality of test case specifications.
(Supplementary Note 2) The test case specification combination according to
(Additional remark 3) In the said repeating process, when specifying the combination of the said test case, the test case classified normally is given priority, and the test case classified as abnormal and the test case classified as the abnormal The test case specification combination program according to
(Supplementary Note 4) A test case specification combining method for combining a plurality of test case specifications having a predetermined order,
The test cases included in the plurality of test case specifications are classified into two types, normal and abnormal,
A combination of test cases identified based on the order and the type of the classified test case, including a conditional clause that is not stored in a storage unit that stores the acquired conditional clause; A process for acquiring a combination of test cases having the largest number of conditional clauses not stored in a section, a process for determining whether the acquired combination of test cases is a satisfactory combination, and a combination of the acquired test cases The process of storing the conditional clause included in the storage unit is repeated until a predetermined timing,
A computer executes a process of outputting a combination of the test cases determined to be a satisfactory combination,
The test case specification combining method, wherein the predetermined timing is a timing at which a conditional clause stored in the storage unit coincides with all conditional clauses included in the plurality of test case specifications.
(Additional remark 5) In the said output process, the test case specification combined | bonding of
(Additional remark 6) In the said repeating process, when specifying the combination of the said test cases, the test case classified normally is given priority, and the test case classified as abnormal and the test case classified as the abnormal The test case specification combining method according to
(Appendix 7) A test case specification combining device for combining a plurality of test case specifications having a predetermined order,
A classification unit for classifying the test cases included in the plurality of test case specifications into two types of normal and abnormal,
A combination of test cases identified based on the order and the type of the classified test case, including a conditional clause that is not stored in a storage unit that stores the acquired conditional clause; A process for acquiring a combination of test cases having the largest number of conditional clauses not stored in a section, a process for determining whether the acquired combination of test cases is a satisfactory combination, and a combination of the acquired test cases A processing unit that repeats the process of storing the included conditional clause in the storage unit until a predetermined timing;
An output unit that outputs the combination of the test cases determined to be a satisfactory combination, and
The test case specification combining apparatus, wherein the predetermined timing is a timing at which a conditional clause stored in the storage unit coincides with all conditional clauses included in the plurality of test case specifications.
(Supplementary note 8) The test case specification combining device according to
(Additional remark 9) When the said process part specifies the combination of the said test case, it gives priority to the test case classified normally, the test case classified abnormally, and the test case in which the said order was classified into this
10 統合テスト装置(テストケース仕様書結合装置)
20 前処理部(分類部)
22 テストケース組合せ取得部(処理部の一部)
24 充足可能性判定部(処理部の一部)
26 後処理部(出力部)
10 Integrated test device (Test case specification combining device)
20 Pre-processing part (classification part)
22 Test case combination acquisition unit (part of processing unit)
24 Satisfiability determination unit (part of processing unit)
26 Post-processing section (output section)
Claims (5)
前記複数のテストケース仕様書に含まれるテストケースを正常と異常の2種類に分類し、
前記順序と、分類された前記テストケースの種類と、に基づいて特定されるテストケースの組合せの中から、取得済みの条件節を格納する格納部に格納されていない条件節を含み、該格納部に格納されていない条件節の数が最も多いテストケースの組合せを取得する処理と、取得した前記テストケースの組合せが充足可能な組合せかを判定する処理と、取得した前記テストケースの組合せに含まれる条件節を前記格納部に格納する処理とを、所定のタイミングまで繰り返し、
充足可能な組合せと判定された前記テストケースの組合せを出力する、処理をコンピュータに実行させ、
前記所定のタイミングは、前記格納部に格納された条件節が、前記複数のテストケース仕様書に含まれる全ての条件節と一致したタイミングである、ことを特徴とするテストケース仕様書結合プログラム。 A test case specification combining program for combining a plurality of test case specifications having a predetermined order,
The test cases included in the plurality of test case specifications are classified into two types, normal and abnormal,
A combination of test cases identified based on the order and the type of the classified test case, including a conditional clause that is not stored in a storage unit that stores the acquired conditional clause; A process for acquiring a combination of test cases having the largest number of conditional clauses not stored in a section, a process for determining whether the acquired combination of test cases is a satisfactory combination, and a combination of the acquired test cases The process of storing the conditional clause included in the storage unit is repeated until a predetermined timing,
Outputting a combination of the test cases determined to be a satisfactory combination, causing the computer to execute a process;
The test case specification combination program, wherein the predetermined timing is a timing at which a conditional clause stored in the storage unit matches all conditional clauses included in the plurality of test case specifications.
前記複数のテストケース仕様書に含まれるテストケースを正常と異常の2種類に分類し、
前記順序と、分類された前記テストケースの種類と、に基づいて特定されるテストケースの組合せの中から、取得済みの条件節を格納する格納部に格納されていない条件節を含み、該格納部に格納されていない条件節の数が最も多いテストケースの組合せを取得する処理と、取得した前記テストケースの組合せが充足可能な組合せかを判定する処理と、取得した前記テストケースの組合せに含まれる条件節を前記格納部に格納する処理とを、所定のタイミングまで繰り返し、
充足可能な組合せと判定された前記テストケースの組合せを出力する、処理をコンピュータが実行し、
前記所定のタイミングは、前記格納部に格納された条件節が、前記複数のテストケース仕様書に含まれる全ての条件節と一致したタイミングである、ことを特徴とするテストケース仕様書結合方法。 A test case specification combining method for combining a plurality of test case specifications having a predetermined order,
The test cases included in the plurality of test case specifications are classified into two types, normal and abnormal,
A combination of test cases identified based on the order and the type of the classified test case, including a conditional clause that is not stored in a storage unit that stores the acquired conditional clause; A process for acquiring a combination of test cases having the largest number of conditional clauses not stored in a section, a process for determining whether the acquired combination of test cases is a satisfactory combination, and a combination of the acquired test cases The process of storing the conditional clause included in the storage unit is repeated until a predetermined timing,
A computer executes a process of outputting a combination of the test cases determined to be a satisfactory combination,
The test case specification combining method, wherein the predetermined timing is a timing at which a conditional clause stored in the storage unit coincides with all conditional clauses included in the plurality of test case specifications.
前記複数のテストケース仕様書に含まれるテストケースを正常と異常の2種類に分類する分類部と、
前記順序と、分類された前記テストケースの種類と、に基づいて特定されるテストケースの組合せの中から、取得済みの条件節を格納する格納部に格納されていない条件節を含み、該格納部に格納されていない条件節の数が最も多いテストケースの組合せを取得する処理と、取得した前記テストケースの組合せが充足可能な組合せかを判定する処理と、取得した前記テストケースの組合せに含まれる条件節を前記格納部に格納する処理とを、所定のタイミングまで繰り返す処理部と、
充足可能な組合せと判定された前記テストケースの組合せを出力する出力部と、を備え、
前記所定のタイミングは、前記格納部に格納された条件節が、前記複数のテストケース仕様書に含まれる全ての条件節と一致したタイミングである、ことを特徴とするテストケース仕様書結合装置。 A test case specification combining device for combining a plurality of test case specifications having a predetermined order,
A classification unit for classifying the test cases included in the plurality of test case specifications into two types of normal and abnormal,
A combination of test cases identified based on the order and the type of the classified test case, including a conditional clause that is not stored in a storage unit that stores the acquired conditional clause; A process for acquiring a combination of test cases having the largest number of conditional clauses not stored in a section, a process for determining whether the acquired combination of test cases is a satisfactory combination, and a combination of the acquired test cases A processing unit that repeats the process of storing the included conditional clause in the storage unit until a predetermined timing;
An output unit that outputs the combination of the test cases determined to be a satisfactory combination, and
The test case specification combining apparatus, wherein the predetermined timing is a timing at which a conditional clause stored in the storage unit coincides with all conditional clauses included in the plurality of test case specifications.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014246197A JP2016110327A (en) | 2014-12-04 | 2014-12-04 | Test case specification joining program, method, and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014246197A JP2016110327A (en) | 2014-12-04 | 2014-12-04 | Test case specification joining program, method, and device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2016110327A true JP2016110327A (en) | 2016-06-20 |
Family
ID=56124274
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014246197A Withdrawn JP2016110327A (en) | 2014-12-04 | 2014-12-04 | Test case specification joining program, method, and device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2016110327A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE112017002777T5 (en) | 2016-06-01 | 2019-02-14 | Toppan Printing Co., Ltd. | A reproduction color profile correction device, a reproduction color profile correction process, a reproduction color profile correction program and a computer readable medium having a reproduction color profile correction program |
-
2014
- 2014-12-04 JP JP2014246197A patent/JP2016110327A/en not_active Withdrawn
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE112017002777T5 (en) | 2016-06-01 | 2019-02-14 | Toppan Printing Co., Ltd. | A reproduction color profile correction device, a reproduction color profile correction process, a reproduction color profile correction program and a computer readable medium having a reproduction color profile correction program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11790679B2 (en) | Data extraction and duplicate detection | |
US20220215389A1 (en) | Transaction authorization process using blockchain | |
US11321349B2 (en) | Deployment of object code | |
US8616443B2 (en) | Systems and methods employing delimiter searches to identify sensitive information in data | |
US20110131002A1 (en) | Method for automatic testing of software | |
JP6650502B2 (en) | Determination apparatus, determination method, and determination program | |
US20200410562A1 (en) | Supplier invoice reconciliation and payment using event driven platform | |
US9563669B2 (en) | Closed itemset mining using difference update | |
US20140181007A1 (en) | Trademark reservation system | |
KR20180113144A (en) | Method for processing a payment based on blockchain and Apparatus thereof | |
CN106933689A (en) | A kind of method and apparatus for computing device | |
CN104753909A (en) | Updated information authentication method, device and system | |
CN109901987A (en) | A kind of method and apparatus generating test data | |
US10699029B2 (en) | Data de-identification method, data de-identification apparatus and non-transitory computer readable storage medium executing the same | |
CN111563040A (en) | Block chain intelligent contract code testing method and device | |
CN108510141B (en) | Insurance data processing method and device | |
US9582270B2 (en) | Effective feature location in large legacy systems | |
Reinhartz-Berger et al. | External variability of software: classification and ontological foundations | |
Wirawan et al. | Incorporating transaction lifecycle information in blockchain process discovery | |
CN114358147A (en) | Training method, identification method, device and equipment of abnormal account identification model | |
JP2016110327A (en) | Test case specification joining program, method, and device | |
US20150363889A1 (en) | Methods and Systems for Electronic Receipt Tracking, Storage, and Provision | |
Boubaker et al. | An event-b based approach for ensuring correct configurable business processes | |
JP2017004097A (en) | Information analysis system and information analysis method | |
US20160162818A1 (en) | System and method for recommending data analysis services |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20170804 |
|
A761 | Written withdrawal of application |
Free format text: JAPANESE INTERMEDIATE CODE: A761 Effective date: 20171225 |