JP5324375B2 - Capture system - Google Patents

Capture system Download PDF

Info

Publication number
JP5324375B2
JP5324375B2 JP2009223852A JP2009223852A JP5324375B2 JP 5324375 B2 JP5324375 B2 JP 5324375B2 JP 2009223852 A JP2009223852 A JP 2009223852A JP 2009223852 A JP2009223852 A JP 2009223852A JP 5324375 B2 JP5324375 B2 JP 5324375B2
Authority
JP
Japan
Prior art keywords
screen
item
capture
confirmation
file
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.)
Expired - Fee Related
Application number
JP2009223852A
Other languages
Japanese (ja)
Other versions
JP2011076152A (en
Inventor
誠 辻野
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.)
Hitachi Solutions Ltd
Original Assignee
Hitachi Solutions Ltd
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 Hitachi Solutions Ltd filed Critical Hitachi Solutions Ltd
Priority to JP2009223852A priority Critical patent/JP5324375B2/en
Publication of JP2011076152A publication Critical patent/JP2011076152A/en
Application granted granted Critical
Publication of JP5324375B2 publication Critical patent/JP5324375B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、WebブラウザにWebアプリケーションが提供する画面のうち、テスト実行時に目視確認に必要な項目(確認項目)のみをキャプチャして画像ファイルとして保存するキャプチャシステムに関するものである。   The present invention relates to a capture system that captures only items (confirmation items) necessary for visual confirmation at the time of test execution among screens provided by a web application to a web browser and stores them as image files.

従来、Webアプリケーションの開発作用において、下記の特許文献1に開示されているように、テスト作業効率を向上させるためにテストを自動で実行するツール(以下、テスト自動化ツール)がある。
しかし、テスト自動化ツールでは操作を自動で行うことができるが、画面キャプチャやHTML(Hyper Text Markup Language)ソースなどのエビデンスを自動で取得することができない。
2. Description of the Related Art Conventionally, there is a tool (hereinafter referred to as a test automation tool) that automatically executes a test in order to improve the test work efficiency, as disclosed in Patent Document 1 below, in the Web application development action.
However, although the test automation tool can perform operations automatically, it cannot automatically acquire evidence such as screen capture and HTML (Hyper Text Markup Language) source.

下記の特許文献1では、操作の自動化に加え、各画面の表示内容を画像ファイルに保存する方法が開示されている。   In the following Patent Document 1, in addition to automation of operation, a method of saving display contents of each screen in an image file is disclosed.

特開2005−266954号公報JP 2005-266554 A

特許文献1の場合、Webアプリケーションが提供する画面全体のキャプチャを取得しているが、確認項目を定義したチェックリストに記述された内容から画面内のどこを確認すれば良いか判断することが困難である。
また、画面全体のキャプチャだと確認項目に対してスクロールバーが付加され、表示制御が行われている場合、項目の内容全体を確認することができないという問題がある。
In the case of Patent Document 1, a capture of the entire screen provided by the Web application is acquired, but it is difficult to determine where to check on the screen from the contents described in the check list defining the confirmation items. It is.
In addition, when the entire screen is captured, a scroll bar is added to the confirmation item, and there is a problem that the entire content of the item cannot be confirmed when display control is performed.

本発明の目的は、テストの自動実行時にキャプチャを取得する際に、チェックリストに定義された操作内容、確認内容から目視確認に必要な項目の表示内容のみをキャプチャし、キャプチャした画像と確認内容を紐付け画面上で目視確認できることを可能とするキャプチャシステムを提供することである。   The object of the present invention is to capture only the display contents of items necessary for visual confirmation from the operation contents and confirmation contents defined in the checklist when acquiring a capture during automatic execution of the test, and the captured image and confirmation contents It is to provide a capture system that makes it possible to visually check the image on the linking screen.

前期課題を解決するため、本発明は、WebブラウザにWebアプリケーションが提供する画面のうち画面上で目視確認が必要な項目の表示内容をキャプチャするキャプチャシステムであって、テストケース毎に画面上で確認が必要な項目と確認内容を定義したチェックリストを解析する解析手段と、Webアプリケーションが提供する画面のうち前記解析手段の解析結果に従い前記チェックリストに定義された特定の項目のみをキャプチャし、画像ファイルに格納するキャプチャ取得手段と、取得した画像ファイルと確認内容とを紐付けて確認画面ファイルを生成するキャプチャ取得結果生成手段と、前記キャプチャ取得結果生成手段で生成した確認画面ファイルの内容を表示するキャプチャ取得結果表示手段を備えること特徴とする。   In order to solve the problems in the previous period, the present invention is a capture system that captures display contents of items that require visual confirmation on a screen among screens provided by a web application to a web browser. Analyzing means for analyzing a checklist defining items to be confirmed and confirmation contents, and capturing only specific items defined in the checklist according to the analysis result of the analyzing means among the screens provided by the Web application, Capture acquisition means for storing in an image file, capture acquisition result generation means for generating a confirmation screen file by associating the acquired image file and confirmation contents, and contents of the confirmation screen file generated by the capture acquisition result generation means A capture acquisition result display means for displaying is provided.

本発明の画面項目キャプチャシステムによれば、次のような効果がある。
テスト対象の画面内を探すことなく目的の確認項目だけをキャプチャすることで確認作業の作業効率をあげることができる。
The screen item capture system of the present invention has the following effects.
Capturing only the desired confirmation items without searching the screen to be tested can increase the efficiency of confirmation work.

本発明の実施形態の一例を表すシステム構成図である。It is a system configuration figure showing an example of an embodiment of the present invention. 図1の実施形態の動作の概要を示すフローチャートである。It is a flowchart which shows the outline | summary of operation | movement of embodiment of FIG. 操作再生の要求を受け付ける画面の例を示す図である。It is a figure which shows the example of the screen which receives the request | requirement of operation reproduction. チェックリストのデータ構造の例を示す図である。It is a figure which shows the example of the data structure of a check list. 画面項目定義書のデータ構造の例を示す図である。It is a figure which shows the example of the data structure of a screen item definition document. 画面名称と画面項目定義書格納パスとの対応付けのデータ構造の例を示す図である。It is a figure which shows the example of the data structure of matching with a screen name and a screen item definition document storage path. 操作対象アプリの表示画面の例を示す図である。It is a figure which shows the example of the display screen of an operation target application. 操作制御手段の処理を示すフローチャートである。It is a flowchart which shows the process of an operation control means. チェックリスト解析手段の処理を示すフローチャートである。It is a flowchart which shows the process of a check list analysis means. 項目キャプチャ取得処理の全体を示すフローチャートである。It is a flowchart which shows the whole item capture acquisition process. 項目キャプチャ処理部分の処理を示すフローチャートである。It is a flowchart which shows the process of an item capture process part. キャプチャ対象の表示画面の例を示す図である。It is a figure which shows the example of the display screen of capture object. スクロールバーで制御されていない項目のキャプチャ画像の例を示す図である。It is a figure which shows the example of the capture image of the item which is not controlled by the scroll bar. スクロールバーで制御されている項目のキャプチャ画像の例を示す図である。It is a figure which shows the example of the capture image of the item controlled by the scroll bar. ログファイルのデータ構造の例を示す図である。It is a figure which shows the example of the data structure of a log file. キャプチャ取得結果生成手段の処理を示すフローチャートである。It is a flowchart which shows the process of a capture acquisition result production | generation means. キャプチャ取得結果の表示画面の例を示す図である。It is a figure which shows the example of the display screen of a capture acquisition result.

以下、本発明を適用したキャプチャシステムの一実施の形態について説明する。
図1は、本発明の実施形態の一例を示すシステム構成図である。
まず、WebブラウザによりWebサーバにアクセスし、Webページを表示する処理の概要について説明する。
エンドユーザによりクライアントマシン112の入力装置が操作されることにより、Webブラウザ112が起動され、インターネットやイントラネットなどのネットワーク120を経由し、サーバマシン130にアクセスされる。
Hereinafter, an embodiment of a capture system to which the present invention is applied will be described.
FIG. 1 is a system configuration diagram showing an example of an embodiment of the present invention.
First, an overview of processing for accessing a Web server by a Web browser and displaying a Web page will be described.
When the input device of the client machine 112 is operated by the end user, the Web browser 112 is activated, and the server machine 130 is accessed via the network 120 such as the Internet or an intranet.

一方、Webブラウザ113によりアクセスされるサーバマシン130には、Webサーバ131とアプリケーションサーバ135が備えられている。
Webサーバ131には、HTML言語で記述されたHTMLファイル132、画像ファイル133、HTML文書からレイアウト部分を取り出して定義したCSS(Cascading Style Sheet)などのレイアウト制御ファイル134など、静的なコンテンツが準備されている。
HTML文書から外部の画像ファイルを参照するように記述することにより、Webブラウザ113に画像が表示され、また、レイアウト制御ファイル134を参照するように記述することにより、レイアウトも制御可能となる。
アプリケーションサーバ135は、Webアプリケーション136を実行することにより、Webブラウザ113から送信された要求に対して、データベース137にアクセスしたりする処理を行い、処理結果をWebブラウザ113に返す。
例えば、Webブラウザ113により検索条件が入力されるとWebアプリケーション136は、入力された検索条件を元に、データベース137を検索し、検索結果を表示するためのHTMLを動的に生成する。
On the other hand, the server machine 130 accessed by the Web browser 113 includes a Web server 131 and an application server 135.
The Web server 131 is provided with static contents such as an HTML file 132 written in the HTML language, an image file 133, and a layout control file 134 such as a CSS (Cascading Style Sheet) defined by extracting a layout portion from an HTML document. Has been.
By describing the HTML document so as to refer to an external image file, the image is displayed on the Web browser 113, and by describing so as to refer to the layout control file 134, the layout can also be controlled.
The application server 135 executes a web application 136 to perform a process of accessing the database 137 in response to a request transmitted from the web browser 113, and returns a processing result to the web browser 113.
For example, when a search condition is input by the Web browser 113, the Web application 136 searches the database 137 based on the input search condition and dynamically generates HTML for displaying the search result.

以上のような各マシンおよび各アプリケーションの処理を前提として、本実施の形態に係るキャプチャシステムについて説明する。
本実施の形態に係るキャプチャシステム100は、操作再生部101とエビデンス記録部102の各処理部を備えている。
操作再生部101は、操作再生受付手段103と、操作制御手段104と、チェックリスト解析手段105とを備える。
操作再生受付手段103は、エンドユーザから操作対象画面に対するテスト実行の要求を受け付ける。
操作制御手段104は、操作対象画面に向かって操作の自動実行や各確認項目のキャプチャを取得する要求をキャプチャ取得手段106に送信する。
チェックリスト解析105は、エンドユーザが作成したチェックリストの内容を解析し、操作内容、確認内容を抽出する。
エビデンス記録部102は、キャプチャ取得手段106と、キャプチャ取得結果生成手段107と、キャプチャ取得結果表示手段108とを備える。
キャプチャ取得手段106は、チェックリスト解析105にて抽出した確認項目に基づき対象の項目部分のみキャプチャし、画像ファイル110として保存する。また、キャプチャ時にエビデンスを取得した記録を残すためにログファイル109を生成する。
キャプチャ取得結果生成手段107は、ログファイル109の内容から取得した画像ファイル110の内容とチェックリストに記述された確認内容とを紐付けて1つの結果ファイル111を生成する。
キャプチャ取得結果表示手段108は、結果ファイル111の内容をエンドユーザに表示する。
The capture system according to the present embodiment will be described on the premise of the processing of each machine and each application as described above.
The capture system 100 according to the present embodiment includes processing units such as an operation reproduction unit 101 and an evidence recording unit 102.
The operation reproduction unit 101 includes an operation reproduction accepting unit 103, an operation control unit 104, and a check list analysis unit 105.
The operation reproduction accepting unit 103 accepts a test execution request for the operation target screen from the end user.
The operation control unit 104 transmits a request for acquiring an automatic execution of an operation and a capture of each confirmation item toward the operation target screen to the capture acquisition unit 106.
The check list analysis 105 analyzes the contents of the check list created by the end user, and extracts operation contents and confirmation contents.
The evidence recording unit 102 includes a capture acquisition unit 106, a capture acquisition result generation unit 107, and a capture acquisition result display unit 108.
The capture acquisition means 106 captures only the target item portion based on the confirmation item extracted by the check list analysis 105 and stores it as an image file 110. In addition, a log file 109 is generated in order to leave a record of obtaining evidence at the time of capture.
The capture acquisition result generation unit 107 generates one result file 111 by associating the content of the image file 110 acquired from the content of the log file 109 with the confirmation content described in the check list.
The capture acquisition result display means 108 displays the contents of the result file 111 to the end user.

図2は、本実施形態のキャプチャシステムの処理の概要を示すフローチャートである。
まず、クライアントマシン112側でエンドユーザがテスト実行の要求を操作再生受付手段103に送信する(ステップ201)。
クライアントマシン112はテストケースの操作内容に基づき操作対象のアプリケーションの画面に対して自動で操作し、また必要な確認項目に関しては画面のキャプチャを取得しファイルに保存する(ステップ202)。
ステップ202で取得した画像ファイルの内容とエンドユーザが作成したチェックリストに記述されている確認内容とを紐付けてキャプチャ取得結果ファイルを生成する(ステップ203)。
最後に、キャプチャ取得結果ファイルの内容をエンドユーザに表示する(ステップ204)。
FIG. 2 is a flowchart showing an outline of processing of the capture system of the present embodiment.
First, on the client machine 112 side, the end user transmits a test execution request to the operation reproduction accepting means 103 (step 201).
The client machine 112 automatically operates the screen of the application to be operated based on the operation contents of the test case, and acquires a screen capture of necessary confirmation items and saves it in a file (step 202).
A capture acquisition result file is generated by associating the contents of the image file acquired in step 202 with the confirmation contents described in the check list created by the end user (step 203).
Finally, the contents of the capture acquisition result file are displayed to the end user (step 204).

図3は、エンドユーザがテスト実行要求を送信するための操作再生受付画面300である。
操作再生受付画面300では、自動実行対象のテストケースの一覧を表示するテストケース一覧表が表示されている。テストケース一覧表には、各テストケースの名前を表示する「テストケース名」列301と、該当するテストケースのチェックリストがどのファイルに書かれているか記述する「チェックリスト」列302と、テストケースのテスト実施状況を示す「状況」列303と、テストの実行日時を表す「実行日時」列304と、操作再生受付103にテスト実行の要求を送信するボタンが表示されている「テスト実行」列305から構成されている。
「状況」列303には、テスト実行中を表す文字列「running」、テスト実行要求待ちを表す「waiting」が表示されるものとする。
FIG. 3 shows an operation reproduction acceptance screen 300 for the end user to send a test execution request.
On the operation reproduction acceptance screen 300, a test case list for displaying a list of test cases to be automatically executed is displayed. The test case list includes a “test case name” column 301 that displays the name of each test case, a “check list” column 302 that describes in which file the check list of the corresponding test case is written, and a test “Test execution” in which a “status” column 303 indicating the test execution status of the case, an “execution date / time” column 304 indicating the test execution date / time, and a button for transmitting a test execution request to the operation reproduction reception 103 are displayed. It consists of a column 305.
In the “situation” column 303, a character string “running” indicating that the test is being executed and “waiting” indicating that the test execution request is waiting are displayed.

図4は、チェックリスト400の記述画面である。
チェックリスト400は、テストケースの名前を定義する「テストケース名」行401と、操作の内容を記述する「操作定義」列402から構成されている。
「テストケース名」行401には、テストケースの名前を1列に1つずつ記述する。
「操作定義」列402は、画面を一意に識別するための名前を記述する「画面名称」列403と、画面内の項目を一意に識別するための名前を記述する「項目名称」列404と、項目名称に対して具体的な操作や確認を記述する「操作種類」列405と、操作の概要や確認の概要を記述する「操作内容/確認内容」列406から構成されている。
チェックリスト400では、テストケースの名前と操作の定義の交わった箇所に「○」を記述して定義すると、定義した箇所のテストケースでは操作を実行するということを表す。
例えば、テストケース名「TC0001」で操作内容「ログインID「User001」を入力する」を実行したい場合、それぞれの行と列が交わった箇所に「○」と記述すればよい。また、操作および確認の実行順序は上から順に実行されるものとする。
FIG. 4 is a description screen of the check list 400.
The check list 400 includes a “test case name” row 401 that defines the name of the test case, and an “operation definition” column 402 that describes the contents of the operation.
In the “test case name” line 401, the names of test cases are described one by one in one column.
The “operation definition” column 402 includes a “screen name” column 403 that describes a name for uniquely identifying a screen, and an “item name” column 404 that describes a name for uniquely identifying an item in the screen. , An “operation type” column 405 describing a specific operation and confirmation for the item name, and an “operation content / confirmation content” column 406 describing an outline of the operation and an outline of confirmation.
The checklist 400 indicates that if a test case name and an operation definition intersect with each other and a “◯” is described and defined, the test case at the defined location executes the operation.
For example, when it is desired to execute the operation content “input login ID“ User001 ”” with the test case name “TC0001”, it is only necessary to describe “◯” at the intersection of each row and column. In addition, the execution order of operations and confirmations is executed in order from the top.

図5は、画面項目定義書500の記述画面の例を示す図である。
画面項目定義書500は、画面を一意に識別するためのIDを記述する画面ID欄501と、画面の日本語名称を記述する画面名称欄502と、ブラウザなど画面の左上に表示されるタイトルを記述する画面タイトル欄503と、画面内の項目の定義を記述する画面項目一覧表504から構成される。
画面項目一覧表504は、項目の番号を記述する「項番」列505と、項目を一意に識別するための名称を記述する「項目名称」列506と、項目のコントロール種別を記述する「種別」列507と、エンドユーザによってフィールドに値を入力される項目の最大となる入力バイト数を定義する「サイズ」列508と、エンドユーザが画面遷移した直後に表示する値を記述する「初期値」列509と、項目に対して操作を実行した際にイベントが発生し画面遷移する場合、遷移先の画面IDを記述する「遷移先画面ID」列510と、項目を一意に識別する値が設定された属性を記述する「属性名」列511と、属性名に設定されている値を記述する「属性値」列512から構成されている。
例えば、HTMLに<Input Type=“button” ID=“AttrButton1”>と記述されており、IDの値が画面内で一意に定義されていた場合、属性名には「ID」、属性値には「AttrButton1」と記述する。
FIG. 5 is a diagram illustrating an example of a description screen of the screen item definition document 500.
The screen item definition document 500 includes a screen ID field 501 describing an ID for uniquely identifying a screen, a screen name field 502 describing a Japanese name of the screen, and a title displayed on the upper left of the screen such as a browser. A screen title column 503 to be described and a screen item list 504 describing the definition of items in the screen are included.
The screen item list 504 includes an “item number” column 505 that describes an item number, an “item name” column 506 that describes a name for uniquely identifying the item, and a “type” that describes the control type of the item. ”Column 507,“ size ”column 508 defining the maximum number of input bytes of items whose values are input to the field by the end user, and“ initial value ”describing a value to be displayed immediately after the end user makes a screen transition ”Column 509, when an event occurs when an operation is performed on an item and a screen transition occurs, a“ transition destination screen ID ”column 510 describing a screen ID of the transition destination, and a value uniquely identifying the item An “attribute name” column 511 describing a set attribute and an “attribute value” column 512 describing a value set in the attribute name are included.
For example, when <Input Type = “button” ID = “AttrButton 1”> is described in HTML, and the ID value is uniquely defined in the screen, “ID” is used for the attribute name, and “ID” is used for the attribute value. It is described as “AttrButton 1”.

図6は、画面名称と画面項目定義書の関連付けを表した対応表600の例を示す図である。
対応表600には、対応付けの番号を表す「項番」列601と、画面名称を記述する「画面名称」列602と、画面名称に対する項目の定義が記述されているファイルの格納場所を記述する「画面項目定義書格納パス」列603から構成されている。
対応表600に記述した内容はチェックリスト400に記述した画面名称から画面項目定義書500に記述した項目情報を取得するために使用される。
FIG. 6 is a diagram showing an example of a correspondence table 600 that shows the association between screen names and screen item definition documents.
In the correspondence table 600, an “item number” column 601 indicating a correspondence number, a “screen name” column 602 describing a screen name, and a storage location of a file in which item definitions for the screen name are described are described. The “screen item definition document storage path” column 603 includes:
The contents described in the correspondence table 600 are used to acquire item information described in the screen item definition document 500 from the screen names described in the check list 400.

図7は、操作対象のWebアプリケーションの表示画面の例を示す図であり、ここでは画面項目定義書500に記述した内容をWebブラウザ113で表示したときのログイン画面700を示している。
ログイン画面700は、ユーザID入力欄701と、パスワード入力欄702と、ログインボタン703を有しており、Webページのタイトル704として、「Login」が表示されている。
FIG. 7 is a diagram showing an example of the display screen of the Web application to be operated. Here, a login screen 700 when the contents described in the screen item definition document 500 are displayed on the Web browser 113 is shown.
The login screen 700 has a user ID input field 701, a password input field 702, and a login button 703, and “Login” is displayed as the title 704 of the Web page.

図8は、操作制御手段104の処理を示すフローチャートである。
まず、操作再生受付画面300のチェックリスト欄に入力されたファイルパスにアクセスし、チェックリストを解析する(ステップ801)。
項目の操作もしくは確認を実行する前に画面をアクティブにする(ステップ802)。
次に、項目に対して操作を実行するのか判定する(ステップ803)。項目に対して操作を実行する場合、項目の操作を実行する(ステップ804)。項目に対して操作を実行しない場合、項目のキャプチャを取得する(ステップ805)。
次に、テストケースで実行する操作および項目のキャプチャを全て実行したか判定する(ステップ806)。全ての操作および項目のキャプチャを取得していない場合、直前の操作もしくはキャプチャ処理を行うことで画面遷移が発生したか判定をする(ステップ807)。
画面遷移が発生した場合、ステップ802から再度処理を開始する。
画面遷移が発生しない場合、ステップ803から再度処理を開始する。
全ての操作および項目のキャプチャを取得した場合、キャプチャ取得結果ファイルを生成する(ステップ808)。
FIG. 8 is a flowchart showing the processing of the operation control unit 104.
First, the file path input in the check list field of the operation reproduction acceptance screen 300 is accessed, and the check list is analyzed (step 801).
The screen is activated before the item operation or confirmation is executed (step 802).
Next, it is determined whether an operation is performed on the item (step 803). When performing an operation on an item, the operation of the item is executed (step 804). If no operation is performed on the item, a capture of the item is acquired (step 805).
Next, it is determined whether all operations and item captures to be executed in the test case have been executed (step 806). If capture of all operations and items has not been acquired, it is determined whether a screen transition has occurred by performing the previous operation or capture processing (step 807).
If a screen transition occurs, the process starts again from step 802.
If no screen transition occurs, the process starts again from step 803.
When captures of all operations and items are acquired, a capture acquisition result file is generated (step 808).

図9は、チェックリスト解析手段の処理を示すフローチャートである。
まず、操作再生受付画面300のチェックリスト欄に入力したチェックリストのファイルパスにアクセスし、チェックリストを開く(ステップ901)。
次に、テストケースを実行した際の画面遷移情報を抽出する(ステップ902)。
次に、抽出した各画面の操作情報および確認情報を抽出する(ステップ903)。
ステップ903で抽出する操作情報および確認情報には、チェックリスト400に記述される画面名称、項目名称、操作種別、操作内容/確認内容、画面項目定義書500に記述される画面タイトル、種別、属性名、属性値の情報が含まれている。また、チェックリスト解析時に抽出した画面遷移情報および操作情報(操作種別、操作内容)は、操作制御手段104にて項目のキャプチャ要求を画面キャプチャ取得手段106に送信するタイミングを計る際に使用され、確認情報(操作種別、確認内容、種別、属性名、属性値)はキャプチャの要求を画面キャプチャ取得手段106に送信する際に使用される。
FIG. 9 is a flowchart showing the processing of the check list analysis means.
First, the checklist file path entered in the checklist field of the operation reproduction acceptance screen 300 is accessed to open the checklist (step 901).
Next, screen transition information when the test case is executed is extracted (step 902).
Next, the extracted operation information and confirmation information of each screen are extracted (step 903).
The operation information and confirmation information extracted in step 903 include the screen name, item name, operation type, operation content / confirmation content described in the check list 400, and the screen title, type, and attribute described in the screen item definition document 500. Name and attribute value information is included. The screen transition information and operation information (operation type and operation content) extracted during the checklist analysis are used when the operation control unit 104 measures the timing for transmitting an item capture request to the screen capture acquisition unit 106. The confirmation information (operation type, confirmation content, type, attribute name, attribute value) is used when a capture request is transmitted to the screen capture acquisition means 106.

図10は、項目キャプチャ取得の全体の処理を示すフローチャートである。
まず、様々な画面が表示されている中からキャプチャ対象の項目が表示されている画面を検索する(ステップ1001)。
画面の検索をする際は、画面の左上に表示されるタイトルをキーにして検索をする。そして、キャプチャ対象の画面からHTML文書を取得する(ステップ1002)。
フレーム構成のWebページの場合は、キャプチャ対象の項目が表示されている領域のHTML文書を取得する。具体的には、HTML文書内の<Frameset>タグの中の<Frame>タグの内容をDOM(Document Object Model)のAPI(Application Program Interface)を使用して取得する。
本処理および以降の処理では、各要素の情報を利用するときは、DOMのAPIを利用するのもとする。
FIG. 10 is a flowchart showing the overall processing of item capture acquisition.
First, a screen on which an item to be captured is displayed is searched from various screens displayed (step 1001).
When searching the screen, the search is performed using the title displayed at the upper left of the screen as a key. Then, an HTML document is acquired from the screen to be captured (step 1002).
In the case of a Web page having a frame configuration, an HTML document in an area where an item to be captured is displayed is acquired. Specifically, the content of the <Frame> tag in the <Frameset> tag in the HTML document is acquired using an API (Application Program Interface) of DOM (Document Object Model).
In this process and the subsequent processes, when using the information of each element, the DOM API is also used.

次にWebページの表示領域の縦幅および横幅を取得する(ステップ1003)。この処理では、「Body」要素が持つ「ClientHeight」の情報からWebページの高さを、「ClientWidth」の情報からWebページの幅を取得する。
次に、Webページ内でキャプチャ対象の項目を検索する(ステップ1004)。項目を検索する際は、画面項目定義書に記述された種別、属性名、属性値の設定内容を基に検索を行う。例えば、種別が「EditBox」、属性名が「ID」、属性値が「attrUser」とキャプチャ対象の項目が定義されていた場合、本システムでは<Input Type=“Text”>タグの属性が「ID=“attrUser”」と設定されている要素を検索する。
Next, the vertical width and horizontal width of the display area of the Web page are acquired (step 1003). In this process, the height of the Web page is acquired from the information of “ClientHeight” included in the “Body” element, and the width of the Web page is acquired from the information of “ClientWidth”.
Next, an item to be captured is searched in the Web page (step 1004). When searching for an item, the search is performed based on the type, attribute name, and attribute value settings described in the screen item definition document. For example, if the item to be captured is defined with the type “EditBox”, the attribute name “ID”, and the attribute value “attrUser”, the attribute of the <Input Type = “Text”> tag is “ID” in this system. = Search for an element set as “attrUser”.

この後、ステップ1004で検索した要素の表示位置を取得する(ステップ1005)。この処理ではキャプチャ対象の要素から「Body」要素までの「OffsetLeft」、「OffsetTop」の情報から表示位置を取得する。
次に、キャプチャ対象の項目の表示領域を取得する(ステップ1006)。ステップ1004で検索した要素が持つ「ClientHeight」の情報から項目の高さを、「ClientWidth」の情報から項目の幅を取得する。キャプチャ対象の項目全体の縦幅および横幅を取得する(ステップ1007)。この処理では、ステップ1004で検索した要素が持つ「ScrollHeight」の情報から項目の高さを、「ScrollWidth」の情報から項目の幅を取得する。
Thereafter, the display position of the element searched in step 1004 is acquired (step 1005). In this process, the display position is acquired from the information of “OffsetLeft” and “OffsetTop” from the element to be captured to the “Body” element.
Next, the display area of the item to be captured is acquired (step 1006). The height of the item is acquired from the information of “ClientHeight” included in the element searched in step 1004, and the width of the item is acquired from the information of “ClientWidth”. The vertical width and horizontal width of the entire item to be captured are acquired (step 1007). In this process, the height of the item is acquired from the information of “ScrollHeight” included in the element searched in step 1004, and the width of the item is acquired from the information of “ScrollWidth”.

次に、Webページの表示内容をキャプチャ対象の項目が表示されるようにWebページのスクロールバーを移動する(ステップ1008)。スクロールバーの操作は「Body」要素が持つ「ScrollLeft」、「ScrollTop」の値にステップ1005で取得したキャプチャ対象の項目の位置情報を設定することでスクロールバーが移動する。
次に、Webページの左上からの項目の表示位置を取得する(ステップ1009)。この処理は、キャプチャ対象の項目の表示位置の情報から「Body」要素が持つ「ScrollLeft」、「ScrollTop」の値を引いて求める。また、Webページがフレーム構成であった場合、確認項目が表示されているフレームの表示位置の値を足す必要がある。
ステップ1001からステップ1009で求めた項目の情報を基にキャプチャ処理を行う(ステップ1010)。ステップ1010の詳細については図11で説明する。
Next, the scroll bar of the Web page is moved so that the item to be captured is displayed as the display content of the Web page (step 1008). As for the operation of the scroll bar, the position of the item to be captured acquired in step 1005 is set to the values of “ScrollLeft” and “ScrollTop” of the “Body” element, thereby moving the scroll bar.
Next, the display position of the item from the upper left of the Web page is acquired (step 1009). This process is obtained by subtracting the values of “ScrollLeft” and “ScrollTop” of the “Body” element from the display position information of the item to be captured. If the Web page has a frame configuration, it is necessary to add the value of the display position of the frame in which the confirmation item is displayed.
Capture processing is performed based on the item information obtained in steps 1001 to 1009 (step 1010). Details of step 1010 will be described with reference to FIG.

図11は、項目キャプチャ処理部分の詳細を示すフローチャートである。
まず、キャプチャ対象の項目がスクロールバーにて制御可能である場合、項目に付属のスクロールバーを最下位、右端に移動する(ステップ1101)。スクロールバーの制御は要素の持つ「ScrollLeft」、「ScrollTop」に「ScrollWidth」、「ScrollHeight」の値を設定することで移動することができる。
次に、Webブラウザ113に表示されている項目のキャプチャ処理を行い、画像を取得し(ステップ1102)、取得した画像データをメモリや一時ファイルなどの一時領域に保存する(ステップ1103)。この場合の画像取得では、例としてOS(Operating System)のキャプチャ機能を利用する。
FIG. 11 is a flowchart showing details of the item capture processing portion.
First, when the item to be captured is controllable with a scroll bar, the scroll bar attached to the item is moved to the lowest position and the right end (step 1101). The scroll bar can be controlled by setting the values of “ScrollWidth” and “ScrollHeight” to “ScrollLeft” and “ScrollTop” of the element.
Next, capture processing of items displayed on the Web browser 113 is performed to acquire an image (step 1102), and the acquired image data is stored in a temporary area such as a memory or a temporary file (step 1103). In the image acquisition in this case, an OS (Operating System) capture function is used as an example.

Webページの表示領域の横幅が項目の表示領域の横幅より大きい場合、項目の表示領域の横幅全てをキャプチャしたか判定する(ステップ1104)。
項目の横幅を全てキャプチャした場合、Webページの水平スクロールバーのみ項目の表示位置に動かす(ステップ1105)。
項目の横幅を全てキャプチャしていない場合、Webページの水平スクロールバーをWebページの表示領域分、右方向へ移動する(ステップ1106)。
Webページの表示領域の縦幅が項目の表示領域の縦幅より大きい場合、項目の表示領域の縦幅全てをキャプチャしたか判定する(ステップ1107)。
If the width of the display area of the Web page is larger than the width of the item display area, it is determined whether the entire width of the item display area has been captured (step 1104).
When the entire width of the item is captured, only the horizontal scroll bar of the Web page is moved to the item display position (step 1105).
If the entire width of the item has not been captured, the horizontal scroll bar of the Web page is moved to the right by the display area of the Web page (step 1106).
If the vertical width of the display area of the Web page is larger than the vertical width of the item display area, it is determined whether the entire vertical width of the item display area has been captured (step 1107).

項目の縦幅を全てキャプチャした場合、Webページの垂直スクロールバーのみ項目の表示位置に動かす(ステップ1108)。
項目の縦幅を全てキャプチャしていない場合、Webページの垂直スクロールバーをWebページの表示領域分、下方向へ移動する(ステップ1109)。
キャプチャ対象の項目全体のうち横方向の表示内容を全てキャプチャしたか判定する(ステップ1110)。
項目の横方向の表示内容を全てキャプチャした場合、項目に付属の水平スクロールバーを右端へ移動する(ステップ1111)。
項目の横方向の表示内容を全てキャプチャしていない場合、項目に付属の水平スクロールバーを項目の表示領域分、左方向に移動する(ステップ1112)。
When all the vertical widths of the items are captured, only the vertical scroll bar of the Web page is moved to the item display position (step 1108).
If all the vertical widths of the items have not been captured, the vertical scroll bar of the Web page is moved downward by the display area of the Web page (step 1109).
It is determined whether all the display contents in the horizontal direction have been captured among all items to be captured (step 1110).
When all the display contents in the horizontal direction of the item are captured, the horizontal scroll bar attached to the item is moved to the right end (step 1111).
If not all the display contents in the horizontal direction of the item are captured, the horizontal scroll bar attached to the item is moved leftward by the display area of the item (step 1112).

キャプチャ対象の項目全体のうち縦方向の表示内容を全てキャプチャしたか判定する(ステップ1113)。
項目の縦方向の表示内容を全てキャプチャした場合、一時領域に保存した画像データを合成して、キャプチャ対象の項目全体を示す画像ファイルを生成する(ステップ1114)。
項目の縦方向の表示内容を全てキャプチャしていない場合、項目に付属の垂直スクロールバーを項目の表示領域分、上方向に移動する(ステップ1115)。
It is determined whether all the display contents in the vertical direction among the items to be captured have been captured (step 1113).
When all the vertical display contents of the items are captured, the image data stored in the temporary area is synthesized to generate an image file indicating the entire items to be captured (step 1114).
If not all the vertical display contents of the item have been captured, the vertical scroll bar attached to the item is moved upward by the display area of the item (step 1115).

図12は、項目のキャプチャ取得対象となるWebページ1200の一例を示す図である。
Webページ1200は、会員種別を選択するコンボボックス1201と、検索結果表示部1202と、ログアウトボタン1203が表示されている。
検索結果表示部1202は、コンボボックス1201を選択することで該当する会員の一覧を表示し、一覧が表示領域に全て表示できない場合、縦、横ともにスクロールバーが表示される。また、Webページの表示サイズによって縦、横のスクロールバーが表示される。
FIG. 12 is a diagram illustrating an example of a Web page 1200 that is an item capture acquisition target.
The web page 1200 displays a combo box 1201 for selecting a member type, a search result display unit 1202, and a logout button 1203.
The search result display unit 1202 displays a list of corresponding members by selecting the combo box 1201. When the list cannot be displayed in the display area, scroll bars are displayed both vertically and horizontally. Also, vertical and horizontal scroll bars are displayed depending on the display size of the Web page.

図13は、コンボボックス1201をキャプチャしたときの画像取得結果1300である。   FIG. 13 shows an image acquisition result 1300 when the combo box 1201 is captured.

図14は、検索結果表示部1201をキャプチャしたときの画像取得結果1400である。キャプチャした画像はWebページおよび検索結果表示部の表示領域のサイズおよび表示位置、スクロールバーの表示有無や位置の情報から項目の表示内容毎の画像を一時ファイルに保存する。最後に取得した画像を合成し、一つのファイルとして生成することで項目全体のキャプチャを取得することを可能としている。   FIG. 14 shows an image acquisition result 1400 when the search result display unit 1201 is captured. The captured image is stored in a temporary file for each display content of the item based on the size and display position of the display area of the Web page and the search result display unit, the display presence / absence of the scroll bar, and position information. It is possible to capture the entire item by combining the last acquired images and generating them as one file.

図15は、画像ファイル110の生成記録を残すためのログファイル1500である。
ログファイル1500では、ファイルを生成した日時を表す生成日時1501と、画像ファイル110の出力先のフォルダを表す出力先フォルダ1502と、生成したファイルの名前を表すファイル名1503と、画像ファイル110に対して確認する内容を表す確認内容1504から構成されている。
FIG. 15 shows a log file 1500 for keeping the generation record of the image file 110.
In the log file 1500, a generation date and time 1501 indicating the date and time when the file was generated, an output destination folder 1502 indicating the output destination folder of the image file 110, a file name 1503 indicating the name of the generated file, and the image file 110 are stored. Confirmation contents 1504 representing the contents to be confirmed.

図16は、キャプチャ取得結果生成手段107の処理を示すフローチャートである。
まず、ログファイル1500の内容を解析し、画像ファイル110と取得した画像に対する確認内容を取得する(ステップ1601)。画像ファイル110と確認内容を1つの画面内で表示するようにファイルに出力する(ステップ1602)。
FIG. 16 is a flowchart showing the processing of the capture acquisition result generation unit 107.
First, the contents of the log file 1500 are analyzed, and the confirmation contents for the image file 110 and the acquired image are acquired (step 1601). The image file 110 and the confirmation content are output to a file so as to be displayed on one screen (step 1602).

図17は、キャプチャ取得結果ファイル111の表示画面1700の一例を示す図である。
キャプチャ取得結果画面1700は、取得した画像を表示する「キャプチャ画像」列1701と、図4のチェックリスト400に記述した確認内容を表示する「確認内容」列1702と、一つ先の画像と確認内容を表示するための「次へ」ボタン1703と、一つ前の画像と確認内容を表示するための表示するための「前へ」ボタン1704から構成されている。画像と確認内容の表示はログファイル1500に記録された順に表示される。
FIG. 17 is a diagram showing an example of the display screen 1700 of the capture acquisition result file 111. As shown in FIG.
The capture acquisition result screen 1700 includes a “capture image” column 1701 for displaying the acquired image, a “confirmation content” column 1702 for displaying the confirmation content described in the check list 400 of FIG. A “next” button 1703 for displaying the contents and a “previous” button 1704 for displaying the previous image and the confirmation contents are configured. Images and confirmation contents are displayed in the order recorded in the log file 1500.

以上のように、本実施の形態のキャプチャシステムによれば、次のような効果がある。
テスト対象の画面内を探すことなく目的の確認項目だけをキャプチャすることで確認作業の作業効率をあげることができる。
As described above, the capture system according to the present embodiment has the following effects.
Capturing only the desired confirmation items without searching the screen to be tested can increase the efficiency of confirmation work.

100…キャプチャシステム、101・・・操作再生部、103…操作再生受付手段、104…操作制御手段、105…チェックリスト解析手段、102…エビデンス記録部、106…キャプチャ取得手段、107…キャプチャ取得結果生成手段、108…キャプチャ取得結果表示手段、109…ログファイル、110…画像ファイル、111…結果ファイル、112…クライアントマシン、113…Webブラウザ、120…ネットワーク、130…サーバマシン、131…Webサーバ、132…HTMLファイル、133…画像ファイル、134…レイアウト制御ファイル、135…アプリケーションサーバ、136…Webアプリケーション、137…データベース。 DESCRIPTION OF SYMBOLS 100 ... Capture system, 101 ... Operation reproduction | regeneration part, 103 ... Operation reproduction | regeneration reception means, 104 ... Operation control means, 105 ... Check list analysis means, 102 ... Evidence recording part, 106 ... Capture acquisition means, 107 ... Capture acquisition result Generation means 108 ... Capture acquisition result display means 109 109 log file 110 image file 111 result file 112 client machine 113 web browser 120 network 130 server machine 131 web server 132 ... HTML file, 133 ... Image file, 134 ... Layout control file, 135 ... Application server, 136 ... Web application, 137 ... Database.

Claims (1)

WebブラウザにWebアプリケーションが提供する画面のうち画面上で目視確認が必要な項目の表示内容をキャプチャするキャプチャシステムであって、テストケース毎に画面上で確認が必要な項目と確認内容を定義したチェックリストを解析する解析手段と、Webアプリケーションが提供する画面のうち前記解析手段の解析結果に従い前記チェックリストに定義された特定の項目のみをキャプチャし、画像ファイルに格納するキャプチャ取得手段と、取得した画像ファイルと確認内容とを紐付けて確認画面ファイルを生成するキャプチャ取得結果生成手段と、前記キャプチャ取得結果生成手段で生成した確認画面ファイルの内容を表示するキャプチャ取得結果表示手段を備えること特徴とするキャプチャシステム。   A capture system that captures the display contents of items that require visual confirmation on the screen among the screens provided by the web application to the web browser, and the items that need confirmation on the screen and the confirmation contents are defined for each test case Analysis means for analyzing the checklist, capture acquisition means for capturing only the specific items defined in the checklist according to the analysis result of the analysis means in the screen provided by the Web application, and storing the captured items in an image file, and acquisition A capture acquisition result generation means for generating a confirmation screen file by associating the image file and the confirmation content, and a capture acquisition result display means for displaying the content of the confirmation screen file generated by the capture acquisition result generation means And capture system.
JP2009223852A 2009-09-29 2009-09-29 Capture system Expired - Fee Related JP5324375B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009223852A JP5324375B2 (en) 2009-09-29 2009-09-29 Capture system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009223852A JP5324375B2 (en) 2009-09-29 2009-09-29 Capture system

Publications (2)

Publication Number Publication Date
JP2011076152A JP2011076152A (en) 2011-04-14
JP5324375B2 true JP5324375B2 (en) 2013-10-23

Family

ID=44020111

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009223852A Expired - Fee Related JP5324375B2 (en) 2009-09-29 2009-09-29 Capture system

Country Status (1)

Country Link
JP (1) JP5324375B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012042560A1 (en) * 2010-09-28 2012-04-05 株式会社野村総合研究所 Image acquisition device, image acquisition method, and computer program
JP6003676B2 (en) * 2013-01-25 2016-10-05 富士通株式会社 Evidence output program and proof output device
JP6491959B2 (en) * 2015-06-03 2019-03-27 新日鉄住金ソリューションズ株式会社 Information processing apparatus, information processing method, and program
JP6528646B2 (en) * 2015-10-29 2019-06-12 富士通株式会社 Operation reproduction program, operation reproduction apparatus and operation reproduction method
US20210286709A1 (en) * 2017-05-15 2021-09-16 Mitsubishi Electric Corporation Screen test apparatus and computer readable medium
WO2022107203A1 (en) * 2020-11-17 2022-05-27 三菱電機株式会社 Screen capture device, and screen capture method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3627144B2 (en) * 2001-09-20 2005-03-09 株式会社半導体先端テクノロジーズ COMMUNICATION TEST SUPPORT DEVICE, PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
JP2005266954A (en) * 2004-03-16 2005-09-29 Hitachi Software Eng Co Ltd Operation information recording/reproduction apparatus
JP2009169731A (en) * 2008-01-17 2009-07-30 Hitachi Systems & Services Ltd Manual creation support system

Also Published As

Publication number Publication date
JP2011076152A (en) 2011-04-14

Similar Documents

Publication Publication Date Title
JP5324375B2 (en) Capture system
JP4140916B2 (en) Method for analyzing state transition in web page
US9015144B2 (en) Configuring web crawler to extract web page information
JP5066499B2 (en) Web application operation procedure manual generation system
US8010500B2 (en) Method and system for capturing image of web site, managing information of web site, and providing image of web site
RU2010153781A (en) METHOD FOR RECODING AND DISPLAYING DOCUMENTS, SERVER AND DEVICE FOR THEIR PERFORMANCE
CN106598991A (en) Web crawler system capable of realizing website interaction and automatic form extraction by conversational mode
JP5136087B2 (en) Client device and client control program
JP2005266954A (en) Operation information recording/reproduction apparatus
US10963274B2 (en) Dynamic help system using HTML based application framework
JP5858479B2 (en) Terminal device and program
JP2001109741A (en) Method and system for preparing html data
JP6830701B1 (en) Test support device, test support program, and test support method
JP6729166B2 (en) Information processing device and program
JP4903279B2 (en) Operation verification apparatus, operation verification method, and operation verification program
US20050216857A1 (en) Information processing technique to support browsing
JP2013037580A (en) Information processor
JP2001134610A (en) Method for specifying browser display content
US20220244975A1 (en) Method and system for generating natural language content from recordings of actions performed to execute workflows in an application
JP5303967B2 (en) Typesetting device, typesetting method, and typesetting processing program
JP4662364B2 (en) Internet service inquiry program, internet service inquiry method, and client computer having internet service inquiry function
JP2017004208A (en) Test support device and test support method
JP5339456B2 (en) Event log extraction method, apparatus and program thereof
JP5137931B2 (en) Web page diagnostic result management system, web page diagnostic result management method and program
JP5026068B2 (en) Information collection system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120106

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130710

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: 20130716

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130718

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees