[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

JP6215033B2 - Test control apparatus, communication system, test control method, and test control program - Google Patents

Test control apparatus, communication system, test control method, and test control program Download PDF

Info

Publication number
JP6215033B2
JP6215033B2 JP2013260603A JP2013260603A JP6215033B2 JP 6215033 B2 JP6215033 B2 JP 6215033B2 JP 2013260603 A JP2013260603 A JP 2013260603A JP 2013260603 A JP2013260603 A JP 2013260603A JP 6215033 B2 JP6215033 B2 JP 6215033B2
Authority
JP
Japan
Prior art keywords
test
command
terminal
execution terminal
connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2013260603A
Other languages
Japanese (ja)
Other versions
JP2015118479A (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.)
NTT Communications Corp
Original Assignee
NTT Communications Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NTT Communications Corp filed Critical NTT Communications Corp
Priority to JP2013260603A priority Critical patent/JP6215033B2/en
Publication of JP2015118479A publication Critical patent/JP2015118479A/en
Application granted granted Critical
Publication of JP6215033B2 publication Critical patent/JP6215033B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Description

本発明は、Webアプリケーションのテストを行う技術に関連するものである。   The present invention relates to a technique for testing a Web application.

従来から、Webブラウザをユーザインタフェースとして利用した業務システム等の様々なWebアプリケーションがネットワーク上で提供されている。Webアプリケーションは、ユーザ端末により多種多様なOS及びブラウザ等を用いて使用されることになるから、Webアプリケーションの開発においては、多種多様なOS及びWebブラウザ等で正常に動作するかを調べるテストが行われる。   Conventionally, various Web applications such as a business system using a Web browser as a user interface are provided on a network. Since a Web application is used by a user terminal using a wide variety of OSs and browsers, in developing a Web application, a test for checking whether it operates normally on a wide variety of OSs and Web browsers is performed. Done.

Webアプリケーションのテストの方法としては、例えば、試験者がWebブラウザを操作しながら目視でWeb画面の正常性を確認する方法がある。しかし、Webアプリケーションのテストは繰り返し作業が多く、また、調べるべきWebブラウザの種類やバージョンも多数あることから、人手でテストを行うことは非常に煩雑な作業となる。なお、Webアプリケーションのテストに関する先行技術文献として、特許文献1がある。   As a Web application test method, for example, there is a method in which a tester visually confirms the normality of a Web screen while operating a Web browser. However, testing a web application is a lot of repetitive work, and there are many types and versions of web browsers to be examined. Therefore, manually testing is a very complicated task. Note that there is Patent Document 1 as a prior art document related to Web application testing.

特開2007−200143号公報JP 2007-200133 A

上記のような人手によるテストの煩雑さを軽減するためのツールとしてSeleniumやWebDriverといった技術が存在する。これらのツールでは、テストケースを作成しておくことで、当該テストケースによるテストを様々なWebブラウザ上で自動的に実行することができる。   Technologies such as Selenium and WebDriver exist as tools for reducing the complexity of manual testing as described above. With these tools, by creating a test case, a test based on the test case can be automatically executed on various Web browsers.

しかし、これらの従来のテストツールでは、テストケース等に基づくコマンドを、テストを実行する端末(テスト実行端末と呼ぶ)に送信するコントローラを配備するとともに、当該端末に、コントローラからのコマンドを受信し、実行することができるエージェントソフトをインストールし、設定を行う必要がある。   However, in these conventional test tools, a controller that transmits a command based on a test case or the like to a terminal that executes a test (referred to as a test execution terminal) is provided, and the command from the controller is received by the terminal. It is necessary to install and configure the agent software that can be executed.

エージェントソフトは、テストを行う全ての端末にインストールしなければならない。また、モバイル端末等のPC以外の装置では、コマンドを配信するコントローラとの物理的な接続が必要となる。   Agent software must be installed on all terminals to be tested. In addition, a device other than a PC such as a mobile terminal needs a physical connection with a controller that distributes commands.

そのため、従来のテストツールを使用して多数の端末においてテストを行う場合、非常に煩雑な作業となる。また、上記のようにPC以外の機器では、コントローラとの物理的な接続が必要となることから、Webアプリケーションを使用するモバイル端末や、テレビ等の家電、自動車等において、従来のテストツールを使用したテストは非常に難しいものとなっていた。   Therefore, when a test is performed on a large number of terminals using a conventional test tool, it is a very complicated operation. In addition, since devices other than PCs need to be physically connected to the controller as described above, conventional test tools are used in mobile terminals that use Web applications, home appliances such as TVs, and automobiles. The tests we made were very difficult.

本発明は上記の点に鑑みてなされたものであり、WebブラウザからのWebアプリケーションのテストを簡易に行うことを可能とする技術を提供することを目的とする。   The present invention has been made in view of the above points, and an object of the present invention is to provide a technique capable of easily testing a Web application from a Web browser.

本発明の実施の形態によれば、Webサービス提供装置により提供されるWebアプリケーションのテストを、テスト実行端末上で実行するためのテスト制御装置であって、
前記テスト実行端末との間にネットワーク上でコネクションを確立するための通信制御手段と、
前記テスト実行端末に表示される前記Webアプリケーションのテスト対象ページを操作するコマンドを、前記コネクションを介して前記テスト実行端末に送信するコマンド送信手段とを備え
前記テスト制御装置は、テスト操作端末からのアクセスに応じて、当該テスト操作端末にテスト操作用ページを送信する手段を含み、前記コマンド送信手段は、当該テスト操作用ページ上で指定されたコマンドを前記テスト操作端末から受信し、当該コマンドを前記コネクションを介して前記テスト実行端末に送信する
ことを特徴とするテスト制御装置が提供される。
また、本発明の実施の形態によれば、Webサービス提供装置により提供されるWebアプリケーションのテストを、テスト実行端末上で実行するためのテスト制御装置であって、
前記テスト実行端末との間にネットワーク上でコネクションを確立するための通信制御手段と、
前記テスト実行端末に表示される前記Webアプリケーションのテスト対象ページを操作するコマンドを、前記コネクションを介して前記テスト実行端末に送信するコマンド送信手段とを備え、
前記テスト制御装置と複数のテスト実行端末との間にコネクションが確立されている場合に、前記コマンド送信手段は、当該複数のテスト実行端末に前記コマンドを一斉に配信する
ことを特徴とするテスト制御装置が提供される。
また、本発明の実施の形態によれば、Webサービス提供装置により提供されるWebアプリケーションのテストを、テスト実行端末上で実行するためのテスト制御装置であって、
前記テスト実行端末との間にネットワーク上でコネクションを確立するための通信制御手段と、
前記テスト実行端末に表示される前記Webアプリケーションのテスト対象ページを操作するコマンドを、前記コネクションを介して前記テスト実行端末に送信するコマンド送信手段とを備え、
前記コネクションはWebSocketの通信手順により確立される
ことを特徴とするテスト制御装置が提供される。
According to an embodiment of the present invention, there is provided a test control apparatus for executing a test of a Web application provided by a Web service providing apparatus on a test execution terminal,
Communication control means for establishing a connection on the network with the test execution terminal;
Command transmitting means for transmitting a command for operating a test target page of the Web application displayed on the test execution terminal to the test execution terminal via the connection ;
The test control device includes means for transmitting a test operation page to the test operation terminal in response to an access from the test operation terminal, and the command transmission means receives a command designated on the test operation page. A test control apparatus is provided that receives the command from the test operation terminal and transmits the command to the test execution terminal via the connection .
According to an embodiment of the present invention, there is provided a test control device for executing a test of a Web application provided by a Web service providing device on a test execution terminal,
Communication control means for establishing a connection on the network with the test execution terminal;
Command transmitting means for transmitting a command for operating a test target page of the Web application displayed on the test execution terminal to the test execution terminal via the connection;
When a connection is established between the test control apparatus and a plurality of test execution terminals, the command transmission means distributes the command to the plurality of test execution terminals all at once.
A test control device is provided.
According to an embodiment of the present invention, there is provided a test control device for executing a test of a Web application provided by a Web service providing device on a test execution terminal,
Communication control means for establishing a connection on the network with the test execution terminal;
Command transmitting means for transmitting a command for operating a test target page of the Web application displayed on the test execution terminal to the test execution terminal via the connection;
The connection is established by a WebSocket communication procedure.
A test control device is provided.

また、本発明の実施の形態によれば、前記テスト制御装置と、前記Webサービス提供装置と前記テスト実行端末との間に備えられる中継装置とを備える通信システムであって、
前記中継装置は、前記Webサービス提供装置から前記テスト対象ページを受信し、当該テスト対象ページにプログラムを埋め込み、当該プログラムが埋め込まれた前記テスト対象ページを前記テスト実行端末に送信するプログラム埋め込み手段を備え、前記テスト実行端末において当該プログラムにより前記コマンドが解釈され、実行される
ことを特徴とする通信システムが提供される。
Further, according to the embodiment of the present invention, there is provided a communication system comprising a said test controller, and a relay device provided between the Web service providing device and the test execution terminal,
The relay device receives a test target page from the Web service providing device, embeds a program in the test target page, and transmits a test target page in which the program is embedded to the test execution terminal. A communication system characterized in that the command is interpreted and executed by the program in the test execution terminal.

また、本発明の実施の形態によれば、Webサービス提供装置により提供されるWebアプリケーションのテストを、テスト実行端末上で実行するためのテスト制御装置が実行するテスト制御方法であって、
前記テスト実行端末との間にネットワーク上でコネクションを確立するコネクション確立ステップと、
前記テスト実行端末に表示される前記Webアプリケーションのテスト対象ページを操作するコマンドを、前記コネクションを介して前記テスト実行端末に送信するコマンド送信ステップとを備え
前記テスト制御装置は、テスト操作端末からのアクセスに応じて、当該テスト操作端末にテスト操作用ページを送信し、前記コマンド送信ステップにおいて、当該テスト操作用ページ上で指定されたコマンドを前記テスト操作端末から受信し、当該コマンドを前記コネクションを介して前記テスト実行端末に送信する
ことを特徴とするテスト制御方法が提供される。
また、本発明の実施の形態によれば、Webサービス提供装置により提供されるWebアプリケーションのテストを、テスト実行端末上で実行するためのテスト制御装置が実行するテスト制御方法であって、
前記テスト実行端末との間にネットワーク上でコネクションを確立するコネクション確立ステップと、
前記テスト実行端末に表示される前記Webアプリケーションのテスト対象ページを操作するコマンドを、前記コネクションを介して前記テスト実行端末に送信するコマンド送信ステップとを備え、
前記テスト制御装置と複数のテスト実行端末との間にコネクションが確立されている場合に、前記コマンド送信ステップにおいて、前記テスト制御装置は、当該複数のテスト実行端末に前記コマンドを一斉に配信する
ことを特徴とするテスト制御方法が提供される。
また、本発明の実施の形態によれば、Webサービス提供装置により提供されるWebアプリケーションのテストを、テスト実行端末上で実行するためのテスト制御装置が実行するテスト制御方法であって、
前記テスト実行端末との間にネットワーク上でコネクションを確立するコネクション確立ステップと、
前記テスト実行端末に表示される前記Webアプリケーションのテスト対象ページを操作するコマンドを、前記コネクションを介して前記テスト実行端末に送信するコマンド送信ステップとを備え、
前記コネクションはWebSocketの通信手順により確立される
ことを特徴とするテスト制御方法が提供される。
According to an embodiment of the present invention, there is provided a test control method executed by a test control device for executing a test of a Web application provided by a Web service providing device on a test execution terminal,
A connection establishment step of establishing a connection with the test execution terminal on the network;
A command transmission step of transmitting a command for operating a test target page of the Web application displayed on the test execution terminal to the test execution terminal via the connection ;
The test control device transmits a test operation page to the test operation terminal in response to access from the test operation terminal, and in the command transmission step, the command specified on the test operation page is transmitted to the test operation terminal. There is provided a test control method characterized by receiving a command from a terminal and transmitting the command to the test execution terminal via the connection .
According to an embodiment of the present invention, there is provided a test control method executed by a test control device for executing a test of a Web application provided by a Web service providing device on a test execution terminal,
A connection establishment step of establishing a connection with the test execution terminal on the network;
A command transmission step of transmitting a command for operating a test target page of the Web application displayed on the test execution terminal to the test execution terminal via the connection;
When a connection is established between the test control device and a plurality of test execution terminals, the test control device distributes the command to the plurality of test execution terminals simultaneously in the command transmission step.
A test control method is provided.
According to an embodiment of the present invention, there is provided a test control method executed by a test control device for executing a test of a Web application provided by a Web service providing device on a test execution terminal,
A connection establishment step of establishing a connection with the test execution terminal on the network;
A command transmission step of transmitting a command for operating a test target page of the Web application displayed on the test execution terminal to the test execution terminal via the connection;
The connection is established by a WebSocket communication procedure.
A test control method is provided.

本発明の実施の形態によれば、WebブラウザからのWebアプリケーションのテストを簡易に行うことを可能とする技術が提供される。   According to the embodiment of the present invention, there is provided a technology that makes it possible to easily test a Web application from a Web browser.

本発明の実施の形態に係るシステムの全体構成図である。1 is an overall configuration diagram of a system according to an embodiment of the present invention. テスト実行端末20がコマンドを実行する際におけるテスト実行端末20の機能構成図である。It is a functional block diagram of the test execution terminal 20 when the test execution terminal 20 executes a command. テスト実行端末20の機能イメージ図である。3 is a functional image diagram of a test execution terminal 20. FIG. 制御装置10の機能構成図である。2 is a functional configuration diagram of a control device 10. FIG. 本実施の形態におけるシステムの動作を説明するためのシーケンス図である。It is a sequence diagram for demonstrating operation | movement of the system in this Embodiment. 中継サーバ50を導入した場合のシステム構成図である。It is a system configuration diagram when a relay server 50 is introduced. 制御装置10における端末グループ化機能を説明するための図である。It is a figure for demonstrating the terminal grouping function in the control apparatus. 制御装置10における端末グループ化機能を説明するための図である。It is a figure for demonstrating the terminal grouping function in the control apparatus.

以下、図面を参照して本発明の実施の形態を説明する。なお、以下で説明する実施の形態は一例に過ぎず、本発明が適用される実施の形態は、以下の実施の形態に限られるわけではない。例えば、以下の例では、Webベースのコネクション技術としてWebSocketを使用しているが、これは一例であり、他の技術を用いてコネクションを設定することも可能である。   Embodiments of the present invention will be described below with reference to the drawings. The embodiment described below is only an example, and the embodiment to which the present invention is applied is not limited to the following embodiment. For example, in the following example, WebSocket is used as a Web-based connection technology, but this is an example, and a connection can be set using another technology.

(システムの構成)
図1に、本発明の実施の形態に係るシステムの全体構成を示す。図1に示すように、本実施の形態に係るシステムは、制御装置10、テスト実行端末20、Webサービス提供装置40、テスト操作端末30を有する。これらの装置は、インターネット等のネットワークに接続されておりネットワーク通信が可能である。図1には、本実施の形態で通信を行う装置同士を線で結んで示している。図1には、各装置が1台ずつ示されているが、これは例であり、各装置が複数台備えられていてもよい。特に、テスト実行端末20が複数台存在するケースについての例を後述する。
(System configuration)
FIG. 1 shows the overall configuration of a system according to an embodiment of the present invention. As shown in FIG. 1, the system according to the present embodiment includes a control device 10, a test execution terminal 20, a Web service providing device 40, and a test operation terminal 30. These devices are connected to a network such as the Internet and can perform network communication. In FIG. 1, devices that perform communication in this embodiment are shown connected by lines. Although FIG. 1 shows each device one by one, this is an example, and a plurality of each device may be provided. In particular, an example of a case where a plurality of test execution terminals 20 exist will be described later.

まず、各装置の概要を以下に説明し、その後に、テスト実行端末20と制御装置10等をより詳しく説明する。   First, an outline of each device will be described below, and then the test execution terminal 20 and the control device 10 will be described in more detail.

Webサービス提供装置40は、テスト対象となるWebアプリケーション(Webサイトと呼んでもよい)を提供する装置である。本実施の形態では、Webサービス提供装置40は、Webサーバ機能を有し、テスト実行端末20からの要求に基づきWebページ(HTMLデータ)をテスト実行端末20に送信する。   The Web service providing apparatus 40 is an apparatus that provides a Web application (which may be called a Web site) to be tested. In the present embodiment, the Web service providing apparatus 40 has a Web server function, and transmits a Web page (HTML data) to the test execution terminal 20 based on a request from the test execution terminal 20.

当該Webページは、Webアプリケーションのユーザインタフェースとなる画面であり、ユーザはWebページ上でクリックや、情報入力を行うことで、所望の情報や処理結果を得る等のWebアプリケーションのサービスを受けることができる。また、当該Webページは、テスト対象となるWebアプリケーションにより提供されるから、以下、これをテスト対象ページと呼ぶことにする。なお、Webページ等における「ページ」は、端末に表示される「画面」の意味にも使用するし、画面を形成するための「データ」(HTMLデータ)の意味でも使用する場合がある。   The Web page is a screen serving as a user interface of the Web application, and the user can receive Web application services such as obtaining desired information and processing results by clicking on the Web page or inputting information. it can. In addition, since the Web page is provided by a Web application to be tested, this is hereinafter referred to as a test target page. Note that “page” in a web page or the like may be used to mean “screen” displayed on the terminal, or may be used to mean “data” (HTML data) for forming a screen.

テスト実行端末20は、上記Webページの解析・表示等を行うWebブラウザを備えた端末である。テスト実行端末20は、PCやスマートフォンを想定しているが、特定の種類の装置に限定されるわけではなく、Webブラウザを実行できる装置であればどのような装置でもよい。   The test execution terminal 20 is a terminal provided with a Web browser that analyzes and displays the Web page. The test execution terminal 20 is assumed to be a PC or a smartphone, but is not limited to a specific type of device, and may be any device that can execute a Web browser.

制御装置10は、テスト実行端末20と所定の通信路(コネクション)により接続するとともに、テスト操作端末30とも所定の通信路(コネクション)により接続し、これらコネクションを介して、テスト操作端末30から送信されたコマンドをテスト実行端末20に送信する。当該コマンドは、テスト実行端末20に表示されているWebページに対し、所定のボタンをクリックする等のテストのための操作を自動的に実行させるコマンドである。なお、これは例であり、コマンドはどのようなコマンドでもよい。また、制御装置10は、上記コネクションを介して、テスト実行端末20から、コマンドの実行結果(実行完了したかどうか、正常かどうか、実行に結果の値、等)を受信し、当該実行結果をテスト操作端末30に送信する。また、制御装置10は、コネクションを確立しているテスト実行端末の情報も把握でき、それをテスト操作端末30に送信し、テスト操作端末30は当該情報(どのテスト実行端末が接続しているかを示す情報)を表示する。   The control device 10 is connected to the test execution terminal 20 via a predetermined communication path (connection), and is also connected to the test operation terminal 30 via a predetermined communication path (connection), and is transmitted from the test operation terminal 30 via these connections. The transmitted command is transmitted to the test execution terminal 20. This command is a command for automatically executing a test operation such as clicking a predetermined button on the Web page displayed on the test execution terminal 20. This is an example, and the command may be any command. Further, the control device 10 receives the execution result of the command (whether the execution is completed, whether it is normal, the value of the result of execution, etc.) from the test execution terminal 20 via the connection, and the execution result is received. It transmits to the test operation terminal 30. Further, the control device 10 can also grasp the information of the test execution terminal that has established the connection, and transmits the information to the test operation terminal 30, and the test operation terminal 30 determines the information (which test execution terminal is connected). Display information).

制御装置10は、Webサーバ機能を含み、後述するようにテスト実行端末20とテスト操作端末30のそれぞれにWebページを送信するとともに、上記コネクションを確立する機能を含む。当該コネクションにより、各端末との間でHTTPリクエスト/レスポンスのような一定方向の通信ではなく、自由な双方向通信を可能としている。このようなコネクションの実現方法に特に限定はないが、本実施の形態では、WebSocketの技術を使用している。   The control device 10 includes a Web server function, and includes a function of transmitting a Web page to each of the test execution terminal 20 and the test operation terminal 30 and establishing the connection as described later. With this connection, it is possible to perform free bidirectional communication with each terminal instead of communication in a fixed direction such as an HTTP request / response. A method for realizing such a connection is not particularly limited, but in this embodiment, WebSocket technology is used.

テスト操作端末30は、制御装置10から受信するWebページを表示し、制御装置10との間にコネクションを確立するとともに、当該Webページ上でコマンド送信指示を実施したり、コマンド実行結果、接続状態等の表示を行う。   The test operation terminal 30 displays a Web page received from the control device 10 and establishes a connection with the control device 10, executes a command transmission instruction on the Web page, executes a command execution result, and a connection state Etc. are displayed.

(テスト実行端末20の機能構成、コマンドの解析、実行について)
図2に、テスト実行端末20がコマンドを実行する際におけるテスト実行端末20の機能構成図を示す。
(Functional configuration of test execution terminal 20, command analysis, execution)
FIG. 2 shows a functional configuration diagram of the test execution terminal 20 when the test execution terminal 20 executes a command.

図2に示すように、本実施の形態において、コマンドを実行するテスト実行端末20は、コマンド送受信部21、コマンド解釈・実行部22、Webページ部23を有する。コマンド送受信部21は、制御装置10からコマンドを受信し、コマンドをコマンド解釈・実行部22に渡す機能、コマンド解釈・実行部22からコマンドの実行結果を受け取り、当該実行結果を制御装置10に送信する機能等を含む。   As shown in FIG. 2, in the present embodiment, the test execution terminal 20 that executes a command includes a command transmission / reception unit 21, a command interpretation / execution unit 22, and a Web page unit 23. The command transmitting / receiving unit 21 receives a command from the control device 10, receives a command to the command interpretation / execution unit 22, receives a command execution result from the command interpretation / execution unit 22, and transmits the execution result to the control device 10. Including functions to perform.

コマンド解釈・実行部22は、コマンド送受信部21から受け取ったコマンドを解釈し、Webページ部23に対してコマンドを実行し、Webページ部23から実行結果を受け取り、当該実行結果をコマンド送受信部22に渡す機能を含む。Webページ部23は、Webページ(HTMLデータ)を解釈して、表示等を行う。   The command interpretation / execution unit 22 interprets the command received from the command transmission / reception unit 21, executes the command to the web page unit 23, receives the execution result from the web page unit 23, and receives the execution result from the command transmission / reception unit 22. Includes functionality to pass to The web page unit 23 interprets a web page (HTML data) and displays it.

本実施の形態では、図2に示すコマンド送受信部21、コマンド解釈・実行部22を、テスト実行端末22が受信するWebページ及びWebブラウザにより実現している。つまり、テスト実行端末20には、テストのためにエージェントソフト等をインストールしておく必要はない。   In the present embodiment, the command transmission / reception unit 21 and the command interpretation / execution unit 22 shown in FIG. 2 are realized by a Web page and a Web browser received by the test execution terminal 22. That is, it is not necessary to install agent software or the like in the test execution terminal 20 for the test.

まず、コマンド解釈・実行部22について説明する。本実施の形態では、Webサービス提供装置40からテスト実行端末20に送信されるテスト対象ページの中に、コマンド解釈・実行部22の機能を実現するためのプログラムが埋め込まれている。テスト対象ページにプログラムを埋め込む方法には特に限定はなく、コマンド解釈・実行部22の機能を実現できるのであれば、どのような方法で埋め込まれていてもよい。本実施の形態では、スクリプトタグを使用して、テスト対象ページとなるHTMLデータの中にスクリプト(プログラム)を埋め込んでいる。   First, the command interpretation / execution unit 22 will be described. In the present embodiment, a program for realizing the function of the command interpretation / execution unit 22 is embedded in the test target page transmitted from the Web service providing apparatus 40 to the test execution terminal 20. The method for embedding the program in the test target page is not particularly limited, and any method may be used as long as the function of the command interpretation / execution unit 22 can be realized. In the present embodiment, a script (program) is embedded in HTML data to be a test target page using a script tag.

テスト実行端末20は、Webサービス提供装置40からテスト対象ページを取得し、Webブラウザでの解釈を実行することで、当該プログラムが実行され、コマンド解釈・実行部22の機能が生成され、テスト実行端末22は、コマンドの解釈、実行、実行結果の取得等を行うことができる。   The test execution terminal 20 acquires the test target page from the Web service providing apparatus 40, executes the interpretation by the Web browser, thereby executing the program, generating the function of the command interpretation / execution unit 22, and executing the test. The terminal 22 can interpret and execute commands, acquire execution results, and the like.

次にコマンド送受信部21について説明する。本実施の形態では、テスト実行端末20は、テスト対象ページのテストを行う前に、まず制御装置10にアクセスし、Webページ(以降、コマンド受渡用ページと呼ぶ)を取得する。   Next, the command transmission / reception unit 21 will be described. In the present embodiment, the test execution terminal 20 first accesses the control device 10 and acquires a Web page (hereinafter referred to as a command delivery page) before performing the test of the test target page.

データ受渡用ページには、データを受け渡すためのプログラムが含まれる。このプログラムは特定のものに限定されない。例えば、コマンド受渡用ページにおけるHTML(HTMLもプログラムである)の記述としてデータを受け渡す機能を持たせてもよいし、所定のスクリプト言語で記述したプログラムをデータ受渡用ページに埋め込み、当該プログラムによりデータを受け渡す機能を持たせてもよい。当該機能が図2に示すコマンド送受信部21に相当する。   The data delivery page includes a program for delivering data. This program is not limited to a specific one. For example, a function for delivering data as a description of HTML (HTML is also a program) in a command delivery page may be provided, or a program written in a predetermined script language is embedded in the data delivery page, A function for passing data may be provided. This function corresponds to the command transmission / reception unit 21 shown in FIG.

例えば、データ受渡用ページは、テスト実行端末20におけるWebブラウザ画面上で、テスト対象ページのタブと別のタブのページとして現われる。また、別の形態として、データ受渡用ページをiframeとして実現してもよい。   For example, the data delivery page appears on the Web browser screen of the test execution terminal 20 as a page with a tab different from the tab of the test target page. As another form, the data delivery page may be realized as an iframe.

また、コマンド受渡用ページには、コネクションを確立し、コネクションを介した通信を行うためのプログラムを含めることとしてもよい。当該プログラムには、制御装置10(WebsSocketサーバ)とのコネクション確立のための処理、データ送受信の処理等の機能が含まれる。なお、コネクションに関する処理をコマンド受渡用ページと別のページで行うこととしてもよい。   The command delivery page may include a program for establishing a connection and performing communication via the connection. The program includes functions such as processing for establishing a connection with the control apparatus 10 (WebsSocket server), data transmission / reception processing, and the like. The process related to the connection may be performed on a page different from the command delivery page.

データの受渡方法としては、例えば、データ受渡用ページがコマンドを制御装置10から受信した場合に、当該コマンドを所定の記憶領域に格納し、テスト対象ページのプログラム(スクリプト)が、当該コマンドを所定の記憶領域から読み出すといった方法がある。   As a data delivery method, for example, when a data delivery page receives a command from the control device 10, the command is stored in a predetermined storage area, and a program (script) of a test target page sets the command to a predetermined value. There is a method of reading from the storage area.

図3に、テスト実行端末20における上記の実装例を含む概念図を示す。図3に示すように、テスト実行の際に、テスト実行端末20のWebブラウザが、制御装置10からコマンド受渡用ページを取得し、Webサービス提供装置40から、プログラム(スクリプト)を含むテスト対象ページを取得することで、テスト実行端末20のWebブラウザにより、コマンド受渡用ページとテスト対象ページが解釈され、これらの表示等が行われている。   FIG. 3 is a conceptual diagram including the above implementation example in the test execution terminal 20. As shown in FIG. 3, during the test execution, the Web browser of the test execution terminal 20 acquires a command delivery page from the control device 10, and the test target page including the program (script) from the Web service providing device 40. As a result, the web page of the test execution terminal 20 interprets the command delivery page and the test target page and displays them.

そして、コマンド受渡用ページにより、制御装置10との間のコネクションを介したコマンドの送受信等を行うコマンド送受信部21の機能が実現されており、図3に示すように、コマンド受渡用ページのコマンド送受信部21が、制御装置10から送信されたコマンドを受信し、当該コマンドが、テスト対象ページのコマンド解釈・実行部22に渡される。コマンド解釈・実行部22は、当該コマンドを実行する。コマンドの実行により、例えば、テスト対象ページにおける所定のボタンのクリック操作が行われ、その操作に対応した処理(例:Webサービス提供装置40へのリクエスト送信、レスポンス受信)が実行される。   And the function of the command transmission / reception part 21 which performs transmission / reception of the command via the connection with the control apparatus 10 is implement | achieved by the command delivery page, and as shown in FIG. 3, the command of the command delivery page The transmission / reception unit 21 receives the command transmitted from the control device 10, and the command is transferred to the command interpretation / execution unit 22 of the test target page. The command interpretation / execution unit 22 executes the command. By executing the command, for example, a click operation of a predetermined button on the test target page is performed, and processing corresponding to the operation (eg, request transmission to the Web service providing apparatus 40, response reception) is executed.

コマンド解釈・実行部22は、コマンドの実行結果を取得し、当該実行結果をコマンド受渡用ページ(コマンド送受信部21)に渡し、コマンド送受信部21が、コネクションを介して実行結果を制御装置10に送信する。   The command interpretation / execution unit 22 acquires the execution result of the command, passes the execution result to the command delivery page (command transmission / reception unit 21), and the command transmission / reception unit 21 sends the execution result to the control device 10 via the connection. Send.

(制御装置10の構成)
図4に、制御装置10の機能構成図を示す。図4に示すように、制御装置10は、Web通信制御部11、ページデータ格納部12を備える。ページデータ格納部12には、テスト操作端末30に送信するテスト操作用ページのデータ(HTMLデータ、スクリプト等のプログラム)、及びテスト実行端末20に送信するコマンド受渡用ページのデータ(HTMLデータ、スクリプト等のプログラム)等が格納されている。
(Configuration of control device 10)
FIG. 4 shows a functional configuration diagram of the control device 10. As shown in FIG. 4, the control device 10 includes a Web communication control unit 11 and a page data storage unit 12. In the page data storage unit 12, test operation page data (HTML data, a program such as a script) transmitted to the test operation terminal 30, and command delivery page data (HTML data, script, transmitted to the test execution terminal 20) Etc.) are stored.

Web通信制御部11は、端末からの要求に基づき、Webページをページデータ格納部12から読み出して要求元に送信する等のWebサーバの機能に加えて、テスト操作端末30との間、及びテスト実行端末20との間でコネクションを設定し、コネクションを用いて通信を行う機能を有する。更に、Web通信制御部11は、テスト操作端末30からコネクションを介して受信したコマンドを、テスト実行端末20にコネクションを介して送信する機能、テスト実行端末20からコネクションを介して受信した実行結果を、テスト操作端末30にコネクションを介して送信する機能を含む。   Based on the request from the terminal, the Web communication control unit 11 reads the Web page from the page data storage unit 12 and transmits it to the request source. It has a function of setting a connection with the execution terminal 20 and performing communication using the connection. Further, the Web communication control unit 11 has a function of transmitting a command received from the test operation terminal 30 via the connection to the test execution terminal 20 via the connection, and an execution result received from the test execution terminal 20 via the connection. And a function of transmitting to the test operation terminal 30 via a connection.

本実施の形態では、例として、前述したコマンド受渡用ページに、コネクション確立のための処理を行うプログラム(スクリプト)が含まれており、Web通信制御部11は、テスト実行端末20からのアクセスを受けて、当該コマンド受渡用ページを当該テスト実行端末20に送信するととともに、テスト実行端末20との間でコネクションを設定する。また、例として、前述したテスト操作用ページに、コネクション確立のための処理を行うプログラム(スクリプト)が含まれており、Web通信制御部11は、テスト操作端末30からのアクセスを受けて、当該テスト操作用ページを当該テスト操作端末30に送信するととともに、テスト操作端末30との間でコネクションを設定する。   In the present embodiment, as an example, the above-described command delivery page includes a program (script) that performs processing for establishing a connection, and the Web communication control unit 11 performs access from the test execution terminal 20. In response, the command delivery page is transmitted to the test execution terminal 20 and a connection is set up with the test execution terminal 20. Further, as an example, the above-described test operation page includes a program (script) for performing processing for establishing a connection, and the Web communication control unit 11 receives access from the test operation terminal 30 and The test operation page is transmitted to the test operation terminal 30 and a connection is set with the test operation terminal 30.

テスト操作端末30では、試験者は、テスト操作端末30に表示されるテスト操作用ページ上でコマンドを入力することができる。また、テスト操作用ページには、テストの実行結果や、制御装置10に接続されているテスト実行端末20の情報、コマンド実行状態、等が表示される。   In the test operation terminal 30, the tester can input a command on the test operation page displayed on the test operation terminal 30. In addition, the test operation page displays a test execution result, information on the test execution terminal 20 connected to the control device 10, a command execution state, and the like.

本実施の形態に係る制御装置10は、コンピュータに、本実施の形態で説明する処理内容を記述したプログラムを実行させることにより実現可能である。すなわち、制御装置10が有する機能は、当該コンピュータに内蔵されるCPUやメモリ、ハードディスクなどのハードウェア資源を用いて、制御装置10で実施される処理に対応するプログラムを実行することによって実現することが可能である。また、上記プログラムは、コンピュータが読み取り可能な記録媒体(可搬メモリ等)に記録して、保存したり、配布したりすることが可能である。また、上記プログラムをインターネットや電子メールなど、ネットワークを通して提供することも可能である。   The control apparatus 10 according to the present embodiment can be realized by causing a computer to execute a program describing the processing contents described in the present embodiment. That is, the function of the control device 10 is realized by executing a program corresponding to the process executed by the control device 10 using hardware resources such as a CPU, a memory, and a hard disk built in the computer. Is possible. Further, the program can be recorded on a computer-readable recording medium (portable memory or the like), stored, or distributed. It is also possible to provide the program through a network such as the Internet or electronic mail.

(処理シーケンス)
次に、図5のシーケンス図を参照して、本実施の形態に係るシステムの動作の流れの例を説明する。
(Processing sequence)
Next, an example of the operation flow of the system according to the present embodiment will be described with reference to the sequence diagram of FIG.

まず、Webアプリケーションのテストを行う前段階として、テスト実行端末20が制御装置10にアクセスし(ステップ1)、コマンド受渡用ページを取得する(ステップ2)。コマンド受渡用ページはWebブラウザにより解釈されて、前述したコマンド送受信部21が実現されるとともに、制御装置10との間で所定の処理が実行されることで、制御装置10との間でコネクションが確立される(ステップ3)。   First, as a pre-stage for testing a Web application, the test execution terminal 20 accesses the control device 10 (step 1) and acquires a command delivery page (step 2). The command delivery page is interpreted by the Web browser, the above-described command transmission / reception unit 21 is realized, and a predetermined process is executed with the control device 10 to establish a connection with the control device 10. Established (step 3).

また、Webアプリケーションのテストを行う前段階として、テスト操作端末20が制御装置10にアクセスし(ステップ4)、コマンド操作用ページを取得する(ステップ5)。コマンド操作用ページはWebブラウザにより解釈され、制御装置10との間で所定の処理が実行されることで、制御装置10との間でコネクションが確立される(ステップ6)。   Further, as a pre-stage for testing the web application, the test operation terminal 20 accesses the control device 10 (step 4) and acquires a command operation page (step 5). The command operation page is interpreted by the Web browser, and a predetermined process is executed with the control device 10 to establish a connection with the control device 10 (step 6).

また、テスト実行端末20はWebサービス提供装置40にアクセスし(ステップ7)、テスト対象ページを取得する(ステップ8)。既に説明したとおり、このテスト対象ページには、コマンド解釈・実行部22として機能するプログラムが埋め込まれている。なお、テスト対象ページの取得は、テスト操作端末30から送信され、制御装置10から受信するコマンドに基づいて自動的に行ってもよいし、コマンドに基づかずに、テスト実行端末20において任意に行ってもよい。   Further, the test execution terminal 20 accesses the Web service providing apparatus 40 (Step 7) and acquires a test target page (Step 8). As already described, a program that functions as the command interpretation / execution unit 22 is embedded in the test target page. The acquisition of the test target page may be automatically performed based on a command transmitted from the test operation terminal 30 and received from the control device 10, or may be arbitrarily performed in the test execution terminal 20 without being based on the command. May be.

テストの段階において、例えばテスト操作端末30に表示されるテスト操作用ページには、テスト実行端末20を指定する欄や、コマンドを入力(もしくは指定)する欄が表示されている。試験者は、テスト実行端末としてテスト実行端末20を選択し、所定のコマンドを指定したものとする。   In the test stage, for example, on the test operation page displayed on the test operation terminal 30, a column for specifying the test execution terminal 20 and a column for inputting (or specifying) a command are displayed. Assume that the tester selects the test execution terminal 20 as the test execution terminal and designates a predetermined command.

テスト操作端末30からコマンドが送信される(ステップ9)。コマンドは、制御装置10により受信され、制御装置10は当該コマンドをテスト実行端末20に転送する。テスト実行端末20では、コマンド受渡用ページ(コマンド送受信部21)によりコマンドがテスト対象ページ(コマンド解釈・実行部22)に渡され、コマンド解釈・実行部22がコマンドを解釈し、実行する(ステップ10)。これにより、例えば、テスト対象ページからリクエストがWebサービス提供装置40に送信され(ステップ11)、レスポンスが返される(ステップ12)。コマンド解釈・実行部22は、コマンドの実行結果を取得し(ステップ13)、それをコマンド送受信部21に渡し、コマンド送受信部21が実行結果を制御装置10に送信し(ステップ14)、実行結果は制御装置10によりテスト操作端末30に送信され、テスト操作端末30に表示される(ステップ15)。   A command is transmitted from the test operation terminal 30 (step 9). The command is received by the control device 10, and the control device 10 transfers the command to the test execution terminal 20. In the test execution terminal 20, the command is delivered to the test target page (command interpretation / execution unit 22) by the command delivery page (command transmission / reception unit 21), and the command interpretation / execution unit 22 interprets and executes the command (step) 10). Thereby, for example, a request is transmitted from the test target page to the Web service providing apparatus 40 (step 11), and a response is returned (step 12). The command interpretation / execution unit 22 acquires the execution result of the command (step 13), passes it to the command transmission / reception unit 21, and the command transmission / reception unit 21 transmits the execution result to the control device 10 (step 14). Is transmitted to the test operation terminal 30 by the control device 10 and displayed on the test operation terminal 30 (step 15).

(その他の例)
<中継サーバを用いたプログラム挿入>
これまで説明した例では、テスト対象ページには、コマンド解釈・実行部22となるプログラムが、Webサービス提供装置40に存在する時点で予め埋め込まれていることを想定しているが、下記のように、予め埋め込まないようにする構成とすることも可能である。
(Other examples)
<Program insertion using a relay server>
In the examples described so far, it is assumed that the program serving as the command interpretation / execution unit 22 is embedded in the test target page in advance when it exists in the Web service providing apparatus 40. Further, it is possible to adopt a configuration in which it is not embedded in advance.

本例では、図6に示すように、Webサービス提供装置40とテスト実行端末20との間に中継サーバ50(プロキシサーバ)が備えられる。中継サーバ50は、プログラム挿入機能部51を備えている。   In this example, as shown in FIG. 6, a relay server 50 (proxy server) is provided between the Web service providing apparatus 40 and the test execution terminal 20. The relay server 50 includes a program insertion function unit 51.

本実施の形態では、テスト実行端末20とWebサービス提供装置40との間の通信は中継サーバ50を介して行われる。すなわち、中継サーバ50は、テスト実行端末20からWebサービス提供装置40へのリクエストを受信し、当該リクエストをWebサービス提供装置40に送信するとともに、Webサービス提供装置40からテスト実行端末20へのレスポンス(Webページ、具体的にはテスト対象ページ)を受信し、当該Webページをテスト実行端末20に送信する。   In the present embodiment, communication between the test execution terminal 20 and the Web service providing apparatus 40 is performed via the relay server 50. That is, the relay server 50 receives a request from the test execution terminal 20 to the Web service providing apparatus 40, transmits the request to the Web service providing apparatus 40, and a response from the Web service providing apparatus 40 to the test execution terminal 20. (Web page, specifically the test target page) is received, and the Web page is transmitted to the test execution terminal 20.

中継サーバ50のプログラム挿入機能部51は、Webサービス提供装置40からテスト対象ページを受信したときに、当該テスト対象ページに、コマンド解釈・実行部22となるプログラム(例:スクリプトタグとスクリプト)を埋め込み、当該テスト対象ページをテスト実行端末20に転送する。この動作は、例えば、テスト対象ページをテスト実行端末20に転送する度に行う。   When the test insertion page is received from the Web service providing apparatus 40, the program insertion function unit 51 of the relay server 50 adds a program (eg, script tag and script) that becomes the command interpretation / execution unit 22 to the test target page. The test target page is embedded and transferred to the test execution terminal 20. This operation is performed every time the test target page is transferred to the test execution terminal 20, for example.

本例により、テスト対象ページに予めプログラムを埋め込んでいなくても、本実施の形態に係るテストを実行できる。
<グループ化機能>
前述したように、テスト実行端末20、テスト操作端末30はそれぞれ複数台存在してもよい。本例では、このように端末が複数台存在する環境において、端末をグループ化することができる。
According to this example, the test according to the present embodiment can be executed even if the program is not embedded in the test target page in advance.
<Grouping function>
As described above, a plurality of test execution terminals 20 and test operation terminals 30 may exist. In this example, terminals can be grouped in an environment where there are a plurality of terminals in this way.

この場合、例えば、制御装置10の記憶手段には、図7に示すようなグループ情報が格納され、Web通信制御部11が当該グループ情報に基づいて通信制御を行う。   In this case, for example, group information as illustrated in FIG. 7 is stored in the storage unit of the control device 10, and the Web communication control unit 11 performs communication control based on the group information.

図7に示すように、グループ情報は、グループ番号(ルームと呼んでもよい)毎に、当該グループに属するテスト実行端末、テスト操作端末が含まれる。ある端末がグループに属しているとは、当該端末が制御装置10とコネクションを確立し、当該グループに参加することを指定したことを意味する。   As shown in FIG. 7, the group information includes a test execution terminal and a test operation terminal belonging to the group for each group number (may be called a room). That a certain terminal belongs to a group means that the terminal establishes a connection with the control apparatus 10 and designates participation in the group.

例えば、テストを行う前の段階で、テスト操作端末30に表示されるテスト操作用ページ上には、上記のグループ情報に基づいて、グループ毎にグループに属する端末(端末の名前等)が表示されており、試験者は希望のグループを指定する。例えば、図7の例において、グループ1が指定されると、当該グループ情報の「テスト操作端末」としてグループ1に対応付けて「テスト操作端末30」が追加される。   For example, on the test operation page displayed on the test operation terminal 30 before the test is performed, the terminals (terminal names and the like) belonging to the group are displayed for each group based on the above group information. The tester specifies the desired group. For example, in the example of FIG. 7, when group 1 is designated, “test operation terminal 30” is added in association with group 1 as the “test operation terminal” of the group information.

本実施の形態では、制御装置10のWeb通信制御部11は、グループ情報を参照することで、同じグループに属する全てのテスト実行端末20にコマンドを配信する。   In the present embodiment, the Web communication control unit 11 of the control device 10 refers to the group information and distributes the command to all the test execution terminals 20 belonging to the same group.

例えば、テスト操作端末30がグループ1に参加した場合、図8に示すように、テスト操作端末30から送信され、制御装置10が受信したコマンドは、グループ1に属する全てのテスト実行端末20に配信され、各テスト実行端末20においてコマンドが実行される。   For example, when the test operation terminal 30 participates in the group 1, as shown in FIG. 8, the command transmitted from the test operation terminal 30 and received by the control device 10 is distributed to all the test execution terminals 20 belonging to the group 1. Then, the command is executed in each test execution terminal 20.

コマンドの実行結果は、各テスト実行端末20から送信され、制御装置10を介してテスト操作端末30に送信される。テスト操作端末30では、テスト操作用ページ上に、グループに属するテスト実行端末毎の実行結果が表示される。   The command execution result is transmitted from each test execution terminal 20 and transmitted to the test operation terminal 30 via the control device 10. In the test operation terminal 30, an execution result for each test execution terminal belonging to the group is displayed on the test operation page.

(実施の形態のまとめ、効果等)
上述したように、本実施の形態により、Webサービス提供装置により提供されるWebアプリケーションのテストを、テスト実行端末上で実行するためのテスト制御装置であって、前記テスト実行端末との間にネットワーク上でコネクションを確立するための通信制御手段と、前記テスト実行端末に表示される前記Webアプリケーションのテスト対象ページを操作するコマンドを、前記コネクションを介して前記テスト実行端末に送信するコマンド送信手段とを備えるテスト制御装置が提供される。
(Summary of the embodiment, effects, etc.)
As described above, according to the present embodiment, a test control apparatus for executing a test of a Web application provided by a Web service providing apparatus on a test execution terminal, the network being connected to the test execution terminal Communication control means for establishing a connection above, command transmission means for sending a command for operating a test target page of the Web application displayed on the test execution terminal to the test execution terminal via the connection, A test control device is provided.

前記通信制御手段は、例えば、前記テスト実行端末からのアクセスに応じて、Webページを前記テスト実行端末に送信し、当該テスト実行端末は、当該Webページに含まれるプログラムを実行することにより、前記制御装置との間のコネクションを確立する。   The communication control means, for example, transmits a web page to the test execution terminal in response to an access from the test execution terminal, and the test execution terminal executes the program included in the web page, thereby Establish a connection with the control device.

前記テスト対象ページは、例えば、前記コマンドを解釈し、実行するためのプログラムを含み、前記テスト実行端末において当該プログラムにより前記コマンドが解釈され、実行される。   The test target page includes, for example, a program for interpreting and executing the command, and the command is interpreted and executed by the program in the test execution terminal.

前記テスト制御装置は、テスト操作端末からのアクセスに応じて、当該テスト操作端末にテスト操作用ページを送信する手段を含んでもよく、前記コマンド送信手段は、当該テスト操作用ページ上で指定されたコマンドを前記テスト操作端末から受信し、当該コマンドを前記コネクションを介して前記テスト実行端末に送信する。   The test control device may include means for transmitting a test operation page to the test operation terminal in response to access from the test operation terminal, and the command transmission means is designated on the test operation page A command is received from the test operation terminal, and the command is transmitted to the test execution terminal via the connection.

前記テスト制御装置と複数のテスト実行端末との間にコネクションが確立されている場合に、前記コマンド送信手段は、当該複数のテスト実行端末に前記コマンドを一斉に配信することができる。前記コネクションは例えばWebSocketの通信手順により確立されるものである。   When a connection is established between the test control apparatus and a plurality of test execution terminals, the command transmission means can simultaneously distribute the commands to the plurality of test execution terminals. The connection is established by, for example, a WebSocket communication procedure.

また、本実施の形態により、Webサービス提供装置により提供されるWebアプリケーションのテストを、テスト実行端末上で実行するためのテスト制御装置と、前記Webサービス提供装置と前記テスト実行端末との間に備えられる中継装置とを備える通信システムであって、前記テスト制御装置は、前記テスト実行端末との間にネットワーク上でコネクションを確立するための通信制御手段と、前記テスト実行端末に表示される前記Webアプリケーションのテスト対象ページを操作するコマンドを、前記コネクションを介して前記テスト実行端末に送信するコマンド送信手段と、を備え、前記中継装置は、前記Webサービス提供装置から前記テスト対象ページを受信し、当該テスト対象ページにプログラムを埋め込み、当該プログラムが埋め込まれた前記テスト対象ページを前記テスト実行端末に送信するプログラム埋め込み手段を備え、前記テスト実行端末において当該プログラムにより前記コマンドが解釈され、実行されることを特徴とする通信システムが提供される。   Further, according to the present embodiment, a test control device for executing a test of a Web application provided by the Web service providing device on the test execution terminal, and between the Web service providing device and the test execution terminal. The test control device is a communication control means for establishing a connection on the network with the test execution terminal, and the test control device is displayed on the test execution terminal. Command transmitting means for transmitting a command for operating a test target page of a Web application to the test execution terminal via the connection, and the relay device receives the test target page from the Web service providing device. Embed the program in the test target page, Provided with a program embedding means for transmitting the test target page embedded with a program to the test execution terminal, wherein the command is interpreted and executed by the program in the test execution terminal. The

本実施の形態によれば、テスト実行端末20に予めエージェントソフト等をインストールすることなく、Webブラウザで制御装置10にアクセスするだけで、高負荷試験等を含むテストを簡易に実施することができる。また、複数のテスト実行端末20に同時にコマンドを送信することができるので、複数のテスト実行端末20で同時にテストを実施することも可能である。   According to the present embodiment, it is possible to easily perform a test including a high load test or the like by simply accessing the control device 10 with a Web browser without installing agent software or the like in the test execution terminal 20 in advance. . In addition, since a command can be transmitted to a plurality of test execution terminals 20 at the same time, it is possible to simultaneously perform tests on the plurality of test execution terminals 20.

明細書には以下の事項が開示されている。
(第1項)
Webサービス提供装置により提供されるWebアプリケーションのテストを、テスト実行端末上で実行するためのテスト制御装置であって、
前記テスト実行端末との間にネットワーク上でコネクションを確立するための通信制御手段と、
前記テスト実行端末に表示される前記Webアプリケーションのテスト対象ページを操作するコマンドを、前記コネクションを介して前記テスト実行端末に送信するコマンド送信手段と
を備えることを特徴とするテスト制御装置。
(第2項)
前記通信制御手段は、前記テスト実行端末からのアクセスに応じて、Webページを前記テスト実行端末に送信し、当該テスト実行端末は、当該Webページに含まれるプログラムを実行することにより、前記制御装置との間のコネクションを確立する
ことを特徴とする第1項に記載のテスト制御装置。
(第3項)
前記テスト対象ページは、前記コマンドを解釈し、実行するためのプログラムを含み、前記テスト実行端末において当該プログラムにより前記コマンドが解釈され、実行される
ことを特徴とする第1項又は第2項に記載のテスト制御装置。
(第4項)
前記テスト制御装置は、テスト操作端末からのアクセスに応じて、当該テスト操作端末にテスト操作用ページを送信する手段を含み、前記コマンド送信手段は、当該テスト操作用ページ上で指定されたコマンドを前記テスト操作端末から受信し、当該コマンドを前記コネクションを介して前記テスト実行端末に送信する
ことを特徴とする第1項ないし第3項のうちいずれか1項に記載のテスト制御装置。
(第5項)
前記テスト制御装置と複数のテスト実行端末との間にコネクションが確立されている場合に、前記コマンド送信手段は、当該複数のテスト実行端末に前記コマンドを一斉に配信する
ことを特徴とする第1項ないし第4項のうちいずれか1項に記載のテスト制御装置。
(第6項)
前記コネクションはWebSocketの通信手順により確立されることを特徴とする第1項ないし第5項のうちいずれか1項に記載のテスト制御装置。
(第7項)
コンピュータを、第1項ないし第6項のうちいずれか1項に記載のテスト制御装置として機能させるためのテスト制御プログラム。
(第8項)
Webサービス提供装置により提供されるWebアプリケーションのテストを、テスト実行端末上で実行するためのテスト制御装置と、前記Webサービス提供装置と前記テスト実行端末との間に備えられる中継装置とを備える通信システムであって、
前記テスト制御装置は、
前記テスト実行端末との間にネットワーク上でコネクションを確立するための通信制御手段と、
前記テスト実行端末に表示される前記Webアプリケーションのテスト対象ページを操作するコマンドを、前記コネクションを介して前記テスト実行端末に送信するコマンド送信手段と、を備え、
前記中継装置は、前記Webサービス提供装置から前記テスト対象ページを受信し、当該テスト対象ページにプログラムを埋め込み、当該プログラムが埋め込まれた前記テスト対象ページを前記テスト実行端末に送信するプログラム埋め込み手段を備え、前記テスト実行端末において当該プログラムにより前記コマンドが解釈され、実行される
ことを特徴とする通信システム。
(第9項)
Webサービス提供装置により提供されるWebアプリケーションのテストを、テスト実行端末上で実行するためのテスト制御装置が実行するテスト制御方法であって、
前記テスト実行端末との間にネットワーク上でコネクションを確立するコネクション確立ステップと、
前記テスト実行端末に表示される前記Webアプリケーションのテスト対象ページを操作するコマンドを、前記コネクションを介して前記テスト実行端末に送信するコマンド送信ステップと
を備えることを特徴とするテスト制御方法。
本発明は、上記の実施の形態に限定されることなく、特許請求の範囲内において、種々変更・応用が可能である。


The following items are disclosed in the specification.
(Section 1)
A test control apparatus for executing a test of a Web application provided by a Web service providing apparatus on a test execution terminal,
Communication control means for establishing a connection on the network with the test execution terminal;
Command transmitting means for transmitting a command for operating a test target page of the Web application displayed on the test execution terminal to the test execution terminal via the connection;
A test control device comprising:
(Section 2)
The communication control means transmits a Web page to the test execution terminal in response to an access from the test execution terminal, and the test execution terminal executes the program included in the Web page, thereby Establish a connection with
2. The test control apparatus according to item 1, wherein
(Section 3)
The test target page includes a program for interpreting and executing the command, and the command is interpreted and executed by the program in the test execution terminal.
The test control apparatus according to item 1 or 2, characterized by the above.
(Section 4)
The test control device includes means for transmitting a test operation page to the test operation terminal in response to an access from the test operation terminal, and the command transmission means receives a command designated on the test operation page. Receive from the test operation terminal and send the command to the test execution terminal via the connection
The test control apparatus according to any one of claims 1 to 3, wherein the test control apparatus is characterized in that:
(Section 5)
When a connection is established between the test control apparatus and a plurality of test execution terminals, the command transmission means distributes the command to the plurality of test execution terminals all at once.
The test control apparatus according to any one of Items 1 to 4, wherein the test control apparatus is characterized in that:
(Section 6)
The test control apparatus according to any one of claims 1 to 5, wherein the connection is established by a communication procedure of WebSocket.
(Section 7)
A test control program for causing a computer to function as the test control device according to any one of items 1 to 6.
(Section 8)
Communication comprising a test control device for executing a test of a Web application provided by a Web service providing device on a test execution terminal, and a relay device provided between the Web service providing device and the test execution terminal A system,
The test control device includes:
Communication control means for establishing a connection on the network with the test execution terminal;
Command transmitting means for transmitting a command for operating a test target page of the Web application displayed on the test execution terminal to the test execution terminal via the connection;
The relay device receives a test target page from the Web service providing device, embeds a program in the test target page, and transmits a test target page in which the program is embedded to the test execution terminal. And the command is interpreted and executed by the program in the test execution terminal.
A communication system characterized by the above.
(Section 9)
A test control method executed by a test control device for executing a test of a Web application provided by a Web service providing device on a test execution terminal,
A connection establishment step of establishing a connection with the test execution terminal on the network;
A command transmission step of transmitting a command for operating a test target page of the Web application displayed on the test execution terminal to the test execution terminal via the connection;
A test control method comprising:
The present invention is not limited to the above-described embodiments, and various modifications and applications are possible within the scope of the claims.


10 制御装置
20 テスト実行端末
30 テスト操作端末
40 Webサービス提供装置
11 Web通信制御部
12 ページデータ格納部
21 コマンド送受信部
22 コマンド解釈・実行部
23 Webページ部
50 中継サーバ
51 プログラム挿入機能部
DESCRIPTION OF SYMBOLS 10 Control apparatus 20 Test execution terminal 30 Test operation terminal 40 Web service provision apparatus 11 Web communication control part 12 Page data storage part 21 Command transmission / reception part 22 Command interpretation and execution part 23 Web page part 50 Relay server 51 Program insertion function part

Claims (12)

Webサービス提供装置により提供されるWebアプリケーションのテストを、テスト実行端末上で実行するためのテスト制御装置であって、
前記テスト実行端末との間にネットワーク上でコネクションを確立するための通信制御手段と、
前記テスト実行端末に表示される前記Webアプリケーションのテスト対象ページを操作するコマンドを、前記コネクションを介して前記テスト実行端末に送信するコマンド送信手段とを備え
前記テスト制御装置は、テスト操作端末からのアクセスに応じて、当該テスト操作端末にテスト操作用ページを送信する手段を含み、前記コマンド送信手段は、当該テスト操作用ページ上で指定されたコマンドを前記テスト操作端末から受信し、当該コマンドを前記コネクションを介して前記テスト実行端末に送信する
ことを特徴とするテスト制御装置。
A test control apparatus for executing a test of a Web application provided by a Web service providing apparatus on a test execution terminal,
Communication control means for establishing a connection on the network with the test execution terminal;
Command transmitting means for transmitting a command for operating a test target page of the Web application displayed on the test execution terminal to the test execution terminal via the connection ;
The test control device includes means for transmitting a test operation page to the test operation terminal in response to an access from the test operation terminal, and the command transmission means receives a command designated on the test operation page. A test control apparatus that receives the command from the test operation terminal and transmits the command to the test execution terminal via the connection .
Webサービス提供装置により提供されるWebアプリケーションのテストを、テスト実行端末上で実行するためのテスト制御装置であって、
前記テスト実行端末との間にネットワーク上でコネクションを確立するための通信制御手段と、
前記テスト実行端末に表示される前記Webアプリケーションのテスト対象ページを操作するコマンドを、前記コネクションを介して前記テスト実行端末に送信するコマンド送信手段とを備え
前記テスト制御装置と複数のテスト実行端末との間にコネクションが確立されている場合に、前記コマンド送信手段は、当該複数のテスト実行端末に前記コマンドを一斉に配信する
ことを特徴とするテスト制御装置。
A test control apparatus for executing a test of a Web application provided by a Web service providing apparatus on a test execution terminal,
Communication control means for establishing a connection on the network with the test execution terminal;
Command transmitting means for transmitting a command for operating a test target page of the Web application displayed on the test execution terminal to the test execution terminal via the connection ;
When the connection is established between the test control device and a plurality of test execution terminals, the command transmission means distributes the commands to the plurality of test execution terminals all at once. apparatus.
Webサービス提供装置により提供されるWebアプリケーションのテストを、テスト実行端末上で実行するためのテスト制御装置であって、
前記テスト実行端末との間にネットワーク上でコネクションを確立するための通信制御手段と、
前記テスト実行端末に表示される前記Webアプリケーションのテスト対象ページを操作するコマンドを、前記コネクションを介して前記テスト実行端末に送信するコマンド送信手段とを備え
前記コネクションはWebSocketの通信手順により確立される
ことを特徴とするテスト制御装置。
A test control apparatus for executing a test of a Web application provided by a Web service providing apparatus on a test execution terminal,
Communication control means for establishing a connection on the network with the test execution terminal;
Command transmitting means for transmitting a command for operating a test target page of the Web application displayed on the test execution terminal to the test execution terminal via the connection ;
The test control apparatus, wherein the connection is established by a WebSocket communication procedure .
前記テスト制御装置は、テスト操作端末からのアクセスに応じて、当該テスト操作端末にテスト操作用ページを送信する手段を含み、前記コマンド送信手段は、当該テスト操作用ページ上で指定されたコマンドを前記テスト操作端末から受信し、当該コマンドを前記コネクションを介して前記テスト実行端末に送信する
ことを特徴とする請求項2又は3に記載のテスト制御装置。
The test control device includes means for transmitting a test operation page to the test operation terminal in response to an access from the test operation terminal, and the command transmission means receives a command designated on the test operation page. The test control apparatus according to claim 2 , wherein the test control apparatus receives the command from the test operation terminal and transmits the command to the test execution terminal via the connection.
前記通信制御手段は、前記テスト実行端末からのアクセスに応じて、Webページを前記テスト実行端末に送信し、当該テスト実行端末は、当該Webページに含まれるプログラムを実行することにより、前記テスト制御装置との間のコネクションを確立する
ことを特徴とする請求項1ないし4のうちいずれか1項に記載のテスト制御装置。
The communication control means transmits a Web page to the test execution terminal in response to access from the test execution terminal, and the test execution terminal executes the program included in the Web page, thereby executing the test control. The test control apparatus according to any one of claims 1 to 4, wherein a connection with the apparatus is established.
前記テスト対象ページは、前記コマンドを解釈し、実行するためのプログラムを含み、前記テスト実行端末において当該プログラムにより前記コマンドが解釈され、実行される
ことを特徴とする請求項1ないし5のうちいずれか1項に記載のテスト制御装置。
The test page interprets the command, including a program for executing the said command by the program in the test execution terminal is interpreted, any of the claims 1, characterized in that it is performed 5 or test control device according to item 1.
コンピュータを、請求項1ないし6のうちいずれか1項に記載のテスト制御装置として機能させるためのテスト制御プログラム。   A test control program for causing a computer to function as the test control apparatus according to claim 1. 請求項1ないし6のうちいずれか1項に記載の前記テスト制御装置と、前記Webサービス提供装置と前記テスト実行端末との間に備えられる中継装置とを備える通信システムであって、
前記中継装置は、前記Webサービス提供装置から前記テスト対象ページを受信し、当該テスト対象ページにプログラムを埋め込み、当該プログラムが埋め込まれた前記テスト対象ページを前記テスト実行端末に送信するプログラム埋め込み手段を備え、前記テスト実行端末において当該プログラムにより前記コマンドが解釈され、実行される
ことを特徴とする通信システム。
A communication system comprising the test control device according to any one of claims 1 to 6, and a relay device provided between the Web service providing device and the test execution terminal,
The relay device receives a test target page from the Web service providing device, embeds a program in the test target page, and transmits a test target page in which the program is embedded to the test execution terminal. A communication system, wherein the command is interpreted and executed by the program in the test execution terminal.
Webサービス提供装置により提供されるWebアプリケーションのテストを、テスト実行端末上で実行するためのテスト制御装置が実行するテスト制御方法であって、
前記テスト実行端末との間にネットワーク上でコネクションを確立するコネクション確立ステップと、
前記テスト実行端末に表示される前記Webアプリケーションのテスト対象ページを操作するコマンドを、前記コネクションを介して前記テスト実行端末に送信するコマンド送信ステップとを備え
前記テスト制御装置は、テスト操作端末からのアクセスに応じて、当該テスト操作端末にテスト操作用ページを送信し、前記コマンド送信ステップにおいて、当該テスト操作用ページ上で指定されたコマンドを前記テスト操作端末から受信し、当該コマンドを前記コネクションを介して前記テスト実行端末に送信する
ことを特徴とするテスト制御方法。
A test control method executed by a test control device for executing a test of a Web application provided by a Web service providing device on a test execution terminal,
A connection establishment step of establishing a connection with the test execution terminal on the network;
A command transmission step of transmitting a command for operating a test target page of the Web application displayed on the test execution terminal to the test execution terminal via the connection ;
The test control device transmits a test operation page to the test operation terminal in response to access from the test operation terminal, and in the command transmission step, the command specified on the test operation page is transmitted to the test operation terminal. A test control method comprising: receiving from a terminal, and transmitting the command to the test execution terminal via the connection .
Webサービス提供装置により提供されるWebアプリケーションのテストを、テスト実行端末上で実行するためのテスト制御装置が実行するテスト制御方法であって、
前記テスト実行端末との間にネットワーク上でコネクションを確立するコネクション確立ステップと、
前記テスト実行端末に表示される前記Webアプリケーションのテスト対象ページを操作するコマンドを、前記コネクションを介して前記テスト実行端末に送信するコマンド送信ステップとを備え
前記テスト制御装置と複数のテスト実行端末との間にコネクションが確立されている場合に、前記コマンド送信ステップにおいて、前記テスト制御装置は、当該複数のテスト実行端末に前記コマンドを一斉に配信する
ことを特徴とするテスト制御方法。
A test control method executed by a test control device for executing a test of a Web application provided by a Web service providing device on a test execution terminal,
A connection establishment step of establishing a connection with the test execution terminal on the network;
A command transmission step of transmitting a command for operating a test target page of the Web application displayed on the test execution terminal to the test execution terminal via the connection ;
When a connection is established between the test control device and a plurality of test execution terminals, the test control device distributes the command to the plurality of test execution terminals simultaneously in the command transmission step. Test control method characterized by.
Webサービス提供装置により提供されるWebアプリケーションのテストを、テスト実行端末上で実行するためのテスト制御装置が実行するテスト制御方法であって、
前記テスト実行端末との間にネットワーク上でコネクションを確立するコネクション確立ステップと、
前記テスト実行端末に表示される前記Webアプリケーションのテスト対象ページを操作するコマンドを、前記コネクションを介して前記テスト実行端末に送信するコマンド送信ステップとを備え
前記コネクションはWebSocketの通信手順により確立される
ことを特徴とするテスト制御方法。
A test control method executed by a test control device for executing a test of a Web application provided by a Web service providing device on a test execution terminal,
A connection establishment step of establishing a connection with the test execution terminal on the network;
A command transmission step of transmitting a command for operating a test target page of the Web application displayed on the test execution terminal to the test execution terminal via the connection ;
The test control method, wherein the connection is established by a communication procedure of WebSocket .
前記テスト制御装置は、テスト操作端末からのアクセスに応じて、当該テスト操作端末にテスト操作用ページを送信し、前記コマンド送信ステップにおいて、当該テスト操作用ページ上で指定されたコマンドを前記テスト操作端末から受信し、当該コマンドを前記コネクションを介して前記テスト実行端末に送信する  The test control device transmits a test operation page to the test operation terminal in response to access from the test operation terminal, and in the command transmission step, the command specified on the test operation page is transmitted to the test operation terminal. Receive from the terminal and send the command to the test execution terminal via the connection
ことを特徴とする請求項10又は11に記載のテスト制御方法。The test control method according to claim 10 or 11, characterized in that:
JP2013260603A 2013-12-17 2013-12-17 Test control apparatus, communication system, test control method, and test control program Active JP6215033B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013260603A JP6215033B2 (en) 2013-12-17 2013-12-17 Test control apparatus, communication system, test control method, and test control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013260603A JP6215033B2 (en) 2013-12-17 2013-12-17 Test control apparatus, communication system, test control method, and test control program

Publications (2)

Publication Number Publication Date
JP2015118479A JP2015118479A (en) 2015-06-25
JP6215033B2 true JP6215033B2 (en) 2017-10-18

Family

ID=53531161

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013260603A Active JP6215033B2 (en) 2013-12-17 2013-12-17 Test control apparatus, communication system, test control method, and test control program

Country Status (1)

Country Link
JP (1) JP6215033B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271310B (en) * 2017-07-18 2022-07-05 北京京东尚科信息技术有限公司 Development testing method and device for network function of mobile application program

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002032338A (en) * 2000-07-19 2002-01-31 Nippon Telegraph & Telephone West Corp System and method for testing security hole and recording medium
JP2005182364A (en) * 2003-12-18 2005-07-07 Canon Software Inc Www relay server and information browsing time measurement method and program and recording medium
JP4295775B2 (en) * 2006-08-01 2009-07-15 株式会社日立情報システムズ GUI test support system and application program for test support
WO2012019639A1 (en) * 2010-08-10 2012-02-16 International Business Machines Corporation A method and system to automatically testing a web application
JP5507500B2 (en) * 2011-06-29 2014-05-28 ヤフー株式会社 Debugging system and debugging method

Also Published As

Publication number Publication date
JP2015118479A (en) 2015-06-25

Similar Documents

Publication Publication Date Title
US9910764B2 (en) Automated software testing
US10735449B2 (en) Methods and apparatuses for improved mobile app security testing via bridged native and web user interface interaction
KR102158754B1 (en) Method and apparatus for operating on smart network interface card
US20140331209A1 (en) Program Testing Service
US11245601B2 (en) Automated integrated test system and method thereof
CN107608901B (en) Jmeter-based testing method and device, storage medium and electronic equipment
JP2005531049A (en) Automatic application installation
US20140129620A1 (en) Indicating coverage of web application testing
CN105556483A (en) Real-time code instrumentation
CN108416021B (en) Browser webpage content processing method and device, electronic equipment and readable medium
JP5936103B2 (en) System, computer, method and program for calling Java method on client
CN114490383A (en) Remote debugging system, remote debugging method, computing device and readable medium
EP2959402B1 (en) Architecture for remote access to content state
CN107395747B (en) High-expansion method based on STF platform
CN112131095B (en) Pressure testing method and device
Huang et al. Remote mobile test system: a mobile phone cloud for application testing
US20140331205A1 (en) Program Testing Service
CN106708717B (en) A kind of exploitation adjustment method and device
CA2910977A1 (en) Program testing service
CN107102937B (en) User interface testing method and device
JP6215033B2 (en) Test control apparatus, communication system, test control method, and test control program
CN113434384B (en) Pressure testing method and device
CN112579447A (en) Browser testing method and device
CN107247661B (en) Method and system for supporting automatic verification of installation package of application
CN114915565A (en) Method and system for debugging network

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160705

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170511

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170530

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170731

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170920

R150 Certificate of patent or registration of utility model

Ref document number: 6215033

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250