JP2017162182A - Test device, test method, and test program - Google Patents

Test device, test method, and test program Download PDF

Info

Publication number
JP2017162182A
JP2017162182A JP2016045974A JP2016045974A JP2017162182A JP 2017162182 A JP2017162182 A JP 2017162182A JP 2016045974 A JP2016045974 A JP 2016045974A JP 2016045974 A JP2016045974 A JP 2016045974A JP 2017162182 A JP2017162182 A JP 2017162182A
Authority
JP
Japan
Prior art keywords
web browser
display content
test
unit
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2016045974A
Other languages
Japanese (ja)
Other versions
JP6645276B2 (en
Inventor
恒 小峰
Hisashi Komine
恒 小峰
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2016045974A priority Critical patent/JP6645276B2/en
Publication of JP2017162182A publication Critical patent/JP2017162182A/en
Application granted granted Critical
Publication of JP6645276B2 publication Critical patent/JP6645276B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To detect, on a web page that dynamically changes the content of display without involving a transition of the web page, a timing at which an operation on the web page can be executed.SOLUTION: A test program causes a computer to execute processing to detect page transition according to HTTP response with a web browser, determine, after the page transition and after the content of display on the web browser is changed, a break of the page when the content of display on the web browser is not changed for a predetermined period, and execute a predetermined test operation on the web browser according to the break.SELECTED DRAWING: Figure 3

Description

本発明は、テスト装置、テスト方法、及びテストプログラムに関する。   The present invention relates to a test apparatus, a test method, and a test program.

従来、Webサイトのテストでは、Webブラウザに所定の入力操作を行い、画面の遷移が期待通りであるか否かが確認される。また、従来、このテストを自動で行うテストツールが知られている。このテストツールでは、ユーザによる入力値や操作がシナリオとして記録され、当該シナリオに従って、各Webページへの入力操作が自動で行われる。   Conventionally, in a Web site test, a predetermined input operation is performed on a Web browser to check whether or not the screen transition is as expected. Conventionally, a test tool for automatically performing this test is known. In this test tool, an input value and an operation by a user are recorded as a scenario, and an input operation to each Web page is automatically performed according to the scenario.

このテストツールでは、シナリオに記録された入力値を、各Webページに正しく入力するために、Webブラウザが各Webページの遷移を完了したタイミングを正しく検知する必要がある。   In this test tool, in order to correctly input the input value recorded in the scenario to each Web page, it is necessary to correctly detect the timing when the Web browser completes the transition of each Web page.

一般的なWebブラウザでは、Webページの遷移や再読み込みによるWebページの読み込みが完了したことを、イベントとして他のプログラムに通知する機能がある。従って、この機能を用いれば、テストツールは、Webページが遷移したことを検出できる。   A general Web browser has a function of notifying another program as an event that a Web page has been read by Web page transition or reloading. Therefore, if this function is used, the test tool can detect that the Web page has changed.

特開2013−045215号公報JP 2013-045215 A

しかしながら、従来技術では、Webブラウザは、AjaxやJavaScript(登録商標)等によりWebページの遷移を伴わずに動的に表示内容が変化する場合、画面の表示の変化が完了したことを検出できない。そのため、テストツールは、Webページの遷移を伴わずに動的に表示内容が変化するWebページに対して、シナリオに記録された入力操作を、正しく入力できない場合があるという問題がある。   However, in the conventional technology, the Web browser cannot detect that the change in the display on the screen has been completed when the display content dynamically changes without the transition of the Web page due to Ajax, JavaScript (registered trademark), or the like. Therefore, there is a problem that the test tool may not be able to correctly input the input operation recorded in the scenario with respect to the Web page whose display contents dynamically change without accompanying the Web page transition.

そこで、一側面では、Webページの遷移を伴わずに動的に表示内容を変化させるWebページにおいて、当該Webページにおける操作を実行可能なタイミングを検知可能とすることを目的とする。   In view of this, an object of one aspect is to make it possible to detect a timing at which an operation on a Web page can be executed in a Web page that dynamically changes display contents without causing a transition of the Web page.

一つの案では、コンピュータに、WebブラウザによりHTTPレスポンスに応じたページ遷移を検知し、前記ページ遷移後に、前記Webブラウザにおける表示内容が変化した後、所定の期間、前記Webブラウザにおける表示内容が変化しなかった場合にページの区切りを判定し、前記Webブラウザに対し、前記区切りに応じた所定のテスト操作を実行する、処理を実行させる。   In one proposal, a page transition according to an HTTP response is detected by a web browser on a computer, and after the page transition, the display content in the web browser changes, and then the display content in the web browser changes for a predetermined period. If not, the page break is determined, and the Web browser is caused to execute a predetermined test operation corresponding to the break.

一側面によれば、Webページの遷移を伴わずに動的に表示内容を変化させるWebページにおいて、当該Webページにおける操作を実行可能なタイミングを検知することが可能となる。   According to one aspect, it is possible to detect a timing at which an operation on a Web page can be performed on a Web page that dynamically changes display content without causing a transition of the Web page.

実施形態におけるテストシステムの構成例を示す図である。It is a figure which shows the structural example of the test system in embodiment. 実施形態における情報端末のハードウェア構成例を示す図である。It is a figure which shows the hardware structural example of the information terminal in embodiment. 実施形態における情報端末の機能ブロック図である。It is a functional block diagram of the information terminal in an embodiment. シナリオデータの一例を示す図である。It is a figure which shows an example of scenario data. 画面区切りデータの一例を示す図である。It is a figure which shows an example of screen separation data. テスト処理部による処理を説明する図である。It is a figure explaining the process by a test process part. テスト時の処理の一例を示すフローチャートである。It is a flowchart which shows an example of the process at the time of a test. 画面区切り判定処理の一例を示すフローチャートである。It is a flowchart which shows an example of a screen break determination process. 除外データの一例を示す図である。It is a figure which shows an example of exclusion data. 互換表示モード対応処理の一例を示すフローチャートである。It is a flowchart which shows an example of a compatible display mode corresponding | compatible process.

以下、図面に基づいて本発明の実施形態を説明する。図1は、本発明の実施形態におけるテストシステムの構成例を示す図である。図1において、テストシステム1は、情報端末(テスト装置)10、及び業務サーバ20を含む。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a diagram illustrating a configuration example of a test system according to an embodiment of the present invention. In FIG. 1, the test system 1 includes an information terminal (test device) 10 and a business server 20.

情報端末10と業務サーバ20とは、インターネット等の通信回線によって通信可能に接続される。   The information terminal 10 and the business server 20 are communicably connected via a communication line such as the Internet.

情報端末10は、例えば、PC(Personal Computer)、タブレット型端末、スマートフォン等の端末である。情報端末10には、テストツールがインストールされる。このテストツールは、例えばWebブラウザ(ブラウザ部13)を用いて業務サーバ20のWebページにアクセスし、業務サーバ20から取得したデータが、予め設定された期待値と一致しているかのテストを行う。   The information terminal 10 is a terminal such as a PC (Personal Computer), a tablet-type terminal, or a smartphone. A test tool is installed in the information terminal 10. This test tool accesses a web page of the business server 20 using, for example, a web browser (browser unit 13), and tests whether the data acquired from the business server 20 matches a preset expected value. .

業務サーバ20は、例えばアプリケーションサーバであり、情報端末10のWebブラウザとHTTPで通信する。業務サーバ20は、情報端末10からHTTPリスエストを受信すると、例えばAjax(Asynchronous JavaScript+ XML)やJavaScript等の、ページ遷移を伴わずに動的に表示内容を変化させる技術を用いたHTTPレスポンス(応答電文)を送信する。ここで、ページ遷移(画面遷移)とは、サーバに対するHTTPリクエスト(上り電文)に応じた、HTTPレスポンスに基づいてWebページを表示することをいう。また、AjaxやJavaScript等は、そのようなページ遷移を伴わずに、例えば、Webブラウザによって受信されメモリ上にツリー構造で展開されたHTMLデータを書き換えることにより、Webブラウザの表示内容を変化させる。なお、業務サーバ20における処理は、公知の技術を用いて行われてもよい。   The business server 20 is an application server, for example, and communicates with the Web browser of the information terminal 10 using HTTP. When the business server 20 receives an HTTP request from the information terminal 10, the business server 20, for example, an HTTP response (response message) using a technology that dynamically changes display contents without page transition, such as Ajax (Asynchronous JavaScript + XML) or JavaScript. ). Here, the page transition (screen transition) means displaying a Web page based on an HTTP response corresponding to an HTTP request (upstream message) to the server. In addition, Ajax, JavaScript, and the like change the display content of the Web browser by rewriting HTML data received by the Web browser and expanded in a tree structure on the memory without such page transition. The processing in the business server 20 may be performed using a known technique.

図2は、実施の形態における情報端末10のハードウェア構成例を示す図である。図2の情報端末10は、それぞれバスBで相互に接続されているドライブ装置100、補助記憶装置102、メモリ装置103、CPU104、インタフェース装置105、表示装置106、及び入力装置107等を有する。   FIG. 2 is a diagram illustrating a hardware configuration example of the information terminal 10 according to the embodiment. The information terminal 10 in FIG. 2 includes a drive device 100, an auxiliary storage device 102, a memory device 103, a CPU 104, an interface device 105, a display device 106, an input device 107, and the like that are mutually connected by a bus B.

情報端末10での処理を実現するテストプログラムは、記録媒体101によって提供される。テストプログラムを記録した記録媒体101がドライブ装置100にセットされると、テストプログラムが記録媒体101からドライブ装置100を介して補助記憶装置102にインストールされる。但し、テストプログラムのインストールは必ずしも記録媒体101より行う必要はなく、ネットワークを介して他のコンピュータよりダウンロードするようにしてもよい。補助記憶装置102は、インストールされたテストプログラムを格納すると共に、必要なファイルやデータ等を格納する。   A test program that realizes processing in the information terminal 10 is provided by the recording medium 101. When the recording medium 101 on which the test program is recorded is set in the drive device 100, the test program is installed from the recording medium 101 to the auxiliary storage device 102 via the drive device 100. However, the test program need not be installed from the recording medium 101, and may be downloaded from another computer via a network. The auxiliary storage device 102 stores the installed test program and also stores necessary files and data.

メモリ装置103は、プログラムの起動指示があった場合に、補助記憶装置102からプログラムを読み出して格納する。CPU104は、メモリ装置103に格納されたプログラムに従って情報端末10に係る機能を実現する。インタフェース装置105は、ネットワークに接続するためのインタフェースとして用いられる。表示装置106はプログラムによるGUI(Graphical User Interface)等を表示する。入力装置107はキーボード及びマウス等、またはタッチパネル及びボタン等で構成され、様々な操作指示を入力させるために用いられる。   The memory device 103 reads the program from the auxiliary storage device 102 and stores it when there is an instruction to start the program. The CPU 104 realizes functions related to the information terminal 10 in accordance with a program stored in the memory device 103. The interface device 105 is used as an interface for connecting to a network. The display device 106 displays a GUI (Graphical User Interface) or the like by a program. The input device 107 includes a keyboard and mouse, or a touch panel and buttons, and is used to input various operation instructions.

なお、記録媒体101の一例としては、CD−ROM、DVDディスク、又はUSBメモリ等の可搬型の記録媒体が挙げられる。また、補助記憶装置102の一例としては、HDD(Hard Disk Drive)又はフラッシュメモリ等が挙げられる。記録媒体101及び補助記憶装置102のいずれについても、コンピュータ読み取り可能な記録媒体に相当する。   An example of the recording medium 101 is a portable recording medium such as a CD-ROM, a DVD disk, or a USB memory. An example of the auxiliary storage device 102 is an HDD (Hard Disk Drive) or a flash memory. Both the recording medium 101 and the auxiliary storage device 102 correspond to computer-readable recording media.

業務サーバ20のハードウェア構成は、サーバ用のコンピュータのハードウェア構成であり、図2に示す情報端末10のハードウェア構成例と同様である。   The hardware configuration of the business server 20 is the hardware configuration of a server computer, and is the same as the hardware configuration example of the information terminal 10 shown in FIG.

次に、図3を参照し、情報端末10の機能構成について説明する。図3は、情報端末10の機能ブロック図である。情報端末10は、通信部11、ブラウザ部13、テスト処理部14、検知部15、取得部16、判定部17、及び記録部18を有する。これら各部は、情報端末10にインストールされた1以上のプログラムが、情報端末10のCPU104に実行させる処理により実現される。   Next, the functional configuration of the information terminal 10 will be described with reference to FIG. FIG. 3 is a functional block diagram of the information terminal 10. The information terminal 10 includes a communication unit 11, a browser unit 13, a test processing unit 14, a detection unit 15, an acquisition unit 16, a determination unit 17, and a recording unit 18. Each of these units is realized by processing that one or more programs installed in the information terminal 10 cause the CPU 104 of the information terminal 10 to execute.

また、情報端末10は、シナリオデータ記憶部121、判定除外データ記憶部122、及び画面区切りデータ記憶部123を有する。これらの記憶部は、例えば、補助記憶装置102等を用いて実現される。   The information terminal 10 also includes a scenario data storage unit 121, a determination exclusion data storage unit 122, and a screen partition data storage unit 123. These storage units are realized using, for example, the auxiliary storage device 102 or the like.

図4は、シナリオデータ記憶部121に記憶されるシナリオデータの一例を示す図である。シナリオデータには、各テストの番号に対応付けて、テスト処理部14がブラウザ部13に入力する操作データである操作シナリオと、テスト処理部14がブラウザ部13から取得する、業務サーバ20からの応答の期待値が記憶される。なお、各テストは、判定部17により操作シナリオの入力データをWebページに入力可能なタイミング(ページ区切り、画面区切り)が検知される毎に、テスト処理部14により実行される。   FIG. 4 is a diagram illustrating an example of scenario data stored in the scenario data storage unit 121. The scenario data is associated with the number of each test, the operation scenario that is the operation data that the test processing unit 14 inputs to the browser unit 13, and the business server 20 that the test processing unit 14 acquires from the browser unit 13. The expected value of the response is stored. Each test is executed by the test processing unit 14 every time the determination unit 17 detects the timing (page break or screen break) at which the input data of the operation scenario can be input to the Web page.

図4(A)は、操作シナリオの一例を示す図である。図4(A)の例では、操作シナリオには、ブラウザ部13で表示しているHTMLデータにおけるタグを示す情報と、当該タグに入力する値(キーボードまたはマウス等による操作を示す情報)とが含まれる。   FIG. 4A is a diagram illustrating an example of an operation scenario. In the example of FIG. 4A, the operation scenario includes information indicating a tag in HTML data displayed on the browser unit 13 and a value (information indicating an operation with a keyboard or a mouse) input to the tag. included.

図4(B)は、期待値の一例を示す図である。図4(B)の例では、期待値には、ブラウザ部13から取得する、現在の表示内容を示すHTMLデータにおけるタグを示す情報と、当該タグに設定されている値とが含まれる。   FIG. 4B is a diagram illustrating an example of an expected value. In the example of FIG. 4B, the expected value includes information indicating a tag in HTML data indicating the current display content acquired from the browser unit 13, and a value set in the tag.

なお、シナリオデータは、例えば、テストを行うユーザにより操作された入力データと、それに対する業務サーバ20からの応答をテスト処理部14が記録し、テストを行うユーザが当該記録したデータを編集することにより、予め設定される。   The scenario data is, for example, that the test processing unit 14 records the input data operated by the user who performs the test and the response from the business server 20, and the user who performs the test edits the recorded data. Is set in advance.

図5は、画面区切りデータ記憶部123に記憶される画面区切りデータの一例を示す図である。画面区切りデータには、テストツールが、シナリオデータ記憶部121に記憶されている入力データをWebページに入力可能なタイミング(ページ区切り、画面区切り)を示すデータが含まれる。図5の例では、日時、現在の表示内容を示すデータ、表示画面の画像、Webページの情報が含まれる。日時は、画面区切りが発生した日時を示すデータである。現在の表示内容を示すデータは、ブラウザ部13の現在の表示内容を示すHTMLデータである。表示画面の画像は、ブラウザ部13にて、画面区切りのタイミングで表示されていた画面の画像を示すデータである。Webページは、ブラウザ部13がHTTPレスポンスを取得した、業務サーバ20のWebページ(URL)を示すデータである。   FIG. 5 is a diagram illustrating an example of screen separation data stored in the screen separation data storage unit 123. The screen break data includes data indicating the timing (page break, screen break) at which the test tool can input the input data stored in the scenario data storage unit 121 to the Web page. In the example of FIG. 5, date and time, data indicating the current display content, display screen image, and Web page information are included. The date and time is data indicating the date and time when the screen break occurs. The data indicating the current display content is HTML data indicating the current display content of the browser unit 13. The image of the display screen is data indicating the image of the screen that has been displayed at the screen separation timing in the browser unit 13. The web page is data indicating the web page (URL) of the business server 20 from which the browser unit 13 has acquired the HTTP response.

図3の説明に戻る。通信部11は、業務サーバ20等との通信を行う。   Returning to the description of FIG. The communication unit 11 communicates with the business server 20 and the like.

ブラウザ部13は、例えばWebブラウザであり、入力装置107により受け付けた入力操作や、テスト処理部14からの入力に基づいて、業務サーバ20に、例えばHTTPリスエストを送信する。ブラウザ部13は、業務サーバ20からHTTPレスポンスを受信し、受信したHTTPレスポンスに基づき、Webページを表示する。   The browser unit 13 is, for example, a Web browser, and transmits, for example, an HTTP request to the business server 20 based on an input operation received by the input device 107 or an input from the test processing unit 14. The browser unit 13 receives an HTTP response from the business server 20 and displays a Web page based on the received HTTP response.

ブラウザ部13は、業務サーバ20から受信したHTTPレスポンスに含まれるHTMLデータをメモリ装置103に展開(記憶)し、HTTPレスポンスに含まれるAjaxやJavaScriptに基づいて、当該HTMLデータを書き換える。そして、ブラウザ部13は、書き換えた後のHTMLデータに基づいて画面の表示を行う。それにより、ブラウザ部13の表示内容が変化する。   The browser unit 13 expands (stores) the HTML data included in the HTTP response received from the business server 20 in the memory device 103, and rewrites the HTML data based on Ajax or JavaScript included in the HTTP response. The browser unit 13 displays a screen based on the rewritten HTML data. Thereby, the display content of the browser unit 13 changes.

ブラウザ部13は、記録部18からの要求に応じて、現在(当該要求を受けた際)の表示内容を示すデータを、記録部18に出力する。なお、表示内容を示すデータは、業務サーバ20から受信したHTTPレスポンスに含まれるHTMLデータ、または、当該HTMLデータがメモリ上に展開されたものをAjaxやJavaScript等によって書き換えた後のHTMLデータである。   In response to a request from the recording unit 18, the browser unit 13 outputs data indicating the current display content (when the request is received) to the recording unit 18. The data indicating the display content is HTML data included in the HTTP response received from the business server 20, or HTML data after the HTML data expanded on the memory is rewritten by Ajax, JavaScript, or the like. .

テスト処理部14は、入力装置107が受け付けたブラウザ部13への入力操作をトレースし、当該入力操作(入力データ)と、それに対する業務サーバ20からの応答をシナリオデータ記憶部121に記録する。また、テスト処理部14は、入力装置107により受け付けた編集操作に応じて、シナリオデータ記憶部121を修正する。   The test processing unit 14 traces the input operation to the browser unit 13 received by the input device 107 and records the input operation (input data) and a response from the business server 20 in the scenario data storage unit 121. In addition, the test processing unit 14 modifies the scenario data storage unit 121 according to the editing operation received by the input device 107.

テスト処理部14は、シナリオデータ記憶部121に記録されている操作シナリオに応じて、ブラウザ部13を操作し、ブラウザ部13にHTTPリクエストを送信させる。   The test processing unit 14 operates the browser unit 13 according to the operation scenario recorded in the scenario data storage unit 121, and causes the browser unit 13 to transmit an HTTP request.

テスト処理部14は、ブラウザ部13が業務サーバ20から取得したHTTPレスポンスに応じて表示するHTMLデータに含まれるタグの値と、シナリオデータ記憶部121に記録されている期待値とを比較し、業務サーバ20の動作をテストする。   The test processing unit 14 compares the tag value included in the HTML data displayed according to the HTTP response acquired by the browser unit 13 from the business server 20 with the expected value recorded in the scenario data storage unit 121, Test the operation of the business server 20.

テスト処理部14は、後述する判定部17により、画面区切りであると判定されると、シナリオデータ記憶部121に記録されている操作シナリオに応じて、ブラウザ部13を操作する。   If the determination unit 17 described later determines that the screen processing is a screen break, the test processing unit 14 operates the browser unit 13 according to the operation scenario recorded in the scenario data storage unit 121.

検知部15、取得部16、及び判定部17は、ブラウザ部13がページ遷移を伴わない表示の変化をする場合の、ブラウザ部13の画面に対する入力操作を実行可能なタイミング(ページ区切り、画面区切り)を判定する、画面区切り判定処理を行う。なお、画面区切り判定処理の詳細例は後述する。   The detection unit 15, the acquisition unit 16, and the determination unit 17 can execute an input operation on the screen of the browser unit 13 when the browser unit 13 changes display without page transition (page break, screen break). ) Is performed. A detailed example of the screen break determination process will be described later.

以下で、検知部15、取得部16、及び判定部17のそれぞれが、画面区切り判定処理において実行する処理について説明する。   Hereinafter, processing executed by the detection unit 15, the acquisition unit 16, and the determination unit 17 in the screen separation determination process will be described.

検知部15は、HTTPレスポンスによる表示がされたことを検知する。検知部15は、例えば、ブラウザ部13から、業務サーバ20からのHTTPレスポンスに基づくページ遷移が行われたことを示すイベントの通知を受けることにより、HTTPレスポンスによる表示がされたことを検知する。   The detection unit 15 detects that a display using an HTTP response has been made. For example, the detection unit 15 detects the display by the HTTP response by receiving notification of an event indicating that the page transition based on the HTTP response from the business server 20 has been performed from the browser unit 13.

取得部16は、検知部15による検知がされた後のタイミングで、ブラウザ部13から、現在の表示内容を示すデータを取得する。   The acquisition unit 16 acquires data indicating the current display content from the browser unit 13 at a timing after detection by the detection unit 15.

取得部16は、ブラウザ部13の表示内容が、ページ遷移を伴わずに動的に変化する場合、ブラウザ部13から、現在の表示内容を示すデータを、複数のタイミングで取得する。   When the display content of the browser unit 13 dynamically changes without page transition, the acquisition unit 16 acquires data indicating the current display content from the browser unit 13 at a plurality of timings.

判定部17は、ブラウザ部13における表示内容が変化した後、所定の期間、当該表示内容が変化しなかった場合に、画面区切りであると判定する。それにより、ページ遷移を伴わない表示の変化をした場合であっても、画面区切りを判定することができる。   The determination unit 17 determines that the screen is separated when the display content does not change for a predetermined period after the display content in the browser unit 13 changes. Thereby, even when the display is changed without page transition, the screen break can be determined.

記録部18は、画面区切りと判定された等の際、ブラウザ部13における表示内容の変化が完了したタイミングの日時、取得部16がブラウザ部13より取得した現在の表示内容を示すデータ、ブラウザ部13の表示画面の画像、及びWebページのURLを、画面区切りデータ記憶部123に記録する。ここで、記録部18は、ブラウザ部13における表示内容が変化した後、所定の期間、当該表示内容が変化しなかった場合、例えば、当該所定の期間の開始時または終了時のタイミングを、ブラウザ部13における表示内容の変化が完了したタイミングとする。   When the recording unit 18 is determined to be a screen break, the date and time when the change of the display content in the browser unit 13 is completed, the data indicating the current display content acquired by the acquisition unit 16 from the browser unit 13, the browser unit 13 display screen images and Web page URLs are recorded in the screen partition data storage unit 123. Here, when the display content in the browser unit 13 has not changed for a predetermined period after the display content in the browser unit 13 has changed, for example, the recording unit 18 sets the timing at the start or end of the predetermined period to the browser. It is assumed that the change of the display content in the unit 13 is completed.

次に、図6を参照して、テスト処理部14が、シナリオデータ記憶部121に記憶されている各テストの操作シナリオに基づいて、業務サーバ20のテストを行う処理について説明する。図6は、テスト処理部14による処理を説明する図である。   Next, a process in which the test processing unit 14 performs a test of the business server 20 based on the operation scenario of each test stored in the scenario data storage unit 121 will be described with reference to FIG. FIG. 6 is a diagram for explaining processing by the test processing unit 14.

テスト処理部14は、シナリオデータ記憶部121に格納されている操作シナリオに基づいてブラウザ部13によって表示されているWebページにデータを入力し、ブラウザ部13にHTTPリクエストを送信させる。   The test processing unit 14 inputs data to the Web page displayed by the browser unit 13 based on the operation scenario stored in the scenario data storage unit 121, and causes the browser unit 13 to transmit an HTTP request.

テスト処理部14は、ブラウザ部13が業務サーバ20から受信したHTTPレスポンスに含まれるHTMLデータにおける所定のタグの値と、シナリオデータ記憶部121の「期待値」で設定されている値とを比較することにより、業務サーバ20の動作確認を行う。   The test processing unit 14 compares the value of a predetermined tag in the HTML data included in the HTTP response received by the browser unit 13 from the business server 20 with the value set in the “expected value” of the scenario data storage unit 121. As a result, the operation of the business server 20 is confirmed.

次に、図7を参照して、シナリオデータ記憶部121に記憶されている各テストの操作シナリオに基づいて、業務サーバ20のテストを行う処理について説明する。図7は、テスト時の処理の一例を示すフローチャートである。   Next, with reference to FIG. 7, a process for testing the business server 20 based on the operation scenario of each test stored in the scenario data storage unit 121 will be described. FIG. 7 is a flowchart illustrating an example of processing during a test.

まず、検知部15は、ブラウザ部13から、当該Webページから受信したHTTPレスポンスによる表示が完了した旨のイベントの通知を受けることにより、HTTPレスポンスに基づく表示がされたこと(ページ遷移)を検知する(ステップS101)。   First, the detection unit 15 receives a notification from the browser unit 13 that the display based on the HTTP response received from the Web page has been completed, thereby detecting that the display based on the HTTP response has been made (page transition). (Step S101).

取得部16は、ブラウザ部13より、現在の表示内容を示すデータ、及びブラウザ部13の表示画面の画像を取得する(ステップS102)。   The acquisition unit 16 acquires data indicating the current display content and an image of the display screen of the browser unit 13 from the browser unit 13 (step S102).

記録部18は、現在時刻、現在の表示内容を示すデータ、ブラウザ部13の表示画面の画像、及びWebページのURLを、画面区切りデータ記憶部123に記録する(ステップS103)。   The recording unit 18 records the current time, the data indicating the current display content, the image of the display screen of the browser unit 13 and the URL of the Web page in the screen partition data storage unit 123 (step S103).

テスト処理部14は、画面区切り判定処理をリセット(終了/再起動)する(ステップS104)。   The test processing unit 14 resets (ends / restarts) the screen separation determination process (step S104).

次に、図8を参照して、図7のステップS104の画面区切り判定処理について説明する。図8は、画面区切り判定処理の一例を示すフローチャートである。   Next, with reference to FIG. 8, the screen separation determination process in step S104 of FIG. 7 will be described. FIG. 8 is a flowchart illustrating an example of a screen break determination process.

テスト処理部14は、更新中フラグをオフ(「0」)にセット(初期化)する(ステップS201)。   The test processing unit 14 sets (initializes) the updating flag to off (“0”) (step S201).

続いて、取得部16は、ブラウザ部13から、現在の表示内容を示すデータ(ブラウザ部13に現在表示されている内容を示すHTMLデータ)を取得し、マスターデータとする(ステップS202)。   Subsequently, the acquisition unit 16 acquires data indicating the current display content (HTML data indicating the content currently displayed on the browser unit 13) from the browser unit 13 and sets it as master data (step S202).

続いて、取得部16は、所定時間待機する(ステップS203)。   Subsequently, the acquisition unit 16 waits for a predetermined time (step S203).

続いて、取得部16は、ブラウザ部13から、現在の表示内容を示すデータ(ブラウザ部13に現在表示されている内容を示すHTMLデータ)を取得し、新マスターデータとする(ステップS204)。   Subsequently, the acquisition unit 16 acquires data indicating the current display content (HTML data indicating the content currently displayed on the browser unit 13) from the browser unit 13 and sets it as new master data (step S204).

続いて、判定部17は、マスターデータと、新マスターデータとを比較し、一致するか判定する(ステップS205)。   Subsequently, the determination unit 17 compares the master data with the new master data and determines whether or not they match (step S205).

マスターデータと、新マスターデータが一致する場合(ステップS205でYES)、判定部17は、更新中フラグがオン(「1」)であるか判定する(ステップS206)。   If the master data matches the new master data (YES in step S205), the determination unit 17 determines whether the updating flag is on (“1”) (step S206).

更新中フラグがオフの場合(ステップS206でNO)、ステップS203の処理に進む。   If the updating flag is off (NO in step S206), the process proceeds to step S203.

更新中フラグがオンの場合(ステップS206でYES)、判定部17は、マスターデータを取得したタイミングを画面区切りとする(ステップS207)。   When the updating flag is ON (YES in step S206), the determination unit 17 sets the timing at which the master data is acquired as a screen break (step S207).

続いて、記録部18は、現在時刻、現在の表示内容を示すデータ、ブラウザ部13の表示画面の画像、及びWebページのURLを、画面区切りデータ記憶部123に記録し(ステップS208)、更新フラグをオフにし(ステップS209)、ステップS203の処理に進む。   Subsequently, the recording unit 18 records the current time, data indicating the current display content, the image of the display screen of the browser unit 13 and the URL of the Web page in the screen partition data storage unit 123 (Step S208). The flag is turned off (step S209), and the process proceeds to step S203.

マスターデータと、新マスターデータが一致しない場合(ステップS205でNO)、判定部17は、ブラウザ部13が互換表示モードであるか判定する(ステップS210)。なお、互換表示モードについては後述する。   When the master data does not match the new master data (NO in step S205), the determination unit 17 determines whether the browser unit 13 is in the compatible display mode (step S210). The compatible display mode will be described later.

ブラウザ部13が互換表示モードでない場合(ステップS210でNO)、取得部16は、新マスターデータを、マスターデータとし(ステップS211)、更新フラグをオンにし(ステップS212)、ステップS203の処理に進む。   When the browser unit 13 is not in the compatible display mode (NO in step S210), the acquisition unit 16 sets the new master data as master data (step S211), turns on the update flag (step S212), and proceeds to the process of step S203. .

ブラウザ部13が互換表示モードである場合(ステップS206でYES)、互換表示モード対応処理を行い(ステップS213)、ステップS203の処理に進む。   If the browser unit 13 is in the compatible display mode (YES in step S206), a compatible display mode handling process is performed (step S213), and the process proceeds to step S203.

互換表示モードでは、ブラウザ部13は、記録部18からの要求に応じて出力する現在の表示内容を示すデータに、例えば「テキストボックス」や「ラジオボタン」等の所定の入力部品に対する入力操作により変化した表示の内容を含めて出力する。ブラウザ部13の互換表示モードのオン、オフは、例えばユーザからの設定操作に基づいて切り替えられる。なお、互換表示モードは、例えばInternet Explorer(登録商標)において実現されている機能である。   In the compatible display mode, the browser unit 13 performs, for example, an input operation on a predetermined input component such as a “text box” or a “radio button” to data indicating the current display content output in response to a request from the recording unit 18. Output including changed display contents. On / off of the compatible display mode of the browser unit 13 is switched based on, for example, a setting operation from the user. Note that the compatible display mode is a function implemented in, for example, Internet Explorer (registered trademark).

互換表示モードの場合、テスト処理部14が、操作シナリオに基づいて「テキストボックス」等にデータを入力すると、現在の表示内容を示すデータに、当該入力したデータが含まれるようになる。そのため、互換表示モード対応処理を行うことにより、「テキストボックス」等にデータを入力する度に、画面区切りと誤判定されないようにする。   In the compatible display mode, when the test processing unit 14 inputs data to a “text box” or the like based on the operation scenario, the input data is included in the data indicating the current display content. Therefore, the compatible display mode compatible processing is performed so that it is not erroneously determined as a screen break each time data is input to the “text box” or the like.

次に、図10を参照して、図9のステップS213の互換表示モード対応処理について説明する。図10は、互換表示モード対応処理の一例を示すフローチャートである。   Next, with reference to FIG. 10, the compatible display mode handling process in step S213 of FIG. 9 will be described. FIG. 10 is a flowchart illustrating an example of compatible display mode handling processing.

まず、判定部17は、新マスターデータにおいて、フォーカスされている箇所を特定する(ステップS301)。なお、フォーカスされている箇所は、例えばWindows(登録商標) APIを用いて特定する。   First, the determination unit 17 identifies a focused location in the new master data (step S301). Note that the focused location is identified using, for example, a Windows (registered trademark) API.

続いて、判定部17は、判定除外データ記憶部122を参照し(ステップS302)、フォーカスされている箇所が、判定除外箇所であるか判定する(ステップS303)。   Subsequently, the determination unit 17 refers to the determination exclusion data storage unit 122 (step S302), and determines whether the focused location is a determination exclusion location (step S303).

ここで、図9を参照し、判定除外データ記憶部122に記憶されるデータについて説明する。   Here, the data stored in the determination exclusion data storage unit 122 will be described with reference to FIG.

図9は、判定除外データ記憶部122の一例を示す図である。判定除外データ記憶部122には、判定除外箇所と名称の情報が記憶される。判定除外箇所は、ブラウザ部13のブラウザが互換表示モードで動作している場合に、表示画面が動的に変化しているかを判定するための判定対象から除外する箇所を示すデータである。名称は、判定除外箇所の名称である。図9の例では、ブラウザ部13が出力する、現在の表示内容を示すHTMLデータにおいて、判定対象から除外する「テキストボックス」と「ラジオボタン」を示すTagのデータが設定されている。   FIG. 9 is a diagram illustrating an example of the determination exclusion data storage unit 122. The determination exclusion data storage unit 122 stores information on determination exclusion locations and names. The determination exclusion portion is data indicating a portion to be excluded from a determination target for determining whether the display screen is dynamically changed when the browser of the browser unit 13 is operating in the compatible display mode. The name is the name of the determination exclusion location. In the example of FIG. 9, tag data indicating “text box” and “radio button” to be excluded from the determination target is set in the HTML data indicating the current display content output from the browser unit 13.

図10の説明に戻る。   Returning to the description of FIG.

フォーカスされている箇所が、判定除外箇所でない場合(ステップS303でNO)、取得部16は、新マスターデータを、マスターデータとし(ステップS304)、更新フラグをオンにし(ステップS305)、処理を終了する。   If the focused location is not a determination exclusion location (NO in step S303), the acquisition unit 16 sets the new master data as master data (step S304), turns on the update flag (step S305), and ends the processing. To do.

フォーカスされている箇所が、判定除外箇所である場合(ステップS303でYES)、判定部17は、マスターデータと、新マスターデータのそれぞれから、フォーカスされている箇所のデータを除外したもの同士を比較し、一致するか判定する(ステップS306)。   When the focused location is a determination exclusion location (YES in step S303), the determination unit 17 compares the master data and the new master data, excluding the focused location data. Then, it is determined whether they match (step S306).

マスターデータと、新マスターデータのそれぞれから、フォーカスされている箇所のデータを除外したものが一致しない場合(ステップS306でNO)、ステップS304の処理に進む。   If the master data and the new master data exclude the data of the focused part do not match (NO in step S306), the process proceeds to step S304.

マスターデータと、新マスターデータのそれぞれから、フォーカスされている箇所のデータを除外したものが一致する場合(ステップS306でYES)、判定部17は、更新中フラグがオン(「1」)であるか判定する(ステップS307)。   When the master data and the new master data, which are obtained by excluding the data of the focused portion, match (YES in step S306), the determination unit 17 has the updating flag on (“1”). Whether or not is determined (step S307).

更新中フラグがオンでない場合(ステップS307でNO)、処理を終了する。   If the updating flag is not on (NO in step S307), the process ends.

更新中フラグがオンの場合(ステップS307でYES)、判定部17は、マスターデータを取得したタイミングを画面区切りとする(ステップS308)。   When the updating flag is on (YES in step S307), the determination unit 17 sets the timing at which the master data is acquired as a screen break (step S308).

続いて、記録部18は、現在時刻、現在の表示内容を示すデータ、ブラウザ部13の表示画面の画像、及びWebページのURLを、画面区切りデータ記憶部123に記録し(ステップS309)、更新フラグをオフにし(ステップS310)、処理を終了する。   Subsequently, the recording unit 18 records the current time, the data indicating the current display content, the image of the display screen of the browser unit 13, and the URL of the Web page in the screen partition data storage unit 123 (Step S309) and update. The flag is turned off (step S310), and the process ends.

なお、上記実施形態にて説明した技術は、例えば以下のようなテストツールにおいて利用可能である。
・サーバからのHTTPレスポンス(下り電文)の所定の項目値が、想定通りであるかを比較検証するファンクションテスト(機能テスト)ツール。
・画面のスクリーンショットやDB情報を自動で取得し、テスト結果のエビデンスを作成するエビデンス作成ツール。
・多数の仮想端末を生成して、サーバの高負荷状態を実現する高負荷テストツール。
・予め設定されたテストのシナリオを自動で実行し、デグレードが発生していないかをテストするリグレッションテストツール。
The technique described in the above embodiment can be used in, for example, the following test tool.
A function test (function test) tool for comparing and verifying whether a predetermined item value of an HTTP response (downlink message) from the server is as expected.
・ Evidence creation tool that automatically obtains screen shots and DB information and creates evidence of test results.
-A high-load test tool that generates a large number of virtual terminals and realizes a high-load state of the server.
・ Regression test tool that automatically executes preset test scenarios and tests for degradation.

<まとめ>
従来技術では、サーバ等から受信したHTTPレスポンスに、ページ遷移を伴わずに動的に表示内容を変化させる技術が利用されている場合、当該画面における操作を実行可能なタイミングを検知できない。そのため、例えばAjaxによるカレンダーが表示される前に、シナリオデータ記憶部121に従って操作を入力すると、正常に操作できない場合があるという問題があった。
<Summary>
In the prior art, when a technique for dynamically changing display contents without page transition is used in an HTTP response received from a server or the like, it is not possible to detect the timing at which an operation on the screen can be performed. For this reason, for example, if an operation is input according to the scenario data storage unit 121 before the Ajax calendar is displayed, there is a problem that the operation may not be performed normally.

上述したように、本実施形態では、コンピュータに、HTTPレスポンスによるページ遷移が行われたことを検知し、当該検知がされた際の第1のタイミング、及び前記第1のタイミングより後の第2のタイミングで、前記HTTPレスポンスに基づく表示の内容を示す第1のデータ、及び第2のデータをそれぞれ取得し、前記第1のデータと前記第2のデータが異なる場合、前記第2のタイミングより後の第3のタイミングで、前記HTTPレスポンスに基づく表示の内容を示す第3のデータを取得し、前記第2のデータと前記第3のデータが一致する場合に、前記第2のタイミングを、所定の操作を実行可能なタイミングであると判定する、処理を実行させる。   As described above, in the present embodiment, the computer detects that the page transition by the HTTP response has been performed, the first timing when the detection is performed, and the second timing after the first timing. When the first data and the second data indicating the contents of display based on the HTTP response are respectively acquired at the timing, and the first data and the second data are different from each other, from the second timing When the third data indicating the content of the display based on the HTTP response is acquired at a later third timing, and the second data and the third data match, the second timing is A process for determining that it is a timing at which a predetermined operation can be executed is executed.

それにより、ページ遷移を伴わずに動的に表示内容を変化させるWebページにおいて、当該画面における操作を実行可能なタイミングを検知することが可能となる。   As a result, it is possible to detect a timing at which an operation on the screen can be executed in a Web page that dynamically changes display contents without page transition.

以上、本発明の実施例について詳述したが、本発明は斯かる特定の実施形態に限定されるものではなく、特許請求の範囲に記載された本発明の要旨の範囲内において、種々の変形・変更が可能である。   As mentioned above, although the Example of this invention was explained in full detail, this invention is not limited to such specific embodiment, In the range of the summary of this invention described in the claim, various deformation | transformation・ Change is possible.

以上の説明に関し、更に以下の項を開示する。
(付記1)
コンピュータに、
WebブラウザによりHTTPレスポンスに応じたページ遷移を検知し、
前記ページ遷移後に、前記Webブラウザにおける表示内容が変化した後、所定の期間、前記Webブラウザにおける表示内容が変化しなかった場合にページの区切りを判定し、
前記Webブラウザに対し、前記区切りに応じた所定のテスト操作を実行する、
処理を実行させることを特徴とする、テストプログラム。
(付記2)
前記Webブラウザにおける表示内容の変化が完了した、前記所定の期間の開始時または終了時のタイミングを、前記Webブラウザにおける表示内容と対応付けて記録することを特徴とする、
付記1記載のテストプログラム。
(付記3)
前記Webブラウザによって表示されている所定の入力部品に対する入力操作による変化を除外して、前記Webブラウザにおける表示内容が変化したか否かを判定することを特徴とする、
付記1または2記載のテストプログラム。
(付記4)
前記区切りの判定は、
所定の期間毎に前記Webブラウザにおける表示内容を取得し、
取得した表示内容を保存し、
保存してある前回の表示内容と、取得した今回の表示内容とを比較し、
比較した表示内容が変化した場合に区切り判定を開始し、
区切り判定を開始した後に、比較した表示内容が変化しなかった場合に区切りタイミングと判定する
付記1記載のテストプログラム。
(付記5)
前記所定のテスト操作は、
前記Webブラウザに対して行う処理が、前記区切り単位に記録されたシナリオデータを読み込み、
読み込んだシナリオデータに基づいて、前記Webブラウザに対して入力処理を行う
付記1記載のテストプログラム。
(付記6)
前記シナリオデータは、
Webブラウザに表示されるオブジェクトと、入力する情報とを対応づけて記録してあり、
前記所定のテスト操作は、
前記オブジェクトに対して、前記入力する情報を入力する処理を行う
付記5記載のテストプログラム。
(付記7)
コンピュータに、
WebブラウザによりHTTPレスポンスに応じたページ遷移を検知し、
前記ページ遷移後に、前記Webブラウザにおける表示内容が変化した後、所定の期間、前記Webブラウザにおける表示内容が変化しなかった場合にページの区切りを判定し、
前記Webブラウザに対する操作情報を、判定した前記区切りごとに記録する、
処理を実行させることを特徴とする、テストプログラム。
(付記8)
前記操作情報は、
入力操作を行ったWebブラウザに表示されるオブジェクトを特定し、
特定した前記オブジェクトと、入力した情報とを対応づけて記録する
付記7記載のテストプログラム。
(付記9)
前記Webブラウザが、前記表示内容を示すデータに、前記所定の入力部品に対する入力操作により変化した表示内容を含めて出力する場合、前記所定の入力部品に対する入力操作による変化を除外して、前記Webブラウザにおける表示内容が変化したか否かを判定することを特徴とする、
付記3記載のテストプログラム。
(付記10)
WebブラウザによりHTTPレスポンスに応じたページ遷移を検知する検知部と、
前記ページ遷移後に、前記Webブラウザにおける表示内容が変化した後、所定の期間、前記Webブラウザにおける表示内容が変化しなかった場合にページの区切りを判定する判定部と、
前記Webブラウザに対し、前記区切りに応じた所定のテスト操作を実行するテスト処理部と、
を備えることを特徴とするテスト装置。
(付記11)
前記Webブラウザにおける表示内容の変化が完了した、前記所定の期間の開始時または終了時のタイミングを、前記Webブラウザにおける表示内容と対応付けて記録する記録部を備えることを特徴とする、
付記10記載のテスト装置。
(付記12)
前記判定部は、前記Webブラウザによって表示されている所定の入力部品に対する入力操作による変化を除外して、前記Webブラウザにおける表示内容が変化したか否かを判定することを特徴とする、
付記10または11記載のテスト装置。
(付記13)
前記判定部は、
所定の期間毎に前記Webブラウザにおける表示内容を取得し、
取得した表示内容を保存し、
保存してある前回の表示内容と、取得した今回の表示内容とを比較し、
比較した表示内容が変化した場合に区切り判定を開始し、
区切り判定を開始した後に、比較した表示内容が変化しなかった場合に区切りタイミングと判定する
付記10記載のテスト装置。
(付記14)
前記テスト処理部は、
前記Webブラウザに対して行う処理が、前記区切り単位に記録されたシナリオデータを読み込み、
読み込んだシナリオデータに基づいて、前記Webブラウザに対して入力処理を行う
付記10記載のテスト装置。
(付記15)
前記シナリオデータは、
Webブラウザに表示されるオブジェクトと、入力する情報とを対応づけて記録してあり、
前記テスト処理部は、
前記オブジェクトに対して、前記入力する情報を入力する処理を行う
付記14記載のテスト装置。
(付記16)
WebブラウザによりHTTPレスポンスに応じたページ遷移を検知する検知部と、
前記ページ遷移後に、前記Webブラウザにおける表示内容が変化した後、所定の期間、前記Webブラウザにおける表示内容が変化しなかった場合にページの区切りを判定する判定部と、
前記Webブラウザに対する操作情報を、判定した前記区切りごとに記録する記録部と、
を備えることを特徴とするテスト装置。
(付記17)
前記操作情報は、
入力操作を行ったWebブラウザに表示されるオブジェクトを特定し、
特定した前記オブジェクトと、入力した情報とを対応づけて記録する
付記16記載のテスト装置。
(付記18)
前記判定部は、
前記Webブラウザが、前記表示内容を示すデータに、前記所定の入力部品に対する入力操作により変化した表示内容を含めて出力する場合、前記所定の入力部品に対する入力操作による変化を除外して、前記Webブラウザにおける表示内容が変化したか否かを判定することを特徴とする、
付記12記載のテスト装置。
(付記19)
コンピュータが、
WebブラウザによりHTTPレスポンスに応じたページ遷移を検知し、
前記ページ遷移後に、前記Webブラウザにおける表示内容が変化した後、所定の期間、前記Webブラウザにおける表示内容が変化しなかった場合にページの区切りを判定し、
前記Webブラウザに対し、前記区切りに応じた所定のテスト操作を実行する、
処理を実行することを特徴とする、テストプログラム。
(付記20)
前記Webブラウザにおける表示内容の変化が完了した、前記所定の期間の開始時または終了時のタイミングを、前記Webブラウザにおける表示内容と対応付けて記録することを特徴とする、
付記19記載のテストプログラム。
(付記21)
前記Webブラウザによって表示されている所定の入力部品に対する入力操作による変化を除外して、前記Webブラウザにおける表示内容が変化したか否かを判定することを特徴とする、
付記19または20記載のテストプログラム。
(付記22)
前記区切りの判定は、
所定の期間毎に前記Webブラウザにおける表示内容を取得し、
取得した表示内容を保存し、
保存してある前回の表示内容と、取得した今回の表示内容とを比較し、
比較した表示内容が変化した場合に区切り判定を開始し、
区切り判定を開始した後に、比較した表示内容が変化しなかった場合に区切りタイミングと判定する
付記19記載のテストプログラム。
(付記23)
前記所定のテスト操作は、
前記Webブラウザに対して行う処理が、前記区切り単位に記録されたシナリオデータを読み込み、
読み込んだシナリオデータに基づいて、前記Webブラウザに対して入力処理を行う
付記19記載のテストプログラム。
(付記24)
前記シナリオデータは、
Webブラウザに表示されるオブジェクトと、入力する情報とを対応づけて記録してあり、
前記所定のテスト操作は、
前記オブジェクトに対して、前記入力する情報を入力する処理を行う
付記23記載のテストプログラム。
(付記25)
コンピュータが、
WebブラウザによりHTTPレスポンスに応じたページ遷移を検知し、
前記ページ遷移後に、前記Webブラウザにおける表示内容が変化した後、所定の期間、前記Webブラウザにおける表示内容が変化しなかった場合にページの区切りを判定し、
前記Webブラウザに対する操作情報を、判定した前記区切りごとに記録する、
処理を実行することを特徴とする、テストプログラム。
(付記26)
前記操作情報は、
入力操作を行ったWebブラウザに表示されるオブジェクトを特定し、
特定した前記オブジェクトと、入力した情報とを対応づけて記録する
付記25記載のテストプログラム。
(付記27)
前記Webブラウザが、前記Webブラウザにおける表示内容を示すデータに、前記所定の入力部品に対する入力操作により変化した表示内容を含めて出力する場合、前記所定の入力部品に対する入力操作による変化を除外して、前記Webブラウザにおける表示内容が変化したか否かを判定することを特徴とする、
付記21記載のテストプログラム。
Regarding the above description, the following items are further disclosed.
(Appendix 1)
On the computer,
Detect page transition according to HTTP response by Web browser,
After the page transition, after the display content in the web browser changes, if the display content in the web browser does not change for a predetermined period, the page break is determined,
A predetermined test operation corresponding to the break is performed on the web browser.
A test program characterized by causing processing to be executed.
(Appendix 2)
The timing at the start or end of the predetermined period when the change of the display content in the Web browser is completed is recorded in association with the display content in the Web browser.
Test program according to appendix 1.
(Appendix 3)
Excluding a change caused by an input operation on a predetermined input component displayed by the Web browser, it is determined whether or not the display content in the Web browser has changed.
Test program according to appendix 1 or 2.
(Appendix 4)
The determination of the break is as follows:
The display content in the web browser is acquired every predetermined period,
Save the acquired display contents,
Compare the previously saved display content with the acquired display content this time,
Separation judgment starts when the compared display contents change,
The test program according to appendix 1, wherein after the start of delimitation determination, the delimiter timing is determined when the compared display content does not change.
(Appendix 5)
The predetermined test operation is:
The processing performed on the web browser reads scenario data recorded in the delimiter unit,
The test program according to appendix 1, which performs input processing on the Web browser based on the read scenario data.
(Appendix 6)
The scenario data is
The object displayed on the web browser and the input information are recorded in association with each other.
The predetermined test operation is:
The test program according to appendix 5, wherein a process for inputting the input information is performed on the object.
(Appendix 7)
On the computer,
Detect page transition according to HTTP response by Web browser,
After the page transition, after the display content in the web browser changes, if the display content in the web browser does not change for a predetermined period, the page break is determined,
Record operation information for the web browser for each determined break;
A test program characterized by causing processing to be executed.
(Appendix 8)
The operation information is
Identify the object displayed in the web browser that performed the input operation,
The test program according to appendix 7, wherein the specified object and the input information are recorded in association with each other.
(Appendix 9)
When the Web browser outputs the data indicating the display content including the display content changed by the input operation on the predetermined input component, the Web browser excludes the change caused by the input operation on the predetermined input component, and It is characterized by determining whether the display content in the browser has changed,
Test program according to appendix 3.
(Appendix 10)
A detection unit that detects a page transition according to an HTTP response by a Web browser;
A determination unit that determines a page break when the display content in the Web browser does not change for a predetermined period after the display content in the Web browser changes after the page transition;
A test processing unit that executes a predetermined test operation corresponding to the delimiter on the Web browser;
A test apparatus comprising:
(Appendix 11)
A recording unit that records the timing at the start or end of the predetermined period when the change of the display content in the Web browser is completed in association with the display content in the Web browser;
The test apparatus according to appendix 10.
(Appendix 12)
The determination unit is configured to determine whether or not a display content in the Web browser has changed by excluding a change caused by an input operation on a predetermined input component displayed by the Web browser.
The test apparatus according to appendix 10 or 11.
(Appendix 13)
The determination unit
The display content in the web browser is acquired every predetermined period,
Save the acquired display contents,
Compare the previously saved display content with the acquired display content this time,
Separation judgment starts when the compared display contents change,
The test apparatus according to appendix 10, wherein after the start of delimitation determination, the delimiter timing is determined when the compared display content does not change.
(Appendix 14)
The test processing unit includes:
The processing performed on the web browser reads scenario data recorded in the delimiter unit,
The test apparatus according to appendix 10, wherein input processing is performed on the Web browser based on the read scenario data.
(Appendix 15)
The scenario data is
The object displayed on the web browser and the input information are recorded in association with each other.
The test processing unit includes:
15. The test apparatus according to appendix 14, wherein a process for inputting the input information is performed on the object.
(Appendix 16)
A detection unit that detects a page transition according to an HTTP response by a Web browser;
A determination unit that determines a page break when the display content in the Web browser does not change for a predetermined period after the display content in the Web browser changes after the page transition;
A recording unit that records operation information for the Web browser for each determined break;
A test apparatus comprising:
(Appendix 17)
The operation information is
Identify the object displayed in the web browser that performed the input operation,
Item 17. The test apparatus according to appendix 16, which records the identified object and input information in association with each other.
(Appendix 18)
The determination unit
When the Web browser outputs the data indicating the display content including the display content changed by the input operation on the predetermined input component, the Web browser excludes the change caused by the input operation on the predetermined input component, and It is characterized by determining whether the display content in the browser has changed,
The test apparatus according to appendix 12.
(Appendix 19)
Computer
Detect page transition according to HTTP response by Web browser,
After the page transition, after the display content in the web browser changes, if the display content in the web browser does not change for a predetermined period, the page break is determined,
A predetermined test operation corresponding to the break is performed on the web browser.
A test program characterized by executing processing.
(Appendix 20)
The timing at the start or end of the predetermined period when the change of the display content in the Web browser is completed is recorded in association with the display content in the Web browser.
The test program according to appendix 19.
(Appendix 21)
Excluding a change caused by an input operation on a predetermined input component displayed by the Web browser, it is determined whether or not the display content in the Web browser has changed.
The test program according to appendix 19 or 20.
(Appendix 22)
The determination of the break is as follows:
The display content in the web browser is acquired every predetermined period,
Save the acquired display contents,
Compare the previously saved display content with the acquired display content this time,
Separation judgment starts when the compared display contents change,
Item 20. The test program according to appendix 19, wherein after the start of delimitation determination, the delimiter timing is determined when the compared display content does not change.
(Appendix 23)
The predetermined test operation is:
The processing performed on the web browser reads scenario data recorded in the delimiter unit,
The test program according to appendix 19, which performs input processing on the Web browser based on the read scenario data.
(Appendix 24)
The scenario data is
The object displayed on the web browser and the input information are recorded in association with each other.
The predetermined test operation is:
24. The test program according to attachment 23, wherein a process for inputting the input information is performed on the object.
(Appendix 25)
Computer
Detect page transition according to HTTP response by Web browser,
After the page transition, after the display content in the web browser changes, if the display content in the web browser does not change for a predetermined period, the page break is determined,
Record operation information for the web browser for each determined break;
A test program characterized by executing processing.
(Appendix 26)
The operation information is
Identify the object displayed in the web browser that performed the input operation,
The test program according to appendix 25, wherein the specified object and the input information are recorded in association with each other.
(Appendix 27)
When the Web browser outputs the data indicating the display content in the Web browser including the display content changed by the input operation on the predetermined input component, the change due to the input operation on the predetermined input component is excluded. Determining whether or not the display content in the Web browser has changed,
The test program according to appendix 21.

10 情報端末
11 通信部
121 シナリオデータ記憶部
122 判定除外データ記憶部
123 画面区切りデータ記憶部
13 ブラウザ部
14 テスト処理部
15 検知部
16 取得部
17 判定部
18 記録部
20 業務サーバ
DESCRIPTION OF SYMBOLS 10 Information terminal 11 Communication part 121 Scenario data storage part 122 Determination exclusion data storage part 123 Screen division | segmentation data storage part 13 Browser part 14 Test processing part 15 Detection part 16 Acquisition part 17 Determination part 18 Recording part 20 Business server

Claims (11)

コンピュータに、
WebブラウザによりHTTPレスポンスに応じたページ遷移を検知し、
前記ページ遷移後に、前記Webブラウザにおける表示内容が変化した後、所定の期間、前記Webブラウザにおける表示内容が変化しなかった場合にページの区切りを判定し、
前記Webブラウザに対し、前記区切りに応じた所定のテスト操作を実行する、
処理を実行させることを特徴とする、テストプログラム。
On the computer,
Detect page transition according to HTTP response by Web browser,
After the page transition, after the display content in the web browser changes, if the display content in the web browser does not change for a predetermined period, the page break is determined,
A predetermined test operation corresponding to the break is performed on the web browser.
A test program characterized by causing processing to be executed.
前記Webブラウザにおける表示内容の変化が完了した、前記所定の期間の開始時または終了時のタイミングを、前記Webブラウザにおける表示内容と対応付けて記録することを特徴とする、
請求項1記載のテストプログラム。
The timing at the start or end of the predetermined period when the change of the display content in the Web browser is completed is recorded in association with the display content in the Web browser.
The test program according to claim 1.
前記Webブラウザによって表示されている所定の入力部品に対する入力操作による変化を除外して、前記Webブラウザにおける表示内容が変化したか否かを判定することを特徴とする、
請求項1または2記載のテストプログラム。
Excluding a change caused by an input operation on a predetermined input component displayed by the Web browser, it is determined whether or not the display content in the Web browser has changed.
The test program according to claim 1 or 2.
前記区切りの判定は、
所定の期間毎に前記Webブラウザにおける表示内容を取得し、
取得した表示内容を保存し、
保存してある前回の表示内容と、取得した今回の表示内容とを比較し、
比較した表示内容が変化した場合に区切り判定を開始し、
区切り判定を開始した後に、比較した表示内容が変化しなかった場合に区切りタイミングと判定する
請求項1記載のテストプログラム。
The determination of the break is as follows:
The display content in the web browser is acquired every predetermined period,
Save the acquired display contents,
Compare the previously saved display content with the acquired display content this time,
Separation judgment starts when the compared display contents change,
The test program according to claim 1, wherein after the start of delimitation determination, the delimiter timing is determined when the compared display content does not change.
前記所定のテスト操作は、
前記Webブラウザに対して行う処理が、前記区切り単位に記録されたシナリオデータを読み込み、
読み込んだシナリオデータに基づいて、前記Webブラウザに対して入力処理を行う
請求項1記載のテストプログラム。
The predetermined test operation is:
The processing performed on the web browser reads scenario data recorded in the delimiter unit,
The test program according to claim 1, wherein an input process is performed on the Web browser based on the read scenario data.
前記シナリオデータは、
Webブラウザに表示されるオブジェクトと、入力する情報とを対応づけて記録してあり、
前記所定のテスト操作は、
前記オブジェクトに対して、前記入力する情報を入力する処理を行う
請求項5記載のテストプログラム。
The scenario data is
The object displayed on the web browser and the input information are recorded in association with each other.
The predetermined test operation is:
The test program according to claim 5, wherein a process for inputting the input information is performed on the object.
コンピュータに、
WebブラウザによりHTTPレスポンスに応じたページ遷移を検知し、
前記ページ遷移後に、前記Webブラウザにおける表示内容が変化した後、所定の期間、前記Webブラウザにおける表示内容が変化しなかった場合にページの区切りを判定し、
前記Webブラウザに対する操作情報を、判定した前記区切りごとに記録する、
処理を実行させることを特徴とする、テストプログラム。
On the computer,
Detect page transition according to HTTP response by Web browser,
After the page transition, after the display content in the web browser changes, if the display content in the web browser does not change for a predetermined period, the page break is determined,
Record operation information for the web browser for each determined break;
A test program characterized by causing processing to be executed.
前記操作情報は、
入力操作を行ったWebブラウザに表示されるオブジェクトを特定し、
特定した前記オブジェクトと、入力した情報とを対応づけて記録する
請求項7記載のテストプログラム。
The operation information is
Identify the object displayed in the web browser that performed the input operation,
The test program according to claim 7, wherein the specified object and the input information are recorded in association with each other.
前記Webブラウザが、前記Webブラウザにおける表示内容を示すデータに、前記所定の入力部品に対する入力操作により変化した表示内容を含めて出力する場合、前記所定の入力部品に対する入力操作による変化を除外して、前記Webブラウザにおける表示内容が変化したか否かを判定することを特徴とする、
請求項3記載のテストプログラム。
When the Web browser outputs the data indicating the display content in the Web browser including the display content changed by the input operation on the predetermined input component, the change due to the input operation on the predetermined input component is excluded. Determining whether or not the display content in the Web browser has changed,
The test program according to claim 3.
WebブラウザによりHTTPレスポンスに応じたページ遷移を検知する検知部と、
前記ページ遷移後に、前記Webブラウザにおける表示内容が変化した後、所定の期間、前記Webブラウザにおける表示内容が変化しなかった場合にページの区切りを判定する判定部と、
前記Webブラウザに対し、前記区切りに応じた所定のテスト操作を実行するテスト処理部と、
を備えることを特徴とするテスト装置。
A detection unit that detects a page transition according to an HTTP response by a Web browser;
A determination unit that determines a page break when the display content in the Web browser does not change for a predetermined period after the display content in the Web browser changes after the page transition;
A test processing unit that executes a predetermined test operation corresponding to the delimiter on the Web browser;
A test apparatus comprising:
コンピュータが、
WebブラウザによりHTTPレスポンスに応じたページ遷移を検知し、
前記ページ遷移後に、前記Webブラウザにおける表示内容が変化した後、所定の期間、前記Webブラウザにおける表示内容が変化しなかった場合にページの区切りを判定し、
前記Webブラウザに対し、前記区切りに応じた所定のテスト操作を実行する、
処理を実行することを特徴とするテスト方法。
Computer
Detect page transition according to HTTP response by Web browser,
After the page transition, after the display content in the web browser changes, if the display content in the web browser does not change for a predetermined period, the page break is determined,
A predetermined test operation corresponding to the break is performed on the web browser.
A test method characterized by executing processing.
JP2016045974A 2016-03-09 2016-03-09 Test apparatus, test method, and test program Active JP6645276B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016045974A JP6645276B2 (en) 2016-03-09 2016-03-09 Test apparatus, test method, and test program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016045974A JP6645276B2 (en) 2016-03-09 2016-03-09 Test apparatus, test method, and test program

Publications (2)

Publication Number Publication Date
JP2017162182A true JP2017162182A (en) 2017-09-14
JP6645276B2 JP6645276B2 (en) 2020-02-14

Family

ID=59857050

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016045974A Active JP6645276B2 (en) 2016-03-09 2016-03-09 Test apparatus, test method, and test program

Country Status (1)

Country Link
JP (1) JP6645276B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019039074A1 (en) 2017-08-25 2019-02-28 富士フイルム株式会社 Negative lithographic printing original plate and method for making lithographic printing plate
JP7385245B2 (en) 2019-07-05 2023-11-22 株式会社デプロイゲート Information processing device, information processing system, and information processing program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019039074A1 (en) 2017-08-25 2019-02-28 富士フイルム株式会社 Negative lithographic printing original plate and method for making lithographic printing plate
JP7385245B2 (en) 2019-07-05 2023-11-22 株式会社デプロイゲート Information processing device, information processing system, and information processing program

Also Published As

Publication number Publication date
JP6645276B2 (en) 2020-02-14

Similar Documents

Publication Publication Date Title
US9342237B2 (en) Automated testing of gesture-based applications
US20150331882A1 (en) Redundant file deletion method, apparatus and storage medium
US20120278698A1 (en) Method and system for processing a webpage
CN107357558B (en) Method and device for constructing codes
CN110659256B (en) Multi-computer room synchronization method, computing device and computer storage medium
CN107133165B (en) Browser compatibility detection method and device
WO2016000546A1 (en) Method and device for checking influence of deletion of cache file, and mobile terminal
KR101748833B1 (en) Software failure locating method, apparatus and equipment
US20150278389A1 (en) Web page editing method, apparatus, and medium
WO2014059934A1 (en) Method and apparatus for detecting hidden content of web page
WO2017206476A1 (en) Method, device and apparatus for detecting cpu occupation
JP6891780B2 (en) Software quality judgment device, software quality judgment method, and software quality judgment program
CN107193747B (en) Code testing method and device and computer equipment
CN104346035A (en) Indicating automatically corrected words
US20160112285A1 (en) Apparatus and method for detecting abnormal connection
JP6645276B2 (en) Test apparatus, test method, and test program
WO2017054716A1 (en) Method for recognizing hijacked browser and browser
JP2018116497A (en) Screen determination device and program
JP5747751B2 (en) Regression test support program and regression test support device
EP3326077A1 (en) Web application adjustment for different browsers
WO2014164079A1 (en) Method and system for analyzing a trace timeline of computer system activity
US10242315B2 (en) Finite state machine forming
AU2017235993B2 (en) Dynamic loading and deployment of test files to prevent interruption of test execution
EP4318273A2 (en) Method and system providing contextual functionality in static web pages
CN106708705B (en) Terminal background process monitoring method and system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181112

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190823

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191001

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191115

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20191223

R150 Certificate of patent or registration of utility model

Ref document number: 6645276

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150