JP2020067859A - テストデータ生成装置、テストデータ生成方法及びプログラム - Google Patents
テストデータ生成装置、テストデータ生成方法及びプログラム Download PDFInfo
- Publication number
- JP2020067859A JP2020067859A JP2018200642A JP2018200642A JP2020067859A JP 2020067859 A JP2020067859 A JP 2020067859A JP 2018200642 A JP2018200642 A JP 2018200642A JP 2018200642 A JP2018200642 A JP 2018200642A JP 2020067859 A JP2020067859 A JP 2020067859A
- Authority
- JP
- Japan
- Prior art keywords
- constraint
- test data
- test
- input
- web application
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 155
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000007704 transition Effects 0.000 claims abstract description 92
- 238000000638 solvent extraction Methods 0.000 claims abstract description 3
- 238000013515 script Methods 0.000 claims description 71
- 238000000605 extraction Methods 0.000 claims description 24
- 230000008569 process Effects 0.000 abstract description 17
- 230000000875 corresponding effect Effects 0.000 description 25
- 238000012545 processing Methods 0.000 description 21
- 238000010586 diagram Methods 0.000 description 17
- 239000000284 extract Substances 0.000 description 13
- 230000006870 function Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 238000010200 validation analysis Methods 0.000 description 3
- 235000010627 Phaseolus vulgaris Nutrition 0.000 description 2
- 244000046052 Phaseolus vulgaris Species 0.000 description 2
- 230000002596 correlated effect Effects 0.000 description 2
- 230000010365 information processing Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000010998 test method Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
まず、本発明の実施の形態におけるシステムの全体構成について、図1を参照しながら説明する。図1は、本発明の実施の形態におけるシステムの全体構成の一例を示す図である。
次に、クライアント装置10がテストスクリプトのバリエーションを生成する場合の概略について、図2を参照しながら説明する。図2は、テストスクリプトのバリエーション生成の概略を説明するための図である。
次に、本発明の実施の形態におけるクライアント装置10のハードウェア構成について、図3を参照しながら説明する。図3は、本発明の実施の形態におけるクライアント装置10のハードウェア構成の一例を示す図である。
次に、本発明の実施の形態におけるクライアント装置10の機能構成について、図4を参照しながら説明する。図4は、本発明の実施の形態におけるクライアント装置10の機能構成の一例を示す図である。
@Size(min = 1, max = 20)
Private String name;
上記の例では、「@NotNull」と「@Size(min = 1, max = 20)」とがアノテーションであり、これらのアノテーションが「name」に付与されることで上記の制約が定義されている。
以降では、対象遷移に対応するテストスクリプトのバリエーション(つまり、対象テストスクリプト群)を生成する処理について、図5を参照しながら説明する。図5は、対象遷移に対応するテストスクリプトのバリエーション生成処理の一例を示すフローチャートである。
以降では、図5のステップS102の処理(制約の抽出処理)の詳細について、図7を参照しながら説明する。図7は、制約の抽出処理の一例を示すフローチャートである。
以降では、図5のステップS103の処理(入力値の生成処理)の詳細について、図8を参照しながら説明する。図8は、入力値の生成処理の一例を示すフローチャートである。
以降では、図5のステップS104の処理(対象遷移に対応するテストスクリプト群の生成処理)の詳細について、図10を参照しながら説明する。図10は、対象遷移に対応するテストスクリプト群の生成処理の一例を示すフローチャートである。
以上のように、本発明の実施の形態におけるクライアント装置10では、Webアプリケーションのテストにおける重要なテスト観点である同値分割及び境界値分析それぞれの観点を満たす入力値のバリエーションを自動的に生成する。また、このとき、本発明の実施の形態におけるクライアント装置10は、入力フォームの制約が線形な制約である場合には自動的に入力値を生成し、非線形な制約や正規表現を用いた制約である場合には入力値候補からの入力値の取得を試みる。そして、或る入力フォームについて入力値が得られなかった観点が存在する場合に、ユーザに対して、当該入力フォームに対する入力値の入力を依頼する。これにより、本発明の実施の形態によれば、ユーザが入力値を作成等する工数を大幅に削減させつつ、同値分割及び境界値分析の観点を満たす入力値のバリエーションを得ることができる。
20 サーバ装置
101 対象遷移選択部
102 制約抽出部
103 入力値生成部
104 対象テストスクリプト群生成部
Claims (6)
- Webアプリケーションが提供する画面遷移に関するテストのテストデータを生成するテストデータ生成装置であって、
前記画面遷移のうち、1以上の画面遷移の選択を受け付ける選択受付手段と、
前記Webアプリケーションのフレームワークで規定又は定義されている制約の記述仕様を用いて、前記Webアプリケーションのソースコードを解析し、該ソースコードから制約を抽出する抽出手段と、
前記選択された画面遷移の遷移元の画面に含まれる入力フォームの前記制約を用いて、同値分割及び境界値分析のテスト観点を満たす複数のテストデータを生成する生成手段と、
を有することを特徴とするテストデータ生成装置。 - 前記制約は、線形な制約、非線形な制約又は正規表現を用いた制約のいずれかであり、
前記生成手段は、
前記制約が線形な制約である場合、前記同値分割及び境界値分析のテスト観点を満たす複数のテストデータを生成し、
前記制約が非線形な制約又は正規表現を用いた制約である場合、予め与えられたテストデータ候補集合の中から前記同値分割及び境界値分析のテスト観点を満たす1以上のテストデータを取得し、
前記同値分割及び境界値分析のテスト観点を満たす1以上のテストデータが取得できなかった場合、ユーザに対してテストデータの入力又は指定を依頼するための情報を出力する、ことを特徴とする請求項1に記載のテストデータ生成装置。 - 前記画面遷移に関するテストを実行するテストスクリプトに対して、前記生成手段により生成された複数のテストデータをそれぞれ設定して、該複数のテストデータのそれぞれが設定された複数のテストスクリプトを生成するスクリプト生成手段を有することを特徴とする請求項1又は2に記載のテストデータ生成装置。
- 前記抽出手段は、
前記Webアプリケーションの開発元が独自に規定又は定義した制約の記述仕様を用いて、前記Webアプリケーションのソースコードを解析し、該ソースコードから制約を抽出する、ことを特徴とする請求項1乃至3の何れか一項に記載のテストデータ生成装置。 - Webアプリケーションが提供する画面遷移に関するテストのテストデータを生成するテストデータ生成装置が、
前記画面遷移のうち、1以上の画面遷移の選択を受け付ける選択受付手順と、
前記Webアプリケーションのフレームワークで規定又は定義されている制約の記述仕様を用いて、前記Webアプリケーションのソースコードを解析し、該ソースコードから制約を抽出する抽出手順と、
前記選択された画面遷移の遷移元の画面に含まれる入力フォームの前記制約を用いて、同値分割及び境界値分析のテスト観点を満たす複数のテストデータを生成する生成手順と、
を実行することを特徴とするテストデータ生成方法。 - コンピュータを、請求項1乃至4の何れか一項に記載のテストデータ生成装置における各手段として機能させるためのプログラム。
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018200642A JP7070328B2 (ja) | 2018-10-25 | 2018-10-25 | テストデータ生成装置、テストデータ生成方法及びプログラム |
US17/288,352 US20210382810A1 (en) | 2018-10-25 | 2019-10-11 | Test data generation apparatus, test data generation method and program |
PCT/JP2019/040308 WO2020085129A1 (ja) | 2018-10-25 | 2019-10-11 | テストデータ生成装置、テストデータ生成方法及びプログラム |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018200642A JP7070328B2 (ja) | 2018-10-25 | 2018-10-25 | テストデータ生成装置、テストデータ生成方法及びプログラム |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2020067859A true JP2020067859A (ja) | 2020-04-30 |
JP7070328B2 JP7070328B2 (ja) | 2022-05-18 |
Family
ID=70331165
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018200642A Active JP7070328B2 (ja) | 2018-10-25 | 2018-10-25 | テストデータ生成装置、テストデータ生成方法及びプログラム |
Country Status (3)
Country | Link |
---|---|
US (1) | US20210382810A1 (ja) |
JP (1) | JP7070328B2 (ja) |
WO (1) | WO2020085129A1 (ja) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11960862B2 (en) | 2021-06-18 | 2024-04-16 | Hitachi, Ltd. | Source code correction assistance apparatus and source code correction assistance method |
JP7494558B2 (ja) | 2020-05-15 | 2024-06-04 | コニカミノルタ株式会社 | ユーザーインターフェイスの操作パターンを生成するプログラムおよび操作パターン生成装置 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003044318A (ja) * | 2001-08-02 | 2003-02-14 | Fujitsu Ltd | テスト支援プログラムおよびテスト支援方法 |
JP2012133721A (ja) * | 2010-12-24 | 2012-07-12 | Internatl Business Mach Corp <Ibm> | テストの網羅性を評価する装置及び方法 |
JPWO2017145300A1 (ja) * | 2016-02-24 | 2018-04-12 | 三菱電機株式会社 | テストケース生成装置及びテストケース生成プログラム |
JP2018116497A (ja) * | 2017-01-18 | 2018-07-26 | 日本電信電話株式会社 | 画面判定装置及びプログラム |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPWO2004104824A1 (ja) * | 2003-05-26 | 2006-07-20 | 富士通株式会社 | ユーザインタフェースアプリケーション開発装置および開発方法 |
US7370296B2 (en) * | 2004-05-25 | 2008-05-06 | International Business Machines Corporation | Modeling language and method for address translation design mechanisms in test generation |
JP4148527B2 (ja) * | 2006-06-05 | 2008-09-10 | インターナショナル・ビジネス・マシーンズ・コーポレーション | 機能テスト・スクリプト生成装置 |
US7530036B2 (en) * | 2007-02-08 | 2009-05-05 | International Business Machines Corporation | Random test generation using an optimization solver |
US8302080B2 (en) * | 2007-11-08 | 2012-10-30 | Ntt Docomo, Inc. | Automated test input generation for web applications |
US9118713B2 (en) * | 2011-09-26 | 2015-08-25 | The Board Of Trustees Of The University Of Illinois | System and a method for automatically detecting security vulnerabilities in client-server applications |
US9323650B2 (en) * | 2012-07-23 | 2016-04-26 | Infosys Limited | Methods for generating software test input data and devices thereof |
JP2017145300A (ja) | 2016-02-16 | 2017-08-24 | 三菱ケミカル株式会社 | 変性ポリエチレン組成物、成形体及びシラン架橋ポリエチレン |
-
2018
- 2018-10-25 JP JP2018200642A patent/JP7070328B2/ja active Active
-
2019
- 2019-10-11 US US17/288,352 patent/US20210382810A1/en not_active Abandoned
- 2019-10-11 WO PCT/JP2019/040308 patent/WO2020085129A1/ja active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003044318A (ja) * | 2001-08-02 | 2003-02-14 | Fujitsu Ltd | テスト支援プログラムおよびテスト支援方法 |
JP2012133721A (ja) * | 2010-12-24 | 2012-07-12 | Internatl Business Mach Corp <Ibm> | テストの網羅性を評価する装置及び方法 |
JPWO2017145300A1 (ja) * | 2016-02-24 | 2018-04-12 | 三菱電機株式会社 | テストケース生成装置及びテストケース生成プログラム |
JP2018116497A (ja) * | 2017-01-18 | 2018-07-26 | 日本電信電話株式会社 | 画面判定装置及びプログラム |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7494558B2 (ja) | 2020-05-15 | 2024-06-04 | コニカミノルタ株式会社 | ユーザーインターフェイスの操作パターンを生成するプログラムおよび操作パターン生成装置 |
US11960862B2 (en) | 2021-06-18 | 2024-04-16 | Hitachi, Ltd. | Source code correction assistance apparatus and source code correction assistance method |
Also Published As
Publication number | Publication date |
---|---|
US20210382810A1 (en) | 2021-12-09 |
JP7070328B2 (ja) | 2022-05-18 |
WO2020085129A1 (ja) | 2020-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8448146B2 (en) | Generation of functional tests for re-hosted applications | |
JP4395761B2 (ja) | プログラムテスト支援装置およびその方法 | |
CN104391786B (zh) | 网页自动化测试系统及其方法 | |
US9471283B2 (en) | Generating virtualized application programming interface (API) implementation from narrative API documentation | |
WO2013188540A1 (en) | Practical natural-language human-machine interfaces | |
CN114328276B (zh) | 测试用例生成方法和装置,显示测试用例的方法和装置 | |
JP6440895B2 (ja) | ソフトウェア分析装置及びソフトウェア分析方法 | |
WO2020085129A1 (ja) | テストデータ生成装置、テストデータ生成方法及びプログラム | |
Lin et al. | Gui test transfer from web to android | |
US20220214963A1 (en) | Analysis apparatus, analysis method and program | |
US20160292067A1 (en) | System and method for keyword based testing of custom components | |
JP7268759B2 (ja) | テストデータ生成装置、テストデータ生成方法、及びプログラム | |
JP5815856B2 (ja) | スクリプト依存関係をインライン化するためのシステムおよび方法 | |
JP7260150B2 (ja) | Webサイト設計支援装置、Webサイト設計支援方法、及びプログラム | |
CN111507079B (zh) | 一种多语言文档生成方法及系统和设备 | |
WO2021166271A1 (ja) | 解析装置、解析方法及び解析プログラム | |
JP2019028723A (ja) | 設計確認装置及び設計確認方法 | |
JP6111150B2 (ja) | ソースコード解析装置、ソースコード解析方法、及びプログラム | |
CN110196803B (zh) | 一种软件缺陷培训方法和系统 | |
JP2009053767A (ja) | プログラム解析装置、および、プログラム解析方法 | |
JP2016126700A (ja) | プログラム検証装置、プログラム検証方法及びプログラム検証プログラム | |
JP7322964B2 (ja) | テスト情報抽出装置、テスト情報抽出方法及びプログラム | |
US12001324B2 (en) | Operation pattern generation apparatus, operation pattern generation method and program | |
JP5683209B2 (ja) | ドキュメント類自動生成機能付クライアントコンピュータ | |
JP7127601B2 (ja) | 類似遷移特定装置、類似遷移特定方法及びプログラム |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20210125 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20220111 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20220216 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20220405 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20220418 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7070328 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |