JP7736635B2 - Test result visualization file generation device, test result visualization file generation method, and test result visualization file generation program - Google Patents
Test result visualization file generation device, test result visualization file generation method, and test result visualization file generation programInfo
- Publication number
- JP7736635B2 JP7736635B2 JP2022099138A JP2022099138A JP7736635B2 JP 7736635 B2 JP7736635 B2 JP 7736635B2 JP 2022099138 A JP2022099138 A JP 2022099138A JP 2022099138 A JP2022099138 A JP 2022099138A JP 7736635 B2 JP7736635 B2 JP 7736635B2
- Authority
- JP
- Japan
- Prior art keywords
- test
- embedding
- image
- file
- execution history
- 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
Landscapes
- Debugging And Monitoring (AREA)
Description
本発明は、テスト結果可視化ファイル生成装置、テスト結果可視化ファイル生成方法およびテスト結果可視化ファイル生成プログラムに関する。 The present invention relates to a test result visualization file generation device, a test result visualization file generation method, and a test result visualization file generation program.
特許文献1には、システムの動作テストにおけるログの検証を効率化するための技術が開示されている(特許文献1の0011段落参照)。 Patent Document 1 discloses technology for improving the efficiency of log verification during system operation tests (see paragraph 0011 of Patent Document 1).
ここで、アプリケーションが開発された際には、当該アプリケーションが画面上で正常に動作するか否かをテストする必要がある。しかしながら、上記特許文献1に記載の技術も含め、従来においては、この動作テストの結果を確認する作業を効率化できていなかった。 When an application is developed, it must be tested to see if it operates correctly on the screen. However, conventional methods, including the technology described in Patent Document 1, have not been able to efficiently check the results of these operational tests.
すなわち、従来においては、動作テストの結果、動作テストが行われた結果の画面、動作テストが行われた場合の実行履歴、および、動作テストの対象となったアプリケーションについての詳細な設定情報を一覧で確認することができなかった。このため、担当者は、動作テストにおいて問題が発生した場合には、前記実行履歴および前記詳細な設定情報を手動で探しにいく必要があったため、多大な時間および労力を要していた。 In other words, in the past, it was not possible to view the results of an operational test, the screen showing the results of the operational test, the execution history when the operational test was conducted, or detailed configuration information for the application that was the subject of the operational test in a list. As a result, if a problem arose during an operational test, the person in charge had to manually search for the execution history and detailed configuration information, which required a great deal of time and effort.
本発明は、上記問題点に鑑みてなされたものであって、開発されたアプリケーションを画面上で自動実行するテストを行った結果を可視化し、かつ、問題発生箇所の特定も容易にするためのファイルである可視化ファイルを生成することができるテスト結果可視化ファイル生成装置、テスト結果可視化ファイル生成方法およびテスト結果可視化ファイル生成プログラムを提供することを目的とする。 The present invention was made in consideration of the above-mentioned problems, and aims to provide a test result visualization file generation device, test result visualization file generation method, and test result visualization file generation program that can visualize the results of tests that automatically run a developed application on a screen and generate visualization files that make it easy to identify where problems occur.
上述した課題を解決し、目的を達成するために、本発明に係るテスト結果可視化ファイル生成装置においては、開発されたアプリケーションを画面上で自動実行するテストを行った結果を可視化し、かつ、問題発生箇所の特定も容易にするためのファイルである可視化ファイルを生成することができる、制御部を備えるテスト結果可視化ファイル生成装置であって、前記制御部は、前記テストを行った結果の画面の画像であるテスト画像が、比較対象となる基準の画像である基準画像と比較して、差異なし、差異ありおよび比較不可のうちのいずれに該当するかが判断された結果である比較結果を、前記テスト画像のファイル名と紐付けて含む比較結果データに基づいて、差異ありまたは比較不可の比較結果と、差異ありまたは比較不可と判断された前記テスト画像のファイル名と、を前記可視化ファイルに埋め込む比較結果埋込手段と、差異ありまたは比較不可と判断された前記テスト画像を前記可視化ファイルに埋め込む画像埋込手段と、前記テストの際に画面において自動実行される操作についての命令である操作命令の塊からなる画面操作命令を含む画面操作命令テーブルから、差異ありまたは比較不可と判断された前記テスト画像のスクリーンショットを撮ることを命令する操作命令を含む画面操作命令を特定し、当該特定した画面操作命令に従って操作が実行された場合の実行履歴を含むデータである実行履歴データの内容を前記可視化ファイルに埋め込む実行履歴埋込手段と、前記実行履歴埋込手段で特定した画面操作命令に基づいて、前記テストの対象となったアプリケーションについての詳細な設定情報を確認するためのリンクを前記可視化ファイルに埋め込む第一リンク埋込手段と、を備えること、を特徴とする。 In order to solve the above-mentioned problems and achieve the objectives, the test result visualization file generation device of the present invention is equipped with a control unit that can generate a visualization file that visualizes the results of a test that automatically executes a developed application on a screen and makes it easy to identify the location of a problem.The control unit compares a test image, which is an image of the screen resulting from the test, with a reference image, which is a reference image to be compared, and determines whether the result is no difference, a difference, or incomparable.The control unit embeds the comparison results, which are different or incomparable, and the file names of the test images that are determined to be different or incomparable, in the visualization file based on comparison result data that includes the comparison results linked to the file names of the test images. The system comprises a comparison result embedding means, an image embedding means for embedding the test images determined to be different or incomparable into the visualization file, an execution history embedding means for identifying screen operation instructions including an operation instruction for taking a screenshot of the test images determined to be different or incomparable from a screen operation instruction table containing screen operation instructions consisting of blocks of operation instructions that are instructions for operations automatically executed on the screen during the test, and embedding the contents of execution history data, which is data including an execution history when operations are executed in accordance with the identified screen operation instructions, into the visualization file, and a first link embedding means for embedding a link for checking detailed setting information for the application that was the subject of the test into the visualization file based on the screen operation instructions identified by the execution history embedding means.
また、本発明に係るテスト結果可視化ファイル生成装置においては、前記実行履歴埋込手段は、差異ありまたは比較不可と判断された前記テスト画像のスクリーンショットを撮ることを命令する操作命令に対応する実行履歴を識別可能な態様で、前記実行履歴データの内容を前記可視化ファイルに埋め込むこと、を特徴とする。 Furthermore, in the test result visualization file generation device according to the present invention, the execution history embedding means embeds the contents of the execution history data into the visualization file in a manner that makes it possible to identify execution history corresponding to an operation command commanding taking a screenshot of the test image that has been determined to be different or incomparable.
また、本発明に係るテスト結果可視化ファイル生成装置においては、前記画像埋込手段は、差異ありと判断された前記テスト画像と、当該テスト画像の比較対象となった前記基準画像と、当該両画像間の差異を強調表示した画像と、を前記可視化ファイルに埋め込むこと、を特徴とする。 Furthermore, in the test result visualization file generation device according to the present invention, the image embedding means embeds the test image determined to have a difference, the reference image with which the test image was compared, and an image highlighting the differences between the two images into the visualization file.
また、本発明に係るテスト結果可視化ファイル生成装置においては、前記制御部は、前記画面操作命令テーブル中の前記画面操作命令に従って操作が実行された場合の実行履歴を含むデータである実行履歴データにおいて、処理エラーがあったことを示す実行履歴が存在する場合、当該実行履歴データおよび前記画面操作命令テーブルに基づいて、処理エラーがあった事実を識別するための情報と、処理エラーがあったことを示す実行履歴に対応する操作を命令した操作命令を含む画面操作命令を識別するための情報と、処理エラーがあったことを示す実行履歴に対応する操作を命令した操作命令を含む画面操作命令に従って操作が実行された場合の実行履歴と、を前記可視化ファイルに埋め込む処理エラー情報埋込手段と、処理エラーがあったことを示す実行履歴に対応する操作を命令した操作命令を、処理エラーの原因として前記可視化ファイルに埋め込む処理エラー原因埋込手段と、処理エラーがあったことを示す実行履歴に対応する操作を命令した操作命令を含む画面操作命令に基づいて、前記テストの対象となったアプリケーションについての詳細な設定情報を確認するためのリンクを前記可視化ファイルに埋め込む第二リンク埋込手段と、を更に備えること、を特徴とする。 In the test result visualization file generation device according to the present invention, the control unit further comprises: processing error information embedding means for, when an execution history indicating a processing error exists in execution history data, which is data including an execution history when operations are performed in accordance with the screen operation commands in the screen operation command table, embedding, in the visualization file, information for identifying the fact that a processing error occurred, information for identifying a screen operation command including an operation command that commanded an operation corresponding to the execution history indicating a processing error, and an execution history when operations were performed in accordance with a screen operation command including an operation command that commanded an operation corresponding to the execution history indicating a processing error, based on the execution history data and the screen operation command table; processing error cause embedding means for embedding, in the visualization file, as the cause of the processing error, an operation command that commanded an operation corresponding to the execution history indicating a processing error; and second link embedding means for embedding, in the visualization file, a link for checking detailed configuration information for the application that was the target of the test, based on a screen operation command including an operation command that commanded an operation corresponding to the execution history indicating a processing error.
また、本発明に係るテスト結果可視化ファイル生成装置においては、前記処理エラー情報埋込手段は、処理エラーがあったことを示す実行履歴を識別可能な態様で、処理エラーがあったことを示す実行履歴に対応する操作を命令した操作命令を含む画面操作命令に従って操作が実行された場合の実行履歴を前記可視化ファイルに埋め込むこと、を特徴とする。 Furthermore, in the test result visualization file generation device according to the present invention, the processing error information embedding means embeds, into the visualization file, an execution history when operations are performed in accordance with screen operation commands that include operation commands that command operations corresponding to execution history indicating that a processing error has occurred, in a manner that enables the execution history indicating that a processing error has occurred to be identified.
また、本発明に係るテスト結果可視化ファイル生成装置においては、前記可視化ファイルが、テキスト形式のファイルであること、を特徴とする。 Furthermore, the test result visualization file generation device according to the present invention is characterized in that the visualization file is a text file.
また、本発明に係るテスト結果可視化ファイル生成装置においては、前記テキスト形式のファイルが、HTML形式のファイルであること、を特徴とする。 Furthermore, the test result visualization file generation device according to the present invention is characterized in that the text-format file is an HTML-format file.
また、本発明に係るテスト結果可視化ファイル生成方法においては、開発されたアプリケーションを画面上で自動実行するテストを行った結果を可視化し、かつ、問題発生箇所の特定も容易にするためのファイルである可視化ファイルを生成することができる、制御部を備える情報処理装置で実行されるテスト結果可視化ファイル生成方法であって、前記制御部で実行される、前記テストを行った結果の画面の画像であるテスト画像が、比較対象となる基準の画像である基準画像と比較して、差異なし、差異ありおよび比較不可のうちのいずれに該当するかが判断された結果である比較結果を、前記テスト画像のファイル名と紐付けて含む比較結果データに基づいて、差異ありまたは比較不可の比較結果と、差異ありまたは比較不可と判断された前記テスト画像のファイル名と、を前記可視化ファイルに埋め込む比較結果埋込ステップと、差異ありまたは比較不可と判断された前記テスト画像を前記可視化ファイルに埋め込む画像埋込ステップと、前記テストの際に画面において自動実行される操作についての命令である操作命令の塊からなる画面操作命令を含む画面操作命令テーブルから、差異ありまたは比較不可と判断された前記テスト画像のスクリーンショットを撮ることを命令する操作命令を含む画面操作命令を特定し、当該特定した画面操作命令に従って操作が実行された場合の実行履歴を含むデータである実行履歴データの内容を前記可視化ファイルに埋め込む実行履歴埋込ステップと、前記実行履歴埋込ステップで特定した画面操作命令に基づいて、前記テストの対象となったアプリケーションについての詳細な設定情報を確認するためのリンクを前記可視化ファイルに埋め込む第一リンク埋込ステップと、を含むこと、を特徴とする。 The test result visualization file generation method according to the present invention is executed by an information processing device having a control unit, and is capable of generating a visualization file that visualizes the results of a test in which a developed application is automatically executed on a screen and makes it easy to identify where a problem occurs. The test result visualization file generation method executed by the control unit compares a test image, which is an image of the screen resulting from the test, with a reference image, which is a reference image to be compared, and determines whether the test image corresponds to no difference, a difference, or incomparability. Based on the comparison result data linked to the filenames of the test images, the method embeds the comparison results of differences or incomparability and the filenames of the test images determined to be different or incomparable in the visualization file. a step, an image embedding step of embedding the test image determined to be different or incomparable in the visualization file, an execution history embedding step of identifying screen operation instructions including an operation instruction to take a screenshot of the test image determined to be different or incomparable from a screen operation instruction table containing screen operation instructions consisting of blocks of operation instructions that are instructions for operations that are automatically executed on the screen during the test, and embedding the contents of execution history data, which is data including an execution history when operations are executed in accordance with the identified screen operation instructions, into the visualization file, and a first link embedding step of embedding a link for checking detailed setting information for the application that was the subject of the test in the visualization file based on the screen operation instructions identified in the execution history embedding step.
また、本発明に係るテスト結果可視化ファイル生成プログラムにおいては、開発されたアプリケーションを画面上で自動実行するテストを行った結果を可視化し、かつ、問題発生箇所の特定も容易にするためのファイルである可視化ファイルを生成することができる、制御部を備える情報処理装置に実行させるためのテスト結果可視化ファイル生成プログラムであって、前記制御部に実行させるための、前記テストを行った結果の画面の画像であるテスト画像が、比較対象となる基準の画像である基準画像と比較して、差異なし、差異ありおよび比較不可のうちのいずれに該当するかが判断された結果である比較結果を、前記テスト画像のファイル名と紐付けて含む比較結果データに基づいて、差異ありまたは比較不可の比較結果と、差異ありまたは比較不可と判断された前記テスト画像のファイル名と、を前記可視化ファイルに埋め込む比較結果埋込ステップと、差異ありまたは比較不可と判断された前記テスト画像を前記可視化ファイルに埋め込む画像埋込ステップと、前記テストの際に画面において自動実行される操作についての命令である操作命令の塊からなる画面操作命令を含む画面操作命令テーブルから、差異ありまたは比較不可と判断された前記テスト画像のスクリーンショットを撮ることを命令する操作命令を含む画面操作命令を特定し、当該特定した画面操作命令に従って操作が実行された場合の実行履歴を含むデータである実行履歴データの内容を前記可視化ファイルに埋め込む実行履歴埋込ステップと、前記実行履歴埋込ステップで特定した画面操作命令に基づいて、前記テストの対象となったアプリケーションについての詳細な設定情報を確認するためのリンクを前記可視化ファイルに埋め込む第一リンク埋込ステップと、を含むこと、を特徴とする。 The test result visualization file generation program of the present invention is a program for executing on an information processing device having a control unit, which is capable of visualizing the results of a test in which a developed application is automatically executed on a screen and generating a visualization file that makes it easy to identify where a problem occurs. The program is executed by the control unit. The program includes comparison results, which are results of comparing a test image, which is an image of the screen resulting from the test, with a reference image, which is a reference image to be compared, and determining whether the test image corresponds to no difference, a difference, or incomparability, and includes comparison results linked to the filenames of the test images. The program embeds the comparison results of differences or incomparability and the filenames of the test images determined to be different or incomparable in the visualization file. The method includes a comparison result embedding step, an image embedding step of embedding the test image determined to be different or incomparable into the visualization file, an execution history embedding step of identifying screen operation instructions including an operation instruction to take a screenshot of the test image determined to be different or incomparable from a screen operation instruction table containing screen operation instructions consisting of blocks of operation instructions that are instructions for operations automatically executed on the screen during the test, and embedding the contents of execution history data, which is data including an execution history when operations are executed in accordance with the identified screen operation instructions, into the visualization file, and a first link embedding step of embedding a link for checking detailed setting information for the application that was the subject of the test into the visualization file based on the screen operation instructions identified in the execution history embedding step.
本発明によれば、開発されたアプリケーションを画面上で自動実行するテストを行った結果を可視化し、かつ、問題発生箇所の特定も容易にするためのファイルである可視化ファイルを生成することができるという効果を奏する。 This invention has the advantage of being able to visualize the results of tests that automatically run a developed application on a screen, and to generate a visualization file that makes it easy to identify where problems occur.
以下に、本発明に係るテスト結果可視化ファイル生成装置、テスト結果可視化ファイル生成方法およびテスト結果可視化ファイル生成プログラムの実施形態を、図面に基づいて詳細に説明する。なお、本実施形態により本発明が限定されるものではない。 Embodiments of a test result visualization file generation device, a test result visualization file generation method, and a test result visualization file generation program according to the present invention are described in detail below with reference to the accompanying drawings. Note that the present invention is not limited to these embodiments.
[1.概要等]
本項目では、本実施形態の概要、背景および効果について説明する。
[1. Overview, etc.]
In this section, the outline, background, and effects of this embodiment will be described.
[1-1.本実施形態の概要]
本実施形態は、Webアプリケーションの自動テストの結果確認を効率化するためのものである。近年、OSおよびブラウザ等の進化のスピードが加速し、外部環境の変化に対応するため、業務アプリケーションの開発およびテストの効率化が求められている。
[1-1. Overview of this embodiment]
This embodiment is intended to improve the efficiency of checking the results of automated testing of Web applications. In recent years, the speed of evolution of operating systems, browsers, etc. has accelerated, and in order to respond to changes in the external environment, there is a demand for improving the efficiency of development and testing of business applications.
このため、開発されたWebアプリケーションのWebブラウザによるテストの自動化も必須のものとなってきている。 For this reason, it has become essential to automate testing of developed web applications using web browsers.
そこで、本実施形態においては、テストエビデンスをHTML形式により比較することで、図2に示すように、正常な場合とテストで問題が発生した場合の差異を可視化できるようにした。これにより、テストエビデンスの信頼性を向上させ、また、問題発生箇所の早期把握を可能とした。 In this embodiment, by comparing test evidence in HTML format, it is possible to visualize the differences between normal cases and cases where a problem occurs during testing, as shown in Figure 2. This improves the reliability of test evidence and enables early identification of problem areas.
[1-2.本実施形態の背景]
従来においては、画面ショットの出力画像(エビデンス)を担当者が目視で比較し、問題のある実行結果を探し出す必要があった。このため、担当者の作業負担が大きいという問題があった。また、画面ショットの出力画像を比較するのみでは、テストケースおよび自動実行定義の実行条件の内容が把握できず、問題発生箇所の特定に時間がかかるという問題もあった。
[1-2. Background of this embodiment]
Previously, the person in charge had to visually compare the output images (evidence) of screenshots to find problematic execution results. This resulted in a heavy workload for the person in charge. Another problem was that simply comparing the output images of screenshots did not allow for a clear understanding of the execution conditions of the test cases and automatic execution definitions, which meant that it took a long time to identify the problem areas.
[1-3.本実施形態の効果]
そこで、本実施形態においては、例えば、以下の1~6のことを可能とした。
[1-3. Effects of this embodiment]
Therefore, in this embodiment, for example, the following 1 to 6 are made possible.
1.テストケースに応じた基準画像およびテスト画像の画面ショットを所定の階層および形式で保存することで、対応関係を維持した状態でエビデンスを管理できるようにした。 1. By saving screenshots of reference images and test images for each test case in a specified hierarchy and format, it is now possible to manage evidence while maintaining correspondence.
2.エビデンスの基準画像およびテスト画像の対応関係を、テスト実行後に簡単に確認可能とする比較用HTMLを生成できるようにした。これにより、テストケース別または進捗別の画像が一覧で把握可能となった。 2. It is now possible to generate comparison HTML that allows you to easily check the correspondence between the evidence reference image and the test image after the test is executed. This makes it possible to see a list of images by test case or progress.
3.エビデンスの基準画像およびテスト画像の差異のみを抽出した差異確認用HTMLを生成できるようにし、以下の(A)および(B)のサマリーを一覧表示可能とした。
(A)テストケースおよび自動実行命令情報
(B)基準画像とテスト画像の間の差異を検出した画像
3. It is now possible to generate HTML for checking differences that extracts only the differences between the reference image and test image of the evidence, and to display the following summaries (A) and (B) in a list.
(A) Test case and automatic execution command information (B) Image showing the difference between the reference image and the test image
4.比較差異のサマリー一覧HTML上に、自動テスト実行時の履歴情報を保持できるようにした。これにより、どのテストケースおよびどの自動実行処理で差異が発生しているのかを瞬時に把握できるようにした。 4. It is now possible to store historical information from when automatic tests were executed on the comparison difference summary list HTML. This makes it possible to instantly understand which test cases and which automatic execution processes have differences.
5.比較差異のサマリー一覧のHTMLから、差異のある自動テスト用のUI定義および実行定義へリンクで飛べるようにした。これにより、差異が発生している情報をもとに、テストケースの確認をスムーズに行うことが可能となった。 5. The HTML summary list of comparison differences now includes links to the UI definitions and execution definitions for automated tests that have differences. This makes it possible to smoothly check test cases based on the information on where the differences occur.
6.要するに、本実施形態においては、自動回帰テストにおいて、テストケースに応じたファイルとの対応関係を維持したエビデンス管理をできるようにし、また、比較参照用のファイル(例えば、HTML)を出力できるようにした。これにより、テストエビデンスの結果から、問題発生箇所を早期把握することが可能となった。 6. In short, in this embodiment, in automatic regression testing, evidence management is possible that maintains the correspondence with files corresponding to test cases, and files for comparison and reference (e.g., HTML) can be output. This makes it possible to quickly identify problem areas from the results of test evidence.
以下、具体的な構成および動作について説明する。 The specific configuration and operation are explained below.
[2.構成]
本実施形態に係るテスト結果可視化ファイル生成装置100の構成の一例について、図1を参照して説明する。図1は、テスト結果可視化ファイル生成装置100の構成の一例を示すブロック図である。
2. Configuration
An example of the configuration of a test result visualization file generation device 100 according to this embodiment will be described with reference to Fig. 1. Fig. 1 is a block diagram showing an example of the configuration of the test result visualization file generation device 100.
テスト結果可視化ファイル生成装置100は、市販のデスクトップ型パーソナルコンピュータである。なお、テスト結果可視化ファイル生成装置100は、デスクトップ型パーソナルコンピュータのような据置型情報処理装置に限らず、市販されているノート型パーソナルコンピュータ、PDA(Personal Digital Assistants)、スマートフォン、タブレット型パーソナルコンピュータなどの携帯型情報処理装置であってもよい。 The test result visualization file generation device 100 is a commercially available desktop personal computer. Note that the test result visualization file generation device 100 is not limited to stationary information processing devices such as desktop personal computers, but may also be portable information processing devices such as commercially available notebook personal computers, PDAs (Personal Digital Assistants), smartphones, and tablet personal computers.
テスト結果可視化ファイル生成装置100は、制御部102と通信インターフェース部104と記憶部106と入出力インターフェース部108と、を備えている。テスト結果可視化ファイル生成装置100が備えている各部は、任意の通信路を介して通信可能に接続されている。 The test result visualization file generation device 100 comprises a control unit 102, a communication interface unit 104, a memory unit 106, and an input/output interface unit 108. Each unit of the test result visualization file generation device 100 is connected to each other so that they can communicate with each other via any communication path.
通信インターフェース部104は、ルータ等の通信装置および専用線等の有線または無線の通信回線を介して、テスト結果可視化ファイル生成装置100をネットワーク300に通信可能に接続する。通信インターフェース部104は、他の装置と通信回線を介してデータを通信する機能を有する。ここで、ネットワーク300は、テスト結果可視化ファイル生成装置100とサーバ200とを相互に通信可能に接続する機能を有し、例えばインターネットやLAN(Local Area Network)等である。なお、後述する各種マスタ等のデータは、例えばサーバ200に格納されてもよい。 The communication interface unit 104 communicatively connects the test result visualization file generation device 100 to the network 300 via a communication device such as a router and a wired or wireless communication line such as a dedicated line. The communication interface unit 104 has the function of communicating data with other devices via a communication line. Here, the network 300 has the function of connecting the test result visualization file generation device 100 and the server 200 so that they can communicate with each other, and is, for example, the Internet or a LAN (Local Area Network). Note that data such as various masters described below may be stored in the server 200, for example.
入出力インターフェース部108には、入力装置112および出力装置114が接続されている。出力装置114には、モニタ(家庭用テレビを含む)の他、スピーカやプリンタを用いることができる。入力装置112には、キーボード、マウス、及びマイクの他、マウスと協働してポインティングデバイス機能を実現するモニタを用いることができる。なお、以下では、出力装置114をモニタ114とし、入力装置112をキーボード112またはマウス112として記載する場合がある。 An input device 112 and an output device 114 are connected to the input/output interface unit 108. The output device 114 may be a monitor (including a home television), a speaker, or a printer. The input device 112 may be a keyboard, a mouse, a microphone, or a monitor that functions as a pointing device in conjunction with a mouse. Note that, below, the output device 114 may be referred to as the monitor 114, and the input device 112 may be referred to as the keyboard 112 or the mouse 112.
記憶部106には、各種のデータベース、テーブルおよびファイルなどが格納される。記憶部106には、OS(Operating System)と協働してCPU(Central Processing Unit)に命令を与えて各種処理を行うためのコンピュータプログラムが記録される。記憶部106として、例えば、RAM(Random Access Memory)・ROM(Read Only Memory)等のメモリ装置、ハードディスクのような固定ディスク装置、フレキシブルディスク、および光ディスク等を用いることができる。 The storage unit 106 stores various databases, tables, files, and the like. The storage unit 106 stores computer programs that work in conjunction with the OS (Operating System) to issue commands to the CPU (Central Processing Unit) to perform various processes. The storage unit 106 can be, for example, a memory device such as RAM (Random Access Memory) or ROM (Read Only Memory), a fixed disk device such as a hard disk, a flexible disk, or an optical disk.
記憶部106は、例えば、比較結果データ106aと、画面操作命令テーブル106bと、実行履歴データ106cと、可視化ファイルとしてのHTMLファイル106dと、を備えている。 The memory unit 106 includes, for example, comparison result data 106a, a screen operation command table 106b, execution history data 106c, and an HTML file 106d as a visualization file.
本実施形態に係るテスト結果可視化ファイル生成装置100によれば、開発されたアプリケーションを画面上で自動実行するテストを行った結果を可視化し、かつ、問題発生箇所の特定も容易にするためのファイルである可視化ファイルを生成することができる。当該可視化ファイルは、例えば、テキスト形式のファイルであり、好ましくは、HTML形式のファイル(HTMLファイル106d)である。 The test result visualization file generation device 100 according to this embodiment can generate a visualization file that visualizes the results of a test that automatically executes a developed application on a screen and also makes it easy to identify where a problem has occurred. The visualization file is, for example, a text file, and preferably an HTML file (HTML file 106d).
比較結果データ106aは、前記テストを行った結果の画面の画像であるテスト画像が、比較対象となる基準の画像である基準画像と比較して、差異なし、差異ありおよび比較不可のうちのいずれに該当するかが判断された結果である比較結果を、前記テスト画像のファイル名と紐付けて含むデータである。比較結果データ106aは、例えば、テキストファイルである。 The comparison result data 106a is data that includes the comparison result, which is the result of comparing a test image, which is an image of the screen resulting from the test, with a reference image, which is a reference image to be compared, and determining whether the result is no difference, a difference, or incomparable, and is linked to the file name of the test image. The comparison result data 106a is, for example, a text file.
例えば、図4に示す比較結果データ106aは、テスト画像のファイル名「X-XXXX-003.png」と基準画像との差異なしと判断された結果「Valid」を紐付けて含み、また、テスト画像のファイル名「X-XXXX-001.png」と基準画像との差異ありと判断された結果「Difference」を紐付けて含み、そして、テスト画像のファイル名「X-XXXX-002.png」と基準画像との比較不可と判断された結果「Error」を紐付けて含む。 For example, the comparison result data 106a shown in Figure 4 includes the result "Valid" indicating that the test image file name "X-XXXX-003.png" is not different from the reference image, the result "Difference" indicating that the test image file name "X-XXXX-001.png" is different from the reference image, and the result "Error" indicating that the test image file name "X-XXXX-002.png" is not comparable to the reference image.
画面操作命令テーブル106bは、前記テストの際に画面において自動実行される操作についての命令である操作命令の塊からなる画面操作命令を含むテーブルである。画面操作命令テーブル106bは、図14等に示すように、例えば、前記画面操作命令と、前記画面操作命令を定義して識別するための定義識別データ(定義Idおよび定義名)と、を紐付けて含む。 The screen operation command table 106b is a table containing screen operation commands consisting of blocks of operation commands, which are commands for operations to be automatically executed on the screen during the test. As shown in FIG. 14, for example, the screen operation command table 106b contains, in association with each other, the screen operation command and definition identification data (definition ID and definition name) for defining and identifying the screen operation command.
例えば、図14に示す画面操作命令テーブル106bは、3つの操作命令の塊からなる画面操作命令(定義Id=X002)を含む。当該3つの操作命令とは、図14に示すように、タイプ「メニュー起動」および対象「X-XXXX-002」という操作命令と、タイプ「値セット」、対象「取引先CD」および値「1」という操作命令と、タイプ「スクリーンショット」、ファイル名「X-XXXX-002.png」および確認内容「取引先CD_Toに1と表示されるか」という操作命令と、である。 For example, the screen operation command table 106b shown in FIG. 14 includes a screen operation command (definition Id = X002) consisting of a group of three operation commands. As shown in FIG. 14, the three operation commands are: an operation command of type "launch menu" and target "X-XXXX-002", an operation command of type "set value", target "customer CD", and value "1", and an operation command of type "screenshot", file name "X-XXXX-002.png", and confirmation content "Is 1 displayed for customer CD_To?".
実行履歴データ106cは、画面操作命令テーブル106b中の前記画面操作命令に従って操作が実行された場合の実行履歴を含むデータである。実行履歴データ106cは、例えば、テキストファイルである。前記実行履歴には、例えば、処理エラーなく操作が正常に実行されたことを示す実行履歴と、処理エラーがあったことを示す実行履歴と、がある。 Execution history data 106c is data that includes the execution history when operations are performed in accordance with the screen operation commands in the screen operation command table 106b. Execution history data 106c is, for example, a text file. The execution history includes, for example, execution history indicating that the operation was performed normally without any processing errors, and execution history indicating that a processing error occurred.
例えば、図19に示す実行履歴データ106cにおいて、「OK」の記号が付された実行履歴は、処理エラーなく操作が正常に実行されたことを示す実行履歴であり、これに対して、NGの記号が付された実行履歴は、処理エラーがあったことを示す実行履歴である。 For example, in the execution history data 106c shown in Figure 19, execution history marked with an "OK" symbol indicates that the operation was executed successfully without any processing errors, while execution history marked with an "NG" symbol indicates that a processing error occurred.
HTMLファイル106dは、前述のとおり、開発されたアプリケーションを画面上で自動実行するテストを行った結果を可視化するためのファイルである。自動実行するテストを行った結果とは、図9~図11のHTMLファイル106dでいうと、
(1)画面左上に埋め込まれた「比較結果:ファイル名」(図9では「Difference:X-XXXX-001.png」、図10では「画像比較時エラー:X-XXXX-002.png」、図11では「実行時エラー:X004 X-XXXX-004」)と、
(2)埋め込まれた画像(図9ではテスト画像と基準画像と比較結果画像、図10ではテスト画像、図11では画像なし)と、
を指す。
As mentioned above, the HTML file 106d is a file for visualizing the results of a test that automatically executes the developed application on the screen. The results of the test that automatically executes the application are as follows, in terms of the HTML file 106d in FIGS. 9 to 11:
(1) The "Comparison result: File name" embedded in the upper left corner of the screen ("Difference: X-XXXX-001.png" in Figure 9, "Image comparison error: X-XXXX-002.png" in Figure 10, "Runtime error: X004 X-XXXX-004" in Figure 11)
(2) The embedded image (in Figure 9, the test image and the reference image and the comparison result image, in Figure 10, the test image, and in Figure 11, no image),
Refers to...
また、HTMLファイル106dは、前述のとおり、問題発生箇所の特定を容易にするためのファイルでもある。図9~図11のHTMLファイル106dでいうと、問題発生箇所の特定を容易にするための部分は、自動実行定義情報(実行履歴データ106cの内容に対応)と、定義へのリンクと、である。担当者は、自動実行定義情報を見ることで、どの操作において問題が発生したのかを把握することができる。また、担当者は、定義へのリンクとしての「UI定義情報」または「実行環境」の文字列をクリックすることで、テストの対象となったアプリケーションについての詳細な設定情報を確認することができる。 As mentioned above, HTML file 106d is also a file that makes it easier to identify where a problem has occurred. In the case of HTML file 106d in Figures 9 to 11, the parts that make it easier to identify where a problem has occurred are the automatic execution definition information (corresponding to the contents of execution history data 106c) and a link to the definition. By looking at the automatic execution definition information, the person in charge can determine which operation caused the problem. Furthermore, by clicking the strings "UI definition information" or "execution environment," which serve as links to the definition, the person in charge can check detailed setting information for the application that was the subject of the test.
制御部102は、テスト結果可視化ファイル生成装置100を統括的に制御するCPU等である。制御部102は、OS等の制御プログラム・各種の処理手順等を規定したプログラム・所要データなどを格納するための内部メモリを有し、格納されているこれらのプログラムに基づいて種々の情報処理を実行する。 The control unit 102 is a CPU or the like that provides overall control of the test result visualization file generation device 100. The control unit 102 has internal memory for storing control programs such as an OS, programs that define various processing procedures, and required data, and executes various information processing operations based on these stored programs.
制御部102は、機能概念的に、例えば、(1)前記テストを行った結果の画面の画像であるテスト画像が、比較対象となる基準の画像である基準画像と比較して、差異なし、差異ありおよび比較不可のうちのいずれに該当するかが判断された結果である比較結果を、前記テスト画像のファイル名と紐付けて含む比較結果データに基づいて、差異ありまたは比較不可の比較結果と、差異ありまたは比較不可と判断された前記テスト画像のファイル名と、を前記可視化ファイルに埋め込む比較結果埋込手段としての比較結果埋込部102aと、(2)差異ありまたは比較不可と判断された前記テスト画像を前記可視化ファイルに埋め込む画像埋込手段としての画像埋込部102bと、(3)前記テストの際に画面において自動実行される操作についての命令である操作命令の塊からなる画面操作命令を含む画面操作命令テーブルから、差異ありまたは比較不可と判断された前記テスト画像のスクリーンショットを撮ることを命令する操作命令を含む画面操作命令を特定し、当該特定した画面操作命令に従って操作が実行された場合の実行履歴を含むデータである実行履歴データの内容を前記可視化ファイルに埋め込む実行履歴埋込手段としての実行履歴埋込部102cと、(4)前記実行履歴埋込手段で特定した画面操作命令に基づいて、前記テストの対象となったアプリケーションについての詳細な設定情報を確認するためのリンクを前記可視化ファイルに埋め込む第一リンク埋込手段としての第一リンク埋込部102dと、(5)前記画面操作命令テーブル中の前記画面操作命令に従って操作が実行された場合の実行履歴を含むデータである実行履歴データにおいて、処理エラーがあったことを示す実行履歴が存在する場合、当該実行履歴データおよび前記画面操作命令テーブルに基づいて、処理エラーがあった事実を識別するための情報と、処理エラーがあったことを示す実行履歴に対応する操作を命令した操作命令を含む画面操作命令を識別するための情報と、処理エラーがあったことを示す実行履歴に対応する操作を命令した操作命令を含む画面操作命令に従って操作が実行された場合の実行履歴と、を前記可視化ファイルに埋め込む処理エラー情報埋込手段としての処理エラー情報埋込部102eと、(6)処理エラーがあったことを示す実行履歴に対応する操作を命令した操作命令を、処理エラーの原因として前記可視化ファイルに埋め込む処理エラー原因埋込手段としての処理エラー原因埋込部102fと、(7)処理エラーがあったことを示す実行履歴に対応する操作を命令した操作命令を含む画面操作命令に基づいて、前記テストの対象となったアプリケーションについての詳細な設定情報を確認するためのリンクを前記可視化ファイルに埋め込む第二リンク埋込手段としての第二リンク埋込部102gと、を備えている。なお、各部が実行する処理の内容については、以下の[4.処理の具体例]において説明する。 The control unit 102 has, in terms of functional concept, for example: (1) a comparison result embedding unit 102a as a comparison result embedding means for embedding, in the visualization file, the comparison result of comparing a test image, which is an image of the screen resulting from the test, with a reference image, which is a reference image to be compared, and determining whether the test image corresponds to no difference, a difference, or an incomparable state, and the file name of the test image that is determined to be different or incomparable, based on the comparison result data linked to the file name of the test image; and (2) an image embedding unit 102b as an image embedding means for embedding, in the visualization file, the test image that is determined to be different or incomparable, (3) an execution history embedding unit 102c as execution history embedding means for identifying a screen operation command including an operation command to take a screenshot of the test image determined to be different or incomparable from a screen operation command table including a screen operation command consisting of a block of operation commands that are commands for operations to be automatically executed on the screen during the test, and embedding the contents of execution history data, which is data including an execution history when an operation is executed in accordance with the identified screen operation command, into the visualization file; and (4) a processing unit 102b for confirming detailed setting information about the application that was the subject of the test based on the screen operation command identified by the execution history embedding means. (5) when an execution history indicating that a processing error has occurred exists in execution history data, which is data including an execution history when an operation is performed in accordance with the screen operation command in the screen operation command table, information for identifying the fact that a processing error has occurred, information for identifying a screen operation command including an operation command that instructed an operation corresponding to the execution history indicating that a processing error has occurred, and information for identifying a screen operation command including an operation command that instructed an operation corresponding to the execution history indicating that a processing error has occurred, are embedded in the visualization file; (5) a processing error information embedding unit 102e as processing error information embedding means for embedding in the visualization file an execution history when a processing error is detected, (6) a processing error cause embedding unit 102f as processing error cause embedding means for embedding in the visualization file an operation command that commands an operation corresponding to the execution history indicating that a processing error has occurred as the cause of the processing error, and (7) a second link embedding unit 102g as second link embedding means for embedding in the visualization file a link for checking detailed setting information for the application that was the target of the test, based on a screen operation command including an operation command that commands an operation corresponding to the execution history indicating that a processing error has occurred. The details of the processing performed by each unit are described below in [4. Specific examples of processing].
[3.処理の概要等]
本項目では、本実施形態における処理の概要および本実施形態で用いる用語について説明する。
[3. Overview of Processing, etc.]
In this section, an overview of the processing in this embodiment and the terms used in this embodiment will be explained.
[3-1.本実施形態における処理の概要]
本実施形態においては、図3に示すように、比較差異一覧の情報を含むHTML形式のファイル(HTMLファイル106d)を生成することができる。図3において、点線枠で囲んで示す「差異画像名」は、差異が発生した定義を示す。
[3-1. Overview of processing in this embodiment]
In this embodiment, an HTML file (HTML file 106d) containing information on the comparison difference list can be generated, as shown in Fig. 3. In Fig. 3, the "Difference Image Name" enclosed in a dotted line frame indicates the definition in which the difference occurred.
また、図3において、点線枠で囲んで示す「UI定義情報」の文字列がクリックされると、差異画像名にあるテストケースNOのローコード開発基盤の定義へジャンプする。また、図3において、点線枠で囲んで示す「実行環境」の文字列がクリックされると、差異画像名にあるテストケースNOの実行環境の定義へジャンプする。 Also, in Figure 3, clicking the "UI definition information" string, which is enclosed in a dotted line frame, will jump to the definition of the low-code development platform for the test case number in the difference image name. Also, in Figure 3, clicking the "Execution environment" string, which is enclosed in a dotted line frame, will jump to the definition of the execution environment for the test case number in the difference image name.
ここで、HTML形式のファイル(HTMLファイル106d)を生成する前提として、本実施形態においては、画像比較を行った際の比較結果として、図4に示すテキストファイル(比較結果データ106a)が出力される。 Here, in this embodiment, as a prerequisite for generating an HTML format file (HTML file 106d), the text file (comparison result data 106a) shown in Figure 4 is output as the comparison result when image comparison is performed.
図4の比較結果データ106aにおいて、「X-XXXX-001.png」、「X-XXXX-002.png」および「X-XXXX-003.png」は、比較の対象とした画像(テスト画像)のファイル名を示す。また、図4の比較結果データ106aにおいて、「Error」の文字列は、比較対象画像有無判定において比較画像がなかった(比較不可であった)ことを意味し、「Difference」の文字列は、画像比較において差異があったことを意味し、「Valid」の文字列は、画像比較において差異がなかったことを意味する。 In the comparison result data 106a in Figure 4, "X-XXXX-001.png," "X-XXXX-002.png," and "X-XXXX-003.png" indicate the file names of the images (test images) used for comparison. Also, in the comparison result data 106a in Figure 4, the string "Error" means that no comparison image was found (comparison was not possible) when determining whether or not there was an image to compare, the string "Difference" means that there was a difference in the image comparison, and the string "Valid" means that there was no difference in the image comparison.
このように、本実施形態においては、(1)テスト画像と基準画像の間で生じている差異、(2)テスト画像についてのUI定義情報および実行環境、ならびに、(3)差異が生じている原因を分析するための実行履歴(自動実行定義情報)を、HTML形式のファイルから一覧で確認できるようにした。これにより、差異が生じていることがわかったテスト画像について担当者が手動で情報(UI定義情報および実行環境等)を探すといった、従来行っていた作業を行う必要がなくなる。 In this way, in this embodiment, (1) differences between the test image and the reference image, (2) the UI definition information and execution environment for the test image, and (3) the execution history (automatic execution definition information) for analyzing the cause of the differences can be viewed in a list from an HTML file. This eliminates the need for a person in charge to manually search for information (UI definition information, execution environment, etc.) for test images that are found to have differences, a task previously performed.
[3-2.本実施形態で用いる用語]
本実施形態においては、シナリオテスト実行を行う際は、図5に示す実行設定ファイルで設定した場所に、画像のテストエビデンスおよびCSVデータ等の出力データのエビデンスを配置する。なお、エビデンスのフォルダ構成は、例えば図6に示すとおりである。
[3-2. Terms used in this embodiment]
In this embodiment, when a scenario test is executed, test evidence of images and evidence of output data such as CSV data are placed in the location set in the execution setting file shown in Fig. 5. The folder structure of the evidence is, for example, as shown in Fig. 6.
本実施形態において用いる用語の定義は、以下のとおりである。
・実行ログ・・・シナリオテストの実行操作の履歴を出力するテキストファイル。
・画像エビデンス・・・今回シナリオテストの実行時に取得された、比較対象用のテスト画像。
・出力データ・・・今回シナリオテストの実行時に出力された、画像形式ではないデータ。画像形式ではないデータとは、例えば、CSV形式のデータ。
・基準画像エビデンス・・・前回シナリオテスト実行時に取得された、比較対象用の基準画像。
・基準出力データ・・・前回シナリオテストの実行時に出力された、画像形式ではないデータ。画像形式ではないデータとは、例えば、CSV形式のデータ。
・比較結果画像・・・テスト画像と基準画像を比較した結果を示す画像。両者に差異がある場合、差異部分が、例えば赤くハイライトされた状態で表示される。
The definitions of terms used in this embodiment are as follows.
・Execution log: A text file that outputs the history of scenario test execution operations.
- Image evidence: Test images for comparison taken during the scenario test.
Output data: Data that is not in image format and was output during the current scenario test. Data that is not in image format is, for example, data in CSV format.
- Baseline image evidence: A base image for comparison obtained during the previous scenario test.
Reference output data: Data that is not in image format and was output the last time a scenario test was run. Data that is not in image format is, for example, data in CSV format.
Comparison result image: An image showing the results of comparing the test image and the reference image. If there are any differences between the two, the differences are displayed, for example, highlighted in red.
[4.処理の具体例]
本項目では、本実施形態に係る処理の具体例について説明する。以下の[4-1]においては、画像比較でエラーとなる場合(比較不可の場合)のHTML形式のファイル生成について説明する。以下の[4-2]においては、画像比較で差異がある場合(差異ありの場合)のHTML形式のファイル生成について説明する。以下の[4-3]においては、画面操作プログラムの実行ログでエラーがある場合(処理エラーがある場合)のHTML形式のファイル生成について説明する。
4. Specific examples of processing
This section describes a specific example of processing according to this embodiment. In the following [4-1], generation of an HTML format file when an error occurs in image comparison (when comparison is not possible) is described. In the following [4-2], generation of an HTML format file when there is a difference in image comparison (when there is a difference) is described. In the following [4-3], generation of an HTML format file when there is an error in the execution log of the screen operation program (when there is a processing error) is described.
ここで、詳細な処理の説明に入る前に、HTML形式のファイル生成の概要について簡単に説明する。本実施形態においては、想定されない結果(=画像の差異および実行時エラー等)が、HTML形式のファイルとして一覧にまとめて出力される。 Before going into detailed processing, we will briefly outline how HTML files are generated. In this embodiment, unexpected results (image differences, runtime errors, etc.) are output as a list in an HTML file.
生成されるHTML形式のファイルは、ローコード開発基盤での開発画面(UI定義情報)およびローコード開発基盤の実行環境へと飛ぶためのリンクを含むため、オペレータは、リンクから直接、定義内容および動作を確認することが可能である。生成されるHTML形式のファイルにおいては、差異として抽出された情報は、強調表示されることにより可視化されている。 The generated HTML file contains the development screen (UI definition information) for the low-code development platform and a link to the low-code development platform's execution environment, allowing operators to directly check the definition content and operation from the link. In the generated HTML file, information extracted as differences is visualized by being highlighted.
画像比較で差異がある場合(差異ありの場合)に生成されるHTML形式のファイルの例を図9に示し、画像比較でエラーとなる場合(比較不可の場合)に生成されるHTML形式のファイルの例を図10に示し、画面操作プログラムの実行ログでエラーがある場合(処理エラーがある場合)に生成されるHTML形式のファイルの例を図11に示す。 Figure 9 shows an example of an HTML file generated when there are differences in the image comparison (if there are differences), Figure 10 shows an example of an HTML file generated when there is an error in the image comparison (if comparison is not possible), and Figure 11 shows an example of an HTML file generated when there is an error in the screen operation program execution log (if there is a processing error).
なお、本項目[4.処理の具体例]においては、基準画像およびテスト画像の内容は、以下のとおりとする。すなわち、基準画像(正常な画像)は、取引先CDのFromに「1」が設定されると取引先CDのToにも「1」が自動設定された場合における画面の画像である。これに対して、テスト画像(異常な画像)は、取引先CDのFromに「1」が設定されても取引先CDのToに値が自動設定されなかった、または、取引先CDのFromに「1」が設定されると取引先CDのToに値が自動設定されるがその値が「2」であった場合における画面の画像である。 In this section [4. Specific examples of processing], the contents of the reference image and test image are as follows. That is, the reference image (normal image) is the image of the screen when "1" is set in From for supplier CD and "1" is automatically set in To for supplier CD. In contrast, the test image (abnormal image) is the image of the screen when "1" is set in From for supplier CD but a value is not automatically set in To for supplier CD, or when "1" is set in From for supplier CD and a value is automatically set in To for supplier CD but that value is "2."
[4-1.画像比較でエラーとなる場合(比較不可の場合)のHTML形式のファイル生成]
本項目では、画像比較でエラーとなる場合(比較不可の場合)のHTML形式のファイル生成について説明する。画像比較でエラーとなる場合とは、例えば、テスト実行時の画像は存在するが、比較対象となる基準画像が存在しない場合、および、基準画像とテスト画像の画像サイズが異なり比較ができない場合等を指す。
[4-1. Creating an HTML file when an error occurs during image comparison (when comparison is not possible)]
This section explains how to generate an HTML file when an error occurs during image comparison (when comparison is not possible). An error during image comparison occurs when, for example, the image used during test execution exists but the reference image to be compared does not exist, or when the image sizes of the reference image and test image are different and comparison is not possible.
以下、図7のフローチャートに沿って処理を詳細に説明する。 The process is explained in detail below, following the flowchart in Figure 7.
(1)タイトルの埋め込み
まず、処理が始まると(図7のスタート)、テスト画像と基準画像が比較されることにより、テキスト形式の比較結果データ106aが出力される(図7のステップSA1)。
(1) Embedding a Title First, when the process begins (START in FIG. 7), the test image is compared with the reference image, and comparison result data 106a in text format is output (step SA1 in FIG. 7).
次に、比較結果データ106aに基づいて、比較ができない画像のファイル名または差異のある画像のファイル名と、比較結果の状態(Error、Difference、またはValid)と、が取得される(図7のステップSA2)。 Next, based on the comparison result data 106a, the file names of images that cannot be compared or that have differences, and the status of the comparison result (Error, Difference, or Valid) are obtained (step SA2 in Figure 7).
次に、画像比較ができなかったか否かが判断される(図7のステップSA3)。画像比較ができなかった場合(図7のステップSA3:Yes)、次段落で説明するステップSA4に進む。これに対して、画像比較ができた場合(図7のステップSA3:No)、次項目[4-2]で説明するステップSA9に進む。 Next, it is determined whether image comparison was successful (step SA3 in Figure 7). If image comparison was not successful (step SA3 in Figure 7: Yes), the process proceeds to step SA4, which will be described in the next paragraph. On the other hand, if image comparison was successful (step SA3 in Figure 7: No), the process proceeds to step SA9, which will be described in the next section [4-2].
画像比較ができなかった場合(図7のステップSA3:Yes)、比較結果埋込部102aは、図12に示すように、比較結果データ106aに基づいて、比較不可の比較結果(図12のHTMLファイル106dにおける「画像比較時エラー」の文言)と、比較不可と判断された前記テスト画像のファイル名(図12のHTMLファイル106dにおける「X-XXXX-002.png」というファイル名)と、をHTMLファイル106dに埋め込む。 If image comparison is not possible (step SA3 in FIG. 7: Yes), the comparison result embedding unit 102a embeds the comparison result indicating that comparison is not possible (the message "Image comparison error" in HTML file 106d in FIG. 12) and the file name of the test image that was determined to be incomparable (the file name "X-XXXX-002.png" in HTML file 106d in FIG. 12) into HTML file 106d based on the comparison result data 106a, as shown in FIG. 12.
言い換えると、比較結果埋込部102aは、画像の比較結果テキストファイルをもとに、比較エラーとなった画像のファイル名をHTMLのタイトルへセットする(図7のステップSA4)。 In other words, the comparison result embedding unit 102a sets the file name of the image that resulted in a comparison error as the HTML title based on the image comparison result text file (step SA4 in Figure 7).
(2)画像の埋め込み
次に、画像埋込部102bは、図13に示すように、比較不可と判断された前記テスト画像をHTMLファイル106dに埋め込む。
(2) Embedding of Images Next, the image embedding unit 102b embeds the test images that have been determined to be incomparable into the HTML file 106d, as shown in FIG.
言い換えると、画像埋込部102bは、画像の比較結果テキストファイルをもとに、比較エラーとなった画像を取得しHTMLへ埋め込む(図7のステップSA5)。 In other words, the image embedding unit 102b obtains the images that resulted in a comparison error based on the image comparison result text file and embeds them into HTML (step SA5 in Figure 7).
(3)ログ情報の埋め込みおよび対象処理のハイライト
次に、実行履歴埋込部102cは、図14の画面操作命令テーブル106bから、比較不可と判断された前記テスト画像のスクリーンショットを撮ることを命令する操作命令(タイプ「スクリーンショット」、ファイル名「X-XXXX-002.png」および確認内容「取引先CD_Toに1と表示されるか」という操作命令)を含む画面操作命令(定義Id=X002の画面操作命令)を特定する。
(3) Embedding of log information and highlighting of target processing Next, the execution history embedding unit 102c identifies a screen operation command (screen operation command with definition ID = X002) from the screen operation command table 106b of Figure 14 that includes an operation command to take a screenshot of the test image that was determined to be incomparable (an operation command with type ``screenshot'', file name ``X-XXXX-002.png'', and confirmation content ``Is 1 displayed for customer CD_To?'').
そして、実行履歴埋込部102cは、図14に示すように、当該特定した画面操作命令に従って操作が実行された場合の実行履歴データ106c(データとしては図示せず)の内容をHTMLファイル106dに埋め込む。図14のHTMLファイル106dにける「自動実行定義情報」で示す情報が、HTMLファイル106dに埋め込まれた後の実行履歴データ106cである。 Then, as shown in FIG. 14, the execution history embedding unit 102c embeds the contents of the execution history data 106c (not shown as data) when an operation is performed in accordance with the identified screen operation command into the HTML file 106d. The information indicated as "automatic execution definition information" in the HTML file 106d in FIG. 14 is the execution history data 106c after being embedded in the HTML file 106d.
なお、実行履歴埋込部102cは、図14に示すように、実行履歴データ106cと併せて、前記操作命令(タイプ「スクリーンショット」、ファイル名「X-XXXX-002.png」および確認内容「取引先CD_Toに1と表示されるか」という操作命令)中の確認内容「取引先CD_Toに1と表示されるか」も、HTMLファイル106dに埋め込んでもよい。 In addition, as shown in FIG. 14, the execution history embedding unit 102c may also embed the confirmation content "Is 1 displayed for customer CD_To?" from the operation command (operation command with type "screenshot," file name "X-XXXX-002.png," and confirmation content "Is 1 displayed for customer CD_To?") into the HTML file 106d along with the execution history data 106c.
このように、実行履歴埋込部102cは、画像の比較結果テキストファイルをもとに、業務用アプリケーションDBの画面操作命令テーブル106bを参照し、確認内容および自動実行定義のログ情報をHTMLへ埋め込む(図7のステップSA6)。 In this way, the execution history embedding unit 102c references the screen operation command table 106b in the business application DB based on the image comparison result text file, and embeds the confirmation details and automatic execution definition log information into HTML (step SA6 in Figure 7).
ここで、実行履歴埋込部102cは、図14に示すように、比較不可と判断された前記テスト画像のスクリーンショットを撮ることを命令する操作命令に対応する実行履歴「OK スクリーンショットをとる:X-XXXX-002.png」を識別可能な態様(図14では、太字としている)で、実行履歴データ106cの内容をHTMLファイル106dに埋め込む。 Here, as shown in FIG. 14, the execution history embedding unit 102c embeds the contents of the execution history data 106c into the HTML file 106d in a manner that makes it possible to identify the execution history "OK Take screenshot: X-XXXX-002.png" corresponding to the operation command to take a screenshot of the test image that was determined to be incomparable (shown in bold in FIG. 14).
言い換えると、実行履歴埋込部102cは、エラーとなった画像のスクリーンショットをとっている操作命令をハイライトすることで強調する(図7のステップSA7)。 In other words, the execution history embedding unit 102c highlights the operation command that takes a screenshot of the image that resulted in the error (step SA7 in Figure 7).
(4)リンク情報の埋め込み
最後に、第一リンク埋込部102dは、図15に示すように、(3)において実行履歴埋込部102cで特定した画面操作命令(定義Id=X002の画面操作命令)に基づいて、前記テストの対象となったアプリケーションについての詳細な設定情報を確認するためのリンク(「UI定義情報」の文字列および「実行環境」の文字列)をHTMLファイル106dに埋め込む。
(4) Embedding of link information Finally, as shown in FIG. 15, the first link embedding unit 102d embeds links (a string of “UI definition information” and a string of “execution environment”) for checking detailed setting information about the application that was the subject of the test into the HTML file 106d based on the screen operation command (a screen operation command with definition ID=X002) identified by the execution history embedding unit 102c in (3).
言い換えると、第一リンク埋込部102dは、画像の比較結果テキストファイルをもとに、業務用アプリケーションDBの画面操作命令テーブル106bを参照し、UI定義情報および実行環境へのリンク情報をHTMLへ埋め込む(図7のステップSA8)。 In other words, the first link embedding unit 102d references the screen operation command table 106b in the business application DB based on the image comparison result text file, and embeds UI definition information and link information to the execution environment into the HTML (step SA8 in Figure 7).
HTMLファイル106d中の「UI定義情報」の文字列および「実行環境」の文字列をクリックした場合に表示される画面の例を、図16に示す。オペレータは、実際に実行履歴の情報をもとに、手動で入力を行いデグレードが起きているのかを確認することができる。 Figure 16 shows an example of the screen that appears when you click on the "UI definition information" and "execution environment" strings in HTML file 106d. The operator can manually enter information based on the execution history information to check whether degradation has occurred.
[4-2.画像比較で差異がある場合(差異ありの場合)のHTML形式のファイル生成]
本項目では、画像比較で差異がある場合(差異ありの場合)のHTML形式のファイル生成について説明する。画像比較で差異がある場合とは、テスト画像と基準画像の間で、何らかの差異が存在する場合を指す。
[4-2. Creating an HTML file when there are differences in the image comparison (if there are differences)]
This section explains how to generate an HTML file when there are differences in the image comparison. When there are differences in the image comparison, this refers to when there are some differences between the test image and the reference image.
以下、図7のフローチャートに沿って処理を詳細に説明する。 The process is explained in detail below, following the flowchart in Figure 7.
(1)タイトルの埋め込み
ステップSA1~ステップSA3までの処理は、[4-1]と同様であるため、詳細な説明は割愛する。ステップSA3において画像比較ができた場合(図7のステップSA3:No)、本項目で説明するステップSA9以降の処理へと進む。
(1) Embedding a Title The processes from step SA1 to step SA3 are the same as those in [4-1], so detailed explanations will be omitted. If image comparison is successful in step SA3 (step SA3 in FIG. 7: No), the process proceeds to step SA9 and subsequent steps described in this section.
ステップSA4においては、画像比較で差異があるか否かが判断される(図7のステップSA9)。差異がない場合(図7のステップSA9:No)、処理は終了する(図7のエンド)。これに対して、差異がある場合(図7のステップSA9:Yes)、比較結果埋込部102aは、図17の比較結果データ106aに基づいて、差異ありの比較結果(図18のHTMLファイル106dにおける「Difference」の文言)と、差異ありと判断された前記テスト画像のファイル名(図18のHTMLファイル106dにおける「X-XXXX-001.png」というファイル名)と、をHTMLファイル106dに埋め込む。 In step SA4, it is determined whether or not there are any differences in the image comparison (step SA9 in FIG. 7). If there are no differences (step SA9 in FIG. 7: No), processing ends (END in FIG. 7). On the other hand, if there are differences (step SA9 in FIG. 7: Yes), the comparison result embedding unit 102a embeds the comparison result showing differences (the word "Difference" in HTML file 106d in FIG. 18) and the file name of the test image determined to have a difference (the file name "X-XXXX-001.png" in HTML file 106d in FIG. 18) into HTML file 106d based on the comparison result data 106a in FIG. 17.
言い換えると、比較結果埋込部102aは、画像の比較結果テキストファイルをもとに、差異ありとなった画像のファイル名をHTMLのタイトルへセットする(図7のステップSA10)。このように、画像の比較はできるが画像の差異がある場合、比較結果埋込部102aは、比較結果テキストファイルで「Difference」が付されたファイル名を取得し、HTMLへタイトルセットを行う。 In other words, the comparison result embedding unit 102a sets the file name of the image that has been found to have differences as the HTML title based on the image comparison result text file (step SA10 in FIG. 7). In this way, if the images can be compared but there are differences, the comparison result embedding unit 102a obtains the file name with "Difference" added from the comparison result text file and sets the title in the HTML.
(2)画像の埋め込み
次に、画像埋込部102bは、差異ありと判断された前記テスト画像をHTMLファイル106dに埋め込むが、より具体的には、図18に示すように、差異ありと判断された前記テスト画像と、当該テスト画像の比較対象となった基準画像と、当該両画像間の差異を強調表示した画像(図18のHTMLファイル106dにおける「比較結果画像」)と、をHTMLファイル106dに埋め込む。
(2) Embedding of Images Next, the image embedding unit 102b embeds the test image determined to have a difference into the HTML file 106d. More specifically, as shown in FIG. 18, the image embedding unit 102b embeds the test image determined to have a difference, the reference image with which the test image was compared, and an image highlighting the difference between the two images (the "comparison result image" in the HTML file 106d in FIG. 18) into the HTML file 106d.
言い換えると、画像埋込部102bは、画像の比較結果テキストファイルをもとに、差異のある画像(テスト画像)、基準画像および比較結果画像をHTMLへ埋め込む(図7のステップSA11)。 In other words, the image embedding unit 102b embeds the image with differences (test image), the reference image, and the comparison result image into HTML based on the image comparison result text file (step SA11 in Figure 7).
(3)ログ情報の埋め込みおよび対象処理のハイライト
次に、実行履歴埋込部102cは、画面操作命令テーブル106bから、差異ありと判断された前記テスト画像のスクリーンショットを撮ることを命令する操作命令(タイプ「スクリーンショット」、ファイル名「X-XXXX-001.png」および確認内容「取引先CD_Toに1と表示されるか」という操作命令)を含む画面操作命令(定義Id=X003の画面操作命令)を特定する。
(3) Embedding of log information and highlighting of target processing Next, the execution history embedding unit 102c identifies a screen operation command (screen operation command with definition ID = X003) from the screen operation command table 106b that includes an operation command to take a screenshot of the test image that has been determined to be different (an operation command with type "screenshot", file name "X-XXXX-001.png", and confirmation content "Is 1 displayed for customer CD_To?").
そして、実行履歴埋込部102cは、図18に示すように、当該特定した画面操作命令に従って操作が実行された場合の実行履歴データ106c(データとしては図示せず)の内容をHTMLファイル106dに埋め込む。図18のHTMLファイル106dにける「自動実行定義情報」で示す情報が、HTMLファイル106dに埋め込まれた後の実行履歴データ106cである。 Then, as shown in FIG. 18, the execution history embedding unit 102c embeds the contents of the execution history data 106c (not shown as data) when an operation is performed in accordance with the identified screen operation command into the HTML file 106d. The information indicated as "automatic execution definition information" in the HTML file 106d in FIG. 18 is the execution history data 106c after being embedded in the HTML file 106d.
なお、実行履歴埋込部102cは、図18に示すように、実行履歴データ106cと併せて、前記操作命令(タイプ「スクリーンショット」、ファイル名「X-XXXX-001.png」および確認内容「取引先CD_Toに1と表示されるか」という操作命令)中の確認内容「取引先CD_Toに1と表示されるか」も、HTMLファイル106dに埋め込んでもよい。 In addition, as shown in FIG. 18, the execution history embedding unit 102c may also embed the confirmation content "Is 1 displayed for customer CD_To?" from the operation command (operation command with type "screenshot," file name "X-XXXX-001.png," and confirmation content "Is 1 displayed for customer CD_To?") into the HTML file 106d along with the execution history data 106c.
このように、実行履歴埋込部102cは、画像の比較結果テキストファイルをもとに、業務用アプリケーションDBの画面操作命令テーブル106bを参照し、確認内容および自動実行定義のログ情報をHTMLへ埋め込む(図7のステップSA12)。 In this way, the execution history embedding unit 102c references the screen operation command table 106b in the business application DB based on the image comparison result text file, and embeds the confirmation details and automatic execution definition log information into HTML (step SA12 in Figure 7).
ここで、実行履歴埋込部102cは、図18に示すように、差異ありと判断された前記テスト画像のスクリーンショットを撮ることを命令する操作命令に対応する実行履歴「OK スクリーンショットをとる:X-XXXX-001.png」を識別可能な態様(図18では、太字としている)で、実行履歴データ106cの内容をHTMLファイル106dに埋め込む。 Here, as shown in FIG. 18, the execution history embedding unit 102c embeds the contents of the execution history data 106c into the HTML file 106d in a manner that makes it possible to identify the execution history "OK Take screenshot: X-XXXX-001.png" corresponding to the operation command to take a screenshot of the test image that was determined to be different (shown in bold in FIG. 18).
言い換えると、実行履歴埋込部102cは、差異ありとなった画像のスクリーンショットをとっている操作命令をハイライトすることで強調する(図7のステップSA13)。 In other words, the execution history embedding unit 102c highlights the operation command that takes a screenshot of the image that has been found to be different (step SA13 in Figure 7).
(4)リンク情報の埋め込み
最後に、第一リンク埋込部102dは、図18に示すように、(3)において実行履歴埋込部102cで特定した画面操作命令(定義Id=X003の画面操作命令)に基づいて、前記テストの対象となったアプリケーションについての詳細な設定情報を確認するためのリンク(「UI定義情報」の文字列および「実行環境」の文字列)をHTMLファイル106dに埋め込む。
(4) Embedding of link information Finally, as shown in FIG. 18, the first link embedding unit 102d embeds links (a string of “UI definition information” and a string of “execution environment”) for checking detailed setting information about the application that was the subject of the test into the HTML file 106d based on the screen operation command (a screen operation command with definition ID=X003) identified by the execution history embedding unit 102c in (3).
言い換えると、第一リンク埋込部102dは、画像の比較結果テキストファイルをもとに、業務用アプリケーションDBの画面操作命令テーブル106bを参照し、UI定義情報および実行環境へのリンク情報をHTMLへ埋め込む(図7のステップSA14)。 In other words, the first link embedding unit 102d references the screen operation command table 106b in the business application DB based on the image comparison result text file, and embeds UI definition information and link information to the execution environment into the HTML (step SA14 in Figure 7).
HTMLファイル106d中の「UI定義情報」の文字列および「実行環境」の文字列をクリックした場合に表示される画面の例は、図16にしたとおりである。 Figure 16 shows an example of the screen that appears when you click the "UI definition information" and "execution environment" strings in HTML file 106d.
以上、[4-1]および[4-2]で説明してきた処理により、あるテスト画像に関してのHTMLファイル106dの生成が終了する。 The processes described in [4-1] and [4-2] above complete the generation of the HTML file 106d for a test image.
続けて、比較できない画像または差異のある画像が、まだ存在するか否かがチェックされる(図7のステップSA15)。比較できない画像または差異のある画像が存在しない場合(図7のステップSA15:No)、処理は終了する(図7のエンド)。これに対して、比較できない画像または差異のある画像がまだ存在する場合(図7のステップSA15:Yes)、ステップSA3に戻り、当該比較できない画像または当該差異のある画像に関してのHTMLファイル106dが生成される。比較できない画像または差異のある画像が存在しなくなるまで、ステップSA3~ステップSA15の処理は繰り返し行われる。 Next, a check is made to see if there are any more incomparable or different images (step SA15 in Figure 7). If there are no more incomparable or different images (step SA15 in Figure 7: No), the process ends (end in Figure 7). On the other hand, if there are still more incomparable or different images (step SA15 in Figure 7: Yes), the process returns to step SA3, and an HTML file 106d is generated for those incomparable or different images. Steps SA3 to SA15 are repeated until there are no more incomparable or different images.
[4-3.画面操作プログラムの実行ログでエラーがある場合(処理エラーがある場合)のHTML形式のファイル生成]
本項目では、画面操作プログラムの実行ログでエラーがある場合(処理エラーがある場合)のHTML形式のファイル生成について説明する。画面操作プログラムの実行ログでエラーがある場合とは、例えば、処理実行中にエラーが発生する場合、データ比較でNGとなる場合、および、ボタンの押下ができない場合等である。
[4-3. Generating an HTML file when there is an error in the execution log of the screen operation program (when there is a processing error)]
This section explains how to generate an HTML file when there is an error in the execution log of the screen operation program (when there is a processing error). Examples of when there is an error in the execution log of the screen operation program include when an error occurs during processing, when data comparison fails, and when a button cannot be pressed.
以下、図8のフローチャートに沿って処理を詳細に説明する。 The process is explained in detail below, following the flowchart in Figure 8.
(1)タイトルの埋め込み
まず、処理が始まると(図8のスタート)、画面操作プログラムの実行履歴データ106c(実行ログ)が出力される(図8のステップSB1)。
(1) Embedding a Title First, when the process starts (START in FIG. 8), the execution history data 106c (execution log) of the screen operation program is output (step SB1 in FIG. 8).
次に、実行履歴データ106c(実行ログ)の情報が取得され(図8のステップSB2)、続けて、実行履歴データ106c(実行ログ)中の定義情報が、1行ずつ読み込まれる(図8のステップSB3)。 Next, information from the execution history data 106c (execution log) is obtained (step SB2 in Figure 8), and then the definition information in the execution history data 106c (execution log) is read line by line (step SB3 in Figure 8).
次に、画面操作プログラムの実行履歴データ106c(実行ログ)において、処理エラー(NG)が存在するか否かが判断される(図8のステップSB4)。処理エラー(NG)が存在しない場合(図8のステップSB4:No)、処理は終了する(図8のエンド)。これに対して、処理エラー(NG)が存在する場合(図8のステップSB4:Yes)、次段落で説明するステップSB5に進む。 Next, it is determined whether a processing error (NG) exists in the execution history data 106c (execution log) of the screen operation program (step SB4 in FIG. 8). If a processing error (NG) does not exist (step SB4 in FIG. 8: No), the process ends (end in FIG. 8). On the other hand, if a processing error (NG) exists (step SB4 in FIG. 8: Yes), the process proceeds to step SB5, which will be described in the next paragraph.
前段落で説明したように、実行履歴データ106c(実行ログ)において、処理エラーがあったことを示す実行履歴が存在する場合(図8のステップSB4:Yes)、処理エラー情報埋込部102eは、図19の実行履歴データ106c(実行ログ)および図19の画面操作命令テーブル106bに基づいて、次段落で説明するように情報をHTMLファイル106dに埋め込む。 As explained in the previous paragraph, if the execution history data 106c (execution log) contains an execution history indicating that a processing error occurred (step SB4 in Figure 8: Yes), the processing error information embedding unit 102e embeds information into the HTML file 106d as explained in the next paragraph based on the execution history data 106c (execution log) in Figure 19 and the screen operation command table 106b in Figure 19.
すなわち、処理エラー情報埋込部102eは、図19に示すように、
●処理エラーがあった事実を識別するための情報(図19のHTMLファイル106dにおける「実行時エラー」の文言)と、
●処理エラーがあったことを示す実行履歴(図19の実行履歴データ106cにおける「NG CSVデータが基準データと同じか」という実行履歴)に対応する操作を命令した操作命令(図19の画面操作命令テーブル106bにおける、タイプ「チェックデータ」、ファイル名「X-XXXX-004_グリッド表示.csv」および比較対象「X-XXXX-004_基準データ.csv」という操作命令)を含む画面操作命令(図19の画面操作命令テーブル106bにおける定義Id=X004の画面操作命令)を識別するための情報(図19のHTMLファイル106dにおける「X004 X-XXXX-004」というタイトル)と、
●処理エラーがあったことを示す実行履歴(図19の実行履歴データ106cにおける「NG CSVデータが基準データと同じか」という実行履歴)に対応する操作を命令した操作命令(図19の画面操作命令テーブル106bにおける、タイプ「チェックデータ」、ファイル名「X-XXXX-004_グリッド表示.csv」および比較対象「X-XXXX-004_基準データ.csv」という操作命令)を含む画面操作命令(図19の画面操作命令テーブル106bにおける定義Id=X004の画面操作命令)に従って操作が実行された場合の実行履歴(図19のHTMLファイル106dにおける自動実行定義情報)と、
をHTMLファイル106dに埋め込む。
That is, the processing error information embedding unit 102e, as shown in FIG.
Information for identifying the fact that a processing error has occurred (the phrase "Runtime Error" in the HTML file 106d of FIG. 19),
Information for identifying a screen operation command (the screen operation command with definition ID = X004 in the screen operation command table 106b of Fig. 19 ) including an operation command (the operation command with type "check data", file name "X-XXXX-004_griddisplay.csv", and comparison target "X-XXXX-004_referencedata.csv" in the screen operation command table 106b of Fig. 19 ) that instructed an operation corresponding to an execution history indicating that a processing error occurred (the execution history "NG: Is the CSV data the same as the reference data?" in the execution history data 106c of Fig. 19 ), and
an execution history (automatic execution definition information in the HTML file 106d of FIG. 19) when an operation is executed in accordance with a screen operation command (screen operation command with definition ID=X004 in the screen operation command table 106b of FIG. 19) including an operation command (operation command with type “check data”, file name “X-XXXX-004_grid display.csv” and comparison target “X-XXXX-004_reference data.csv” in the screen operation command table 106b of FIG. 19) that commands an operation corresponding to an execution history indicating that a processing error has occurred (an execution history of “NG: Is the CSV data the same as the reference data?” in the execution history data 106c of FIG. 19); and
is embedded in the HTML file 106d.
言い換えると、処理エラー情報埋込部102eは、画面操作プログラムの実行ログをもとに、NGとなった定義名に基づいて、業務用アプリケーションDBから対応する画面操作命令を取得し、HTMLのタイトルへセットする。また、処理エラー情報埋込部102eは、画面操作プログラムの実行ログをもとに、NGとなった定義名に基づいて、業務用アプリケーションDBから対応する実行履歴を取得し、HTMLに埋め込む(図8のステップSB5)。 In other words, the processing error information embedding unit 102e retrieves the corresponding screen operation command from the business application DB based on the failed definition name and the execution log of the screen operation program, and sets it in the HTML title. Also, the processing error information embedding unit 102e retrieves the corresponding execution history from the business application DB based on the failed definition name and the execution log of the screen operation program, and embeds it in the HTML (step SB5 in Figure 8).
ここで、処理エラー情報埋込部102eは、図19に示すように、処理エラーがあったことを示す実行履歴「NG CSVデータが基準データと同じか」を識別可能な態様で(図19では、太字としている)、処理エラーがあったことを示す当該実行履歴に対応する操作を命令した操作命令を含む画面操作命令に従って操作が実行された場合の実行履歴(図19のHTMLファイル106dにおける自動実行定義情報)をHTMLファイル106dに埋め込む。 Here, as shown in FIG. 19, the processing error information embedding unit 102e embeds into the HTML file 106d the execution history (automatic execution definition information in HTML file 106d in FIG. 19) when an operation is performed in accordance with a screen operation command including an operation command that commands an operation corresponding to the execution history indicating that a processing error occurred, in a manner that makes it possible to identify the execution history "NG: Is the CSV data the same as the reference data?" (shown in bold in FIG. 19).
言い換えると、処理エラー情報埋込部102eは、実行ログにおいてNGとなった実行履歴をハイライトすることで強調する(図8のステップSB6)。 In other words, the processing error information embedding unit 102e highlights the execution history that resulted in an NG in the execution log (step SB6 in Figure 8).
(2)NGとなった原因処理についての詳細情報(操作命令)の埋め込み
処理エラー原因埋込部102fは、図20に示すように、処理エラーがあったことを示す実行履歴(図20の実行履歴データ106cにおける「NG CSVデータが基準データと同じか」という実行履歴)に対応する操作を命令した操作命令(図20の画面操作命令テーブル106bにおけるファイル名「X-XXXX-004_グリッド表示.csv」という操作命令)を、処理エラーの原因としてHTMLファイル106dに埋め込む。
(2) Embedding of detailed information (operation command) about the processing that caused the NG The processing error cause embedding unit 102f embeds, as the cause of the processing error, an operation command (an operation command with the file name “X-XXXX-004_griddisplay.csv” in the screen operation command table 106b in FIG. 20) that commands an operation corresponding to the execution history indicating that a processing error occurred (the execution history “NG: Is the CSV data the same as the reference data?” in the execution history data 106c in FIG. 20) as shown in FIG. 20 in the HTML file 106d.
言い換えると、処理エラー原因埋込部102fは、NGとなった処理の詳細を画面操作プログラムログから取得し、HTMLに埋め込む(図8のステップSB7)。 In other words, the processing error cause embedding unit 102f obtains details of the failed processing from the screen operation program log and embeds them into the HTML (step SB7 in Figure 8).
(3)リンク情報の埋め込み
最後に、第二リンク埋込部102gは、図21に示すように、処理エラーがあったことを示す実行履歴に対応する操作を命令した操作命令を含む画面操作命令(定義Id=X004の画面操作命令)に基づいて、前記テストの対象となったアプリケーションについての詳細な設定情報を確認するためのリンク(「UI定義情報」の文字列および「実行環境」の文字列)をHTMLファイル106dに埋め込む。
(3) Embedding of link information Finally, the second link embedding unit 102g embeds links (a string of "UI definition information" and a string of "execution environment") for checking detailed setting information about the application that was the subject of the test into the HTML file 106d based on a screen operation command (a screen operation command with definition ID = X004) that includes an operation command that commands an operation corresponding to the execution history that indicates that a processing error occurred, as shown in Figure 21.
言い換えると、第二リンク埋込部102gは、NGとなった実行ログテキストファイルをもとに、業務用アプリケーションDBの画面操作命令テーブル106bを参照し、UI定義情報と実行環境へのリンク情報をHTMLへ埋め込む(図8のステップSB8)。 In other words, the second link embedding unit 102g references the screen operation command table 106b in the business application DB based on the failed execution log text file, and embeds UI definition information and link information to the execution environment into the HTML (step SB8 in Figure 8).
HTMLファイル106d中の「UI定義情報」の文字列および「実行環境」の文字列をクリックした場合に表示される画面の例は、図16にしたとおりである。 Figure 16 shows an example of the screen that appears when you click the "UI definition information" and "execution environment" strings in HTML file 106d.
以上、[4-3]で説明してきた処理により、実行履歴データ106c(実行ログ)中のNGとなっている実行履歴に関してのHTMLファイル106dの生成が終了する。 The process described in [4-3] above completes the generation of HTML file 106d for the execution history that is marked as NG in the execution history data 106c (execution log).
続けて、ステップSB3に戻り、実行ログに落ちている定義情報から、次の行が読み込まれる。NGとなっている実行履歴行が存在しなくなるまで(=ステップSB4において、Noへ進むまで)、ステップSB3~ステップSB8の処理が繰り返し行われる。 Next, the program returns to step SB3, where the next line is read from the definition information in the execution log. Steps SB3 to SB8 are repeated until there are no more failed execution history lines (i.e., until step SB4 proceeds to No).
[5.本実施形態のまとめ]
以上説明してきたように、本実施形態に係るテスト結果可視化ファイル生成装置100によれば、開発されたアプリケーションを画面上で自動実行するテストを行った結果を可視化し、かつ、問題発生箇所の特定も容易にするためのファイルである可視化ファイル(HTMLファイル106d)を生成することができる。
5. Summary of this embodiment
As described above, the test result visualization file generation device 100 according to this embodiment can generate a visualization file (HTML file 106d) that visualizes the results of a test that automatically executes a developed application on a screen and also makes it easy to identify where a problem has occurred.
これにより、担当者は、テストの結果をHTMLファイル106d中で確認できるようになった。また、担当者は、動作テストにおいて問題が発生した場合に、HTMLファイル106d内でテストの操作の実行履歴を確認できるようになった。更に、担当者は、HTMLファイル106d内のリンクから飛ぶことで、開発されたアプリケーションについての詳細な設定情報を確認できるようになった。つまり、担当者は、HTMLファイル106dを参照するのみで、動作テスト結果確認および問題発生箇所特定の両方を容易かつ迅速にできるようになった。 This allows the person in charge to check the test results in HTML file 106d. Furthermore, if a problem occurs during an operational test, the person in charge can check the execution history of the test operations in HTML file 106d. Furthermore, the person in charge can check detailed setting information for the developed application by clicking on a link in HTML file 106d. In other words, the person in charge can now easily and quickly both check the operational test results and identify the location of the problem simply by referring to HTML file 106d.
[6.国連が主導する持続可能な開発目標(SDGs)への貢献]
本実施形態により、業務効率化や企業の適切な経営判断を推進することに寄与することができるので、SDGsの目標8及び9に貢献することが可能となる。
[6. Contribution to the United Nations-led Sustainable Development Goals (SDGs)]
This embodiment can contribute to improving business efficiency and promoting appropriate management decisions by companies, thereby contributing to the achievement of SDGs Goals 8 and 9.
また、本実施形態により、廃棄ロス削減や、ペーパレス・電子化を推進することに寄与することができるので、SDGsの目標12、13及び15に貢献することが可能となる。 Furthermore, this embodiment can contribute to reducing waste and promoting paperless and electronic systems, thereby contributing to SDGs goals 12, 13, and 15.
また、本実施形態により、統制、ガバナンス強化に寄与することができるので、SDGsの目標16に貢献することが可能となる。 Furthermore, this embodiment can contribute to strengthening control and governance, thereby contributing to Goal 16 of the SDGs.
[7.他の実施形態]
本発明は、上述した実施形態以外にも、特許請求の範囲に記載した技術的思想の範囲内において種々の異なる実施形態にて実施されてよいものである。
7. Other Embodiments
The present invention may be implemented in various different embodiments other than those described above within the scope of the technical concept set forth in the claims.
例えば、実施形態において説明した各処理のうち、自動的に行われるものとして説明した処理の全部または一部を手動的に行うこともでき、あるいは、手動的に行われるものとして説明した処理の全部または一部を公知の方法で自動的に行うこともできる。 For example, among the processes described in the embodiments, all or part of the processes described as being performed automatically can be performed manually, or all or part of the processes described as being performed manually can be performed automatically using known methods.
また、本明細書中や図面中で示した処理手順、制御手順、具体的名称、各処理の登録データや検索条件等のパラメータを含む情報、画面例、データベース構成については、特記する場合を除いて任意に変更することができる。 In addition, the processing procedures, control procedures, specific names, registered data for each process, information including parameters such as search conditions, screen examples, and database configurations shown in this specification and drawings may be changed as desired unless otherwise specified.
また、テスト結果可視化ファイル生成装置100に関して、図示の各構成要素は機能概念的なものであり、必ずしも物理的に図示の如く構成されていることを要しない。 Furthermore, with regard to the test result visualization file generation device 100, the components shown in the figure are functional concepts and do not necessarily have to be physically configured as shown.
例えば、テスト結果可視化ファイル生成装置100が備える処理機能、特に制御部にて行われる各処理機能については、その全部または任意の一部を、CPUおよび当該CPUにて解釈実行されるプログラムにて実現してもよく、また、ワイヤードロジックによるハードウェアとして実現してもよい。尚、プログラムは、本実施形態で説明した処理を情報処理装置に実行させるためのプログラム化された命令を含む一時的でないコンピュータ読み取り可能な記録媒体に記録されており、必要に応じてテスト結果可視化ファイル生成装置100に機械的に読み取られる。すなわち、ROMまたはHDD(Hard Disk Drive)などの記憶部などには、OSと協働してCPUに命令を与え、各種処理を行うためのコンピュータプログラムが記録されている。このコンピュータプログラムは、RAMにロードされることによって実行され、CPUと協働して制御部を構成する。 For example, all or any part of the processing functions of the test result visualization file generation device 100, particularly the processing functions performed by the control unit, may be implemented by a CPU and a program interpreted and executed by the CPU, or may be implemented as hardware using wired logic. The program is recorded on a non-transitory, computer-readable recording medium containing programmed instructions for causing the information processing device to execute the processes described in this embodiment, and is mechanically read by the test result visualization file generation device 100 as needed. That is, a computer program that works in conjunction with the OS to issue commands to the CPU and perform various processes is recorded in a storage unit such as a ROM or HDD (Hard Disk Drive). This computer program is executed by being loaded into RAM, and works in conjunction with the CPU to form the control unit.
また、このコンピュータプログラムは、テスト結果可視化ファイル生成装置100に対して任意のネットワークを介して接続されたアプリケーションプログラムサーバに記憶されていてもよく、必要に応じてその全部または一部をダウンロードすることも可能である。 In addition, this computer program may be stored on an application program server connected to the test result visualization file generation device 100 via any network, and all or part of it may be downloaded as needed.
また、本実施形態で説明した処理を実行するためのプログラムを、一時的でないコンピュータ読み取り可能な記録媒体に格納してもよく、また、プログラム製品として構成することもできる。ここで、この「記録媒体」とは、メモリーカード、USB(Universal Serial Bus)メモリ、SD(Secure Digital)カード、フレキシブルディスク、光磁気ディスク、ROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(登録商標)(Electrically Erasable and Programmable Read Only Memory)、CD-ROM(Compact Disk Read Only Memory)、MO(Magneto-Optical disk)、DVD(Digital Versatile Disk)、および、Blu-ray(登録商標) Disc等の任意の「可搬用の物理媒体」を含むものとする。 In addition, the program for executing the processing described in this embodiment may be stored on a non-temporary computer-readable recording medium, or may be configured as a program product. Here, this "recording medium" includes memory cards, USB (Universal Serial Bus) memories, SD (Secure Digital) cards, flexible disks, magneto-optical disks, ROMs, EPROMs (Erasable Programmable Read Only Memory), EEPROMs (registered trademark) (Electrically Erasable and Programmable Read Only Memory), CD-ROMs (Compact Disk Read Only Memory), MOs (Magneto-Optical disks), DVDs (Digital Versatile Disks), and more. This includes any "portable physical media" such as a Blu-ray Disc (registered trademark) and a Blu-ray (registered trademark) Disc.
また、「プログラム」とは、任意の言語または記述方法にて記述されたデータ処理方法であり、ソースコードまたはバイナリコード等の形式を問わない。なお、「プログラム」は必ずしも単一的に構成されるものに限られず、複数のモジュールやライブラリとして分散構成されるものや、OSに代表される別個のプログラムと協働してその機能を達成するものをも含む。なお、実施形態に示した各装置において記録媒体を読み取るための具体的な構成および読み取り手順ならびに読み取り後のインストール手順等については、周知の構成や手順を用いることができる。 A "program" is a data processing method written in any language or description method, and may be in any format, such as source code or binary code. It should be noted that a "program" is not necessarily limited to a single structure, but also includes a distributed structure consisting of multiple modules or libraries, or a structure that achieves its function by working in conjunction with a separate program, such as an OS. The specific structure and reading procedure for reading a recording medium in each device shown in the embodiments, as well as the installation procedure after reading, can use well-known structures and procedures.
記憶部に格納される各種のデータベース等は、RAM、ROM等のメモリ装置、ハードディスク等の固定ディスク装置、フレキシブルディスク、および、光ディスク等のストレージ手段であり、各種処理やウェブサイト提供に用いる各種のプログラム、テーブル、データベース、および、ウェブページ用ファイル等を格納する。 The various databases stored in the memory unit are storage devices such as memory devices such as RAM and ROM, fixed disk devices such as hard disks, flexible disks, and optical disks, and store various programs, tables, databases, and web page files used for various processes and website provision.
また、テスト結果可視化ファイル生成装置100は、既知のパーソナルコンピュータまたはワークステーション等の情報処理装置として構成してもよく、また、任意の周辺装置が接続された当該情報処理装置として構成してもよい。また、テスト結果可視化ファイル生成装置100は、当該装置に本実施形態で説明した処理を実現させるソフトウェア(プログラムまたはデータ等を含む)を実装することにより実現してもよい。 The test result visualization file generation device 100 may be configured as an information processing device such as a known personal computer or workstation, or as an information processing device connected to any peripheral device. The test result visualization file generation device 100 may also be implemented by installing software (including programs, data, etc.) that causes the device to perform the processing described in this embodiment.
更に、装置の分散・統合の具体的形態は図示するものに限られず、その全部または一部を、各種の付加等に応じてまたは機能負荷に応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。すなわち、上述した実施形態を任意に組み合わせて実施してもよく、実施形態を選択的に実施してもよい。 Furthermore, the specific form of distribution and integration of the devices is not limited to that shown in the figures, and all or part of them can be functionally or physically distributed and integrated in any unit depending on various additions or functional loads. In other words, the above-mentioned embodiments may be implemented in any combination, or embodiments may be implemented selectively.
本発明は、例えば、開発されたアプリケーションについて画面上で動作テストを行う分野において有用である。 This invention is useful, for example, in the field of performing on-screen operational tests of developed applications.
100 テスト結果可視化ファイル生成装置
102 制御部
102a 比較結果埋込部
102b 画像埋込部
102c 実行履歴埋込部
102d 第一リンク埋込部
102e 処理エラー情報埋込部
102f 処理エラー原因埋込部
102g 第二リンク埋込部
104 通信インターフェース部
106 記憶部
106a 比較結果データ
106b 画面操作命令テーブル
106c 実行履歴データ
106d HTMLファイル
108 入出力インターフェース部
112 入力装置
114 出力装置
200 サーバ
300 ネットワーク
100 Test result visualization file generation device 102 Control unit
102a Comparison result embedding unit
102b Image embedding unit
102c Execution history embedding unit
102d First link embedding portion
102e Processing error information embedding unit
102f Processing error cause embedding unit
102g: second link embedding unit 104: communication interface unit 106: storage unit
106a Comparison result data
106b Screen operation command table
106c Execution history data
106d HTML file 108 Input/output interface unit 112 Input device 114 Output device 200 Server 300 Network
Claims (9)
前記制御部は、
前記テストを行った結果の画面の画像であるテスト画像が、比較対象となる基準の画像である基準画像と比較して、差異なし、差異ありおよび比較不可のうちのいずれに該当するかが判断された結果である比較結果を、前記テスト画像のファイル名と紐付けて含む比較結果データに基づいて、差異ありまたは比較不可の比較結果と、差異ありまたは比較不可と判断された前記テスト画像のファイル名と、を前記可視化ファイルに埋め込む比較結果埋込手段と、
差異ありまたは比較不可と判断された前記テスト画像を前記可視化ファイルに埋め込む画像埋込手段と、
前記テストの際に画面において自動実行される操作についての命令である操作命令の塊からなる画面操作命令を含む画面操作命令テーブルから、差異ありまたは比較不可と判断された前記テスト画像のスクリーンショットを撮ることを命令する操作命令を含む画面操作命令を特定し、当該特定した画面操作命令に従って操作が実行された場合の実行履歴を含むデータである実行履歴データの内容を前記可視化ファイルに埋め込む実行履歴埋込手段と、
前記実行履歴埋込手段で特定した画面操作命令に基づいて、前記テストの対象となったアプリケーションについての詳細な設定情報を確認するためのリンクを前記可視化ファイルに埋め込む第一リンク埋込手段と、
を備えること、
を特徴とするテスト結果可視化ファイル生成装置。 A test result visualization file generation device having a control unit that can generate a visualization file that visualizes the results of a test that automatically executes a developed application on a screen and that facilitates identification of a problem location,
The control unit
a comparison result embedding means for embedding, in the visualization file, the comparison result of whether a test image, which is an image of the screen resulting from the test, corresponds to no difference, a difference, or an incomparability, and the file name of the test image that is determined to be different or incomparable, based on comparison result data that includes the comparison result linked to the file name of the test image, when the test image, which is an image of the screen resulting from the test, is compared with a reference image, which is a reference image to be compared;
an image embedding means for embedding the test image determined to be different or incomparable into the visualization file;
an execution history embedding means for identifying a screen operation command including an operation command to take a screenshot of the test image determined to be different or incomparable from a screen operation command table including screen operation commands consisting of a block of operation commands that are commands for operations that are automatically executed on the screen during the test, and embedding the contents of execution history data, which is data including an execution history when operations are executed in accordance with the identified screen operation command, in the visualization file;
a first link embedding means for embedding a link for checking detailed setting information of the application that was the target of the test into the visualization file based on the screen operation command identified by the execution history embedding means;
To have
A test result visualization file generation device characterized by the above.
差異ありまたは比較不可と判断された前記テスト画像のスクリーンショットを撮ることを命令する操作命令に対応する実行履歴を識別可能な態様で、前記実行履歴データの内容を前記可視化ファイルに埋め込むこと、
を特徴とする請求項1に記載のテスト結果可視化ファイル生成装置。 The execution history embedding means
Embedding the content of the execution history data into the visualization file in a manner that allows identification of an execution history corresponding to an operation command instructing to take a screenshot of the test image that is determined to be different or incomparable;
2. The test result visualization file generating device according to claim 1, wherein:
差異ありと判断された前記テスト画像と、当該テスト画像の比較対象となった前記基準画像と、当該両画像間の差異を強調表示した画像と、を前記可視化ファイルに埋め込むこと、
を特徴とする請求項1に記載のテスト結果可視化ファイル生成装置。 The image embedding means
Embedding the test image determined to have a difference, the reference image used to compare the test image, and an image highlighting the difference between the two images into the visualization file;
2. The test result visualization file generating device according to claim 1, wherein:
前記画面操作命令テーブル中の前記画面操作命令に従って操作が実行された場合の実行履歴を含むデータである実行履歴データにおいて、処理エラーがあったことを示す実行履歴が存在する場合、当該実行履歴データおよび前記画面操作命令テーブルに基づいて、処理エラーがあった事実を識別するための情報と、処理エラーがあったことを示す実行履歴に対応する操作を命令した操作命令を含む画面操作命令を識別するための情報と、処理エラーがあったことを示す実行履歴に対応する操作を命令した操作命令を含む画面操作命令に従って操作が実行された場合の実行履歴と、を前記可視化ファイルに埋め込む処理エラー情報埋込手段と、
処理エラーがあったことを示す実行履歴に対応する操作を命令した操作命令を、処理エラーの原因として前記可視化ファイルに埋め込む処理エラー原因埋込手段と、
処理エラーがあったことを示す実行履歴に対応する操作を命令した操作命令を含む画面操作命令に基づいて、前記テストの対象となったアプリケーションについての詳細な設定情報を確認するためのリンクを前記可視化ファイルに埋め込む第二リンク埋込手段と、
を更に備えること、
を特徴とする請求項1に記載のテスト結果可視化ファイル生成装置。 The control unit
a processing error information embedding means for, when an execution history indicating that a processing error has occurred exists in execution history data, which is data including an execution history when an operation is performed in accordance with the screen operation command in the screen operation command table, embedding, into the visualization file, information for identifying the fact that a processing error has occurred, information for identifying a screen operation command including an operation command which instructed an operation corresponding to the execution history indicating that a processing error has occurred, and an execution history when an operation is performed in accordance with a screen operation command including an operation command which instructed an operation corresponding to the execution history indicating that a processing error has occurred, based on the execution history data and the screen operation command table;
a processing error cause embedding means for embedding, into the visualization file, an operation command that commands an operation corresponding to an execution history indicating that a processing error has occurred, as the cause of the processing error;
a second link embedding means for embedding a link in the visualization file for checking detailed setting information of the application that was the target of the test, based on a screen operation command including an operation command for instructing an operation corresponding to an execution history indicating that a processing error has occurred;
Further comprising:
2. The test result visualization file generating device according to claim 1, wherein:
処理エラーがあったことを示す実行履歴を識別可能な態様で、処理エラーがあったことを示す実行履歴に対応する操作を命令した操作命令を含む画面操作命令に従って操作が実行された場合の実行履歴を前記可視化ファイルに埋め込むこと、
を特徴とする請求項4に記載のテスト結果可視化ファイル生成装置。 The processing error information embedding means
Embedding, in the visualization file, an execution history when an operation is performed in accordance with a screen operation command including an operation command that commands an operation corresponding to the execution history indicating that a processing error has occurred, in a manner that enables identification of the execution history indicating that a processing error has occurred;
5. The test result visualization file generating device according to claim 4, wherein:
を特徴とする請求項1から5のいずれか一つに記載のテスト結果可視化ファイル生成装置。 The visualization file is a text file;
6. The test result visualization file generating device according to claim 1, wherein:
を特徴とする請求項6に記載のテスト結果可視化ファイル生成装置。 The text file is an HTML file.
7. The test result visualization file generating device according to claim 6, wherein:
前記制御部で実行される、
前記テストを行った結果の画面の画像であるテスト画像が、比較対象となる基準の画像である基準画像と比較して、差異なし、差異ありおよび比較不可のうちのいずれに該当するかが判断された結果である比較結果を、前記テスト画像のファイル名と紐付けて含む比較結果データに基づいて、差異ありまたは比較不可の比較結果と、差異ありまたは比較不可と判断された前記テスト画像のファイル名と、を前記可視化ファイルに埋め込む比較結果埋込ステップと、
差異ありまたは比較不可と判断された前記テスト画像を前記可視化ファイルに埋め込む画像埋込ステップと、
前記テストの際に画面において自動実行される操作についての命令である操作命令の塊からなる画面操作命令を含む画面操作命令テーブルから、差異ありまたは比較不可と判断された前記テスト画像のスクリーンショットを撮ることを命令する操作命令を含む画面操作命令を特定し、当該特定した画面操作命令に従って操作が実行された場合の実行履歴を含むデータである実行履歴データの内容を前記可視化ファイルに埋め込む実行履歴埋込ステップと、
前記実行履歴埋込ステップで特定した画面操作命令に基づいて、前記テストの対象となったアプリケーションについての詳細な設定情報を確認するためのリンクを前記可視化ファイルに埋め込む第一リンク埋込ステップと、
を含むこと、
を特徴とするテスト結果可視化ファイル生成方法。 A test result visualization file generation method executed by an information processing device having a control unit, which is capable of generating a visualization file that visualizes the results of a test in which a developed application is automatically executed on a screen and that facilitates identification of a problem location,
Executed by the control unit,
a comparison result embedding step of embedding the comparison result of a test image, which is an image of the screen resulting from the test, into the visualization file the file name of the test image that is determined to be different or incomparable, based on comparison result data that includes the comparison result, which is the result of comparing a test image, which is an image of the screen resulting from the test, with a reference image, which is a reference image to be compared, and determining whether the test image corresponds to no difference, a difference, or incomparable, and the file name of the test image that is determined to be different or incomparable;
an image embedding step of embedding the test image determined to be different or incomparable into the visualization file;
an execution history embedding step of identifying a screen operation command including an operation command to take a screenshot of the test image determined to be different or incomparable from a screen operation command table including screen operation commands consisting of a block of operation commands that are commands for operations that are automatically executed on the screen during the test, and embedding the contents of execution history data, which is data including an execution history when operations are executed in accordance with the identified screen operation command, into the visualization file;
a first link embedding step of embedding a link for checking detailed setting information of the application that was the target of the test into the visualized file based on the screen operation command identified in the execution history embedding step;
containing,
A test result visualization file generation method characterized by the above.
前記制御部に実行させるための、
前記テストを行った結果の画面の画像であるテスト画像が、比較対象となる基準の画像である基準画像と比較して、差異なし、差異ありおよび比較不可のうちのいずれに該当するかが判断された結果である比較結果を、前記テスト画像のファイル名と紐付けて含む比較結果データに基づいて、差異ありまたは比較不可の比較結果と、差異ありまたは比較不可と判断された前記テスト画像のファイル名と、を前記可視化ファイルに埋め込む比較結果埋込ステップと、
差異ありまたは比較不可と判断された前記テスト画像を前記可視化ファイルに埋め込む画像埋込ステップと、
前記テストの際に画面において自動実行される操作についての命令である操作命令の塊からなる画面操作命令を含む画面操作命令テーブルから、差異ありまたは比較不可と判断された前記テスト画像のスクリーンショットを撮ることを命令する操作命令を含む画面操作命令を特定し、当該特定した画面操作命令に従って操作が実行された場合の実行履歴を含むデータである実行履歴データの内容を前記可視化ファイルに埋め込む実行履歴埋込ステップと、
前記実行履歴埋込ステップで特定した画面操作命令に基づいて、前記テストの対象となったアプリケーションについての詳細な設定情報を確認するためのリンクを前記可視化ファイルに埋め込む第一リンク埋込ステップと、
を含むこと、
を特徴とするテスト結果可視化ファイル生成プログラム。 A test result visualization file generation program for an information processing device having a control unit, which is capable of generating a visualization file that visualizes the results of a test that automatically executes a developed application on a screen and also facilitates identification of a problem location,
To cause the control unit to execute
a comparison result embedding step of embedding the comparison result of a test image, which is an image of the screen resulting from the test, into the visualization file the file name of the test image that is determined to be different or incomparable, based on comparison result data that includes the comparison result, which is the result of comparing a test image, which is an image of the screen resulting from the test, with a reference image, which is a reference image to be compared, and determining whether the test image corresponds to no difference, a difference, or incomparable, and the file name of the test image that is determined to be different or incomparable;
an image embedding step of embedding the test image determined to be different or incomparable into the visualization file;
an execution history embedding step of identifying a screen operation command including an operation command to take a screenshot of the test image determined to be different or incomparable from a screen operation command table including screen operation commands consisting of a block of operation commands that are commands for operations that are automatically executed on the screen during the test, and embedding the contents of execution history data, which is data including an execution history when operations are executed in accordance with the identified screen operation command, into the visualization file;
a first link embedding step of embedding a link for checking detailed setting information of the application that was the target of the test into the visualized file based on the screen operation command identified in the execution history embedding step;
containing,
A test result visualization file generator featuring:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2022099138A JP7736635B2 (en) | 2022-06-20 | 2022-06-20 | Test result visualization file generation device, test result visualization file generation method, and test result visualization file generation program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2022099138A JP7736635B2 (en) | 2022-06-20 | 2022-06-20 | Test result visualization file generation device, test result visualization file generation method, and test result visualization file generation program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2024000386A JP2024000386A (en) | 2024-01-05 |
| JP7736635B2 true JP7736635B2 (en) | 2025-09-09 |
Family
ID=89384687
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2022099138A Active JP7736635B2 (en) | 2022-06-20 | 2022-06-20 | Test result visualization file generation device, test result visualization file generation method, and test result visualization file generation program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7736635B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119088679B (en) * | 2024-08-08 | 2026-04-28 | 上证所信息网络有限公司 | An automated testing method based on image comparison |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007086899A (en) | 2005-09-20 | 2007-04-05 | Fujitsu Ltd | Test result judgment display method, test result judgment display program, and test apparatus |
| JP2009122970A (en) | 2007-11-15 | 2009-06-04 | Nomura Research Institute Ltd | Program verification system |
| US20130004087A1 (en) | 2011-06-30 | 2013-01-03 | American Express Travel Related Services Company, Inc. | Method and system for webpage regression testing |
-
2022
- 2022-06-20 JP JP2022099138A patent/JP7736635B2/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007086899A (en) | 2005-09-20 | 2007-04-05 | Fujitsu Ltd | Test result judgment display method, test result judgment display program, and test apparatus |
| JP2009122970A (en) | 2007-11-15 | 2009-06-04 | Nomura Research Institute Ltd | Program verification system |
| US20130004087A1 (en) | 2011-06-30 | 2013-01-03 | American Express Travel Related Services Company, Inc. | Method and system for webpage regression testing |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2024000386A (en) | 2024-01-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4667386B2 (en) | Business model diagram creation support program, business model diagram creation support method, and business model diagram creation support device | |
| JP7713058B2 (en) | AUTOMATED CONTROL OF DISTRIBUTED COMPUTING DEVICES - Patent application | |
| US6978454B2 (en) | Checking computer program installation | |
| US20050229161A1 (en) | Generic user interface testing framework with load-time libraries | |
| US20100064178A1 (en) | World-Readiness and Globalization Testing Assemblies | |
| JP7736635B2 (en) | Test result visualization file generation device, test result visualization file generation method, and test result visualization file generation program | |
| JP7283569B2 (en) | Operation pattern generation device, operation pattern generation method and program | |
| JP2021015481A (en) | Information processing program, information processing method, and information processing device | |
| CN114356783A (en) | Method and device for automatically generating unit test code, storage medium and equipment | |
| US20130111344A1 (en) | Help creation support apparatus, help creation method, and storage medium storing help creation program | |
| WO2021205589A1 (en) | Test script generation device, test script generation method, and program | |
| JP7768844B2 (en) | Test preparation efficiency improvement device, test preparation efficiency improvement method, and test preparation efficiency improvement program | |
| JP7804566B2 (en) | Regression test management device, regression test management method, and regression test management program | |
| WO2022172433A1 (en) | Test code generation device, test code generation method, and test code generation program | |
| JP2009181180A (en) | Inspection program, inspection method, and inspection device of program creating tool | |
| JP7712980B2 (en) | Test scenario creation support system, test scenario creation support method, and test scenario creation support program | |
| JP4983027B2 (en) | Check program and check method | |
| JP6785916B1 (en) | Setting execution device, setting execution method and setting execution program | |
| CN113626390A (en) | BB file generation method and device, electronic equipment and storage medium | |
| JP7198321B1 (en) | Server device, request verification method and request verification program | |
| JP2025154078A (en) | Test scenario creation support system, test scenario creation support method, and test scenario creation support program | |
| JP4980267B2 (en) | System construction support apparatus, method and program | |
| JP2025154151A (en) | Test scenario execution support system, test scenario execution support method, and test scenario execution support program | |
| JP2023057721A (en) | Verification program, verification method, and information processing device | |
| JP2026005857A (en) | Automation management device, automation management method, and automation management program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20240930 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20250725 |
|
| 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: 20250805 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20250828 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7736635 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |