JP6781688B2 - Programs, information processing equipment and screen test systems - Google Patents
Programs, information processing equipment and screen test systems Download PDFInfo
- Publication number
- JP6781688B2 JP6781688B2 JP2017239556A JP2017239556A JP6781688B2 JP 6781688 B2 JP6781688 B2 JP 6781688B2 JP 2017239556 A JP2017239556 A JP 2017239556A JP 2017239556 A JP2017239556 A JP 2017239556A JP 6781688 B2 JP6781688 B2 JP 6781688B2
- Authority
- JP
- Japan
- Prior art keywords
- screen
- test
- identification information
- displayed
- information
- 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
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Description
本発明は、プログラム、情報処理装置及び画面テストシステムに関する。 The present invention relates to a program, an information processing device and a screen test system.
システム開発において画面テストを自動化するツールは従来から知られている。例えばグラフィカルユーザーインターフェース(GUI)アプリケーションのテストでは、テスト支援装置を用い、ユーザの操作を記録し、その記録した操作をテスト支援装置が再現・検証することによって、テストの自動実行、すなわちテストの自動化を実現していた(例えば特許文献1参照)。 Tools for automating screen tests in system development have long been known. For example, in the testing of a graphical user interface (GUI) application, a test support device is used to record the user's operation, and the test support device reproduces and verifies the recorded operation to automatically execute the test, that is, to automate the test. (See, for example, Patent Document 1).
画面テストを自動化する従来のツールは、設定されたテストシナリオに従ってテスト対象のアプリケーションを動作させることでテストを行っている。例えば画面テストで利用されるテストシナリオには、テスト対象のアプリケーションの画面へのユーザ操作がスクリプトにより設定されていた。したがって、従来のツールを利用して画面テストを自動化する為にはスクリプトの知識が必要という問題があった。 Traditional tools that automate screen testing perform testing by running the application under test according to a set test scenario. For example, in the test scenario used in the screen test, the user operation on the screen of the application to be tested was set by the script. Therefore, there is a problem that knowledge of scripts is required to automate screen tests using conventional tools.
上記した特許文献1には、テスト実行者が行う対象アプリケーションへの操作をテストスクリプトとして保存する内容が記載されている。しかしながら、上記した特許文献1の内容では、テスト対象の画面に表示されているオブジェクトにIDが付与されていない場合に、そのオブジェクトの指定をディスプレイ上の座標などで行う必要があり、ウインドウサイズなどに依存する汎用性に乏しいテストシナリオ(テスト手順)になってしまうという問題があった。
The above-mentioned
本発明は、汎用性の高いテスト手順の作成と、作成したテスト手順による画面テストとを実現できるプログラム、情報処理装置及び画面テストシステムを提供することを目的とする。 An object of the present invention is to provide a program, an information processing apparatus, and a screen test system capable of creating a highly versatile test procedure and performing a screen test by the created test procedure.
上記した課題を解決するために本願請求項1のプログラムは、コンピュータに、テスト対象の第1の画面に表示されているオブジェクトを指定したテスト手順作成指示のための操作をユーザから受け付ける受付ステップ、前記第1の画面に表示されているオブジェクトに第2の識別情報が設定されていない場合に、前記第1の画面に表示されているオブジェクトの位置情報を取得し、前記位置情報により決めた順位に従って前記オブジェクトに採番を行い、採番した第1の識別情報を前記オブジェクトに設定する設定ステップ、前記第1の識別情報又は前記第2の識別情報が前記オブジェクトの特定情報として指定されている1つ以上の前記オブジェクトに対するテスト手順を前記オブジェクトに対する操作内容から作成する作成ステップ、前記第1の画面と同じ構造であって、前記第1の画面で作成された前記テスト手順で画面テストを行うことが可能なテスト対象の第2の画面を表示し、前記テスト手順で指定された前記特定情報により前記第2の画面に表示されているオブジェクトを特定できれば、前記第2の識別情報が前記オブジェクトの特定情報として指定されている前記テスト手順に従って前記第2の画面の画面テストを行い、前記特定情報により前記オブジェクトを特定できなければ、前記設定ステップと同様に前記第2の画面に表示されているオブジェクトに採番を行い、採番した第1の識別情報を前記オブジェクトに設定し、前記第1の識別情報が前記オブジェクトの特定情報として指定されている前記テスト手順に従って前記第2の画面の画面テストを行う実行ステップ、を実行させるためのプログラムであることを特徴とする。
In order to solve the above-mentioned problems, the program of
本発明によれば、汎用性の高いテスト手順の作成と、作成したテスト手順による画面テストとを実現できる。 According to the present invention, it is possible to create a highly versatile test procedure and to perform a screen test using the created test procedure.
以下、本発明の実施形態について図面を参照しながら説明する。
[第1の実施形態]
<システム構成>
図1は、本実施形態に係る画面テストシステムの一例の構成図である。本実施形態に係る画面テストシステムは、図1(A)に示すように一台の情報処理装置1により構成されてもよいし、図1(B)に示すように複数台の情報処理装置2及び3により構成されてもよい。図1(B)の画面テストシステムではサーバ装置として機能する情報処理装置2とクライアント装置として機能する情報処理装置3とがローカルエリアネットワーク(LAN)やインターネットなどのネットワーク4を介してデータ通信可能に接続されている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[First Embodiment]
<System configuration>
FIG. 1 is a configuration diagram of an example of a screen test system according to the present embodiment. The screen test system according to the present embodiment may be configured by one
図1(A)の情報処理装置1は、画面テストを行うユーザが操作する端末装置の一例であり、パーソナルコンピュータ(PC)やスマートデバイス、携帯電話等である。例えば図1(A)の画面テストシステムは情報処理装置1にダウンロードし、情報処理装置1で実行するクライアントアプリの画面テストや、WebブラウザからWebサービスを介して実行されるWebアプリの画面テストに適用できる。
The
図1(B)の情報処理装置2はWebアプリを実行するサーバ装置の一例であり、PCやワークステーション、メインフレーム等である。また、情報処理装置3は画面テストを行うユーザが操作するクライアント装置の一例であって、PCやスマートデバイス、携帯電話等である。情報処理装置3はWebブラウザが搭載されており、そのWebブラウザからWebサービスを介してWebアプリを操作する。例えば図1(B)の画面テストシステムはWebアプリの画面テストや、クライアントアプリの画面テストに適用できる。
The
なお、図1の画面テストシステムは一例であって、用途や目的に応じて様々なシステム構成例があることは言うまでもない。例えば図1(B)の画面テストシステムではサーバ装置として機能する情報処理装置2が一台の例であるが、複数台であってもよく、様々な構成が可能である。
It should be noted that the screen test system of FIG. 1 is an example, and it goes without saying that there are various system configuration examples depending on the application and purpose. For example, in the screen test system of FIG. 1B, the
<ハードウェア構成>
図1の画面テストシステムの情報処理装置1、2及び3は例えば図2のハードウェア構成のコンピュータにより実現される。図2はコンピュータの一例のハードウェア構成図である。
<Hardware configuration>
The
図2に示したコンピュータ500は、入力装置501、表示装置502、外部I/F503、RAM504、ROM505、CPU506、通信I/F507及びHDD508などを備え、それぞれがバスBで相互に接続されている。なお、入力装置501及び表示装置502は必要なときに接続して利用する形態であってもよい。
The
入力装置501はキーボードやマウス、タッチパネルなどであり、ユーザ等が各操作信号を入力するのに用いられる。表示装置502はディスプレイ等であり、コンピュータ500による処理結果を表示する。通信I/F507はコンピュータ500をネットワーク4に接続するインタフェースである。HDD508は、プログラムやデータを格納している不揮発性の記憶装置の一例である。
The
外部I/F503は、外部装置とのインタフェースである。コンピュータ500は外部I/F503を介してSDメモリカードなどの記録媒体503aの読み取り及び/又は書き込みを行うことができる。ROM505は、プログラムやデータが格納された不揮発性の半導体メモリ(記憶装置)の一例である。RAM504はプログラムやデータを一時保持する揮発性の半導体メモリ(記憶装置)の一例である。
The external I /
CPU506は、ROM505やHDD508などの記憶装置からプログラムやデータをRAM504上に読み出し、処理を実行することで、コンピュータ500全体の制御や機能を実現する演算装置である。図1の画面テストシステムの情報処理装置1、2及び3は例えば図2のコンピュータ500のハードウェア構成により、後述するような各種機能を実現できる。
The
<ソフトウェア構成>
以下では図1(A)の画面テストシステムの場合のソフトウェア構成を一例として説明する。図1(A)の画面テストシステムの情報処理装置1は、例えば図3のソフトウェア構成により実現される。
<Software configuration>
Hereinafter, the software configuration in the case of the screen test system of FIG. 1A will be described as an example. The
図3は本実施形態に係る画面テストシステムの一例のソフトウェア構成図である。図3の情報処理装置1は入力補助ツール10、テスト対象アプリ12及び画面テストツール14が搭載されている。入力補助ツール10は画面テストを実行するために必要なテストシナリオの作成を後述のように補助するツールである。テスト対象アプリ12は画面テストを実行するテスト対象のアプリである。画面テストツール14はテストシナリオに従ってテスト対象アプリ12の画面テストを後述のように行うツールである。なお、図3に示したソフトウェア構成は一例であって、例えば入力補助ツール10及び画面テストツール14が一体化された構成や、入力補助ツール10及び画面テストツール14が細分化された構成であってもよい。なお、入力補助ツール10及び画面テストツール14により実現される機能ブロックについては、後述する。
FIG. 3 is a software configuration diagram of an example of the screen test system according to the present embodiment. The
<処理>
本実施形態に係る画面テストシステムは、例えば図4に示すような手順でテスト対象のアプリの画面テストを行う。図4は本実施形態に係る画面テストシステムの処理の一例のフローチャートである。
<Processing>
The screen test system according to the present embodiment performs a screen test of the application to be tested by a procedure as shown in FIG. 4, for example. FIG. 4 is a flowchart of an example of processing of the screen test system according to the present embodiment.
ステップS11においてユーザは入力補助ツール10を利用し、テスト対象アプリ12の画面テストに必要なテストシナリオの作成を行う。入力補助ツール10はテスト対象の画面(第1の画面)をキャプチャすることで、その画面に表示されているオブジェクト(画面項目)を特定して後述のようにテストシナリオを設定できる。
In step S11, the user uses the input assist
ステップS12においてユーザは画面テストツール14に対して画面テスト実行の指示を行い、画面テストツール14にステップS11で作成したテストシナリオに従った画面テストを行わせる。画面テストツール14はテストシナリオに従い、テスト対象アプリ12の画面(第2の画面)への操作を後述のように行う。
In step S12, the user instructs the
ステップS13において画面テストツール14はテスト対象アプリ12への画面テストの結果(テスト結果画像やテスト結果レポートなど)を出力する。なお、ステップS11で作成したテストシナリオは保存しておくことができる。保存しておいたテストシナリオを利用する場合はステップS11の処理が省略される。
In step S13, the
なお、図4の手順は一例であって、ステップS11の入力補助ツール10を利用したテストシナリオ設定処理に替えて、ユーザが表形式で表されるテストシナリオを手入力するようにしてもよい。この場合は、予め決まっている後述のIDを手入力するか、テスト対象の画面に表示されているオブジェクト(画面項目)の順番を出力するツールに出力させたIDを手入力する。
Note that the procedure of FIG. 4 is an example, and the user may manually input the test scenario represented in the tabular format instead of the test scenario setting process using the input assist
《ステップS11の詳細》
図5は入力補助ツールを利用したテストシナリオ設定処理の一例の説明図である。図5の入力補助ツール10は、テスト対象アプリ指定部22、オブジェクト操作受付部24、オブジェクト情報処理部26及びテストシナリオ出力部28を有する構成である。
<< Details of step S11 >>
FIG. 5 is an explanatory diagram of an example of the test scenario setting process using the input assist tool. The
テスト対象アプリ指定部22は例えば図6(A)に示すようなテスト対象アプリ12の画面(テスト対象画面1000)を指定する。また、テストシナリオ出力部28は図6(B)に示すようなテストシナリオ画面1100の表示を制御する。図6はテスト対象画面及びテストシナリオ画面の一例のイメージ図である。
The test target
オブジェクト操作受付部24は例えば図6(A)に示すテスト対象画面1000に表示されている入力欄への入力やボタンのクリックなどの操作(オブジェクト操作)をユーザから受け付ける。図6(A)のテスト対象画面は「ユーザID:」の入力欄1001に対してユーザが「f000001」を入力した例を示している。
The object
オブジェクト情報処理部26はテスト対象画面1000をキャプチャすることで、テスト対象画面1000に表示された入力欄やボタンなどのオブジェクトに関する情報を取得する。オブジェクトに関する情報は、オブジェクトのID、オブジェクトのタイプ、オブジェクトの画面上の位置情報、オブジェクトの入力値などである。なお、テスト対象画面1000に表示されたオブジェクトはIDが振られていない場合もある。IDが振られていないオブジェクトの場合は、オブジェクトに関する情報にオブジェクトのIDが含まれていない。
By capturing the
オブジェクト情報処理部26は、取得したオブジェクトに関する情報にオブジェクトのIDが含まれていなければ、独自ルールでIDを決め、そのIDをオブジェクトに付与する。オブジェクト情報処理部26が利用する独自ルールは、画面の構造(オブジェクトの配置順など)が同じであれば、画面のサイズ、画面を表示する情報処理装置1の種類又は画面の構造について記述するプログラミング言語等の違いに関わらず、同一のIDに決まるルールである。例えばオブジェクト情報処理部26が利用する独自ルールでは、一意に定まる識別子になるようにIDを採番する。また、オブジェクト情報処理部26が利用する独自ルールでは、オブジェクトのタイプごとの連番となるようにIDを採番してもよく、全体連番となるようにIDを採番してもよい。さらに、オブジェクト情報処理部26が利用する独自ルールでは、複数のオブジェクトに紛らわしいIDが採番されていた場合、区別が付くようにIDの末尾に別途、識別子を付与することもできる。なお、独自ルールの詳細は後述する。
If the acquired information about the object does not include the ID of the object, the object information processing unit 26 determines the ID according to its own rule and assigns the ID to the object. The original rule used by the object information processing unit 26 is programming that describes the size of the screen, the type of the
テストシナリオ出力部28はオブジェクト操作受付部24が受け付けたオブジェクト操作に基づくテストシナリオを例えば図6(B)のようにテストシナリオ画面1100に表示する。図6(B)のテストシナリオ画面1100は、オブジェクト情報処理部26が取得したオブジェクトに関する情報にオブジェクトのIDが含まれていた場合の例である。
The test
図6(B)のテストシナリオ画面1100に表されたテストシナリオはID「loginUserId」が付与されているオブジェクトに値「f000001」を入力する操作が設定されたものである。
In the test scenario shown on the
一方、オブジェクト情報処理部26が取得したオブジェクトに関する情報にオブジェクトのIDが含まれていなかった場合、テストシナリオ出力部28はオブジェクト操作受付部24が受け付けたオブジェクト操作に基づくテストシナリオを例えば図7(B)のようにテストシナリオ画面1200に表示する。図7はオブジェクトに関する情報にオブジェクトのIDが含まれていなかった場合のテストシナリオ画面の一例のイメージ図である。
On the other hand, when the information about the object acquired by the object information processing unit 26 does not include the object ID, the test
図7(A)のオブジェクトに関する情報は、name属性及びid属性の値が設定されていない。そこで、オブジェクト情報処理部26は独自ルールでID「.1」を決め、そのIDをオブジェクトに付与する。結果として、図7(B)のテストシナリオ画面1200に表されたテストシナリオは、ID「.1」が付与されているオブジェクトに値「f000001」を入力する操作が設定されたものとなる。
In the information about the object of FIG. 7A, the values of the name attribute and the id attribute are not set. Therefore, the object information processing unit 26 determines the ID ".1" according to its own rule, and assigns the ID to the object. As a result, in the test scenario shown on the
図8は、入力補助ツールを利用したテストシナリオ設定処理の一例のフローチャートである。ステップS31において、ユーザは例えば図6(A)に示すテスト対象画面1000の入力欄1001に「f000001」を入力したあと、テストシナリオ作成指示のための操作(例えば入力欄1001の位置にマウスカーソルを移動して「Ctrl+Shift+z」キーを押下するなど)を行う。入力補助ツール10のオブジェクト操作受付部24はオブジェクトを指定したテストシナリオ作成指示のための操作を受け付ける。
FIG. 8 is a flowchart of an example of the test scenario setting process using the input assist tool. In step S31, for example, after inputting "f000001" in the
ステップS32に進み、入力補助ツール10のオブジェクト情報処理部26はテストシナリオ作成指示のための操作を受け付けたオブジェクト(例えば入力欄1001)に関する情報を取得する。ステップS33に進み、オブジェクト情報処理部26はオブジェクトに関する情報からオブジェクトのタイプ(ButtonやText等)を取得し、オブジェクトのタイプに応じた操作とオブジェクトの入力値とを決定する。
Proceeding to step S32, the object information processing unit 26 of the input assist
ステップS34に進み、オブジェクト情報処理部26はステップS32で取得したオブジェクトに関する情報に基づき、テストシナリオ作成指示のための操作を受け付けたオブジェクトにIDが振られている(付与されている)か否かを判定する。テストシナリオ作成指示のための操作を受け付けたオブジェクトにIDが振られていれば、テストシナリオ出力部28はステップS35に進み、項目ID列にIDを指定、かつ、ステップS33で決定した操作及びオブジェクトの入力値を操作列及び値列に指定する。そして、テストシナリオ出力部28は図6(B)に示すテストシナリオ画面1100を表示する。
Proceeding to step S34, the object information processing unit 26 determines whether or not an ID is assigned (assigned) to the object that has received the operation for the test scenario creation instruction based on the information about the object acquired in step S32. To judge. If an ID is assigned to the object that has received the operation for the test scenario creation instruction, the test
テストシナリオ作成指示のための操作を受け付けたオブジェクトにIDが振られていなければ、オブジェクト情報処理部26はステップS36に進み、テスト対象アプリ12の画面に表示されている全てのオブジェクトに関する情報と位置情報(相対座標)を取得する。ステップS37に進み、オブジェクト情報処理部26はステップS36で取得したオブジェクトから採番対象のオブジェクトを決定する。例えばオブジェクト情報処理部26は予めIDありのオブジェクトを採番対象として含めてもよいし、採番対象から削除するようにしてもよい。
If no ID is assigned to the object that has received the operation for creating the test scenario, the object information processing unit 26 proceeds to step S36, and the information and position regarding all the objects displayed on the screen of the
例えばオブジェクト情報処理部26は、予めIDありのオブジェクトを含め、全てのオブジェクトを採番対象とする。オブジェクト情報処理部26は予めIDありのオブジェクトの予めのIDを退避用のキャッシュ(一時領域)に退避させておく。 For example, the object information processing unit 26 targets all objects, including objects having an ID in advance, for numbering. The object information processing unit 26 saves the advance ID of the object having an ID in the cache (temporary area) for saving in advance.
ステップS38に進み、オブジェクト情報処理部26は例えばX軸、Y軸の順で優先順位を決め、採番対象のオブジェクトのタイプごとに採番を行う。採番後、オブジェクト情報処理部26は退避用のキャッシュ(一時領域)に退避させておいた、予めIDを予めIDありのオブジェクトに採用する。 Proceeding to step S38, the object information processing unit 26 determines priorities in the order of, for example, the X-axis and the Y-axis, and performs numbering for each type of object to be numbered. After the numbering, the object information processing unit 26 adopts the ID saved in the cache (temporary area) for saving in advance for the object having the ID in advance.
例えばオブジェクト情報処理部26は予めID「なし」、「Login」及び「なし」のオブジェクトに一旦「.1」「.2」「.3」を採番し、退避させておいた予めID「Login」を適用することで、「.1」「Login」「.3」のIDを採用できる。 For example, the object information processing unit 26 assigns ".1", ".2", and ".3" to the objects with IDs "None", "Login", and "None" in advance, and saves them in advance with the ID "Login". By applying ".1", ".1", "Login", and ".3" IDs can be adopted.
また、オブジェクト情報処理部26はステップS36で取得したオブジェクトのうち、予めIDありのオブジェクトを採番対象から削除してもよい。この場合、オブジェクト情報処理部26は予めID「Login」のオブジェクトを採番対象から除外し、予めID「なし」のオブジェクトに「.1」「.2」を採番することで、「.1」「Login」「.2」のIDを採用できる。また、オブジェクト情報処理部26は予めIDの列とステップS38で採番したIDの列とを両方設け、別の項目IDとして扱うようにしてもよい。この場合は、画面テスト実行時に予めIDが変わっていた場合などに、採番したIDを利用できる。 Further, the object information processing unit 26 may delete the object having an ID in advance from the numbering targets among the objects acquired in step S36. In this case, the object information processing unit 26 excludes the object with the ID "Login" from the numbering target in advance, and assigns ".1" and ".2" to the object with the ID "none" in advance to obtain ".1". "Login" ".2" ID can be adopted. Further, the object information processing unit 26 may provide both an ID column and an ID column numbered in step S38 in advance and treat them as different item IDs. In this case, the numbered ID can be used when the ID has changed in advance when the screen test is executed.
ステップS39に進み、テストシナリオ出力部28は項目ID列にステップS38で採番したIDを指定、かつ、ステップS33で決定した操作及びオブジェクトの入力値を操作列及び値列に指定する。そして、テストシナリオ出力部28は図7(B)に示すテストシナリオ画面1200を表示する。ユーザは図8の入力補助ツールを利用したテストシナリオ設定処理を1回以上行うことによりテストシナリオを設定できる。
Proceeding to step S39, the test
《ステップS12及びS13の詳細》
図9は画面テスト実行処理及びテスト結果出力処理の一例の説明図である。図9の画面テストツール14は、テストシナリオ設定受付部52、テスト実行要求処理部54及びテスト結果出力部56を有する構成である。
<< Details of Steps S12 and S13 >>
FIG. 9 is an explanatory diagram of an example of the screen test execution process and the test result output process. The
テストシナリオ設定受付部52は例えば図10に示すようなテストシナリオ設定画面1300の表示を制御する。図10はテストシナリオ設定画面の一例のイメージ図である。テストシナリオ設定受付部52は例えば図10のテストシナリオ設定画面1300へのテストシナリオ設定操作をユーザから受け付ける。なお、ユーザは図6(B)に示したテストシナリオ画面1100又は図7(B)に示したテストシナリオ画面1200に表示されたテストシナリオをコピーし、テストシナリオ設定画面1300に貼り付けることで、テストシナリオ設定操作を行ってもよい。
The test scenario setting
テスト実行要求処理部54は、例えば図10のテストシナリオ設定画面1300のテスト実行ボタン1302の押下など、ユーザから画面テスト実行の指示を受け付ける。テスト実行要求処理部54はライブラリ62のデータを読み出し、テストシナリオに従ったテストコードを生成する。テスト実行要求処理部54は生成したテストコードをコンパイルする。
The test execution
テスト実行要求処理部54はコンパイルした画面テストモジュールを実行することで、テストシナリオに従った画面テストを行う。テスト結果出力部56はテスト対象アプリ12への画面テストの結果(テスト結果画像ファイル64やテスト結果レポート66など)を出力する。
The test execution
なお、テスト実行要求処理部54が行う画面テストは、様々なテストシナリオに基づくテストが想定されるが、ここではユーザIDとパスワードとをログイン画面に入力し、検索画面に検索条件を入力し、検索結果画面で検索結果を確認する例を説明する。
The screen test performed by the test execution
図11はログイン画面の一例のイメージ図である。図12は検索画面の一例のイメージ図である。図13は検索結果画面の一例のイメージ図である。例えばテスト実行要求処理部54は図10に表示されているテストシナリオに基づき、画面テストを行う。テスト実行要求処理部54は図11のログイン画面にユーザIDとパスワードとを入力してログインボタンのクリック操作を行うことで図12の検索画面に遷移させる。
FIG. 11 is an image diagram of an example of the login screen. FIG. 12 is an image diagram of an example of the search screen. FIG. 13 is an image diagram of an example of the search result screen. For example, the test execution
テスト実行要求処理部54は図12の検索画面のクリアボタンをクリックし、対象月度のドロップダウンから「2017/01」を選択し、氏名「1」を入力することで検索条件を入力し、検索ボタンのクリック操作を行うことでテスト対象アプリ12に検索を実行させることで、図13の検索結果画面に遷移させる。
The test execution
テスト実行要求処理部54は図13の検索結果画面に表示された検索結果の項目の値に「100001」が含まれているか否かを検証する。図10のテストシナリオは検証項目の一例として「あいまい検証」の例が示されている。検証項目は、画面テストの結果が正しいか否かの検証に使用される情報の一例である。
The test execution
全てのテストシナリオが終了すると、テスト結果出力部56は例えば図14のようなテスト結果レポート66を画面に表示する。図14はテスト結果レポートが表示された画面の一例のイメージ図である。図14のテスト結果レポート66は画面テストごとにテスト結果が表示される。テスト結果レポート66はテストシナリオのどこで失敗したかを表示する。また、本件実施形態はテストシナリオが表形式であるため(例えば、失敗時のレポートに「仕様書の9行目」(図14参照)とあれば、表形式のテストシナリオの9行目を見れば済み)、失敗箇所を追いやすいというメリットもある。図14の「画面テストB」の画面テストは、画面テストの結果が正しくなかった場合の例を表しており、正しくない理由が記載されている。また、図14のテスト結果レポート66はテスト結果画像を表示する画面へのリンク67を設け、そのリンク67がクリックされた場合に、テスト結果画像ファイル64を表示する。なお、テスト結果レポート66はリンク67がクリックされた場合、失敗時のテスト結果画像ファイル64だけでなく、成功時のテスト結果画像ファイル64、又は、失敗時及び成功時のテスト結果画像ファイル64、を一覧表示してもよい。
When all the test scenarios are completed, the test
また、図15は画面テスト実行処理及びテスト結果出力処理の一例のフローチャートである。ステップS51においてテスト実行要求処理部54は、例えば図10のテストシナリオ設定画面1300のテスト実行ボタン1302の押下など、ユーザから画面テスト実行の指示を受け付ける。
Further, FIG. 15 is a flowchart of an example of the screen test execution process and the test result output process. In step S51, the test execution
ステップS52に進み、テスト実行要求処理部54はテストシナリオで指定された項目IDを使ってテスト対象アプリ12の画面に表示されているオブジェクトを取得できるか否かを判定する。取得できなければテスト実行要求処理部54はテストシナリオの項目IDに指定されている値を、入力補助ツール10によって採番された番号(第1の識別情報)と判断する。また、テスト実行要求処理部54はテスト対象アプリ12の画面から全てのオブジェクトに関する情報と、その相対座標を取得する。ステップS54に進み、テスト実行要求処理部54はステップS53で取得したオブジェクトから採番対象のオブジェクトを決定する。例えばオブジェクト情報処理部26は図8のステップS37と同様に、予めIDありのオブジェクトを採番対象として含めてもよいし、採番対象から削除するようにしてもよい。
Proceeding to step S52, the test execution
ステップS55に進み、テスト実行要求処理部54は入力補助ツール10の採番ルールと同様に、例えばX軸、Y軸の順で優先順位を決め、オブジェクトのタイプごとの採番を行う。ステップS56に進み、テスト実行要求処理部54はテストシナリオの項目IDに指定されている値(第1の識別情報又は第2の識別情報)を基に、ステップS55で採番した番号(第1の識別情報)のうち、番号が一致するものを特定し、ステップS57に進む。なお、ステップS52において、テストシナリオで指定された項目IDを使ってテスト対象アプリ12の画面に表示されているオブジェクトを特定できれば、テスト実行要求処理部54はステップS57に進む。
Proceeding to step S55, the test execution
ステップS57において、テスト実行要求処理部54は特定できたオブジェクトに対してテストシナリオで指定された操作または検証と値とを使用して実操作処理(クリックや入力など)を行う。ステップS58に進み、テスト結果出力部56はテスト対象アプリ12の画面のテスト結果画像ファイル64を保存する。ステップS58に進み、テスト結果出力部56はテストシナリオが終了したか否かを判定する。ステップS52〜S59の処理はテストシナリオが終了するまで繰り返し行われる。テストシナリオが終了したと判定すると、テスト結果出力部56はステップS60に進み、各操作や検証が正しかったか否かを例えばHTMLのテスト結果レポート66として出力する。
In step S57, the test execution
以上、本実施形態によれば、アプリケーションパッケージの改修や、マイグレーション案件における繰り返し画面テストや、新旧比較の画面テスト等において、画面のサイズ、画面を表示する情報処理装置1の種類又は画面の構造について記述するプログラミング言語の違いに依存しない汎用性の高いテストシナリオの作成と、そのテストシナリオによる画面テストとを実現できる。
As described above, according to the present embodiment, the screen size, the type of the
なお、マイグレーション案件は、ソフトウェアやシステム、データなどを別の環境に移転したり、新しい環境に切り替えたりする案件である。マイグレーション案件は、マイグレーション作業前とマイグレーション作業後とでユーザの操作感が変わらないように画面の構造が同じになる場合が多い。 A migration project is a project for transferring software, systems, data, etc. to another environment or switching to a new environment. In many cases, the screen structure of a migration project is the same so that the user's operability does not change before and after the migration work.
したがって、マイグレーション案件では、マイグレーション作業前とマイグレーション作業後とでテストシナリオに変化が無い場合が多く、マイグレーション作業前の画面でテストシナリオを作成しておき、そのテストシナリオをマイグレーション作業後の画面テストで利用できる。このように、本実施形態はマイグレーション案件など、同じ画面テストを繰り返し行うような場合に、特に優れた効果を奏する。また、本実施形態はテストシナリオが表形式で表示されるので、テストシナリオの修正が容易であるという優れた効果も奏する。 Therefore, in migration projects, there are many cases where there is no change in the test scenario before and after the migration work, so create a test scenario on the screen before the migration work and use that test scenario in the screen test after the migration work. Available. As described above, this embodiment is particularly effective when the same screen test is repeated, such as in a migration project. In addition, since the test scenarios are displayed in a table format in this embodiment, the excellent effect that the test scenarios can be easily modified is also obtained.
[その他の実施形態]
上記した第1の実施形態では、図1(A)の画面テストシステムの場合の例を説明したが図1(B)の画面テストシステムであってもよい。
[Other Embodiments]
In the first embodiment described above, an example in the case of the screen test system of FIG. 1 (A) has been described, but the screen test system of FIG. 1 (B) may be used.
本発明は、具体的に開示された上記の実施形態に限定されるものではなく、特許請求の範囲から逸脱することなく、種々の変形や変更が可能である。なお、本実施形態で説明した画面テストシステムは一例であって、用途や目的に応じて様々なシステム構成例があることは言うまでもない。なお、特許請求の範囲に記載した「テスト手順作成指示のための操作」は第1の実施形態の「テストシナリオ作成指示のための操作」に相当し、ステップS31で例示した入力欄1001の位置にマウスカーソルを移動して「Ctrl+Shift+z」キーを押下する操作の他、入力欄への入力やボタンのクリックなどの操作(オブジェクト操作)であってもよい。
The present invention is not limited to the above-described embodiments specifically disclosed, and various modifications and modifications can be made without departing from the scope of claims. It goes without saying that the screen test system described in this embodiment is an example, and there are various system configuration examples depending on the application and purpose. The "operation for instruction to create a test procedure" described in the claims corresponds to the "operation for instruction to create a test scenario" of the first embodiment, and the position of the
1,2,3 情報処理装置
4 ネットワーク
10 入力補助ツール
12 テスト対象アプリ
14 画面テストツール
22 テスト対象アプリ指定部
24 オブジェクト操作受付部
26 オブジェクト情報処理部
28 テストシナリオ出力部
52 テストシナリオ設定受付部
54 テスト実行要求処理部
56 テスト結果出力部
62 ライブラリ
64 テスト結果画像ファイル
66 テスト結果レポート
1000 テスト対象画面
1100,1200 テストシナリオ画面
1300 テストシナリオ設定画面
1302 テスト実行ボタン
1, 2, 3
Claims (9)
テスト対象の第1の画面に表示されているオブジェクトを指定したテスト手順作成指示のための操作をユーザから受け付ける受付ステップ、
前記第1の画面に表示されているオブジェクトに第2の識別情報が設定されていない場合に、前記第1の画面に表示されているオブジェクトの位置情報を取得し、前記位置情報により決めた順位に従って前記オブジェクトに採番を行い、採番した第1の識別情報を前記オブジェクトに設定する設定ステップ、
前記第1の識別情報又は前記第2の識別情報が前記オブジェクトの特定情報として指定されている1つ以上の前記オブジェクトに対するテスト手順を前記オブジェクトに対する操作内容から作成する作成ステップ、
前記第1の画面と同じ構造であって、前記第1の画面で作成された前記テスト手順で画面テストを行うことが可能なテスト対象の第2の画面を表示し、前記テスト手順で指定された前記特定情報により前記第2の画面に表示されているオブジェクトを特定できれば、前記第2の識別情報が前記オブジェクトの特定情報として指定されている前記テスト手順に従って前記第2の画面の画面テストを行い、前記特定情報により前記オブジェクトを特定できなければ、前記設定ステップと同様に前記第2の画面に表示されているオブジェクトに採番を行い、採番した第1の識別情報を前記オブジェクトに設定し、前記第1の識別情報が前記オブジェクトの特定情報として指定されている前記テスト手順に従って前記第2の画面の画面テストを行う実行ステップ、
を実行させるためのプログラム。 On the computer
A reception step that accepts from the user an operation for creating a test procedure that specifies the object displayed on the first screen to be tested.
When the second identification information is not set for the object displayed on the first screen, the position information of the object displayed on the first screen is acquired, and the order determined by the position information is obtained. A setting step in which the object is numbered according to the above and the numbered first identification information is set in the object.
A creation step of creating a test procedure for one or more objects for which the first identification information or the second identification information is designated as specific information for the object from the operation contents for the object.
A second screen to be tested, which has the same structure as the first screen and can be screen-tested by the test procedure created on the first screen, is displayed and designated by the test procedure. wherein if a particular object displayed in the second screen by the specific information, the second identification information screen test before Symbol second screen in accordance with the test procedure that is specified as the specific information of the object was carried out, to be able to identify the object by the specifying information, performs numbering to object displayed before Symbol second screen similarly to the setting step, the first identification information numbered objects execution step of setting, the first identification information is a screen test before Symbol second screen in accordance with the test procedure that is specified as the specific information of the object,
A program to execute.
を特徴とする請求項1記載のプログラム。 The creation step, when receiving an operation for pre-Symbol test procedure generation instruction specifying an object displayed on the first screen the user, the operation for the type of the object, and is input to the object The program according to claim 1, wherein the value is output as the operation content to assist the creation of a test procedure for the object.
を特徴とする請求項2記載のプログラム。 The creation step is characterized in that an operation according to the type of the object required for creating a test procedure for the object, and a value input to the object as the operation content are input or modified by a user in a tabular format. The program according to claim 2.
を特徴とする請求項1乃至3何れか一項記載のプログラム。 The setting step displays the difference in size between the first and second screens and the first and second screens if the structure of the first screen is similar to the structure of the second screen. The feature is that the order determined by the position information is the same as the execution step regardless of the difference in the type of the computer or the difference in the programming language that describes the structure of the first and second screens. The program according to any one of claims 1 to 3.
を特徴とする請求項1乃至4何れか一項記載のプログラム。 The setting before Symbol first screen the object is displayed to acquire the position information in step is a screen before the migration process, the screen before Symbol second screen testing in the executing step, The program according to any one of claims 1 to 4, wherein the screen is a screen after migration work.
を特徴とする請求項1乃至5何れか一項記載のプログラム。 The program according to any one of claims 1 to 5, wherein the setting step can separately add an identifier to the end of the first identification information set in the object.
を特徴とする請求項1乃至6何れか一項記載のプログラム。 The computer is further executed with an output step for outputting the result of the screen test, and the output step lists at least one screen data of success or failure of the test procedure represented in a tabular format. The program according to any one of claims 1 to 6, wherein the link is displayed on the result screen of the screen test.
前記第1の画面に表示されているオブジェクトに第2の識別情報が設定されていない場合に、前記第1の画面に表示されているオブジェクトの位置情報を取得し、前記位置情報により決めた順位に従って前記オブジェクトに採番を行い、採番した第1の識別情報を前記オブジェクトに設定する設定手段と、
前記第1の識別情報又は前記第2の識別情報が前記オブジェクトの特定情報として指定されている1つ以上の前記オブジェクトに対するテスト手順を前記オブジェクトに対する操作内容から作成する作成手段と、
前記第1の画面と同じ構造であって、前記第1の画面で作成された前記テスト手順で画面テストを行うことが可能なテスト対象の第2の画面を表示し、前記テスト手順で指定された前記特定情報により前記第2の画面に表示されているオブジェクトを特定できれば、前記第2の識別情報が前記オブジェクトの特定情報として指定されている前記テスト手順に従って前記第2の画面の画面テストを行い、前記特定情報により前記オブジェクトを特定できなければ、前記設定手段と同様に前記第2の画面に表示されているオブジェクトに採番を行い、採番した第1の識別情報を前記オブジェクトに設定し、前記第1の識別情報が前記オブジェクトの特定情報として指定されている前記テスト手順に従って前記第2の画面の画面テストを行う実行手段と、
を有する情報処理装置。 A reception means that accepts from the user an operation for instructing the creation of a test procedure that specifies the object displayed on the first screen to be tested, and
When the second identification information is not set for the object displayed on the first screen, the position information of the object displayed on the first screen is acquired, and the order determined by the position information is obtained. The object is numbered according to the above, and the numbered first identification information is set in the object.
A creating means for creating a test procedure for one or more objects in which the first identification information or the second identification information is designated as specific information for the object from the operation contents for the object.
A second screen to be tested, which has the same structure as the first screen and can be screen-tested by the test procedure created on the first screen, is displayed and designated by the test procedure. wherein if a particular object displayed in the second screen by the specific information, the second identification information screen test before Symbol second screen in accordance with the test procedure that is specified as the specific information of the object was carried out, to be able to identify the object by the specifying information, performs numbering the objects displayed in the same manner before Symbol second screen and the setting unit, wherein the first identification information numbered objects execution means for performing screen test before Symbol second screen in accordance with the test procedures set, the first identification information is specified as the specific information of the object,
Information processing device with.
テスト対象の第1の画面に表示されているオブジェクトを指定したテスト手順作成指示のための操作をユーザから受け付ける受付手段と、
前記第1の画面に表示されているオブジェクトに第2の識別情報が設定されていない場合に、前記第1の画面に表示されているオブジェクトの位置情報を取得し、前記位置情報により決めた順位に従って前記オブジェクトに採番を行い、採番した第1の識別情報を前記オブジェクトに設定する設定手段と、
前記第1の識別情報又は前記第2の識別情報が前記オブジェクトの特定情報として指定されている1つ以上の前記オブジェクトに対するテスト手順を前記オブジェクトに対する操作内容から作成する作成手段と、
前記第1の画面と同じ構造であって、前記第1の画面で作成された前記テスト手順で画面テストを行うことが可能なテスト対象の第2の画面を表示し、前記テスト手順で指定された前記特定情報により前記第2の画面に表示されているオブジェクトを特定できれば、前記第2の識別情報が前記オブジェクトの特定情報として指定されている前記テスト手順に従って前記第2の画面の画面テストを行い、前記特定情報により前記オブジェクトを特定できなければ、前記設定手段と同様に前記第2の画面に表示されているオブジェクトに採番を行い、採番した第1の識別情報を前記オブジェクトに設定し、前記第1の識別情報が前記オブジェクトの特定情報として指定されている前記テスト手順に従って前記第2の画面の画面テストを行う実行手段と、
を有する画面テストシステム。 A screen test system with one or more information processing devices
A reception means that accepts from the user an operation for instructing the creation of a test procedure that specifies the object displayed on the first screen to be tested, and
When the second identification information is not set for the object displayed on the first screen, the position information of the object displayed on the first screen is acquired, and the order determined by the position information is obtained. The object is numbered according to the above, and the numbered first identification information is set in the object.
A creating means for creating a test procedure for one or more objects in which the first identification information or the second identification information is designated as specific information for the object from the operation contents for the object.
A second screen to be tested, which has the same structure as the first screen and can be screen-tested by the test procedure created on the first screen, is displayed and designated by the test procedure. wherein if a particular object displayed in the second screen by the specific information, the second identification information screen test before Symbol second screen in accordance with the test procedure that is specified as the specific information of the object was carried out, to be able to identify the object by the specifying information, performs numbering the objects displayed in the same manner before Symbol second screen and the setting unit, wherein the first identification information numbered objects execution means for performing screen test before Symbol second screen in accordance with the test procedures set, the first identification information is specified as the specific information of the object,
Screen test system with.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017239556A JP6781688B2 (en) | 2017-12-14 | 2017-12-14 | Programs, information processing equipment and screen test systems |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017239556A JP6781688B2 (en) | 2017-12-14 | 2017-12-14 | Programs, information processing equipment and screen test systems |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019106107A JP2019106107A (en) | 2019-06-27 |
JP6781688B2 true JP6781688B2 (en) | 2020-11-04 |
Family
ID=67061322
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017239556A Active JP6781688B2 (en) | 2017-12-14 | 2017-12-14 | Programs, information processing equipment and screen test systems |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6781688B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102198462B1 (en) * | 2019-12-09 | 2021-01-05 | 주식회사 티맥스소프트 | Design remodeling testing method for remodeling text-based display design to thereby achieve graphic-based display design and design remodeling testing device using the same |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003044318A (en) * | 2001-08-02 | 2003-02-14 | Fujitsu Ltd | Program and method for supporting test |
JP5314438B2 (en) * | 2009-01-19 | 2013-10-16 | 株式会社日立ソリューションズ | Automatic regression test execution system |
JP2010218231A (en) * | 2009-03-17 | 2010-09-30 | Fujitsu Ltd | Test support program, test support method, and test support device |
JP2013143044A (en) * | 2012-01-11 | 2013-07-22 | Fujitsu Ltd | Program, information processing method and information processing apparatus |
-
2017
- 2017-12-14 JP JP2017239556A patent/JP6781688B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2019106107A (en) | 2019-06-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020233053A1 (en) | Method, apparatus, device, and storage medium for making test page script | |
US9459994B2 (en) | Mobile application testing systems and methods | |
US10853232B2 (en) | Adaptive system for mobile device testing | |
US20090307665A1 (en) | Method and system to automate software testing using sniffer side and browser side recording and a toolbar interface | |
JP2011060052A (en) | Method for executing software test | |
JP6441786B2 (en) | Test support apparatus, test support method, and program | |
CN115658529A (en) | Automatic testing method for user page and related equipment | |
CN106970870B (en) | Webpage test platform, webpage test method and webpage test system | |
JP5968451B2 (en) | Computer system and program | |
JP6781688B2 (en) | Programs, information processing equipment and screen test systems | |
JP4896909B2 (en) | Scenario generation apparatus and program | |
JP4795404B2 (en) | Operation verification apparatus and operation verification program | |
JP6551082B2 (en) | Test support apparatus, test support method, and test support program | |
JP7277694B2 (en) | Information processing device, its control method and program | |
JP7256353B2 (en) | Information processing system, its control method and program | |
JP6739599B1 (en) | Information processing program, information processing method, and information processing apparatus | |
JP7311740B2 (en) | Information processing system, its control method, and program | |
JP2019106093A (en) | Computer, method of reproducing log, and storage medium | |
JP2014067106A (en) | Gui test device, gui test method and program | |
JP5746300B2 (en) | User operation automation device | |
JP7219389B2 (en) | Information processing device, its control method and program | |
JPH09223040A (en) | System test supporting device for software and test scenario generator to be used for the same | |
JP7319516B2 (en) | Program, information processing device, and control method thereof | |
JP7327471B2 (en) | Test equipment, test method and program | |
JP7323755B2 (en) | Information processing system, its control method and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190906 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200728 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20200722 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200916 |
|
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: 20201006 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20201016 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6781688 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313113 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |