JP5591072B2 - Software automatic test apparatus and software automatic test method - Google Patents
Software automatic test apparatus and software automatic test method Download PDFInfo
- Publication number
- JP5591072B2 JP5591072B2 JP2010257787A JP2010257787A JP5591072B2 JP 5591072 B2 JP5591072 B2 JP 5591072B2 JP 2010257787 A JP2010257787 A JP 2010257787A JP 2010257787 A JP2010257787 A JP 2010257787A JP 5591072 B2 JP5591072 B2 JP 5591072B2
- Authority
- JP
- Japan
- Prior art keywords
- image data
- automatic
- screen
- man
- software
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Description
本発明は、マンマシンソフトウェアの試験を実施するソフトウェア自動試験装置及びソフトウェア自動試験方法に関し、特に連続操作による負荷耐久試験に関するものである。 The present invention relates to a software automatic test apparatus and software automatic test method for testing man-machine software, and more particularly to a load endurance test by continuous operation.
従来、マンマシンソフトウェアの自動試験方法として、該マンマシンソフトウェアの操作画面におけるオペレータの操作手順を自動操作により再現し、入力された操作とその時の操作画面の画像データをそれぞれ別のファイルに順次保存し、保存された操作内容と操作画面を対応させて確認することにより試験結果を判定していた。 Conventionally, as an automatic test method for man-machine software, the operator's operation procedure on the operation screen of the man-machine software is reproduced by automatic operation, and the input operation and the image data of the operation screen at that time are sequentially saved in separate files. However, the test result was determined by checking the stored operation contents in correspondence with the operation screen.
さらに、試験結果を効率よく確認するために、特許文献1では、マンマシンソフトウェアを自動操作する手段と、自動操作とこれに対応する画面ログ出力を任意のタイミングで自動記録する手段を備え、自動操作とこれに対応する画面ログ出力を一対一に対応させてリスト化して記録するようにしたソフトウェア自動試験装置が提示されている。
Furthermore, in order to efficiently check the test results,
上記のような従来のソフトウェア自動試験装置においては、自動試験の実施中にシステムの負荷状況等により画面更新が遅れると、自動操作による入力が操作画面とずれてタイミングが合わなくなり、入力に失敗することがあった。また、試験時間を短縮するために自動操作の再生速度を高速化した場合も同様に、画面更新の遅れにより自動操作の入力に失敗することがあり、いずれの場合も以後の試験が正常に継続されないという問題があった。一方、画面更新の遅れを考慮し、自動操作の再生速度を低速化して試験を実施した場合、試験時間が長くなり効率が悪いという問題があった。 In the conventional software automatic test equipment as described above, if the screen update is delayed due to the load status of the system during the execution of the automatic test, the input by the automatic operation is shifted from the operation screen, the timing is not matched, and the input fails. There was a thing. Similarly, when the playback speed of automatic operation is increased in order to shorten the test time, input of automatic operation may fail due to a delay in screen update. In either case, subsequent tests continue normally. There was a problem of not being. On the other hand, when the test is performed with the slowdown of the reproduction speed of the automatic operation in consideration of the delay of the screen update, there is a problem that the test time becomes long and the efficiency is poor.
本発明は、上記のような課題を解決するためになされたものであり、マンマシンソフトウェアの操作画面におけるオペレータの操作手順を再現する自動試験を最後まで確実に実施すると共に、試験時間を短縮することが可能なソフトウェア自動試験装置及びソフトウェア自動試験方法を提供することを目的とする。 The present invention has been made to solve the above-described problems, and performs an automatic test that reproduces the operation procedure of the operator on the operation screen of the man-machine software to the end, and shortens the test time. An object of the present invention is to provide a software automatic test apparatus and a software automatic test method.
本発明に係るソフトウェア自動試験装置は、試験対象のマンマシンソフトウェアを起動させる計算機と、該マンマシンソフトウェアの操作画面を表示する表示手段と、該操作画面に対してオペレータが操作入力するための入力手段を備えたソフトウェア自動試験装置であって、計算機は、該マンマシンソフトウェアの操作画面におけるオペレータの操作手順が記録された操作手順データ保存部と、操作手順データ保存部に記録された操作手順に基づいて、任意の再生速度及び繰り返し回数で該マンマシンソフトウェアを自動操作する自動操作手段と、自動操作手段による自動操作の再生速度を調整する再生速度調整手段と、表示手段に表示された該マンマシンソフトウェアの操作画面の画面イメージを画像データとして所定のタイミングで取得する画像データ取得手段と、画像データ取得手段により取得された画像データを保存する画像データ保存部と、画像データ取得手段により取得された最新の画像データを、前回のタイミングで取得された画像データと比較し、該マンマシンソフトウェアの操作画面の更新の有無を判定する画像データ比較手段を有し、画像データ比較手段は、画像データ取得手段により取得された最新の画像データが、前回のタイミングで取得された画像データと異なる場合、該最新の画像データを画像データ保存部に保存すると共に、画像データ取得手段により取得された最新の画像データが、前回のタイミングで取得された画像データと同一である場合、該最新の画像データを破棄し画面非更新カウントを1プラスし、この画面非更新カウントが予め設定された数値より大きくなった場合、自動操作手段による自動操作を強制終了し、再生速度調整手段により自動操作の再生速度を調整した後、該マンマシンソフトウェアを再起動するとともに、自動操作手段による自動操作を開始させるものである。 A software automatic test apparatus according to the present invention includes a computer for starting man-machine software to be tested, display means for displaying an operation screen of the man-machine software, and an input for an operator to input the operation screen. An automatic software testing apparatus comprising means for calculating an operation procedure data storage unit in which an operation procedure of an operator on an operation screen of the man-machine software is recorded, and an operation procedure recorded in the operation procedure data storage unit. Based on an automatic operation means for automatically operating the man-machine software at an arbitrary reproduction speed and number of repetitions, a reproduction speed adjustment means for adjusting a reproduction speed of automatic operation by the automatic operation means, and the man displayed on the display means. The screen image of the machine software operation screen is captured as image data at a predetermined timing. Image data acquisition means, an image data storage unit for storing the image data acquired by the image data acquisition means, and the latest image data acquired by the image data acquisition means, the image data acquired at the previous timing, comparison, have a image data comparing means determines the presence or absence of updating of the man-machine software operation screen, the image data comparison means, the latest image data obtained by the image data acquisition means, acquires the previous timing If the image data is different from the acquired image data, the latest image data is stored in the image data storage unit, and the latest image data acquired by the image data acquisition unit is the same as the image data acquired at the previous timing. The latest image data is discarded, the screen non-update count is incremented by 1, and this screen non-update count is set in advance. If the value exceeds the specified value, the automatic operation by the automatic operation means is forcibly terminated, the reproduction speed of the automatic operation is adjusted by the reproduction speed adjustment means, the man-machine software is restarted, and the automatic operation means automatically Starts the operation .
また、本発明に係るソフトウェア自動試験方法は、試験対象のマンマシンソフトウェアを起動すると共に、該マンマシンソフトウェアの操作画面におけるオペレータの操作手順に基づいて任意の再生速度及び繰り返し回数で該マンマシンソフトウェアを自動操作する第1のステップと、第1のステップと並行して、表示手段に表示された該マンマシンソフトウェアの操作画面の画面イメージを画像データとして所定のタイミングで取得し保存する第2のステップと、第2のステップにおいて取得された最新の画像データを、前回のタイミングで取得された画像データと比較し、該マンマシンソフトウェアの操作画面の更新の有無を判定する第3のステップと、第3のステップにおいて該マンマシンソフトウェアの操作画面の更新が所定期間無いと判定された場合、該マンマシンソフトウェアの自動操作を強制終了し、自動操作の再生速度を調整する第4のステップを含み、第1のステップ乃至第4のステップを繰り返し行い、第1のステップにおける自動操作が任意の繰り返し回数完了した時点で試験終了とするものである。 In addition, the software automatic test method according to the present invention activates the man-machine software to be tested, and the man-machine software at an arbitrary reproduction speed and number of repetitions based on the operation procedure of the operator on the operation screen of the man-machine software. The first step of automatically operating the second and the second step of acquiring and storing the screen image of the operation screen of the man-machine software displayed on the display means at a predetermined timing in parallel with the first step A third step of comparing the latest image data acquired in the step and the second step with the image data acquired at the previous timing and determining whether or not the operation screen of the man-machine software is updated; In the third step, the operation screen of the man-machine software is not updated for a predetermined period. If it is determined that, the automatic operation of the man-machine software is forcibly terminated, and the first step to the fourth step are repeated, including a fourth step of adjusting the reproduction speed of the automatic operation. The test is terminated when the automatic operation in is completed any number of repetitions.
本発明に係るソフトウェア自動試験装置によれば、マンマシンソフトウェアを自動操作する自動操作手段と、該マンマシンソフトウェアの操作画面の画面イメージを画像データとして所定のタイミングで取得する画像データ取得手段と、画像データ取得手段により取得された最新の画像データを前回のタイミングで取得された画像データと比較し、該マンマシンソフトウェアの操作画面の更新の有無を判定する画像データ比較手段を備えることにより、自動操作の入力失敗により自動操作が正常に継続されていないことを早期に検出し、自動試験を最後まで確実に実施することができると共に、試験時間を短縮することが可能である。 According to the software automatic test apparatus according to the present invention, automatic operation means for automatically operating man-machine software, image data acquisition means for acquiring a screen image of the operation screen of the man-machine software as image data at a predetermined timing, By providing image data comparison means that compares the latest image data acquired by the image data acquisition means with image data acquired at the previous timing and determines whether or not the operation screen of the man-machine software is updated, automatic It is possible to detect at an early stage that the automatic operation is not continued normally due to the input failure of the operation, and it is possible to reliably carry out the automatic test to the end and shorten the test time.
また、本発明に係るソフトウェア自動試験方法によれば、マンマシンソフトウェアを自動操作すると共に、該マンマシンソフトウェアの操作画面の画面イメージを画像データとして所定のタイミングで取得して操作画面の更新の有無を判定し、操作画面の更新が所定期間無いと判定された場合には該マンマシンソフトウェアの自動操作を強制終了し、自動操作の再生速度を調整して自動操作を開始するようにしたので、自動操作の入力失敗により自動操作が正常に継続されていないことを早期に検出し、自動試験を最後まで確実に実施することができると共に、試験時間を短縮することが可能である。 In addition, according to the software automatic test method of the present invention, the man-machine software is automatically operated, and the screen image of the operation screen of the man-machine software is acquired as image data at a predetermined timing to determine whether the operation screen is updated. If it is determined that there is no update of the operation screen for a predetermined period, the automatic operation of the man-machine software is forcibly terminated, and the automatic operation is started by adjusting the reproduction speed of the automatic operation. It is possible to detect early that the automatic operation is not continued normally due to the input failure of the automatic operation, and it is possible to carry out the automatic test surely to the end, and to shorten the test time.
実施の形態1.
以下に、本発明の実施の形態1に係るソフトウェア自動試験装置について、図面に基づいて説明する。図1は、本実施の形態1に係るソフトウェア自動試験装置の構成を示している。図1に示すように、ソフトウェア自動試験装置の計算機1は、処理装置2と、この処理装置2により起動されるアプリケーションプログラム3と自動操作プログラム4及びスクリーンキャプチャプログラム5、さらに記憶領域として操作手順データ保存部6と
スクリーンキャプチャデータ保存部7を有している。また、計算機1には、アプリケーションプログラム3の操作画面を表示する表示手段である表示装置8と、該操作画面に対してオペレータが操作入力するための入力手段であるキーボード9及びポインティングマウス10が接続されている。
Hereinafter, an automatic software testing apparatus according to
試験対象であるアプリケーションプログラム3は、マンマシンソフトウェアであり、実際の運用時とほぼ同じ状態で計算機1により起動される。アプリケーションプログラム3の操作画面におけるオペレータの操作手順は、操作手順データ保存部6に予め記録されている。自動操作手段である自動操作プログラム4は、操作手順データ保存部6に記録された操作手順に基づいて、任意の再生速度及び繰り返し回数でアプリケーションプログラム3を自動操作する(自動操作プログラム4の動作については、図4のフローチャートを用いて詳細に説明する)。
The application program 3 to be tested is man-machine software, and is activated by the
また、画像データ取得手段と画像データ比較手段を備えたスクリーンキャプチャプログラム5は、表示装置8に表示されたアプリケーションプログラム3の操作画面の画面イメージを画像データとして所定のタイミングで取得する。取得された画像データ(以下、スクリーンキャプチャと称す)は、画像データ保存部であるスクリーンキャプチャデータ保存部7に保存される。
The screen capture program 5 including the image data acquisition unit and the image data comparison unit acquires a screen image of the operation screen of the application program 3 displayed on the
また、スクリーンキャプチャプログラム5は、取得された最新のスクリーンキャプチャを、前回のタイミングで取得されたスクリーンキャプチャと比較し、アプリケーションプログラム3の操作画面の更新の有無を判定する。さらに、スクリーンキャプチャプログラム5は、自動操作プログラム4による自動操作の再生速度を調整する再生速度調整手段を備えている(スクリーンキャプチャプログラム5の動作については、図5のフローチャートを用いて詳細に説明する)。 Further, the screen capture program 5 compares the acquired latest screen capture with the screen capture acquired at the previous timing, and determines whether or not the operation screen of the application program 3 has been updated. Furthermore, the screen capture program 5 includes a playback speed adjusting means for adjusting the playback speed of the automatic operation by the automatic operation program 4 (the operation of the screen capture program 5 will be described in detail with reference to the flowchart of FIG. 5). ).
アプリケーションプログラム3を実際に運用する際には、オペレータにより計算機1が起動され、処理装置2がアプリケーションプログラム3を読み出し、処理を開始する。この処理結果として、表示装置8に例えば図2及び図3に示すような操作画面が表示される。オペレータは、表示装置8に表示された操作画面の内容に従い、キーボード9またはポインティングマウス10により操作入力する。
When the application program 3 is actually operated, the
図2に示す例では、初期画面11において、操作開始ボタン12をタッチ(クリック)することにより操作画面が更新され、指示した処理が実行される。また、図3に示す例では、操作方式選択画面13において、設備Aの制御1ボタン14を選択し、確認ボタン15をタッチすることにより操作画面が更新され、指示した処理が実行される。このように、マンマシンソフトウェアにおいては、オペレータの操作入力により操作画面を更新しながら処理が実行されていく。
In the example shown in FIG. 2, the operation screen is updated by touching (clicking) the
このため、オペレータの操作手順を自動操作により再現するソフトウェア自動試験装置においては、自動操作の再生速度を高速にした場合、システムの負荷状況により操作画面の更新が遅れ、自動操作入力が操作画面とずれてタイミングが合わなくなり、入力に失敗することがある。これについて、図2の初期画面11において操作開始ボタン12を押下後、図3の操作方法選択画面13の制御1ボタン14を押下し、さらに確認ボタン15を押下する操作を例に挙げて説明する。
For this reason, in software automatic test equipment that reproduces the operator's operation procedure by automatic operation, when the reproduction speed of automatic operation is increased, the update of the operation screen is delayed due to the system load condition, and the automatic operation input is The timing may not match and the input may fail. This will be described by taking as an example an operation of pressing the
自動操作プログラム4による自動操作入力において、図2の初期画面11から図3の操作方法選択画面13へ操作画面が更新する前に、制御1ボタン14の押下操作や確認ボタン15の押下操作が入力された場合、この操作は正常に入力されず、意図した画面更新が行われない。このため、以降の入力は操作画面と対応が取れておらず失敗となる。本実施の形態1に係るソフトウェア自動試験装置は、上記のような自動操作の入力失敗を早期に検出することにより、自動試験を最後まで確実に実施し、且つ試験時間を短縮するものである。
In the automatic operation input by the
以下に、本実施の形態1に係るソフトウェア自動試験装置を用いた試験方法について説明する。まず、第1のステップとして、アプリケーションプログラム3を起動すると共に、自動操作プログラム4は、アプリケーションプログラム3の操作画面におけるオペレータの操作手順を操作手順データ保存部6から読み出し、これに基づいて任意の再生速度及び繰り返し回数でアプリケーションプログラム3を自動操作する。
Hereinafter, a test method using the software automatic test apparatus according to the first embodiment will be described. First, as the first step, the application program 3 is started, and the
この第1のステップと並行して、第2のステップでは、表示装置8に表示されたアプリケーションプログラム3の操作画面の画面イメージを、スクリーンキャプチャとして所定のタイミングで取得し、スクリーンキャプチャデータ保存部7に保存する。続いて、第3のステップでは、第2のステップにおいて取得された最新のスクリーンキャプチャを、前回のタイミングで取得されたスクリーンキャプチャと比較し、アプリケーションプログラム3の操作画面の更新の有無を判定する。
In parallel with the first step, in the second step, the screen image of the operation screen of the application program 3 displayed on the
さらに、第4のステップでは、第3のステップにおいてアプリケーションプログラム3の操作画面の更新が所定期間無いと判定された場合、アプリケーションプログラム3の自動操作を強制終了し、自動操作の再生速度を調整する。以上の第1のステップ乃至第4のステップを繰り返し行い、第1のステップにおける自動操作が任意の繰り返し回数完了した時点で試験終了とする。 Further, in the fourth step, when it is determined in the third step that the operation screen of the application program 3 is not updated for a predetermined period, the automatic operation of the application program 3 is forcibly terminated and the reproduction speed of the automatic operation is adjusted. . The above first to fourth steps are repeated, and the test is terminated when the automatic operation in the first step is completed any number of times.
第4のステップにおける自動操作の再生速度調整について説明する。自動操作プログラム4は、予め設定された任意の再生速度で自動操作を開始するが、その再生速度が低速であるほど自動操作を完了するまでに長い時間を要する。このため、試験時間を短縮するためには、自動操作の再生速度はより高速であることが望ましい。
The automatic operation reproduction speed adjustment in the fourth step will be described. The
そこで、第1のステップにおける初回の自動操作の再生速度を、実施可能な範囲内の最高速度に設定する。また、第4のステップにおいて自動操作の再生速度を調整する際には、前回の自動操作の再生速度よりも若干低下させる。このように、自動操作の再生速度を段階的に低減することにより、自動試験を完了することが可能な範囲内の最高速度で自動試験を実施することができる。 Therefore, the reproduction speed of the first automatic operation in the first step is set to the highest speed within the feasible range. Further, when adjusting the reproduction speed of the automatic operation in the fourth step, the reproduction speed is slightly lower than the reproduction speed of the previous automatic operation. As described above, by reducing the reproduction speed of the automatic operation step by step, the automatic test can be performed at the maximum speed within a range where the automatic test can be completed.
次に、自動操作プログラム4の動作について、図4のフローチャートを用いて説明する。なお、計算機1は起動後、表示装置8にアプリケーションプログラム3の初期画面を表示するものとし、この状態から自動操作プログラム4の起動を行なう。自動操作プログラム4は起動後、ステップ1(S1)において、設定値(動作パラメータ)として初回の再生速度を、続いてステップ2(S2)において繰り返し回数をファイルから読込む。
Next, the operation of the
なお、S1、S2で読込まれた動作パラメータは、オペレータにより入力手段を介して(例えばキーボード9により)設定され、所定のファイルに保存されたものである。所定のファイルとは、自動操作プログラム4が読込むべきファイルとして予め決められたファイル名の保存フォルダである。
The operation parameters read in S1 and S2 are set by the operator via the input means (for example, with the keyboard 9) and saved in a predetermined file. The predetermined file is a storage folder having a file name determined in advance as a file to be read by the
次に、ステップ3(S3)において、自動操作プログラム4は、操作手順データ保存部6から操作手順データを読込む。操作手順データには、時系列に行なうべき操作内容が記録されている。続いてステップ4(S4)において、自動操作タイマで再生速度を設定し、ステップ5(S5)において自動操作タイマが満了した場合(Yes)、ステップ6(S6)に進み、操作手順データに基づいて模擬的な操作入力、すなわち自動操作入力を実行する。またS5において自動操作タイマが満了していない場合(No)には、満了するまで入力を待つ。
Next, in step 3 (S3), the
S6の後、ステップ7(S7)において、操作手順データを全て入力済みでない場合(No)、S4に戻り、自動操作タイマで設定した再生速度で操作手順データの自動操作入力を続ける。一方、S7において、操作手順データを全て入力済みの場合(Yes)には、ステップ8(S8)に進み、S2で読込んだ繰り返し回数を全て完了したかを確認し、全て完了した場合(Yes)、自動操作プログラムは終了する。S8において繰り返し回数を全て完了していない場合(No)にはS4に戻る。 After S6, if all the operation procedure data has not been input in Step 7 (S7) (No), the procedure returns to S4 and the automatic operation input of the operation procedure data is continued at the reproduction speed set by the automatic operation timer. On the other hand, if all the operation procedure data has been input in S7 (Yes), the process proceeds to Step 8 (S8), where it is confirmed whether all the repetition counts read in S2 have been completed. ), The automatic operation program ends. If all the repetition counts are not completed in S8 (No), the process returns to S4.
次に、スクリーンキャプチャプログラム5の動作について、図5のフローチャートを用いて説明する。スクリーンキャプチャプログラム5は、起動後、ステップ11(S11)においてキャプチャタイマの時間設定を行なう。キャプチャタイマは、表示装置8の操作画面をスクリーンキャプチャとして取得及び保存するタイミングを制御するタイマである。S11においては、キャプチャタイマの時間設定を行い(例えば5秒)、キャプチャタイマを起動する。
Next, the operation of the screen capture program 5 will be described using the flowchart of FIG. After being started, the screen capture program 5 sets the capture timer time in step 11 (S11). The capture timer is a timer that controls the timing for acquiring and storing the operation screen of the
続いて、ステップ12(S12)において、キャプチャタイマが満了した場合(Yes)、ステップ13(S13)に進み、表示装置8に表示されている操作画面のスクリーンキャプチャを取得する。次に、ステップ14(S14)において、今回取得した最新のスクリーンキャプチャと、前回のタイミングで取得したスクリーンキャプチャの比較を行う。
Subsequently, when the capture timer expires in step 12 (S12) (Yes), the process proceeds to step 13 (S13), and a screen capture of the operation screen displayed on the
S14において、今回取得した最新のスクリーンキャプチャと、前回のタイミングで取得したスクリーンキャプチャが同一である場合、ステップ15(S15)に進み、最新のスクリーンキャプチャを破棄し、画面非更新カウントを1プラスする。さらに、ステップ16(S16)において、画面非更新カウントが予め設定された数値(ここでは5)よりも大きくなった場合、自動操作プログラム4による自動操作が正常に継続されていない(操作入力に失敗している)と判断し、ステップ17(S17)においてリソース情報を取得、保存する。なお、リソース情報とは、CPU使用率、メモリ使用量等を含む情報である。
In S14, when the latest screen capture acquired this time and the screen capture acquired at the previous timing are the same, the process proceeds to step 15 (S15), the latest screen capture is discarded, and the screen non-update count is incremented by 1. . Furthermore, in step 16 (S16), when the screen non-update count becomes larger than a preset numerical value (here, 5), automatic operation by the
続いて、ステップ18(S18)において、自動操作プログラム4を強制終了する。さらに、ステップ19(S19)で、再生速度調整手段により自動操作プログラム4の再生速度を前回よりも低下させた後、ステップ20(S20)で被テストプログラム(アプリケーションプログラム3)と自動操作プログラム4を再起動する。これにより、前回よりも再生速度を低下させた自動操作が新たに開始される。
Subsequently, in step 18 (S18), the
一方、S14において、今回取得した最新のスクリーンキャプチャと前回のタイミングで取得したスクリーンキャプチャが同一でない場合には、ステップ21(S21)に進み、最新のスクリーンキャプチャをスクリーンキャプチャデータ保存部7に保存する。なお、S21では、画面非更新カウントはカウントされない。さらに、ステップ22(S22)に進み、キャプチャタイマを起動し、S12、S13・・の処理を繰り返す。また、S16において、画面非更新カウントが予め設定された数値(ここでは5)以下であった場合もS22に進み、キャプチャタイマを起動し、S12、S13・・の処理を繰り返す。
On the other hand, if the latest screen capture acquired this time and the screen capture acquired at the previous timing are not the same in S14, the process proceeds to step 21 (S21), and the latest screen capture is stored in the screen capture
本実施の形態1に係るソフトウェア自動試験装置及び試験方法によれば、自動操作プログラム4によりアプリケーションプログラム3を自動操作しながら、これと並行して該アプリケーションプログラム3の操作画面の更新の有無をスクリーンキャプチャプログラム5により監視するようにしたので、自動操作の入力に失敗し、自動操作が正常に継続されていないことを早期に検出することが可能である。これにより、自動試験を最後まで確実に実施することができ、試験時間を短縮することが可能である。
According to the software automatic test apparatus and the test method according to the first embodiment, the application program 3 is automatically operated by the
また、初回の自動操作の再生速度を実施可能な最高速度に設定し、自動操作の入力失敗を検出した後は、自動操作の再生速度を前回の再生速度よりも若干低下させるように調整することにより、自動試験を完了することが可能な範囲内の最高速度、すなわち連続負荷試験として最適な条件で試験を実施することができる。 In addition, the playback speed of the first automatic operation should be set to the highest possible speed, and after automatic input failure is detected, the automatic operation playback speed should be adjusted slightly lower than the previous playback speed. Therefore, the test can be performed under the optimum condition as the maximum speed within a range where the automatic test can be completed, that is, as a continuous load test.
また、スクリーンキャプチャプログラム5は、自動操作プログラム4に対して、自動操作の入力失敗を検出した時に強制終了・再起動のI/Fを持つ以外には、処理タイミングを合わせる必要が無く、それぞれ独立して動作している。このため、例えばスクリーンキャプチャプログラム5におけるスクリーンキャプチャの比較処理に時間を要したとしても、自動操作の高速化を妨げることはない。
The screen capture program 5 is independent of the
さらに、自動操作プログラム4及びスクリーンキャプチャプログラム5は、アプリケーションプログラム3との間に通信やデータ共有を行う必要がないため、アプリケーションプログラム3を試験用に改造する必要がなく、実際の運用に近い状態で信頼性の高い自動試験を実施することができる。
Further, since the
本発明は、マンマシンソフトウェアの試験を実施するソフトウェア自動試験装置として利用することができる。 The present invention can be used as a software automatic test apparatus for performing a man-machine software test.
1 計算機、2 処理装置、3 アプリケーションプログラム、4 自動操作プログラム、5 スクリーンキャプチャプログラム、6 操作手順データ保存部、7 スクリーンキャプチャデータ保存部、8 表示装置、9 キーボード、10 ポインティングマウス、11 初期画面、12 操作開始ボタン、13 操作方式選択画面、14 制御1ボタン、15 確認ボタン。
1 computer, 2 processing device, 3 application program, 4 automatic operation program, 5 screen capture program, 6 operation procedure data storage unit, 7 screen capture data storage unit, 8 display device, 9 keyboard, 10 pointing mouse, 11 initial screen, 12 operation start button, 13 operation method selection screen, 14
Claims (7)
前記計算機は、
該マンマシンソフトウェアの操作画面におけるオペレータの操作手順が記録された操作手順データ保存部と、
前記操作手順データ保存部に記録された操作手順に基づいて、任意の再生速度及び繰り返し回数で該マンマシンソフトウェアを自動操作する自動操作手段と、
前記自動操作手段による自動操作の再生速度を調整する再生速度調整手段と、
前記表示手段に表示された該マンマシンソフトウェアの操作画面の画面イメージを画像データとして所定のタイミングで取得する画像データ取得手段と、
前記画像データ取得手段により取得された画像データを保存する画像データ保存部と、
前記画像データ取得手段により取得された最新の画像データを、前回のタイミングで取得された画像データと比較し、該マンマシンソフトウェアの操作画面の更新の有無を判定する画像データ比較手段を有し、
前記画像データ比較手段は、前記画像データ取得手段により取得された最新の画像データが、前回のタイミングで取得された画像データと異なる場合、該最新の画像データを前記画像データ保存部に保存すると共に、前記画像データ取得手段により取得された最新の画像データが、前回のタイミングで取得された画像データと同一である場合、該最新の画像データを破棄し画面非更新カウントを1プラスし、この画面非更新カウントが予め設定された数値より大きくなった場合、前記自動操作手段による自動操作を強制終了し、前記再生速度調整手段により自動操作の再生速度を調整した後、該マンマシンソフトウェアを再起動するとともに、前記自動操作手段による自動操作を開始させることを特徴とするソフトウェア自動試験装置。 An automatic software testing apparatus comprising a computer for starting a man-machine software to be tested, a display means for displaying an operation screen of the man-machine software, and an input means for an operator to input an operation on the operation screen. And
The calculator is
An operation procedure data storage unit in which an operator's operation procedure is recorded on the man-machine software operation screen;
Based on the operation procedure recorded in the operation procedure data storage unit, automatic operation means for automatically operating the man-machine software at an arbitrary reproduction speed and number of repetitions;
A reproduction speed adjusting means for adjusting a reproduction speed of automatic operation by the automatic operation means;
Image data acquisition means for acquiring a screen image of the operation screen of the man-machine software displayed on the display means as image data at a predetermined timing;
An image data storage unit for storing the image data acquired by the image data acquisition unit;
The latest image data obtained by the image data acquisition unit, as compared to the image data acquired in the previous timing, have a image data comparing means determines the presence or absence of updating of the man-machine software operation screen,
The image data comparison unit stores the latest image data in the image data storage unit when the latest image data acquired by the image data acquisition unit is different from the image data acquired at the previous timing. If the latest image data acquired by the image data acquisition means is the same as the image data acquired at the previous timing, the latest image data is discarded and the screen non-update count is incremented by one. When the non-update count becomes larger than a preset value, the automatic operation by the automatic operation means is forcibly terminated, the reproduction speed of the automatic operation is adjusted by the reproduction speed adjustment means, and the man-machine software is restarted. And an automatic software testing apparatus , wherein automatic operation by the automatic operation means is started .
前記第1のステップと並行して、表示手段に表示された該マンマシンソフトウェアの操作画面の画面イメージを画像データとして所定のタイミングで取得し保存する第2のステップ、
前記第2のステップにおいて取得された最新の画像データを、前回のタイミングで取得された画像データと比較し、該マンマシンソフトウェアの操作画面の更新の有無を判定する第3のステップ、
前記第3のステップにおいて該マンマシンソフトウェアの操作画面の更新が所定期間無いと判定された場合、該マンマシンソフトウェアの自動操作を強制終了し、自動操作の再生速度を調整する第4のステップを含み、
前記第1のステップ乃至前記第4のステップを繰り返し行い、第1のステップにおける自動操作が任意の繰り返し回数完了した時点で試験終了とすることを特徴とするソフトウェア自動試験方法。 A first step of starting the man-machine software to be tested and automatically operating the man-machine software at an arbitrary reproduction speed and number of repetitions based on an operation procedure of an operator on the operation screen of the man-machine software;
In parallel with the first step, a second step of acquiring and storing a screen image of the operation screen of the man-machine software displayed on the display means as image data at a predetermined timing;
A third step of comparing the latest image data acquired in the second step with the image data acquired at the previous timing and determining whether or not the operation screen of the man-machine software is updated;
If it is determined in the third step that the man-machine software operation screen has not been updated for a predetermined period, a fourth step of forcibly terminating the automatic operation of the man-machine software and adjusting the playback speed of the automatic operation is performed. Including
An automatic software testing method characterized in that the first step to the fourth step are repeated, and the test is terminated when the automatic operation in the first step is completed an arbitrary number of repetitions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010257787A JP5591072B2 (en) | 2010-11-18 | 2010-11-18 | Software automatic test apparatus and software automatic test method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010257787A JP5591072B2 (en) | 2010-11-18 | 2010-11-18 | Software automatic test apparatus and software automatic test method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012108773A JP2012108773A (en) | 2012-06-07 |
JP5591072B2 true JP5591072B2 (en) | 2014-09-17 |
Family
ID=46494318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010257787A Expired - Fee Related JP5591072B2 (en) | 2010-11-18 | 2010-11-18 | Software automatic test apparatus and software automatic test method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5591072B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6362532B2 (en) * | 2014-12-17 | 2018-07-25 | 三菱電機株式会社 | Plant monitoring device |
JP5998238B1 (en) * | 2015-03-31 | 2016-09-28 | エヌ・ティ・ティ・コムウェア株式会社 | Software test apparatus, software test method, and software test program |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0546435A (en) * | 1991-08-19 | 1993-02-26 | Matsushita Electric Ind Co Ltd | Method and device for automatic test |
JP2570592B2 (en) * | 1993-09-17 | 1997-01-08 | 日本電気株式会社 | Interactive multi-window program automatic test equipment |
CN101896888A (en) * | 2008-02-26 | 2010-11-24 | 三菱电机株式会社 | Automatic reproduction testing equipment in built-in system and method of testing automatic reproduction |
-
2010
- 2010-11-18 JP JP2010257787A patent/JP5591072B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2012108773A (en) | 2012-06-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111104315A (en) | Test script generation method and device and computer readable storage medium | |
CN105302722B (en) | CTS automatic testing method and device | |
CN104123219A (en) | Method and device for testing software | |
WO2009107174A1 (en) | Automatic reproduction testing equipment in built-in system and method of testing automatic reproduction | |
EP2842038A1 (en) | Software defect verification | |
WO2017206476A1 (en) | Method, device and apparatus for detecting cpu occupation | |
JP2006268666A (en) | Automatic test system with correction function, automatic test method, and program | |
JP5591072B2 (en) | Software automatic test apparatus and software automatic test method | |
KR20150025106A (en) | Verification apparatus, terminal device, system, method and computer-readable medium for monitoring of application verification result | |
US6944795B2 (en) | Method and apparatus for stabilizing GUI testing | |
JP6245429B2 (en) | Program development support apparatus and computer program | |
CN111338759A (en) | Virtual disk check code generation method, device, equipment and storage medium | |
JP2010256997A (en) | Error reproduction system and error reproduction investigation method for field trouble, and scenario execution program | |
US8099626B2 (en) | Recovery method management device, recovery method management method and computer product for recovering a failure of IT system | |
KR102194974B1 (en) | System for monitoring and controling electric power system for process verification | |
US9819569B2 (en) | Transport script generation based on a user interface script | |
JP2009223743A (en) | Fault analysis support system and fault analysis support method | |
KR101252358B1 (en) | Apparatus and method for testing plc command | |
US20140245159A1 (en) | Transport script generation based on a user interface script | |
JP2010231594A (en) | Test program and testing device | |
CN111061621B (en) | Method, device and equipment for verifying program performance and storage medium | |
CN112083990A (en) | Method, device, equipment and storage medium for intelligently configuring monitoring home page | |
JP2010217075A (en) | Material testing machine | |
CN114860611B (en) | BIOS upgrading test method, device and medium | |
JP6907624B2 (en) | Reproduction device, reproduction method and reproduction program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20130409 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20140220 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140304 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140401 |
|
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: 20140701 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20140729 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 5591072 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |