JP2012043062A - Software automatic test system - Google Patents
Software automatic test system Download PDFInfo
- 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
Links
Images
Abstract
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
このソフトウェア自動テストシステムは、画像データ中に日時によって自動的に変更される可変画像データが存在する場合には、この一部の画像データに起因してテスト画面全体の照合結果が不整合と判断されてしまう。そのため、結局のところ、テスト者による目視による良否判断を加える必要があり、時間と労力の低減及び人為的ミスの軽減につながりにくい。 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
しかし、画面生成プログラムが生成する画面によっては、削除を必要とする画像領域が複雑な形状を有する場合があり、削除による対応が困難である。また、削除可能であっても、事前に削除する画像領域以外の台紙画像を輪郭くり抜きのためのテンプレートとして用意する必要がある等の理由でテストのための準備作業の工数が増えるおそれや、未削除の領域が残存してしまい、そのために照合結果が不整合となってしまうおそれがある。 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.
以下、本発明に係るソフトウェア自動テストシステムの実施形態について図面を参照しつつ詳細に説明する。 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
検査対象装置100は、例えば、PLC(プログラマブルロジックコントローラ)等の制御機器である。検査対象装置100は、監視又は制御の対象とするFA機器等の監視制御対象装置(図示せず)と接続されており、当該監視制御対象装置から駆動状況を示す現場情報データを収集する。また、検査対象装置100は、現場情報データやタイミングチャートに基づいて監視制御対象装置に対して各種制御を行うための信号を出力する。
The
検査対象装置100は、CPUやMPU等のプロセッサ、及びROMやハードディスク等のメモリを備えている。メモリには、制御プログラムが記憶されている。プロセッサがこの制御プログラムを適宜読み出して処理し、処理結果に応じた信号を監視制御対象装置に出力する。
The
また、検査対象装置100のメモリには、画面生成プログラムが記憶されている。検査対象装置100は、この画面生成プログラムを適宜処理することによって、FA機器の作動状況を視覚的に示す画面データを生成し、表示装置110に出力する。
In addition, a screen generation program is stored in the memory of the
表示装置110は、液晶ディスプレイやCRTディスプレイを含むモニタを有する。検査対象装置100から入力された画面データを表示する。現場責任者等のユーザは、表示装置110の表示画面によって監視制御対象装置の作動状態を監視できる。
The
ソフトウェア自動テストシステム1は、検査対象装置100にテスト画面200(図2参照)を生成させ、テスト画面200が正しく表示されているかチェックする。
The software
このソフトウェア自動テストシステム1は、自動テスト装置2とローダ装置3とを備えている。自動テスト装置2とローダ装置3とは、信号ケーブルによって信号の送受信が可能に接続されている。これら自動テスト装置2とローダ装置3は、例えば、CPU、RAM、ハードディスク、及びキーボード、マウス、モニタ等のマンマシンインターフェースを備えており、ハードディスクに記憶されたプログラムをCPUが処理することで動作する。
The software
自動テスト装置2は、テスト画面200の生成制御、テスト画面200のチェック、及び結果の出力を行う。ローダ装置3は、検査対象装置100のメモリへアクセスし、データの読み込み及び書き込みを行う。
The
図2は、第1の実施形態に係るソフトウェア自動テストシステム1が検査対象装置100に生成させるテスト画面200の一例を示す模式図である。テスト画面200には、各種の情報を表す文字や画像のオブジェクトが表示される。テスト画面200に表示されるオブジェクトは、例えば固定画像210、可変画像220、及び表示フィールド230である。
FIG. 2 is a schematic diagram illustrating an example of a
固定画像210は、監視制御対象機器や表示装置110からの信号入力によっては変化しない。例えば、固定画像210は、罫線、枠、図形、背景である。
The
可変画像220は、監視制御対象機器から出力される現場情報データによって変化する画像である。この可変画像220には、ドットによって構成されるラスタ画像の他、線や曲線によって構成されるベクター画像即ち図形も含む。この可変画像220は、例えばモータやコンプレッサやポンプ等のFA機器、弁、ローラ、導通管、信号ケーブルを模している。画面上では、可変画像220の表示色、形状、大きさによって作動状態がわかるようになっている。例えば、電流の経路が線画像によって表され、通電状態であれば赤色の表示色、停止中であれば緑色の表示色といった具合に表示色で通電状態が表示される。また、例えば、ポンプが画像によって表され、運転中であれば赤色の表示色、停止中であれば緑色の表示色といった具合に表示色で運転状態が表示される。
The
表示フィールド230は、文字データが表示される領域である。FA機器から出力される現場情報データが表示される。文字データには、ローマ字、ひらがな、カタカナ、漢字のほか、数値も含まれる。
The
ソフトウェア自動テストシステム1は、検査対象装置100にテスト画面200に配置するオブジェクトを指示するテストデータを生成して検査対象装置100に出力する。テストデータには、テスト画面200に表示させるオブジェクトの種類、表示位置、及び表示内容が含まれている。テストデータは、テスト画面200に表示させるオブジェクト毎に生成される。
The software
第1の実施形態に係るソフトウェア自動テストシステム1は、テスト画面200に配置された各オブジェクトの表示テストを行う。テストデータに従って配置された各オブジェクトの表示位置及び表示内容の良否を個別にチェックする。
The software
チェックにおいて、ソフトウェア自動テストシステム1は、表示装置110のテスト画面200から各オブジェクトが表示されている各画面領域を個々に切り出す。そして、ソフトウェア自動テストシステム1は、切り出しの結果得られた照合対象となる各対象画像データ300と、照合元となる照合元画像データ310(例えば図6参照)とを画像照合する。照合元画像データ310は、画面生成プログラムが正しくテストデータを処理すれば得られる画像データである。この照合元画像データ310は、ソフトウェア自動テストシステム1に予め記憶されている。
In the check, the software
このソフトウェア自動テストシステム1の詳細構成を図3を参照してさらに詳細に説明する。図3は、ソフトウェア自動テストシステム1の詳細構成を示すブロック図である。各ブロックは、ソフトウェア自動テストシステム1がプログラムをハードウェアによって処理することにより実現する各機能を示しているが、これら各機能を回路構成によって実現してもよい。
The detailed configuration of the software
図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
設計条件入力部11は、キーボード、マウス、及びモニタ等のマンマシンインターフェースを含み構成される。設計条件入力部11は、ユーザの操作に応じて、設計条件情報を生成する。設計条件情報は、表示装置110に表示させるテスト画面200の構成を定義したデータであり、テストデータの基となる。設計条件情報には、オブジェクトの種類、表示位置、及び表示内容が記述される。
The design
例えば、設計条件入力部11は、表示させる可変画像220を識別する画像識別情報とこの可変画像220の表示位置情報とをセットにした可変画像情報とを生成して対応付ける。表示位置情報は、その表示位置及び範囲を示し、矩形座標範囲や中心座標、幅、高さ、及び角度や向きで記述される。画像識別情報は、表示色の選択条件を示す成立条件情報、及び選択条件が成立した場合に表示する画像データの画像特定情報で示される。可変画像220が線や円等の図形の場合には、その図形の種類を識別する情報と表示色の情報が画像特定情報として記述される。
For example, the design
表示フィールド230については、表示する文字の種類、その表示位置、表示文字桁数、フォントの種類、文字色、大きさ、文字飾りの指定を示す表示フィールド情報をユーザ操作に応じて生成する。
For the
テストデータ生成部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
テストデータ記憶部13は、生成されたテストデータを記憶する。テストデータ入力部14は、テストデータをローダ装置3を介して検査対象装置100に出力する。
The test
画像取得部15は、表示装置110に表示されたテスト画面200から各オブジェクトが表示された各画面領域の画像を切り出すことで対象画像データ300を取得する。切り出す画面領域は、テストデータ記憶部13に記憶されたテストデータに含まれる表示位置情報を参照する。切り出しは、換言するとテスト画面200上の一部領域のみのハードコピーである。
The
テストデータが可変画像情報を基に生成されている場合には、画像取得部15は、可変画像220の矩形座標範囲や中心座標、幅、高さ、及び角度や向きを示す表示位置情報に該当する範囲の対象画像データ300を取得する。テストデータが表示フィールド情報を基に生成されている場合には、画像取得部15は、表示位置及び大きさを示す表示位置情報に該当する範囲、即ち表示フィールド230内に表示されている文字部分を含む対象画像データ300を取得する。
When the test data is generated based on variable image information, the
照合部16は、各オブジェクトの表示テストを実行する。この照合部16は、照合元記憶部16aと合成部16bと画像比較部16cとを備える。
The matching
照合元記憶部16aは、照合元画像データ310を予め記憶している。照合元画像データ310は、オブジェクトが正しく表示された場合に再現される画像のデータである。この照合元画像データ310は、背景が透明となっている。照合元記憶部16aは、テストデータのパターン別に照合元画像データ310を記憶している。即ち、照合元記憶部16aは、各種の可変画像220をその表示色のパターン別に記憶している。また、表示フィールド230内の文字の表示テスト用に予め定められた文字の画像を表示文字桁数、フォントの種類、大きさ、文字飾りの指定別に記憶している。この文字の画像は、テストデータ生成部12が予め記憶している文字と同一の文字が写る画像である。
The verification
合成部16bは、照合元画像データ310を読み出し、対象画像データ300と照合元画像データ310を合成する。照合元画像データ310は、対象画像データ300の切出しの際に参照したテストデータを参照して読み出す。合成部16cは、合成の際、照合元画像データ310を拡大、縮小、回転、反転を行い、対象画像データ300と大きさ及び向きを合わせる。合成では、照合元画像データ310を上位のレイヤーとして重ね合わせる。
The synthesizing
画像比較部16cは、合成部16bが生成した合成画像データ320と対象画像データ300とを比較する。即ち、画像比較部16cは、両画像データの一致箇所及び不一致箇所を検出する。
The
ここで、対象画像データ300は、表示装置110に表示されているテスト画面200の一領域を切り出したデータであるから、例えば背景等の照合対象外領域が混在している。しかし、この合成処理によって合成画像データ320と対象画像データ300の照合対象外領域の画像については常に一致する。従って、両画像データの比較結果は、実質的に可変画像220の領域、又は表示フィールド230内の文字画像の領域のみに左右され、照合対象外領域からの影響を受けない。
Here, since the
報知部17は、表示テストを行ったオブジェクトごとに結果をモニタに表示する。
The alerting | reporting
このようなソフトウェア自動テストシステム1の動作を図4及び5を参照して説明する。図4及び5は、このソフトウェア自動テストシステム1の動作を示すフローチャートである。
The operation of the software
まず、ユーザがキーボードやマウスを用いてテスト画面200の生成操作を行うと(S01)、設計条件入力部11は、この生成操作に対応した設計条件情報を生成する(S02)。
First, when the user performs a generation operation of the
設計条件情報が生成されると、テストデータ生成部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
テストデータの出力処理後、画像取得部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
画像取得処理が終了すると、照合部16は、M=1として(S11)、M番目に取得された対象画像データ300を生成する際に参照されたテストデータを読み出し(S12)、このテストデータに含まれる画像特定情報に対応した照合元画像データ310を読み出す(S13)。
When the image acquisition process ends, the
照合部16は、この照合元画像データ310のサイズをM番目に取得された対象画像データ300に合わせて変更し(S14)、変更後の照合元画像データ310と対象画像データ300とを合成する(S15)。合成画像データ320を生成すると、照合部16は、合成画像データ320と対象画像データ300とを比較する(S16)。
The
比較の結果、不一致箇所が所定数以下であれば(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
図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
図7では、モータの可変画像220を動作状態を示す表示色で表示すべきところ、表示装置110には停止状態を示す表示色で表示されてしまっていた場合を示す。この場合、合成画像データ320には、照合元画像データ310の可変画像220の表示色が反映されるため、合成画像データ320と対象画像データ300との比較においては、照合対象外領域である背景領域は一致するためにこの領域では不一致箇所が検出されることはないが、可変画像220の領域で不一致箇所が多数検出される。従って、比較の結果、この可変画像220の表示テストは不合格となる。
FIG. 7 shows a case where the
図8では、モータの可変画像220を動作状態を示す表示色で表示すべきところ、表示装置110にはモータ以外の可変画像220が停止状態を示す表示色で表示されてしまっていた場合を示す。つまり、対象画像データ300に写る可変画像220が意図された画像と異なり、また表示色が異なる。この場合、合成画像データ320には、対象画像データ300にない照合元画像データ310の可変画像220のデータが存在するため、この領域で多数の不一致箇所が検出され、照合によってこの可変画像220の表示テストは不合格となる。
FIG. 8 shows a case where the
図9では、モータの可変画像220を所定比率で拡大して表示すべきところ、そのサイズが異なっていた場合を示す。対照画像データ300のサイズに照合元画像データ310を拡大してから合成すると、両画像データに写る可変画像220の大きさが異なり、不一致箇所が所定数を超えて不合格となる。
FIG. 9 shows a case where the
以上、第1の実施形態に係るソフトウェア自動テストシステム1によれば、背景が透明な照合元となる照合元画像データ310を予め記憶しておき、テスト画面200から照合対象の対象画像データ300を取得して、この対象画像データ300上に照合元画像データ310を合成することで合成画像データ320を生成し、合成画像データ320と対象画像データ300とを比較するようにした。これにより、画像処理が煩雑となる照合対象外領域の削除処理は不要であり、画像照合によるテストにおいて検査対象外の領域が存在しても良否判断の信頼性を高め、テスト者の時間と労力の低減を図ることができる。
As described above, according to the software
また、対象画像データ300の正しい表示位置及び範囲を示す表示位置情報を予め記憶し、表示位置情報に基づくテスト画面200の一部領域のみを切り取ることで対象画像データ300を取得するようにしたため、照合対象外領域を極力排除することが可能となり、テストの精度は更に向上する。
In addition, since the display position information indicating the correct display position and range of the
また、オブジェクト毎に照合元画像データ310を予め記憶し、各オブジェクト毎に複数の対象画像データ300を取得し、対応関係のある対象画像データ300と照合元画像データ310とを合成して、それぞれ比較するようにしたため、画像照合の結果をオブジェクト毎に判断することができ、テスト者はどのオブジェクトのテストが良であったか又は否であったかを即座に理解できるため、テスト者の時間と労力の低減を更に図ることができる。
Further, the collation
本実施形態のソフトウェア自動テストシステム1では、照合元画像データ310は、それぞれテストデータのパターンごと、換言するとオブジェクトごとに照合元記憶部16aに記憶させるようにした。ただし、文字を含む画像の照合元画像データ310をそのフォント及び文字飾りの組み合わせごとに記憶すると、その数は膨大な数となる。また、図形の照合元画像データ310も、その中塗り色及び枠色の組み合わせごと記憶すると、その数は膨大な数となる。そのため、文字を含む画像や図形については、その照合元画像データ310を別途生成するようにしてもよい。この場合、合成には、照合元画像データ310を別途生成して対照画像データ300に重ね合わせる場合も、照合元画像データ310に直接図形や文字を描画する場合も含まれる。後者の場合、照合元画像データ310の生成及び合成は同一の処理となる。
In the software
照合部16は、テストデータを参照し、テストデータに文字の画像又は図形であることを示す特定情報が含まれていれば、そのテストデータに含まれる図形の種類、大きさ、中塗り色、枠色の情報を基に図形を生成して照合元画像データ310とし、またそのテストデータに含まれる文字のフォント及び文字飾りの情報及び規定の文字データを基に文字の画像を生成して照合元画像データ310とする。一方、テストデータがラスタ画像の特定情報を含んでいる場合には、上述の通り予め記憶されている照合元画像データ310を照合元記憶部16aから取得すればよい。
The
また、本実施形態のソフトウェア自動テストシステム1において、照合元画像データ310と対照画像データ300との比較は、例えば減算処理によって所定数以上の画像データが残れば不一致と判断する例を説明した。そのほか、比較処理では、2値化及びエッジ抽出により抽出した特徴点の比較や、統計的な処理による一致度の算出や、2次元フーリエ変換後の比較や、ヒストグラムによる比較等の各種の方法やその組み合わせを用いることができる。
In the software
(第2の実施形態)
検査対象装置100は、画面生成プログラムを適宜処理することによって、表示装置110から送信された文字データを予め定められたメモリ上の特定データアドレスに記憶する。また、検査対象装置100は、表示装置110から送信された書込み指示信号をトリガとして予め定められた文字データをメモリ上の特定データアドレスに記憶する。
(Second Embodiment)
The
第1の実施形態に係るソフトウェア自動システム1では、可変画像220と表示フィールド230内の文字の表示テストを画像照合により行う態様を説明したが、テスト画面200内に入力フィールド240と書込みボタン250を配置した場合には、この第1の実施形態に係るソフトウェア自動システム1の画像照合を利用して画面生成プログラムの入力テスト及び書込みボタン押下テストを行うことができる。
In the software
図10は、第2の実施形態に係るソフトウェア自動システム1が生成制御するテスト画面200を示す模式図である。図10に示すように、テスト画面200には、固定画像210、可変画像220、及び表示フィールド230の他、入力フィールド240、及び書込みボタン250のオブジェクトが配置される。
FIG. 10 is a schematic diagram illustrating a
入力フィールド240も文字データが表示される領域である。画面生成プログラムが正しく記述されていれば、表示装置110のキーボードで入力された文字データ又はこれをパラメータとし正しい計算結果が検査対象装置100の予め定められた特定データアドレスに記憶される。
The
書込みボタン250は、押下により所定動作のトリガを与える。所定動作は、例えば計算処理及び計算結果の出力である。画面生成プログラムが正しく述されていれば、書込みボタン250の押下により文字データが表示装置110から検査対象装置100へ出力され、この文字データをパラメータとした検査対象装置100の計算結果が予め定められた特定データアドレスに記憶される。
The
図11は、第2の実施形態に係るソフトウェア自動テストシステム1の詳細構成を示すブロック図である。第1の実施形態に係るソフトウェア自動分析システム1と同一の構成については同一の符号を付して適宜その詳細な説明を省略する。
FIG. 11 is a block diagram showing a detailed configuration of the software
第2の実施形態に係るソフトウェア自動テストシステム1において、設計条件入力部11は、可変画像220及び表示フィールド230の他、入力フィールド240及び書込みボタン250の種類、表示位置、及び表示内容を設計条件情報に記述する。
In the software
入力フィールド240においては、その表示位置、表示文字桁数、フォントの種類、大きさ、文字飾りの指定を示す入力フィールド情報をユーザ操作に応じて生成して対応付ける。
In the
書込みボタン250においては、ボタンを示す画像データの特定、表示位置、大きさ、ボタン内の文字、及び書込みボタン250を押下したときに検査対象装置100に出力されるデータ内容を示す書込みボタン情報をユーザ操作に応じて生成して対応付ける。
In the
また、設計条件入力部11は、画面構成の定義を示す可変画像情報、表示フィールド情報、入力フィールド情報、及び書込みボタン情報を生成すると、これら情報と検査対象装置100のデータアドレスとをリンク付けしたデータリンク情報を生成する。
In addition, when the design
テストデータ生成部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
テストデータ入力部14は、入力テストの場合、規定の文字データを入力フィールド240への入力指示とともに表示装置110へ出力する。また、テストデータ入力部14は、書込みボタン250の押下テスト場合、書込みボタン250の押下を指示する情報を表示装置110に出力する。
In the case of an input test, the test
画像取得部15は、入力テスト及び書込みテストのためにデータ取得部15aと表示制御部15bとを備えている。ここで画面生成プログラムが正しく動作していれば、規定の文字データの入力指示によって、表示装置110から検査対象装置100へ当該文字データが出力され、規定の特定アドレスに格納されている。また、画面生成プログラムが正しく動作していれば、書込みボタン250の押下指示によって、計算結果を含む規定の文字データが特定アドレスに格納されている。
The
そこで、データ取得部15aは、ローダ装置3を含み、検査対象装置100の規定の特定データアドレスから文字データを取得する。表示制御部15bは、テスト画面200を生成させる。詳細には、自動テスト装置2がローダ装置3にテスト画面200を生成させる。このとき、表示制御部15は、データ取得部15aが取得した文字データを自身で生成したテスト画面200に表示する。表示箇所は、入力テスト及び書込みテストのテストデータに含まれる表示位置情報で示される画面領域である。
Therefore, the
画像取得部15は、ローダ装置3のテスト画面200上の当該文字データを含む画面領域をテストデータの表示位置情報を参照して切り出すことで、入力テスト及び書込みボタン押下テスト用の対象画像データ300を取得する。
The
照合元記憶部16aは、表示テスト用の照合元画像データ310のほか、入力テスト及び書き込みボタン押下テスト用の照合元画像データ310を記憶している。この照合元画像データ310は、画像取得部15の対象画像データ300取得の結果、表示生成プログラムが正しく記述されていれば得られる文字の画像である。尚、この照合元画像データ310は、規定の文字データ及びテストデータを参照して生成するようにしてもよい。
The collation
照合部16は、入力テスト及び書込みボタン押下のテストにおいてもこの照合元画像データ310と対象画像データ300とを合成して、得られた合成画像データ320と対象画像データ300とを比較する。
The
このソフトウェア自動テストシステム1の動作のうち、入力テスト及び書込みボタン押下におけるテストデータの入力処理及び画像取得処理の動作を図12を参照して詳細に説明する。設計条件生成処理、テストデータの生成処理、及び照合とその結果表示処理については第1の実施形態と同様につきその詳細な動作説明を省略する。
Of the operations of the software
まず、テストデータ入力部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
また、テストデータ入力部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
テストデータの出力処理後、画像取得部15は、N番目のテストデータに含まれるデータリンク情報に該当する特定データアドレスのデータを検査対象装置100から取得し(S35)、取得した文字データを含んだテスト画面200を生成する(S36)。そして、画像取得部15は、その文字データが表示された一部領域を切り出して対象画像データ300を取得する(S37)。
After the output processing of the test data, the
以上、第2の実施形態に係るソフトウェア自動テストシステム1では、書込みボタン押下の結果データが記憶される検査対象装置100の予め定められた特定データアドレスから結果データを取得し、取得した結果データをローダ装置3のテスト画面200上に表示させ、このローダ装置3のテスト画面200上に表示された結果データを含んだ対象画像データ300を取得し、画像照合を行うようにした。
As described above, in the software
また、第2の実施形態に係るソフトウェア自動テストシステム1では、更にテスト画面200に予め定められた文字データを入力する入力テストにおいて、検査対象装置100の予め定められた特定データアドレスから文字データを取得し、取得した文字データをローダ装置3のテスト画面200上に表示させ、このローダ装置3のテスト画面200上に表示された文字データを含んだ対象画像データ300を取得し、画像照合を行うようにした。
Further, in the software
これにより、表示テスト以外にも入力テスト及び書込みボタン押下テストを第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
第3の実施形態に係るソフトウェア自動テストシステム1では、対象画像データ300が文字の画像の場合、この対象画像データ300を光学的に読み取って文字データ化し、この文字データと予め記憶されている正しい文字データとを比較する。
In the software
このソフトウェア自動テストシステム1は、照合部16において光学読取部16dと文字色取得部16eと文字比較部16fを更に備えている。光学読取部16dは、対象画像データ300内の文字を光学的に読み取ることで照合対象となる対象文字データを取得する。文字色取得部16eは、対象画像データ300内の文字の色(対象文字色)を取得する。文字比較部16fは、対象文字データと照合元記憶部16aに予め記憶されて照合元となる照合元文字データとを比較する。また、文字比較部16fは、対象文字色と照合元となる照合元文字色とを比較する。照合元文字色は、入力フィールド情報や表示フィールド情報のテストデータに文字色の指定情報から取得される。
The software
図14は、この第3の実施形態に係る照合部16の動作を示すフローチャートである。図14に示すように、照合部16は、M番目の切出し画像に対応するテストデータを参照して、テストデータが表示フィールド情報、入力フィールド情報、又は書込みボタン情報を参照したものか否かを判断する(S41)。判断の結果、可変画像220に対応するものであれば(S41,No)、第1の実施形態におけるS14以降の処理を行う。
FIG. 14 is a flowchart showing the operation of the
一方、判断の結果、テストデータが表示フィールド情報、入力フィールド情報、又は書込みボタン情報を参照したものであれば(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
次に、文字色取得部16eは、対象画像データ300を水平方向に1ピクセル単位でスキャンして最初に変化した色データを対象文字色として取得する(S43)。
Next, the character
そして、文字比較部16fは、対象文字データと照合元文字データ、及び対象文字色とテストデータを参照することで得られる照合元文字色とを比較する(S44)。文字比較部16fは、比較の結果、文字データ又は文字色のいずれかが相違していれば(S45,Yes)、不一致を出力する(S46)。一方、双方が一致していれば(S45,No)、一致を出力する(S47)。
Then, the
図15は、この照合部16の照合処理を示す模式図である。図15に示すように、取得した対象画像データ300には、「123」の赤色の文字が灰色を背景として表れているものとする。このとき、光学読取部16dは、この「123」との文字を光学的に読み取って「123」を示す対象文字データを取得し、文字色取得部16eは、水平方向へのスキャンによりスキャン対象のピクセルが灰色から赤色に変化したために赤色の対象文字色を取得する。照合元文字データ及び対象文字色が「123」及び赤色であれば、文字比較部16fの比較結果は一致となり、いずれかが異なっていれば比較結果は不一致となる。
FIG. 15 is a schematic diagram illustrating the matching process of the
このように、第3の実施形態に係るソフトウェア自動テストシステム1では、照合元文字データを予め記憶しておき、対象画像データ300から文字を光学的に読み取って対象文字データを取得し、対象文字データと照合元文字データとを比較することもできる。また、照合元となる照合元色データを更に予め記憶しておき、対象画像データ300をスキャンして文字の対象色データを取得して、対象色データと照合元色データとを更に比較することもできる。これにより、文字を含む対象画像データ300の照合において文字や数値が線情報であるために大量の背景ノイズ成分が存在する場合であっても、照合精度を高めることができる。
As described above, in the software
(第4の実施形態)
図16は、第4の実施形態に係るソフトウェア自動テストシステム1の照合部16の詳細構成を示すブロック図である。第1乃至3の実施形態と同一構成については同一符号を付してその詳細な説明を省略する。
(Fourth embodiment)
FIG. 16 is a block diagram illustrating a detailed configuration of the
第4の実施形態に係るソフトウェア自動テストシステム1では、線で構成された可変画像220の表示テストの場合、対象画像データ300から線上の色データを取得して、この色データと予め記憶されている正しい色データとを比較する。
In the software
このソフトウェア自動テストシステム1は、照合部16において線色取得部16gと線色比較部16hを更に備えている。線色取得部16gは、線の中心一点とその所定範囲を含む(2P+1)^2ピクセル分の色データ(対象線色データ)を取得する(Pは、0以上の整数)。線色比較部16hは、照合元線色データと対象線色データとを比較する。照合元線色データは、可変画像220のテストデータに含まれている表示色の情報である。
The software
図17は、この第4の実施形態に係る照合部16の動作を示すフローチャートである。図17に示すように、照合部16は、M番目の切出し画像に対応するテストデータを参照して、テストデータが図形を示す可変画像情報か否かを判断する(S51)。判断の結果、図形を示す可変画像情報でなければ(S51,No)、第1の実施形態のS14以降の処理を行う。
FIG. 17 is a flowchart showing the operation of the
一方、判断の結果、図形を示す可変画像情報であれば(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
そして、線色比較部16hは、各ピクセルの対象線色データと照合元線色データとを比較する(S53)。線色比較部15fは、比較の結果、いずれかの対象線色データが照合元線色データと一致していれば(S54,Yes)、一致を出力する(S55)。一方、いずれも相違していれば(S54,No)、不一致を出力する(S56)。
Then, the line
図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
以上、第4の実施形態に係るソフトウェア自動テストシステム1では、照合元となる照合元色データを予め記憶しておき、対象画像データ300に含まれる線画像の対象色データを取得し、対象色データとの照合元色データとを比較することもできる。
As described above, in the software
また、第4の実施形態に係るソフトウェア自動テストシステム1では、線画像の中心を含むピクセルとその周囲ピクセルの対象色データをそれぞれ取得し、各対象色データと前記照合元色データとをそれぞれ比較し、いずれかの対象色データが照合元色データと同一であることにより一致を示す比較結果を報知することもできる。
In the software
この実施形態によれば、対象画像データ300に含まれる可変画像220が線情報であるために大量の背景ノイズ成分が存在する場合であっても、照合精度を高めることができる。
According to this embodiment, since the
以上の各実施形態では、ソフトウェア自動テストシステム1は自動テスト装置2とローダ装置3の別体として説明したが、一台のコンピュータに一体として構成されていてもよく、また表示装置110に当該ソフトウェア自動テストシステム1を備えるようにしてもよい。
In each of the above-described embodiments, the software
また、第1及び第2の実施形態では、対象画像データ300と照合元画像データ310を合成してから照合する例を説明したが、対象画像データ300から可変画像220を形状通りに切出すようにしてもよい。この場合、照合部16は、照合元画像データ310を対象画像データ300に合わせてサイズ変更した上で重ね合わせることで、対象画像データ300から可変画像220を更に切り出す。そして、この更に切り出された画像データと照合元画像データ310とを比較すればよい。
In the first and second embodiments, the example in which the
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
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.
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)
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)
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 |
-
2010
- 2010-08-16 JP JP2010181782A patent/JP5540413B2/en active Active
Patent Citations (3)
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)
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 |