JP6830701B1 - Test support device, test support program, and test support method - Google Patents

Test support device, test support program, and test support method Download PDF

Info

Publication number
JP6830701B1
JP6830701B1 JP2020075365A JP2020075365A JP6830701B1 JP 6830701 B1 JP6830701 B1 JP 6830701B1 JP 2020075365 A JP2020075365 A JP 2020075365A JP 2020075365 A JP2020075365 A JP 2020075365A JP 6830701 B1 JP6830701 B1 JP 6830701B1
Authority
JP
Japan
Prior art keywords
screen
operation content
command
display processing
list
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.)
Active
Application number
JP2020075365A
Other languages
Japanese (ja)
Other versions
JP2021174096A (en
Inventor
則春 石
則春 石
慶慶 高
慶慶 高
Original Assignee
六元素情報システム株式会社
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 六元素情報システム株式会社 filed Critical 六元素情報システム株式会社
Priority to JP2020075365A priority Critical patent/JP6830701B1/en
Application granted granted Critical
Publication of JP6830701B1 publication Critical patent/JP6830701B1/en
Publication of JP2021174096A publication Critical patent/JP2021174096A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

【課題】画面を構成する画面要素に対する操作を定義したコマンドを用いて正確かつ効率的にテストスクリプトを生成するテスト支援装置、テスト支援プログラム及び、テスト支援方法を提供する。【解決手段】テスト支援装置1は、要素情報取得手段101、表示処理手段102、操作内容入力手段103、識別要素入力手段104、コマンド生成手段105、重複検出手段106、画面決定手段107及び記憶部108を備える。要素情報取得手段は、画面要素に関する要素情報を取得する。表示処理手段は、要素情報の分類に基づいて、操作対象とする画面要素に対して実行可能な操作内容を一覧に表示処理する。操作内容入力手段は、表示処理手段により一覧に表示処理された操作内容から任意の操作内容の選択を受け付ける。コマンド生成手段は、操作内容入力手段により選択を受け付けた操作内容に基づいてコマンドの操作内容部を生成する。【選択図】図2PROBLEM TO BE SOLVED: To provide a test support device, a test support program, and a test support method for accurately and efficiently generating a test script by using a command defining an operation for a screen element constituting a screen. A test support device 1 includes an element information acquisition unit 101, a display processing unit 102, an operation content input unit 103, an identification element input unit 104, a command generation unit 105, a duplicate detection unit 106, a screen determination unit 107, and a storage unit. It includes 108. The element information acquisition means acquires element information related to screen elements. The display processing means displays a list of operation contents that can be executed for the screen element to be operated based on the classification of the element information. The operation content input means accepts the selection of an arbitrary operation content from the operation content displayed in the list by the display processing means. The command generation means generates the operation content part of the command based on the operation content for which the selection is accepted by the operation content input means. [Selection diagram] Fig. 2

Description

本発明は、画面を構成する画面要素に対する操作を定義したコマンドを用いてテストスクリプトを生成し、前記テストスクリプトの再生により画面の動作テストを自動化するテスト支援装置、テスト支援プログラム及び、テスト支援方法に関する。 The present invention is a test support device, a test support program, and a test support method that generate a test script by using a command that defines operations on screen elements constituting the screen and automate a screen operation test by playing the test script. Regarding.

ウェブページのテストにおいて、ウェブページに対する操作内容をテストスクリプトとして記録しておき、記録されたテストスクリプトを再生することにより動作テストを自動化するRPA(Robotic Process Automation)技術が知られている。 In a web page test, an RPA (Robotic Process Automation) technology is known in which the operation content for a web page is recorded as a test script and the operation test is automated by playing back the recorded test script.

また、対象となる画面におけるユーザの操作を記録することで、RPAにおけるテストスクリプトを自動生成する技術が知られている。従来、画面座標を用いることで、操作対象となる画面に配置される画面部品を特定し、テストスクリプトを自動的に生成していた。 Further, there is known a technique for automatically generating a test script in RPA by recording a user's operation on a target screen. Conventionally, by using screen coordinates, screen parts to be arranged on the screen to be operated have been specified, and a test script has been automatically generated.

しかしながら、画面座標は、ウェブページの表示サイズや、ディスプレイのサイズによって変化するため、テスト毎に新規のテストスクリプトを作成する必要があり手間が生じていた。 However, since the screen coordinates change depending on the display size of the web page and the size of the display, it is necessary to create a new test script for each test, which is troublesome.

上述したような事情に鑑みて、特許文献1に記載のWebページテスト自動化装置は、操作部品の部品情報を用いて操作対象の部品を決定することが開示されている。また、部品情報が重複する場合、重複部品に対して一意となる部品IDを追加し、部品IDを用いて重複部品の識別を行い、操作対象となる部品を決定することが開示されている。 In view of the above circumstances, the Web page test automation apparatus described in Patent Document 1 discloses that a component to be operated is determined by using component information of the operation component. Further, when the part information is duplicated, it is disclosed that a unique part ID is added to the duplicated part, the duplicated part is identified by using the part ID, and the part to be operated is determined.

特開2007−102654号公報JP-A-2007-102654

特許文献1に記載のWebページテスト自動化装置では、ユーザの実行した部品操作を直接的にコマンドとして変換し、スクリプトファイルに記録していた。しかしながら、ユーザが誤った部品操作を行った場合もコマンドがスクリプトファイルに記録されてしまい、スクリプトファイルの修正などの手間が生じていた。 In the Web page test automation device described in Patent Document 1, the component operation executed by the user is directly converted as a command and recorded in a script file. However, even if the user performs an erroneous part operation, the command is recorded in the script file, which causes troubles such as modifying the script file.

また、特許文献1に記載のWebページテスト自動化装置では、重複部品に一意となる部品IDを追加し、重複部品を識別可能としている。しかしながら、Webページにおける部品数を増減する修正が生じた場合、全ての部品IDにも変更が生じ、新たなスクリプトファイルを一から記録し直さなければならなかった。 Further, in the Web page test automation device described in Patent Document 1, a unique part ID is added to the duplicated parts so that the duplicated parts can be identified. However, when a modification to increase or decrease the number of parts on a Web page occurs, all part IDs also change, and a new script file has to be re-recorded from the beginning.

また、Webページなどの画面についてコーディングする際、画面部品として複数の識別属性の中から任意のものが選択され、定義される。識別属性は、コードの可読性及びデザイン変更への耐性などの観点から、統一された方針にしたがって選択されることが好ましいとされている。自動テストに用いるスクリプトについても上記と同様の観点から統一された方針にしたがって、任意の識別属性を選択してスクリプトを生成することが好ましいが、従来のスクリプト記録に関する技術において識別属性の選択を好適に支援するものはなかった。 Further, when coding a screen such as a Web page, an arbitrary one is selected and defined as a screen component from a plurality of identification attributes. It is said that the identification attribute is preferably selected according to a unified policy from the viewpoint of code readability and resistance to design changes. Regarding the script used for the automatic test, it is preferable to select an arbitrary identification attribute to generate a script according to a unified policy from the same viewpoint as above, but it is preferable to select the identification attribute in the conventional script recording technology. There was nothing to support.

上記のような実状に鑑みて、本発明は、画面を構成する画面要素に対する操作を定義したコマンドを用いて正確かつ効率的にテストスクリプトを生成することができるテスト支援装置を提供することを解決すべき課題とする。 In view of the above circumstances, the present invention has solved the problem of providing a test support device capable of accurately and efficiently generating a test script by using a command that defines operations on screen elements constituting the screen. It is an issue to be done.

上記課題を解決する為に、本発明は、画面を構成する画面要素に対する操作内容を定義したコマンドを用いてテストスクリプトを生成し、前記テストスクリプトの再生により画面の動作テストを自動化するテスト支援装置であって、画面要素に関する要素情報を取得する要素情報取得手段と、前記要素情報の分類に基づいて、操作対象とする前記画面要素に対して実行可能な操作内容を一覧に表示処理する表示処理手段と、前記表示処理手段により一覧に表示処理された操作内容から任意の操作内容の選択を受け付ける操作内容入力手段と、前記操作内容入力手段により選択を受け付けた操作内容に基づいてコマンドの操作内容部を生成するコマンド生成手段と、を備える。 In order to solve the above problems, the present invention is a test support device that generates a test script by using a command that defines the operation contents for the screen elements constituting the screen, and automates the screen operation test by playing the test script. The element information acquisition means for acquiring the element information related to the screen element, and the display process for displaying the operation contents that can be executed for the screen element to be operated in a list based on the classification of the element information. The operation content of the command based on the means, the operation content input means for accepting the selection of an arbitrary operation content from the operation content displayed in the list by the display processing means, and the operation content for which the selection is accepted by the operation content input means. It is provided with a command generation means for generating a part.

このような構成とすることで、ユーザは操作内容の一覧から任意の操作内容を選択することができ、誤操作により間違ったコマンドが生成されることを防止することができる。また、画面要素に対して実行可能な操作内容が一覧に表示されることで、テストが必要な操作内容を全て確認することができ、テスト漏れを防止することができる。 With such a configuration, the user can select an arbitrary operation content from the list of operation contents, and it is possible to prevent an erroneous command from being generated due to an erroneous operation. Further, by displaying the operation contents that can be executed for the screen element in a list, all the operation contents that require the test can be confirmed, and the test omission can be prevented.

本発明の好ましい形態では、前記要素情報は、画面要素を識別する為に用いられる識別要素を含み、前記表示処理手段は、操作対象とする画面要素に定義された1以上の識別要素を一覧に表示処理し、前記表示処理手段により一覧に表示処理された識別要素から任意の識別要素の選択を受け付ける識別要素入力手段と、前記コマンド生成手段は、前記識別要素入力手段により選択を受け付けた識別要素及び、識別要素に対して定義された要素値に基づいてコマンドの操作対象部を生成する。
このような構成とすることで、識別要素の選択により正確な操作対象を指定することができる。また、定義された識別要素が一覧表示されることで、ユーザに対して識別要素の定義漏れを認識させることができる。
In a preferred embodiment of the present invention, the element information includes an identification element used to identify a screen element, and the display processing means lists one or more identification elements defined for the screen element to be operated. The identification element input means that performs display processing and accepts the selection of an arbitrary identification element from the identification elements that have been displayed in the list by the display processing means, and the command generation means are the identification elements that have received the selection by the identification element input means. And, the operation target part of the command is generated based on the element value defined for the identification element.
With such a configuration, an accurate operation target can be specified by selecting the identification element. Further, by displaying the defined identification elements in a list, it is possible to make the user recognize the omission of the definition of the identification element.

本発明の好ましい形態では、前記表示処理手段は、操作対象とする画面要素の指定を画面上で受け付けることにより、前記操作内容及び前記識別要素を一覧に表示処理する。
このような構成とすることで、ユーザによる画面要素に対する操作が即座にスクリプトとして記録されてしまうことを防止し、操作内容及び識別要素の一覧から任意のものを正確に選択させることができる。
In a preferred embodiment of the present invention, the display processing means displays the operation content and the identification element in a list by accepting the designation of the screen element to be operated on the screen.
With such a configuration, it is possible to prevent the user's operation on the screen element from being immediately recorded as a script, and to accurately select an arbitrary one from the list of operation contents and identification elements.

本発明の好ましい形態では、前記コマンド生成手段は、前記コマンドの操作内容部及び、操作対象部の少なくとも一部を組み合わせた1以上のコマンドをコマンドセットとして予め記憶部に格納し、前記コマンドセットから任意のコマンドを選択することでコマンドを生成する。
このような構成とすることで、コマンドセットを選択することにより効率よくコマンドを生成することができる。
In a preferred embodiment of the present invention, the command generation means stores in advance one or more commands as a command set, which is a combination of an operation content portion of the command and at least a part of an operation target portion, from the command set. Generate a command by selecting an arbitrary command.
With such a configuration, commands can be efficiently generated by selecting a command set.

本発明の好ましい形態では、前記表示処理手段は、要素情報の分類ごとに設定された優先順位にしたがって前記操作内容を一覧に表示処理する。
このような構成とすることで、ユーザに対して優先順位の高い操作内容を判別しやすく提示することができる。
In a preferred embodiment of the present invention, the display processing means displays the operation contents in a list according to a priority set for each classification of element information.
With such a configuration, it is possible to easily discriminate and present the operation content having a high priority to the user.

本発明の好ましい形態では、前記表示処理手段は、前記操作内容入力手段により選択を受け付けた操作内容の回数に基づいて前記優先順位を決定する。
このような構成とすることで、選択頻度の高い操作内容を優先的にユーザに提示することができる。
In a preferred embodiment of the present invention, the display processing means determines the priority order based on the number of operation contents for which selection is accepted by the operation content input means.
With such a configuration, it is possible to preferentially present the operation contents with high selection frequency to the user.

本発明の好ましい形態では、前記要素情報取得手段により取得された要素情報において要素値が重複する場合、同一画面内において重複する要素値を検出し、各要素値に異なる識別子を対応付けて記憶部に格納する重複検出手段を備え、前記コマンド生成手段は、前記重複検出手段により重複する要素値に紐づけられた識別子に基づいてコマンドの対象を決定し、前記識別子を一部として含む操作対象部を生成する。
このような構成とすることで、要素値が重複する場合であっても、適切な画面要素を指定してコマンドを生成することができる。
In a preferred embodiment of the present invention, when element values are duplicated in the element information acquired by the element information acquisition means, the duplicate element values are detected in the same screen, and each element value is associated with a different identifier and stored. The command generation means determines the target of the command based on the identifier associated with the duplicate element value by the duplicate detection means, and the operation target unit including the identifier as a part thereof. To generate.
With such a configuration, even if the element values are duplicated, it is possible to specify an appropriate screen element and generate a command.

本発明の好ましい形態では、複数の画面を遷移して操作を行う場合、各画面の画面要素が有する他の画面と重複しない要素値を指定することにより、操作対象となる画面を特定する操作対象画面決定手段を備える。
このような構成とすることで、画面のURL(Uniform Resource Locator)やタイトルが重複する場合であっても、画面要素に含まれる要素値から操作対象となる画面を特定することができる。
In a preferred embodiment of the present invention, when performing an operation by transitioning a plurality of screens, an operation target for specifying a screen to be operated is specified by designating an element value that does not overlap with other screens of the screen elements of each screen. A screen determination means is provided.
With such a configuration, even if the URL (Uniform Resource Locator) and title of the screen are duplicated, the screen to be operated can be specified from the element values included in the screen elements.

本発明は、画面を構成する画面要素に対する操作内容を定義したコマンドを用いてテストスクリプトを生成し、前記テストスクリプトの再生により画面の動作テストを自動化するテスト支援プログラムであって、コンピュータを、画面要素に関する要素情報を取得する要素情報取得手段と、前記要素情報の分類に基づいて、操作対象とする前記画面要素に対して実行可能な操作内容を一覧に表示処理する表示処理手段と、前記表示処理手段により一覧に表示処理された操作内容から任意の操作内容の選択を受け付ける操作内容入力手段と、前記操作内容入力手段により選択を受け付けた操作内容に基づいてコマンドの操作内容部を生成するコマンド生成手段と、として機能させる。 The present invention is a test support program that generates a test script by using a command that defines the operation contents for the screen elements constituting the screen and automates the screen operation test by playing the test script. An element information acquisition means for acquiring element information related to an element, a display processing means for displaying a list of operation contents that can be executed for the screen element to be operated based on the classification of the element information, and the display. Displayed in a list by the processing means An operation content input means that accepts the selection of an arbitrary operation content from the processed operation content, and a command that generates an operation content part of the command based on the operation content that the selection is accepted by the operation content input means. It functions as a generation means.

本発明は、画面を構成する画面要素に対する操作内容を定義したコマンドを用いてテストスクリプトを生成し、前記テストスクリプトの再生により画面の動作テストを自動化するテスト支援方法であって、画面要素に関する要素情報を取得する要素情報取得ステップと、前記要素情報の分類に基づいて、操作対象とする前記画面要素に対して実行可能な操作内容を一覧に表示処理する表示処理ステップと、前記表示処理手段により一覧に表示処理された操作内容から任意の操作内容の選択を受け付ける操作内容入力ステップと、前記操作内容入力手段により選択を受け付けた操作内容に基づいてコマンドの操作内容部を生成するコマンド生成ステップと、をコンピュータが実行する。 The present invention is a test support method for generating a test script by using a command that defines the operation contents for the screen elements constituting the screen and automating the operation test of the screen by playing the test script, and the elements related to the screen elements. An element information acquisition step for acquiring information, a display processing step for displaying a list of operation contents that can be executed for the screen element to be operated based on the classification of the element information, and the display processing means. An operation content input step that accepts the selection of an arbitrary operation content from the operation content displayed in the list, and a command generation step that generates an operation content part of the command based on the operation content that has been selected by the operation content input means. , Is executed by the computer.

本発明によれば、画面を構成する画面要素に対する操作を定義したコマンドを用いて正確かつ効率的にテストスクリプトを生成し、テストを実行するテスト支援装置を提供することができる。 According to the present invention, it is possible to provide a test support device that accurately and efficiently generates a test script and executes a test by using a command that defines an operation on a screen element that constitutes a screen.

本発明の実施形態における、テスト支援装置のハードウェア構成図を示す。The hardware block diagram of the test support apparatus in embodiment of this invention is shown. 本発明の実施形態における、テスト支援装置の機能ブロック図を示す。The functional block diagram of the test support apparatus in embodiment of this invention is shown. 本発明の実施形態における、コマンドの構文例を示す図である。It is a figure which shows the syntax example of the command in embodiment of this invention. 本発明の実施形態における、テストの対象となる画面の一例を示す。An example of a screen to be tested in the embodiment of the present invention is shown. 本発明の実施形態における、テストの対象となる画面のHTMLの一例を示す。An example of HTML of the screen to be tested in the embodiment of the present invention is shown. 本発明の実施形態における、テストスクリプトの作成の流れを示すフローチャートである。It is a flowchart which shows the flow of making the test script in embodiment of this invention. 本発明の実施形態における、要素情報テーブルを示す。The element information table in the embodiment of the present invention is shown. 本発明の実施形態における、コマンドの生成する流れを説明する図である。It is a figure explaining the flow of generating a command in embodiment of this invention. 本発明の実施形態における、テストスクリプトの表示画面の一例を示す。An example of the display screen of the test script in the embodiment of the present invention is shown.

以下、図面を用いて、本発明の実施形態に関するテスト支援装置について説明する。なお、以下に示す実施形態は本発明の一例であり、本発明を以下の実施形態に限定するものではなく、特許請求の範囲に記載された範囲内において適宜変更が可能である。 Hereinafter, the test support device according to the embodiment of the present invention will be described with reference to the drawings. The embodiments shown below are examples of the present invention, and the present invention is not limited to the following embodiments, and can be appropriately modified within the scope of the claims.

本実施形態では、テスト支援装置及び、サーバ装置を含むテスト支援システムの構成、動作等について説明するが、同様の構成の方法、コンピュータプログラム、記録媒体等も、同様の作用効果を奏することができる。この記録媒体を用いれば、例えばコンピュータに前記プログラムをインストールすることができる。ここで、前記プログラムを記憶した記録媒体は、例えばCD−ROM等の非一過性の記録媒体であっても良い。 In the present embodiment, the configuration, operation, and the like of the test support device and the test support system including the server device will be described, but a method of the same configuration, a computer program, a recording medium, and the like can also exert the same effects. .. Using this recording medium, for example, the program can be installed on a computer. Here, the recording medium in which the program is stored may be a non-transient recording medium such as a CD-ROM.

本実施形態に係るテスト支援装置は、コマンドを用いて作成されたテストスクリプトの再生により画面の動作テストを自動化するものである。ここでいう画面とは、ウェブページにおける画面やアプリケーションにおける画面などディスプレイを介してユーザに対して表示されるUI(User Interface)全般を意味する。本実施形態において、画面は、HTML(Hyper Text Markup Language)、XML(Extensible Markup Language)、CSS(Cascading Style Sheets)などのコードなどに基づいて表示処理され、画面の構成要素として、ヘッダー、フッター、ツールバー及び、コンテンツエリアなどを備える。特に、本実施形態では、主としてコンテンツエリアに含まれる入力フォーム、ボタン、テキスト、画像、ファイル等について、画面を構成する画面要素の例として説明する。 The test support device according to the present embodiment automates the screen operation test by playing back a test script created by using a command. The screen here means the entire UI (User Interface) displayed to the user via a display such as a screen on a web page or a screen on an application. In the present embodiment, the screen is displayed and processed based on codes such as HTML (Hyper Text Markup Language), XML (Extensible Markup Language), CSS (Cascading Style Sheets), and the header, footer, and the like as screen components. It has a toolbar and a content area. In particular, in the present embodiment, input forms, buttons, texts, images, files and the like mainly included in the content area will be described as examples of screen elements constituting the screen.

テスト支援装置1は図1に示すように、データ通信機能を有し、ハードウェア及び、機能の構成要素を含んでおり、パーソナルコンピュータ、スマートフォン、タブレット端末等のコンピュータ端末を用いることができる。テスト支援装置1は、ハードウェア構成要素として、演算装置(CPU(Central Processing Unit))11、主記憶装置(RAM(Random Access Memory))12とを備える。また、テスト支援装置1は、OS(Operating System)、アプリケーションプログラム、及び各種情報(データを含む)を書換え可能に格納するHDDやSSD、フラッシュメモリ等の補助記憶装置15と、通信制御部13と、NIC(Network Interface Card)などの通信インタフェース(IF)部14と、表示制御部16と、表示部17と、マウス、タッチパネル、キーボードなどの情報入力・指定部18などと、を更に備える。なお、表示部17は、ディスプレイやタッチパネル等により構成され、画面のタッチ操作などにより情報入力・指定部18における一部の機能を実現できるようにしてもよい。 As shown in FIG. 1, the test support device 1 has a data communication function, includes hardware and functional components, and can use a computer terminal such as a personal computer, a smartphone, or a tablet terminal. The test support device 1 includes a computing device (CPU (Central Processing Unit) 11) and a main storage device (RAM (Random Access Memory)) 12 as hardware components. Further, the test support device 1 includes an auxiliary storage device 15 such as an HDD, SSD, and flash memory that rewritably stores an OS (Operating System), an application program, and various information (including data), and a communication control unit 13. , NIC (Network Interface Card) and other communication interface (IF) units 14, display control units 16, display units 17, and information input / designation units 18 such as mice, touch panels, and keyboards. The display unit 17 may be composed of a display, a touch panel, or the like, and some functions of the information input / designation unit 18 may be realized by a touch operation on the screen.

図2は、本実施形態に係るテスト支援装置1の機能ブロック図を示す。テスト支援装置1は、図2に示すように、機能構成要素として、要素情報取得手段101、表示処理手段102、操作内容入力手段103、識別要素入力手段104、コマンド生成手段105、重複検出手段106、画面決定手段107、記憶部108を備える。 FIG. 2 shows a functional block diagram of the test support device 1 according to the present embodiment. As shown in FIG. 2, the test support device 1 has element information acquisition means 101, display processing means 102, operation content input means 103, identification element input means 104, command generation means 105, and duplicate detection means 106 as functional components. , Screen determination means 107, storage unit 108.

要素情報取得手段101は、テスト支援装置1においてテスト対象とする画面を構成する画面要素に関する要素情報を取得し、記憶部108に格納する。表示処理手段102は、要素情報取得手段101により取得された要素情報に基づいて、画面要素に対して実行可能な操作内容と、画面要素に定義された1以上の識別要素と、を一覧として表示処理する。表示部17は、表示処理手段102により表示処理された表示処理結果を取得し、表示処理結果に基づいて画面を表示する。 The element information acquisition means 101 acquires element information related to screen elements constituting the screen to be tested in the test support device 1, and stores the element information in the storage unit 108. The display processing means 102 displays as a list the operation contents that can be executed on the screen element and one or more identification elements defined in the screen element based on the element information acquired by the element information acquisition means 101. To process. The display unit 17 acquires the display processing result displayed by the display processing means 102, and displays the screen based on the display processing result.

操作内容入力手段103は、表示処理手段102により一覧として表示処理された操作内容から任意の操作内容の選択を受け付ける。また、識別要素入力手段104は、表示処理手段102により一覧として表示処理された識別要素から任意の識別要素の選択を受け付ける。コマンド生成手段105は、操作内容入力手段103及び識別要素入力手段104により選択を受け付けた操作内容と識別要素に基づいて、コマンドを生成する。 The operation content input means 103 accepts the selection of an arbitrary operation content from the operation content displayed as a list by the display processing means 102. Further, the identification element input means 104 accepts selection of an arbitrary identification element from the identification elements displayed as a list by the display processing means 102. The command generation means 105 generates a command based on the operation content and the identification element that have been selected by the operation content input means 103 and the identification element input means 104.

図3は、本実施形態において用いられるコマンドの構文の一例を示す。コマンドの構文は、図3(a)に示すように、画面要素に対する操作内容を示す操作内容部C10と、画面要素を特定する情報を示す操作対象部C20と、を備える。操作対象部C20は、画面要素を識別する為に用いられる識別要素を指定する識別要素指定部C21と、識別要素指定部C21において指定された識別要素に定義された要素値を指定する要素値指定部C22と、を備える。 FIG. 3 shows an example of the syntax of the command used in this embodiment. As shown in FIG. 3A, the command syntax includes an operation content unit C10 indicating the operation content for the screen element, and an operation target unit C20 indicating information for identifying the screen element. The operation target unit C20 specifies an identification element designation unit C21 that specifies an identification element used to identify a screen element, and an element value designation that specifies an element value defined for the identification element specified in the identification element designation unit C21. A unit C22 is provided.

操作内容部C10における操作内容には、画面要素に対するクリックやテキスト入力などデータ入力に関する操作と、ブラウザ、ウィンドウ、タブを指定することで操作対象となる画面を決定する操作と、テスト用データの収集、及びテスト用データの比較・検証を実行する操作などと、を備える。 Operation details The operation details in the operation content section C10 include operations related to data input such as clicking on screen elements and text input, operations to determine the screen to be operated by specifying a browser, window, and tab, and collection of test data. , And an operation to compare / verify test data.

本実施形態において、識別要素は、対象となる画面を構成するHTML等のコードから取得されるname属性、id属性、value属性、class属性、CssSelector、Xpathなどである。識別要素は、ユーザによって各画面要素に対して任意に定義されるものである。また、要素値は、識別要素に対応する変数であり、name属性、id属性、value属性、class属性においては、属性値を示す。CssSelecotr及びXpathは、上述の属性値を用いた表現や、コードのタグと組み合わせた表現により、画面要素を一意に識別できる要素値を備える。 In the present embodiment, the identification element is a name attribute, an id attribute, a value attribute, a class attribute, a CssSelector, an Xpath, etc. acquired from a code such as HTML that constitutes the target screen. The identification element is arbitrarily defined by the user for each screen element. Further, the element value is a variable corresponding to the identification element, and indicates an attribute value in the name attribute, id attribute, value attribute, and class attribute. CssSelecotr and Xpath have element values that can uniquely identify screen elements by expressions using the above-mentioned attribute values or in combination with code tags.

また、コマンドは、画面要素に対する入力値が含まれる場合、図3(b)に示すように入力値を示す変数部C30を備えてもよい。入力値は、例えば、テキストボックスにテキスト入力するときの文字列を示す。また、操作対象部C20は、同一画面の同一画面要素に対して同一の要素値が定義されている場合、識別子を示すインデックス部C23を備える。インデックス部C23の識別子は、重複する画面要素を識別する為に要素値に紐づけられる情報であり、予め定められた規則にしたがって付与される。 Further, when the command includes an input value for a screen element, the command may include a variable unit C30 indicating the input value as shown in FIG. 3 (b). The input value indicates, for example, a character string when inputting text in the text box. Further, the operation target unit C20 includes an index unit C23 indicating an identifier when the same element value is defined for the same screen element on the same screen. The identifier of the index unit C23 is information associated with the element value in order to identify the duplicate screen element, and is given according to a predetermined rule.

図3(a)のコマンドは、識別要素がclass属性であり、要素値としてclass_priceが与えられた画面要素に対して、クリックを実行する、という操作を示す。また、図3(b)のコマンドは、識別要素がclass属性であり、要素値としてclass_priceが与えられた画面要素のうち識別子として2が付与されたものに対して、入力値として「80」を入力する、という操作を示す。 The command of FIG. 3A shows an operation of executing a click on a screen element in which the identification element has the class attribute and class_price is given as the element value. Further, in the command of FIG. 3B, "80" is input as an input value for a screen element in which the identification element is the class attribute and class_price is given as the element value and 2 is given as the identifier. Indicates the operation of inputting.

コマンドの操作内容部C10及び、識別要素指定部C21を組み合わせた1以上のコマンドは、コマンドセットとして予め記憶部108に格納される。コマンドセットは、ユーザによって任意の組み合わせにより記憶部108に格納されてもよい。なお、操作内容部C10のコマンドのみをコマンドセットとして記憶部108に格納されてもよい。 One or more commands in which the operation content unit C10 of the command and the identification element designation unit C21 are combined are stored in advance in the storage unit 108 as a command set. The command set may be stored in the storage unit 108 by the user in any combination. It should be noted that only the command of the operation content unit C10 may be stored in the storage unit 108 as a command set.

コマンド生成手段105は、コマンドセットから任意のものの選択を受け付けることで、コマンドを生成する。なお、コマンドセットからコマンドの一部を生成した場合、ユーザによる直接入力により残りのコマンドが生成される。 The command generation means 105 generates a command by accepting a selection of an arbitrary one from the command set. When a part of the command is generated from the command set, the remaining command is generated by the direct input by the user.

重複検出手段106は、要素情報取得手段101により取得された要素情報において要素値が重複する場合、同一画面内において重複する要素値を検出し、各要素値に異なる識別子を対応付けて記憶部108に格納する。重複検出手段106により要素値に対応付けられた識別子は、上述したインデックス部C23における識別子を示す。 When the element values are duplicated in the element information acquired by the element information acquisition means 101, the duplicate detection means 106 detects the duplicate element values in the same screen, associates each element value with a different identifier, and stores the storage unit 108. Store in. The identifier associated with the element value by the duplication detection means 106 indicates the identifier in the index unit C23 described above.

画面決定手段107は、複数の画面を遷移して操作される場合、各画面の画面要素が有する他の画面と重複しない要素値を指定することにより、操作対象となる画面を特定する。 When the screen determining means 107 is operated by transitioning a plurality of screens, the screen determining means 107 specifies a screen to be operated by designating an element value that does not overlap with other screens of the screen elements of each screen.

図4は、テスト支援装置1によりテストを自動化する対象となる画面の一例を示す。宿泊予約画面W1は、タイトルW11、URLW12、ヘッダーW13、名前W14、目的W15、宿泊者数W16、日程W17、食事W18、次へボタンW19を備える。宿泊予約画面W1において、次へボタンW19が操作されることにより予約確認画面W2に遷移する。予約確認画面W2は、タイトルW21、URLW22、ヘッダーW23、予約内容表示部W24、戻るボタンW25、予約ボタンW26を備える。戻るボタンW25が操作されることにより宿泊予約画面W1に遷移し、予約ボタンW26が操作されることにより、予約内容表示部W24の内容は、所定のアドレスに送信される。 FIG. 4 shows an example of a screen for which the test is automated by the test support device 1. The accommodation reservation screen W1 includes a title W11, a URL W12, a header W13, a name W14, a purpose W15, a number of guests W16, a schedule W17, a meal W18, and a next button W19. On the accommodation reservation screen W1, the next button W19 is operated to transition to the reservation confirmation screen W2. The reservation confirmation screen W2 includes a title W21, a URL W22, a header W23, a reservation content display unit W24, a back button W25, and a reservation button W26. When the back button W25 is operated, the accommodation reservation screen W1 is displayed, and when the reservation button W26 is operated, the contents of the reservation content display unit W24 are transmitted to a predetermined address.

図5は、図4の宿泊予約画面W1を構成する画面要素に関する要素情報を定義する定義画面W3の一例を示す。本実施形態では、定義画面W3は、宿泊予約画面W1をHTMLにより構成した例を示す。ヘッダー部W31は、宿泊予約画面W1のヘッダーW13に対応し、ヘッダーを表示処理させる。要素情報部W32は、宿泊予約画面W1の名前W14に対応し、テキストボックスを表示処理させる。なお、要素情報部W32は、1つのみ示したが、目的W15、宿泊者数W16、日程W17、食事W18、次へボタンW19に対応するだけ複数存在し、ラジオボタン、プルダウンメニュー、カレンダー、ボタンなどの入力フォームをそれぞれ表示処理させる。 FIG. 5 shows an example of a definition screen W3 that defines element information relating to screen elements constituting the accommodation reservation screen W1 of FIG. In the present embodiment, the definition screen W3 shows an example in which the accommodation reservation screen W1 is configured by HTML. The header unit W31 corresponds to the header W13 of the accommodation reservation screen W1 and causes the header to be displayed. The element information unit W32 corresponds to the name W14 of the accommodation reservation screen W1 and displays a text box. Although only one element information unit W32 is shown, there are a plurality of elements corresponding to the purpose W15, the number of guests W16, the schedule W17, the meal W18, and the next button W19, and there are radio buttons, pull-down menus, calendars, and buttons. Display processing of each input form such as.

要素情報部W32は、要素情報として、画面要素の分類及び、画面要素を識別する為に用いられる識別要素及び、要素値を少なくとも含む。本実施形態において、画面要素の分類は、フォームの種類を示す情報であり、HTMLではtype属性(図4におけるtype=”text”のtext)として定義される。なお、画面要素の分類は、type属性に加えて、<input>や<button>などのタグを参照することにより定義されてもよい。また、画面要素の分類の一例として、テキストボックス、ラジオボタン、プルダウンメニュー、チェックボックス、サブミットボタンなどが挙げられるが、これらに限定されるものではない。 The element information unit W32 includes at least an identification element used for classifying screen elements and identifying screen elements and element values as element information. In the present embodiment, the classification of screen elements is information indicating the type of form, and is defined as a type attribute (text of type = ”text” in FIG. 4) in HTML. The classification of screen elements may be defined by referring to tags such as <input> and <button> in addition to the type attribute. Further, examples of classification of screen elements include, but are not limited to, text boxes, radio buttons, pull-down menus, check boxes, and submit buttons.

本実施形態において、識別要素は、id属性、class属性、name属性、value属性などの識別属性と、CssSelector、Xpathなどとを含む。識別要素は、上述したものに限定されず、独自に定義された識別子や名前、DOM(Document Object Model)、テキストパターン等を用いてもよい。 In the present embodiment, the identification element includes an identification attribute such as an id attribute, a class attribute, a name attribute, and a value attribute, and a CssSelector, Xpath, and the like. The identification element is not limited to the above-mentioned one, and an uniquely defined identifier, name, DOM (Document Object Model), text pattern, or the like may be used.

本実施形態において、要素値は、id属性、class属性、name属性、value属性に定義された属性値(図5におけるid=”id_a”のid_aなど)を示す。定義画面W3の例において、Xpathは、要素値として/html/body/p/inputを備える。 In the present embodiment, the element value indicates an attribute value defined in the id attribute, class attribute, name attribute, and value attribute (id_a of id = ”id_a” in FIG. 5 and the like). In the example of the definition screen W3, Xpath includes / html / body / p / input as an element value.

図6は、本実施形態において、画面の動作テストを実行する処理の流れを示すフローチャートである。以下、図2〜図9を参酌し、本実施形態に係るテスト支援装置1の処理について説明する。 FIG. 6 is a flowchart showing a flow of processing for executing a screen operation test in the present embodiment. Hereinafter, the processing of the test support device 1 according to the present embodiment will be described with reference to FIGS. 2 to 9.

はじめに、テスト支援装置1において、テスト支援プログラムが起動される。S101において、画面決定手段107は、動作テストの対象となる画面を特定する為の情報の入力を受け付ける。本実施形態において、画面を特定する為の情報として、URL、タイトル、要素値の何れかが入力される。画面決定手段107は、URLW12を介してURLの入力を受け付けると、S102において、入力されたURLに基づいて対象となる画面を特定し、表示処理する。コマンド生成手段105は、URLが入力されると、入力されたURLの画面を開くコマンドを生成する。 First, the test support program is started in the test support device 1. In S101, the screen determining means 107 accepts the input of information for identifying the screen to be the target of the operation test. In the present embodiment, any one of a URL, a title, and an element value is input as information for specifying the screen. When the screen determining means 107 receives the input of the URL via the URL W12, the screen determining means 107 identifies the target screen based on the input URL in S102 and performs display processing. When the URL is input, the command generation means 105 generates a command to open the screen of the input URL.

宿泊予約画面W1の次へボタンW19の押下により予約確認画面W2に遷移するとき、画面決定手段107は、初めに遷移先のURLを取得し、取得したURLに基づいて対象となる画面を特定し、表示処理する。画面決定手段107は、遷移先のURLが遷移前の画面のURLと重複する場合、遷移先の画面のタイトルを取得し、タイトルに基づいて対象となる画面を特定する。画面決定手段107は、更に遷移先のタイトルが重複する場合、遷移先の画面要素が備える他の画面と重複しない要素値を取得し、要素値に基づいて対象となる画面を特定する。なお、画面の遷移は、例えば、画面要素に含まれるハイパーリンクなどによって、実行されるものである。 When transitioning to the reservation confirmation screen W2 by pressing the next button W19 of the accommodation reservation screen W1, the screen determination means 107 first acquires the URL of the transition destination and identifies the target screen based on the acquired URL. , Display processing. When the URL of the transition destination overlaps with the URL of the screen before the transition, the screen determination means 107 acquires the title of the screen of the transition destination and identifies the target screen based on the title. When the titles of the transition destinations are further duplicated, the screen determining means 107 acquires an element value that does not overlap with other screens included in the screen element of the transition destination, and identifies the target screen based on the element values. The screen transition is executed by, for example, a hyperlink included in the screen element.

また、コマンド生成手段105は、画面が遷移する際、画面遷移に関する操作内容(SwitchTab、SwitchFrameなど)に基づいて操作内容部C10を生成し、画面決定手段107により取得されたURL、タイトル、要素値の何れかに基づいてコマンドの操作対象部C20を生成する。本実施形態における画面遷移として、タブ切替、フレーム切替、ブラウザ切替、ウィンドウ切替などが挙げられる。画面決定手段107により画面決定に関するコマンドが生成されると、生成されたコマンドに含まれるURL、タイトル、要素値に基づいて、続くコマンドの対象となる画面が決定される。 Further, when the screen transitions, the command generating means 105 generates the operation content unit C10 based on the operation content (SwitchTab, SwitchFrame, etc.) related to the screen transition, and the URL, title, and element value acquired by the screen determining means 107. The operation target unit C20 of the command is generated based on any of the above. Examples of screen transitions in the present embodiment include tab switching, frame switching, browser switching, window switching, and the like. When a command related to screen determination is generated by the screen determination means 107, the screen to be the target of the subsequent command is determined based on the URL, title, and element value included in the generated command.

S101、S102において対象となる画面が決定されると、要素情報取得手段101は、対象となる画面のHTML等を取得し、更に、HTMLに含まれる画面要素に関する要素情報を取得する。要素情報取得手段101により取得された要素情報は、記憶部108に格納される。図7は、図4の宿泊予約画面W1より取得された要素情報が格納される要素情報テーブルT1を示す。要素情報取得手段101は、画面要素において定義される全ての識別要素を要素情報テーブルT1として格納する。なお、要素情報取得手段101は、画面要素の指定を受けたとき、指定を受けた画面要素の要素情報を取得する構成であってもよい。 When the target screen is determined in S101 and S102, the element information acquisition means 101 acquires HTML or the like of the target screen, and further acquires element information related to the screen element included in the HTML. The element information acquired by the element information acquisition means 101 is stored in the storage unit 108. FIG. 7 shows an element information table T1 in which the element information acquired from the accommodation reservation screen W1 of FIG. 4 is stored. The element information acquisition means 101 stores all the identification elements defined in the screen element as the element information table T1. The element information acquisition means 101 may be configured to acquire the element information of the designated screen element when the screen element is designated.

要素情報は、要素情報テーブルT1に示すように、対象画面T11、画面要素T12、分類T13、識別要素T14、インデックスT15を備える。対象画面T11は、タイトルを示しているが、URLが含まれてもよい。本実施形態において、分類T13は、type属性により定義された属性値が格納される。識別要素T14には、各識別要素の要素値が格納される。重複検出手段106は、要素情報取得手段101により取得された要素情報において同一画面内に含まれる重複する要素値を検出し、重複する各要素値に異なる識別子を紐づけてインデックスT15に格納する。要素情報テーブルT1において、「目的」に含まれる2つの画面要素は、それぞれname属性の要素値(name_contact)が重複している。このような重複に対して、重複検出手段106は、識別子として1及び2をそれぞれ紐づけることで、操作対象部C20においてname属性が入力された場合であっても対象となる画面要素を識別可能となる。 As shown in the element information table T1, the element information includes a target screen T11, a screen element T12, a classification T13, an identification element T14, and an index T15. The target screen T11 shows a title, but may include a URL. In the present embodiment, the classification T13 stores the attribute value defined by the type attribute. The element value of each identification element is stored in the identification element T14. The duplicate detection means 106 detects duplicate element values included in the same screen in the element information acquired by the element information acquisition means 101, associates each duplicate element value with a different identifier, and stores it in the index T15. In the element information table T1, the element values (name_contact) of the name attribute of each of the two screen elements included in the "purpose" are duplicated. For such duplication, the duplication detecting means 106 can identify the target screen element even when the name attribute is input in the operation target unit C20 by associating 1 and 2 as identifiers, respectively. It becomes.

続くS103において、操作画面は、画面を構成する画面要素の指定をユーザより受け付ける。画面要素の指定は、例えば、画面要素にマウスのカーソルを近づける操作や、カーソルを近づけたうえでクリックする操作などにより実行される。要素情報取得手段101は、予め要素情報テーブルT1として格納した要素情報から、指定を受けた画面要素に関する要素情報を取得する。なお、要素情報取得手段101は、指定を受けた画面要素に関する要素情報をHTMLから取得する構成であってもよい。 In the following S103, the operation screen accepts the designation of the screen elements constituting the screen from the user. The screen element is specified, for example, by an operation of bringing the mouse cursor close to the screen element, an operation of bringing the cursor close to the screen element, and then clicking. The element information acquisition means 101 acquires element information related to a designated screen element from the element information stored in advance as the element information table T1. The element information acquisition means 101 may be configured to acquire element information related to the designated screen element from HTML.

図8(a)は、図4の宿泊予約画面W1において、画面要素として名前W14を指定されたときの続く表示処理について説明する図である。表示処理手段102は、ユーザより画面要素の指定を受けた要素情報の分類T13に基づいて、操作対象とする画面要素に対して実行可能な操作内容を操作内容一覧W141として表示処理する。図8(a)の例において、名前W14の分類T13は、テキストボックスを示す「text」であり、実行可能な操作内容として、画面要素に対してテキスト入力を実行する「input」、画面要素に対してクリック操作を実行する「Click」などが一覧に表示処理されている。例えば、画面要素の分類T13が、ラジオボタンを示す「radio」の場合、テキスト入力は実行できないため、操作内容として「input」は表示されない。 FIG. 8A is a diagram illustrating a subsequent display process when the name W14 is designated as a screen element on the accommodation reservation screen W1 of FIG. The display processing means 102 displays and processes the operation contents that can be executed for the screen element to be operated as the operation content list W141 based on the element information classification T13 that has been designated by the user as the screen element. In the example of FIG. 8A, the classification T13 of the name W14 is "text" indicating a text box, and as the action contents that can be executed, "input" for executing text input to the screen element, and the screen element On the other hand, "Click" or the like that executes a click operation is displayed in a list and processed. For example, when the screen element classification T13 is "radio" indicating a radio button, "input" is not displayed as an operation content because text input cannot be executed.

画面要素の分類T13に対して実行可能な操作内容は、予め記憶部108に格納される。また、要素情報の各分類T13には、予め表示処理する操作内容の優先順位が設定されている。優先順位は、画面要素の分類T13に対して実行される可能性が高い操作内容を示すものである。 The operation contents that can be executed for the screen element classification T13 are stored in the storage unit 108 in advance. Further, in each classification T13 of the element information, the priority of the operation content to be displayed is set in advance. The priority order indicates the operation content that is likely to be executed for the screen element classification T13.

S104において、操作内容入力手段103は、表示処理手段102により表示処理された操作内容一覧W141から任意の操作内容の選択を受け付ける。なお、操作内容入力手段103により選択された操作内容の回数を記憶部108に格納し、操作内容の優先順位は、記憶部108に格納された操作内容の回数に基づいて決定される構成とすることが好ましい。表示処理手段102は、要素情報の分類T13ごとに設定された優先順位にしたがって、操作内容一覧W141の並び順を決定し、表示処理する。 In S104, the operation content input means 103 accepts the selection of an arbitrary operation content from the operation content list W141 displayed and processed by the display processing means 102. The number of operation contents selected by the operation content input means 103 is stored in the storage unit 108, and the priority of the operation content is determined based on the number of operation contents stored in the storage unit 108. Is preferable. The display processing means 102 determines the order of the operation content list W141 according to the priority set for each classification T13 of the element information, and performs display processing.

操作内容入力手段103により任意の操作内容が選択されると、表示処理手段102は、操作対象とする画面要素に定義された1以上の識別要素を識別要素一覧W142として操作内容一覧W141に並列させて表示処理する。図8(a)の例において、名前W14が備える識別要素T14は、id属性、value属性、CssSelector及び、Xpathであり、識別要素一覧W142は、要素情報テーブルT1において格納される識別要素T14に基づいて表示処理される。なお、CssSelector及び、Xpathは、画面要素において必然的に定義される識別要素であるため、表示処理手段102は、少なくともCssSelector及び、Xpathを識別要素一覧W142として表示処理することができる。 When an arbitrary operation content is selected by the operation content input means 103, the display processing means 102 arranges one or more identification elements defined in the screen element to be operated in parallel with the operation content list W141 as the identification element list W142. Display processing. In the example of FIG. 8A, the identification element T14 included in the name W14 is an id attribute, a value attribute, a CssSelector, and an Xpath, and the identification element list W142 is based on the identification element T14 stored in the element information table T1. Is displayed. Since CssSelector and Xpath are identification elements that are inevitably defined in the screen element, the display processing means 102 can display at least CssSelector and Xpath as the identification element list W142.

なお、識別要素に対しても優先順位が設定されてもよい。例えば、一般にid属性は、画面要素に対して一意に定義される識別要素であり、優先順位を高く設定することが好ましい。表示処理手段102は、優先順位に基づいて識別要素一覧W142の並び順を決定し、表示処理する。また、識別要素の優先順位は、識別要素入力手段104により選択された回数に基づいて決定されてもよい。 A priority may be set for the identification element as well. For example, in general, the id attribute is an identification element uniquely defined for a screen element, and it is preferable to set a high priority. The display processing means 102 determines the order of the identification element list W142 based on the priority order, and performs display processing. Further, the priority of the identification element may be determined based on the number of times selected by the identification element input means 104.

S105において、識別要素入力手段104は、表示処理手段102により識別要素一覧W142として一覧に表示処理された識別要素から任意の識別要素の選択を受け付ける。操作内容入力手段103及び識別要素入力手段104により選択を受け付けた操作内容及び識別要素は、コマンド生成手段105に対して出力される。 In S105, the identification element input means 104 accepts the selection of an arbitrary identification element from the identification elements displayed in the list as the identification element list W142 by the display processing means 102. Operation content input means 103 and identification element The operation content and identification element whose selection has been accepted by the input means 104 are output to the command generation means 105.

操作内容入力手段103により操作内容として「input」が入力された場合、表示処理手段102は、図8(b)に示すように、識別要素入力手段104により識別要素の選択を受け付けたのち、テキスト入力画面W143を表示処理する。テキスト入力画面W143は、例えば、宿泊予約画面W1においてポップアップ画面などとして表示処理される。テキスト入力画面W143は、テキスト入力部W144、OKボタンW145、取消ボタンW146を備える。テキスト入力部W144を介して入力を受け付けたテキストは、OKボタンW145の押下によって、入力値としてコマンド生成手段105に出力される。取消ボタンW146が押下されることにより、例えば、S103に戻って続く処理が実行される。 When "input" is input as the operation content by the operation content input means 103, the display processing means 102 accepts the selection of the identification element by the identification element input means 104 as shown in FIG. 8B, and then texts. Display processing is performed on the input screen W143. The text input screen W143 is displayed and processed as, for example, a pop-up screen on the accommodation reservation screen W1. The text input screen W143 includes a text input unit W144, an OK button W145, and a cancel button W146. The text received as input via the text input unit W144 is output to the command generation means 105 as an input value by pressing the OK button W145. When the cancel button W146 is pressed, for example, the process of returning to S103 and continuing is executed.

S106において、コマンド生成手段105は、操作内容入力手段103により選択を受け付けた操作内容に基づいてコマンドの操作内容部C10を生成する。また、コマンド生成手段105は、識別要素入力手段104により選択を受け付けた識別要素に基づいて操作対象部C20における識別要素指定部C21を生成し、選択を受け付けた識別要素に対応する要素値に基づいて操作対象部C20における要素値指定部C22を生成する。また、コマンド生成手段105は、画面要素に対する入力値に基づいて変数部C30を生成する。なお、コマンド生成手段105は、value属性の属性値を入力値として変数部C30を生成してもよい。 In S106, the command generation means 105 generates the operation content unit C10 of the command based on the operation content for which the selection is accepted by the operation content input means 103. Further, the command generation means 105 generates the identification element designation unit C21 in the operation target unit C20 based on the identification element that has been selected by the identification element input means 104, and is based on the element value corresponding to the identification element that has received the selection. The element value designation unit C22 in the operation target unit C20 is generated. Further, the command generation means 105 generates the variable unit C30 based on the input value for the screen element. The command generation means 105 may generate the variable unit C30 by using the attribute value of the value attribute as an input value.

なお、識別要素入力手段104により選択を受け付けた識別要素に対応する要素値に識別子が紐づけられている場合、コマンド生成手段105は、要素値に紐づけられた識別子に基づいて操作対象部C20におけるインデックス部C23を生成する。識別子が紐づけられていない場合又は、識別子が1の場合、コマンド生成手段105は、インデックス部C23を生成しなくてもよい。 When an identifier is associated with the element value corresponding to the identification element whose selection is accepted by the identification element input means 104, the command generation means 105 uses the operation target unit C20 based on the identifier associated with the element value. The index unit C23 in the above is generated. When the identifier is not associated or the identifier is 1, the command generating means 105 does not have to generate the index unit C23.

コマンド生成手段105により生成されたコマンドは、画面に対して操作された順序にしたがって、スクリプト画面W4に入力されていく。図9は、宿泊予約画面W1に対する操作に基づいて作成されたテストスクリプトを表示するスクリプト画面W4の画面例を示す。スクリプト画面W4は、スクリプト表示部W41、コマンドセット表示部W42、設定表示部W43、保存ボタンW44、再生ボタンW45などを備える。 The commands generated by the command generation means 105 are input to the script screen W4 in the order in which they are operated on the screen. FIG. 9 shows a screen example of the script screen W4 that displays the test script created based on the operation on the accommodation reservation screen W1. The script screen W4 includes a script display unit W41, a command set display unit W42, a setting display unit W43, a save button W44, a play button W45, and the like.

スクリプト表示部W41は、コマンド生成手段105により生成されたコマンドを表示する。コマンドセット表示部W42は、少なくともコマンドの操作内容部C10を含むコマンドセットを表示する。コマンド生成手段105は、コマンドセット表示部W42において選択を受け付けたコマンドを生成し、スクリプト表示部W41に出力する。なお、コマンド生成手段105は、コマンドセット表示部W42に表示されるコマンドをドラッグアンドドロップの操作により、スクリプト表示部W41における任意の行に出力してもよい。 The script display unit W41 displays the command generated by the command generation means 105. The command set display unit W42 displays a command set including at least the operation content unit C10 of the command. The command generation means 105 generates a command for which selection has been accepted by the command set display unit W42, and outputs the command to the script display unit W41. The command generation means 105 may output the command displayed on the command set display unit W42 to an arbitrary line on the script display unit W41 by a drag-and-drop operation.

保存ボタンW44は、ユーザによる操作を受け付け、スクリプト表示部W41に表示されるテストスクリプトを例えばバッチファイルなどの形式で保存し、記憶部108に格納する。設定表示部W43は、保存したバッチファイルや実行環境の設定を保存したファイルを表示し、ユーザより任意のファイルの選択を受け付けることで、選択されたファイルを開く。再生ボタンW45は、対象のテストスクリプトを保存したファイルが開かれた段階で押下されることにより、テストスクリプトに基づいてテスト動作を実行する。これによって、ユーザが対象画面に対して行った操作が再現される。 The save button W44 accepts an operation by the user, saves the test script displayed on the script display unit W41 in a format such as a batch file, and stores it in the storage unit 108. The setting display unit W43 displays the saved batch file and the file in which the settings of the execution environment are saved, and opens the selected file by accepting the user to select an arbitrary file. The play button W45 executes a test operation based on the test script by being pressed when the file in which the target test script is saved is opened. As a result, the operation performed by the user on the target screen is reproduced.

テスト支援装置1は、テストスクリプトの実行結果をエビデンスとして記憶部108に格納する。また、テスト支援装置1は、例えば、記憶部108に格納したエビデンスと、任意の画面要素に対して異なる入力値を入力した場合に得られるエビデンスと、を比較することでエラー等を検証することができる。 The test support device 1 stores the execution result of the test script as evidence in the storage unit 108. Further, the test support device 1 verifies an error or the like by comparing, for example, the evidence stored in the storage unit 108 with the evidence obtained when different input values are input to an arbitrary screen element. Can be done.

本実施形態では、テスト支援装置1は、テスト支援プログラムをコンピュータ端末等にインストールすることにより機能を実現する。本発明の異なる実施形態として、テスト支援装置1は、ハードウェア構成要素(11−18)及び、データ通信機能、表示処理機能、データ処理機能などを備え、テスト支援プログラムをインストールしたサーバ装置2とデータ通信することにより、機能を実現する構成としてもよい。 In the present embodiment, the test support device 1 realizes a function by installing a test support program on a computer terminal or the like. As a different embodiment of the present invention, the test support device 1 includes a hardware component (11-18), a data communication function, a display processing function, a data processing function, and the like, and is different from the server device 2 in which the test support program is installed. It may be configured to realize the function by data communication.

なお、本実施形態において、コマンド生成手段105は、操作内容入力手段103及び識別要素入力手段104により選択を受け付けた操作内容及び要素情報に基づいてコマンドを自動で生成するが、ユーザの直接入力によりコマンドが生成されてもよい。 In the present embodiment, the command generation means 105 automatically generates a command based on the operation content and element information selected by the operation content input means 103 and the identification element input means 104, but the command is directly input by the user. A command may be generated.

1 テスト支援装置
11 演算装置(CPU)
12 主記憶装置(RAM)
13 通信制御部
14 通信IF部
15 補助記憶装置
16 表示制御部
17 表示部
18 情報入力・指定部
101 要素情報取得手段
102 表示処理手段
103 操作内容入力手段
104 識別要素入力手段
105 コマンド生成手段
106 重複検出手段
107 画面決定手段
108 記憶部
2 サーバ装置
1 Test support device 11 Arithmetic logic unit (CPU)
12 Main storage (RAM)
13 Communication control unit 14 Communication IF unit 15 Auxiliary storage device 16 Display control unit 17 Display unit 18 Information input / designation unit 101 Element information acquisition means 102 Display processing means 103 Operation content input means 104 Identification element input means 105 Command generation means 106 Duplicate Detection means 107 Screen determination means 108 Storage unit 2 Server device

Claims (11)

画面を構成する画面要素に対する操作内容を定義したコマンドを用いてテストスクリプトを生成し、前記テストスクリプトの再生により画面の動作テストを自動化するテスト支援装置であって、
画面要素に関する要素情報を取得する要素情報取得手段と、
前記要素情報の分類に基づいて、操作対象とする前記画面要素に対して実行可能な操作内容を一覧として表示処理する表示処理手段と、
前記表示処理手段により一覧として表示処理された操作内容から任意の操作内容の選択を受け付ける操作内容入力手段と、
前記操作内容入力手段により選択を受け付けた操作内容に基づいてコマンドの操作内容部を生成するコマンド生成手段と、を備え
前記要素情報は、画面要素を識別する為に用いられる識別要素を含み、
前記表示処理手段は、操作対象とする画面要素に定義された1以上の識別要素を一覧として表示処理し、
前記表示処理手段により一覧として表示処理された識別要素から任意の識別要素の選択を受け付ける識別要素入力手段と、を更に備え、
前記コマンド生成手段は、前記識別要素入力手段により選択を受け付けた識別要素及び、識別要素に対して定義された要素値に基づいてコマンドの操作対象部を生成するテスト支援装置。
A test support device that generates a test script using commands that define the operation details for the screen elements that make up the screen, and automates the screen operation test by playing back the test script.
Element information acquisition means for acquiring element information related to screen elements,
A display processing means that displays and processes a list of operation contents that can be executed for the screen element to be operated based on the classification of the element information.
An operation content input means that accepts the selection of an arbitrary operation content from the operation content displayed as a list by the display processing means, and
The command generation means for generating the operation content part of the command based on the operation content selected by the operation content input means is provided .
The element information includes an identification element used to identify a screen element.
The display processing means displays and processes one or more identification elements defined in the screen element to be operated as a list.
Further, an identification element input means for accepting selection of an arbitrary identification element from the identification elements displayed as a list by the display processing means is provided.
The command generation means is a test support device that generates an operation target portion of a command based on an identification element that has been selected by the identification element input means and an element value defined for the identification element .
前記表示処理手段は、操作対象とする画面要素の指定を画面上で受け付けることにより、前記操作内容及び前記識別要素を一覧として表示処理する請求項1に記載のテスト支援装置。 The test support device according to claim 1 , wherein the display processing means receives the designation of the screen element to be operated on the screen, and displays the operation content and the identification element as a list. 前記コマンド生成手段は、前記コマンドの操作内容部及び、操作対象部の少なくとも一部を組み合わせた1以上のコマンドをコマンドセットとして予め記憶部に格納し、前記コマンドセットから任意のコマンドを選択することでコマンドを生成する請求項1又は請求項2に記載のテスト支援装置。 The command generation means stores in advance one or more commands as a command set in which at least a part of the operation content part and the operation target part of the command are combined, and selects an arbitrary command from the command set. The test support device according to claim 1 or 2 , wherein the command is generated in the above. 前記要素情報取得手段により取得された要素情報において要素値が重複する場合、同一画面内において重複する要素値を検出し、各要素値に異なる識別子を対応付けて記憶部に格納する重複検出手段を備え、
前記コマンド生成手段は、前記重複検出手段により重複する要素値に紐づけられた識別子に基づいてコマンドの対象を決定し、前記識別子を一部として含む操作対象部を生成する請求項1〜請求項3の何れかに記載のテスト支援装置。
When the element values are duplicated in the element information acquired by the element information acquisition means, the duplicate detection means that detects the duplicate element values in the same screen, associates each element value with a different identifier, and stores it in the storage unit. Prepare,
Said command generating means, said determining the command for, based on the duplicate were associated bound to elements containing a duplicate value by the detecting means identifier, claims 1 to generate an operation object portion including the identifier as part The test support device according to any one of 3 .
複数の画面を遷移して操作を行う場合、各画面の画面要素が有する他の画面と重複しない要素値を指定することにより、操作対象となる画面を特定する画面決定手段を備える請求項1〜請求項4の何れかに記載のテスト支援装置。 Claims 1 to 2 include a screen determining means for specifying a screen to be operated by designating an element value that does not overlap with other screens of the screen elements of each screen when performing an operation by transitioning a plurality of screens . The test support device according to any one of claims 4 . 画面を構成する画面要素に対する操作内容を定義したコマンドを用いてテストスクリプトを生成し、前記テストスクリプトの再生により画面の動作テストを自動化するテスト支援装置であって、
画面要素に関する要素情報を取得する要素情報取得手段と、
前記要素情報の分類に基づいて、操作対象とする前記画面要素に対して実行可能な操作内容を一覧として表示処理する表示処理手段と、
前記表示処理手段により一覧として表示処理された操作内容から任意の操作内容の選択を受け付ける操作内容入力手段と、
前記操作内容入力手段により選択を受け付けた操作内容に基づいてコマンドの操作内容部を生成するコマンド生成手段と、を備え
前記表示処理手段は、要素情報の分類ごとに設定された優先順位にしたがって前記操作内容を一覧として表示処理するテスト支援装置。
A test support device that generates a test script using commands that define the operation details for the screen elements that make up the screen, and automates the screen operation test by playing back the test script.
Element information acquisition means for acquiring element information related to screen elements,
A display processing means that displays and processes a list of operation contents that can be executed for the screen element to be operated based on the classification of the element information.
An operation content input means that accepts the selection of an arbitrary operation content from the operation content displayed as a list by the display processing means, and
The command generation means for generating the operation content part of the command based on the operation content selected by the operation content input means is provided .
The display processing means is a test support device that displays and processes the operation contents as a list according to the priority set for each classification of element information .
前記表示処理手段は、前記操作内容入力手段により選択を受け付けた操作内容の回数に基づいて前記優先順位を決定する請求項6に記載のテスト支援装置。 The test support device according to claim 6 , wherein the display processing means determines the priority based on the number of times of operation contents for which selection is accepted by the operation content input means. 画面を構成する画面要素に対する操作内容を定義したコマンドを用いてテストスクリプトを生成し、前記テストスクリプトの再生により画面の動作テストを自動化するテスト支援プログラムであって、
コンピュータを、画面要素に関する要素情報を取得する要素情報取得手段と、
前記要素情報の分類に基づいて、操作対象とする前記画面要素に対して実行可能な操作内容を一覧として表示処理する表示処理手段と、
前記表示処理手段により一覧として表示処理された操作内容から任意の操作内容の選択を受け付ける操作内容入力手段と、
前記操作内容入力手段により選択を受け付けた操作内容に基づいてコマンドの操作内容部を生成するコマンド生成手段と、として機能させ
前記要素情報は、画面要素を識別する為に用いられる識別要素を含み、
前記表示処理手段は、操作対象とする画面要素に定義された1以上の識別要素を一覧として表示処理し、
前記コンピュータを更に、前記表示処理手段により一覧として表示処理された識別要素から任意の識別要素の選択を受け付ける識別要素入力手段と、として機能させ、
前記コマンド生成手段は、前記識別要素入力手段により選択を受け付けた識別要素及び、識別要素に対して定義された要素値に基づいてコマンドの操作対象部を生成するテスト支援プログラム。
It is a test support program that generates a test script using commands that define the operation contents for the screen elements that make up the screen, and automates the screen operation test by playing the test script.
A computer, an element information acquisition means for acquiring element information related to screen elements,
A display processing means that displays and processes a list of operation contents that can be executed for the screen element to be operated based on the classification of the element information.
An operation content input means that accepts the selection of an arbitrary operation content from the operation content displayed as a list by the display processing means, and
It functions as a command generation means for generating an operation content part of a command based on the operation content selected by the operation content input means .
The element information includes an identification element used to identify a screen element.
The display processing means displays and processes one or more identification elements defined in the screen element to be operated as a list.
The computer is further made to function as an identification element input means that accepts selection of an arbitrary identification element from the identification elements displayed as a list by the display processing means.
The command generation means is a test support program that generates an operation target portion of a command based on an identification element that has been selected by the identification element input means and an element value defined for the identification element .
画面を構成する画面要素に対する操作内容を定義したコマンドを用いてテストスクリプトを生成し、前記テストスクリプトの再生により画面の動作テストを自動化するテスト支援プログラムであって、
コンピュータを、画面要素に関する要素情報を取得する要素情報取得手段と、
前記要素情報の分類に基づいて、操作対象とする前記画面要素に対して実行可能な操作内容を一覧として表示処理する表示処理手段と、
前記表示処理手段により一覧として表示処理された操作内容から任意の操作内容の選択を受け付ける操作内容入力手段と、
前記操作内容入力手段により選択を受け付けた操作内容に基づいてコマンドの操作内容部を生成するコマンド生成手段と、として機能させ
前記表示処理手段は、要素情報の分類ごとに設定された優先順位にしたがって前記操作内容を一覧として表示処理するテスト支援プログラム。
It is a test support program that generates a test script using commands that define the operation contents for the screen elements that make up the screen, and automates the screen operation test by playing the test script.
A computer, an element information acquisition means for acquiring element information related to screen elements,
A display processing means that displays and processes a list of operation contents that can be executed for the screen element to be operated based on the classification of the element information.
An operation content input means that accepts the selection of an arbitrary operation content from the operation content displayed as a list by the display processing means, and
It functions as a command generation means for generating an operation content part of a command based on the operation content selected by the operation content input means .
The display processing means is a test support program that displays and processes the operation contents as a list according to the priority set for each classification of element information .
画面を構成する画面要素に対する操作内容を定義したコマンドを用いてテストスクリプトを生成し、前記テストスクリプトの再生により画面の動作テストを自動化するテスト支援方法であって、
画面要素に関する要素情報を取得する要素情報取得ステップと、
前記要素情報の分類に基づいて、操作対象とする前記画面要素に対して実行可能な操作内容を一覧として表示処理する表示処理ステップと、
前記表示処理ステップにより一覧として表示処理された操作内容から任意の操作内容の選択を受け付ける操作内容入力ステップと、
前記操作内容入力ステップにより選択を受け付けた操作内容に基づいてコマンドの操作内容部を生成するコマンド生成ステップと、をコンピュータが実行し、
前記要素情報は、画面要素を識別する為に用いられる識別要素を含み、
前記表示処理ステップは、操作対象とする画面要素に定義された1以上の識別要素を一覧として表示処理し、
前記表示処理ステップにより一覧として表示処理された識別要素から任意の識別要素の選択を受け付ける識別要素入力ステップと、を前記コンピュータが更に実行し、
前記コマンド生成ステップは、前記識別要素入力ステップにより選択を受け付けた識別要素及び、識別要素に対して定義された要素値に基づいてコマンドの操作対象部を生成するテスト支援方法。
It is a test support method that automates the screen operation test by generating a test script using a command that defines the operation contents for the screen elements that make up the screen and playing the test script.
Element information acquisition step to acquire element information about screen elements,
A display processing step that displays and processes a list of operation contents that can be executed for the screen element to be operated based on the classification of the element information.
An operation content input step that accepts the selection of an arbitrary operation content from the operation content displayed as a list by the display processing step, and
The computer executes the command generation step of generating the operation content part of the command based on the operation content selected by the operation content input step .
The element information includes an identification element used to identify a screen element.
In the display processing step, one or more identification elements defined in the screen element to be operated are displayed as a list.
The computer further executes an identification element input step of accepting selection of an arbitrary identification element from the identification elements displayed as a list by the display processing step.
The command generation step is a test support method for generating an operation target portion of a command based on an identification element whose selection is accepted by the identification element input step and an element value defined for the identification element .
画面を構成する画面要素に対する操作内容を定義したコマンドを用いてテストスクリプトを生成し、前記テストスクリプトの再生により画面の動作テストを自動化するテスト支援方法であって、
画面要素に関する要素情報を取得する要素情報取得ステップと、
前記要素情報の分類に基づいて、操作対象とする前記画面要素に対して実行可能な操作内容を一覧として表示処理する表示処理ステップと、
前記表示処理ステップにより一覧として表示処理された操作内容から任意の操作内容の選択を受け付ける操作内容入力ステップと、
前記操作内容入力ステップにより選択を受け付けた操作内容に基づいてコマンドの操作内容部を生成するコマンド生成ステップと、をコンピュータが実行し、
前記表示処理ステップは、要素情報の分類ごとに設定された優先順位にしたがって前記操作内容を一覧として表示処理するテスト支援方法。
It is a test support method that automates the screen operation test by generating a test script using a command that defines the operation contents for the screen elements that make up the screen and playing the test script.
Element information acquisition step to acquire element information about screen elements,
A display processing step that displays and processes a list of operation contents that can be executed for the screen element to be operated based on the classification of the element information.
An operation content input step that accepts the selection of an arbitrary operation content from the operation content displayed as a list by the display processing step, and
The computer executes the command generation step of generating the operation content part of the command based on the operation content selected by the operation content input step .
The display processing step is a test support method for displaying and processing the operation contents as a list according to the priority set for each classification of element information .
JP2020075365A 2020-04-21 2020-04-21 Test support device, test support program, and test support method Active JP6830701B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020075365A JP6830701B1 (en) 2020-04-21 2020-04-21 Test support device, test support program, and test support method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020075365A JP6830701B1 (en) 2020-04-21 2020-04-21 Test support device, test support program, and test support method

Publications (2)

Publication Number Publication Date
JP6830701B1 true JP6830701B1 (en) 2021-02-17
JP2021174096A JP2021174096A (en) 2021-11-01

Family

ID=74562444

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020075365A Active JP6830701B1 (en) 2020-04-21 2020-04-21 Test support device, test support program, and test support method

Country Status (1)

Country Link
JP (1) JP6830701B1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7450187B2 (en) 2021-11-19 2024-03-15 バルテス・ホールディングス株式会社 Program, information processing method, and information processing device
JP7499429B1 (en) 2024-04-08 2024-06-13 エヌ・ティ・ティレゾナント・テクノロジー株式会社 Application remote control system, application execution control device, and application execution control method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5942009B1 (en) * 2015-03-31 2016-06-29 エヌ・ティ・ティ・コムウェア株式会社 Software test apparatus, software test method, and software test program

Also Published As

Publication number Publication date
JP2021174096A (en) 2021-11-01

Similar Documents

Publication Publication Date Title
RU2348964C2 (en) System and method for provision of notability of devices of user interface for application and user
US9047261B2 (en) Document editing method
US7917755B1 (en) Identification of localized web page element
CN101278252B (en) Method for providing function for user interface for a database application and the interface deployment method
US20040205570A1 (en) Test assisting program and test assisting method
JP5363355B2 (en) Method, system and program for copying and pasting selected display area of screen display using style elements
US11507497B2 (en) Methods and systems for automated testing using browser extension
JP6514084B2 (en) OPERATION SUPPORT SYSTEM, OPERATION SUPPORT METHOD, AND OPERATION SUPPORT PROGRAM
JP6830701B1 (en) Test support device, test support program, and test support method
US20100057770A1 (en) System and method of file management, and recording medium storing file management program
WO2015043352A1 (en) Method and apparatus for selecting test nodes on webpages
JP6206202B2 (en) Information processing apparatus and information processing program
TW200406692A (en) Semiconductor test data analysis system
CN111427760B (en) Page test method, device, equipment and storage medium
US20130091413A1 (en) Rich Data Label Formatting
US11526578B2 (en) System and method for producing transferable, modular web pages
CN112631571B (en) Linkage method and device for components in web editor
US20190179877A1 (en) Information processing system, control method, and storage medium
WO2015001721A1 (en) User-interface review method, device, and program
JP2021043479A (en) Information processing apparatus, control method and program
JP2009087289A (en) Document creation management system, terminal, server, document creation management method, and its program
US12019699B2 (en) Visual recorder for demonstrations of web-based software applications
JP6739599B1 (en) Information processing program, information processing method, and information processing apparatus
CN113821202B (en) Method, device and equipment for generating management software file and readable storage medium
JP6927340B2 (en) Operation recording program, operation recording method, operation recording device, operation playback program, operation playback method and operation playback device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200427

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20200427

A80 Written request to apply exceptions to lack of novelty of invention

Free format text: JAPANESE INTERMEDIATE CODE: A80

Effective date: 20200430

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20200605

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200916

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201006

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201022

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20210112

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210113

R150 Certificate of patent or registration of utility model

Ref document number: 6830701

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350