JP2019021341A - Application test support apparatus, data processing method thereof, and program - Google Patents

Application test support apparatus, data processing method thereof, and program Download PDF

Info

Publication number
JP2019021341A
JP2019021341A JP2018192859A JP2018192859A JP2019021341A JP 2019021341 A JP2019021341 A JP 2019021341A JP 2018192859 A JP2018192859 A JP 2018192859A JP 2018192859 A JP2018192859 A JP 2018192859A JP 2019021341 A JP2019021341 A JP 2019021341A
Authority
JP
Japan
Prior art keywords
test
input
application
screen
scenario
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
Application number
JP2018192859A
Other languages
Japanese (ja)
Inventor
亨 青柳
Toru Aoyanagi
亨 青柳
隆幸 開
Takayuki Kai
隆幸 開
良太 橋本
Ryota Hashimoto
良太 橋本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2018192859A priority Critical patent/JP2019021341A/en
Publication of JP2019021341A publication Critical patent/JP2019021341A/en
Pending legal-status Critical Current

Links

Images

Abstract

To provide an application test support apparatus which supports a high-efficiency and high-accuracy test of a developed application, a data processing method thereof, and a program.SOLUTION: An application test support apparatus 100 includes: an attribute acquisition section 102 which acquires attribute information on an input item corresponding to an input screen component to be input, on a screen of an application, on the basis of screen design information 110 of the application; and a test case generation section 104 which generates a derived test case 114, based on a test scenario which defines screen operation of the application, from a reference test case 112 based on the test scenario, by changing the contents to be input to the input screen component set in the reference test case 112, on the basis of the attribute information on the acquired input item.SELECTED DRAWING: Figure 1

Description

本発明は、アプリケーションテスト支援装置、そのデータ処理方法、およびプログラムに関し、特に、アプリケーションのテストを支援するアプリケーションテスト支援装置、そのデータ処理方法、およびプログラムに関する。   The present invention relates to an application test support apparatus, a data processing method thereof, and a program, and more particularly to an application test support apparatus that supports an application test, a data processing method thereof, and a program.

ウェブアプリケーションに関するテストケースおよびテストデータを自動的に生成する技術の一例が特許文献1に記載されている。このテストケース生成装置は、画面遷移定義情報からテストケース生成の対象画面を取得し、画面構成情報からテスト対象カラムを取得し、データ定義情報からテスト対象カラムに対する制約を取得し、テスト対象カラムに対する制約とテストケーステンプレートをマッチングさせ、テストケースとテストデータを生成する。   An example of a technique for automatically generating test cases and test data relating to a web application is described in Patent Document 1. This test case generation device acquires the target screen for test case generation from the screen transition definition information, acquires the test target column from the screen configuration information, acquires the constraints for the test target column from the data definition information, and Constraints and test case templates are matched to generate test cases and test data.

特開2006−260390号公報JP 2006-260390 A

特許文献1に記載の技術では、生成されるテストケースとテストデータは、テストプログラム用のソースコードとして生成されているため、自動で生成されたテストケースが適切な範囲で設定されているか、漏れがないか、等を確認する作業を行おうとした場合に、直感的には分かりにくく、精査に時間がかかるといった問題点があった。確認作業を疎かにしてしまうと、テストの精度が低くなり、アプリケーションの信頼性も落ちてしまい兼ねない。   In the technique described in Patent Document 1, since the generated test case and test data are generated as source code for a test program, whether the automatically generated test case is set within an appropriate range or is leaked. When trying to check whether there is any problem, etc., there was a problem that it was difficult to understand intuitively and it took time to investigate. Leaving the confirmation work will reduce the accuracy of the test and reduce the reliability of the application.

本発明は上記事情に鑑みてなされたものであり、その目的とするところは、開発アプリケーションの高効率および高精度なテストを支援するアプリケーションテスト支援装置、そのデータ処理方法、およびプログラムを提供することにある。   The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an application test support apparatus that supports high-efficiency and high-accuracy testing of development applications, a data processing method thereof, and a program It is in.

本発明の各側面では、上述した課題を解決するために、それぞれ以下の構成を採用する。   Each aspect of the present invention employs the following configurations in order to solve the above-described problems.

第一の側面は、アプリケーションテスト支援装置に関する。
第一の側面に係るアプリケーションテスト支援装置は、
アプリケーションの画面上で、入力操作対象となる入力画面部品に対応する入力項目に関する属性情報を、前記アプリケーションの画面設計情報を元に取得する属性取得手段と、
取得した前記入力項目に関する属性情報に基づいて、前記アプリケーションの画面操作を定義するテストシナリオに基づく基準テストケースから、その基準テストケースに設定される前記入力画面部品への入力操作内容を変化させた、前記テストシナリオに基づく派生テストケースを生成するテストケース生成手段と、を有する。
The first aspect relates to an application test support device.
The application test support device according to the first aspect is
On the screen of the application, attribute acquisition means for acquiring attribute information related to the input item corresponding to the input screen component to be input operation based on the screen design information of the application,
Based on the acquired attribute information on the input item, the content of the input operation to the input screen component set in the reference test case is changed from the reference test case based on the test scenario that defines the screen operation of the application. And test case generation means for generating a derived test case based on the test scenario.

第二の側面は、少なくとも1つのコンピュータにより実行されるアプリケーションテスト支援装置のデータ処理方法に関する。
第二の側面に係るアプリケーションテスト支援装置のデータ処理方法は、
アプリケーションテスト支援装置が、
アプリケーションの画面上で、入力操作対象となる入力画面部品に対応する入力項目に関する属性情報を、前記アプリケーションの画面設計情報を元に取得し、
取得した前記入力項目に関する属性情報に基づいて、前記アプリケーションの画面操作を定義するテストシナリオに基づく基準テストケースから、その基準テストケースに設定される前記入力画面部品への入力操作内容を変化させた、前記テストシナリオに基づく派生テストケースを生成する、ことを含む。
The second aspect relates to a data processing method of an application test support apparatus executed by at least one computer.
The data processing method of the application test support apparatus according to the second aspect is as follows:
Application test support device
On the screen of the application, obtain attribute information related to the input item corresponding to the input screen component to be input operation based on the screen design information of the application,
Based on the acquired attribute information on the input item, the content of the input operation to the input screen component set in the reference test case is changed from the reference test case based on the test scenario that defines the screen operation of the application. Generating a derived test case based on the test scenario.

なお、本発明の他の側面としては、上記第二の側面の方法を少なくとも1つのコンピュータに実行させるプログラムであってもよいし、このようなプログラムを記録したコンピュータが読み取り可能な記録媒体であってもよい。この記録媒体は、非一時的な有形の媒体を含む。
このコンピュータプログラムは、コンピュータにより実行されたとき、コンピュータに、アプリケーションテスト支援装置上で、そのデータ処理方法を実施させるコンピュータプログラムコードを含む。
As another aspect of the present invention, there may be a program for causing at least one computer to execute the method of the second aspect, or a computer-readable recording medium recording such a program. May be. This recording medium includes a non-transitory tangible medium.
The computer program includes computer program code that, when executed by a computer, causes the computer to perform the data processing method on the application test support apparatus.

なお、以上の構成要素の任意の組合せ、本発明の表現を方法、装置、システム、記録媒体、コンピュータプログラムなどの間で変換したものもまた、本発明の態様として有効である。   It should be noted that any combination of the above-described constituent elements and a conversion of the expression of the present invention between a method, an apparatus, a system, a recording medium, a computer program, etc. are also effective as an aspect of the present invention.

また、本発明の各種の構成要素は、必ずしも個々に独立した存在である必要はなく、複数の構成要素が一個の部材として形成されていること、一つの構成要素が複数の部材で形成されていること、ある構成要素が他の構成要素の一部であること、ある構成要素の一部と他の構成要素の一部とが重複していること、等でもよい。   The various components of the present invention do not necessarily have to be independent of each other. A plurality of components are formed as a single member, and a single component is formed of a plurality of members. It may be that a certain component is a part of another component, a part of a certain component overlaps with a part of another component, or the like.

また、本発明の方法およびコンピュータプログラムには複数の手順を順番に記載してあるが、その記載の順番は複数の手順を実行する順番を限定するものではない。このため、本発明の方法およびコンピュータプログラムを実施するときには、その複数の手順の順番は内容的に支障のない範囲で変更することができる。   Moreover, although the several procedure is described in order in the method and computer program of this invention, the order of the description does not limit the order which performs a several procedure. For this reason, when the method and computer program of the present invention are implemented, the order of the plurality of procedures can be changed within a range that does not hinder the contents.

さらに、本発明の方法およびコンピュータプログラムの複数の手順は個々に相違するタイミングで実行されることに限定されない。このため、ある手順の実行中に他の手順が発生すること、ある手順の実行タイミングと他の手順の実行タイミングとの一部ないし全部が重複していること、等でもよい。   Furthermore, the plurality of procedures of the method and the computer program of the present invention are not limited to being executed at different timings. For this reason, another procedure may occur during the execution of a certain procedure, or some or all of the execution timing of a certain procedure and the execution timing of another procedure may overlap.

上記各側面によれば、開発アプリケーションの高効率および高精度なテストを支援するアプリケーションテスト支援装置、そのデータ処理方法、およびプログラムを提供することができる。   According to the above aspects, it is possible to provide an application test support apparatus that supports high-efficiency and high-accuracy testing of development applications, a data processing method thereof, and a program.

本発明の実施の形態に係るアプリケーションテスト支援装置の構成を論理的に示す機能ブロック図である。It is a functional block diagram which shows logically the structure of the application test assistance apparatus which concerns on embodiment of this invention. 本実施形態のアプリケーションテスト支援装置のテスト支援対象のアプリケーションの画面の一例を示す図である。It is a figure which shows an example of the screen of the application of the test assistance object of the application test assistance apparatus of this embodiment. 本実施形態のアプリケーションテスト支援装置のテスト支援対象のアプリケーションの画面遷移の一例を示す図である。It is a figure which shows an example of the screen transition of the application of the test assistance object of the application test assistance apparatus of this embodiment. 本発明の実施の形態に係るアプリケーションテスト支援装置を実現するコンピュータのハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of the computer which implement | achieves the application test assistance apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係るアプリケーションテスト支援装置のデータ処理方法における処理手順を示すフローチャートである。It is a flowchart which shows the process sequence in the data processing method of the application test assistance apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係るアプリケーションテスト支援装置におけるテストシナリオおよびテストケースを説明するための図である。It is a figure for demonstrating the test scenario and test case in the application test assistance apparatus which concerns on embodiment of this invention. 本実施形態のアプリケーションテスト支援装置のテスト支援対象のアプリケーションが利用するデータ情報の一例を示す図である。It is a figure which shows an example of the data information which the application of the test assistance object of the application test assistance apparatus of this embodiment uses. 本実施形態のアプリケーションテスト支援装置における、派生テストケースの生成例を説明するための図である。It is a figure for demonstrating the production | generation example of a derived test case in the application test assistance apparatus of this embodiment. 本実施形態のアプリケーションテスト支援装置の構成を論理的に示す機能ブロック図である。It is a functional block diagram which shows logically the structure of the application test assistance apparatus of this embodiment. 本発明の実施の形態に係るアプリケーションテスト支援装置におけるテストシナリオおよびテストケースを説明するための図である。It is a figure for demonstrating the test scenario and test case in the application test assistance apparatus which concerns on embodiment of this invention. 本実施形態のアプリケーションテスト支援装置の構成を論理的に示す機能ブロック図である。It is a functional block diagram which shows logically the structure of the application test assistance apparatus of this embodiment. 本実施形態のアプリケーションテスト支援装置の構成を論理的に示す機能ブロック図である。It is a functional block diagram which shows logically the structure of the application test assistance apparatus of this embodiment. 本実施形態のアプリケーションテスト支援装置の表示部により表示される変更箇所一覧の一例を示す図である。It is a figure which shows an example of the change location list displayed by the display part of the application test assistance apparatus of this embodiment. 本実施形態のアプリケーションテスト支援装置の構成を論理的に示す機能ブロック図である。It is a functional block diagram which shows logically the structure of the application test assistance apparatus of this embodiment. 本実施形態のアプリケーションテスト支援装置によるアプリケーションの動作テストの概要を説明するための図である。It is a figure for demonstrating the outline | summary of the operation test of the application by the application test assistance apparatus of this embodiment. 本実施形態のアプリケーションテスト支援装置において、テストシナリオからテスト仕様書を生成する処理を説明するための図である。It is a figure for demonstrating the process which produces | generates a test specification from a test scenario in the application test assistance apparatus of this embodiment. 本実施形態のアプリケーションテスト支援装置で、テスト仕様書を生成するツールの画面の一例を示す図である。It is a figure which shows an example of the screen of the tool which produces | generates a test specification in the application test assistance apparatus of this embodiment. 本発明の実施の形態に係るアプリケーションテスト支援装置のデータ処理方法における処理手順を示すフローチャートである。It is a flowchart which shows the process sequence in the data processing method of the application test assistance apparatus which concerns on embodiment of this invention. 本実施形態のアプリケーションテスト支援装置の構成を論理的に示す機能ブロック図である。It is a functional block diagram which shows logically the structure of the application test assistance apparatus of this embodiment. 本実施形態のアプリケーションテスト支援装置のテストシナリオ生成部を実現するテストケース生成ツールの一例を示す図である。It is a figure which shows an example of the test case production | generation tool which implement | achieves the test scenario production | generation part of the application test assistance apparatus of this embodiment. 本発明の実施の形態に係るアプリケーションテスト支援装置を利用するアプリケーション開発システムの構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the application development system using the application test assistance apparatus which concerns on embodiment of this invention. 本発明のアプリケーションテスト支援装置を含むアプリケーション開発システムにより開発されるアプリケーションを利用したシステムの構成の一例を示すブロック図である。It is a block diagram which shows an example of the structure of the system using the application developed by the application development system containing the application test assistance apparatus of this invention. 本実施形態のアプリケーションテスト支援装置のテスト対象のアプリケーションのデータ情報の一例を示す図である。It is a figure which shows an example of the data information of the application of the test object of the application test assistance apparatus of this embodiment.

以下、本発明の実施の形態について、図面を用いて説明する。尚、すべての図面において、同様な構成要素には同様の符号を付し、適宜説明を省略する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In all the drawings, the same reference numerals are given to the same components, and the description will be omitted as appropriate.

(第1の実施の形態)
本発明の第1の実施の形態に係るアプリケーションテスト支援装置、そのデータ処理方法およびプログラムについて、以下説明する。
図1は、本発明の実施の形態に係るアプリケーションテスト支援装置100の構成を論理的に示す機能ブロック図である。
本発明の実施の形態に係るアプリケーションテスト支援装置100は、アプリケーションの画面上で、入力操作対象となる入力画面部品に対応する入力項目に関する属性情報を、アプリケーションの画面設計情報110を元に取得する属性取得部102と、取得した入力項目に関する属性情報に基づいて、アプリケーションの画面操作を定義するテストシナリオに基づく基準テストケース112から、その基準テストケース112に設定される入力画面部品への入力操作内容を変化させた、テストシナリオに基づく派生テストケース114を生成するテストケース生成部104と、を備える。
(First embodiment)
An application test support apparatus, its data processing method, and program according to the first embodiment of the present invention will be described below.
FIG. 1 is a functional block diagram logically showing the configuration of the application test support apparatus 100 according to the embodiment of the present invention.
The application test support apparatus 100 according to the embodiment of the present invention acquires attribute information related to an input item corresponding to an input screen component that is an input operation target on the screen of the application based on the screen design information 110 of the application. Based on the attribute acquisition unit 102 and the attribute information about the acquired input item, the input operation from the reference test case 112 based on the test scenario defining the screen operation of the application to the input screen component set in the reference test case 112 A test case generation unit 104 that generates a derived test case 114 based on a test scenario, the content of which is changed.

本発明のアプリケーションテスト支援装置は、アプリケーションの開発時等における、テストを支援する装置である。本実施形態では、アプリケーションテスト支援装置100がテストするアプリケーションとして、ウェブアプリケーションを例に説明する。
図22は、本発明のアプリケーションテスト支援装置を含む開発システムにより開発されるアプリケーションを利用したシステムの構成の一例を示すブロック図である。
図22に示すように、ウェブアプリケーション32は、ウェブサーバ30上で動作し、ネットワーク3を介してブラウザ42経由でユーザ端末40にて利用される。
本発明のテスト対象となるアプリケーションは、ウェブアプリケーションに限定されるものではない。たとえば、サーバ、データベース、および端末の全てがユーザ側に含まれる、企業内のシステム等も開発対象となり得る。
The application test support apparatus of the present invention is an apparatus that supports a test at the time of application development or the like. In the present embodiment, a web application will be described as an example of an application to be tested by the application test support apparatus 100.
FIG. 22 is a block diagram showing an example of a system configuration using an application developed by a development system including the application test support apparatus of the present invention.
As shown in FIG. 22, the web application 32 operates on the web server 30 and is used in the user terminal 40 via the browser 42 via the network 3.
The application to be tested in the present invention is not limited to a web application. For example, a system in a company in which all of a server, a database, and a terminal are included on the user side can be a development target.

図1に戻り、画面設計情報110とは、アプリケーション設計を行う際に、アプリケーションの画面構成、画面遷移、および各画面の部品(画面構成要素)配置、そのレイアウト、各画面構成要素の属性などを定義した情報を含む。また、各画面構成要素の属性は、画面構成要素に対するチェック機能に関する情報、たとえば、入力必須や英文字のみ入力可、および電話番号形式入力のみ許可等の情報を含む。
たとえば、アプリケーションが、図2に示すような店舗検索画面120を有する場合を例に説明する。
図2は、本実施形態のアプリケーションテスト支援装置100のテスト支援対象のアプリケーションの画面の一例を示す図である。図3は、本実施形態のアプリケーションテスト支援装置100のテスト支援対象のアプリケーションの画面遷移の一例を示す図である。
Returning to FIG. 1, the screen design information 110 includes the screen configuration of the application, screen transitions, the layout of each screen component (screen configuration element), its layout, the attributes of each screen configuration element, etc. Contains defined information. The attributes of each screen component include information on a check function for the screen component, for example, information such as mandatory input, only English characters can be input, and only phone number format input is permitted.
For example, a case where the application has a store search screen 120 as shown in FIG. 2 will be described as an example.
FIG. 2 is a diagram illustrating an example of a screen of a test support target application of the application test support apparatus 100 according to the present embodiment. FIG. 3 is a diagram illustrating an example of the screen transition of the test support target application of the application test support apparatus 100 according to the present embodiment.

図2の店舗検索画面120では、店舗を店舗名、所在地、または郵便番号から検索することができる。図2に示すように、店舗検索画面120は、店舗名から店舗の検索を行うために、店舗名の入力を受け付けるテキストボックス122と、テキストボックス122に入力された内容で検索を行う指示を受け付ける検索ボタン124とを含む。さらに、店舗検索画面120は、所在地からの店舗検索または郵便番号からの店舗検索のためのユーザインタフェースを含む。   In the store search screen 120 of FIG. 2, a store can be searched from the store name, location, or zip code. As illustrated in FIG. 2, the store search screen 120 receives a text box 122 that accepts an input of a store name and an instruction to perform a search using the contents entered in the text box 122 in order to search for a store from the store name. And a search button 124. Further, the store search screen 120 includes a user interface for store search from a location or store search from a zip code.

図2の店舗名からの検索で、テキストボックス122に検索対象の店舗名の少なくとも一部を含む文字列が入力され、検索ボタン124が押下されると、テキストボックス122に入力されたデータで検索が行われる。その結果、該当する店舗が見つかったか否かを条件として、遷移先の画面が分岐する。これが、図3の条件分岐132で定義される。該当店舗が見つからなかった場合には、その旨をユーザに通知するための検索NG画面134に遷移する。一方、該当店舗が見つかった場合には、その結果を提示する検索結果画面136に遷移する。また、図2の所在地検索で、プルダウンメニュー128で都道府県が選択され、検索ボタン130が押下されると、図3に示すように、さらに、市町村を検索する詳細検索画面138に遷移する。   In the search from the store name in FIG. 2, when a character string including at least a part of the store name to be searched is input in the text box 122 and the search button 124 is pressed, the search is performed using the data input in the text box 122. Is done. As a result, the transition destination screen branches on condition that the corresponding store is found. This is defined by conditional branch 132 in FIG. If the corresponding store is not found, the screen transitions to a search NG screen 134 for notifying the user to that effect. On the other hand, when the corresponding store is found, the screen transitions to a search result screen 136 that presents the result. In addition, when a prefecture is selected from the pull-down menu 128 in the location search of FIG. 2 and the search button 130 is pressed, the screen further shifts to a detailed search screen 138 for searching for a municipality as shown in FIG.

画面および画面遷移に関する情報には、各画面のID、名称、種類(たとえば、ページ、またはポップアップ等)と、画面間の関係に関する情報が含まれる。また、各画面に関する情報には、画面のデザイン(背景の属性情報、レイアウト、テキストコンテンツの内容、文字の属性情報(サイズ、フォント、色等)、画像ファイルの属性情報(ファイルのパス、表示サイズ等)等)、画面構成要素(テキストボックス122、検索ボタン124、プルダウンメニュー128)等の属性情報が含まれる。   The information regarding the screen and the screen transition includes information regarding the ID, name, type (for example, page or popup) of each screen, and the relationship between the screens. Information about each screen includes screen design (background attribute information, layout, text content content, character attribute information (size, font, color, etc.), image file attribute information (file path, display size). Etc.), and attribute information such as screen components (text box 122, search button 124, pull-down menu 128).

また、入力画面部品とは、入力または選択される内容または操作指示を受け付けるためのGUI(Graphical User Interface)コンポーネントや、データを出力するコンポーネントを含む各種の画面構成要素のうち、入力(または選択)に関する部品を指し、たとえば、テキストボックス、コンボボックス、リストボックス、プルダウンメニュー(ドロップダウンメニュー)、コンテキストメニュー、チェックボタン、ラジオボタン等が例示される。入力画面部品にて入力または選択される入力内容は、文字列、数値、および配列データ等を含む。   The input screen component is an input (or selection) among various screen components including a GUI (Graphical User Interface) component for receiving contents to be input or selected or an operation instruction and a component for outputting data. For example, a text box, a combo box, a list box, a pull-down menu (drop-down menu), a context menu, a check button, a radio button, and the like are exemplified. Input contents to be input or selected on the input screen component include a character string, a numerical value, array data, and the like.

入力項目とは、入力画面部品に割り当てられているデータ項目を指し、たとえば、テキストボックスに紐付けされているデータフィールドに相当する。入力画面部品に対応する入力項目に関する属性情報は、入力画面部品の種類、名称、データフィールドに関する属性情報(データフィールド名(位置)、データ名、データ形式、データ型、データ長、データ範囲(有効または無効)、データ桁数、データ入力が必須か否か等)等を含む。これらの属性情報に基づいて、テストで入力画面部品への入力のチェックが行われ、属性の範囲内または範囲外等の条件を変えたそれぞれの動作が確認されることになる。
入力操作内容は、少なくとも2つのパラメータを含む。たとえば、パラメータ1は、操作対象を示し、画面のどのテキストボックスかを示す。パラメータ2は入力内容を示し、たとえば、何を入力したかを示す。
An input item refers to a data item assigned to an input screen component, and corresponds to, for example, a data field associated with a text box. The attribute information related to the input item corresponding to the input screen part is attribute information about the type, name, and data field of the input screen part (data field name (position), data name, data format, data type, data length, data range (valid) Or invalid), the number of data digits, whether or not data input is essential, and the like. Based on these attribute information, input to the input screen component is checked in a test, and each operation with different conditions such as within or outside the attribute range is confirmed.
The input operation content includes at least two parameters. For example, parameter 1 indicates the operation target and indicates which text box on the screen. Parameter 2 indicates the input content, for example, what is input.

ラジオボタンの場合、複数のラジオボタンを1つの入力画面部品とみなす。パラメータ1で、複数のラジオボタンの中から、どれが選択されたかが示される。パラメータ2は使用しなくてよい。   In the case of radio buttons, a plurality of radio buttons are regarded as one input screen part. Parameter 1 indicates which of a plurality of radio buttons has been selected. Parameter 2 may not be used.

チェックボックスの場合、複数の選択肢に対応する複数のチェックボックスをそれぞれ個別の入力画面部品とする場合と、複数の選択肢に対応する複数のチェックボックスをまとめて1つの入力画面部品とする場合との両方が考えられる。画面上でのチェックボックスの使い方によって、いずれのケースとするかが決まる。たとえば、複数の選択肢のうち、いくつでも選択してよい場合は、前者となり、一方、複数の選択肢のうち、選択数に制限がある場合、後者となる。いずれにしても、チェックボタン毎に、選択されたものがパラメータ1で示される。なお、本明細書で説明したパラメータの定義は一例であり、これらに限定されない。   In the case of check boxes, there are a case where a plurality of check boxes corresponding to a plurality of options are individually input screen parts, and a case where a plurality of check boxes corresponding to a plurality of options are combined into one input screen part. Both are conceivable. Which case to use depends on how the checkboxes are used on the screen. For example, when any number of options can be selected, the former is used. On the other hand, when the number of options is limited, the latter is selected. In any case, the selected item is indicated by parameter 1 for each check button. In addition, the definition of the parameter demonstrated in this specification is an example, and is not limited to these.

テストシナリオとは、アプリケーションの動作をテストするために、アプリケーションを利用する際のユーザによる一連の画面操作等をシミュレーションし、その一連の画面操作を定義するものである。テストシナリオとは、具体的なテストデータを伴わない、アプリケーションの動きや画面の遷移の1つの動作パスである。テストシナリオにある1つのテストデータセットに基づいたテストを行うことでテストケースとなる。1つのテストシナリオには、複数のテストケースが存在する。   In the test scenario, in order to test the operation of an application, a series of screen operations performed by the user when using the application is simulated, and the series of screen operations is defined. The test scenario is one operation path of application movement and screen transition without specific test data. A test case is obtained by performing a test based on one test data set in the test scenario. There are a plurality of test cases in one test scenario.

また、テストケースとは、あるテストシナリオに対し、ある1つのテストデータセットを利用したテストを指す。テストケース毎に具体的な入力テストデータをテストシナリオにインプットすることで得られるべき出力テストデータがそれぞれ存在する。アプリケーションのテストでは、入力テストデータをテストシナリオにインプットして得られた出力がテスト結果を示す。このテスト結果は、テストケースの出力テストデータに基づき、その正否が判定できる。   A test case refers to a test using a certain test data set for a certain test scenario. There is output test data to be obtained by inputting specific input test data into the test scenario for each test case. In the application test, the output obtained by inputting the input test data into the test scenario indicates the test result. The test result can be judged as correct or not based on the output test data of the test case.

図2の店舗検索画面120を例にすると、テストシナリオは、テキストボックス122に店舗名が入力され、検索ボタン124が押下されたとき、図3の検索結果画面136に遷移することをテストするための一連の画面操作が定義される。この例では、テストシナリオは、図2の店舗検索画面120において、テキストボックス122に入力された内容を取得し、検索ボタン124の押下を検出し、図3の検索結果画面136に遷移したか否かを、画面キャプチャを取り、画像を保存する一連の画面操作が定義される。この画面キャプチャにより得られた遷移後の検索結果画面136の画像を用いれば、画面内の画像の表示位置のずれやフォーマットの違い等を確認することができる。さらに、他の例では、遷移後の検索結果画面136に表示される表示内容、項目、データ(値や文字等)が正しいか否かの確認も、確認および検証してもよい。   Taking the store search screen 120 of FIG. 2 as an example, the test scenario is to test that when the store name is entered in the text box 122 and the search button 124 is pressed, transition to the search result screen 136 of FIG. A series of screen operations is defined. In this example, in the test scenario, the content input in the text box 122 on the store search screen 120 in FIG. 2 is acquired, the depression of the search button 124 is detected, and whether or not the search scenario has transitioned to the search result screen 136 in FIG. A series of screen operations are defined that take a screen capture and save the image. By using the image of the search result screen 136 after the transition obtained by this screen capture, it is possible to check the display position shift, format difference, etc. of the image on the screen. In another example, whether or not the display contents, items, and data (values, characters, etc.) displayed on the search result screen 136 after the transition are correct may be confirmed and verified.

また、テストシナリオは、基準テストケース112として、たとえば、最もポプュラーな一連の画面操作を定義することができる。その一方で、アプリケーションのテストにおいては、ユーザによって様々な操作が行われた場合や、滅多に行われないような操作について、正常な動作または操作の間違いをユーザに報知する動作がなされることが好ましい。そして、これらの様々なケースについて、アプリケーションの動作テストが行われることが好ましい。また、入力された内容によって動作が変わる場合、異なる動作が全てテストできることが好ましい。
たとえば、上記の例では、テキストボックス122に、有効な内容が入力された場合の動作と、無効な内容が入力された場合の動作とが異なるので、両方の動作を確認できる入力を行いテストするのが好ましい。
The test scenario can define, for example, the most popular series of screen operations as the reference test case 112. On the other hand, in application testing, when various operations are performed by the user, or operations that are rarely performed, an operation that informs the user of a normal operation or an operation error may be performed. preferable. And it is preferable that the operation test of an application is performed about these various cases. Further, when the operation changes depending on the input contents, it is preferable that all different operations can be tested.
For example, in the above example, the operation when valid contents are entered in the text box 122 is different from the action when invalid contents are entered. Is preferred.

しかしながら、あらゆるケースに対応する多数のテストケースを作成するとき、必要なテストケースが漏れてしまわないようにするための確認作業にも手間がかかり、コストが高くなってしまうという問題点があった。
そこで、本発明は、基準テストケース112から、必要なテストケースを適切な範囲で網羅できる複数の派生テストケース114を、効率よく、かつ、精度よく自動的に作成することを目的とする。
However, when creating a large number of test cases corresponding to all cases, there was a problem that the confirmation work to prevent the necessary test cases from being leaked took time and increased the cost. .
Therefore, an object of the present invention is to automatically and efficiently create a plurality of derived test cases 114 that can cover necessary test cases in an appropriate range from the reference test cases 112.

本実施形態において、テストケース生成部104は、属性情報により示される入力項目の有効入力条件および無効入力条件に基づいて、複数の派生テストケース114に設定すべき複数の入力操作内容を決定する。   In the present embodiment, the test case generation unit 104 determines a plurality of input operation contents to be set in the plurality of derived test cases 114 based on the valid input condition and invalid input condition of the input item indicated by the attribute information.

入力項目の有効入力条件および無効入力条件は、各入力項目の有効なデータ範囲およびその範囲外、有効なデータ型およびそれ以外、または、有効なデータ形式およびそれ以外等の条件を含む。
属性情報により示される入力項目の有効条件および無効条件に基づく入力操作内容の決定方法は、以下に例示されるが、これらに限定されるものではない。また、以下の各条件は、それぞれ矛盾のない範囲で組み合わせることができる。
The valid input condition and invalid input condition of the input item include a valid data range of each input item and out of the valid range, a valid data type and other, or a valid data format and other conditions.
The method of determining the input operation content based on the valid condition and invalid condition of the input item indicated by the attribute information is exemplified below, but is not limited thereto. In addition, the following conditions can be combined within a consistent range.

(a)入力項目の属性情報に基づいて、入力操作内容が有効または無効となる境界データ(範囲)を決定し、有効または無効となる境界データ(範囲)の中と、有効となる境界データ(範囲)を境として無効な範囲の中、または、無効となる境界データ(範囲)を境として有効な範囲の中でそれぞれ入力データを入力操作内容として決定する。 (A) Based on the attribute information of the input item, boundary data (range) in which the input operation content is valid or invalid is determined, and among boundary data (range) that is valid or invalid, and valid boundary data (range) The input data is determined as the input operation content in the invalid range with respect to (range) or within the valid range with reference to invalid boundary data (range).

(b)入力項目の属性情報に基づいて、入力操作内容の有効または無効な範囲を決定し、有効な範囲と無効な範囲の両方の中でそれぞれ複数の入力データを入力操作内容として決定する。入力項目に、複数の入力候補が存在する場合、有効な範囲として複数の入力候補の中から入力操作内容を決定し、無効な範囲として、複数の入力候補以外の入力操作内容を決定する。上記(a)との違いは、入力操作内容に、境界データ(範囲)があるかないかである。 (B) A valid or invalid range of the input operation content is determined based on the attribute information of the input item, and a plurality of input data is determined as the input operation content in both the valid range and the invalid range. When there are a plurality of input candidates in the input item, the input operation content is determined from among the plurality of input candidates as an effective range, and the input operation content other than the plurality of input candidates is determined as an invalid range. The difference from the above (a) is whether or not there is boundary data (range) in the input operation content.

あるアプリケーションでは、入力項目として生年月日を入力させ、中学生であることを判別し、中学生であれば、入会の申込画面へ移行し、中学生でなければ申し込みできない旨を通知する画面に移行するとする。この場合、属性取得部102は、画面設計情報から、入力された生年月日を条件として分岐して異なる画面に移行していることを検出する。そして、属性取得部102は、現在、中学生となる生年月日の範囲(たとえば、2001年4月2日〜2004年4月1日)を有効入力条件(有効範囲)として取得する。   In an application, the date of birth is entered as an input item, and it is determined that the student is a junior high school student. . In this case, the attribute acquisition unit 102 detects from the screen design information that the input date of birth is branched as a condition and the screen is shifted to a different screen. And the attribute acquisition part 102 acquires the range (for example, April 2, 2001-April 1, 2004) which becomes a junior high student now as an effective input condition (effective range).

そして、テストケース生成部104が、この中学生となる生年月日の範囲(たとえば、2001年4月2日〜2004年4月1日)を有効となる境界範囲と決定する。さらに、テストケース生成部104は、無効となる範囲を、2001年4月1日以前と、2004年4月2日以降と決定する。テストケース生成部104は、各範囲の中から、複数の生年月日を選択して入力操作内容(たとえば、2000年5月20日、2001年4月1日、2001年4月2日、2003年7月10日、2004年4月1日、2004年4月2日、2005年1月25日等)に決定する。上記例のように、境界値と、境界の直近の前後の値と、境界から一定の範囲離れた値と、を組み合わせて複数決定するのが好ましい。   Then, the test case generation unit 104 determines the date of birth (for example, April 2, 2001 to April 1, 2004) as a junior high school student as a valid boundary range. Further, the test case generation unit 104 determines the invalid ranges as before April 1, 2001 and after April 2, 2004. The test case generation unit 104 selects a plurality of birth dates from each range, and inputs operation details (for example, May 20, 2000, April 1, 2001, April 2, 2001, 2003). July 10, 2004, April 1, 2004, April 2, 2004, January 25, 2005, etc.). As in the above example, it is preferable to determine a plurality of combinations of boundary values, values immediately before and after the boundary, and values separated from the boundary by a certain range.

また、入力項目の属性情報として年齢が成人と定義されている場合、入力操作内容が有効となる範囲は、20才以上と決定され、無効となる範囲は、20才未満と決定される。入力データとして、有効な範囲内で、20才、30才、60才、無効な範囲内で、15才、5才等が決定される。   Further, when the age is defined as the adult information as the attribute information of the input item, the range in which the input operation content is valid is determined to be 20 years old or more, and the invalid range is determined to be less than 20 years old. As input data, 20 years old, 30 years old, 60 years old within the valid range, 15 years old, 5 years old, etc. within the invalid range are determined.

また、別のアプリケーションの例では、10個のチェックボックスの選択肢から3つまで選択でき、4つ以上選択された場合には警告メッセージを表示するとする。この場合、属性取得部102は、画面設計情報から、チェックボックスが4つ以上選択された場合に、警告メッセージの画面に移行していることを検出する。そして、属性取得部102は、チェックボックスの選択は3つ以下が、有効範囲であると決定する。そして、テストケース生成部104が、境界データとしてチェックボックスの選択数を3に決定し、さらに、有効範囲としてチェックボックスの選択数を3以下、無効範囲として、チェックボックスの選択数を4以上と決定する。そして、テストケース生成部104は、チェックボックスの選択数を、境界値の3と、有効範囲の1、2、無効範囲の4、8、10等に決定する。   In another example of the application, up to three choices of ten check boxes can be selected, and a warning message is displayed when four or more are selected. In this case, the attribute acquisition unit 102 detects that the screen has shifted to the warning message screen when four or more check boxes are selected from the screen design information. Then, the attribute acquisition unit 102 determines that three or fewer check boxes are in the valid range. Then, the test case generation unit 104 determines the number of check box selections as 3 as boundary data, further sets the number of check box selections as 3 or less as an effective range, and sets the number of check box selections as 4 or more as an invalid range. decide. Then, the test case generation unit 104 determines the number of check boxes to be selected as the boundary value 3, the valid range 1, 2, the invalid range 4, 8, 10, and the like.

(c)上記(a)または(a)の入力データを、境界範囲内および、有効な範囲または無効な範囲内において乱数でそれぞれ決定する。
(d)入力データを入力しない。たとえば、空の文字列(「""」、「’’」等)としたり、NULLとしたり、入力項目が数値型であれば、0や255を入力データとしてもよい。なお、入力項目に入力しないことの表記方法は、プログラム言語等に依存し、様々な定義があるので、ここでは詳細な説明は省略する。本明細書では、入力項目に何も入力されないことを、「入力項目の入力操作内容をNULLとする」とする。特に、入力項目の属性情報で、入力が必須であることが定義されている場合、あえて入力がないことをテストするためのテストケースを生成するのが好ましい。
(C) The input data (a) or (a) is determined by random numbers within the boundary range and within the valid range or the invalid range.
(D) No input data is input. For example, an empty character string (““ ””, “″”, etc.), NULL, or 0 or 255 may be used as input data if the input item is a numeric type. Note that the notation method of not inputting into an input item depends on the program language and the like and has various definitions, and thus detailed description is omitted here. In this specification, the fact that nothing is input to the input item is referred to as “the input operation content of the input item is set to NULL”. In particular, when the attribute information of the input item defines that the input is essential, it is preferable to generate a test case for testing that there is no input.

(e)入力項目の属性情報に基づいて、入力データを、入力項目に対応するフィールドデータのデータ型の指定以外のデータとする。
(f)入力項目の属性情報に基づいて、入力項目の入力桁数を、指定範囲内外(外側は大小両方)の値を複数決定する、
上記(e)と(f)を組み合わせた例では、入力項目の属性情報として半角英数字6桁と定義されている場合、入力操作内容が有効となる境界データとして半角英数字6桁が決定され、境界データの前後の半角英数字1〜5桁と7桁以上、あるいは、全角文字、半角カナ文字の無効な範囲の中からそれぞれ入力データが決定される。たとえば、半角英数字6桁、1桁、10桁、全角文字6桁(さらに、1桁、10桁を含んでもよい)、半角カナ文字6桁(さらに、1桁、10桁を含んでもよい)等が入力データに決定される。
(E) Based on the attribute information of the input item, the input data is data other than the designation of the data type of the field data corresponding to the input item.
(F) Based on the attribute information of the input item, determine the number of input digits of the input item as a plurality of values within and outside the specified range (both large and small on the outside).
In the example of combining (e) and (f) above, when 6-byte alphanumeric characters are defined as the attribute information of the input item, the 6-byte alphanumeric characters are determined as the boundary data for enabling the input operation content. The input data is determined from 1 to 5 half-width alphanumeric characters before and after the boundary data, 7 digits or more, or an invalid range of full-width characters and half-width kana characters. For example, 6 half-width alphanumeric characters, 1 digit, 10 digits, 6 full-width characters (may include 1 digit, 10 digits), 6 half-width Kana characters (may include 1 digit, 10 digits) Etc. are determined as input data.

(g)互いに関連する複数の入力項目の境界データ(範囲)、または、有効または無効範囲等を組み合わせた入力有効条件および無効入力条件に基づいて、複数組の入力操作内容を決定する。
例として、入力項目として性別と年齢を入力させ、婚姻年齢に到達しているか否かを判定し、婚姻年齢に到達している場合は、登録画面に移行し、到達していない場合は、登録できない旨を通知する画面に移行するアプリケーションについて説明する。この場合、属性取得部102は、画面設計情報から、入力された性別と年齢の組み合わせを条件として分岐して異なる画面に移行していることを検出する。そして、属性取得部102は、婚姻年齢に到達しているか否かを判別するための有効入力条件として、性別が男性、かつ、年齢が18才以上であることと、性別が女性で、かつ、年齢が16才以上であること、を取得する。
(G) A plurality of sets of input operation contents are determined based on boundary data (range) of a plurality of input items related to each other, or an input valid condition and an invalid input condition obtained by combining valid or invalid ranges.
As an example, enter gender and age as input items, determine whether or not the marriage age has been reached, if the marriage age has been reached, move to the registration screen, if not, register An application that shifts to a screen notifying that it cannot be described. In this case, the attribute acquisition unit 102 detects from the screen design information that the combination of the input sex and age is used as a condition to shift to a different screen. Then, the attribute acquisition unit 102, as an effective input condition for determining whether or not the marriage age has been reached, that the gender is male and the age is 18 years old, the gender is female, and Acquire that the age is over 16 years old.

そして、テストケース生成部104が、有効入力条件を有効範囲に決定し、無効範囲を上記以外に決定する。テストケース生成部104は、各範囲内でそれぞれ複数の入力操作内容を決定する。たとえば、テストケース生成部104は、性別が男性または女性の場合についてそれぞれ、年齢が、15才、16才、17才、18才、19才を入力データとして決定する。   Then, the test case generation unit 104 determines the valid input condition as the valid range, and determines the invalid range other than the above. The test case generation unit 104 determines a plurality of input operation contents within each range. For example, the test case generation unit 104 determines, as input data, the age of 15, 16, 17, 18, and 19 for males and females, respectively.

(h)複数の入力項目のうち、少なくともいずれか1つNULLとし、NULLとする入力項目を組み合わせた複数組の入力操作内容を決定する。 (H) At least one of the plurality of input items is set to NULL, and a plurality of sets of input operation contents are determined by combining the input items to be NULL.

図4は、本発明の実施の形態に係るアプリケーションテスト支援装置100を実現するコンピュータ60のハードウェア構成を示すブロック図である。
本実施形態において、図1のアプリケーションテスト支援装置100の各構成要素は、図4に示される任意のコンピュータ60のハードウェアとソフトウェアの任意の組合せによって実現される。コンピュータ60は、CPU(Central Processing Unit)62、メモリ64、メモリ64にロードされた本図の構成要素を実現するプログラム80、そのプログラム80を格納するハードディスクなどの記憶ユニット(ストレージ66:補助記憶装置)、I/O(Input/Output)68、ネットワーク接続用インタフェース(通信I/F(InterFace:インタフェース)70)を備える。そして、その実現方法、装置にはいろいろな変形例があることは、当業者には理解されるところである。以下に説明する各機能ブロック図は、ハードウェア単位の構成ではなく、機能単位の論理的なブロックを示している。
また、以下の各図において、本発明の本質に関わらない部分の構成については省略してあり、図示されていない。
FIG. 4 is a block diagram showing a hardware configuration of a computer 60 that realizes the application test support apparatus 100 according to the embodiment of the present invention.
In the present embodiment, each component of the application test support apparatus 100 in FIG. 1 is realized by an arbitrary combination of hardware and software of an arbitrary computer 60 shown in FIG. The computer 60 includes a CPU (Central Processing Unit) 62, a memory 64, a program 80 that implements the components shown in the figure loaded in the memory 64, and a storage unit (storage 66: auxiliary storage device) that stores the program 80. ), I / O (Input / Output) 68, and a network connection interface (communication I / F (InterFace: interface) 70). It will be understood by those skilled in the art that there are various modifications to the implementation method and apparatus. Each functional block diagram described below shows not a configuration in hardware units but logical blocks in functional units.
Further, in the following drawings, the configuration of parts not related to the essence of the present invention is omitted and is not shown.

本実施形態において、アプリケーションテスト支援装置100は、たとえば、サーバコンピュータ、パーソナルコンピュータ、またはそれらに相当するコンピュータにより実現することができる。アプリケーションテスト支援装置100を実現するコンピュータ60は、たとえば、キーボードやマウス等の入力装置72、ディスプレイ等の表示装置74、入力装置72と表示装置74が一体となったタッチパネル(不図示)、マイクやスピーカ等の音声入出力装置(不図示)、または、プリンタ等の出力装置(不図示)と接続される。   In the present embodiment, the application test support apparatus 100 can be realized by, for example, a server computer, a personal computer, or a computer corresponding thereto. A computer 60 that implements the application test support apparatus 100 includes, for example, an input device 72 such as a keyboard and a mouse, a display device 74 such as a display, a touch panel (not shown) in which the input device 72 and the display device 74 are integrated, a microphone, It is connected to a voice input / output device (not shown) such as a speaker or an output device (not shown) such as a printer.

コンピュータ60の各要素は、バス69を介して互いに接続され、CPU62により各要素とともにアプリケーションテスト支援装置100全体が制御される。コンピュータ60のCPU62が、ストレージ66に記憶されるプログラム80をメモリ64に読み出して実行することにより、アプリケーションテスト支援装置100の図1の各ユニットの各機能を実現することができる。なお、以下の各実施形態においても同様であり、各実施形態のアプリケーションテスト支援装置の各ユニットの各機能は、コンピュータ60のCPU62が各実施形態に対応するプログラム80を実行することにより実現される。   Each element of the computer 60 is connected to each other via a bus 69, and the entire application test support apparatus 100 is controlled by the CPU 62 together with each element. The CPU 62 of the computer 60 reads out the program 80 stored in the storage 66 to the memory 64 and executes it, so that each function of each unit in FIG. 1 of the application test support apparatus 100 can be realized. The same applies to each of the following embodiments, and each function of each unit of the application test support apparatus of each embodiment is realized by the CPU 62 of the computer 60 executing the program 80 corresponding to each embodiment. .

本実施形態のコンピュータプログラム80は、アプリケーションテスト支援装置100を実現させるためのコンピュータ60に、アプリケーションの画面上で、入力操作対象となる入力画面部品に対応する入力項目に関する属性情報を、アプリケーションの画面設計情報110を元に取得する手順、取得した入力項目に関する属性情報に基づいて、アプリケーションの画面操作を定義するテストシナリオに基づく基準テストケース112から、その基準テストケース112に設定される入力画面部品への入力操作内容を変化させた、テストシナリオに基づく派生テストケース114を生成する手順、を実行させるように記述されている。   The computer program 80 according to the present embodiment causes the computer 60 for realizing the application test support apparatus 100 to display attribute information regarding input items corresponding to input screen components to be input on the application screen, on the application screen. Input screen components set in the reference test case 112 from the reference test case 112 based on the test scenario that defines the screen operation of the application based on the procedure acquired based on the design information 110 and the attribute information on the acquired input item It is described to execute a procedure for generating a derived test case 114 based on a test scenario in which the content of the input operation to is changed.

本実施形態のコンピュータプログラム80は、コンピュータ60で読み取り可能な記録媒体に記録されてもよい。記録媒体は特に限定されず、様々な形態のものが考えられる。また、プログラム80は、記録媒体からコンピュータ60のメモリ64にロードされてもよいし、ネットワーク3を通じてコンピュータ60にダウンロードされ、メモリ64にロードされてもよい。または、プログラム80は、記録媒体からコンピュータ60のストレージ66に読み込まれて格納された後、メモリ64にロードされてもよい。   The computer program 80 of the present embodiment may be recorded on a recording medium that can be read by the computer 60. The recording medium is not particularly limited, and various forms can be considered. The program 80 may be loaded from the recording medium into the memory 64 of the computer 60, or downloaded to the computer 60 through the network 3 and loaded into the memory 64. Alternatively, the program 80 may be loaded from the recording medium into the storage 66 of the computer 60 and then loaded into the memory 64.

コンピュータプログラム80を記録する記録媒体は、非一時的な有形のコンピュータ60が使用可能な媒体を含み、その媒体に、コンピュータ60が読み取り可能なプログラムコードが埋め込まれる。コンピュータプログラム80が、コンピュータ60上で実行されたとき、コンピュータ60に、アプリケーションテスト支援装置100を実現する以下の制御方法を実行させる。   The recording medium for recording the computer program 80 includes a medium that can be used by a non-transitory tangible computer 60, and a program code that can be read by the computer 60 is embedded in the medium. When the computer program 80 is executed on the computer 60, the computer 60 is caused to execute the following control method for realizing the application test support apparatus 100.

このように構成された本実施形態のアプリケーションテスト支援装置100のデータ処理方法について、以下説明する。
図5は、本発明の実施の形態に係るアプリケーションテスト支援装置100のデータ処理方法における処理手順を示すフローチャートである。
本発明の実施の形態に係るアプリケーションテスト支援装置100のデータ処理方法は、アプリケーションテスト支援装置100が、アプリケーションの画面上で、入力操作対象となる入力画面部品に対応する入力項目に関する属性情報を、アプリケーションの画面設計情報110を元に取得し(ステップS101)、取得した入力項目に関する属性情報に基づいて、アプリケーションの画面操作を定義するテストシナリオに基づく基準テストケース112から、その基準テストケース112に設定される入力画面部品への入力操作内容を変化させた、テストシナリオに基づく派生テストケース114を生成する(ステップS103)。
A data processing method of the application test support apparatus 100 of the present embodiment configured as described above will be described below.
FIG. 5 is a flowchart showing a processing procedure in the data processing method of the application test support apparatus 100 according to the embodiment of the present invention.
In the data processing method of the application test support apparatus 100 according to the embodiment of the present invention, the application test support apparatus 100 displays attribute information on input items corresponding to input screen components that are input operation targets on the application screen. Based on the screen design information 110 of the application (step S101), based on the acquired attribute information about the input item, from the reference test case 112 based on the test scenario defining the screen operation of the application, to the reference test case 112 A derived test case 114 based on the test scenario in which the input operation content to the input screen component to be set is changed is generated (step S103).

以下、具体例を用いて説明する。
図6は、本発明の実施の形態に係るアプリケーションテスト支援装置100におけるテストシナリオおよびテストケースを説明するための図である。
図2に示した店舗検索画面120のテストを行うためのテストシナリオとテストケースの例が、図6に示されている。
たとえば、図2の店舗検索画面120において、店舗名をテキストボックス122に入力し、検索ボタン124を押下すると、検索結果画面136に検索結果が表示されることをテストする場合を例に説明する。
Hereinafter, a specific example will be described.
FIG. 6 is a diagram for explaining test scenarios and test cases in the application test support apparatus 100 according to the embodiment of the present invention.
An example of a test scenario and a test case for testing the store search screen 120 shown in FIG. 2 is shown in FIG.
For example, a case will be described as an example where a test result is displayed on the search result screen 136 when a store name is input to the text box 122 and the search button 124 is pressed on the store search screen 120 of FIG.

属性取得部102が、アプリケーションの店舗検索画面120上で、入力操作対象となる入力画面部品(たとえば、テキストボックス122、プルダウンメニュー128)に対応する入力項目に関する属性情報を、アプリケーションの画面設計情報110を元に取得する(ステップS101)。ここでは、たとえば、店舗検索画面120のテキストボックス122には、検索しようとする店舗名の少なくとも一部が入力される。テキストボックス122に対応する入力項目は、図7に示す店舗情報の店舗名フィールドデータに紐付けられている。店舗名フィールドデータの属性情報として、データ型が文字列型、文字数が全角文字で1〜6文字であることが定義されているとする。また、テキストボックス122の属性情報として、受け付け可能な文字列は全角文字で、その文字数が1〜6文字と定義されていてもよい。   The attribute acquisition unit 102 displays the attribute information related to the input item corresponding to the input screen component (for example, the text box 122 and the pull-down menu 128) on the store search screen 120 of the application as the screen design information 110 of the application. (Step S101). Here, for example, in the text box 122 of the store search screen 120, at least a part of the store name to be searched is input. The input items corresponding to the text box 122 are associated with the store name field data of the store information shown in FIG. As attribute information of the store name field data, it is defined that the data type is a character string type and the number of characters is 1 to 6 double-byte characters. Further, as the attribute information of the text box 122, the acceptable character string may be defined as double-byte characters and the number of characters is 1 to 6 characters.

属性取得部102は、この「店舗名」の入力項目の属性情報(データ型が文字列型、文字数が全角文字1〜6文字)を取得する。
そして、テストケース生成部104が、これらの属性情報に基づいて、テキストボックス122への入力操作内容を変換させた派生テストケース114を生成する(ステップS103)。図6に示すように、テストケース生成部104により、入力が「新宿(該当店舗あり)」である派生テストケース114(Test-1-1)と、入力が「東京都新宿3丁目(文字数オーバー)」である派生テストケース114(Test-1-2)と、入力が「NULL」である派生テストケース114(Test-1-3)と、入力された結果が該当店舗なしとなる派生テストケース114(不図示)と、が生成される。
The attribute acquisition unit 102 acquires attribute information (data type is a character string type and the number of characters is 1 to 6 double-byte characters) of the input item of “store name”.
Then, the test case generation unit 104 generates a derived test case 114 in which the input operation content to the text box 122 is converted based on the attribute information (step S103). As shown in FIG. 6, the test case generation unit 104 uses the derived test case 114 (Test-1-1) whose input is “Shinjuku (there is a corresponding store)” and the input “Tokyo Shinjuku 3-chome (number of characters exceeded). ) ”Derived test case 114 (Test-1-2), derived test case 114 (Test-1-3) whose input is“ NULL ”, and derived test case where the input result is no corresponding store. 114 (not shown) are generated.

なお、上記「該当店舗あり」と「該当店舗なし」となる入力内容の決定方法は様々考えられるが、たとえば、テストケース生成部104が、検索対象である店舗名フィールドデータを参照して、店舗名に含まれる文字列を任意のレコードから抽出して検索結果が得られる(該当店舗あり)入力内容とし、一方、店舗名が含まれないような、ランダムに文字を並べた文字列を生成して、検索結果が得られない(該当店舗なし)入力内容とすればよい。   Note that there are various methods for determining the input contents “there are corresponding stores” and “there are no corresponding stores”. For example, the test case generation unit 104 refers to the store name field data to be searched, and stores The character string included in the name is extracted from any record and the search result is obtained (there is a corresponding store). On the other hand, a character string that randomly arranges characters that does not include the store name is generated. Thus, the input content may not be obtained (no corresponding store).

そして、テストケース生成部104は、派生テストケース114毎に、各テストを実行するためのプログラムをそれぞれ生成し、出力する。このようにして生成されたプログラムは、たとえば、図21の開発装置20上で動作するウェブサーバ30上で実行され、テスト結果が出力される。なお、図21のアプリケーション開発システム1における、これらのテスト動作については、後述する実施形態で詳細に説明する。   Then, the test case generation unit 104 generates and outputs a program for executing each test for each derived test case 114. The program generated in this way is executed, for example, on the web server 30 operating on the development device 20 of FIG. 21, and a test result is output. Note that these test operations in the application development system 1 of FIG. 21 will be described in detail in an embodiment described later.

以上説明したように、本実施形態のアプリケーションテスト支援装置100において、属性取得部102が、アプリケーションの店舗検索画面120上で、入力操作対象となる入力画面部品(たとえば、テキストボックス122、プルダウンメニュー128)に対応する入力項目に関する属性情報を、アプリケーションの画面設計情報110を元に取得し、テストケース生成部104が、属性情報に基づいて、テストシナリオに基づく基準テストケース112から、その基準テストケース112に設定される入力画面部品への入力操作内容を変化させた、テストシナリオに基づく派生テストケース114を生成する。   As described above, in the application test support apparatus 100 according to the present embodiment, the attribute acquisition unit 102 performs the input screen components (for example, the text box 122 and the pull-down menu 128) on the store search screen 120 of the application. ) Is acquired on the basis of the screen design information 110 of the application, and the test case generation unit 104 extracts the reference test case from the reference test case 112 based on the test scenario based on the attribute information. A derived test case 114 based on the test scenario in which the input operation content to the input screen component set in 112 is changed is generated.

これにより、本実施形態のアプリケーションテスト支援装置100によれば、画面設計情報から取得した入力項目の属性情報に基づいて、基準テストケース112から複数のバリエーションを増やし、複数のテストケースを自動で生成できるので、必要なテストケースを適切な範囲で網羅できる複数の派生テストケース114を、効率よく、かつ、精度よく自動的に作成することができる。これにより、テストの品質が向上し、引いてはアプリケーションの品質および信頼性も向上する。   Thereby, according to the application test support apparatus 100 of this embodiment, based on the attribute information of the input item acquired from the screen design information, a plurality of variations are increased from the reference test case 112, and a plurality of test cases are automatically generated. Therefore, a plurality of derived test cases 114 that can cover necessary test cases in an appropriate range can be automatically created efficiently and accurately. This improves the quality of the test, which in turn improves the quality and reliability of the application.

(第1の実施の形態の変形態様1)
第1の実施の形態の変形態様1のアプリケーションテスト支援装置について以下に説明する。
図8は、本実施形態のアプリケーションテスト支援装置における、派生テストケース114の生成例を説明するための図である。
本実施形態では、図1のアプリケーションテスト支援装置100における基準テストケース112から派生テストケース114を生成する具体的な方法について説明する。本実施形態のアプリケーションテスト支援装置は、図1のアプリケーションテスト支援装置100と同様な構成を有するので、以下、図1および図8を用いて説明する。
(Modification 1 of the first embodiment)
An application test support apparatus according to Modification 1 of the first embodiment will be described below.
FIG. 8 is a diagram for explaining a generation example of the derived test case 114 in the application test support apparatus of the present embodiment.
In the present embodiment, a specific method for generating the derived test case 114 from the reference test case 112 in the application test support apparatus 100 of FIG. 1 will be described. Since the application test support apparatus of the present embodiment has the same configuration as that of the application test support apparatus 100 of FIG. 1, it will be described below with reference to FIGS.

本実施形態のアプリケーションテスト支援装置100において、テストシナリオ140は、入力操作を示す入力操作命令を含む。
テストシナリオ140の基準テストケース112は、入力操作命令のパラメータとなる、入力操作の対象となる入力画面部品の識別情報(パラメータ1に相当)およびその入力画面部品への入力内容を含む入力操作内容(パラメータ2に相当)を有する。
属性取得部102は、入力操作命令のパラメータを基準テストケース112から抽出し、抽出されたパラメータにより示される入力画面部品の識別情報および画面設計情報110に基づいて、その入力画面部品に対応する入力項目の属性情報を取得する。
テストケース生成部104は、取得された属性情報に基づいて、抽出されたパラメータにより示される入力画面部品への入力内容を変化させて、複数の派生テストケース114を生成する。
In the application test support apparatus 100 of the present embodiment, the test scenario 140 includes an input operation command indicating an input operation.
The reference test case 112 of the test scenario 140 is an input operation content including identification information (corresponding to the parameter 1) of an input screen component to be an input operation, which is a parameter of the input operation command, and input content to the input screen component. (Corresponding to parameter 2).
The attribute acquisition unit 102 extracts the parameter of the input operation command from the reference test case 112, and based on the input screen component identification information and the screen design information 110 indicated by the extracted parameter, the input corresponding to the input screen component Get item attribute information.
The test case generation unit 104 generates a plurality of derived test cases 114 by changing the input content to the input screen component indicated by the extracted parameters based on the acquired attribute information.

本実施形態において、入力操作を示す複数のコマンドを含むテストシナリオ140と、テストシナリオ140に基づく基準テストケース112は、マイクロソフト社製のエクセル(登録商標)等の表計算ソフトウェアのシート142(図8(a))に記入することができる。
図8(a)の例では、1列目の各行が、上から順に実行される一連のテスト命令を含んでいる。そして、2列目は、各テスト命令の2つのパラメータを上下2つのセルに含んでいて、基準テストケース112に相当する。
In this embodiment, a test scenario 140 including a plurality of commands indicating input operations and a reference test case 112 based on the test scenario 140 are a spreadsheet 142 sheet of spreadsheet software such as Excel (registered trademark) manufactured by Microsoft Corporation (FIG. 8). (A)).
In the example of FIG. 8A, each row in the first column includes a series of test instructions executed in order from the top. The second column includes two parameters for each test instruction in two upper and lower cells, and corresponds to the reference test case 112.

そして、属性取得部102は、テストシナリオ140に含まれるテスト命令の中から入力操作命令(type)を検出し、検出された入力操作命令のパラメータ(144)を基準テストケース112から抽出し、抽出されたパラメータ(144)により示される入力画面部品の識別情報(SSS_text_1)および画面設計情報110に基づいて、その入力画面部品に対応する入力項目の属性情報を取得する。ここでは、テキストボックス(SSS_text_1)に対応する入力項目の属性情報として、データ型が文字列型(全角文字)、文字数が全角文字で1〜6文字であることを取得する。
なお、テストシナリオ140に含まれる入力操作命令は、たとえば、「Type」、「click」または「clickAndWait」等がある。
Then, the attribute acquisition unit 102 detects the input operation command (type) from the test commands included in the test scenario 140, extracts the parameter (144) of the detected input operation command from the reference test case 112, and extracts it. Based on the input screen component identification information (SSS_text_1) and the screen design information 110 indicated by the parameter (144), the attribute information of the input item corresponding to the input screen component is acquired. Here, as the attribute information of the input item corresponding to the text box (SSS_text_1), it is acquired that the data type is a character string type (double-byte characters) and the number of characters is 1 to 6 characters.
The input operation command included in the test scenario 140 includes, for example, “Type”, “click”, “clickAndWait”, and the like.

そして、テストケース生成部104は、取得された属性情報に基づいて、抽出されたパラメータにより示される入力画面部品への入力内容を、文字数が2文字(文字制限内)でかつ検索結果で該当店舗が得られる「新宿」と、6文字以上(文字制限超え)の「東京都新宿3丁目」(8文字)と、入力がないケースと、検索結果で該当店舗が得られないケースと、4つに変化させて、少なくとも4つの入力候補を生成する。あるいは、データ型が文字列型(全角文字)以外のたとえば数値型や半角文字等の入力を候補としてさらに生成してもよい。   Then, based on the acquired attribute information, the test case generation unit 104 sets the input content to the input screen component indicated by the extracted parameter to the corresponding store in the search result with 2 characters (within the character limit). "Shinjuku" where you can get 6 characters (exceeding the character limit), "Tokyo Shinjuku 3-chome" (8 characters), the case where there is no input, and the case where the corresponding store is not obtained in the search results To generate at least four input candidates. Alternatively, for example, a numerical type or a half-width character other than the character string type (full-width character) may be further generated as a candidate.

そして、テストケース生成部104は、図8(a)のシート142の基準テストケース112の列を少なくとも4列分複製して増やした後、生成した入力候補を、Typeコマンドのパラメータ2の各列のセル146にそれぞれ挿入して、4つの派生テストケース114(Test-1-1、Test-1-2、Test-1-3、Test-1-4(不図示))を生成する。図8(b)の例では、1つ目の派生テストケース114(Test-1-1)は、基準テストケース112をそのものである。   Then, the test case generation unit 104 duplicates and increases at least four columns of the reference test case 112 of the sheet 142 in FIG. 8A, and then adds the generated input candidates to each column of the parameter 2 of the Type command. The four derived test cases 114 (Test-1-1, Test-1-2, Test-1-3, Test-1-4 (not shown)) are generated respectively. In the example of FIG. 8B, the first derived test case 114 (Test-1-1) is the reference test case 112 itself.

この例のように、派生テストケース114に基準テストケース112を含めて最終的なテストケースを複数生成してもよい。あるいは、他の例として、派生テストケース114に基準テストケース112は含まず、最終的な複数のテストケースとして、基準テストケース112と派生テストケース114をそれぞれ用いる構成としてもよい。
このように、本実施形態では、テストケース生成部104は、シート142の基準テストケース112の列を派生テストケース114分、複製して生成し、テスト命令のパラメータをテストケース毎に変更することで、テストケースのバリエーションを簡単に増やすことができる。
As in this example, a plurality of final test cases may be generated by including the reference test case 112 in the derived test case 114. Alternatively, as another example, the reference test case 112 may not be included in the derived test case 114, and the reference test case 112 and the derived test case 114 may be used as a plurality of final test cases.
As described above, in this embodiment, the test case generation unit 104 generates a duplicate of the reference test case 112 column of the sheet 142 for the derived test case 114, and changes the parameters of the test instruction for each test case. This makes it easy to increase test case variations.

このように、本実施形態のアプリケーションテスト支援装置100において、属性取得部102が、入力操作命令のパラメータを基準テストケース112から抽出し、抽出されたパラメータにより示される入力画面部品の識別情報および画面設計情報110に基づいて、その入力画面部品に対応する入力項目の属性情報を取得し、テストケース生成部104が、取得された属性情報に基づいて、抽出されたパラメータにより示される入力画面部品への入力内容を変化させて、複数の派生テストケース114を生成する。   As described above, in the application test support apparatus 100 according to the present embodiment, the attribute acquisition unit 102 extracts the parameter of the input operation command from the reference test case 112, and the identification information and screen of the input screen component indicated by the extracted parameter Based on the design information 110, the attribute information of the input item corresponding to the input screen component is acquired, and the test case generation unit 104 moves to the input screen component indicated by the extracted parameter based on the acquired attribute information. A plurality of derived test cases 114 are generated by changing the input contents of.

これにより、本実施形態のアプリケーションテスト支援装置100によれば、基準テストケース112から、画面設計情報に基づいて複数の派生テストケース114を適切な範囲で生成することができるので、作業効率が向上するとともに、テスト内容の品質も向上する。また、シート142でテストシナリオ140の一連のテスト命令と各パラメータを参照することができるので、テスト内容の確認作業も容易になり、効率が向上するとともに、テスト品質も向上する。テストシナリオのソースコード自体でテスト内容を確認する場合に比べ、テスト内容が直感的に分かりやすい。   As a result, according to the application test support apparatus 100 of the present embodiment, a plurality of derived test cases 114 can be generated within a suitable range from the reference test case 112 based on the screen design information, thereby improving work efficiency. In addition, the quality of the test content is improved. In addition, since a series of test commands and parameters of the test scenario 140 can be referred to on the sheet 142, it is easy to confirm the test contents, and the efficiency is improved and the test quality is also improved. Compared to checking the test contents with the test scenario source code itself, the test contents are intuitively easy to understand.

(第1の実施の形態の変形態様2)
第1の実施の形態の変形態様2のアプリケーションテスト支援装置について以下に説明する。
図9は、本実施形態のアプリケーションテスト支援装置150の構成を論理的に示す機能ブロック図である。
本実施形態のアプリケーションテスト支援装置150は、図1のアプリケーションテスト支援装置100とは、複数の派生テストケース114を一覧表示するとともに、変更箇所を区別可能に表示する点で相違する。
図9の本実施形態のアプリケーションテスト支援装置150は、図1のアプリケーションテスト支援装置100と同様な属性取得部102およびテストケース生成部104に加え、さらに、表示部152を備える。
(Modification 2 of the first embodiment)
The application test support apparatus according to the modification 2 of the first embodiment will be described below.
FIG. 9 is a functional block diagram logically showing the configuration of the application test support apparatus 150 of this embodiment.
The application test support apparatus 150 of the present embodiment is different from the application test support apparatus 100 of FIG. 1 in that a plurality of derived test cases 114 are displayed as a list, and changed portions are displayed in a distinguishable manner.
The application test support apparatus 150 of the present embodiment in FIG. 9 includes a display unit 152 in addition to the attribute acquisition unit 102 and the test case generation unit 104 similar to the application test support apparatus 100 in FIG.

本実施形態のアプリケーションテスト支援装置150において、表示部152は、基準テストケース112の各テスト命令の入力項目と入力操作内容に対応する、複数の派生テストケース114の各テスト命令の入力操作内容を対応付けて一覧表示する。
そして、表示部152は、複数の派生テストケース114において、基準テストケース112から変化させた入力項目の入力操作内容を、それぞれ区別可能に表示する。
In the application test support apparatus 150 of the present embodiment, the display unit 152 displays the input operation contents of each test instruction in the plurality of derived test cases 114 corresponding to the input items and input operation contents of each test instruction in the reference test case 112. Display a list in association.
The display unit 152 displays the input operation contents of the input items changed from the reference test case 112 in the plurality of derived test cases 114 so that they can be distinguished from each other.

表示部152は、たとえば、図4のコンピュータ60に接続される表示装置74に、図10のシート142を表示させることができる。図10に示すように、表示部152は、入力項目の入力操作内容を変更した箇所154をそれぞれ他と区別可能に表示する。この例では、破線で囲んでいるが、他の例では、対応するセルの背景色またはセル内の文字の色を他と変えたり、強調文字(ホールド指定、イタリック指定等)にしたりしてもよい。変更箇所が区別可能であれば、特に限定されない。   The display unit 152 can display the sheet 142 of FIG. 10 on the display device 74 connected to the computer 60 of FIG. 4, for example. As shown in FIG. 10, the display unit 152 displays the portions 154 where the input operation contents of the input items have been changed so that they can be distinguished from each other. In this example, it is surrounded by a broken line, but in other examples, the background color of the corresponding cell or the color of characters in the cell may be changed from others, or highlighted characters (hold designation, italic designation, etc.) Good. There is no particular limitation as long as the changed portions can be distinguished.

このように、本実施形態のアプリケーションテスト支援装置150によれば、表示部152が、派生テストケース114を一覧表示するとともに、テストケース生成部104により自動的に生成された複数の派生テストケース114において、他と変更された箇所を区別可能に表示させるので、派生テストケース114において、基準テストケース112から変化させた箇所とその差異の内容を分かりやすく表示できる。   Thus, according to the application test support apparatus 150 of the present embodiment, the display unit 152 displays a list of the derived test cases 114 and a plurality of derived test cases 114 automatically generated by the test case generation unit 104. In FIG. 4, since the changed part is displayed so as to be distinguishable, in the derived test case 114, the changed part from the reference test case 112 and the content of the difference can be displayed in an easy-to-understand manner.

(第1の実施の形態の変形態様3)
第1の実施の形態の変形態様3のアプリケーションテスト支援装置について以下に説明する。
図11は、本実施形態のアプリケーションテスト支援装置160の構成を論理的に示す機能ブロック図である。
本実施形態のアプリケーションテスト支援装置160は、図1のアプリケーションテスト支援装置100とは、1つのテストシナリオ140から生成された複数の派生テストケース114のそれぞれにナンバリング等の所定の規則に従ってテスト名を付与する。
図11のアプリケーションテスト支援装置160は、図1のアプリケーションテスト支援装置100と同様な構成を有するとともに、さらに、付与部162を有する。図11では、図1のアプリケーションテスト支援装置100の構成との組み合わせを例として示しているが、図9のアプリケーションテスト支援装置150の構成、および他のアプリケーションテスト支援装置の構成と組み合わせることもできる。
(Modification 3 of the first embodiment)
An application test support apparatus according to the modification 3 of the first embodiment will be described below.
FIG. 11 is a functional block diagram logically showing the configuration of the application test support apparatus 160 of this embodiment.
The application test support apparatus 160 of this embodiment is different from the application test support apparatus 100 of FIG. 1 in that a test name is assigned to each of a plurality of derived test cases 114 generated from one test scenario 140 according to a predetermined rule such as numbering. Give.
An application test support apparatus 160 in FIG. 11 has a configuration similar to that of the application test support apparatus 100 in FIG. FIG. 11 shows a combination with the configuration of the application test support apparatus 100 of FIG. 1 as an example, but it can also be combined with the configuration of the application test support apparatus 150 of FIG. 9 and the configuration of other application test support apparatuses. .

本実施形態のアプリケーションテスト支援装置160において、付与部162は、複数の派生テストケース114に、所定の規則に従って、採番、または、テスト名を付与する。   In the application test support apparatus 160 of this embodiment, the assigning unit 162 assigns a number or a test name to the plurality of derived test cases 114 according to a predetermined rule.

図10の例では、3つの派生テストケース114には、「Test-1」の後に、1、2、3がそれぞれナンバリングされている。
このようにして付与されたテスト名は、テスト用プログラムが生成されたときのプログラムの名称に含めてもよい。
図10のように、シート142の派生テストケース114に対応する各列のタイトル行に、付与部162がテスト名を記入することができる。
なお、このテスト名は、後述するテスト仕様書またはテスト結果報告書などにそのまま利用することもできる。
In the example of FIG. 10, three derived test cases 114 are numbered 1, 2, and 3 after “Test-1”.
The test name assigned in this way may be included in the name of the program when the test program is generated.
As shown in FIG. 10, the assigning unit 162 can enter the test name in the title row of each column corresponding to the derived test case 114 of the sheet 142.
This test name can also be used as it is in a test specification or test result report, which will be described later.

このように、本実施形態のアプリケーションテスト支援装置160によれば、基準テストケース112から派生した複数のテストケースを一連のテストケースとして、テスト名を付与することができるので、複数のテストを体系的に管理しやすくなる。   As described above, according to the application test support apparatus 160 of the present embodiment, since a plurality of test cases derived from the reference test case 112 can be assigned as a series of test cases, a test name can be assigned. Easy to manage.

(第1の実施の形態の変形態様4)
第1の実施の形態の変形態様4のアプリケーションテスト支援装置について以下に説明する。
図12は、本実施形態のアプリケーションテスト支援装置170の構成を論理的に示す機能ブロック図である。
本実施形態のアプリケーションテスト支援装置170は、上記実施形態とは、派生テストケース114で変更があった箇所154の情報を抽出して提示する機能をさらに有する点で相違する。
(Modification 4 of the first embodiment)
An application test support apparatus according to the modification 4 of the first embodiment will be described below.
FIG. 12 is a functional block diagram logically showing the configuration of the application test support apparatus 170 of this embodiment.
The application test support apparatus 170 according to the present embodiment is different from the above-described embodiment in that it further has a function of extracting and presenting information on a location 154 that has been changed in the derived test case 114.

本実施形態のアプリケーションテスト支援装置170は、図11のアプリケーションテスト支援装置160と同様な構成を有するとともに、さらに、抽出部172と、表示部174と、を備える。
本実施形態のアプリケーションテスト支援装置170において、表示部174は、図9のアプリケーションテスト支援装置150の表示部152と同様な機能を備えてもよい。
The application test support apparatus 170 of the present embodiment has the same configuration as the application test support apparatus 160 of FIG. 11, and further includes an extraction unit 172 and a display unit 174.
In the application test support apparatus 170 of this embodiment, the display unit 174 may have the same function as the display unit 152 of the application test support apparatus 150 of FIG.

本実施形態のアプリケーションテスト支援装置170において、抽出部172は、テストケース生成部104により、基準テストケース112と各派生テストケース114の間で入力画面部品への入力内容を変化させた変更箇所を抽出する。
表示部174は、各派生テストケース114における変更箇所を表示する。
In the application test support apparatus 170 according to the present embodiment, the extraction unit 172 uses the test case generation unit 104 to determine a changed portion in which the input content to the input screen component is changed between the reference test case 112 and each derived test case 114. Extract.
The display unit 174 displays the changed part in each derived test case 114.

図13は、本実施形態のアプリケーションテスト支援装置170の表示部174により表示される変更箇所一覧の一例を示す図である。
変更箇所一覧176は、派生テストケース114毎に、付与部162により付与されたテスト名と、入力画面部品に対応する入力項目名(「性別」および「年齢」)と、バリエーションにも付与部162により採番された番号と同じ番号(「バリエーション1」等)と、各入力項目の入力内容(「男・17才」等)と、を対応付けて表記する。図に示すように、複数の入力項目の組み合わせの場合、入力項目を(「性別」および「年齢」)「と」で連結し、さらに、「の」で「バリエーション1」等を追記し、さらに、「:」を付してそれ以降に、複数の入力項目の入力内容を「・」で連結して追記して表記する。
なお、図13の変更箇所一覧176の書式は一例であり、これに限定されるものではない。
FIG. 13 is a diagram illustrating an example of a change location list displayed by the display unit 174 of the application test support apparatus 170 according to the present embodiment.
For each derived test case 114, the changed part list 176 includes a test name given by the assigning unit 162, input item names (“gender” and “age”) corresponding to the input screen components, and a variation assigning unit 162. The same number (“variation 1”, etc.) as the number assigned in step (a) is associated with the input contents (“male / 17 years old”, etc.) of each input item. As shown in the figure, in the case of a combination of a plurality of input items, the input items are connected with (“gender” and “age”) “to”, and “variation 1” is added with “no”, , “:” Is added, and after that, the input contents of a plurality of input items are connected with “·” and added and described.
Note that the format of the change location list 176 in FIG. 13 is an example, and the present invention is not limited to this.

この変更箇所一覧176の内容を参照することで、バリエーションの妥当性を確認しやすく、バリエーションの漏れや余分なものを見つけて追加や削除を行ったり、入力操作内容を変更したりすることも可能になる。これらのテストケースの修正操作は、上記実施形態で説明した、図10のシート142上で簡単に行うことができる。   By referring to the contents of this list of changes 176, it is easy to confirm the validity of the variations, and it is possible to find missing or extra variations, add or delete them, or change the contents of input operations become. These test case correction operations can be easily performed on the sheet 142 of FIG. 10 described in the above embodiment.

以上説明したように、本実施形態のアプリケーションテスト支援装置170において、抽出部172が、基準テストケース112と各派生テストケース114の間で入力画面部品への入力内容を変化させた変更箇所を抽出し、表示部174が各派生テストケース114における変更箇所を表示する。
本実施形態のアプリケーションテスト支援装置170によれば、複数の派生テストケース114におけるバリエーションを一覧で確認でき、必要に応じてテストケースをより適切なものにするために修正を行うこともできる。
As described above, in the application test support apparatus 170 according to the present embodiment, the extraction unit 172 extracts a changed portion in which the input content to the input screen component is changed between the reference test case 112 and each derived test case 114. Then, the display unit 174 displays the changed part in each derived test case 114.
According to the application test support apparatus 170 of the present embodiment, variations in the plurality of derived test cases 114 can be confirmed in a list, and corrections can be made to make the test cases more appropriate as necessary.

(第2の実施の形態)
次に、本発明の第2の実施の形態に係るアプリケーションテスト支援装置およびそのデータ処理方法について、以下説明する。なお、本実施形態のプログラムは、上記実施形態と同様に、アプリケーションテスト支援装置のデータ処理方法を少なくとも1つのコンピュータに実行させるものであり、本実施形態での詳細な説明は省略する。
図14は、本発明の実施の形態に係るアプリケーションテスト支援装置200の構成を論理的に示す機能ブロック図である。
本実施形態のアプリケーションテスト支援装置200は、上記実施形態のいずれかのアプリケーションテスト支援装置により生成された複数のテストケースに従ってアプリケーションの動作テストを実行する点で相違する。
(Second Embodiment)
Next, an application test support apparatus and a data processing method thereof according to the second embodiment of the present invention will be described below. Note that the program according to the present embodiment causes the data processing method of the application test support apparatus to be executed by at least one computer, as in the above-described embodiment, and a detailed description thereof will be omitted.
FIG. 14 is a functional block diagram logically showing the configuration of the application test support apparatus 200 according to the embodiment of the present invention.
The application test support apparatus 200 of this embodiment is different in that an application operation test is executed according to a plurality of test cases generated by any of the application test support apparatuses of the above-described embodiment.

本実施形態のアプリケーションテスト支援装置200は、図14の構成要素のみを備える構成とすることもできる。あるいは、他の本発明の実施形態のアプリケーションテスト支援装置の少なくともいずれか1つと組み合わせることもできる。   The application test support apparatus 200 of the present embodiment can be configured to include only the components shown in FIG. Alternatively, it can be combined with at least one of the application test support apparatuses according to other embodiments of the present invention.

本実施形態のアプリケーションテスト支援装置200は、テストシナリオに基づく複数の派生テストケース114のそれぞれについて、アプリケーションを動作させてテストを実行するテスト実行部202と、テスト実行部202により動作させたアプリケーションの画面操作および画面遷移を、テスト結果として記録するテスト結果記録部204と、生成された複数の派生テストケース114のテストシナリオを元に、画面設計情報110を参照して、アプリケーションのテスト仕様書212を生成する仕様書生成部206と、を備える。   The application test support apparatus 200 according to the present embodiment includes a test execution unit 202 that operates an application to execute a test for each of a plurality of derived test cases 114 based on a test scenario, and an application that is operated by the test execution unit 202. Based on the test result recording unit 204 that records screen operations and screen transitions as test results, and the generated test scenarios of a plurality of derived test cases 114, the screen design information 110 is referred to, and the application test specifications 212 And a specification generation unit 206 for generating.

図15は、本実施形態のアプリケーションテスト支援装置200によるアプリケーションの動作テストの概要を説明するための図である。
より詳細には、テスト実行部202は、上記実施形態で説明した、テストケース生成部104により画面設計情報110を元に、テストシナリオ140に基づく基準テストケース112から、複数の派生テストケース114を含むテストシナリオ140を用いて、テストプログラム214を生成する。
FIG. 15 is a diagram for explaining an outline of an application operation test performed by the application test support apparatus 200 according to the present embodiment.
More specifically, the test execution unit 202 generates a plurality of derived test cases 114 from the reference test case 112 based on the test scenario 140 based on the screen design information 110 by the test case generation unit 104 described in the above embodiment. A test program 214 is generated using the test scenario 140 including the test scenario.

本実施形態では、テストシナリオ140は、上記実施形態で説明したエクセル(登録商標)ファイル形式であるとする。テスト実行部202は、エクセルファイル形式のテストシナリオ140に含まれる複数の派生テストケース114を、それぞれテストプログラム214のソースコードに変換する。   In the present embodiment, the test scenario 140 is assumed to be in the Excel (registered trademark) file format described in the above embodiment. The test execution unit 202 converts a plurality of derived test cases 114 included in the test scenario 140 in the Excel file format into the source code of the test program 214, respectively.

さらに、テスト実行部202は、テストプログラム214から、端末40のブラウザ42でウェブアプリケーション32の画面操作を再現させるテストドライバ220を生成する。本実施形態では、テストドライバ220は、オープンソースプログラムのSelenium等の機能を利用して、Java(登録商標)の単体テストを自動的に実行するためのオープンソースプログラムのJunit等のコードとして生成する。   Furthermore, the test execution unit 202 generates a test driver 220 that reproduces the screen operation of the web application 32 by the browser 42 of the terminal 40 from the test program 214. In the present embodiment, the test driver 220 generates a code such as a unit of an open source program for automatically executing a unit test of Java (registered trademark) using a function such as Selenium of the open source program.

そして、テスト実行部202は、テストドライバ220を起動し、バッチ処理で夜間等に複数のテストケースについて、自動で連続してウェブアプリケーション32の動作テストを実行させる。なお、動作テストの前に、オープンソースプログラムのDBUnit等を利用して、テスト用のデータベースデータ(不図示)を作成しておく。   Then, the test execution unit 202 activates the test driver 220 and automatically and continuously executes an operation test of the web application 32 for a plurality of test cases at night or the like by batch processing. Prior to the operation test, database data for testing (not shown) is created using DBUnit of an open source program.

図14に戻り、テスト結果記録部204は、テスト結果記憶部210にテスト結果222および画面キャプチャ224を記録する。
仕様書生成部206は、テストシナリオ140と画面設計情報110に基づいて、テスト仕様書212を生成する。これにより、テスト仕様書212の作成作業を効率化できるとともに、テストシナリオ140とテスト仕様書212との乖離を防止できる。
さらに、仕様書生成部206は、作成したテスト仕様書212に、テスト結果記録部204に記録されたテスト結果222および画面キャプチャ224を挿入することで、テスト結果報告書226を生成することもできる。
Returning to FIG. 14, the test result recording unit 204 records the test result 222 and the screen capture 224 in the test result storage unit 210.
The specification generation unit 206 generates a test specification 212 based on the test scenario 140 and the screen design information 110. As a result, the work of creating the test specification 212 can be made more efficient, and the divergence between the test scenario 140 and the test specification 212 can be prevented.
Further, the specification generation unit 206 can generate the test result report 226 by inserting the test result 222 and the screen capture 224 recorded in the test result recording unit 204 into the created test specification 212. .

図16は、本実施形態のアプリケーションテスト支援装置200において、テストシナリオ140からテスト仕様書212を生成する処理を説明するための図である。
本実施形態において、仕様書生成部206は、画面設計情報110を参照し、テストシナリオ140の各テスト命令にコメントを挿入する。たとえば、テキストボックス(SSS_text_1)の入力項目「店舗名」を画面設計情報110から取得し、テキストボックスに入力データを入力するテスト命令(Type)の上の行に、「@店舗名」と挿入する。「@」を先頭に付すことで、コメントであることを示している。先頭文字は「@」に限定されず、他の文字または記号でもよい。
また、操作ボタン(SSS_submit_1)の部品名「検索ボタン」を画面設計情報110から取得し、操作ボタンの操作を受け付けるテスト命令(clickAndWait)の上の行に、「@検索ボタン」と挿入する。
FIG. 16 is a diagram for explaining processing for generating the test specification 212 from the test scenario 140 in the application test support apparatus 200 of the present embodiment.
In the present embodiment, the specification creation unit 206 refers to the screen design information 110 and inserts a comment into each test instruction of the test scenario 140. For example, the input item “store name” of the text box (SSS_text_1) is acquired from the screen design information 110, and “@ store name” is inserted in the line above the test instruction (Type) for inputting input data into the text box. . “@” Is attached to the head to indicate a comment. The first character is not limited to “@” and may be another character or symbol.
Also, the part name “search button” of the operation button (SSS_submit_1) is acquired from the screen design information 110, and “@search button” is inserted in the line above the test command (clickAndWait) that accepts the operation button operation.

このように、仕様書生成部206は、予めテストシナリオ140の必要な箇所にコメントを挿入しておく。そして、仕様書生成部206は、テストシナリオ140からテスト仕様書212を生成する際に、このコメント(@マークで始まる部分)を抽出し、各派生テストケース114に記載されているテスト命令を、コメントの文字列に置換して、テスト仕様書212に記載する。
テストシナリオ140は、プログラム言語で記載されているが、仕様書生成部206により、コメントを文字列(日本語等の言語表記)で挿入することで、テスト仕様書212を生成する際、テストシナリオ140のテスト命令をコメントの文字列で表記できる。なお、このコメントの文字列は、設計者が入力してもよいが、属性取得部102が画面設計情報110から取得して自動的に入力することもできる。
As described above, the specification generation unit 206 inserts a comment at a necessary part of the test scenario 140 in advance. Then, when generating the test specification 212 from the test scenario 140, the specification generation unit 206 extracts this comment (portion starting with the @ mark), and the test instruction described in each derived test case 114 is It is replaced with the character string of the comment and described in the test specification 212.
The test scenario 140 is described in a program language. When the test specification 212 is generated by the specification generation unit 206 by inserting a comment as a character string (language notation such as Japanese), the test scenario 140 140 test instructions can be expressed as a comment character string. The comment character string may be input by the designer, but the attribute acquisition unit 102 may acquire it from the screen design information 110 and automatically input it.

図17は、本実施形態のアプリケーションテスト支援装置200で、テスト仕様書212を生成するツールの画面の一例を示す図である。
テスト仕様書生成ツールの設定画面230は、テスト仕様書212により生成されるドキュメントの種類を選択するドキュメント選択部(ラジオボタン)232と、テスト仕様書212の元になるテストシナリオ140の保存フォルダを指定する第1指定欄234と、テスト実行時に画面キャプチャの画像ファイルが格納されているフォルダを指定する第2指定欄236と、テスト結果が格納されているフォルダを指定する第3指定欄238と、テスト仕様書212を出力する出力先のフォルダを指定する第4指定欄240と、実行ボタン242と、終了ボタン244と、を含む。
FIG. 17 is a diagram illustrating an example of a tool screen that generates the test specification 212 in the application test support apparatus 200 according to the present embodiment.
The test specification generation tool setting screen 230 includes a document selection unit (radio button) 232 for selecting the type of document generated by the test specification 212 and a storage folder for the test scenario 140 that is the basis of the test specification 212. A first designation field 234 for designating, a second designation field 236 for designating a folder in which image files for screen capture are stored at the time of test execution, and a third designation field 238 for designating a folder in which test results are stored , A fourth designation field 240 for designating an output destination folder for outputting the test specification 212, an execution button 242, and an end button 244.

ドキュメント選択部232は、生成するドキュメントが、機能テスト仕様書、結合テスト仕様書、ならびに、機能テスト結果報告書、結合テスト結果報告書のいずれかを選択する4つのラジオボタンを含む。
実行ボタン242の押下を受け付けると、仕様書生成部206は、ドキュメント選択部232で選択されたドキュメントの生成を開始する。このとき、各指定欄で指定されたフォルダを参照し、必要な情報を取得し、第4指定欄240で指定されたフォルダに格納する。
The document selection unit 232 includes four radio buttons for selecting a functional test specification, an integration test specification, and a functional test result report or an integration test result report as a document to be generated.
When the pressing of the execution button 242 is accepted, the specification generation unit 206 starts generating the document selected by the document selection unit 232. At this time, referring to the folder designated in each designation column, necessary information is acquired and stored in the folder designated in the fourth designation column 240.

本実施形態のアプリケーションテスト支援装置200は、図21に示すような、アプリケーション開発システム1において、開発装置20の一部の機能として組み込むことができる。   The application test support apparatus 200 according to the present embodiment can be incorporated as a partial function of the development apparatus 20 in the application development system 1 as shown in FIG.

図21は、本発明の実施の形態に係るアプリケーションテスト支援装置200を利用するアプリケーション開発システム1の構成の一例を示すブロック図である。
本実施形態の開発装置20は、図4で示したコンピュータ60と同様な構成を有する、サーバコンピュータ、パーソナルコンピュータ、またはそれらに相当するコンピュータにより実現することができる。
FIG. 21 is a block diagram showing an example of the configuration of the application development system 1 that uses the application test support apparatus 200 according to the embodiment of the present invention.
The development apparatus 20 according to the present embodiment can be realized by a server computer, a personal computer, or a computer corresponding to them having the same configuration as the computer 60 shown in FIG.

本発明の実施の形態に係るアプリケーション開発システム1において、開発装置20は、端末40がブラウザ42を経由してインターネット等のネットワーク3を介して利用する、ウェブサーバ30で動作するウェブアプリケーション32の開発を行う装置である。   In the application development system 1 according to the embodiment of the present invention, the development device 20 develops a web application 32 that operates on the web server 30 that the terminal 40 uses via the browser 42 via the network 3 such as the Internet. It is a device that performs.

ウェブアプリケーション32は、たとえば、端末40のブラウザ42上に画面を表示させ、画面上での入力および操作を受け付け、入力操作に基づく処理を実行し、必要に応じてデータベース(DB:DataBase)24を参照し、結果得られたデータに基づき形成される画面を端末40のブラウザ42上に表示させる。
開発装置20は、設計情報と、プログラムのソースコード等を設計情報リポジトリ22に記憶し、これらの情報を元に、仕様書や設計書を作成し、プログラムを生成し、テストを行い、ウェブアプリケーション32を生成する。
For example, the web application 32 displays a screen on the browser 42 of the terminal 40, accepts input and operation on the screen, executes processing based on the input operation, and stores a database (DB: DataBase) 24 as necessary. The screen formed based on the data obtained as a result of the reference is displayed on the browser 42 of the terminal 40.
The development device 20 stores design information, program source code, and the like in the design information repository 22, creates specifications and design documents based on these information, generates programs, performs tests, and performs web application. 32 is generated.

生成されたウェブアプリケーション32は、たとえば、図22に示すように、ウェブサーバ30上で動作し、端末40(図では、複数の端末40a、40bを示す。特に、区別する必要がない場合は、端末40と呼ぶ。)にてブラウザ42経由で利用される。
なお、ブラウザ42の種類は、特に限定されず、端末40毎に異なる種類のブラウザ42を用いてもよい。また、端末40の種類、たとえば、OS等の種類も限定されず、異なる種類のOSで動作する端末40が混在してもよい。
The generated web application 32 operates on the web server 30 as shown in FIG. 22, for example, and shows a terminal 40 (in the figure, a plurality of terminals 40 a and 40 b. It is used via the browser 42 at the terminal 40).
The type of browser 42 is not particularly limited, and a different type of browser 42 may be used for each terminal 40. In addition, the type of the terminal 40, for example, the type of OS or the like is not limited, and terminals 40 that operate with different types of OS may be mixed.

図21および図22のウェブサーバ30および端末40は、図4で示したコンピュータ60と同様な構成を有する、サーバコンピュータ、パーソナルコンピュータ、またはそれらに相当するコンピュータにより実現することができる。
なお、図では、ウェブアプリケーション32は、ウェブサーバ30上にのみ存在するように示されているが、端末40とウェブサーバ30とが協働してウェブアプリケーション32を動作させる。
The web server 30 and the terminal 40 shown in FIGS. 21 and 22 can be realized by a server computer, a personal computer, or a computer corresponding to them having the same configuration as the computer 60 shown in FIG.
In the figure, the web application 32 is shown to exist only on the web server 30, but the terminal 40 and the web server 30 cooperate to operate the web application 32.

具体的には、端末40のブラウザ42からインターネット等のネットワーク3を介してウェブサーバ30のウェブページを表示させた時、ウェブアプリケーション32に含まれる一部のプログラムが端末40にダウンロードされる。この一部のプログラムは、ブラウザ42上で動作する、Java(登録商標)言語等のプログラミング言語で記述される。そして、その一部のプログラムが、端末40のブラウザ42上で、ウェブサーバ30上のウェブアプリケーション32と協働して動作する。   Specifically, when a web page of the web server 30 is displayed from the browser 42 of the terminal 40 via the network 3 such as the Internet, some programs included in the web application 32 are downloaded to the terminal 40. This part of the program is described in a programming language such as Java (registered trademark) language that runs on the browser 42. Some of the programs operate on the browser 42 of the terminal 40 in cooperation with the web application 32 on the web server 30.

端末40からブラウザ42経由で利用されるウェブアプリケーション32のウェブサーバ30上で動作等は公知であり、本発明の本質に関わらないので詳細な説明は省略する。
開発装置20で開発されたウェブアプリケーション32は、テストされた後、実機のウェブサーバ30に配備され、利用することができる。
The operation of the web application 32 that is used from the terminal 40 via the browser 42 on the web server 30 is well-known and is not related to the essence of the present invention, and thus detailed description thereof is omitted.
The web application 32 developed by the development device 20 can be deployed and used on the web server 30 of the actual machine after being tested.

本発明において、ウェブアプリケーション32は、業務用アプリケーションを含むことができる。業務アプリケーションとは、企業の情報システムにおいて、企業活動の業務内容と直接関連のある販売、在庫管理、受注、流通、経費管理、資金管理、人財管理、書類管理などの情報処理やサービスを扱うシステムを実現するアプリケーションプログラムである。   In the present invention, the web application 32 may include a business application. A business application handles information processing and services such as sales, inventory management, order receipt, distribution, expense management, fund management, human resources management, and document management that are directly related to the content of business activities in a corporate information system. It is an application program that realizes the system.

このように構成された本実施形態のアプリケーションテスト支援装置200のデータ処理方法について、以下説明する。
図18は、本発明の実施の形態に係るアプリケーションテスト支援装置200のデータ処理方法における処理手順を示すフローチャートである。
本発明の実施の形態に係るアプリケーションテスト支援装置200のデータ処理方法は、アプリケーションテスト支援装置200が、テストシナリオに基づく複数の派生テストケース114のそれぞれについて、アプリケーションを動作させてテストを実行し、動作させたアプリケーションの画面操作および画面遷移を、テスト結果として記録し(ステップS207)、生成された複数の派生テストケース114のテストシナリオを元に、画面設計情報110を参照して、アプリケーションのテスト仕様書212を生成する(ステップS212)。
A data processing method of the application test support apparatus 200 of the present embodiment configured as described above will be described below.
FIG. 18 is a flowchart showing a processing procedure in the data processing method of application test support apparatus 200 according to the embodiment of the present invention.
In the data processing method of the application test support apparatus 200 according to the embodiment of the present invention, the application test support apparatus 200 executes a test by operating an application for each of the plurality of derived test cases 114 based on the test scenario, Screen operations and screen transitions of the operated application are recorded as test results (step S207), and the application test is performed by referring to the screen design information 110 based on the generated test scenarios of the plurality of derived test cases 114. A specification 212 is generated (step S212).

以下、図18および図15を用いて詳細に説明する。
上記実施形態で説明したように、まず、テストケース生成部104により画面設計情報110を元に、テストシナリオ140に基づく基準テストケース112から、複数の派生テストケース114を含むテストシナリオ140が生成されているものとする(図5のステップS103)。ここでは、テストシナリオ140は、上記実施形態で説明したエクセル(登録商標)ファイル形式であるとする。
Hereinafter, this will be described in detail with reference to FIGS. 18 and 15.
As described in the above embodiment, first, a test scenario 140 including a plurality of derived test cases 114 is generated from the reference test case 112 based on the test scenario 140 based on the screen design information 110 by the test case generation unit 104. (Step S103 in FIG. 5). Here, it is assumed that the test scenario 140 is in the Excel (registered trademark) file format described in the above embodiment.

そして、本実施形態のアプリケーションテスト支援装置200において、テスト実行部202により、このエクセルファイル形式のテストシナリオ140に含まれる複数の派生テストケース114が、それぞれテストプログラム214のソースコードに変換される(ステップS201)。さらに、テスト実行部202により、このテストプログラム214から、テストドライバ220が生成される(ステップS203)。   In the application test support apparatus 200 of the present embodiment, the test execution unit 202 converts a plurality of derived test cases 114 included in the test scenario 140 in the Excel file format into the source code of the test program 214 ( Step S201). Further, the test execution unit 202 generates a test driver 220 from the test program 214 (step S203).

本実施形態では、テスト実行部202により、テストドライバ220が起動され、テストドライバ220によりバッチ処理で夜間等に複数のテストケースについて、自動で連続してウェブアプリケーション32の動作テストが実行される(ステップS205)。そして、ウェブアプリケーション32のテスト結果222とともに、テストシナリオ140に含まれる画面キャプチャコマンドにより、複数の画面キャプチャ224の画像ファイルが出力され、テスト結果記録部204により、テスト結果222と画面キャプチャ224が、テスト結果記憶部210に記録される(ステップS207)。   In the present embodiment, the test driver 220 is activated by the test execution unit 202, and the operation test of the web application 32 is automatically and continuously executed for a plurality of test cases at night or the like by batch processing by the test driver 220 ( Step S205). Then, together with the test result 222 of the web application 32, a plurality of image files of the screen capture 224 are output by the screen capture command included in the test scenario 140. The test result 222 and the screen capture 224 are It is recorded in the test result storage unit 210 (step S207).

一方、アプリケーションテスト支援装置200において、仕様書生成部206により、画面設計情報110およびテストシナリオ140を元にテスト仕様書212が生成される(ステップS209)。さらに、仕様書生成部206により、テスト結果記録部204により記録されたテスト結果222および画面キャプチャ224が、テスト仕様書212に追記され、テスト結果報告書226が生成される(ステップS211)。   On the other hand, in the application test support apparatus 200, the specification creation unit 206 generates a test specification 212 based on the screen design information 110 and the test scenario 140 (step S209). Furthermore, the specification generation unit 206 adds the test result 222 and the screen capture 224 recorded by the test result recording unit 204 to the test specification 212, and generates a test result report 226 (step S211).

図18のフローチャートの各ステップの処理は、必ずしも、続けて行われなくてもよい。また、処理の順序もこれに限定されない。特に、ステップS209のテスト仕様書212の生成処理は、図5のステップS203でテストシナリオ140が生成された後、ステップS205で動作テストを実行する前であってもよい。   The processing of each step in the flowchart of FIG. 18 does not necessarily have to be performed continuously. Further, the order of processing is not limited to this. In particular, the generation process of the test specification 212 in step S209 may be performed after the test scenario 140 is generated in step S203 of FIG. 5 and before the operation test is executed in step S205.

以上説明したように、本実施形態のアプリケーションテスト支援装置200において、テスト実行部202が、テストシナリオに基づく複数の派生テストケース114のそれぞれについて、アプリケーションを動作させてテストを実行し、テスト結果記録部204が、動作させたアプリケーションの画面操作および画面遷移を、テスト結果として記録し、仕様書生成部206が、生成された複数の派生テストケース114のテストシナリオを元に、画面設計情報110を参照して、アプリケーションのテスト仕様書212を生成する。   As described above, in the application test support apparatus 200 of the present embodiment, the test execution unit 202 executes the test by operating the application for each of the plurality of derived test cases 114 based on the test scenario, and records the test results. The unit 204 records the screen operation and screen transition of the operated application as test results, and the specification generation unit 206 stores the screen design information 110 based on the generated test scenarios of the plurality of derived test cases 114. With reference to the application, a test specification 212 of the application is generated.

これにより、本実施形態のアプリケーションテスト支援装置200によれば、テストシナリオ140からテスト仕様書212等のドキュメントを自動的に生成できるので、アジャイル開発時にありがちなドキュメントと実際のプログラムとの不整合がなく、ドキュメントの信頼性が向上する。また、アプリケーションテスト支援装置200により画面設計情報110を元に生成されたテストシナリオ140に従って実行されたテスト結果をテスト仕様書212に追記してテスト結果報告書226を自動的に生成できるので、ドキュメント作成作業を効率よくかつ精度よく行うことができる。   As a result, according to the application test support apparatus 200 of the present embodiment, since a document such as the test specification 212 can be automatically generated from the test scenario 140, there is inconsistency between the document and the actual program that are likely to occur during agile development. And document reliability is improved. In addition, since the test result executed in accordance with the test scenario 140 generated based on the screen design information 110 by the application test support apparatus 200 can be added to the test specification 212 and the test result report 226 can be automatically generated, the document The creation work can be performed efficiently and accurately.

(第3の実施の形態)
次に、本発明の第3の実施の形態に係るアプリケーションテスト支援装置について、以下説明する。なお、本実施形態のデータ処理方法は、上記実施形態と同様に、アプリケーションテスト支援装置のデータ処理方法であり、本実施形態での詳細な説明は省略する。また、本実施形態のプログラムは、上記実施形態と同様に、アプリケーションテスト支援装置のデータ処理方法を少なくとも1つのコンピュータに実行させるものであり、本実施形態での詳細な説明は省略する。
図19は、本発明の実施の形態に係るアプリケーションテスト支援装置300の構成を論理的に示す機能ブロック図である。
本実施形態のアプリケーションテスト支援装置300は、上記実施形態の各アプリケーションテスト支援装置とは、テストシナリオ140をSelenium等の機能を利用して生成する点で相違する。
(Third embodiment)
Next, an application test support apparatus according to a third embodiment of the present invention will be described below. Note that the data processing method of this embodiment is a data processing method of the application test support apparatus, as in the above-described embodiment, and a detailed description thereof will be omitted. Further, the program of the present embodiment causes at least one computer to execute the data processing method of the application test support apparatus, as in the above-described embodiment, and detailed description thereof will be omitted.
FIG. 19 is a functional block diagram logically showing the configuration of the application test support apparatus 300 according to the embodiment of the present invention.
The application test support apparatus 300 according to the present embodiment is different from the application test support apparatuses according to the above-described embodiments in that the test scenario 140 is generated using a function such as Selenium.

本実施形態のアプリケーションテスト支援装置300は、図19の構成要素のみを備える構成とすることもできる。あるいは、他の本発明の実施形態のアプリケーションテスト支援装置の少なくともいずれか1つと組み合わせることもできる。   The application test support apparatus 300 of this embodiment can also be configured to include only the components shown in FIG. Alternatively, it can be combined with at least one of the application test support apparatuses according to other embodiments of the present invention.

本実施形態のアプリケーションテスト支援装置300は、動作するアプリケーションにおける、画面操作および当該画面操作に対応する画面遷移を記録する録画部302と、録画部302により記録された画面操作および画面遷移に基づいて、テストシナリオを生成するテストシナリオ生成部304と、を備える。
録画部302は、動作するアプリケーションの少なくとも1つの画面上で、一連の画面操作を受け付けて、当該一連の画面操作、および当該一連の画面操作に対応する画面遷移を記録する。
テストシナリオ生成部304は、録画部302により記録された画面操作および画面遷移を示すテスト命令にそれぞれ変換し、一連の画面操作に対応する、変換された複数のテスト命令を含む一連のテスト命令を、テストシナリオに基づく基準テストケースとして生成する。
テストシナリオ生成部304により生成されたテストシナリオに基づく基準テストケースに含まれる一連のテスト命令は、入力画面部品に対応する入力項目の情報および入力画面部品への入力操作内容をそれぞれ含む。
The application test support apparatus 300 according to the present embodiment includes a recording unit 302 that records screen operations and screen transitions corresponding to the screen operations in an operating application, and the screen operations and screen transitions recorded by the recording unit 302. A test scenario generation unit 304 that generates a test scenario.
The recording unit 302 receives a series of screen operations on at least one screen of an operating application, and records the series of screen operations and screen transitions corresponding to the series of screen operations.
The test scenario generation unit 304 converts each of the test commands indicating the screen operation and the screen transition recorded by the recording unit 302, and generates a series of test commands including a plurality of converted test commands corresponding to the series of screen operations. Generate as a standard test case based on the test scenario.
A series of test instructions included in the reference test case based on the test scenario generated by the test scenario generation unit 304 includes information on input items corresponding to the input screen components and input operation contents on the input screen components.

本実施形態では、録画部302は、Seleniumの機能を用いて実現することができる。
図21の端末40でブラウザ42を経由してウェブアプリケーション32を動作させ、操作した結果(一連の画面操作および画面遷移)を、録画部302が記録する。たとえば、上記実施形態では、テスト命令に含まれていなかったが、画面を開くコマンド「open」等の画面操作もテストシナリオに含めることができる。
In the present embodiment, the recording unit 302 can be realized using the Selenium function.
The web application 32 is operated on the terminal 40 of FIG. 21 via the browser 42, and the operation result (a series of screen operations and screen transitions) is recorded by the recording unit 302. For example, in the above embodiment, although not included in the test instruction, a screen operation such as a command “open” for opening the screen can also be included in the test scenario.

そして、テストシナリオ生成部304が、画面操作および画面遷移を示すテスト命令にそれぞれ変換し、一連の画面操作に対応する、変換された複数のテスト命令を含む一連のテスト命令を、テストシナリオに基づく基準テストケースとして生成する。
上記実施形態で説明したように、このようにして生成されたテストシナリオに基づく基準テストケース112を元に、派生テストケース114を増やし、テストプログラムを生成することができる。このとき、各テストケースの編集もシート142上で簡単に行うこともできる。
Then, the test scenario generation unit 304 converts each of the test instructions indicating the screen operation and the screen transition into a test instruction including a plurality of converted test instructions corresponding to the series of screen operations based on the test scenario. Generate as a reference test case.
As described in the above embodiment, the test program can be generated by increasing the derived test cases 114 based on the reference test case 112 based on the test scenario generated in this way. At this time, each test case can be easily edited on the sheet 142.

図20は、本実施形態のアプリケーションテスト支援装置300のテストシナリオ生成部304を実現するテストケース生成ツールの一例を示す図である。
たとえば、図6や図8で説明したようなエクセル(登録商標)のシート142上にテストケース生成ツール310を含んでもよい。
FIG. 20 is a diagram illustrating an example of a test case generation tool that implements the test scenario generation unit 304 of the application test support apparatus 300 according to the present embodiment.
For example, the test case generation tool 310 may be included on the Excel (registered trademark) sheet 142 described with reference to FIGS.

テストケース生成ツール310は、入力ファイル指定欄312と、出力先フォルダ指定欄314と、読込ボタン316と、作成ボタン318と、保存ボタン320と、を有する。
入力ファイル指定欄312は、シート142に読み込むテストシナリオの元となるSeleniumによって録画されたテストシナリオに基づく基準テストケース112のコードが記載されたファイルの指定を受け付ける。テストシナリオ生成部304は、読込ボタン316の押下を受け付けると、入力ファイル指定欄312で指定されたファイルを読み込み、図8(a)のように、シート142上にテストシナリオ140に基づく基準テストケース112を展開する。
このとき、テストシナリオ生成部304は、録画されたテストシナリオの一連のコマンドをシート142の1列目の各行に順番に取り込み、さらに、コマンドのパラメータをそれぞれ2列目の対応する行の各セルに取り込む。
The test case generation tool 310 has an input file designation field 312, an output destination folder designation field 314, a read button 316, a creation button 318, and a save button 320.
The input file designation field 312 accepts designation of a file in which the code of the reference test case 112 based on the test scenario recorded by Selenium that is the basis of the test scenario read into the sheet 142 is written. When the test scenario generation unit 304 accepts the pressing of the read button 316, the test scenario generation unit 304 reads the file specified in the input file specification field 312 and reads the reference test case based on the test scenario 140 on the sheet 142 as shown in FIG. 112 is expanded.
At this time, the test scenario generation unit 304 sequentially captures a series of commands of the recorded test scenario into each row of the first column of the sheet 142, and further sets the command parameters to each cell in the corresponding row of the second column. Into.

出力先フォルダ指定欄314は、各テストケースのテストプログラム214を出力するフォルダの指定を受け付ける。
テストシナリオ生成部304は、作成ボタン318の押下を受け付けると、図8(b)のように、シート142に複数の派生テストケース114を生成する。この状態でシート142上、ユーザは、必要に応じてテスト命令を追加したり(後述する)、パラメータを変更して、テストケースを編集することもできる。
保存ボタン320の押下を受け付けると、生成された派生テストケース114からテストプログラムを生成して、出力先フォルダ指定欄314で指定されたフォルダに保存する。
The output destination folder designation field 314 accepts designation of a folder for outputting the test program 214 of each test case.
When the test scenario generation unit 304 accepts pressing of the creation button 318, the test scenario generation unit 304 generates a plurality of derived test cases 114 on the sheet 142 as illustrated in FIG. In this state, on the sheet 142, the user can edit a test case by adding a test command as necessary (described later) or changing parameters.
When the pressing of the save button 320 is accepted, a test program is generated from the generated derived test case 114 and stored in the folder designated in the output destination folder designation field 314.

本実施形態のアプリケーションテスト支援装置300において、録画部302が、動作するアプリケーションの少なくとも1つの画面上で、一連の画面操作を受け付けて、当該一連の画面操作、および当該一連の画面操作に対応する画面遷移を記録し、テストシナリオ生成部304が、画面操作および画面遷移を示すテスト命令にそれぞれ変換し、一連の画面操作に対応する、変換された複数のテスト命令を含む一連のテスト命令を、テストシナリオに基づく基準テストケースとして生成する。
これにより、本実施形態のアプリケーションテスト支援装置300によれば、テスト対象となるアプリケーションを動作させてテストシナリオに基づく基準テストケース112を簡単に生成でき、さらに、派生テストケース114を生成することができる。
In the application test support apparatus 300 of the present embodiment, the recording unit 302 accepts a series of screen operations on at least one screen of an operating application, and corresponds to the series of screen operations and the series of screen operations. The screen transition is recorded, and the test scenario generation unit 304 converts the screen operation and the test instruction indicating the screen transition respectively into a series of test instructions including a plurality of converted test instructions corresponding to the series of screen operations. Generate as a standard test case based on the test scenario.
Thereby, according to the application test support apparatus 300 of the present embodiment, it is possible to easily generate the reference test case 112 based on the test scenario by operating the application to be tested, and to generate the derived test case 114. it can.

(第3の実施の形態の変形態様)
第3の実施の形態の変形態様のアプリケーションテスト支援装置について以下に説明する。
本実施形態のアプリケーションテスト支援装置は、上記実施形態により生成されるテストシナリオにさらにテスト命令を追加する機能を有する。
本実施形態のアプリケーションテスト支援装置は、複数種のテスト命令から選択されるテスト命令を、テストシナリオの一連のテスト命令の任意の箇所に挿入する指示を受け付ける追加命令受付部(不図示)をさらに備える。
追加命令受付部が、動作するアプリケーションの画面を記録する指示のテスト命令、および、入力操作内容の正誤を確認する指示のテスト命令の少なくともいずれか1つを受け付ける。
テストシナリオ生成部304が、受け付けたテスト命令をテストシナリオの一連のテスト命令の前記任意の箇所に挿入し、テストシナリオを更新する。
(Modification of the third embodiment)
An application test support apparatus according to a modification of the third embodiment will be described below.
The application test support apparatus of this embodiment has a function of adding a test command to the test scenario generated by the above embodiment.
The application test support apparatus according to the present embodiment further includes an additional command receiving unit (not shown) that receives an instruction to insert a test command selected from a plurality of types of test commands at an arbitrary position of a series of test commands in a test scenario. Prepare.
The additional command receiving unit receives at least one of an instruction test command for recording an operating application screen and an instruction test command for checking whether the input operation content is correct or incorrect.
The test scenario generation unit 304 inserts the received test instruction into the arbitrary part of the series of test instructions of the test scenario, and updates the test scenario.

たとえば、Seleniumのコマンドである、入力操作内容を確認する「assert(アサート)」や、「verify(検証)」等や、画面キャプチャを取る「capture」等を任意の箇所に挿入することができる。   For example, “assert (assertion)” or “verify (verification)” that confirms the input operation content, a “capture” that takes a screen capture, or the like, which is a Selenium command, can be inserted at any location.

この構成によれば、より高機能なテストシナリオを簡単な操作で生成することができる。   According to this configuration, a more sophisticated test scenario can be generated with a simple operation.

以上、図面を参照して本発明の実施形態について述べたが、これらは本発明の例示であり、上記以外の様々な構成を採用することもできる。
たとえば、上記実施形態のいずれかのアプリケーションテスト支援装置において、テスト対象のアプリケーションの設計書に、予めテストケースとして想定される入力操作内容を、所定の項目として記載し、画面設計情報110とリンクさせておくこともできる。図23に示すように、入力項目の情報410として、名称(入力項目名412)、変数名(Name414)、データ形式(形式416)、入力条件418(必須か否か)、入力許容範囲条件(範囲420)、およびテスト候補データ(テスト候補422)を含むことができる。
この構成によれば、設計時にテスト候補データを指定することができるので、より設計思想に沿った適切なテストケースを自動的に生成することが可能になる。
As mentioned above, although embodiment of this invention was described with reference to drawings, these are the illustrations of this invention, Various structures other than the above are also employable.
For example, in the application test support apparatus of any of the above-described embodiments, the input operation content assumed as a test case in advance is described as a predetermined item in the design document of the test target application and linked to the screen design information 110. You can also keep it. As shown in FIG. 23, the input item information 410 includes a name (input item name 412), a variable name (Name 414), a data format (format 416), an input condition 418 (whether it is essential), an input allowable range condition ( Range 420), and test candidate data (test candidates 422).
According to this configuration, test candidate data can be designated at the time of design, so that it is possible to automatically generate an appropriate test case more in line with the design concept.

以上、実施形態および実施例を参照して本願発明を説明したが、本願発明は上記実施形態および実施例に限定されるものではない。本願発明の構成や詳細には、本願発明のスコープ内で当業者が理解し得る様々な変更をすることができる。
なお、本発明において利用者に関する情報を取得、利用する場合は、これを適法に行うものとする。
While the present invention has been described with reference to the embodiments and examples, the present invention is not limited to the above embodiments and examples. Various changes that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention.
In addition, when acquiring and using the information regarding a user in this invention, this shall be done legally.

以下、参考形態の例を付記する。
1. アプリケーションテスト支援装置が、
アプリケーションの画面上で、入力操作対象となる入力画面部品に対応する入力項目に関する属性情報を、前記アプリケーションの画面設計情報を元に取得し、
取得した前記入力項目に関する属性情報に基づいて、前記アプリケーションの画面操作を定義するテストシナリオに基づく基準テストケースから、その基準テストケースに設定される前記入力画面部品への入力操作内容を変化させた、前記テストシナリオに基づく派生テストケースを生成する、
アプリケーションテスト支援装置のデータ処理方法。
2. 1.に記載のアプリケーションテスト支援装置のデータ処理方法において、
前記アプリケーションテスト支援装置が、
前記派生テストケースを生成する際、前記属性情報により示される入力項目の有効入力条件および無効入力条件に基づいて、複数の派生テストケースに設定すべき複数の入力操作内容を決定する、
アプリケーションテスト支援装置のデータ処理方法。
3. 1.または2.に記載のアプリケーションテスト支援装置のデータ処理方法において、
前記テストシナリオは、入力操作を示す入力操作命令を含み、
前記テストシナリオの前記基準テストケースは、前記入力操作命令のパラメータとなる、前記入力操作の対象となる入力画面部品の識別情報およびその入力画面部品への入力内容を含む前記入力操作内容を有し、
前記アプリケーションテスト支援装置が、
入力操作命令のパラメータを前記基準テストケースから抽出し、抽出されたパラメータにより示される入力画面部品の識別情報および前記画面設計情報に基づいて、その入力画面部品に対応する入力項目の属性情報を取得し、
前記取得された属性情報に基づいて、前記抽出されたパラメータにより示される前記入力画面部品への入力内容を変化させて、複数の派生テストケースを生成する、
アプリケーションテスト支援装置のデータ処理方法。
4. 1.乃至3.いずれか一つに記載のアプリケーションテスト装置のデータ処理方法において、
前記アプリケーションテスト支援装置が、
前記基準テストケースの各テスト命令の前記入力項目と前記入力操作内容に対応する、複数の前記派生テストケースの前記各テスト命令の前記入力操作内容を対応付けて一覧表示し、
前記一覧表示する際、複数の前記派生テストケースにおいて、前記基準テストケースから変化させた前記入力項目の前記入力操作内容を、それぞれ区別可能に表示する、
アプリケーションテスト支援装置のデータ処理方法。
5. 1.乃至4いずれか一つに記載のアプリケーションテスト支援装置のデータ処理方法において、
前記アプリケーションテスト支援装置が、
複数の前記派生テストケースに、所定の規則に従って、採番、または、テスト名を付与する、
アプリケーションテスト支援装置のデータ処理方法。
6. 1.乃至5.いずれか一つに記載のアプリケーションテスト支援装置のデータ処理方法において、
前記アプリケーションテスト支援装置が、
前記テストシナリオに基づく複数の前記派生テストケースのそれぞれについて、前記アプリケーションを動作させてテストを実行し、
前記テストを実行して動作させた前記アプリケーションの前記画面操作および画面遷移を、テスト結果として記録し、
生成された複数の前記派生テストケースの前記テストシナリオを元に、前記画面設計情報を参照して、前記アプリケーションのテスト仕様書を生成する、
アプリケーションテスト支援装置のデータ処理方法。
7. 1.乃至6.いずれか一つに記載のアプリケーションテスト支援装置のデータ処理方法において、
前記アプリケーションテスト支援装置が、
動作する前記アプリケーションにおける、画面操作および当該画面操作に対応する画面遷移を記録し、
記録された前記画面操作および前記画面遷移に基づいて、前記テストシナリオを生成し、
前記動作するアプリケーションの少なくとも1つの画面上で、一連の画面操作を受け付けて、当該一連の画面操作、および当該一連の画面操作に対応する画面遷移を記録し、
記録された前記画面操作および前記画面遷移を示すテスト命令にそれぞれ変換し、前記一連の画面操作に対応する、変換された複数のテスト命令を含む一連のテスト命令を、前記テストシナリオに基づく前記基準テストケースとして生成し、
生成された前記テストシナリオに基づく前記基準テストケースに含まれる前記一連のテスト命令は、前記入力画面部品に対応する前記入力項目の情報および前記入力画面部品への前記入力操作内容をそれぞれ含む、
アプリケーションテスト支援装置のデータ処理方法。
Hereinafter, examples of the reference form will be added.
1. Application test support device
On the screen of the application, obtain attribute information related to the input item corresponding to the input screen component to be input operation based on the screen design information of the application,
Based on the acquired attribute information on the input item, the content of the input operation to the input screen component set in the reference test case is changed from the reference test case based on the test scenario that defines the screen operation of the application. Generate a derived test case based on the test scenario,
Data processing method for application test support device.
2. 1. In the data processing method of the application test support apparatus described in
The application test support device is
When generating the derived test case, determine a plurality of input operation contents to be set in a plurality of derived test cases based on the valid input condition and invalid input condition of the input item indicated by the attribute information.
Data processing method for application test support device.
3. 1. Or 2. In the data processing method of the application test support apparatus described in
The test scenario includes an input operation command indicating an input operation,
The reference test case of the test scenario has the input operation content including the identification information of the input screen component that is the target of the input operation and the input content to the input screen component, which are parameters of the input operation command. ,
The application test support device is
The parameter of the input operation command is extracted from the reference test case, and the attribute information of the input item corresponding to the input screen component is acquired based on the input screen component identification information and the screen design information indicated by the extracted parameter. And
Based on the acquired attribute information, change the input content to the input screen component indicated by the extracted parameters, to generate a plurality of derived test cases,
Data processing method for application test support device.
4). 1. To 3. In the data processing method of the application test apparatus according to any one of the above,
The application test support device is
A list of the input operation contents of the test instructions of a plurality of derived test cases corresponding to the input items and the input operation contents of the test instructions of the reference test case,
When displaying the list, in a plurality of the derived test cases, the input operation contents of the input items changed from the reference test case are displayed in a distinguishable manner.
Data processing method for application test support device.
5. 1. In the data processing method of the application test support apparatus according to any one of 1 to 4,
The application test support device is
Numbering or giving a test name to the plurality of derived test cases according to a predetermined rule,
Data processing method for application test support device.
6). 1. To 5. In the data processing method of the application test support apparatus according to any one of the above,
The application test support device is
For each of the plurality of derived test cases based on the test scenario, the application is operated to execute a test,
Record the screen operations and screen transitions of the application that was run by running the test as test results,
Based on the test scenarios of the plurality of derived test cases generated, generate test specifications for the application with reference to the screen design information.
Data processing method for application test support device.
7). 1. To 6. In the data processing method of the application test support apparatus according to any one of the above,
The application test support device is
Record screen operations and screen transitions corresponding to the screen operations in the running application,
Generate the test scenario based on the recorded screen operation and the screen transition,
Accepting a series of screen operations on at least one screen of the operating application, recording the series of screen operations, and screen transitions corresponding to the series of screen operations;
A series of test instructions including a plurality of converted test instructions corresponding to the series of screen operations are converted into test instructions indicating the recorded screen operations and screen transitions, respectively, based on the test scenario As a test case,
The series of test instructions included in the reference test case based on the generated test scenario includes information on the input item corresponding to the input screen component and the input operation content to the input screen component, respectively.
Data processing method for application test support device.

8. コンピュータに、
アプリケーションの画面上で、入力操作対象となる入力画面部品に対応する入力項目に関する属性情報を、前記アプリケーションの画面設計情報を元に取得する手順、
取得した前記入力項目に関する属性情報に基づいて、前記アプリケーションの画面操作を定義するテストシナリオに基づく基準テストケースから、その基準テストケースに設定される前記入力画面部品への入力操作内容を変化させた、前記テストシナリオに基づく派生テストケースを生成する手順、
を実行させるためのプログラム。
9. 8.に記載のプログラムにおいて、
前記派生テストケースを生成する手順において、前記属性情報により示される入力項目の有効入力条件および無効入力条件に基づいて、複数の派生テストケースに設定すべき複数の入力操作内容を決定する手順をコンピュータに実行させるためのプログラム。
10. 8.または9.に記載のプログラムにおいて、
前記テストシナリオは、入力操作を示す入力操作命令を含み、
前記テストシナリオの前記基準テストケースは、前記入力操作命令のパラメータとなる、前記入力操作の対象となる入力画面部品の識別情報およびその入力画面部品への入力内容を含む前記入力操作内容を有し、
入力操作命令のパラメータを前記基準テストケースから抽出し、抽出されたパラメータにより示される入力画面部品の識別情報および前記画面設計情報に基づいて、その入力画面部品に対応する入力項目の属性情報を取得する手順、
前記取得された属性情報に基づいて、前記抽出されたパラメータにより示される前記入力画面部品への入力内容を変化させて、複数の派生テストケースを生成する手順、
をコンピュータに実行させるためのプログラム。
11. 8.乃至10.いずれか一つに記載のプログラムにおいて、
前記基準テストケースの各テスト命令の前記入力項目と前記入力操作内容に対応する、複数の前記派生テストケースの前記各テスト命令の前記入力操作内容を対応付けて一覧表示する手順、
前記一覧表示する手順において、複数の前記派生テストケースにおいて、前記基準テストケースから変化させた前記入力項目の前記入力操作内容を、それぞれ区別可能に表示する手順、
をコンピュータに実行させるためのプログラム。
12. 8.乃至11.いずれか一つに記載のプログラムにおいて、
複数の前記派生テストケースに、所定の規則に従って、採番、または、テスト名を付与する手順、
をコンピュータに実行させるためのプログラム。
13. 8.乃至12.いずれか一つに記載のプログラムにおいて、
前記テストシナリオに基づく複数の前記派生テストケースのそれぞれについて、前記アプリケーションを動作させてテストを実行する手順、
前記テストを実行する手順により動作させた前記アプリケーションの前記画面操作および画面遷移を、テスト結果として記録する手順、
生成された複数の前記派生テストケースの前記テストシナリオを元に、前記画面設計情報を参照して、前記アプリケーションのテスト仕様書を生成する手順、
をコンピュータに実行させるためのプログラム。
14. 8.乃至13.いずれか一つに記載のプログラムにおいて、
動作する前記アプリケーションにおける、画面操作および当該画面操作に対応する画面遷移を記録する手順、
前記画面遷移を記録する手順により記録された前記画面操作および前記画面遷移に基づいて、前記テストシナリオを生成する手順、
前記動作するアプリケーションの少なくとも1つの画面上で、一連の画面操作を受け付けて、当該一連の画面操作、および当該一連の画面操作に対応する画面遷移を記録する手順、
前記画面遷移を記録する手順により記録された前記画面操作および前記画面遷移を示すテスト命令にそれぞれ変換し、前記一連の画面操作に対応する、変換された複数のテスト命令を含む一連のテスト命令を、前記テストシナリオに基づく前記基準テストケースとして生成する手順、をコンピュータに実行させ、
前記基準テストケースを生成する手順により生成された前記テストシナリオに基づく前記基準テストケースに含まれる前記一連のテスト命令は、前記入力画面部品に対応する前記入力項目の情報および前記入力画面部品への前記入力操作内容をそれぞれ含む、プログラム。
8). On the computer,
On the application screen, a procedure for acquiring attribute information related to the input item corresponding to the input screen component to be input operation based on the screen design information of the application,
Based on the acquired attribute information on the input item, the content of the input operation to the input screen component set in the reference test case is changed from the reference test case based on the test scenario that defines the screen operation of the application. , A procedure for generating a derived test case based on the test scenario,
A program for running
9. 8). In the program described in
In the procedure for generating the derived test case, a computer is configured to determine a plurality of input operation contents to be set in the plurality of derived test cases based on the valid input condition and invalid input condition of the input item indicated by the attribute information. A program to make it run.
10. 8). Or 9. In the program described in
The test scenario includes an input operation command indicating an input operation,
The reference test case of the test scenario has the input operation content including the identification information of the input screen component that is the target of the input operation and the input content to the input screen component, which are parameters of the input operation command. ,
The parameter of the input operation command is extracted from the reference test case, and the attribute information of the input item corresponding to the input screen component is acquired based on the input screen component identification information and the screen design information indicated by the extracted parameter. The steps to
A procedure for generating a plurality of derived test cases by changing the input content to the input screen component indicated by the extracted parameter based on the acquired attribute information,
A program that causes a computer to execute.
11. 8). To 10. In the program described in any one of the above,
A procedure for displaying a list of the input operation contents of the test instructions of the plurality of derived test cases in association with the input items and the input operation contents of the test instructions of the reference test case,
In the procedure of displaying the list, in a plurality of derived test cases, a procedure of displaying the input operation contents of the input items changed from the reference test case in a distinguishable manner,
A program that causes a computer to execute.
12 8). To 11. In the program described in any one of the above,
A procedure for assigning a number or a test name to a plurality of derived test cases according to a predetermined rule,
A program that causes a computer to execute.
13. 8). To 12. In the program described in any one of the above,
For each of a plurality of derived test cases based on the test scenario, a procedure for executing the test by operating the application;
A procedure for recording the screen operation and screen transition of the application operated by the procedure for executing the test as a test result;
A procedure for generating a test specification of the application with reference to the screen design information based on the test scenario of the plurality of derived test cases generated,
A program that causes a computer to execute.
14 8). Thru 13. In the program described in any one of the above,
A procedure for recording screen operations and screen transitions corresponding to the screen operations in the application that operates,
A procedure for generating the test scenario based on the screen operation and the screen transition recorded by the procedure for recording the screen transition;
A procedure for receiving a series of screen operations on at least one screen of the operating application and recording the series of screen operations and a screen transition corresponding to the series of screen operations;
A series of test instructions including a plurality of converted test instructions corresponding to the series of screen operations, respectively converted into the screen operations recorded by the procedure for recording the screen transitions and test instructions indicating the screen transitions. , Causing the computer to execute a procedure for generating the reference test case based on the test scenario,
The series of test instructions included in the reference test case based on the test scenario generated by the procedure for generating the reference test case includes information on the input item corresponding to the input screen component and the input screen component. A program including each of the input operation contents.

1 アプリケーション開発システム
3 ネットワーク
20 開発装置
22 設計情報リポジトリ
30 ウェブサーバ
32 ウェブアプリケーション
40 端末
42 ブラウザ
60 コンピュータ
62 CPU
64 メモリ
66 ストレージ
69 バス
72 入力装置
74 表示装置
80 プログラム
100 アプリケーションテスト支援装置
102 属性取得部
104 テストケース生成部
110 画面設計情報
112 基準テストケース
114 派生テストケース
120 店舗検索画面
122 テキストボックス
124 検索ボタン
128 プルダウンメニュー
130 検索ボタン
134 検索NG画面
136 検索結果画面
138 詳細検索画面
140 テストシナリオ
142 シート
146 セル
150 アプリケーションテスト支援装置
152 表示部
160 アプリケーションテスト支援装置
162 付与部
170 アプリケーションテスト支援装置
172 抽出部
174 表示部
176 変更箇所一覧
200 アプリケーションテスト支援装置
202 テスト実行部
204 テスト結果記録部
206 仕様書生成部
210 テスト結果記憶部
212 テスト仕様書
214 テストプログラム
220 テストドライバ
222 テスト結果
224 画面キャプチャ
226 テスト結果報告書
230 設定画面
232 ドキュメント選択部
234 第1指定欄
236 第2指定欄
238 第3指定欄
240 第4指定欄
242 実行ボタン
244 終了ボタン
300 アプリケーションテスト支援装置
302 録画部
304 テストシナリオ生成部
310 テストケース生成ツール
312 入力ファイル指定欄
314 出力先フォルダ指定欄
316 読込ボタン
318 作成ボタン
320 保存ボタン
DESCRIPTION OF SYMBOLS 1 Application development system 3 Network 20 Development apparatus 22 Design information repository 30 Web server 32 Web application 40 Terminal 42 Browser 60 Computer 62 CPU
64 Memory 66 Storage 69 Bus 72 Input device 74 Display device 80 Program 100 Application test support device 102 Attribute acquisition unit 104 Test case generation unit 110 Screen design information 112 Reference test case 114 Derived test case 120 Store search screen 122 Text box 124 Search button 128 pull-down menu 130 search button 134 search NG screen 136 search result screen 138 detailed search screen 140 test scenario 142 sheet 146 cell 150 application test support device 152 display unit 160 application test support device 162 assigning unit 170 application test support device 172 extraction unit 174 Display unit 176 List of changes 200 Application test support device 202 Test execution unit 204 Test result Recording unit 206 Specification generation unit 210 Test result storage unit 212 Test specification 214 Test program 220 Test driver 222 Test result 224 Screen capture 226 Test result report 230 Setting screen 232 Document selection unit 234 First designation field 236 Second designation field 238 Third designation field 240 Fourth designation field 242 Execution button 244 End button 300 Application test support device 302 Recording unit 304 Test scenario generation unit 310 Test case generation tool 312 Input file specification field 314 Output destination folder specification field 316 Read button 318 creation Button 320 Save button

Claims (9)

アプリケーションの画面上で、入力操作対象となる入力画面部品に対応する入力項目に関する属性情報を、前記アプリケーションの画面設計情報を元に取得する属性取得手段と、
取得した前記入力項目に関する属性情報に基づいて、前記アプリケーションの画面操作を定義するテストシナリオに基づく基準テストケースから、その基準テストケースに設定される前記入力画面部品への入力操作内容を変化させた、前記テストシナリオに基づく派生テストケースを生成するテストケース生成手段と、
を備えるアプリケーションテスト支援装置。
On the screen of the application, attribute acquisition means for acquiring attribute information related to the input item corresponding to the input screen component to be input operation based on the screen design information of the application,
Based on the acquired attribute information on the input item, the content of the input operation to the input screen component set in the reference test case is changed from the reference test case based on the test scenario that defines the screen operation of the application. , Test case generation means for generating a derived test case based on the test scenario,
An application test support apparatus.
請求項1に記載のアプリケーションテスト支援装置において、
前記テストケース生成手段は、前記属性情報により示される入力項目の有効入力条件および無効入力条件に基づいて、複数の派生テストケースに設定すべき複数の入力操作内容を決定する、
アプリケーションテスト支援装置。
The application test support apparatus according to claim 1,
The test case generation means determines a plurality of input operation contents to be set in a plurality of derived test cases based on the valid input condition and invalid input condition of the input item indicated by the attribute information.
Application test support device.
請求項1または2に記載のアプリケーションテスト支援装置において、
前記テストシナリオは、入力操作を示す入力操作命令を含み、
前記テストシナリオの前記基準テストケースは、前記入力操作命令のパラメータとなる、前記入力操作の対象となる入力画面部品の識別情報およびその入力画面部品への入力内容を含む前記入力操作内容を有し、
前記属性取得手段は、入力操作命令のパラメータを前記基準テストケースから抽出し、抽出されたパラメータにより示される入力画面部品の識別情報および前記画面設計情報に基づいて、その入力画面部品に対応する入力項目の属性情報を取得し、
前記テストケース生成手段は、前記取得された属性情報に基づいて、前記抽出されたパラメータにより示される前記入力画面部品への入力内容を変化させて、複数の派生テストケースを生成する、
アプリケーションテスト支援装置。
In the application test support device according to claim 1 or 2,
The test scenario includes an input operation command indicating an input operation,
The reference test case of the test scenario has the input operation content including the identification information of the input screen component that is the target of the input operation and the input content to the input screen component, which are parameters of the input operation command. ,
The attribute acquisition means extracts an input operation command parameter from the reference test case, and based on the input screen component identification information and the screen design information indicated by the extracted parameter, an input corresponding to the input screen component Get item attribute information,
The test case generation means generates a plurality of derived test cases by changing the input content to the input screen component indicated by the extracted parameter based on the acquired attribute information.
Application test support device.
請求項1乃至3いずれか一項に記載のアプリケーションテスト装置において、
前記基準テストケースの各テスト命令の前記入力項目と前記入力操作内容に対応する、複数の前記派生テストケースの前記各テスト命令の前記入力操作内容を対応付けて一覧表示する表示手段をさらに備え、
前記表示手段は、複数の前記派生テストケースにおいて、前記基準テストケースから変化させた前記入力項目の前記入力操作内容を、それぞれ区別可能に表示する、
アプリケーションテスト支援装置。
The application test apparatus according to any one of claims 1 to 3,
Display means for displaying a list of the input operation contents of the test instructions of the plurality of derived test cases corresponding to the input items and the input operation contents of the test instructions of the reference test case,
The display means displays the input operation contents of the input items changed from the reference test case in a plurality of the derived test cases in a distinguishable manner.
Application test support device.
請求項1乃至4いずれか一項に記載のアプリケーションテスト支援装置において、
複数の前記派生テストケースに、所定の規則に従って、採番、または、テスト名を付与する付与手段、
をさらに備えるアプリケーションテスト支援装置。
In the application test support device according to any one of claims 1 to 4,
An assigning means for assigning a number or a test name to the plurality of derived test cases according to a predetermined rule,
An application test support apparatus further comprising:
請求項1乃至5いずれか一項に記載のアプリケーションテスト支援装置において、
前記テストシナリオに基づく複数の前記派生テストケースのそれぞれについて、前記アプリケーションを動作させてテストを実行するテスト実行手段と、
前記テスト実行手段により動作させた前記アプリケーションの前記画面操作および画面遷移を、テスト結果として記録するテスト結果記録手段と、
生成された複数の前記派生テストケースの前記テストシナリオを元に、前記画面設計情報を参照して、前記アプリケーションのテスト仕様書を生成するテスト仕様書生成手段と、
を備えるアプリケーションテスト支援装置。
In the application test support device according to any one of claims 1 to 5,
Test execution means for operating the application and executing a test for each of the plurality of derived test cases based on the test scenario;
Test result recording means for recording the screen operation and screen transition of the application operated by the test execution means as test results;
Test specification generation means for generating a test specification of the application with reference to the screen design information based on the test scenarios of the plurality of derived test cases generated,
An application test support apparatus.
請求項1乃至6いずれか一項に記載のアプリケーションテスト支援装置において、
動作する前記アプリケーションにおける、画面操作および当該画面操作に対応する画面遷移を記録する録画手段と、
前記録画手段により記録された前記画面操作および前記画面遷移に基づいて、前記テストシナリオを生成するテストシナリオ生成手段と、を備え、
前記録画手段が、
前記動作するアプリケーションの少なくとも1つの画面上で、一連の画面操作を受け付けて、当該一連の画面操作、および当該一連の画面操作に対応する画面遷移を記録し、
前記テストシナリオ生成手段は、
前記録画手段により記録された前記画面操作および前記画面遷移を示すテスト命令にそれぞれ変換し、前記一連の画面操作に対応する、変換された複数のテスト命令を含む一連のテスト命令を、前記テストシナリオに基づく前記基準テストケースとして生成し、
前記テストシナリオ生成手段により生成された前記テストシナリオに基づく前記基準テストケースに含まれる前記一連のテスト命令は、前記入力画面部品に対応する前記入力項目の情報および前記入力画面部品への前記入力操作内容をそれぞれ含む、
アプリケーションテスト支援装置。
In the application test support device according to any one of claims 1 to 6,
Recording means for recording screen operations and screen transitions corresponding to the screen operations in the operating application
Test scenario generation means for generating the test scenario based on the screen operation and the screen transition recorded by the recording means,
The recording means is
Accepting a series of screen operations on at least one screen of the operating application, recording the series of screen operations, and screen transitions corresponding to the series of screen operations;
The test scenario generation means includes:
A series of test instructions including a plurality of converted test instructions corresponding to the series of screen operations are converted into test instructions indicating the screen operations and the screen transitions recorded by the recording unit, respectively. As a reference test case based on
The series of test commands included in the reference test case based on the test scenario generated by the test scenario generation means includes information on the input item corresponding to the input screen component and the input operation to the input screen component. Including each content,
Application test support device.
アプリケーションテスト支援装置が、
アプリケーションの画面上で、入力操作対象となる入力画面部品に対応する入力項目に関する属性情報を、前記アプリケーションの画面設計情報を元に取得し、
取得した前記入力項目に関する属性情報に基づいて、前記アプリケーションの画面操作を定義するテストシナリオに基づく基準テストケースから、その基準テストケースに設定される前記入力画面部品への入力操作内容を変化させた、前記テストシナリオに基づく派生テストケースを生成する、
アプリケーションテスト支援装置のデータ処理方法。
Application test support device
On the screen of the application, obtain attribute information related to the input item corresponding to the input screen component to be input operation based on the screen design information of the application,
Based on the acquired attribute information on the input item, the content of the input operation to the input screen component set in the reference test case is changed from the reference test case based on the test scenario that defines the screen operation of the application. Generate a derived test case based on the test scenario,
Data processing method for application test support device.
コンピュータに、
アプリケーションの画面上で、入力操作対象となる入力画面部品に対応する入力項目に関する属性情報を、前記アプリケーションの画面設計情報を元に取得する手順、
取得した前記入力項目に関する属性情報に基づいて、前記アプリケーションの画面操作を定義するテストシナリオに基づく基準テストケースから、その基準テストケースに設定される前記入力画面部品への入力操作内容を変化させた、前記テストシナリオに基づく派生テストケースを生成する手順、
を実行させるためのプログラム。
On the computer,
On the application screen, a procedure for acquiring attribute information related to the input item corresponding to the input screen component to be input operation based on the screen design information of the application,
Based on the acquired attribute information on the input item, the content of the input operation to the input screen component set in the reference test case is changed from the reference test case based on the test scenario that defines the screen operation of the application. , A procedure for generating a derived test case based on the test scenario,
A program for running
JP2018192859A 2018-10-11 2018-10-11 Application test support apparatus, data processing method thereof, and program Pending JP2019021341A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018192859A JP2019021341A (en) 2018-10-11 2018-10-11 Application test support apparatus, data processing method thereof, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018192859A JP2019021341A (en) 2018-10-11 2018-10-11 Application test support apparatus, data processing method thereof, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2014173226A Division JP6417791B2 (en) 2014-08-27 2014-08-27 Application test support apparatus, data processing method thereof, and program

Publications (1)

Publication Number Publication Date
JP2019021341A true JP2019021341A (en) 2019-02-07

Family

ID=65355766

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018192859A Pending JP2019021341A (en) 2018-10-11 2018-10-11 Application test support apparatus, data processing method thereof, and program

Country Status (1)

Country Link
JP (1) JP2019021341A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124938A (en) * 2020-03-31 2020-05-08 四川新网银行股份有限公司 Method for generating componentized test case
CN112346988A (en) * 2020-11-26 2021-02-09 恩亿科(北京)数据科技有限公司 Data testing method and system and data filter
KR102289884B1 (en) * 2020-02-12 2021-08-17 현대오토에버 주식회사 Method and system for extracting objects from application test
JP2021135921A (en) * 2020-02-28 2021-09-13 三菱電機インフォメーションシステムズ株式会社 Derivation test device, derivation test method, and derivation test program
CN113703417A (en) * 2021-07-13 2021-11-26 交控科技股份有限公司 Method and device for determining test cases of full-automatic scene of train operation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001356936A (en) * 2000-04-11 2001-12-26 Fujitsu Ltd Test support device and supporting method of gui system program
JP2006260390A (en) * 2005-03-18 2006-09-28 Nomura Research Institute Ltd Test case generating program and method
JP2009163609A (en) * 2008-01-09 2009-07-23 Fujitsu Ltd Program and device for generating test data
JP2014146067A (en) * 2013-01-25 2014-08-14 Fujitsu Ltd Control program, control method, and control device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001356936A (en) * 2000-04-11 2001-12-26 Fujitsu Ltd Test support device and supporting method of gui system program
JP2006260390A (en) * 2005-03-18 2006-09-28 Nomura Research Institute Ltd Test case generating program and method
JP2009163609A (en) * 2008-01-09 2009-07-23 Fujitsu Ltd Program and device for generating test data
JP2014146067A (en) * 2013-01-25 2014-08-14 Fujitsu Ltd Control program, control method, and control device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102289884B1 (en) * 2020-02-12 2021-08-17 현대오토에버 주식회사 Method and system for extracting objects from application test
JP2021135921A (en) * 2020-02-28 2021-09-13 三菱電機インフォメーションシステムズ株式会社 Derivation test device, derivation test method, and derivation test program
CN111124938A (en) * 2020-03-31 2020-05-08 四川新网银行股份有限公司 Method for generating componentized test case
CN112346988A (en) * 2020-11-26 2021-02-09 恩亿科(北京)数据科技有限公司 Data testing method and system and data filter
CN113703417A (en) * 2021-07-13 2021-11-26 交控科技股份有限公司 Method and device for determining test cases of full-automatic scene of train operation
CN113703417B (en) * 2021-07-13 2022-12-20 交控科技股份有限公司 Method and device for determining test cases of full-automatic scene of train operation

Similar Documents

Publication Publication Date Title
JP6417791B2 (en) Application test support apparatus, data processing method thereof, and program
JP2019021341A (en) Application test support apparatus, data processing method thereof, and program
JP6354457B2 (en) Application development support apparatus, data processing method thereof, and program
CN108762743B (en) Data table operation code generation method and device
US10409820B2 (en) Semantic mapping of form fields
JP2008242738A (en) Program, apparatus and method for creating test specification
JP5723472B1 (en) Data link generation device, data link generation method, data link structure, and electronic file
JP5747698B2 (en) Requirements management support device
JP5460629B2 (en) Tabular software specification creation support method and apparatus
JP2019101889A (en) Test execution device and program
US20230306767A1 (en) Information processing apparatus, non-transitory computer readable medium, and method for processing information
JP2004157927A (en) Creating system for business form input, creating program and creating method
JP6336922B2 (en) Business impact location extraction method and business impact location extraction device based on business variations
Bramer Web Programming with PHP and MySQL
JP5504212B2 (en) Test case automatic generation system, test case automatic generation method, and test case automatic generation program
JP2009151676A (en) Data processor, data processing method, and program
JP6062735B2 (en) Software development support device, software development support method, software development support program
JP2010134766A (en) Document data processing apparatus and program thereof
JP4387324B2 (en) Property conversion device
JP2006331356A (en) Business processing program, recording medium recording it, and business processing system
JP2005276159A (en) Device for creating circuit drawing display data, its program, and method for creating circuit drawing display data
JP7083473B2 (en) Input support device
JP6475288B2 (en) Program comparison method, program comparison device, and program comparison program
CN114895904A (en) Page creating method, page creating equipment and computer readable storage medium
JP2018063532A (en) Screen test data creation device and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181107

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190716

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20200212