JP2012043062A - Software automatic test system - Google Patents

Software automatic test system Download PDF

Info

Publication number
JP2012043062A
JP2012043062A JP2010181782A JP2010181782A JP2012043062A JP 2012043062 A JP2012043062 A JP 2012043062A JP 2010181782 A JP2010181782 A JP 2010181782A JP 2010181782 A JP2010181782 A JP 2010181782A JP 2012043062 A JP2012043062 A JP 2012043062A
Authority
JP
Japan
Prior art keywords
data
image data
image
target
character
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2010181782A
Other languages
Japanese (ja)
Other versions
JP5540413B2 (en
Inventor
Hidetaka Maki
英孝 牧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MAKI ENGINEERING KK
Original Assignee
MAKI ENGINEERING KK
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by MAKI ENGINEERING KK filed Critical MAKI ENGINEERING KK
Priority to JP2010181782A priority Critical patent/JP5540413B2/en
Publication of JP2012043062A publication Critical patent/JP2012043062A/en
Application granted granted Critical
Publication of JP5540413B2 publication Critical patent/JP5540413B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a software automatic test system that can enhance the reliability to determine whether an image collation test is good or not even in the case of presence of an inspection exempt area and can reduce time and labor of an examiner.SOLUTION: A software automatic test system stores collation original image data 310 which are the collation source with the transparent background in advance, acquires collation target image data 300 from a test screen 200, generates synthetic image data 320 by synthesizing the collation original image data 310 on the collation target image data 300, and compares the synthetic image data 320 with the collation target image data 300.

Description

本発明は、画面を表示するソフトウェアに対するプログラムテストを行うソフトウェア自動テストシステムに関する。   The present invention relates to a software automatic test system that performs a program test for software that displays a screen.

例えばFA機器等の制御対象機器を監視及び制御するPLC(プログラマブルロジックコントローラ)等の制御装置には、画面生成プログラムが記憶されており、この画面生成プログラムによって制御対象機器の状況を模式化した画面が生成される。ユーザは、この画面を参照することで制御装置の状況を知ることができる。   For example, a screen generation program is stored in a control device such as a programmable logic controller (PLC) that monitors and controls a control target device such as an FA device, and a screen that schematically illustrates the status of the control target device using the screen generation program. Is generated. The user can know the status of the control device by referring to this screen.

一般的に、この画面生成プログラムの開発段階等においては、この画面生成プログラムをテストするために、画面生成プログラムを用いて擬似的な現場状況を反映した文字データや図形や画像をレイアウトしたテスト画面を表示させ、そのテスト画面が正当な表示となっているか判断している。   Generally, in the development stage of this screen generation program, etc., to test this screen generation program, a test screen that laid out character data, figures, and images reflecting the simulated field conditions using the screen generation program Is displayed to determine whether the test screen is a valid display.

従来は、テスト画面の目視により良否を判断していた。しかし、制御対象のFA機器が多数になるほど多くのデータが混在表示されるため、目視によるテストには多大な時間と労力を必要としていた。   Conventionally, the quality is judged by visual inspection of the test screen. However, since more data is mixedly displayed as the number of FA devices to be controlled increases, visual testing requires a great deal of time and effort.

そこで、テストを自動化するソフトウェア自動テストシステムが提案されている。例えば、特許文献1のソフトウェア自動テストシステムは、制御対象機器の本体内にビデオRAM情報取込み専用拡張ボードを挿入し、このビデオRAM情報取込み専用ボードに制御対象機器が生成したテスト画面の画像データを収納し、この収納した画像データと以前に取り込んだ画像データとを照合する。即ち、テスト画面全体を一つの画像データとし、以前に取り込んだテスト画面全体の画像データとを画像照合している。   Therefore, a software automatic test system for automating tests has been proposed. For example, the software automatic test system of Patent Document 1 inserts a video RAM information fetching expansion board into the main body of a control target device, and the image data of the test screen generated by the control target device on this video RAM information fetching board. The stored image data is collated with the previously captured image data. That is, the entire test screen is set as one image data, and the image data of the entire test screen captured before is collated.

このソフトウェア自動テストシステムは、画像データ中に日時によって自動的に変更される可変画像データが存在する場合には、この一部の画像データに起因してテスト画面全体の照合結果が不整合と判断されてしまう。そのため、結局のところ、テスト者による目視による良否判断を加える必要があり、時間と労力の低減及び人為的ミスの軽減につながりにくい。   This software automatic test system determines that the verification result of the entire test screen is inconsistent due to this partial image data when there is variable image data that is automatically changed according to the date and time in the image data. Will be. Therefore, after all, it is necessary to make a pass / fail judgment by visual inspection by the tester, and it is difficult to reduce time and labor and reduce human error.

そこで、特許文献2のソフトウェア自動テストシステムでは、同様にテスト画面全体を一つの画像データとして以前に取り込んだ画像データと照合する方式であるが、事前に日時等の可変領域を削除する手段を備えて、可変領域の削除後の画像データを照合する技術が提案されている。   Therefore, in the software automatic test system of Patent Document 2, the entire test screen is similarly collated with previously captured image data as one image data, but includes means for deleting a variable area such as date and time in advance. Thus, a technique for collating image data after deleting a variable area has been proposed.

特開平08−235022号公報Japanese Patent Laid-Open No. 08-2335022 特開2001−273168号公報JP 2001-273168 A

しかし、画面生成プログラムが生成する画面によっては、削除を必要とする画像領域が複雑な形状を有する場合があり、削除による対応が困難である。また、削除可能であっても、事前に削除する画像領域以外の台紙画像を輪郭くり抜きのためのテンプレートとして用意する必要がある等の理由でテストのための準備作業の工数が増えるおそれや、未削除の領域が残存してしまい、そのために照合結果が不整合となってしまうおそれがある。   However, depending on the screen generated by the screen generation program, the image area that needs to be deleted may have a complicated shape, and it is difficult to deal with the deletion. Even if deletion is possible, there is a risk that the number of man-hours for preparatory work for testing may increase because it is necessary to prepare a mount image other than the image area to be deleted in advance as a template for outline cutting. There is a possibility that the deletion area remains, and the matching result becomes inconsistent.

結局、削除処理を事前に行う画像照合による画面生成プログラムのテストであっても、時間と労力の低減が不十分であり、自動テストによる良否判断の信頼性が低下し、テスト者の時間と労力の低減につながりにくいといった問題があった。   After all, even in the screen generation program test by image matching that performs the deletion process in advance, the time and labor are not sufficiently reduced, the reliability of the pass / fail judgment by the automatic test is lowered, and the time and effort of the tester is reduced. There was a problem that it was difficult to reduce the amount of stagnation.

本発明は、上記のような従来技術の問題点を解決するために提案されたもので、画面を表示するソフトウェアに対するプログラムテストを行うソフトウェア自動テストシステムに関し、画像照合によるテストにおいて検査対象外の領域が存在しても良否判断の信頼性を高め、テスト者の時間と労力の低減を図ることのできるソフトウェア自動テストシステムを提供することを目的とする。   The present invention has been proposed in order to solve the above-described problems of the prior art, and relates to an automatic software test system that performs a program test for software that displays a screen. It is an object of the present invention to provide a software automatic test system that can improve the reliability of pass / fail judgment and reduce the time and labor of a tester even if there is an error.

本発明は、画面生成を行うユーザインターフェースプログラムを記憶する検査対象装置が生成するテスト画面の良否を画像照合により判断するソフトウェア自動テストシステムであって、背景が透明な照合元となる照合元画像データを予め記憶する画像記憶手段と、前記テスト画面から照合対象の対象画像データを取得する画像取得手段と、前記対象画像データ上に前記照合元画像データを合成することで合成画像データを生成する合成手段と、前記合成画像データと前記対象画像データとを比較する画像比較手段と比較結果を報知する報知手段とを備えることを特徴とする。   The present invention relates to a software automatic test system for determining whether or not a test screen generated by an inspection target device that stores a user interface program for generating a screen is based on image verification, and is a verification source image data that is a verification source with a transparent background Pre-stored image storage means, image acquisition means for acquiring target image data to be collated from the test screen, and composition for generating composite image data by synthesizing the collation source image data on the target image data Means, image comparison means for comparing the composite image data and the target image data, and notification means for notifying the comparison result.

また、本発明に係るソフトウェア自動テストシステムにおいて、画像記憶手段に代えて、照合元画像データを生成する画像生成手段を備えるようにしてもよい。   Further, the software automatic test system according to the present invention may be provided with image generation means for generating collation source image data instead of the image storage means.

また、本発明に係るソフトウェア自動テストシステムにおいて、前記画像取得手段は、前記対象画像データの正しい表示位置及び範囲を示す表示位置情報を予め記憶し、前記表示位置情報に基づく前記テスト画面の一部領域のみを切り取ることで前記対象画像データを取得するようにしてもよい。   In the software automatic test system according to the present invention, the image acquisition unit stores in advance display position information indicating a correct display position and range of the target image data, and a part of the test screen based on the display position information. The target image data may be acquired by cutting out only the area.

また、本発明に係るソフトウェア自動テストシステムにおいて、前記合成手段は、前記照合元画像データを前記対象画像データのサイズに変更した上で前記合成を行うようにしてもよい。   In the software automatic test system according to the present invention, the combining unit may perform the combining after changing the collation source image data to the size of the target image data.

また、本発明に係るソフトウェア自動テストシステムにおいて、前記テスト画面には、複数のオブジェクトが配置され、前記画像記憶手段は、前記オブジェクト毎に照合元画像データを予め記憶し、前記画像取得手段は、各オブジェクトに対応する前記表示位置情報毎に複数の前記対象画像データを取得し、前記合成手段及び前記画像比較手段は、対応関係のある前記対象画像データと前記照合元画像データとを合成して、それぞれ比較し、前記報知手段は、前記オブジェクト毎に比較結果を報知するようにしてもよい。   Further, in the software automatic test system according to the present invention, a plurality of objects are arranged on the test screen, the image storage unit stores in advance collation source image data for each object, and the image acquisition unit includes: A plurality of the target image data is acquired for each display position information corresponding to each object, and the synthesizing unit and the image comparing unit synthesize the target image data and the matching source image data having a corresponding relationship. The comparison means may notify the comparison result for each object.

また、本発明に係るソフトウェア自動テストシステムにおいて、前記画像取得手段は、前記テスト画面に予め定められた文字データを入力する入力手段と、前記検査対象装置の予め定められた特定データアドレスから前記入力された文字データを取得するデータ取得手段と、前記テスト画面と同一の画面を生成するとともに、前記データ取得手段が取得した前記文字データを前記同一の画面上に表示させる表示制御手段と、を更に備え、前記表示制御手段により生成された前記同一の画面から前記文字データを含んだ対象画像データを取得するようにしてもよい。   Further, in the software automatic test system according to the present invention, the image acquisition means includes an input means for inputting predetermined character data on the test screen, and the input from a predetermined specific data address of the inspection target device. Data acquisition means for acquiring the character data obtained, and display control means for generating the same screen as the test screen and displaying the character data acquired by the data acquisition means on the same screen. And target image data including the character data may be acquired from the same screen generated by the display control means.

また、本発明に係るソフトウェア自動テストシステムにおいて、前記検査対象装置は、書込みボタンが配置されたテスト画面を生成し、前記画像取得手段は、前記書込みボタン押下の結果データが記憶される前記検査対象装置の予め定められた特定データアドレスから前記結果データを取得するデータ取得手段と、前記テスト画面と同一の画面を生成するとともに、前記データ取得手段が取得した前記結果データを前記同一の画面上に表示させる表示制御手段と、を更に備え、前記表示制御手段により生成された前記同一の画面から前記結果データを含んだ対象画像データを取得するようにしてもよい。   Further, in the software automatic test system according to the present invention, the inspection object device generates a test screen on which a write button is arranged, and the image acquisition means stores the inspection object in which result data of the write button is stored. A data acquisition unit that acquires the result data from a predetermined specific data address of the apparatus and a screen that is the same as the test screen are generated, and the result data acquired by the data acquisition unit is displayed on the same screen. Display control means for displaying, and target image data including the result data may be acquired from the same screen generated by the display control means.

また、本発明に係るソフトウェア自動テストシステムにおいて、前記対象画像データから文字を光学的に読み取って対象文字データを取得する光学読取手段と、照合元となる照合元文字データを予め記憶する文字記憶手段と、前記対象文字データとの照合元文字データとを比較する文字比較手段と、を更に備えるようにしてもよい。   In the software automatic test system according to the present invention, an optical reading unit that optically reads characters from the target image data to acquire target character data, and a character storage unit that stores in advance collation source character data to be a collation source And character comparison means for comparing the original character data with the target character data.

また、本発明に係るソフトウェア自動テストシステムにおいて、前記対象画像データをスキャンして前記文字の対象色データを取得する色データ取得手段を更に備え、前記文字記憶手段は、照合元となる照合元色データを更に予め記憶し、前記文字比較手段は、前記対象色データと前記照合元色データとを更に比較するようにしてもよい。   Further, in the software automatic test system according to the present invention, the software automatic test system further comprises color data acquisition means for scanning the target image data and acquiring the target color data of the character, wherein the character storage means is a verification source color that is a verification source Data may be further stored in advance, and the character comparison unit may further compare the target color data with the collation source color data.

また、本発明に係るソフトウェア自動テストシステムにおいて、前記対象画像データに含まれる線画像の対象色データを取得する線色取得手段と、照合元となる照合元色データを予め記憶する線色記憶手段と、前記対象色データと照合元色データとを比較する線色比較手段と、を更に備えるようにしてもよい。   In the software automatic test system according to the present invention, a line color acquisition unit that acquires target color data of a line image included in the target image data, and a line color storage unit that stores in advance verification source color data to be a verification source And line color comparison means for comparing the target color data with the comparison source color data.

また、本発明に係るソフトウェア自動テストシステムにおいて、前記線色取得手段は、前記線画像の中心を含むピクセルとその周囲ピクセルの対象色データをそれぞれ取得し、前記線色比較手段は、前記各対象色データと前記照合元色データとをそれぞれ比較し、前記報知手段は、いずれかの前記対象色データが前記照合元色データと同一であることにより一致を示す比較結果を報知するようにしてもよい。   In the software automatic test system according to the present invention, the line color acquisition unit acquires target color data of a pixel including the center of the line image and surrounding pixels, and the line color comparison unit includes the target color data. The color data and the collation source color data are respectively compared, and the notifying unit reports a comparison result indicating a match when any one of the target color data is the same as the collation source color data. Good.

本発明によれば、背景が透明な照合元となる照合元画像データを予め記憶しておき、テスト画面から照合対象の対象画像データを取得して、この対象画像データ上に照合元画像データを合成することで合成画像データを生成し、合成画像データと対象画像データとを比較するようにしたため、画像処理が煩雑となる照合対象外領域の削除処理は不要であり、画像照合によるテストにおいて検査対象外の領域が存在しても良否判断の信頼性を高め、テスト者の時間と労力の低減を図ることができる。   According to the present invention, collation source image data serving as a collation source with a transparent background is stored in advance, target image data to be collated is acquired from a test screen, and the collation source image data is stored on the target image data. Since the composite image data is generated by combining and the composite image data and the target image data are compared, it is not necessary to delete the non-matching target area that complicates the image processing. Even if there is a non-target region, it is possible to improve the reliability of the quality determination and reduce the time and labor of the tester.

第1の実施形態に係るソフトウェア自動テストシステムを検査対象装置に接続した状態を示すブロック図である。It is a block diagram which shows the state which connected the software automatic test system which concerns on 1st Embodiment to the test object apparatus. 第1の実施形態に係るソフトウェア自動テストシステムが検査対象装置に生成させるテスト画面の一例を示す模式図である。It is a schematic diagram which shows an example of the test screen which the software automatic test system which concerns on 1st Embodiment produces | generates to a test object apparatus. 第1の実施形態に係るソフトウェア自動テストシステムの詳細構成を示すブロック図である。It is a block diagram which shows the detailed structure of the software automatic test system which concerns on 1st Embodiment. 第1の実施形態に係るソフトウェア自動テストシステムの第1番目の動作を示すフローチャートである。It is a flowchart which shows the 1st operation | movement of the software automatic test system which concerns on 1st Embodiment. 第1の実施形態に係るソフトウェア自動テストシステムの第2番目の動作を示すフローチャートである。It is a flowchart which shows the 2nd operation | movement of the software automatic test system which concerns on 1st Embodiment. 第1の実施形態に係るソフトウェア自動テストシステムの第1の照合動作を示す模式図である。It is a schematic diagram which shows the 1st collation operation | movement of the software automatic test system which concerns on 1st Embodiment. 第1の実施形態に係るソフトウェア自動テストシステムの第2の照合動作を示す模式図である。It is a schematic diagram which shows the 2nd collation operation | movement of the software automatic test system which concerns on 1st Embodiment. 第1の実施形態に係るソフトウェア自動テストシステムの第3の照合動作を示す模式図である。It is a schematic diagram which shows the 3rd collation operation | movement of the software automatic test system which concerns on 1st Embodiment. 第1の実施形態に係るソフトウェア自動テストシステムの第4の照合動作を示す模式図である。It is a schematic diagram which shows the 4th collation operation | movement of the software automatic test system which concerns on 1st Embodiment. 第2の実施形態に係るテスト画面を示す模式図である。It is a schematic diagram which shows the test screen which concerns on 2nd Embodiment. 第2の実施形態に係るソフトウェア自動テストシステムの詳細構成を示すブロック図である。It is a block diagram which shows the detailed structure of the software automatic test system which concerns on 2nd Embodiment. 第2の実施形態に係るソフトウェア自動テストシステムの入力テスト及び書込みボタン押下におけるテストデータの入力処理及び画像取得処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the test data input process in the input test of the automatic software test system which concerns on 2nd Embodiment, and writing button press, and an image acquisition process. 第3の実施形態に係るソフトウェア自動テストシステムの照合部の詳細構成を示すブロック図である。It is a block diagram which shows the detailed structure of the collation part of the software automatic test system which concerns on 3rd Embodiment. 第3の実施形態に係る照合部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the collation part which concerns on 3rd Embodiment. 第3の実施形態に係るソフトウェア自動テストシステムの照合処理を示す模式図である。It is a schematic diagram which shows the collation process of the software automatic test system which concerns on 3rd Embodiment. 第4の実施形態に係るソフトウェア自動テストシステム1の照合部16の詳細構成を示すブロック図である。It is a block diagram which shows the detailed structure of the collation part 16 of the software automatic test system 1 which concerns on 4th Embodiment. 第4の実施形態に係る照合部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the collation part which concerns on 4th Embodiment. 第4の実施形態に係るソフトウェア自動テストシステムの照合処理を示す模式図である。It is a schematic diagram which shows the collation process of the software automatic test system which concerns on 4th Embodiment.

以下、本発明に係るソフトウェア自動テストシステムの実施形態について図面を参照しつつ詳細に説明する。   DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments of a software automatic test system according to the present invention will be described in detail with reference to the drawings.

(第1の実施形態)
図1は、ソフトウェア自動テストシステム1を検査対象装置100に接続した状態を示すブロック図である。検査対象装置100は、表示装置110と信号ケーブルやネットワークを介してデータ送受信が可能となっている。
(First embodiment)
FIG. 1 is a block diagram illustrating a state in which the software automatic test system 1 is connected to the inspection target device 100. The inspection target device 100 can transmit / receive data to / from the display device 110 via a signal cable or a network.

検査対象装置100は、例えば、PLC(プログラマブルロジックコントローラ)等の制御機器である。検査対象装置100は、監視又は制御の対象とするFA機器等の監視制御対象装置(図示せず)と接続されており、当該監視制御対象装置から駆動状況を示す現場情報データを収集する。また、検査対象装置100は、現場情報データやタイミングチャートに基づいて監視制御対象装置に対して各種制御を行うための信号を出力する。   The inspection target device 100 is a control device such as a PLC (programmable logic controller), for example. The inspection target device 100 is connected to a monitoring control target device (not shown) such as an FA device to be monitored or controlled, and collects on-site information data indicating the driving status from the monitoring control target device. The inspection target device 100 outputs signals for performing various controls on the monitoring control target device based on the field information data and the timing chart.

検査対象装置100は、CPUやMPU等のプロセッサ、及びROMやハードディスク等のメモリを備えている。メモリには、制御プログラムが記憶されている。プロセッサがこの制御プログラムを適宜読み出して処理し、処理結果に応じた信号を監視制御対象装置に出力する。   The inspection target device 100 includes a processor such as a CPU and an MPU, and a memory such as a ROM and a hard disk. A control program is stored in the memory. The processor reads and processes the control program as appropriate, and outputs a signal corresponding to the processing result to the monitoring control target device.

また、検査対象装置100のメモリには、画面生成プログラムが記憶されている。検査対象装置100は、この画面生成プログラムを適宜処理することによって、FA機器の作動状況を視覚的に示す画面データを生成し、表示装置110に出力する。   In addition, a screen generation program is stored in the memory of the inspection target device 100. The inspection target device 100 generates screen data that visually indicates the operation status of the FA device by appropriately processing the screen generation program, and outputs the screen data to the display device 110.

表示装置110は、液晶ディスプレイやCRTディスプレイを含むモニタを有する。検査対象装置100から入力された画面データを表示する。現場責任者等のユーザは、表示装置110の表示画面によって監視制御対象装置の作動状態を監視できる。   The display device 110 includes a monitor including a liquid crystal display and a CRT display. Screen data input from the inspection target apparatus 100 is displayed. A user such as a site manager can monitor the operating state of the monitoring control target device on the display screen of the display device 110.

ソフトウェア自動テストシステム1は、検査対象装置100にテスト画面200(図2参照)を生成させ、テスト画面200が正しく表示されているかチェックする。   The software automatic test system 1 causes the inspection target device 100 to generate a test screen 200 (see FIG. 2) and checks whether the test screen 200 is correctly displayed.

このソフトウェア自動テストシステム1は、自動テスト装置2とローダ装置3とを備えている。自動テスト装置2とローダ装置3とは、信号ケーブルによって信号の送受信が可能に接続されている。これら自動テスト装置2とローダ装置3は、例えば、CPU、RAM、ハードディスク、及びキーボード、マウス、モニタ等のマンマシンインターフェースを備えており、ハードディスクに記憶されたプログラムをCPUが処理することで動作する。   The software automatic test system 1 includes an automatic test device 2 and a loader device 3. The automatic test apparatus 2 and the loader apparatus 3 are connected by a signal cable so that signals can be transmitted and received. The automatic test apparatus 2 and the loader apparatus 3 include, for example, a CPU, a RAM, a hard disk, and a man-machine interface such as a keyboard, a mouse, and a monitor, and operate when the CPU processes a program stored in the hard disk. .

自動テスト装置2は、テスト画面200の生成制御、テスト画面200のチェック、及び結果の出力を行う。ローダ装置3は、検査対象装置100のメモリへアクセスし、データの読み込み及び書き込みを行う。   The automatic test apparatus 2 controls the generation of the test screen 200, checks the test screen 200, and outputs the results. The loader device 3 accesses the memory of the inspection target device 100 to read and write data.

図2は、第1の実施形態に係るソフトウェア自動テストシステム1が検査対象装置100に生成させるテスト画面200の一例を示す模式図である。テスト画面200には、各種の情報を表す文字や画像のオブジェクトが表示される。テスト画面200に表示されるオブジェクトは、例えば固定画像210、可変画像220、及び表示フィールド230である。   FIG. 2 is a schematic diagram illustrating an example of a test screen 200 that the software automatic test system 1 according to the first embodiment generates on the inspection target device 100. On the test screen 200, characters and image objects representing various types of information are displayed. The objects displayed on the test screen 200 are, for example, a fixed image 210, a variable image 220, and a display field 230.

固定画像210は、監視制御対象機器や表示装置110からの信号入力によっては変化しない。例えば、固定画像210は、罫線、枠、図形、背景である。   The fixed image 210 is not changed by a signal input from the monitoring control target device or the display device 110. For example, the fixed image 210 is a ruled line, a frame, a figure, and a background.

可変画像220は、監視制御対象機器から出力される現場情報データによって変化する画像である。この可変画像220には、ドットによって構成されるラスタ画像の他、線や曲線によって構成されるベクター画像即ち図形も含む。この可変画像220は、例えばモータやコンプレッサやポンプ等のFA機器、弁、ローラ、導通管、信号ケーブルを模している。画面上では、可変画像220の表示色、形状、大きさによって作動状態がわかるようになっている。例えば、電流の経路が線画像によって表され、通電状態であれば赤色の表示色、停止中であれば緑色の表示色といった具合に表示色で通電状態が表示される。また、例えば、ポンプが画像によって表され、運転中であれば赤色の表示色、停止中であれば緑色の表示色といった具合に表示色で運転状態が表示される。   The variable image 220 is an image that changes according to the field information data output from the monitoring control target device. The variable image 220 includes not only a raster image constituted by dots but also a vector image, ie, a figure constituted by lines and curves. This variable image 220 imitates FA equipment, such as a motor, a compressor, and a pump, a valve, a roller, a conducting tube, and a signal cable, for example. On the screen, the operating state can be recognized by the display color, shape, and size of the variable image 220. For example, the current path is represented by a line image, and the energized state is displayed in a display color such as a red display color when the power is on and a green display color when the power is stopped. Further, for example, the pump is represented by an image, and the operation state is displayed in a display color such as a red display color when the pump is in operation and a green display color when the pump is stopped.

表示フィールド230は、文字データが表示される領域である。FA機器から出力される現場情報データが表示される。文字データには、ローマ字、ひらがな、カタカナ、漢字のほか、数値も含まれる。   The display field 230 is an area where character data is displayed. The field information data output from the FA device is displayed. The character data includes roman characters, hiragana, katakana, kanji, and numerical values.

ソフトウェア自動テストシステム1は、検査対象装置100にテスト画面200に配置するオブジェクトを指示するテストデータを生成して検査対象装置100に出力する。テストデータには、テスト画面200に表示させるオブジェクトの種類、表示位置、及び表示内容が含まれている。テストデータは、テスト画面200に表示させるオブジェクト毎に生成される。   The software automatic test system 1 generates test data indicating an object to be arranged on the test screen 200 in the inspection target device 100 and outputs the test data to the inspection target device 100. The test data includes the types of objects to be displayed on the test screen 200, display positions, and display contents. Test data is generated for each object to be displayed on the test screen 200.

第1の実施形態に係るソフトウェア自動テストシステム1は、テスト画面200に配置された各オブジェクトの表示テストを行う。テストデータに従って配置された各オブジェクトの表示位置及び表示内容の良否を個別にチェックする。   The software automatic test system 1 according to the first embodiment performs a display test of each object arranged on the test screen 200. The display position of each object arranged according to the test data and the quality of the display contents are individually checked.

チェックにおいて、ソフトウェア自動テストシステム1は、表示装置110のテスト画面200から各オブジェクトが表示されている各画面領域を個々に切り出す。そして、ソフトウェア自動テストシステム1は、切り出しの結果得られた照合対象となる各対象画像データ300と、照合元となる照合元画像データ310(例えば図6参照)とを画像照合する。照合元画像データ310は、画面生成プログラムが正しくテストデータを処理すれば得られる画像データである。この照合元画像データ310は、ソフトウェア自動テストシステム1に予め記憶されている。   In the check, the software automatic test system 1 individually cuts out each screen area in which each object is displayed from the test screen 200 of the display device 110. Then, the software automatic test system 1 collates each target image data 300 to be collated obtained as a result of the cut-out with collation source image data 310 (for example, see FIG. 6) to be a collation source. The collation source image data 310 is image data obtained when the screen generation program correctly processes the test data. The collation source image data 310 is stored in advance in the software automatic test system 1.

このソフトウェア自動テストシステム1の詳細構成を図3を参照してさらに詳細に説明する。図3は、ソフトウェア自動テストシステム1の詳細構成を示すブロック図である。各ブロックは、ソフトウェア自動テストシステム1がプログラムをハードウェアによって処理することにより実現する各機能を示しているが、これら各機能を回路構成によって実現してもよい。   The detailed configuration of the software automatic test system 1 will be described in more detail with reference to FIG. FIG. 3 is a block diagram showing a detailed configuration of the software automatic test system 1. Each block shows each function realized by the software automatic test system 1 processing a program by hardware, but each of these functions may be realized by a circuit configuration.

図3に示すように、ソフトウェア自動テストシステム1は、設計条件入力部11、テストデータ生成部12、テストデータ記憶部13、テストデータ入力部14、画像取得部15、照合部16、及び報知部17を備える。設計条件入力部11、テストデータ生成部12、テストデータ記憶部13、画像取得部15、照合部16、及び報知部17は、自動テスト装置2に備えられ、テストデータ入力部14は、自動テスト装置2及びローダ装置3の協動により実現される。   As shown in FIG. 3, the software automatic test system 1 includes a design condition input unit 11, a test data generation unit 12, a test data storage unit 13, a test data input unit 14, an image acquisition unit 15, a collation unit 16, and a notification unit. 17. The design condition input unit 11, the test data generation unit 12, the test data storage unit 13, the image acquisition unit 15, the collation unit 16, and the notification unit 17 are provided in the automatic test apparatus 2, and the test data input unit 14 This is realized by the cooperation of the device 2 and the loader device 3.

設計条件入力部11は、キーボード、マウス、及びモニタ等のマンマシンインターフェースを含み構成される。設計条件入力部11は、ユーザの操作に応じて、設計条件情報を生成する。設計条件情報は、表示装置110に表示させるテスト画面200の構成を定義したデータであり、テストデータの基となる。設計条件情報には、オブジェクトの種類、表示位置、及び表示内容が記述される。   The design condition input unit 11 includes a man-machine interface such as a keyboard, a mouse, and a monitor. The design condition input unit 11 generates design condition information in accordance with a user operation. The design condition information is data defining the configuration of the test screen 200 displayed on the display device 110, and is the basis of the test data. In the design condition information, an object type, a display position, and display contents are described.

例えば、設計条件入力部11は、表示させる可変画像220を識別する画像識別情報とこの可変画像220の表示位置情報とをセットにした可変画像情報とを生成して対応付ける。表示位置情報は、その表示位置及び範囲を示し、矩形座標範囲や中心座標、幅、高さ、及び角度や向きで記述される。画像識別情報は、表示色の選択条件を示す成立条件情報、及び選択条件が成立した場合に表示する画像データの画像特定情報で示される。可変画像220が線や円等の図形の場合には、その図形の種類を識別する情報と表示色の情報が画像特定情報として記述される。   For example, the design condition input unit 11 generates and associates image identification information for identifying the variable image 220 to be displayed and variable image information in which the display position information of the variable image 220 is set. The display position information indicates the display position and range, and is described by a rectangular coordinate range, center coordinates, width, height, angle, and orientation. The image identification information is indicated by establishment condition information indicating a display color selection condition and image specifying information of image data displayed when the selection condition is satisfied. When the variable image 220 is a graphic such as a line or a circle, information for identifying the type of the graphic and display color information are described as the image specifying information.

表示フィールド230については、表示する文字の種類、その表示位置、表示文字桁数、フォントの種類、文字色、大きさ、文字飾りの指定を示す表示フィールド情報をユーザ操作に応じて生成する。   For the display field 230, display field information indicating designation of the type of character to be displayed, its display position, the number of display character digits, the type of font, the character color, size, and character decoration is generated in accordance with a user operation.

テストデータ生成部12は、設計条件情報に含まれた各オブジェクトの情報を検索し、その情報を参照してテストデータを生成する。オブジェクトの情報の検索では、設計条件情報から可変画像情報及び表示フィールド情報を検索する。可変画像情報及び表示フィールド情報が複数存在する場合には、それぞれ検索する。   The test data generation unit 12 searches for information on each object included in the design condition information, and generates test data with reference to the information. In the retrieval of object information, variable image information and display field information are retrieved from design condition information. If there are a plurality of variable image information and display field information, they are searched.

テストデータは、所定の擬似現場状況を再現したデータである。テストデータ生成部12は、可変画像220の表示テストに対して、可変画像情報と予め記憶している擬似現場情報データをセットにしたテストデータを生成する。表示フィールド230の検査項目に対しては、表示フィールド情報と予め記憶している文字データをセットにしたテストデータを生成する。   The test data is data that reproduces a predetermined simulated on-site situation. For the display test of the variable image 220, the test data generation unit 12 generates test data in which variable image information and prestored pseudo field information data are set. For the inspection item in the display field 230, test data is generated in which display field information and character data stored in advance are set.

テストデータ記憶部13は、生成されたテストデータを記憶する。テストデータ入力部14は、テストデータをローダ装置3を介して検査対象装置100に出力する。   The test data storage unit 13 stores the generated test data. The test data input unit 14 outputs the test data to the inspection target device 100 via the loader device 3.

画像取得部15は、表示装置110に表示されたテスト画面200から各オブジェクトが表示された各画面領域の画像を切り出すことで対象画像データ300を取得する。切り出す画面領域は、テストデータ記憶部13に記憶されたテストデータに含まれる表示位置情報を参照する。切り出しは、換言するとテスト画面200上の一部領域のみのハードコピーである。   The image acquisition unit 15 acquires the target image data 300 by cutting out an image of each screen area where each object is displayed from the test screen 200 displayed on the display device 110. The screen area to be cut out refers to display position information included in the test data stored in the test data storage unit 13. In other words, the cutout is a hard copy of only a partial area on the test screen 200.

テストデータが可変画像情報を基に生成されている場合には、画像取得部15は、可変画像220の矩形座標範囲や中心座標、幅、高さ、及び角度や向きを示す表示位置情報に該当する範囲の対象画像データ300を取得する。テストデータが表示フィールド情報を基に生成されている場合には、画像取得部15は、表示位置及び大きさを示す表示位置情報に該当する範囲、即ち表示フィールド230内に表示されている文字部分を含む対象画像データ300を取得する。   When the test data is generated based on variable image information, the image acquisition unit 15 corresponds to display position information indicating the rectangular coordinate range, center coordinates, width, height, angle, and orientation of the variable image 220. The target image data 300 in the range to be acquired is acquired. When the test data is generated based on the display field information, the image acquisition unit 15 selects the range corresponding to the display position information indicating the display position and size, that is, the character portion displayed in the display field 230. The target image data 300 including is acquired.

照合部16は、各オブジェクトの表示テストを実行する。この照合部16は、照合元記憶部16aと合成部16bと画像比較部16cとを備える。   The matching unit 16 executes a display test for each object. The collation unit 16 includes a collation source storage unit 16a, a synthesis unit 16b, and an image comparison unit 16c.

照合元記憶部16aは、照合元画像データ310を予め記憶している。照合元画像データ310は、オブジェクトが正しく表示された場合に再現される画像のデータである。この照合元画像データ310は、背景が透明となっている。照合元記憶部16aは、テストデータのパターン別に照合元画像データ310を記憶している。即ち、照合元記憶部16aは、各種の可変画像220をその表示色のパターン別に記憶している。また、表示フィールド230内の文字の表示テスト用に予め定められた文字の画像を表示文字桁数、フォントの種類、大きさ、文字飾りの指定別に記憶している。この文字の画像は、テストデータ生成部12が予め記憶している文字と同一の文字が写る画像である。   The verification source storage unit 16a stores verification source image data 310 in advance. The collation source image data 310 is image data that is reproduced when the object is correctly displayed. The collation source image data 310 has a transparent background. The verification source storage unit 16a stores verification source image data 310 for each test data pattern. That is, the collation source storage unit 16a stores various variable images 220 for each display color pattern. Also, a character image predetermined for a character display test in the display field 230 is stored for each display character digit number, font type, size, and character decoration designation. This character image is an image in which the same character as the character previously stored in the test data generation unit 12 is captured.

合成部16bは、照合元画像データ310を読み出し、対象画像データ300と照合元画像データ310を合成する。照合元画像データ310は、対象画像データ300の切出しの際に参照したテストデータを参照して読み出す。合成部16cは、合成の際、照合元画像データ310を拡大、縮小、回転、反転を行い、対象画像データ300と大きさ及び向きを合わせる。合成では、照合元画像データ310を上位のレイヤーとして重ね合わせる。   The synthesizing unit 16b reads the collation source image data 310 and synthesizes the target image data 300 and the collation source image data 310. The collation source image data 310 is read with reference to the test data referred to when the target image data 300 is cut out. The composition unit 16c enlarges, reduces, rotates, and inverts the collation source image data 310 at the time of composition, and matches the size and orientation with the target image data 300. In the composition, the collation source image data 310 is overlaid as an upper layer.

画像比較部16cは、合成部16bが生成した合成画像データ320と対象画像データ300とを比較する。即ち、画像比較部16cは、両画像データの一致箇所及び不一致箇所を検出する。   The image comparison unit 16c compares the synthesized image data 320 generated by the synthesis unit 16b with the target image data 300. That is, the image comparison unit 16c detects a coincidence portion and a disagreement portion of both image data.

ここで、対象画像データ300は、表示装置110に表示されているテスト画面200の一領域を切り出したデータであるから、例えば背景等の照合対象外領域が混在している。しかし、この合成処理によって合成画像データ320と対象画像データ300の照合対象外領域の画像については常に一致する。従って、両画像データの比較結果は、実質的に可変画像220の領域、又は表示フィールド230内の文字画像の領域のみに左右され、照合対象外領域からの影響を受けない。   Here, since the target image data 300 is data obtained by cutting out one area of the test screen 200 displayed on the display device 110, for example, a non-matching area such as a background is mixed. However, this composition processing always matches the images in the non-verification region of the composite image data 320 and the target image data 300. Therefore, the comparison result between the two image data is substantially influenced only by the area of the variable image 220 or the area of the character image in the display field 230, and is not affected by the non-collation target area.

報知部17は、表示テストを行ったオブジェクトごとに結果をモニタに表示する。   The alerting | reporting part 17 displays a result on a monitor for every object which performed the display test.

このようなソフトウェア自動テストシステム1の動作を図4及び5を参照して説明する。図4及び5は、このソフトウェア自動テストシステム1の動作を示すフローチャートである。   The operation of the software automatic test system 1 will be described with reference to FIGS. 4 and 5 are flowcharts showing the operation of the software automatic test system 1. FIG.

まず、ユーザがキーボードやマウスを用いてテスト画面200の生成操作を行うと(S01)、設計条件入力部11は、この生成操作に対応した設計条件情報を生成する(S02)。   First, when the user performs a generation operation of the test screen 200 using a keyboard or a mouse (S01), the design condition input unit 11 generates design condition information corresponding to the generation operation (S02).

設計条件情報が生成されると、テストデータ生成部12は、設計条件情報から各オブジェクトの情報を検索して(S03)、各オブジェクトの表示テストのためのテストデータを生成する(S04)。   When the design condition information is generated, the test data generation unit 12 searches for information on each object from the design condition information (S03), and generates test data for a display test of each object (S04).

テストデータが生成されると、テストデータ入力部14はテストデータを検査対象装置100に出力する(S05)。   When the test data is generated, the test data input unit 14 outputs the test data to the inspection target device 100 (S05).

テストデータの出力処理後、画像取得部15は、N=1として(S06)、N番目のテストデータが可変画像220又は表示フィールド230であれば(S07,Yes)、N番目のテストデータに含まれる表示位置情報に該当する一部領域をテスト画面200から切り出して対象画像データ300を取得する(S08)。そして、画像取得部15は、N=N+1として(S09)、Nが全テストデータ数を超えていなければ(S10,No)、S07からS09を繰り返す。Nが全テストデータ数を超えていれば(S10,Yes)、画像取得処理を終了する。尚、N番目のテストデータが可変画像220又は表示フィールド230でない場合(S07,No)については第2の実施形態で説明する。   After the test data output process, the image acquisition unit 15 sets N = 1 (S06), and if the Nth test data is the variable image 220 or the display field 230 (S07, Yes), it is included in the Nth test data. A partial area corresponding to the displayed display position information is cut out from the test screen 200 to acquire the target image data 300 (S08). Then, the image acquisition unit 15 sets N = N + 1 (S09), and if N does not exceed the total number of test data (S10, No), repeats S07 to S09. If N exceeds the total number of test data (S10, Yes), the image acquisition process is terminated. The case where the Nth test data is not the variable image 220 or the display field 230 (S07, No) will be described in the second embodiment.

画像取得処理が終了すると、照合部16は、M=1として(S11)、M番目に取得された対象画像データ300を生成する際に参照されたテストデータを読み出し(S12)、このテストデータに含まれる画像特定情報に対応した照合元画像データ310を読み出す(S13)。   When the image acquisition process ends, the collation unit 16 sets M = 1 (S11), reads the test data referred to when generating the M-th acquired target image data 300 (S12), and uses this test data as the test data. The collation source image data 310 corresponding to the included image specifying information is read (S13).

照合部16は、この照合元画像データ310のサイズをM番目に取得された対象画像データ300に合わせて変更し(S14)、変更後の照合元画像データ310と対象画像データ300とを合成する(S15)。合成画像データ320を生成すると、照合部16は、合成画像データ320と対象画像データ300とを比較する(S16)。   The collation unit 16 changes the size of the collation source image data 310 according to the M-th acquired target image data 300 (S14), and synthesizes the collation source image data 310 and the target image data 300 after the change. (S15). When the composite image data 320 is generated, the collation unit 16 compares the composite image data 320 with the target image data 300 (S16).

比較の結果、不一致箇所が所定数以下であれば(S17,Yes)、M番目に取得された対象画像データ300に係る表示テストに対して一致を示す情報を出力し(S18)、不一致箇所が所定数超であれば(S17,No)、当該表示テストに対して不一致を示す情報を出力する(S19)。   As a result of the comparison, if the number of mismatched portions is less than or equal to the predetermined number (S17, Yes), information indicating matching is output for the display test related to the Mth acquired target image data 300 (S18). If it exceeds the predetermined number (S17, No), information indicating inconsistency with respect to the display test is output (S19).

そして、照合部16は、M=M+1として(S20)、Mが全対象画像データ300の数を超えていなければ(S21,No)、S12からS20を繰り返し、Mが全対象画像データ300の数を超えていれば(S21,Yes)、照合処理を終了する。そして、報知部17は、結果をレイアウトした画面をモニタに表示させる(S22)。   Then, the collation unit 16 sets M = M + 1 (S20), and if M does not exceed the number of all target image data 300 (S21, No), repeats S12 to S20, and M is the number of all target image data 300. If it exceeds (S21, Yes), the collation process is terminated. And the alerting | reporting part 17 displays the screen which laid out the result on the monitor (S22).

図6乃至図9は、ソフトウェア自動テストシステム1の照合動作を示す模式図である。図6は、モータの可変画像220のサイズ及び表示色が正しく表示されている場合を示している。照合元画像データ310を対象画像データ300のサイズに合わせて拡大してから照合元画像データ310を上位レイヤーとして切出し画像に合成すると、対象画像データ300内の可変画像220と照合元画像データ310の可変画像220とが完全に重なり合うため、対象画像データ300と合成画像データ320とが一致する。従って、比較の結果、この可変画像220は正しく表示されたとみなすことができる。   6 to 9 are schematic diagrams showing the collation operation of the software automatic test system 1. FIG. 6 shows a case where the size and display color of the variable image 220 of the motor are correctly displayed. When the matching source image data 310 is enlarged to match the size of the target image data 300 and then the matching source image data 310 is combined with a cut-out image as an upper layer, the variable image 220 in the target image data 300 and the matching source image data 310 are combined. Since the variable image 220 completely overlaps, the target image data 300 and the composite image data 320 match. Therefore, as a result of the comparison, this variable image 220 can be regarded as being correctly displayed.

図7では、モータの可変画像220を動作状態を示す表示色で表示すべきところ、表示装置110には停止状態を示す表示色で表示されてしまっていた場合を示す。この場合、合成画像データ320には、照合元画像データ310の可変画像220の表示色が反映されるため、合成画像データ320と対象画像データ300との比較においては、照合対象外領域である背景領域は一致するためにこの領域では不一致箇所が検出されることはないが、可変画像220の領域で不一致箇所が多数検出される。従って、比較の結果、この可変画像220の表示テストは不合格となる。   FIG. 7 shows a case where the variable image 220 of the motor is to be displayed in the display color indicating the operation state, but is displayed on the display device 110 in the display color indicating the stop state. In this case, since the display color of the variable image 220 of the verification source image data 310 is reflected in the composite image data 320, in the comparison between the composite image data 320 and the target image data 300, a background that is a non-verification region. Since the areas match, no unmatched places are detected in this area, but many unmatched places are detected in the variable image 220 area. Therefore, as a result of the comparison, the display test of the variable image 220 is rejected.

図8では、モータの可変画像220を動作状態を示す表示色で表示すべきところ、表示装置110にはモータ以外の可変画像220が停止状態を示す表示色で表示されてしまっていた場合を示す。つまり、対象画像データ300に写る可変画像220が意図された画像と異なり、また表示色が異なる。この場合、合成画像データ320には、対象画像データ300にない照合元画像データ310の可変画像220のデータが存在するため、この領域で多数の不一致箇所が検出され、照合によってこの可変画像220の表示テストは不合格となる。   FIG. 8 shows a case where the variable image 220 of the motor is to be displayed in the display color indicating the operation state, but the variable image 220 other than the motor is displayed in the display color indicating the stop state on the display device 110. . That is, the variable image 220 shown in the target image data 300 is different from the intended image, and the display color is different. In this case, since the composite image data 320 includes the data of the variable image 220 of the verification source image data 310 that is not included in the target image data 300, a large number of inconsistent portions are detected in this region. The display test fails.

図9では、モータの可変画像220を所定比率で拡大して表示すべきところ、そのサイズが異なっていた場合を示す。対照画像データ300のサイズに照合元画像データ310を拡大してから合成すると、両画像データに写る可変画像220の大きさが異なり、不一致箇所が所定数を超えて不合格となる。   FIG. 9 shows a case where the variable image 220 of the motor is to be enlarged and displayed at a predetermined ratio, but the size is different. When the comparison source image data 310 is enlarged after being enlarged to the size of the control image data 300, the sizes of the variable images 220 appearing in both image data are different, and the number of inconsistent portions exceeds a predetermined number and is rejected.

以上、第1の実施形態に係るソフトウェア自動テストシステム1によれば、背景が透明な照合元となる照合元画像データ310を予め記憶しておき、テスト画面200から照合対象の対象画像データ300を取得して、この対象画像データ300上に照合元画像データ310を合成することで合成画像データ320を生成し、合成画像データ320と対象画像データ300とを比較するようにした。これにより、画像処理が煩雑となる照合対象外領域の削除処理は不要であり、画像照合によるテストにおいて検査対象外の領域が存在しても良否判断の信頼性を高め、テスト者の時間と労力の低減を図ることができる。   As described above, according to the software automatic test system 1 according to the first embodiment, the collation source image data 310 that is a collation source with a transparent background is stored in advance, and the target image data 300 to be collated is displayed from the test screen 200. The composite image data 320 is generated by acquiring and synthesizing the matching source image data 310 on the target image data 300, and the composite image data 320 and the target image data 300 are compared. This eliminates the need to delete areas that are not subject to verification, which complicates image processing, and improves the reliability of pass / fail judgments even if there are areas that are not subject to inspection in the image verification test. Can be reduced.

また、対象画像データ300の正しい表示位置及び範囲を示す表示位置情報を予め記憶し、表示位置情報に基づくテスト画面200の一部領域のみを切り取ることで対象画像データ300を取得するようにしたため、照合対象外領域を極力排除することが可能となり、テストの精度は更に向上する。   In addition, since the display position information indicating the correct display position and range of the target image data 300 is stored in advance, and the target image data 300 is acquired by cutting out only a part of the test screen 200 based on the display position information. It is possible to eliminate the non-verification region as much as possible, and the test accuracy is further improved.

また、オブジェクト毎に照合元画像データ310を予め記憶し、各オブジェクト毎に複数の対象画像データ300を取得し、対応関係のある対象画像データ300と照合元画像データ310とを合成して、それぞれ比較するようにしたため、画像照合の結果をオブジェクト毎に判断することができ、テスト者はどのオブジェクトのテストが良であったか又は否であったかを即座に理解できるため、テスト者の時間と労力の低減を更に図ることができる。   Further, the collation source image data 310 is stored in advance for each object, a plurality of target image data 300 is obtained for each object, the corresponding target image data 300 and the collation source image data 310 are synthesized, Since the comparison is made, the result of image matching can be judged for each object, and the tester can immediately understand which object was good or not, thus reducing the time and labor of the tester. Can be further achieved.

本実施形態のソフトウェア自動テストシステム1では、照合元画像データ310は、それぞれテストデータのパターンごと、換言するとオブジェクトごとに照合元記憶部16aに記憶させるようにした。ただし、文字を含む画像の照合元画像データ310をそのフォント及び文字飾りの組み合わせごとに記憶すると、その数は膨大な数となる。また、図形の照合元画像データ310も、その中塗り色及び枠色の組み合わせごと記憶すると、その数は膨大な数となる。そのため、文字を含む画像や図形については、その照合元画像データ310を別途生成するようにしてもよい。この場合、合成には、照合元画像データ310を別途生成して対照画像データ300に重ね合わせる場合も、照合元画像データ310に直接図形や文字を描画する場合も含まれる。後者の場合、照合元画像データ310の生成及び合成は同一の処理となる。   In the software automatic test system 1 of the present embodiment, the collation source image data 310 is stored in the collation source storage unit 16a for each test data pattern, in other words, for each object. However, if the collation source image data 310 of an image including characters is stored for each combination of font and character decoration, the number becomes enormous. Further, if the figure matching source image data 310 is stored for each combination of the intermediate coating color and the frame color, the number thereof becomes enormous. For this reason, the image data 310 including characters may be generated separately for the matching source image data 310. In this case, the synthesis includes a case where the collation source image data 310 is separately generated and superimposed on the reference image data 300, and a case where a figure or a character is directly drawn on the collation source image data 310 is included. In the latter case, the generation and synthesis of the collation source image data 310 are the same process.

照合部16は、テストデータを参照し、テストデータに文字の画像又は図形であることを示す特定情報が含まれていれば、そのテストデータに含まれる図形の種類、大きさ、中塗り色、枠色の情報を基に図形を生成して照合元画像データ310とし、またそのテストデータに含まれる文字のフォント及び文字飾りの情報及び規定の文字データを基に文字の画像を生成して照合元画像データ310とする。一方、テストデータがラスタ画像の特定情報を含んでいる場合には、上述の通り予め記憶されている照合元画像データ310を照合元記憶部16aから取得すればよい。   The collation unit 16 refers to the test data, and if the test data includes specific information indicating that it is a character image or graphic, the type, size, intermediate color, A graphic is generated based on the frame color information and used as collation source image data 310, and a character image is generated based on the character font and character decoration information and the specified character data included in the test data, and collation is performed. The original image data 310 is assumed. On the other hand, when the test data includes raster image specifying information, the verification source image data 310 stored in advance as described above may be acquired from the verification source storage unit 16a.

また、本実施形態のソフトウェア自動テストシステム1において、照合元画像データ310と対照画像データ300との比較は、例えば減算処理によって所定数以上の画像データが残れば不一致と判断する例を説明した。そのほか、比較処理では、2値化及びエッジ抽出により抽出した特徴点の比較や、統計的な処理による一致度の算出や、2次元フーリエ変換後の比較や、ヒストグラムによる比較等の各種の方法やその組み合わせを用いることができる。   In the software automatic test system 1 according to the present embodiment, the comparison between the comparison source image data 310 and the reference image data 300 has been described as an example in which a mismatch is determined if, for example, a predetermined number or more of image data remains by subtraction processing. In addition, in comparison processing, various methods such as comparison of feature points extracted by binarization and edge extraction, calculation of coincidence by statistical processing, comparison after two-dimensional Fourier transform, comparison by histogram, etc. That combination can be used.

(第2の実施形態)
検査対象装置100は、画面生成プログラムを適宜処理することによって、表示装置110から送信された文字データを予め定められたメモリ上の特定データアドレスに記憶する。また、検査対象装置100は、表示装置110から送信された書込み指示信号をトリガとして予め定められた文字データをメモリ上の特定データアドレスに記憶する。
(Second Embodiment)
The inspection target device 100 stores the character data transmitted from the display device 110 at a specific data address in a predetermined memory by appropriately processing the screen generation program. In addition, the inspection target device 100 stores predetermined character data in a specific data address on the memory using the writing instruction signal transmitted from the display device 110 as a trigger.

第1の実施形態に係るソフトウェア自動システム1では、可変画像220と表示フィールド230内の文字の表示テストを画像照合により行う態様を説明したが、テスト画面200内に入力フィールド240と書込みボタン250を配置した場合には、この第1の実施形態に係るソフトウェア自動システム1の画像照合を利用して画面生成プログラムの入力テスト及び書込みボタン押下テストを行うことができる。   In the software automatic system 1 according to the first embodiment, the mode in which the display test of the characters in the variable image 220 and the display field 230 is performed by image matching has been described. However, the input field 240 and the write button 250 are provided in the test screen 200. When arranged, it is possible to perform an input test and a write button press test of the screen generation program using the image collation of the software automatic system 1 according to the first embodiment.

図10は、第2の実施形態に係るソフトウェア自動システム1が生成制御するテスト画面200を示す模式図である。図10に示すように、テスト画面200には、固定画像210、可変画像220、及び表示フィールド230の他、入力フィールド240、及び書込みボタン250のオブジェクトが配置される。   FIG. 10 is a schematic diagram illustrating a test screen 200 that is generated and controlled by the software automation system 1 according to the second embodiment. As shown in FIG. 10, in addition to the fixed image 210, the variable image 220, and the display field 230, the input field 240 and the write button 250 objects are arranged on the test screen 200.

入力フィールド240も文字データが表示される領域である。画面生成プログラムが正しく記述されていれば、表示装置110のキーボードで入力された文字データ又はこれをパラメータとし正しい計算結果が検査対象装置100の予め定められた特定データアドレスに記憶される。   The input field 240 is also an area where character data is displayed. If the screen generation program is correctly described, the character data input by the keyboard of the display device 110 or the correct calculation result using this as a parameter is stored in a predetermined specific data address of the inspection target device 100.

書込みボタン250は、押下により所定動作のトリガを与える。所定動作は、例えば計算処理及び計算結果の出力である。画面生成プログラムが正しく述されていれば、書込みボタン250の押下により文字データが表示装置110から検査対象装置100へ出力され、この文字データをパラメータとした検査対象装置100の計算結果が予め定められた特定データアドレスに記憶される。   The write button 250 gives a trigger for a predetermined operation when pressed. The predetermined operation is, for example, calculation processing and calculation result output. If the screen generation program is correctly described, character data is output from the display device 110 to the inspection target device 100 when the write button 250 is pressed, and the calculation result of the inspection target device 100 using this character data as a parameter is determined in advance. Stored in the specified data address.

図11は、第2の実施形態に係るソフトウェア自動テストシステム1の詳細構成を示すブロック図である。第1の実施形態に係るソフトウェア自動分析システム1と同一の構成については同一の符号を付して適宜その詳細な説明を省略する。   FIG. 11 is a block diagram showing a detailed configuration of the software automatic test system 1 according to the second embodiment. The same components as those in the software automatic analysis system 1 according to the first embodiment are denoted by the same reference numerals, and detailed description thereof is omitted as appropriate.

第2の実施形態に係るソフトウェア自動テストシステム1において、設計条件入力部11は、可変画像220及び表示フィールド230の他、入力フィールド240及び書込みボタン250の種類、表示位置、及び表示内容を設計条件情報に記述する。   In the software automatic test system 1 according to the second embodiment, the design condition input unit 11 uses the variable image 220 and the display field 230 as well as the type, display position, and display content of the input field 240 and the write button 250 as the design condition. Describe information.

入力フィールド240においては、その表示位置、表示文字桁数、フォントの種類、大きさ、文字飾りの指定を示す入力フィールド情報をユーザ操作に応じて生成して対応付ける。   In the input field 240, input field information indicating the display position, the number of display character digits, the font type, size, and character decoration is generated and associated in accordance with a user operation.

書込みボタン250においては、ボタンを示す画像データの特定、表示位置、大きさ、ボタン内の文字、及び書込みボタン250を押下したときに検査対象装置100に出力されるデータ内容を示す書込みボタン情報をユーザ操作に応じて生成して対応付ける。   In the write button 250, the specification of the image data indicating the button, the display position, the size, the characters in the button, and the write button information indicating the data content output to the inspection target device 100 when the write button 250 is pressed. Generate and associate according to user operation.

また、設計条件入力部11は、画面構成の定義を示す可変画像情報、表示フィールド情報、入力フィールド情報、及び書込みボタン情報を生成すると、これら情報と検査対象装置100のデータアドレスとをリンク付けしたデータリンク情報を生成する。   In addition, when the design condition input unit 11 generates variable image information, display field information, input field information, and write button information indicating the definition of the screen configuration, the information and the data address of the inspection target device 100 are linked. Generate data link information.

テストデータ生成部12は、表示テストのほか、入力テスト及び書込みボタン押下テストのために設計条件情報から入力フィールド情報及び書込みボタン情報も検索する。そして、入力テストに対しては、入力フィールド情報と規定の文字データとデータリンク情報とをセットにしたテストデータを生成する。また、書込みボタン押下テストに対しては、書込みボタン情報とデータリンク情報をセットにしたテストデータを生成する。つまり、テストデータから、入力または書き込みボタン押下の結果がどの特定データアドレスに格納され、テスト画面200のどの位置に表示されるかを推定できる。   In addition to the display test, the test data generation unit 12 also retrieves input field information and write button information from design condition information for an input test and a write button press test. For the input test, test data including a set of input field information, prescribed character data, and data link information is generated. For the write button press test, test data including a set of write button information and data link information is generated. That is, from the test data, it is possible to estimate at which specific data address the result of pressing the input or write button is stored and at which position on the test screen 200 is displayed.

テストデータ入力部14は、入力テストの場合、規定の文字データを入力フィールド240への入力指示とともに表示装置110へ出力する。また、テストデータ入力部14は、書込みボタン250の押下テスト場合、書込みボタン250の押下を指示する情報を表示装置110に出力する。   In the case of an input test, the test data input unit 14 outputs specified character data to the display device 110 together with an input instruction to the input field 240. The test data input unit 14 outputs information instructing to press the write button 250 to the display device 110 when the write button 250 is pressed.

画像取得部15は、入力テスト及び書込みテストのためにデータ取得部15aと表示制御部15bとを備えている。ここで画面生成プログラムが正しく動作していれば、規定の文字データの入力指示によって、表示装置110から検査対象装置100へ当該文字データが出力され、規定の特定アドレスに格納されている。また、画面生成プログラムが正しく動作していれば、書込みボタン250の押下指示によって、計算結果を含む規定の文字データが特定アドレスに格納されている。   The image acquisition unit 15 includes a data acquisition unit 15a and a display control unit 15b for an input test and a writing test. If the screen generation program is operating correctly, the character data is output from the display device 110 to the inspection target device 100 in accordance with the input instruction of the specified character data, and stored at the specified specific address. If the screen generation program is operating correctly, prescribed character data including a calculation result is stored at a specific address according to an instruction to press the write button 250.

そこで、データ取得部15aは、ローダ装置3を含み、検査対象装置100の規定の特定データアドレスから文字データを取得する。表示制御部15bは、テスト画面200を生成させる。詳細には、自動テスト装置2がローダ装置3にテスト画面200を生成させる。このとき、表示制御部15は、データ取得部15aが取得した文字データを自身で生成したテスト画面200に表示する。表示箇所は、入力テスト及び書込みテストのテストデータに含まれる表示位置情報で示される画面領域である。   Therefore, the data acquisition unit 15 a includes the loader device 3 and acquires character data from a specified specific data address of the inspection target device 100. The display control unit 15b generates the test screen 200. Specifically, the automatic test apparatus 2 causes the loader apparatus 3 to generate a test screen 200. At this time, the display control unit 15 displays the character data acquired by the data acquisition unit 15a on the test screen 200 generated by itself. The display location is a screen area indicated by display position information included in the test data of the input test and the writing test.

画像取得部15は、ローダ装置3のテスト画面200上の当該文字データを含む画面領域をテストデータの表示位置情報を参照して切り出すことで、入力テスト及び書込みボタン押下テスト用の対象画像データ300を取得する。   The image acquisition unit 15 cuts out a screen area including the character data on the test screen 200 of the loader device 3 with reference to the display position information of the test data, so that the target image data 300 for the input test and the write button press test is obtained. To get.

照合元記憶部16aは、表示テスト用の照合元画像データ310のほか、入力テスト及び書き込みボタン押下テスト用の照合元画像データ310を記憶している。この照合元画像データ310は、画像取得部15の対象画像データ300取得の結果、表示生成プログラムが正しく記述されていれば得られる文字の画像である。尚、この照合元画像データ310は、規定の文字データ及びテストデータを参照して生成するようにしてもよい。   The collation source storage unit 16a stores the collation source image data 310 for the input test and the write button press test in addition to the collation source image data 310 for the display test. The collation source image data 310 is a character image obtained if the display generation program is correctly described as a result of the acquisition of the target image data 300 by the image acquisition unit 15. The collation source image data 310 may be generated with reference to prescribed character data and test data.

照合部16は、入力テスト及び書込みボタン押下のテストにおいてもこの照合元画像データ310と対象画像データ300とを合成して、得られた合成画像データ320と対象画像データ300とを比較する。   The collation unit 16 synthesizes the collation source image data 310 and the target image data 300 in the input test and the write button press test, and compares the obtained composite image data 320 with the target image data 300.

このソフトウェア自動テストシステム1の動作のうち、入力テスト及び書込みボタン押下におけるテストデータの入力処理及び画像取得処理の動作を図12を参照して詳細に説明する。設計条件生成処理、テストデータの生成処理、及び照合とその結果表示処理については第1の実施形態と同様につきその詳細な動作説明を省略する。   Of the operations of the software automatic test system 1, the operations of test data input processing and image acquisition processing when the input test and write button are pressed will be described in detail with reference to FIG. Since the design condition generation process, the test data generation process, and the collation and the result display process are the same as those in the first embodiment, detailed description of the operation is omitted.

まず、テストデータ入力部14は、生成されたテストデータに入力フィールド情報に対応するテストデータが含まれていると(S31,Yes)、規定の文字データとその入力指示を表示装置110に出力する(S32)。この出力により、画面生成プログラムが正しければ、検査対象装置100の特定データアドレスへこの文字データが書き込まれている。   First, when the test data corresponding to the input field information is included in the generated test data (S31, Yes), the test data input unit 14 outputs the prescribed character data and its input instruction to the display device 110. (S32). If the screen generation program is correct by this output, the character data is written to the specific data address of the inspection target device 100.

また、テストデータ入力部14は、テストデータに書込みボタン情報が含まれていると(S33,Yes)、テストデータ入力部14は、書込みボタン250の押下指示を表示装置110に出力する(S34)。この出力により、画面生成プログラムが正しければ、検査対象装置100の特定アドレスへ正しい計算結果等の規定の文字データが書き込まれている。   Further, when the test data includes write button information in the test data (S33, Yes), the test data input unit 14 outputs an instruction to press the write button 250 to the display device 110 (S34). . With this output, if the screen generation program is correct, specified character data such as a correct calculation result is written to a specific address of the inspection target device 100.

テストデータの出力処理後、画像取得部15は、N番目のテストデータに含まれるデータリンク情報に該当する特定データアドレスのデータを検査対象装置100から取得し(S35)、取得した文字データを含んだテスト画面200を生成する(S36)。そして、画像取得部15は、その文字データが表示された一部領域を切り出して対象画像データ300を取得する(S37)。   After the output processing of the test data, the image acquisition unit 15 acquires data of a specific data address corresponding to the data link information included in the Nth test data from the inspection target device 100 (S35), and includes the acquired character data. The test screen 200 is generated (S36). And the image acquisition part 15 cuts out the partial area | region where the character data was displayed, and acquires the target image data 300 (S37).

以上、第2の実施形態に係るソフトウェア自動テストシステム1では、書込みボタン押下の結果データが記憶される検査対象装置100の予め定められた特定データアドレスから結果データを取得し、取得した結果データをローダ装置3のテスト画面200上に表示させ、このローダ装置3のテスト画面200上に表示された結果データを含んだ対象画像データ300を取得し、画像照合を行うようにした。   As described above, in the software automatic test system 1 according to the second embodiment, the result data is acquired from the predetermined specific data address of the inspection target apparatus 100 in which the result data of the write button press is stored, and the acquired result data is stored. The target image data 300 including the result data displayed on the test screen 200 of the loader device 3 and the result data displayed on the test screen 200 of the loader device 3 is acquired, and image collation is performed.

また、第2の実施形態に係るソフトウェア自動テストシステム1では、更にテスト画面200に予め定められた文字データを入力する入力テストにおいて、検査対象装置100の予め定められた特定データアドレスから文字データを取得し、取得した文字データをローダ装置3のテスト画面200上に表示させ、このローダ装置3のテスト画面200上に表示された文字データを含んだ対象画像データ300を取得し、画像照合を行うようにした。   Further, in the software automatic test system 1 according to the second embodiment, in an input test in which predetermined character data is further input to the test screen 200, character data is obtained from a predetermined specific data address of the inspection target device 100. The acquired character data is displayed on the test screen 200 of the loader device 3, the target image data 300 including the character data displayed on the test screen 200 of the loader device 3 is acquired, and image collation is performed. I did it.

これにより、表示テスト以外にも入力テスト及び書込みボタン押下テストを第1の実施形態と同様の画像照合により行うことが可能となり、テストの工数を削減することができる。 As a result, in addition to the display test, the input test and the write button press test can be performed by image collation similar to that of the first embodiment, and the number of test steps can be reduced.

(第3の実施形態)
図13は、第3の実施形態に係るソフトウェア自動テストシステム1の照合部16の詳細構成を示すブロック図である。第1及び2の実施形態と同一構成については同一符号を付してその詳細な説明を省略する。
(Third embodiment)
FIG. 13 is a block diagram illustrating a detailed configuration of the matching unit 16 of the software automatic test system 1 according to the third embodiment. The same components as those in the first and second embodiments are denoted by the same reference numerals, and detailed description thereof is omitted.

第3の実施形態に係るソフトウェア自動テストシステム1では、対象画像データ300が文字の画像の場合、この対象画像データ300を光学的に読み取って文字データ化し、この文字データと予め記憶されている正しい文字データとを比較する。   In the software automatic test system 1 according to the third embodiment, when the target image data 300 is a character image, the target image data 300 is optically read and converted into character data. Compare with character data.

このソフトウェア自動テストシステム1は、照合部16において光学読取部16dと文字色取得部16eと文字比較部16fを更に備えている。光学読取部16dは、対象画像データ300内の文字を光学的に読み取ることで照合対象となる対象文字データを取得する。文字色取得部16eは、対象画像データ300内の文字の色(対象文字色)を取得する。文字比較部16fは、対象文字データと照合元記憶部16aに予め記憶されて照合元となる照合元文字データとを比較する。また、文字比較部16fは、対象文字色と照合元となる照合元文字色とを比較する。照合元文字色は、入力フィールド情報や表示フィールド情報のテストデータに文字色の指定情報から取得される。   The software automatic test system 1 further includes an optical reading unit 16d, a character color acquisition unit 16e, and a character comparison unit 16f in the collation unit 16. The optical reading unit 16d acquires target character data to be collated by optically reading characters in the target image data 300. The character color acquisition unit 16e acquires the character color (target character color) in the target image data 300. The character comparison unit 16f compares the target character data with the verification source character data stored in advance in the verification source storage unit 16a and serving as the verification source. In addition, the character comparison unit 16f compares the target character color with the collation source character color that is the collation source. The collation source character color is acquired from the character color designation information in the test data of the input field information and display field information.

図14は、この第3の実施形態に係る照合部16の動作を示すフローチャートである。図14に示すように、照合部16は、M番目の切出し画像に対応するテストデータを参照して、テストデータが表示フィールド情報、入力フィールド情報、又は書込みボタン情報を参照したものか否かを判断する(S41)。判断の結果、可変画像220に対応するものであれば(S41,No)、第1の実施形態におけるS14以降の処理を行う。   FIG. 14 is a flowchart showing the operation of the matching unit 16 according to the third embodiment. As illustrated in FIG. 14, the collation unit 16 refers to the test data corresponding to the M-th cut image and determines whether the test data refers to display field information, input field information, or write button information. Judgment is made (S41). As a result of the determination, if it corresponds to the variable image 220 (S41, No), the processing after S14 in the first embodiment is performed.

一方、判断の結果、テストデータが表示フィールド情報、入力フィールド情報、又は書込みボタン情報を参照したものであれば(S41,Yes)、光学読取部16dは、対象画像データ300内の文字を光学的に読み取り文字データに変換することで対象文字データを取得する(S42)。   On the other hand, as a result of the determination, if the test data refers to display field information, input field information, or write button information (S41, Yes), the optical reading unit 16d optically reads characters in the target image data 300. The target character data is obtained by converting it into the read character data (S42).

次に、文字色取得部16eは、対象画像データ300を水平方向に1ピクセル単位でスキャンして最初に変化した色データを対象文字色として取得する(S43)。   Next, the character color obtaining unit 16e scans the target image data 300 in units of one pixel in the horizontal direction and obtains the first changed color data as the target character color (S43).

そして、文字比較部16fは、対象文字データと照合元文字データ、及び対象文字色とテストデータを参照することで得られる照合元文字色とを比較する(S44)。文字比較部16fは、比較の結果、文字データ又は文字色のいずれかが相違していれば(S45,Yes)、不一致を出力する(S46)。一方、双方が一致していれば(S45,No)、一致を出力する(S47)。   Then, the character comparison unit 16f compares the target character data with the collation source character data, and the target character color with the collation source character color obtained by referring to the test data (S44). If either character data or character color is different as a result of the comparison (S45, Yes), the character comparison unit 16f outputs a mismatch (S46). On the other hand, if both match (S45, No), a match is output (S47).

図15は、この照合部16の照合処理を示す模式図である。図15に示すように、取得した対象画像データ300には、「123」の赤色の文字が灰色を背景として表れているものとする。このとき、光学読取部16dは、この「123」との文字を光学的に読み取って「123」を示す対象文字データを取得し、文字色取得部16eは、水平方向へのスキャンによりスキャン対象のピクセルが灰色から赤色に変化したために赤色の対象文字色を取得する。照合元文字データ及び対象文字色が「123」及び赤色であれば、文字比較部16fの比較結果は一致となり、いずれかが異なっていれば比較結果は不一致となる。   FIG. 15 is a schematic diagram illustrating the matching process of the matching unit 16. As shown in FIG. 15, it is assumed that a red character “123” appears in the acquired target image data 300 with a gray background. At this time, the optical reading unit 16d optically reads the character “123” to obtain target character data indicating “123”, and the character color obtaining unit 16e performs scanning in the horizontal direction. Since the pixel has changed from gray to red, the red target character color is acquired. If the collation source character data and the target character color are “123” and red, the comparison result of the character comparison unit 16f is coincident, and if either is different, the comparison result is disagreement.

このように、第3の実施形態に係るソフトウェア自動テストシステム1では、照合元文字データを予め記憶しておき、対象画像データ300から文字を光学的に読み取って対象文字データを取得し、対象文字データと照合元文字データとを比較することもできる。また、照合元となる照合元色データを更に予め記憶しておき、対象画像データ300をスキャンして文字の対象色データを取得して、対象色データと照合元色データとを更に比較することもできる。これにより、文字を含む対象画像データ300の照合において文字や数値が線情報であるために大量の背景ノイズ成分が存在する場合であっても、照合精度を高めることができる。   As described above, in the software automatic test system 1 according to the third embodiment, collation source character data is stored in advance, the character is optically read from the target image data 300, and the target character data is acquired. It is also possible to compare the data with the collation source character data. Further, collation source color data to be a collation source is further stored in advance, the target image data 300 is scanned to obtain target color data of characters, and the target color data and the collation source color data are further compared. You can also. As a result, even when a large amount of background noise components are present in the collation of the target image data 300 including characters because the characters and numerical values are line information, the collation accuracy can be improved.

(第4の実施形態)
図16は、第4の実施形態に係るソフトウェア自動テストシステム1の照合部16の詳細構成を示すブロック図である。第1乃至3の実施形態と同一構成については同一符号を付してその詳細な説明を省略する。
(Fourth embodiment)
FIG. 16 is a block diagram illustrating a detailed configuration of the matching unit 16 of the software automatic test system 1 according to the fourth embodiment. The same components as those in the first to third embodiments are denoted by the same reference numerals, and detailed description thereof is omitted.

第4の実施形態に係るソフトウェア自動テストシステム1では、線で構成された可変画像220の表示テストの場合、対象画像データ300から線上の色データを取得して、この色データと予め記憶されている正しい色データとを比較する。   In the software automatic test system 1 according to the fourth embodiment, in the case of a display test of the variable image 220 composed of lines, the color data on the line is acquired from the target image data 300, and this color data is stored in advance. Compare the correct color data.

このソフトウェア自動テストシステム1は、照合部16において線色取得部16gと線色比較部16hを更に備えている。線色取得部16gは、線の中心一点とその所定範囲を含む(2P+1)^2ピクセル分の色データ(対象線色データ)を取得する(Pは、0以上の整数)。線色比較部16hは、照合元線色データと対象線色データとを比較する。照合元線色データは、可変画像220のテストデータに含まれている表示色の情報である。   The software automatic test system 1 further includes a line color acquisition unit 16g and a line color comparison unit 16h in the collation unit 16. The line color acquisition unit 16g acquires color data (target line color data) for (2P + 1) ^ 2 pixels including one center point of the line and a predetermined range thereof (P is an integer of 0 or more). The line color comparison unit 16h compares the verification source line color data with the target line color data. The verification source line color data is display color information included in the test data of the variable image 220.

図17は、この第4の実施形態に係る照合部16の動作を示すフローチャートである。図17に示すように、照合部16は、M番目の切出し画像に対応するテストデータを参照して、テストデータが図形を示す可変画像情報か否かを判断する(S51)。判断の結果、図形を示す可変画像情報でなければ(S51,No)、第1の実施形態のS14以降の処理を行う。   FIG. 17 is a flowchart showing the operation of the matching unit 16 according to the fourth embodiment. As shown in FIG. 17, the collation unit 16 refers to the test data corresponding to the M-th cut image and determines whether or not the test data is variable image information indicating a graphic (S51). As a result of the determination, if it is not variable image information indicating a graphic (S51, No), the processing after S14 of the first embodiment is performed.

一方、判断の結果、図形を示す可変画像情報であれば(S51,Yes)、線色取得部16gは、対象画像データ300内の線の中心座標を含むピクセルとその上下左右方向のピクセルの計(2P+1)^2分のピクセルの対象線色データを取得する(S52)。   On the other hand, if it is determined that the variable image information indicates a graphic (S51, Yes), the line color acquisition unit 16g calculates the sum of the pixels including the center coordinates of the line in the target image data 300 and the pixels in the vertical and horizontal directions. The target line color data of (2P + 1) ^ 2 minutes of pixels is acquired (S52).

そして、線色比較部16hは、各ピクセルの対象線色データと照合元線色データとを比較する(S53)。線色比較部15fは、比較の結果、いずれかの対象線色データが照合元線色データと一致していれば(S54,Yes)、一致を出力する(S55)。一方、いずれも相違していれば(S54,No)、不一致を出力する(S56)。   Then, the line color comparison unit 16h compares the target line color data of each pixel with the matching source line color data (S53). If any of the target line color data matches the verification source line color data (S54, Yes), the line color comparison unit 15f outputs a match (S55). On the other hand, if they are different (S54, No), a mismatch is output (S56).

図18は、この照合部16の照合処理を示す模式図である。図17に示すように、取得した対象画像データ300には、対角線上に赤色の線が灰色を背景として表れているものとする。このとき、線色取得部16gは、P=1とすると、中心座標を含むピクセルを中心として1ピクセル分の周囲に存在するピクセルの計9ピクセルの対象線色データを取得する。この場合、色データの内訳としては、背景の灰色を表す色データが6個、線色を表す色データが3個となる。照合元線色データが赤色であれば、取得した3個の対象線色データが照合元線色データと一致するため、線色比較部15fの比較結果は一致となる。一方、例えば9ピクセルのすべての対象線色データが灰色等であり赤色でない場合には比較結果は不一致となる。   FIG. 18 is a schematic diagram showing the matching process of the matching unit 16. As shown in FIG. 17, in the acquired target image data 300, a red line appears on a diagonal line with a gray background. At this time, if P = 1, the line color acquisition unit 16g acquires the target line color data of a total of 9 pixels, which are pixels existing around one pixel around the pixel including the center coordinates. In this case, the breakdown of the color data is 6 color data representing the background gray and 3 color data representing the line color. If the matching source line color data is red, the obtained three target line color data matches the matching source line color data, and therefore the comparison result of the line color comparison unit 15f matches. On the other hand, for example, when all the target line color data of 9 pixels are gray or the like and are not red, the comparison results are inconsistent.

以上、第4の実施形態に係るソフトウェア自動テストシステム1では、照合元となる照合元色データを予め記憶しておき、対象画像データ300に含まれる線画像の対象色データを取得し、対象色データとの照合元色データとを比較することもできる。   As described above, in the software automatic test system 1 according to the fourth embodiment, the collation source color data to be the collation source is stored in advance, the target color data of the line image included in the target image data 300 is acquired, and the target color is acquired. It is also possible to compare the original color data with the data.

また、第4の実施形態に係るソフトウェア自動テストシステム1では、線画像の中心を含むピクセルとその周囲ピクセルの対象色データをそれぞれ取得し、各対象色データと前記照合元色データとをそれぞれ比較し、いずれかの対象色データが照合元色データと同一であることにより一致を示す比較結果を報知することもできる。   In the software automatic test system 1 according to the fourth embodiment, the target color data of the pixel including the center of the line image and the surrounding pixels are respectively acquired, and each target color data is compared with the comparison source color data. It is also possible to report a comparison result indicating a match when any one of the target color data is the same as the collation source color data.

この実施形態によれば、対象画像データ300に含まれる可変画像220が線情報であるために大量の背景ノイズ成分が存在する場合であっても、照合精度を高めることができる。   According to this embodiment, since the variable image 220 included in the target image data 300 is line information, the collation accuracy can be improved even when a large amount of background noise components exist.

以上の各実施形態では、ソフトウェア自動テストシステム1は自動テスト装置2とローダ装置3の別体として説明したが、一台のコンピュータに一体として構成されていてもよく、また表示装置110に当該ソフトウェア自動テストシステム1を備えるようにしてもよい。   In each of the above-described embodiments, the software automatic test system 1 has been described as a separate body of the automatic test apparatus 2 and the loader apparatus 3, but may be configured integrally with one computer, and the software is included in the display device 110. An automatic test system 1 may be provided.

また、第1及び第2の実施形態では、対象画像データ300と照合元画像データ310を合成してから照合する例を説明したが、対象画像データ300から可変画像220を形状通りに切出すようにしてもよい。この場合、照合部16は、照合元画像データ310を対象画像データ300に合わせてサイズ変更した上で重ね合わせることで、対象画像データ300から可変画像220を更に切り出す。そして、この更に切り出された画像データと照合元画像データ310とを比較すればよい。   In the first and second embodiments, the example in which the target image data 300 and the verification source image data 310 are combined and verified is described. However, the variable image 220 is cut out from the target image data 300 according to the shape. It may be. In this case, the collation unit 16 further cuts out the variable image 220 from the target image data 300 by changing the size of the collation source image data 310 according to the target image data 300 and then superimposing them. Then, the further cut out image data and the comparison source image data 310 may be compared.

1 ソフトウェア自動テストシステム
11 設定条件入力部
12 テストデータ生成部
13 テストデータ記憶部
14 テストデータ入力部
15 画像取得部
15a データ取得部
15b 表示制御部
16 照合部
16a 照合元記憶部
16b 合成部
16c 画像比較部
16d 光学読取部
16e 文字色取得部
16f 文字データ比較部
16g 線色取得部
16h 線色比較部
17 結果表示制御部
2 自動テスト装置
3 ローダ装置
100 検査対象装置
110 表示装置
200 テスト画面
210 固定画像
220 可変画像
230 表示フィールド
240 入力フィールド
250 書込みボタン
300 対象画像データ
310 照合元画像データ
320 合成画像データ
DESCRIPTION OF SYMBOLS 1 Software automatic test system 11 Setting condition input part 12 Test data generation part 13 Test data memory | storage part 14 Test data input part 15 Image acquisition part 15a Data acquisition part 15b Display control part 16 Collation part 16a Collation origin memory | storage part 16b Composition part 16c Image Comparison unit 16d Optical reading unit 16e Character color acquisition unit 16f Character data comparison unit 16g Line color acquisition unit 16h Line color comparison unit 17 Result display control unit 2 Automatic test device 3 Loader device 100 Inspection target device 110 Display device 200 Test screen 210 Fixed Image 220 Variable image 230 Display field 240 Input field 250 Write button 300 Target image data 310 Source image data 320 Composite image data

Claims (11)

画面生成プログラムを記憶する検査対象装置が生成するテスト画面の良否を画像照合により判断するソフトウェア自動テストシステムであって、
前記画像照合の照合元となる背景が透明な照合元画像データを予め記憶する画像記憶手段と、
前記テスト画面から前記画像照合の対象となる対象画像データを取得する画像取得手段と、
前記対象画像データ上に前記照合元画像データを合成することで合成画像データを生成する合成手段と、
前記合成画像データと前記対象画像データとを比較する画像比較手段と、
比較結果を報知する報知手段と、
を備えること、
を特徴とするソフトウェア自動テストシステム。
A software automatic test system for determining whether or not a test screen generated by an inspection target device that stores a screen generation program is good or bad by image verification,
Image storage means for preliminarily storing collation source image data with a transparent background as a collation source of the image collation;
Image acquisition means for acquiring target image data to be subjected to image comparison from the test screen;
Combining means for generating combined image data by combining the collation source image data on the target image data;
Image comparison means for comparing the composite image data and the target image data;
An informing means for informing the comparison result;
Providing
Software automatic test system featuring.
前記画像記憶手段に代えて、前記照合元画像データを生成する画像生成手段を備えること、
を特徴とする請求項1記載のソフトウェア自動テストシステム。
In place of the image storage means, comprising image generation means for generating the collation source image data,
The software automatic test system according to claim 1.
前記画像取得手段は、前記対象画像データの表示位置及び範囲を示す表示位置情報を予め記憶し、前記表示位置情報に基づいて前記テスト画面の一部領域のみを切り取ることで前記対象画像データを取得すること、
を特徴とする請求項1又は2記載のソフトウェア自動テストシステム。
The image acquisition means stores in advance display position information indicating the display position and range of the target image data, and acquires the target image data by cutting out only a partial area of the test screen based on the display position information. To do,
The software automatic test system according to claim 1 or 2.
前記合成手段は、前記照合元画像データを前記対象画像データのサイズに変更した上で前記合成を行うこと、
を特徴とする請求項3記載のソフトウェア自動テストシステム。
The synthesizing unit performs the synthesis after changing the comparison source image data to the size of the target image data;
The software automatic test system according to claim 3.
前記テスト画面には、複数のオブジェクトが配置され、
前記画像記憶手段は、前記オブジェクト毎の照合元画像データを予め記憶し、
前記画像取得手段は、前記オブジェクト毎に前記対象画像データを取得し、
前記合成手段は、対応関係にある前記対象画像データと前記照合元画像データとを合成し、
前記画像比較手段は、前記各合成画像データと前記各対照画像データとをそれぞれ比較し、
前記報知手段は、前記オブジェクト毎に比較結果を報知すること、
を特徴とする請求項3又は4に記載のソフトウェア自動テストシステム。
A plurality of objects are arranged on the test screen,
The image storage means stores in advance pre-verification image data for each object,
The image acquisition means acquires the target image data for each object,
The synthesizing unit synthesizes the target image data and the collation source image data in a correspondence relationship,
The image comparison means compares each composite image data and each control image data,
The notifying means notifying a comparison result for each object;
The software automatic test system according to claim 3 or 4.
前記画像取得手段は、
前記テスト画面に予め定められた文字データを入力する入力手段と、
前記検査対象装置の予め定められた特定データアドレスから前記入力された文字データを取得するデータ取得手段と、
前記テスト画面と同一の画面を生成するとともに、前記データ取得手段が取得した前記文字データを前記同一の画面上に表示させる表示制御手段と、
を更に備え、
前記表示制御手段により生成された前記同一の画面から前記文字データを含んだ対象画像データを取得すること、
を特徴とする請求項1乃至5のいずれかに記載のソフトウェア自動テストシステム。
The image acquisition means includes
Input means for inputting predetermined character data on the test screen;
Data acquisition means for acquiring the input character data from a predetermined specific data address of the inspection target device;
Display control means for generating the same screen as the test screen and displaying the character data acquired by the data acquisition means on the same screen;
Further comprising
Obtaining target image data including the character data from the same screen generated by the display control means;
The software automatic test system according to any one of claims 1 to 5.
前記検査対象装置は、書込みボタンが配置されたテスト画面を生成し、
前記画像取得手段は、
前記書込みボタン押下の結果データが記憶される前記検査対象装置の予め定められた特定データアドレスから前記結果データを取得するデータ取得手段と、
前記テスト画面と同一の画面を生成するとともに、前記データ取得手段が取得した前記結果データを前記同一の画面上に表示させる表示制御手段と、
を更に備え、
前記表示制御手段により生成された前記同一の画面から前記結果データを含んだ対象画像データを取得すること、
を特徴とする請求項1乃至5のいずれかに記載のソフトウェア自動テストシステム。
The inspection target device generates a test screen on which a write button is arranged,
The image acquisition means includes
Data acquisition means for acquiring the result data from a predetermined specific data address of the inspection target device in which the result data of the write button is stored;
Display control means for generating the same screen as the test screen and displaying the result data acquired by the data acquisition means on the same screen;
Further comprising
Obtaining target image data including the result data from the same screen generated by the display control means;
The software automatic test system according to any one of claims 1 to 5.
前記対象画像データから文字を光学的に読み取って対象文字データを取得する光学読取手段と、
照合元となる照合元文字データを予め記憶する文字記憶手段と、
前記対象文字データとの照合元文字データとを比較する文字比較手段と、
を更に備えること、
を特徴とする請求項1乃至7のいずれかに記載のソフトウェア自動テストシステム。
Optical reading means for optically reading characters from the target image data to obtain target character data;
Character storage means for storing collation source character data as a collation source in advance;
A character comparison means for comparing the original character data with the target character data;
Further comprising,
The software automatic test system according to any one of claims 1 to 7.
前記対象画像データをスキャンして前記文字の対象色データを取得する色データ取得手段を更に備え、
前記文字記憶手段は、照合元となる照合元色データを更に予め記憶し、
前記文字比較手段は、前記対象色データと前記照合元色データとを更に比較すること、
を特徴とする請求項8に記載のソフトウェア自動テストシステム。
A color data acquisition unit that scans the target image data and acquires target color data of the character;
The character storage means further stores in advance collation source color data to be a collation source,
The character comparison means further compares the target color data with the collation source color data;
The software automatic test system according to claim 8.
前記対象画像データに含まれる線画像の対象色データを取得する線色取得手段と、
照合元となる照合元色データを予め記憶する線色記憶手段と、
前記対象色データと照合元色データとを比較する線色比較手段と、
を更に備えること、
を特徴とする請求項1乃至7のいずれかに記載のソフトウェア自動テストシステム。
Line color acquisition means for acquiring target color data of a line image included in the target image data;
Line color storage means for preliminarily storing collation source color data to be a collation source;
A line color comparing means for comparing the target color data and the matching source color data;
Further comprising,
The software automatic test system according to any one of claims 1 to 7.
前記線色取得手段は、前記線画像の中心を含むピクセルとその周囲ピクセルの対象色データをそれぞれ取得し、
前記線色比較手段は、前記各対象色データと前記照合元色データとをそれぞれ比較し、
前記報知手段は、いずれかの前記対象色データが前記照合元色データと同一であることにより一致を示す比較結果を報知すること、
を特徴とする請求項10に記載のソフトウェア自動テストシステム。
The line color acquisition unit acquires target color data of a pixel including the center of the line image and surrounding pixels,
The line color comparison unit compares the target color data with the comparison source color data,
The notifying means notifying a comparison result indicating a match when any one of the target color data is the same as the collation source color data;
The software automatic test system according to claim 10.
JP2010181782A 2010-08-16 2010-08-16 Software automatic test system Active JP5540413B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010181782A JP5540413B2 (en) 2010-08-16 2010-08-16 Software automatic test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010181782A JP5540413B2 (en) 2010-08-16 2010-08-16 Software automatic test system

Publications (2)

Publication Number Publication Date
JP2012043062A true JP2012043062A (en) 2012-03-01
JP5540413B2 JP5540413B2 (en) 2014-07-02

Family

ID=45899323

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010181782A Active JP5540413B2 (en) 2010-08-16 2010-08-16 Software automatic test system

Country Status (1)

Country Link
JP (1) JP5540413B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015076041A (en) * 2013-10-11 2015-04-20 日本電信電話株式会社 Erroneous input detection device and erroneous input detection program
JP2017033151A (en) * 2015-07-30 2017-02-09 三菱電機株式会社 Monitoring screen test device and method, and program and record medium
CN109471805A (en) * 2018-11-14 2019-03-15 网易(杭州)网络有限公司 Resource testing method and device, storage medium, electronic equipment
CN111142497A (en) * 2018-11-02 2020-05-12 株洲中车时代电气股份有限公司 Test system and method for vehicle-mounted application software
JP2021152939A (en) * 2017-03-22 2021-09-30 日本電気株式会社 Portable terminal, control method, and program
US11544840B2 (en) 2019-03-29 2023-01-03 Konica Minolta, Inc. Inspection device, inspection method, and recording medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06325156A (en) * 1993-05-14 1994-11-25 Hitachi Eng Co Ltd Method and device for character shape inspection
JP2005251173A (en) * 2004-01-28 2005-09-15 Microsoft Corp Method and system for masking dynamic region in user interface to enable testing of user interface consistency
JP2009134407A (en) * 2007-11-29 2009-06-18 Nomura Research Institute Ltd Test device and method for verifying execution result of computer program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06325156A (en) * 1993-05-14 1994-11-25 Hitachi Eng Co Ltd Method and device for character shape inspection
JP2005251173A (en) * 2004-01-28 2005-09-15 Microsoft Corp Method and system for masking dynamic region in user interface to enable testing of user interface consistency
JP2009134407A (en) * 2007-11-29 2009-06-18 Nomura Research Institute Ltd Test device and method for verifying execution result of computer program

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015076041A (en) * 2013-10-11 2015-04-20 日本電信電話株式会社 Erroneous input detection device and erroneous input detection program
JP2017033151A (en) * 2015-07-30 2017-02-09 三菱電機株式会社 Monitoring screen test device and method, and program and record medium
JP2021152939A (en) * 2017-03-22 2021-09-30 日本電気株式会社 Portable terminal, control method, and program
JP7230951B2 (en) 2017-03-22 2023-03-01 日本電気株式会社 Mobile terminal, information processing system, control method, and program
CN111142497A (en) * 2018-11-02 2020-05-12 株洲中车时代电气股份有限公司 Test system and method for vehicle-mounted application software
CN109471805A (en) * 2018-11-14 2019-03-15 网易(杭州)网络有限公司 Resource testing method and device, storage medium, electronic equipment
CN109471805B (en) * 2018-11-14 2022-09-30 网易(杭州)网络有限公司 Resource testing method and device, storage medium and electronic equipment
US11544840B2 (en) 2019-03-29 2023-01-03 Konica Minolta, Inc. Inspection device, inspection method, and recording medium

Also Published As

Publication number Publication date
JP5540413B2 (en) 2014-07-02

Similar Documents

Publication Publication Date Title
JP5540413B2 (en) Software automatic test system
CN109690570B (en) Computer room management method and dynamic loop system
US6175663B1 (en) Method and apparatus for preserving background continuity in images
US20170213356A1 (en) Image analysis method and apparatus, and computer readable device
JP6455010B2 (en) Information processing apparatus, information processing method, and program
US11836961B2 (en) Information processing apparatus, information processing method, and storage medium for determining whether a captured image of a subject is suitable for recognition processing
JP2012226683A (en) Full-point test method of display device screen and full-point test apparatus
JP2007086899A (en) Test result decision display method, test result decision display program and test device
Kıraç et al. VISOR: A fast image processing pipeline with scaling and translation invariance for test oracle automation of visual output systems
JP2010071951A (en) Visual inspection device and visual inspection method
US11906441B2 (en) Inspection apparatus, control method, and program
CN108121648B (en) Interface error monitoring method
US20230024820A1 (en) Analysis device and analysis method
JP2009134407A (en) Test device and method for verifying execution result of computer program
CN112288672B (en) Tumor detection method and tumor detection device
DE112020000410T5 (en) ORIENTATION OF EXTENDED REALITY MODELS
JP2009134406A (en) Test device and method for verifying execution result of computer program
CN116126568B (en) Fault reproduction method, device, apparatus and readable storage medium
JP2005241886A (en) Extraction method of changed area between geographical images, program for extracting changed area between geographical images, closed area extraction method and program for extracting closed area
JP2022124681A (en) Tissue image analysis device, and tissue image analysis method
JP6987469B2 (en) Inspection management system
JP2021128415A (en) Machine learning method and information processing device for machine learning
JP4441332B2 (en) Screen determination apparatus and screen determination method
Cappi et al. DYSCO Vis.: DYnamic Self-Correction for Obstructed Visualizations
CN113094291B (en) Method, device and equipment for matching verification of lock screen interface and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130614

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140121

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140310

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140416

R150 Certificate of patent or registration of utility model

Ref document number: 5540413

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250