JP2015022356A - Test scenario variation creation device, method, and program - Google Patents
Test scenario variation creation device, method, and program Download PDFInfo
- Publication number
- JP2015022356A JP2015022356A JP2013147851A JP2013147851A JP2015022356A JP 2015022356 A JP2015022356 A JP 2015022356A JP 2013147851 A JP2013147851 A JP 2013147851A JP 2013147851 A JP2013147851 A JP 2013147851A JP 2015022356 A JP2015022356 A JP 2015022356A
- Authority
- JP
- Japan
- Prior art keywords
- scenario
- test
- basic
- test scenario
- steps
- 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
本発明は、テストシナリオバリエーション生成装置及び方法及びプログラムに係り、特に、Webアプリケーションのテスト設計において、テストシナリオのバリエーションを生成するためのテストシナリオバリエーション生成装置及び方法及びプログラムに関する。 The present invention relates to a test scenario variation generation apparatus, method, and program, and more particularly, to a test scenario variation generation apparatus, method, and program for generating test scenario variations in web application test design.
従来のテストシナリオ生成の方法として、ファイルパスに基づいて設計ドキュメントを取得して、単一の中間言語(JavaObject)に変換し、さらに、XMI形式UMLに変換し設計モデルを生成する。そして、当該設計モデルからテスト項目(入力エラーの有無、テスト経路、DB変更の有無、結果出力方法等)を取得し、テストシナリオを生成する方法がある。 As a conventional test scenario generation method, a design document is acquired based on a file path, converted into a single intermediate language (JavaObject), and further converted into an XMI format UML to generate a design model. Then, there is a method of acquiring test items (existence of input error, test path, presence / absence of DB change, result output method, etc.) from the design model and generating a test scenario.
しかしながら、従来の技術では、テスト対象のソフトウェアの設計書の情報のみに基づき、テストシナリオを生成しており、テスト対象のソフトウェアとは別のソフトウェアにおけるテストシナリオのバリエーションに基づきテストシナリオを生成することができないという問題がある。 However, in the conventional technology, the test scenario is generated based only on the design document information of the test target software, and the test scenario is generated based on the test scenario variation in software different from the test target software. There is a problem that can not be.
本発明は上記の点に鑑みなされたもので、あるテストシナリオからいくつかのバリエーションである複数のテストシナリオを生成することが可能なテストシナリオバリエーション生成装置及び方法及びプログラムを提供することを目的とする。 The present invention has been made in view of the above points, and an object thereof is to provide a test scenario variation generation apparatus, method, and program capable of generating a plurality of test scenarios as some variations from a test scenario. To do.
一態様によれば、アプリケーションのテスト設計において、テストシナリオのバリエーションを生成するテストシナリオバリエーション生成装置であって、
テスト対象のソフトウェアとは別のソフトウェアにおけるテスト設計で作成されたテストシナリオを構成するステップが格納されたステップDBと、
与えられた基本シナリオを構成するステップと同一のプロセスタイプ、ステップタイプ、ステップ名を有するステップを前記ステップDBから検索し、該基本シナリオのステップを、該ステップDBから検索されたステップで置換して新たなテストシナリオを生成し、関連シナリオとして出力する関連シナリオ生成手段と、
前記基本シナリオの各ステップを前記ステップDBに追加登録する基本シナリオステップ記録手段と、を有することを特徴とするテストシナリオバリエーション生成装置が提供される。
According to one aspect, in a test design of an application, a test scenario variation generation device that generates a variation of a test scenario,
A step DB that stores the steps that make up the test scenario created in the test design in the software different from the software to be tested;
A step having the same process type, step type, and step name as a step constituting a given basic scenario is searched from the step DB, and the step of the basic scenario is replaced with a step searched from the step DB. A related scenario generation means for generating a new test scenario and outputting it as a related scenario;
There is provided a test scenario variation generating apparatus comprising basic scenario step recording means for additionally registering each step of the basic scenario in the step DB.
上記の一態様によれば、テスト対象のソフトウェアとは別のソフトウェア(別チームが開発したソフトウェアも含む)のテストシナリオのバリエーションに基づき、テスト対象のソフトウェアのテストシナリオのバリエーションを作成することが可能となる。 According to the above aspect, it is possible to create a test scenario variation of the test target software based on a test scenario variation of software different from the test target software (including software developed by another team) It becomes.
以下、図面と共に本発明の実施の形態を説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1は、本発明の一実施の形態におけるテストシナリオバリエーション生成装置の構成を示す。 FIG. 1 shows a configuration of a test scenario variation generation apparatus according to an embodiment of the present invention.
同図に示すテストシナリオバリエーション生成装置100は、基本シナリオ生成部110、関連シナリオ生成部120、ステップDB130、基本シナリオステップ記録部140、関連シナリオ出力部150、メモリ160を有する。基本シナリオ生成部110と関連シナリオ出力部150はユーザ端末10に接続されている。
The test scenario
ステップDB130は、テスト対象のソフトウェアとは別のソフトウェアにおけるテスト設計で作成されたテストシナリオを構成していたステップが格納されており、図2に示すように、生成された各ステップに一意に付与されるステップId、プロセスタイプ(registration/login)、ステップタイプ(input/webtransition)、ステップ名、ステップ値を格納する。 The step DB 130 stores the steps constituting the test scenario created by the test design in the software different from the test target software, and is uniquely assigned to each generated step as shown in FIG. Stored step ID, process type (registration / login), step type (input / webtransition), step name, and step value.
メモリ160は、図3に示すように、基本シナリオ集合格納領域161、置換ステップ候補集合格納領域162、関連シナリオ集合グループ格納領域163、を有する。
As shown in FIG. 3, the
基本シナリオ集合格納領域161には、基本シナリオ入力部110により、
<基本シナリオ集合>::=<基本シナリオ>
<基本シナリオ>::=基本シナリオId: Integer<シナリオ>
<シナリオ>::=<ステップ>+プロセスタイプ:String
<ステップ>::=ステップId: Integer
プロセスタイプ:String
ステップタイプ:String
ステップ名:String
ステップ値:String
置換ステップフラグ:Boolean
が格納される。
In the basic scenario set
<Basic scenario set> :: = <Basic scenario>
<Basic scenario> :: = Basic scenario Id: Integer <Scenario>
<Scenario> :: = <Step> + Process type: String
<Step> :: = Step Id: Integer
Process type: String
Step type: String
Step name: String
Step value: String
Replacement step flag: Boolean
Is stored.
置換ステップ候補集合格納領域162には、関連シナリオ生成部120により、
<置換ステップ候補集合>::=<置換ステップ候補>+
<置換ステップ候補>::=置換対象ステップId: Integer 置換後ステップId: Integer
が格納される。
In the replacement step candidate set
<Replacement step candidate set> :: = <replacement step candidate> +
<Replacement step candidate> :: = Replacement target step Id: Integer Substitution step Id: Integer
Is stored.
関連シナリオ集合グループ格納領域163には、関連シナリオ生成部120により、
<関連シナリオ集合グループ>::=<関連シナリオ集合>*
<関連シナリオ集合>::=生成元基本シナリオId: Integer<関連シナリオ>*
<関連シナリオ>::=関連シナリオId: Integer<シナリオ>
が格納される。
In the related scenario set
<Related scenario set group> :: = <related scenario set> *
<Related scenario set> :: = source basic scenario Id: Integer <related scenario> *
<Related scenario> :: = Related scenario Id: Integer <Scenario>
Is stored.
以下に、上記の構成における処理を説明する。 Hereinafter, processing in the above configuration will be described.
テストシナリオは複数のステップで構成されている。本発明では、与えられたテストシナリオ(基本シナリオ)から、ステップDB130に格納されたステップを用いて、そのテストシナリオのバリエーションである複数のテストシナリオ(関連シナリオ)を生成し、これをテストシナリオバリエーションとして出力する。
The test scenario consists of multiple steps. In the present invention, a plurality of test scenarios (related scenarios), which are variations of the test scenario, are generated from a given test scenario (basic scenario) using the steps stored in the
図4は、本発明の一実施の形態における概要動作のフローチャートである。 FIG. 4 is a flowchart of an outline operation in one embodiment of the present invention.
ステップ100) 基本シナリオ入力部110は、ユーザ端末10から入力された基本シナリオ集合(UML: Unified Modeling Language)を取得し、メモリ160の基本シナリオ集合格納領域161に格納する。ここで、入力される基本シナリオは、BNF(Backus Naur Form)で記述されており、以下の構成を有する。なお、以下の"<xxx>"は非終端記号であり、"xxx:yyy"は終端記号であり、xxxはyyy型であることを示す。
Step 100) The basic
<基本シナリオ集合>::=<基本シナリオ>
<基本シナリオ>::=基本シナリオId:Integer<シナリオ>
<シナリオ>::=<ステップ>+プロセスタイプ:String
<ステップ>::=ステップId:Integer
プロセスタイプ:String
ステップタイプ:String
ステップ名:String
ステップ値:String
置換ステップフラグ:Boolean
ステップ200) 関連シナリオ生成部120は、メモリ160上の関連シナリオ集合グループ格納領域163に空の関連シナリオ集合グループを生成する。
<Basic scenario set> :: = <Basic scenario>
<Basic scenario> :: = Basic scenario Id: Integer <Scenario>
<Scenario> :: = <Step> + Process type: String
<Step> :: = Step Id: Integer
Process type: String
Step type: String
Step name: String
Step value: String
Replacement step flag: Boolean
Step 200) The related
ステップ300) 当該ステップ300及び次のステップ400の処理を、入力された基本シナリオ集合の各基本シナリオに対して繰り返す。
Step 300) The processing in
関連シナリオ生成部120は、メモリ160の基本シナリオ集合格納領域161から基本シナリオを読み出し、ステップDB130を参照して、基本シナリオから関連シナリオ集合を生成する。当該ステップの詳細な処理は図5に示す。
The related
ステップ400) 関連シナリオ生成部120は、メモリ160の関連シナリオ集合グループ格納領域163に生成した関連シナリオ集合を追加する。
Step 400) The related
ステップ500) 基本シナリオステップ記録部140は、メモリ160の基本シナリオ集合格納領域161から基本シナリオを読み出し、各基本シナリオのステップをステップDB130に記録する。当該処理の詳細は図8で詳述する。
Step 500) The basic scenario
ステップ600) 関連シナリオ出力部150は、関連シナリオ集合グループをメモリ160の関連シナリオ集合グループ格納領域163から読み込んでユーザ端末10に出力する。当該処理が終了したらメモリ160の内容をクリアする。
Step 600) The related
次に、上記のステップ300の処理について詳しく説明する。
Next, the process of
図5は、本発明の一実施の形態における関連シナリオ集合生成のフローチャートである。 FIG. 5 is a flowchart for generating a related scenario set in one embodiment of the present invention.
ステップ301) 関連シナリオ生成部120は、メモリ160の基本シナリオ集合格納領域161から基本シナリオを読み込む。
Step 301) The related
ステップ302) 関連シナリオ生成部120は、メモリ160の置換ステップ候補集合格納領域162に空の置換ステップ候補集合を作成する。ここで、生成元基本Idは、入力された基本シナリオnの基本シナリオIdを設定する。
Step 302) The related
ステップ303) ステップDB130から置換する候補となるステップを取り出す。具体的には、基本シナリオのステップのプロセスタイプ、ステップタイプ、ステップ名が一致するステップをステップDB130から抽出する。図6の例では、基本シナリオにある「Input:Username」というステップは、プロセスタイプが"Registration"、プロセスタイプが"Input"、ステップ名が"username"であるので、ステップDB130におけるステップ群(ステップId001〜006)が一致するため、これを抽出する。
Step 303) Steps that are candidates for replacement are extracted from the
ステップ304) 関連シナリオ生成部120は、置換ステップ候補を新たに生成し、当該置換ステップ候補の置換対象ステップIdには、対象となる基本シナリオのステップのIdを設定し、置換後のステップIdにはステップ303でステップDB130から抽出されたステップ(置換対象ステップ)のIdを設定し、当該置換ステップ候補を置換ステップ候補集合格納領域162の集合に追加する。図6の例では、基本シナリオId=001のステップに関しては、ステップDB130におけるId=001〜006のステップが置換対象となるので、置換ステップ候補は「001,001」、「001,002」、「001,003」、「001,004」、「001,005」、「001,006」の6つになる。これらを置換ステップ候補集合格納領域162に格納する。
Step 304) The related
当該処理を基本シナリオ入力部110から取得した各ステップに対して繰り返す。
This process is repeated for each step acquired from the basic
ステップ305) 関連シナリオ生成部120は、メモリ160の関連シナリオ集合グループ格納領域163上に空の関連シナリオ集合を作成する。
Step 305) The related
ステップ306) 関連シナリオ生成部120は、メモリ160内の置換ステップ候補集合格納領域162の置換ステップ候補集合から、対象となる基本シナリオのステップのIdと置換対象ステップのIdが一致する置換ステップ候補を全て取り出す。
Step 306) The related
ステップ307) 取り出した置換ステップ候補に対して関連シナリオを一つ生成する。具体的には、対象となる基本シナリオを複製し、置換ステップ候補の置換対象ステップId、置換後ステップIdに基づいて、複製した基本シナリオのステップを置換することで、バリエーションとなる新たな関連シナリオを生成する。 Step 307) One related scenario is generated for the extracted replacement step candidate. Specifically, by copying the target basic scenario and replacing the step of the copied basic scenario based on the replacement target step Id of the replacement step candidate and the post-replacement step Id, a new related scenario that becomes a variation Is generated.
図7の例では、図6の置換対象ステップId=003の"input:email"ステップを複製し、その複製した置換ステップとステップDB130から取り出したステップと置換することで関連シナリオ(1)、(2)を生成する。なお、置換ステップには、場面(例えば、「registration」、「login」など)を表すタグ(プロセスタイプ)が付いているため、テスト対象とは別のソフトウェアの同一場面におけるテストシナリオに基づいて、テスト対象のソフトウェアにおける同一の場面に対応するテストシナリオのバリエーションを生成できる。
In the example of FIG. 7, the “input: email” step of the replacement target step Id = 003 in FIG. 6 is duplicated, and the duplicated replacement step and the step extracted from the
ステップ308) 関連シナリオ生成部120は、生成した関連シナリオをメモリ160の関連シナリオ集合グループ格納領域163の関連シナリオ集合に追加する。
Step 308) The related
次に、図4のステップ500の処理について詳細に説明する。
Next, the process of
図8は、本発明の一実施の形態における基本シナリオステップ記録部の処理のフローチャートである。 FIG. 8 is a flowchart of processing of the basic scenario step recording unit in one embodiment of the present invention.
ステップ501) 基本シナリオステップ記録部140は、メモリ160の基本シナリオ集合格納領域161から基本シナリオ集合を読み込む。
Step 501) The basic scenario
ステップ502) 基本シナリオ集合の各基本シナリオの対象ステップのステップタイプ、ステップ名、ステップ値に一致するステップがステップDB130に存在するかを判定する。存在する場合は次の基本シナリオの対象ステップについて判定を行う。存在しない場合はステップ503に移行する。
Step 502) It is determined whether a step matching the step type, step name, and step value of the target step of each basic scenario in the basic scenario set exists in the
ステップ503) ステップDB130に該当するステップが存在しない場合には、対象となる基本シナリオのステップをステップDB130に新規に登録する。
Step 503) If there is no corresponding step in the
上記のステップ502,503の処理を、基本シナリオ集合の各基本シナリオの各ステップに対して行う。
The processes in
基本シナリオステップ記録部140の処理を行うことにより、テスト設計者が作成したテストシナリオ(基本シナリオ)を構成する全てのステップは、ステップDB130へと蓄積される。これにより、関連シナリオ生成部120では、当該ステップDB130からステップを取り出し、関連シナリオを生成するため、テスト対象のソフトウェアのテストシナリオのバリエーションを生成するときに、テスト対象とは別のソフトウェアのテスト設計者が作成したテストシナリオのバリエーションに基づいて、さらになるバリエーションを生成することができる。
By performing the processing of the basic scenario
なお、上記の図1に示すテストシナリオバリエーション生成装置100の各構成要素の動作をプログラムとして構築し、テストシナリオバリエーション生成装置として利用されるコンピュータにインストールして実行させる、または、ネットワークを介して流通させることが可能である。
The operation of each component of the test scenario
本発明は、上記の実施の形態に限定されることなく、特許請求の範囲内において、種々変更・応用が可能である。 The present invention is not limited to the above-described embodiments, and various modifications and applications are possible within the scope of the claims.
10 ユーザ端末
100 テストシナリオバリエーション生成装置
110 基本シナリオ入力部
120 関連シナリオ生成部
130 ステップDB
140 基本シナリオステップ記録部
150 関連シナリオ出力部
160 メモリ
161 基本シナリオ集合格納領域
162 置換ステップ候補集合格納領域
163 関連シナリオ集合グループ格納領域
10
140 Basic scenario
Claims (5)
テスト対象のソフトウェアとは別のソフトウェアにおけるテスト設計で作成されたテストシナリオを構成するステップが格納されたステップDBと、
与えられた基本シナリオを構成するステップと同一のプロセスタイプ、ステップタイプ、ステップ名を有するステップを前記ステップDBから検索し、該基本シナリオのステップを、該ステップDBから検索されたステップで置換して新たなテストシナリオを生成し、関連シナリオとして出力する関連シナリオ生成手段と、
を有することを特徴とするテストシナリオバリエーション生成装置。 A test scenario variation generation device for generating test scenario variations in application test design,
A step DB that stores the steps that make up the test scenario created in the test design in the software different from the software to be tested;
A step having the same process type, step type, and step name as a step constituting a given basic scenario is searched from the step DB, and the step of the basic scenario is replaced with a step searched from the step DB. A related scenario generation means for generating a new test scenario and outputting it as a related scenario;
A test scenario variation generation apparatus characterized by comprising:
請求項1記載のテストシナリオバリエーション生成装置。 A basic scenario step recording means for additionally registering each step of the basic scenario in the step DB;
The test scenario variation generation apparatus according to claim 1.
テスト対象のソフトウェアとは別のソフトウェアにおけるテスト設計で作成されたテストシナリオを構成するステップが格納されたステップDBと、
関連シナリオ生成手段、基本シナリオステップ記録手段を有する装置において、
前記関連シナリオ生成手段が、与えられた基本シナリオを構成するステップと同一のプロセスタイプ、ステップタイプ、ステップ名を有するステップを前記ステップDBから検索し、該基本シナリオのステップを、該ステップDBから検索されたステップで置換して新たなテストシナリオを生成し、関連シナリオとして出力する関連シナリオ生成ステップと、
を行うことを特徴とするテストシナリオバリエーション生成方法。 A test scenario variation generation method for generating test scenario variations in application test design,
A step DB that stores the steps that make up the test scenario created in the test design in the software different from the software to be tested;
In an apparatus having related scenario generation means and basic scenario step recording means,
The related scenario generation means searches the step DB for a step having the same process type, step type, and step name as the steps constituting the given basic scenario, and searches for the step of the basic scenario from the step DB. A related scenario generation step of generating a new test scenario by replacing with the generated steps and outputting as a related scenario;
A test scenario variation generation method characterized by:
請求項3記載のテストシナリオバリエーション生成方法。 4. The test scenario variation generation method according to claim 3, wherein the basic scenario step recording means further performs a basic scenario step recording step of additionally registering each step of the basic scenario in the step DB.
請求項1または2に記載のテストシナリオバリエーション生成装置の各手段として機能させるためのテストシナリオバリエーション生成プログラム。 Computer
A test scenario variation generation program for functioning as each means of the test scenario variation generation apparatus according to claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013147851A JP2015022356A (en) | 2013-07-16 | 2013-07-16 | Test scenario variation creation device, method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013147851A JP2015022356A (en) | 2013-07-16 | 2013-07-16 | Test scenario variation creation device, method, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2015022356A true JP2015022356A (en) | 2015-02-02 |
Family
ID=52486793
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013147851A Pending JP2015022356A (en) | 2013-07-16 | 2013-07-16 | Test scenario variation creation device, method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2015022356A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106708818A (en) * | 2015-07-17 | 2017-05-24 | 阿里巴巴集团控股有限公司 | Pressure testing method and system |
JP2019525373A (en) * | 2016-08-26 | 2019-09-05 | 上海合福信息科技有限公司 | How to generate test cases |
-
2013
- 2013-07-16 JP JP2013147851A patent/JP2015022356A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106708818A (en) * | 2015-07-17 | 2017-05-24 | 阿里巴巴集团控股有限公司 | Pressure testing method and system |
JP2019525373A (en) * | 2016-08-26 | 2019-09-05 | 上海合福信息科技有限公司 | How to generate test cases |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5350428B2 (en) | Automatic program generation apparatus, method and computer program | |
TW201723895A (en) | Method and device for extending a layout template of an application component | |
US11487595B2 (en) | API adapter creation device, API adapter creation method, and API adapter creation program | |
US10101727B2 (en) | Common parameter interface generation program and parameter reading program | |
JP2018078523A (en) | Network management device, method, and program | |
JP2017054380A (en) | Program information generation system, method, and program | |
JP2020060919A (en) | System migration support device, system migration support method and program | |
JP2015022356A (en) | Test scenario variation creation device, method, and program | |
US20210389933A1 (en) | Creating an app method and system | |
JP6502044B2 (en) | Data analysis device, data analysis method, and program. | |
JP6364332B2 (en) | Specification generation method, specification generation device, and program | |
JP6287506B2 (en) | Database access control program, database access control method, and information processing apparatus | |
JP2013008237A (en) | Related information extraction program, related information extraction method and related information extraction apparatus | |
JP2012226697A (en) | Wbs creation system and wbs creation method | |
JP5600826B1 (en) | Unstructured data processing system, unstructured data processing method and program | |
JP2016014973A (en) | Expected result generation device and method and program | |
JP2013148953A (en) | Program template automatic generation program and program template automatic generation device | |
JP6085481B2 (en) | Programmable circuit, arithmetic processing method | |
JP5508933B2 (en) | Software specification proof support apparatus and proof support method | |
JP2014074952A (en) | Electronic data traceability management device, method and program | |
JP2010165205A (en) | Template automatic generation system, method and program for model | |
JP7100991B2 (en) | Data conversion device and data conversion method | |
JP2014056306A (en) | Db data debug support device, method and program | |
JP2017041129A (en) | Trace information management system, method and program | |
JP6305356B2 (en) | Specification extraction device, specification extraction method and program |