JP2018106398A - Test support program and test support device - Google Patents
Test support program and test support device Download PDFInfo
- Publication number
- JP2018106398A JP2018106398A JP2016251582A JP2016251582A JP2018106398A JP 2018106398 A JP2018106398 A JP 2018106398A JP 2016251582 A JP2016251582 A JP 2016251582A JP 2016251582 A JP2016251582 A JP 2016251582A JP 2018106398 A JP2018106398 A JP 2018106398A
- Authority
- JP
- Japan
- Prior art keywords
- test
- test case
- processor
- equal
- threshold value
- 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.)
- Pending
Links
Images
Abstract
Description
本発明は、テストを支援するテスト支援プログラムおよびテスト支援装置に関する。 The present invention relates to a test support program and a test support apparatus that support a test.
特許文献1は、過去のテスト結果と優先順位を考慮したテストケースの抽出するテスト支援技術を開示する。また、特許文献2は、テスト対象プログラムの変更箇所に応じて実施対象の個別テストを特定するテスト支援技術を開示する。
ソフトウェア開発プロジェクトでは、プロジェクト終盤の限られた時間の中で、複数人が並行して、開発中のソフトウェアについてテストを実施する。したがって、ソフトウェア開発プロジェクト全体として、作業者間で協調され、かつ、作業効率が良いテスト実施が望まれる。しかしながら、上記技術文献1,2のテスト支援技術は、テストケースの抽出作業を支援するに留まり、ソフトウェア開発プロジェクト全体の作業効率を高めるために抽出されたテストケースをどのように分担、実施すれば良いかまでは支援することができない。
In a software development project, multiple people test the software under development in parallel during a limited time at the end of the project. Therefore, it is desired that the software development project as a whole be tested between the workers and with high work efficiency. However, the test support techniques described in the above
本発明は、テストの効率化を図ることを目的とする。 An object of the present invention is to improve the efficiency of testing.
本願において開示される発明の一側面となるテスト支援プログラムおよびテスト支援装置は、テスト対象に与えられる条件、前記テストにより期待される処理、および当該処理の結果を規定したテストケースに従って、前記テスト対象に対するテストの支援をするテスト支援プログラムおよびテスト支援装置であって、前記プロセッサが、評価対象となる第1テストケースと比較対象となる第2テストケースとを比較する比較処理と、前記比較処理による比較結果に基づいて、前記第1テストケースと前記第2テストケースとの一致度を算出する算出処理と、前記第2テストケースの識別情報と前記算出処理による算出結果とを出力する出力処理と、を実行することを特徴とする。 A test support program and a test support apparatus according to one aspect of the invention disclosed in the present application are provided in accordance with a test case that defines conditions given to a test target, a process expected by the test, and a result of the process. A test support program and a test support apparatus for supporting a test on a computer, wherein the processor compares a first test case to be evaluated with a second test case to be compared, and a comparison process. A calculation process for calculating a degree of coincidence between the first test case and the second test case based on a comparison result; an output process for outputting identification information of the second test case and a calculation result by the calculation process; , Is executed.
本発明の代表的な実施の形態によれば、テストの効率化を図ることができる。前述した以外の課題、構成及び効果は、以下の実施例の説明により明らかにされる。 According to the representative embodiment of the present invention, it is possible to improve the efficiency of the test. Problems, configurations, and effects other than those described above will become apparent from the description of the following embodiments.
本実施例にかかるテスト支援装置は、テスト対象に与えられる条件、テストにより期待される処理、および当該処理の結果を規定したテストケースに従って、テスト対象に対するテストの支援を実行する装置である。テストケースとは、「このような条件下で、この入力が与えられ、このような処理が行われて、このような出力結果が得られる」というような、テスト対象のソフトウェアに与えられる条件、テストにより期待される処理、および当該処理の結果を規定したデータである。なお、テスト対象は、ソフトウェアに限られず、回路などのハードウェアでもよい。 The test support apparatus according to the present embodiment is an apparatus that performs test support for a test target according to a test case that defines conditions given to the test target, a process expected by the test, and a result of the process. A test case is a condition given to the software under test, such as “This input is given under such conditions and such processing is performed and such an output result is obtained.” This data defines the process expected by the test and the result of the process. The test target is not limited to software, but may be hardware such as a circuit.
<テスト支援例>
図1は、テスト支援例を示す説明図である。各入力テストケース100は、複数の作業者の各々が担当しているテストケースである。テスト支援装置101は、入力テストケース100の入力を受け付ける。テスト支援装置101は、データベース(DB102)102を有する。DB102は、過去に実施されたテストケース(過去テストケース)を格納する。
<Example of test support>
FIG. 1 is an explanatory diagram illustrating an example of test support. Each
テスト支援装置101は、(1)複数の作業者が担当している入力テストケース100について、入力テストケース100同士の比較を行い、比較結果110を出力する。比較結果110において類似していれば、テスト支援装置101は、作業効率化を促すコメントデータ120を出力する。複数の作業者は、コメントデータ120内のコメントを参照することにより、協同してテストをおこなったり、重複するテストを省略したりすることができる。
The test support apparatus 101 (1) compares the
また、テスト支援装置101は、(2)入力テストケース100と、過去テストケースとの比較を行い、比較結果110を出力する。比較結果110において類似していれば、テスト支援装置101は、類似する過去テストケースの作業ログ130を出力する。また、テスト支援装置101は、類似する過去テストケースとの類似度の内容を詳細に規定した詳細情報140を出力する。
In addition, the
作業者は、作業ログ130や詳細情報140を参照することにより、テスト結果やソフトウェアの改善点を予測したり、過去テストケースを実施した作業者に相談したりすることができる。
By referring to the
このように、テスト支援装置101が、入力テストケース100を、他の入力テストケース100や過去の入力テストケースである過去テストケースと比較することで、作業者は、入力テストケース100が他の入力テストケース100や過去テストケースに類似するか否か、他の入力テストケース100と類似する場合には、どのようなコメントが得られるか、過去テストケースと類似する場合には、どの程度一致するか、を確認することができる。また、入力テストケース100のどの項目が一致し、どの項目が不一致かを確認することができる。
In this way, the
<システム構成例>
図2は、テスト支援システム200のシステム構成例を示す説明図である。テスト支援システム200は、テスト支援装置101と、1台以上の端末201と、を有する。テスト支援装置101と、1台以上の端末201とは、インターネット、LAN(Local Area Network)、WAN(Wide Area Network)などのネットワーク210を介して通信可能に接続される。
<System configuration example>
FIG. 2 is an explanatory diagram showing a system configuration example of the
<ハードウェア構成例>
図3は、コンピュータ(テスト支援装置101および端末201)のハードウェア構成例を示すブロック図である。コンピュータ300は、プロセッサ301と、記憶デバイス302と、入力デバイス303と、出力デバイス304と、通信インターフェース(通信IF305)と、を有する。プロセッサ301、記憶デバイス302、入力デバイス303、出力デバイス304、および通信IF305は、バス306により接続される。プロセッサ301は、コンピュータ300を制御する。記憶デバイス302は、プロセッサ301の作業エリアとなる。また、記憶デバイス302は、テスト支援プログラムを含む各種プログラムやデータを記憶する非一時的なまたは一時的な記録媒体である。記憶デバイス302としては、たとえば、ROM(Read Only Memory)、RAM(Random Access Memory)、HDD(Hard Disk Drive)、フラッシュメモリがある。入力デバイス303は、データを入力する。入力デバイス303としては、たとえば、キーボード、マウス、タッチパネル、テンキー、スキャナがある。出力デバイス304は、データを出力する。出力デバイス304としては、たとえば、ディスプレイ、プリンタがある。通信IF305は、ネットワーク210と接続し、データを送受信する。
<Hardware configuration example>
FIG. 3 is a block diagram illustrating a hardware configuration example of a computer (the
<テストケースの一例>
図4は、入力テストケースの一例を示す説明図である。入力テストケース100は、テスト支援装置101に入力されるテストケースである。入力テストケース100は、たとえば、まだテストに使用されていないテストケースである。入力テストケース100は、項目401と内容402とを有する。項目401は、入力テストケース100を区分けした詳細情報であり、たとえば、作業者ID411、テストID412、環境413、準備414、実行415、結果416を含む。内容402は、各項目411〜416の具体的なデータである。
<Example of test case>
FIG. 4 is an explanatory diagram illustrating an example of an input test case. The
作業者ID411は、入力テストケース100を用いてテストの作業をおこなう作業者を一意に特定する識別情報である。なお、図示はしないが、作業者ID411は、作業者の氏名や所属先に関連付けられているものとする。テストID412は、テストおよびテストケースを一意に特定する識別情報である。環境413は、テストケースを用いてテストを実行する環境である。準備414は、テスト実行前に必要な準備作業である。実行415は、テストの実行内容である。結果416は、テスト実行後に確認すべき結果である。環境413および準備414は、テスト対象に与えられる条件に該当する。実行415は、テストにより期待される処理に該当する。結果416は、当該処理の結果に該当する。
The
図5は、過去テストケースの一例を示す説明図である。過去テストケースTC0は、入力テストケース100がテストに用いられたことにより、入力テストケース100にテストログ517が付与されたテストケースである。過去テストケースTC0は、図1に示したDB102に格納される。過去テストケースTC0は、入力テストケース100と同様、項目401と内容402とを有する。項目401は、入力テストケース100を区分けした詳細情報であり、過去テストケースTC0では、たとえば、作業者ID411、テストID412、環境413、準備414、実行415、結果416のほか、テストログ517を含む。内容402は、各項目の具体的なデータである。テストログ517は、テストケースを用いたテストの実行結果を記述したファイルである。なお、テストログ517の内容402としては、たとえば、テストログ517にアクセス可能なファイルパスが記述される。
FIG. 5 is an explanatory diagram showing an example of a past test case. The past test case TC0 is a test case in which a
<各種DBおよびテーブル>
DB102およびテーブルについて説明する。DB102またはテーブルの説明において、AAフィールドbbb(AAはフィールド名、bbbは符号)の値を、AAbbbと表記する場合がある。たとえば、テストIDフィールド601の値を、テストID601と表記する。
<Various DBs and tables>
The
図6は、DB102の記憶内容例を示す説明図である。DB102は、テストケースごとにテストケース情報を格納する。テストケース履歴情報とは、テストケースの履歴を示す情報である。具体的には、たとえば、DB102は、テストIDフィールド601と、内容総数フィールド602と、一致回数フィールド603と、を有する。同一行の各フィールドの値の組み合わせにより、1つのテストケース履歴情報を構成する。なお、入力テストケース100は、作業者がテスト支援装置101を操作することにより、DB102に格納される。DB102は、図3の記憶デバイス302またはネットワーク210を介してアクセス可能な外部のサーバ(不図示)により構成される。
FIG. 6 is an explanatory diagram showing an example of the contents stored in the
テストIDフィールド601は、テストIDを格納する記憶領域である。テストID601は、そのテストの過去テストケースTC0の格納場所に関連付けされている。したがって、テストID601が指定されると、その過去テストケースTC0が呼び出される。
The
内容総数フィールド602は、テストID601で特定される過去テストケースTC0に含まれている項目に対応する内容の総数である。ただし、作業者ID411、テストID412、およびテストログ517の内容402は対象外である。すなわち、条件413、準備414、処理415、結果416に対応する内容402の個数が計数される。条件413、準備414、処理415、結果416を特定項目と称す。入力テストケース100がDB102に格納された場合、テスト支援装置101は、入力テストケース100の内容総数602を計数する。図4の例では、内容総数602は、8個である。図5の過去テストケースTC0の場合、内容総数602は、6個である。
The
一致回数フィールド603は、一致回数を格納する記憶領域である。一致回数603とは、テストID601で特定される過去テストケースTC0が入力テストケース100と一致した回数である。ここでの「一致回数603」は、入力テストケース100とテストID601で特定される過去テストケースTC0との全体一致度Mが所定のしきい値Mth以上となった回数である。なお、全体一致度Mの算出方法については後述する。
The
図7は、重み付けテーブルの記憶内容例を示す説明図である。重み付けテーブル700は、項目ごとに重みを設定するテーブルである。重み付けテーブル700は、項目フィールド701と、重みフィールド702と、を有する。重み付けテーブル700は、図3の記憶デバイス302またはネットワーク210を介してアクセス可能な外部のサーバ(不図示)により構成される。
FIG. 7 is an explanatory diagram of an example of the contents stored in the weighting table. The weighting table 700 is a table for setting a weight for each item. The weight table 700 has an
特定項目フィールド701は、値として、環境413、準備414、実行415、結果416を有する。重みフィールド702は、特定項目701ごとの重みを格納する。重み702は、0以上1以下の値とする。重み702は、あらかじめ設定された値で、作業者により任意に変更可能である。また、特定項目701の内容402の個数に応じて自動的に設定されてもよい。たとえば、図4に示した入力テストケース100の場合、環境413、準備414、実行415、結果416の各々の内容402の個数が、1,4,1,2である。したがって、環境413、準備414、実行415、結果416の重み702の比率は、1:4:1:2となる。各特定項目701の重み702の和は、1となるように正規化される。
The
図8は、コメント決定テーブルの記憶内容例を示す説明図である。コメント決定テーブル800は、入力テストケース100に与えられるコメントに関するコメント決定情報を格納するテーブルである。コメント決定テーブル800は、優先度フィールド801と、コメントフィールド802と、しきい値フィールド803と、を有する。同一行の各フィールドの値の組み合わせにより、1つのコメント決定情報を構成する。コメント決定テーブル800は、図3の記憶デバイス302またはネットワーク210を介してアクセス可能な外部のサーバ(不図示)により構成される。
FIG. 8 is an explanatory diagram of an example of the contents stored in the comment determination table. The comment determination table 800 is a table that stores comment determination information related to comments given to the
優先度フィールド801は、優先度を格納する記憶領域である。優先度801とは、コメントの採用順を示す情報であり、たとえば、数値で表現される。本実施例では、数値の値が小さいほど、優先度が高いことを意味する。コメントフィールド802は、優先度801に対応したコメントを格納する記憶領域である。コメント802は、テストケースが他のテストケースと比較された場合にどの程度一致するかを示す文字列である。コメント802は、たとえば、テスト実施方法の調整を促す文字列を表現するテキストデータである。しきい値フィールド803は、特定項目701ごとに、2つの入力テストケース100,100の同一特定項目701間の一致度の基準となるしきい値を格納する記憶領域である。
The
<機能的構成例>
図9は、テスト支援装置101の機能的構成例を示すブロック図である。テスト支援装置101は、たとえば、DB102と、コメント決定テーブル800と、比較部901と、算出部902と、出力部903と、判定部904と、取得部905と、を有する。比較部901〜取得部905は、具体的には、たとえば、図3に示した記憶デバイス302に記憶されたプログラムをプロセッサ301に実行させることで実現される機能である。
<Functional configuration example>
FIG. 9 is a block diagram illustrating a functional configuration example of the
比較部901は、比較処理をプロセッサ301に実行させることで実現される機能である。比較処理は、評価対象となる第1テストケースと比較対象となる第2テストケースとを取得して、これらを比較する処理である。第1テストケースは、たとえば、入力テストケースTC1である。第2テストケースは、第1テストケースとは異なる他の入力テストケースTC2、または、過去テストケースTC0である。比較処理では、プロセッサ301は、入力テストケースTC1、TC2を取得して記憶デバイス302に格納する。また、プロセッサ301は、過去テストケースTC0をDB102から取得して記憶デバイス302に格納する。比較処理では、プロセッサ301は、第1テストケースおよび第2テストケース間で同一の特定項目701どうしを比較する。ここで、第1テストケースおよび第2テストケース間で同一の特定項目701どうしの比較処理例について、具体的に説明する。
The
図10は、対象レコードと比較レコードの比較処理例を示す説明図である。対象レコードとは、第1テストケースである入力テストケースTC1から選ばれた特定項目701のレコードである。比較レコードとは、第2テストケース(入力テストケースTC2または過去テストケースTC0)から選ばれた同一特定項目701のレコードである。比較処理では、比較部901は、第1テストケースおよび第2テストケース間で同一の特定項目701の内容である文字列が一致するか否かにより比較する。
FIG. 10 is an explanatory diagram illustrating an example of comparison processing between a target record and a comparison record. The target record is a record of the
ここでは、例として、入力テストケースTC2を第2テストケースであるとして説明するが、過去テストケースTC0も同様である。また、第1テストケースである入力テストケースTC1は、比較結果フィールド1000を有する。比較結果フィールド1000は、比較処理による比較結果(一致すれば「○」(OK)、不一致であれば「×」(NG))を格納する記憶領域である。
Here, as an example, the input test case TC2 is described as being the second test case, but the past test case TC0 is also the same. The input test case TC1 that is the first test case has a
たとえば、入力テストケースTC1の環境413のレコードを対象レコードとした場合、入力テストケースTC2の環境413のレコードが比較レコードとなる。したがって、比較処理では、比較部901は、対象レコードである入力テストケースTC1の環境413の内容402の文字列「シングル」と、比較レコードである入力テストケースTC2の環境413の内容402の文字列「シングル」と、を比較する。両文字列は一致するため、比較部901は、入力テストケースTC1の比較結果フィールドに、「○」を格納する。
For example, when the record of the
また、たとえば、入力テストケースTC1の準備414のレコードを対象レコードとした場合、入力テストケースTC2の準備414のレコードが比較レコードとなる。入力テストケースTC1の準備414のレコードは、4個の内容402を有し、入力テストケースTC2の準備414のレコードは、3個の内容402を有する。この場合、比較処理では、比較部901は、両内容402を総当たりで比較する。そして、一致する内容402が1つでもあれば、比較部901は、入力テストケースTC1の比較結果フィールド1000に、「○」を格納し、一致する内容402が1つもなければ、比較部901は、入力テストケースTC1の比較結果フィールド1000に、「×」を格納する。
For example, when the record of the
たとえば、入力テストケースTC1の準備414の内容402のうち文字列「HCP連携」と一致する文字列は、入力テストケースTC2の準備414の内容402に存在する。したがって、比較部901は、内容402が「HCP連携」である入力テストケースTC1の準備414の比較結果フィールド1000に、一致を示す「○」を格納する。内容402の文字列「ADサーバ設定」も同様である。
For example, the character string that matches the character string “HCP cooperation” in the
また、入力テストケースTC1の準備414の内容402のうち文字列「マイグレーション済み」と一致する文字列は、入力テストケースTC2の準備414の内容402に存在しない。したがって、比較部901は、内容402が「マイグレーション済み」である入力テストケースTC1の準備414の比較結果フィールド1000に、不一致を示す「×」を格納する。
In addition, the character string that matches the character string “migrated” in the
また、入力テストケースTC1の準備414の内容402に文字列「ファイルシステム新規作成」が存在するところ、入力テストケースTC2の準備414の内容402に文字列「新規ファイルシステム作成」が存在する。比較処理では、完全一致ではなく、曖昧一致が採用される。曖昧一致検索には、既存の検索技術が採用される。たとえば、曖昧一致検索では、比較部901は、部分一致検索、前方一致検索、および後方一致検索の検索結果や完全一致する文字列の割合により、一致または不一致を判断する。
Further, the character string “new file system creation” exists in the
たとえば、両文字列が前方一致した場合、比較部901は、残存する後続文字列どうしで部分一致検索を実行する。また、両文字列が後方一致した場合、比較部901は、残存する先行文字列どうしで部分一致検索を実行する。また、両文字列が前方一致および後方一致した場合、比較部901は、残存する中間文字列どうしで部分一致検索を実行する。また、両文字列が中間一致した場合、比較部901は、残存する先行文字列および後続文字列どうしで部分一致検索を実行する。比較部901は、これらの検索において、部分一致の割合が所定割合以上であれば、全体として一致すると判定する。
For example, when both character strings match forward, the
上述の「ファイルシステム新規作成」と「新規ファイルシステム作成」の例では、両文字列は、文字列「作成」について後方一致する。比較部901は、残存する文字列「ファイルシステム新規」、「新規ファイルシステム」どうしで部分一致検索を実行する。部分一致検索では、「ファイルシステム新規」を構成する文字列「ファイルシステム」および「新規」はともに、「新規ファイルシステム」に存在するため、部分一致する。したがって、部分一致する割合は、2/2(=100%)である。所定割合を、たとえば、80%とすると、2/2(=100%)は所定割合以上である。このため、「ファイルシステム新規作成」と「新規ファイルシステム作成」は、一致する。したがって、比較部901は、内容402が「ファイルシステム新規作成」である入力テストケースTC1の準備414の比較結果フィールド1000に、一致を示す「○」を格納する。
In the above-described examples of “new file system creation” and “new file system creation”, both character strings are backward-matched with respect to the character string “creation”. The
図9に戻り、算出部902は、プロセッサ301に算出処理を実行させることで実現される機能である。算出処理は、比較処理による比較結果に基づいて、第1テストケースと第2テストケースとの一致度を算出する処理である。比較処理による比較結果とは、比較結果フィールド1000の値(○または×)である。ここで、算出処理例について具体的に説明する。
Returning to FIG. 9, the
図11は、一致度算出例を示す説明図である。算出結果1100は、上述した項目フィールド401と、内容フィールド402と、比較結果フィールド1000と、特定項目一致度フィールド1111と、全体一致度フィールド1112と、を有する。内容402および比較結果1000は、図10に対応する。
FIG. 11 is an explanatory diagram illustrating an example of calculating the degree of coincidence. The
特定項目一致度フィールド1111は、特定項目一致度を格納する記憶領域である。特定項目一致度1111は、第1テストケースおよび第2テストケース間における同一特定項目701の内容402が一致する度合いを示す。特定項目一致度1111は、特定項目701ごとに算出部902によって算出される。特定項目一致度1111は、その特定項目701における内容402の個数のうち比較結果1000が「○」の個数の割合である。たとえば、準備414の内容402の個数は、「HCP連携」、「ADサーバ設定」、「マイグレーション済み」、「ファイルシステム新規作成」の4個である。また、比較結果1000が「○」である内容402は、「HCP連携」、「ADサーバ設定」、「ファイルシステム新規作成」の3個である。したがって、準備414の特定項目一致度1111は、3/4(=75%)である。
The specific item matching
全体一致度フィールド1112は、全体一致度Mを格納する記憶領域である。全体一致度Mは、特定項目一致度1111と特定項目701の重みとを用いて、下記式(1)により算出される。
The overall
M=M1×w1+M2×w2+M3×w3+M4×w4・・・(1) M = M1 × w1 + M2 × w2 + M3 × w3 + M4 × w4 (1)
式(1)において、Mは、全体一致度である。M1は、環境413の特定項目一致度1111、w1は、環境413の重み702である。M2は、準備414の特定項目一致度1111、w2は、準備414の重み702である。M3は、実行415の特定項目一致度1111、w3は、実行415の重み702である。M4は、結果416の特定項目一致度1111、w4は、結果416の重み702である。
In the formula (1), M is the overall matching degree. M1 is the specific
図9に戻り、出力部903は、プロセッサ301に出力処理を実行させることで実現される機能である。出力処理は、第2テストケースの識別情報および算出処理による算出結果1100(以下、まとめて「出力情報」)を出力する処理である。第2テストケースの識別情報とは、第2テストケースが入力テストケースTC2である場合、出力部903は、そのテストID412と算出結果1100を出力する。出力部903は、出力情報を、通信IF305によりネットワーク210を介して端末201に送信したり、出力デバイス(ディスプレイやプリンタ)304に出力したり、記憶デバイス302に格納したりする。
Returning to FIG. 9, the
また、出力部903は、複数の特定項目701の各々の比較結果1000を出力情報として出力してもよい。これにより、具体的にどの特定項目が一致しているかを確認することができる。また、出力部903は、第2テストケースの作成者の識別情報を出力情報として出力してもよい。作成者とは、第2テストケースを作成して、第2テストケースを用いてテストをおこなう作業者である。作成者の識別情報は、作業者ID411である。これにより、入力テストケースTC1の作業者は、特定した作業者とテストについて調整することができる。また、出力部903は、第2テストケースが過去テストケースTC0である場合、テストログ517またはテストログ517の格納場所を示す情報(たとえば、ファイルパス)を出力情報として出力してもよい。これにより、入力テストケースTC1の作業者は、特定したテストログ517を確認することができる。
The
判定部904は、プロセッサ301に判定処理を実行させることで実現される機能である。判定処理は、全体一致度Mがしきい値Mth以上であるか否かを判定する処理である。この場合、出力部903は、判定処理によってしきい値Mth以上であると判定された場合、出力情報を出力することになる。
The
取得部905は、プロセッサ301に取得処理を実行させることで実現される機能である。取得処理は、算出処理によって算出された特定項目一致度に応じたコメントをコメント決定テーブル800から取得する処理である。具体的には、たとえば、取得部905は、特定項目701(環境413、準備414、実行415、結果416)の各特定項目一致度のいずれもが、コメント決定テーブル800のしきい値803以上となる最高の優先度801のコメント802を出力する。
The
たとえば、各特定項目一致度が、すべて90%である場合、取得部905は、優先度801が「1」のコメント802である『テスト内容がほぼ一致しています。重複しているかもしれません。』を取得する。また、各特定項目一致度が、90%(環境413)、80%(準備414)、90%(実行415)、90%(結果416)である場合、優先度801が「1」のしきい値803を充足しない。この場合、優先度801が「2」のしきい値803を充足するため、取得部905は、優先度801が「2」のコメント802である『同じ環境でテストできます。』を取得する。この場合、出力部903は、取得部905によって取得されたコメント802を出力情報として出力することになる。
For example, when all the specific item matching degrees are 90%, the
つぎに、判定部904による他の判定処理について説明する。上述した判定処理では、全体一致度Mがしきい値Mth以上となる過去テストケースTC0の件数が、作業者が想定した目標件数を大幅に下回って出現する場合がある。目標件数を大幅に下回ると、比較すべき過去テストケースTC0不足に陥り、作業者は、目標件数以上となるように、しきい値Mthを試行錯誤して低下させ、テスト支援装置101により、再度テスト支援を実行しなければならない。したがって、作業者の調整負担が増加し、テスト支援の再実行により作業遅延が生じることになる。
Next, another determination process by the
このため、判定部904は、第1判定部941と、第2判定部942と、更新部943と、を有する。第1判定部941は、プロセッサ301に第1判定処理を実行させることで実現される機能である。第1判定処理は、全体一致度Mがしきい値Mth以上であるか否かを判定する処理である。
For this reason, the
第2判定部942は、プロセッサ301に第2判定処理を実行させることで実現される機能である。第2判定処理は、全体一致度Mがしきい値Mth以上となった過去テストケースTC0の件数(以下、一致件数)が目標件数以上であるか否かを判定する処理である。目標件数は、テスト支援装置101(または端末201)から操作入力することで、あらかじめ作業者によって指定された件数(指定件数)である。
The
更新部943は、プロセッサ301に更新処理を実行させることで実現される機能である。更新処理は、しきい値Mthを所定量ΔMth減少させることで、しきい値Mthを更新する処理である。また、更新処理は、全体一致度Mがしきい値Mth以上の一致件数を更新する処理である。
The
これにより、判定部904は、目標件数以上となった時点の一致件数について出力情報を設定することができる。したがって、作業者によるしきい値Mthの調整負担が低減し、テスト支援の再実行により作業遅延を抑制することができる。
Thereby, the
また同様に、上述した判定処理では、全体一致度Mがしきい値Mth以上となる過去テストケースTC0の件数が、作業者が想定した目標件数を大幅に上回って出現する場合がある。目標件数を大幅に上回ると、比較すべき過去テストケースTC0が過剰となり、作業者のチェック負担が増加し、作業遅延が生じることになる。 Similarly, in the determination process described above, the number of past test cases TC0 in which the overall matching degree M is equal to or greater than the threshold value Mth may appear significantly greater than the target number assumed by the operator. When the target number is greatly exceeded, the past test cases TC0 to be compared become excessive, the check burden on the worker increases, and work delay occurs.
このため、判定部904は、第1判定部941と、第2判定部942と、更新部943と、を有する。第1判定部941は、プロセッサ301に第1判定処理を実行させることで実現される機能である。第1判定処理は、全体一致度Mがしきい値Mth以上であるか否かを判定する処理である。
For this reason, the
第2判定部942は、プロセッサ301に第2判定処理を実行させることで実現される機能である。第2判定処理は、全体一致度Mがしきい値Mth以上となった過去テストケースTC0の件数(以下、一致件数)が目標件数以下であるか否かを判定する処理である。目標件数は、テスト支援装置101(または端末201)から操作入力することで、あらかじめ作業者によって指定された件数である。
The
更新部943は、プロセッサ301に更新処理を実行させることで実現される機能である。更新処理は、しきい値Mthを所定量ΔMth増加させることで、しきい値Mthを更新する処理である。また、更新処理は、全体一致度Mがしきい値Mth以上の一致件数を更新する処理である。
The
これにより、判定部904は、目標件数以下となった時点の一致件数について出力情報を設定することができる。したがって、作業者のチェック負担が低減し、作業遅延を抑制することができる。
As a result, the
<出力情報の表示画面例>
つぎに、出力部903によって出力される出力情報の表示画面例について説明する。表示画面は、たとえば、テスト支援装置101または端末201のディスプレイに表示される。
<Example of output information display screen>
Next, a display screen example of output information output by the
図12は、表示画面例1を示す説明図である。表示画面1200は、図1に示した比較結果110を表示する。表示画面1200は、テストIDフィールド1201と、入力テストケース分析結果フィールド1202と、過去テストケース分析結果フィールド1203と、を有する。テストIDフィールド1201は、全体一致度Mがしきい値Mth以上である第2テストケースのテストID412を表示する。入力テストケース分析結果フィールド1202は、入力テストケース分析結果を表示する。入力テストケース分析結果1202は、評価対象の入力テストケースTC1が他の入力テストケースTC2に類似するか否かを示す情報である。類似する場合は「○」、類似しない場合は「×」で表示される。「○」にはハイパーリンクが埋め込まれている。
FIG. 12 is an explanatory diagram showing a display screen example 1. The
作業者は、カーソルCを操作して、「○」をクリックすることができる。「○」の入力テストケース分析結果1202がクリックされると、類似する他の入力テストケースTC2のテストID412、当該他の入力テストケースTC2との全体一致度M、および決定されたコメント802が表示される。たとえば、「○」の入力テストケース分析結果1720がクリックされると、図13の表示画面1300に遷移する。
The operator can operate the cursor C and click “◯”. When the input test
「○」の過去テストケースTC0分析結果がクリックされると、類似する過去テストケースTC0のテストID、当該過去テストケースTC0との全体一致度M、およびテストログの格納場所(ファイルパス)が表示される。たとえば、「○」の入力テストケース分析結果1730がクリックされると、図14の表示画面1400に遷移する。
When the past test case TC0 analysis result of “O” is clicked, the test ID of the similar past test case TC0, the overall matching degree M with the past test case TC0, and the storage location (file path) of the test log are displayed. Is done. For example, when the input test
図13は、表示画面例2を示す説明図である。図13は、評価対象のテストケースに類似する他の入力テストケースに関する表示画面1300である。表示画面1300は、図1に示したコメントデータ120を表示する。具体的には、たとえば、図12に示した「○」の入力テストケース分析結果1720がクリックされたことで遷移した表示画面である。表示画面1300は、テストIDフィールド1301と、全体一致度フィールド1302と、コメントフィールド1303と、を有する。テストIDフィールド1301は、評価対象の入力テストケースTC1に類似する他の入力テストケースTC2のテストID412を表示する。全体一致度フィールド1302は、評価対象の入力テストケースTC1とテストID412で特定される他の入力テストケースTC2との全体一致度Mを表示する。全体一致度1302がクリックされると、特定項目701ごとの内容402および比較結果1000を有する表示画面1500に遷移する(図15を参照)。コメントフィールド1303は、取得部905で取得されたコメント802を表示する。
FIG. 13 is an explanatory diagram illustrating a display screen example 2. FIG. 13 shows a
図14は、表示画面例3を示す説明図である。図14は、評価対象のテストケースに類似する過去テストケースTC0に関する表示画面1400である。表示画面1400は、図1に示した作業ログ130を表示する。具体的には、たとえば、図12に示した「○」の過去テストケースTC0分析結果1730がクリックされたことで遷移した表示画面である。表示画面1400は、テストIDフィールド1401と、全体一致度フィールド1402と、テストログフィールド1403と、を有する。テストIDフィールド1401は、評価対象の入力テストケースTC1に類似する過去テストケースTC0のテストID412を表示する。全体一致度フィールド1402は、評価対象の入力テストケースTC1とテストID412で特定される過去テストケースTC0との全体一致度Mを表示する。全体一致度1402がクリックされると、特定項目701ごとの内容402および比較結果1000を有する表示画面1500に遷移する(図15を参照)。テストログフィールド1403は、テストID412で特定される過去テストケースTC0のテストログ517の格納場所(ファイルパス)を表示する。ファイルパスをカーソルCでクリックすることで、テストログ517にアクセスすることができる。
FIG. 14 is an explanatory diagram showing a display screen example 3. FIG. 14 shows a
図15は、表示画面例4を示す説明図である。図15は、図13または図14の全体一致度1402がクリックされた場合に遷移する表示画面1500である。表示画面1500は、図1に示した詳細情報140を表示する。表示画面1500は、項目フィールド1501と、内容フィールド1502と、比較結果フィールド1503と、を有する。項目フィールド1501は、項目411〜416を表示する。内容フィールド1502は、第1テストケースに類似する第2テストケースの項目411〜416に対応する内容402を表示する。比較結果フィールド1503は、第1テストケースとこれに類似する第2テストケースとの間の特定項目701の比較結果を表示する。
FIG. 15 is an explanatory diagram illustrating a display screen example 4. FIG. 15 shows a
<テスト支援処理>
図16は、テスト支援処理例を示すフローチャートである。テスト支援装置101は、1以上の入力テストケース100(入力テストケース群)を取得する(ステップS1601)。取得した入力テストケース100は記憶デバイス302に格納される。テスト支援装置101は、入力テストケース群の中に未選択の入力テストケース100があるか否かを判断する(ステップS1602)。未選択の入力テストケース100がある場合(ステップS1602:Yes)、テスト支援装置101は、未選択の入力テストケース100を選択する(ステップS1603)。この選択された入力テストケース100が、たとえば、入力テストケースTC1となる。
<Test support processing>
FIG. 16 is a flowchart illustrating an example of test support processing. The
そして、テスト支援装置101は、第1決定処理(ステップS1604)、第2決定処理(ステップS1605)を実行し、ステップS1602に戻る。未選択の入力テストケース100がない場合(ステップS1602:No)、テスト支援装置101は、出力処理を実行し(ステップS1606)、一連の処理を終了する。
Then, the
図17は、図16に示した第1決定処理(ステップS1604)の詳細な処理手順例を示すフローチャートである。テスト支援装置101は、未選択の他の入力テストケース100があるか否かを判断する(ステップS1701)。未選択の他の入力テストケース100がある場合(ステップS1701:Yes)、テスト支援装置101は、未選択の他の入力テストケース100(比較対象の入力テストケース100)を選択する(ステップS1702)。この選択された入力テストケース100が、たとえば、入力テストケースTC2となる。
FIG. 17 is a flowchart showing a detailed processing procedure example of the first determination processing (step S1604) shown in FIG. The
テスト支援装置101は、ステップS1603で選択した入力テストケースTC1(評価対象の入力テストケース)に未選択の特定項目701があるか否かを判断する(ステップS1703)。未選択の特定項目701がある場合(ステップS1703:Yes)、テスト支援装置101は、未選択の特定項目701のレコードを、評価対象の入力テストケースTC1および比較対象の入力テストケースTC2から選択する(ステップS1704)。評価対象の入力テストケースTC1から選択されたレコードを対象レコードと称す。比較対象の入力テストケースTC2から選択されたレコードを比較レコードと称す。
The
テスト支援装置101は、比較処理を実行して(ステップS1705)、ステップS1703に戻る。比較処理(ステップS1705)の詳細については図18で後述する。比較処理(ステップS1705)により、特定項目701ごとの比較結果が得られる。
The
ステップS1703において、未選択の特定項目701がない場合(ステップS1703:No)、テスト支援装置101は、算出処理を実行する(ステップS1706)。算出処理(ステップS1706)では、テスト支援装置101は、特定項目一致度を算出し、算出した特定項目一致度と特定項目701ごとの重み702を用いて、評価対象の入力テストケースTC1と比較対象の入力テストケースTC2との全体一致度Mを算出する。
In step S1703, when there is no unselected specific item 701 (step S1703: No), the
テスト支援装置101は、全体一致度Mがしきい値Mth以上であるか否かを判断する(ステップS1707)。全体一致度Mがしきい値Mth以上である場合(ステップS1707:Yes)、テスト支援装置101は、コメント決定処理を実行する(ステップS1708)。コメント決定処理(ステップS1708)の詳細については、図19で後述する。コメント決定処理(ステップS1708)では、評価対象の入力テストケースTC1と比較対象の入力テストケースTC2とについてのコメント802が決定される。
The
テスト支援装置101は、比較対象の入力テストケースTC2のテストID412、全体一致度M、コメント802、特定項目701の比較結果1000を出力情報に設定し(ステップS1709)、ステップS1701に移行する。また、ステップS1707において、全体一致度Mがしきい値Mth以上でない場合(ステップS1707:No)も、ステップS1701に移行する。
The
ステップS1701において、未選択の他の入力テストケースTC2がない場合(ステップS1701:No)、テスト支援装置101は、第1決定処理(ステップS1604)を終了し、第2決定処理(ステップS1605)に移行する。第2決定処理(ステップS1605)の詳細については、図20で後述する。
In step S1701, when there is no other input test case TC2 that has not been selected (step S1701: No), the
図18は、図17に示した比較処理(ステップS1705)の詳細な処理手順例を示すフローチャートである。テスト支援装置101は、対象レコードの内容に未選択の文字列があるか否かを判断する(ステップS1801)。未選択の文字列がある場合(ステップS1801:Yes)、テスト支援装置101は、対象レコードの内容から未選択の文字列を選択する(ステップS1802)。テスト支援装置101は、比較レコードの内容に、ステップS1802で選択された文字列(選択文字列)に一致する文字列があるか否かを判断する(ステップS1803)。
FIG. 18 is a flowchart showing a detailed processing procedure example of the comparison processing (step S1705) shown in FIG. The
選択文字列に一致する文字列がある場合(ステップS1803:Yes)、テスト支援装置101は、比較結果1000に一致を示す「○」を格納し(ステップS1804)、ステップS1801に戻る。一方、選択文字列に一致する文字列がない場合(ステップS1803:No)、テスト支援装置101は、比較結果1000に不一致を示す「×」を格納し(ステップS1805)、ステップS1801に戻る。ステップS1801において、対象レコードの内容に未選択の文字列がない場合(ステップS1801:No)、テスト支援装置101は、比較処理(ステップS1705)を終了し、ステップS1703に移行する。
If there is a character string that matches the selected character string (step S1803: YES), the
図19は、図17に示したコメント決定処理(ステップS1708)の詳細な処理手順例を示すフローチャートである。テスト支援装置101は、優先度変数PをP=1に設定する(ステップS1901)。テスト支援装置101は、コメント決定テーブル800に、優先度変数Pに対応する優先度の未選択レコードがあるか否かを判断する(ステップS1902)。優先度変数Pに対応する優先度801の未選択レコードがある場合(ステップS1902:Yes)、テスト支援装置101は、コメント決定テーブル800から優先度変数Pに対応する優先度801の未選択レコードを選択する(ステップS1903)。
FIG. 19 is a flowchart illustrating a detailed processing procedure example of the comment determination processing (step S1708) illustrated in FIG. The
テスト支援装置101は、対象レコードの各特定項目一致度が、ステップS1903で選択されたレコード(選択レコード)のしきい値803以上であるか否かを判断する(ステップS1904)。いずれか1つでもしきい値803以上でない特定項目一致度がある場合(ステップS1904:No)、テスト支援装置101は、優先度変数Pをインクリメントして、ステップS1902に移行する。一方、全特定項目一致度がしきい値803以上である場合(ステップS1904:Yes)、テスト支援装置101は、選択レコードのコメントをコメント決定テーブル800から取得して対象レコードに設定する(ステップS1906)。これにより、テスト支援装置101は、コメント決定処理(ステップS1708)を終了する。また、ステップS1902において、優先度変数Pに対応する優先度801の未選択レコードがない場合(ステップS1902:No)、テスト支援装置101は、コメント決定処理(ステップS1708)を終了する。
The
図20は、図16に示した第2決定処理(ステップS1605)の詳細な処理手順例を示すフローチャートである。テスト支援装置101は、未選択の過去テストケースTC0があるか否かを判断する(ステップS2001)。未選択の過去テストケースTC0がある場合(ステップS2001:Yes)、テスト支援装置101は、未選択の過去テストケースTC0を選択する(ステップS2002)。
FIG. 20 is a flowchart showing a detailed processing procedure example of the second determination processing (step S1605) shown in FIG. The
ここで、テスト支援装置101は、未選択の過去テストケースTC0を、DB102の内容総数602が多い順に選択してもよい。これにより、比較対象となる過去テストケースTC0の内容402の個数が多くなるため、入力テストケースTC1の内容402の文字列と一致するか否かの試行回数が増加する。したがって、テスト支援装置101は、類似する過去テストケースTC0を抽出しやすくなる。
Here, the
また、テスト支援装置101は、これまで入力テストケースTC1と全体一致した一致回数603が多い順に過去テストケースTC0を選択してもよい。これにより、テスト支援装置101は、過去の実績を重視して過去テストケースTC0を抽出することができる。
In addition, the
テスト支援装置101は、ステップS1603で選択した入力テストケース(評価対象の入力テストケース)TC1に未選択の特定項目701があるか否かを判断する(ステップS2003)。未選択の特定項目701がある場合(ステップS2003:Yes)、テスト支援装置101は、未選択の特定項目701のレコードを、入力テストケースTC1および比較対象となる過去テストケースTC0から選択する(ステップS2004)。入力テストケースTC1から選択されたレコードを対象レコードと称す。過去テストケースTC0から選択されたレコードを比較レコードと称す。
The
テスト支援装置101は、比較処理を実行して(ステップS2005)、ステップS2003に戻る。比較処理(ステップS2005)は、比較処理(ステップS1705)と同一処理である。比較処理(ステップS2005)により、特定項目701ごとの比較結果が得られる。
The
ステップS2003において、未選択の特定項目701がない場合(ステップS2003:No)、テスト支援装置101は、算出処理を実行する(ステップS2006)。算出処理(ステップS2006)では、テスト支援装置101は、特定項目一致度を算出し、算出した特定項目一致度と特定項目701ごとの重み702を用いて、入力テストケースTC1と過去テストケースTC0との全体一致度Mを算出する。
In step S2003, when there is no unselected specific item 701 (step S2003: No), the
テスト支援装置101は、全体一致度Mがしきい値Mth以上であるか否かを判断する(ステップS2007)。全体一致度Mがしきい値Mth以上である場合(ステップS2007:Yes)、テスト支援装置101は、過去テストケースTC0のテストID402、全体一致度M、テストログ517、特定項目701の比較結果1000を出力情報に設定し(ステップS2008)、ステップS2001に移行する。また、ステップS2007において、全体一致度Mがしきい値Mth以上でない場合(ステップS2007:No)も、ステップS2001に移行する。
The
ステップS2001において、未選択の過去テストケースTC0がない場合(ステップS2001:No)、テスト支援装置101は、第2決定処理(ステップS1605)を終了し、ステップS1602に戻る。
In step S2001, when there is no unselected past test case TC0 (step S2001: No), the
つぎに、第1判定部941、第2判定部942、および更新部943を用いた第2決定処理(ステップS1605)に説明する。
Next, the second determination process (step S1605) using the
図21は、図16に示した第2決定処理(ステップS1605)の他の処理手順例を示すフローチャートである。図20と同一処理については、同一ステップ番号を付し、その説明を省略する。ステップS2007において、全体一致度Mがしきい値Mth以上である場合(ステップS2007:Yes)、テスト支援装置101は、全体一致した一致件数を更新する(ステップS2100)。具体的には、テスト支援装置101は、一致件数の初期値を0とし、全体一致度Mがしきい値Mth以上になる都度(ステップS2007:Yes)、当該一致件数をインクリメントする。そして、ステップS2001に戻る。
FIG. 21 is a flowchart showing another processing procedure example of the second determination processing (step S1605) shown in FIG. The same processes as those in FIG. 20 are denoted by the same step numbers and description thereof is omitted. In step S2007, when the overall matching degree M is greater than or equal to the threshold value Mth (step S2007: Yes), the
ステップS2001において、未選択の過去テストケースTC0がない場合(ステップS2001:No)、図22または図23に移行する。図22は、目標件数以上となった時点の一致件数について出力情報を設定する処理例であり、図23は、目標件数以下となった時点の一致件数について出力情報を設定する処理例である。いずれの設定処理を実行するかは、あらかじめ作業者によってテスト支援装置101に設定される。
In step S2001, when there is no unselected past test case TC0 (step S2001: No), the process proceeds to FIG. 22 or FIG. FIG. 22 is a processing example in which output information is set for the number of matches when the number is equal to or greater than the target number, and FIG. 23 is a processing example in which output information is set for the number of matches when the number is equal to or less than the target number. Which setting process is to be executed is set in advance in the
図22は、目標件数以上となった時点の一致件数について出力情報を設定する処理例を示すフローチャートである。目標件数は、あらかじめ作業者によってテスト支援装置101に指定される件数である。ステップS2001において、未選択の過去テストケースTC0がない場合(ステップS2001:No)、テスト支援装置101は、一致件数は目標件数以上であるか否かを判断する(ステップS2201)。
FIG. 22 is a flowchart illustrating an example of a process for setting output information for the number of matching cases when the number is equal to or greater than the target number. The target number is the number of cases designated in advance by the operator in the
一致件数が目標件数以上でない場合(ステップS2201:No)、テスト支援装置101は、しきい値Mthを所定量ΔMth減少させる(ステップS2202)。そして、テスト支援装置101は、全体一致度Mがしきい値Mth以上の一致件数を特定し(ステップS2203)、ステップS2201に戻る。このように、一致件数が目標件数以上になるまで、ステップS2201〜S2203のループ処理が実行される。一致件数が目標件数以上となった場合(ステップS2201:No)、テスト支援装置101は、ステップS2008と同様、出力情報を設定する(ステップS2204)。
If the number of matches is not equal to or greater than the target number (step S2201: No), the
図23は、目標件数以下となった時点の一致件数について出力情報を設定する処理例を示すフローチャートである。目標件数は、あらかじめ作業者によってテスト支援装置101に指定される件数である。ステップS2001において、未選択の過去テストケースTC0がない場合(ステップS2001:No)、テスト支援装置101は、一致件数は目標件数以下であるか否かを判断する(ステップS2301)。
FIG. 23 is a flowchart illustrating a processing example in which output information is set for the number of matches when the number is equal to or less than the target number. The target number is the number of cases designated in advance by the operator in the
一致件数が目標件数以下でない場合(ステップS2301:No)、テスト支援装置101は、しきい値Mthを所定量ΔMth増加させる(ステップS2302)。そして、テスト支援装置101は、全体一致度Mがしきい値Mth以上の一致件数を特定し(ステップS2303)、ステップS2301に戻る。このように、一致件数が目標件数以下になるまで、ステップS2301〜S2303のループ処理が実行される。一致件数が目標件数以下となった場合(ステップS2301:No)、テスト支援装置101は、ステップS2008と同様、出力情報を設定する(ステップS2204)。
If the number of matches is not less than the target number (step S2301: No), the
以上説明したように、本実施例によれば、他のテストケースと一致するかをテスト前に確認することができる。これにより、作業者間の重複作業を抑制することができ、開発プロジェクト全体の作業効率の向上を図ることができる。 As described above, according to the present embodiment, it can be confirmed before the test whether it matches with other test cases. Thereby, the duplication work between workers can be suppressed and the work efficiency of the whole development project can be improved.
なお、本発明は前述した実施例に限定されるものではなく、添付した特許請求の範囲の趣旨内における様々な変形例及び同等の構成が含まれる。例えば、前述した実施例は本発明を分かりやすく説明するために詳細に説明したものであり、必ずしも説明した全ての構成を備えるものに本発明は限定されない。また、ある実施例の構成の一部を他の実施例の構成に置き換えてもよい。また、ある実施例の構成に他の実施例の構成を加えてもよい。また、各実施例の構成の一部について、他の構成の追加、削除、または置換をしてもよい。 The present invention is not limited to the above-described embodiments, and includes various modifications and equivalent configurations within the scope of the appended claims. For example, the above-described embodiments have been described in detail for easy understanding of the present invention, and the present invention is not necessarily limited to those having all the configurations described. A part of the configuration of one embodiment may be replaced with the configuration of another embodiment. Moreover, you may add the structure of another Example to the structure of a certain Example. Moreover, you may add, delete, or replace another structure about a part of structure of each Example.
また、前述した各構成、機能、処理部、処理手段等は、それらの一部又は全部を、例えば集積回路で設計する等により、ハードウェアで実現してもよく、プロセッサがそれぞれの機能を実現するプログラムを解釈し実行することにより、ソフトウェアで実現してもよい。 In addition, each of the above-described configurations, functions, processing units, processing means, etc. may be realized in hardware by designing a part or all of them, for example, with an integrated circuit, etc. It may be realized by software by interpreting and executing the program to be executed.
各機能を実現するプログラム、テーブル、ファイル等の情報は、メモリ、ハードディスク、SSD(Solid State Drive)等の記憶装置、又は、IC(Integrated Circuit)カード、SDカード、DVD(Digital Versatile Disc)の記録媒体に格納することができる。 Information such as programs, tables, and files for realizing each function is recorded on a memory, a hard disk, a storage device such as an SSD (Solid State Drive), or an IC (Integrated Circuit) card, an SD card, a DVD (Digital Versatile Disc). It can be stored on a medium.
また、制御線や情報線は説明上必要と考えられるものを示しており、実装上必要な全ての制御線や情報線を示しているとは限らない。実際には、ほとんど全ての構成が相互に接続されていると考えてよい。 Further, the control lines and the information lines are those that are considered necessary for the explanation, and not all the control lines and the information lines that are necessary for the mounting are shown. In practice, it can be considered that almost all the components are connected to each other.
101 テスト支援装置
901 比較部
902 算出部
903 出力部
904 判定部
905 取得部
941 第1判定部
942 第2判定部
943 更新部
101
Claims (10)
前記プロセッサに、
評価対象となる第1テストケースと比較対象となる第2テストケースとを比較する比較処理と、
前記比較処理による比較結果に基づいて、前記第1テストケースと前記第2テストケースとの一致度を算出する算出処理と、
前記第2テストケースの識別情報と前記算出処理による算出結果とを出力する出力処理と、
を実行させることを特徴とするテスト支援プログラム。 A test support program for causing a processor to perform test support for a test target according to a test case that defines a condition given to the test target, a process expected by the test of the test target, and a result of the process,
In the processor,
A comparison process for comparing the first test case to be evaluated with the second test case to be compared;
A calculation process for calculating a degree of coincidence between the first test case and the second test case based on a comparison result by the comparison process;
An output process for outputting identification information of the second test case and a calculation result by the calculation process;
A test support program characterized in that
前記プロセッサに、
前記一致度がしきい値以上であるか否かを判定する判定処理を実行させ、
前記出力処理では、前記プロセッサに、前記判定処理によって前記しきい値以上であると判定された場合、前記第2テストケースの識別情報と前記算出結果とを出力させることを特徴とするテスト支援プログラム。 The test support program according to claim 1,
In the processor,
A determination process for determining whether or not the degree of coincidence is a threshold value or more;
In the output process, the test support program causes the processor to output the identification information of the second test case and the calculation result when it is determined by the determination process that the threshold value is equal to or greater than the threshold value. .
前記テストケースは、前記条件、前記処理、および前記結果に関する複数の項目を有し、
前記比較処理では、前記プロセッサに、前記第1テストケースと前記第2テストケースとの間において同一項目同士で比較させ、
前記算出処理では、前記プロセッサに、前記複数の項目の各々の比較結果に基づいて、前記第1テストケースと前記第2テストケースとの一致度を算出させることを特徴とするテスト支援プログラム。 The test support program according to claim 1,
The test case has a plurality of items related to the condition, the process, and the result,
In the comparison process, the processor causes the same items to be compared between the first test case and the second test case,
In the calculation process, the test support program causes the processor to calculate a degree of coincidence between the first test case and the second test case based on a comparison result of each of the plurality of items.
前記出力処理では、前記プロセッサに、前記複数の項目の各々の比較結果を出力させることを特徴とするテスト支援プログラム。 The test support program according to claim 3,
In the output process, the test support program causes the processor to output a comparison result of each of the plurality of items.
前記テストケースは、前記テストケースの作成者の識別情報を含み、
前記出力処理では、前記プロセッサに、前記第2テストケースの前記作成者の識別情報を出力させることを特徴とするテスト支援プログラム。 The test support program according to claim 1,
The test case includes identification information of a creator of the test case,
In the output processing, the test support program causes the processor to output identification information of the creator of the second test case.
前記プロセッサは、前記テストケースが他のテストケースと比較された場合にどの程度一致するかを示す一致度に応じたコメントを記憶するコメント決定情報を記憶する記憶デバイスにアクセス可能であり、
前記第1テストケースおよび前記第2テストケースは、外部から入力されたテストケースであり、
前記プロセッサに、
前記算出処理によって算出された一致度に応じたコメントを前記コメント決定情報から取得する取得処理を実行させ、
前記出力処理では、前記プロセッサに、前記取得処理によって取得されたコメントを出力させることを特徴とするテスト支援プログラム。 The test support program according to claim 1,
The processor is accessible to a storage device that stores comment determination information that stores a comment according to a degree of coincidence indicating how much the test case is compared when compared with other test cases;
The first test case and the second test case are test cases input from the outside,
In the processor,
Executing an acquisition process for acquiring a comment according to the degree of coincidence calculated by the calculation process from the comment determination information;
In the output process, the test support program causes the processor to output a comment acquired by the acquisition process.
前記第1テストケースは、外部から入力されたテストケースであり、
前記第2テストケースは、前記テストのテストログを有し、前記プロセッサがアクセス可能な記憶デバイスに記憶され、
前記出力処理では、前記プロセッサに、前記テストログまたは前記テストログの格納場所を示す情報を出力させることを特徴とするテスト支援プログラム。 The test support program according to claim 1,
The first test case is a test case input from the outside,
The second test case has a test log of the test and is stored in a storage device accessible by the processor;
In the output process, the test support program causes the processor to output the test log or information indicating a storage location of the test log.
前記プロセッサに、
前記一致度がしきい値以上であるか否かを判定する第1判定処理と、
前記第1判定処理によって前記しきい値以上であると判定された前記第2テストケースの件数が、指定件数以上であるか否かを判定する第2判定処理と、
前記第2判定処理によって前記指定件数以上でないと判定された場合、前記しきい値をより低い値に更新する更新処理と、を実行させ、
前記第1判定処理では、前記プロセッサに、前記一致度が前記更新処理による更新後のしきい値以上であるか否かを判定させ、
前記第2判定処理では、前記プロセッサに、前記第1判定処理によって前記更新後のしきい値以上であると判定された前記第2テストケースの件数が、前記指定件数以上であるか否かを判定させ、
前記出力処理では、前記プロセッサに、前記第2判定処理によって前記指定件数以上と判定された前記第2テストケースの識別情報と前記算出処理による算出結果とを出力させることを特徴とするテスト支援プログラム。 The test support program according to claim 7,
In the processor,
A first determination process for determining whether or not the degree of coincidence is greater than or equal to a threshold value;
A second determination process for determining whether the number of cases of the second test case determined to be equal to or greater than the threshold value by the first determination process is greater than or equal to a specified number;
If it is determined by the second determination process that the number is not equal to or greater than the specified number, an update process for updating the threshold value to a lower value is executed,
In the first determination process, the processor is caused to determine whether or not the degree of coincidence is equal to or higher than a threshold value after update by the update process,
In the second determination process, the processor determines whether or not the number of the second test cases determined to be greater than or equal to the updated threshold value by the first determination process is greater than or equal to the specified number. Let me judge
In the output process, the test support program causes the processor to output identification information of the second test case determined to be equal to or more than the specified number by the second determination process and a calculation result by the calculation process .
前記プロセッサに、
前記一致度がしきい値以上であるか否かを判定する第1判定処理と、
前記第1判定処理によって前記しきい値以上であると判定された前記第2テストケースの件数が、指定件数以下であるか否かを判定する第2判定処理と、
前記第2判定処理によって前記指定件数以下でないと判定された場合、前記しきい値をより高い値に更新する更新処理と、を実行させ、
前記第1判定処理では、前記プロセッサに、前記一致度が前記更新処理による更新後のしきい値以上であるか否かを判定させ、
前記第2判定処理では、前記プロセッサに、前記第1判定処理によって前記更新後のしきい値以上であると判定された前記第2テストケースの件数が、前記指定件数以下であるか否かを判定させ、
前記出力処理では、前記プロセッサに、前記第2判定処理によって前記指定件数以下と判定された前記第2テストケースの識別情報と前記算出処理による算出結果とを出力させることを特徴とするテスト支援プログラム。 The test support program according to claim 7,
In the processor,
A first determination process for determining whether or not the degree of coincidence is greater than or equal to a threshold value;
A second determination process for determining whether or not the number of the second test cases determined to be equal to or greater than the threshold value by the first determination process is equal to or less than a specified number;
If it is determined by the second determination process that the number is not less than the specified number, an update process for updating the threshold value to a higher value is executed,
In the first determination process, the processor is caused to determine whether or not the degree of coincidence is equal to or higher than a threshold value after update by the update process,
In the second determination process, the processor determines whether or not the number of the second test cases determined to be greater than or equal to the updated threshold value by the first determination process is equal to or less than the specified number. Let me judge
In the output process, the test support program causes the processor to output identification information of the second test case determined to be equal to or less than the specified number by the second determination process and a calculation result of the calculation process .
プログラムを実行するプロセッサと、前記プログラムを記憶する記憶デバイスと、を有し、
前記プロセッサは、
評価対象となる第1テストケースと比較対象となる第2テストケースとを比較する比較処理と、
前記比較処理による比較結果に基づいて、前記第1テストケースと前記第2テストケースとの一致度を算出する算出処理と、
前記第2テストケースの識別情報と前記算出処理による算出結果とを出力する出力処理と、
を実行することを特徴とするテスト支援装置。 A test support apparatus that performs test support for the test target according to a condition given to the test target, a process expected by the test of the test target, and a test case that defines the result of the process,
A processor that executes the program; and a storage device that stores the program;
The processor is
A comparison process for comparing the first test case to be evaluated with the second test case to be compared;
A calculation process for calculating a degree of coincidence between the first test case and the second test case based on a comparison result by the comparison process;
An output process for outputting identification information of the second test case and a calculation result by the calculation process;
A test support apparatus characterized in that
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016251582A JP2018106398A (en) | 2016-12-26 | 2016-12-26 | Test support program and test support device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016251582A JP2018106398A (en) | 2016-12-26 | 2016-12-26 | Test support program and test support device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2018106398A true JP2018106398A (en) | 2018-07-05 |
Family
ID=62787683
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016251582A Pending JP2018106398A (en) | 2016-12-26 | 2016-12-26 | Test support program and test support device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2018106398A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113448844A (en) * | 2021-06-21 | 2021-09-28 | 青岛海尔科技有限公司 | Method and device for regression testing and electronic equipment |
-
2016
- 2016-12-26 JP JP2016251582A patent/JP2018106398A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113448844A (en) * | 2021-06-21 | 2021-09-28 | 青岛海尔科技有限公司 | Method and device for regression testing and electronic equipment |
CN113448844B (en) * | 2021-06-21 | 2022-10-25 | 青岛海尔科技有限公司 | Method and device for regression testing and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102101050B1 (en) | Predicting software build errors | |
US8707268B2 (en) | Testing operations of software | |
US9195952B2 (en) | Systems and methods for contextual mapping utilized in business process controls | |
CN107729376B (en) | Insurance data auditing method and device, computer equipment and storage medium | |
CN108763091B (en) | Method, device and system for regression testing | |
JP7375861B2 (en) | Related score calculation systems, methods and programs | |
US9990268B2 (en) | System and method for detection of duplicate bug reports | |
Thung et al. | Buglocalizer: Integrated tool support for bug localization | |
US11379772B2 (en) | Systems and methods for analyzing computer input to provide suggested next action for automation | |
US9251192B2 (en) | Information matching apparatus, information matching system and method of matching information for outputting matching result | |
US20160042017A1 (en) | System Of And Method For Entity Representation Splitting Without The Need For Human Interaction | |
JP6419667B2 (en) | Test DB data generation method and apparatus | |
Molka et al. | Conformance checking for BPMN-based process models | |
JP2018106398A (en) | Test support program and test support device | |
Eken et al. | Predicting defects with latent and semantic features from commit logs in an industrial setting | |
US11281458B2 (en) | Evaluation of developer organizations | |
KR101612635B1 (en) | Clinical decision support system and method for evidence adaption using external resources | |
JP2018081403A (en) | Incident management system, incident management method and computer program | |
JP6861176B2 (en) | Project estimation support method and project estimation support device | |
CN110851517A (en) | Source data extraction method, device and equipment and computer storage medium | |
US20170228673A1 (en) | Network change auditing system | |
JP6852002B2 (en) | Data search method, data search device and program | |
US20220237388A1 (en) | Method and apparatus for generating table description text, device and storage medium | |
US10891429B2 (en) | Device and method for managing table | |
CN112463738A (en) | Log retrieval method, system, computer device and storage medium |