JP7392821B2 - Automatic testing method and device for control software and computer program - Google Patents
Automatic testing method and device for control software and computer program Download PDFInfo
- Publication number
- JP7392821B2 JP7392821B2 JP2022208766A JP2022208766A JP7392821B2 JP 7392821 B2 JP7392821 B2 JP 7392821B2 JP 2022208766 A JP2022208766 A JP 2022208766A JP 2022208766 A JP2022208766 A JP 2022208766A JP 7392821 B2 JP7392821 B2 JP 7392821B2
- Authority
- JP
- Japan
- Prior art keywords
- test
- control software
- screen
- scenario
- designer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims description 143
- 238000004590 computer program Methods 0.000 title claims description 6
- 238000000034 method Methods 0.000 claims description 44
- 238000013461 design Methods 0.000 claims description 31
- 238000010998 test method Methods 0.000 claims description 9
- 238000013102 re-test Methods 0.000 claims 2
- 238000007689 inspection Methods 0.000 description 23
- 238000010586 diagram Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 6
- 238000012790 confirmation Methods 0.000 description 6
- 239000003086 colorant Substances 0.000 description 5
- 238000012544 monitoring process Methods 0.000 description 4
- 239000000470 constituent Substances 0.000 description 2
- 230000001172 regenerating effect Effects 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 238000004056 waste incineration Methods 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 241000282412 Homo Species 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
- Programmable Controllers (AREA)
Description
本発明は、制御用ソフトウェアの自動テスト方法及び装置ならびにコンピュータプログラムに係り、特に、ごみ焼却炉等のプラントの中央監視制御装置における画面入出力検査に用いるのに好適な、制御用ソフトウェアの自動テスト方法及び装置ならびにコンピュータプログラムに関する。 The present invention relates to an automatic test method and apparatus for control software, and a computer program, and in particular, an automatic test for control software suitable for use in screen input/output inspection in a central monitoring and control device of a plant such as a waste incinerator. METHODS AND APPARATUS AND COMPUTER PROGRAMS.
ごみ焼却炉等のプラントにおいては、その中央監視制御装置等の制御用ソフトウェアを、現地に納入する前の工場出荷時に実機試験環境で検査する必要がある。 In plants such as waste incinerators, the control software for the central monitoring and control equipment must be tested in an actual test environment before being shipped from the factory before being delivered to the site.
工場出荷時は、現地機器(センサや制御盤、操作端)や、それらの機器との配線が存在しないため、コントローラ、例えばプログラマブル・ロジック・コントローラ(PLC)の入出力を模擬して検査する。 When shipped from the factory, there are no local devices (sensors, control panels, operation terminals) or wiring to these devices, so the input and output of a controller, such as a programmable logic controller (PLC), is simulated and inspected.
従来、画面入出力(I/O)検査は、チェックする対象の位置を画面内で特定することの自動化が難しく、人間の判断での特定・良否判定を実施していた。画面I/O検査は製品出荷検査であり、品質担保のため、抜き取り(部分)検査が許されず全数確認となる。そこで従来は、図1に例示する如く、入力作業員2が試験用I/Oリスト4を作成入力し、確認作業員6が確認対象画面8で数値や色の変化をチェックするというように、複数の作業員が1点1点人手による検査を実施しており、時間と人手がかかるだけでなく、人為的なチェックミスのおそれもあった。更に、チェックミスが有った場合の原因追求も大変であった。
Conventionally, in screen input/output (I/O) inspections, it has been difficult to automate the identification of the location of the object to be checked within the screen, and identification and pass/fail determination have been performed using human judgment. Screen I/O inspection is a product shipping inspection, and to ensure quality, sampling (partial) inspection is not allowed and must be confirmed in full. Conventionally, as shown in FIG. 1, an
なお、本願に関連する先行技術として、特許文献1や2には、HMI(Human MachineInterface)画面とPLCとの間の通信インターフェイスに関して、自動で擬似信号や
模擬プログラムを生成し、試験する技術が記載されている。
Furthermore, as prior art related to the present application,
又、特許文献3には、回路図面からPLC用ラダープログラムを作成する技術が記載されている。
Further,
又、特許文献4には、プラント監視制御装置におけるPLCの機能確認試験を、音声出力により1人で実施可能にする技術が記載されている。
Furthermore,
又、特許文献5には、割り当てられた作業項目に従って、チェックリストを自動的に生成し、表示し、追跡する技術が記載されている。 Furthermore, Patent Document 5 describes a technique for automatically generating, displaying, and tracking checklists according to assigned work items.
又、特許文献6には、テスト仕様書によりテストコードを作成し、該テストコードを用いてテストすると共に、テストの結果を集計してテスト結果レポートを作成する技術が記載されている。 Further, Patent Document 6 describes a technique of creating a test code based on a test specification, performing a test using the test code, and creating a test result report by compiling the test results.
又、特許文献7には、登録したテスト項目を選択し実行すると共に、テスト終了後、テスト結果を解析してレポートを作成する技術が記載されている。 Further, Patent Document 7 describes a technique of selecting and executing registered test items, and after the test is completed, analyzing the test results and creating a report.
又、特許文献8には、テスト入力を自動的に生成するシミュレーション支援ツールが記載されている。 Further, Patent Document 8 describes a simulation support tool that automatically generates test inputs.
又、特許文献9には、画面生成プログラムを記憶する検査対象装置が生成するテスト画面の良否を画像照合により判断するソフトウェア自動テストシステムが記載されている。 Further, Patent Document 9 describes a software automatic test system that determines the quality of a test screen generated by a device to be inspected that stores a screen generation program by image comparison.
しかしながら従来は、断片的な技術が記載されているだけで、総合的な技術は記載されていなかった。 However, until now, only fragmentary techniques have been described, and comprehensive techniques have not been described.
本発明は、前記従来の問題点を解消するべくなされたもので、制御用ソフトウェアのテスト(デバッグ)を自動化して、検査工数の削減によるコストダウンと検査ミスの防止を図ることが可能な技術を提供することを課題とする。 The present invention has been made to solve the above-mentioned conventional problems, and is a technology that can automate testing (debugging) of control software to reduce costs by reducing inspection man-hours and prevent inspection errors. The challenge is to provide the following.
本発明は、テストシナリオを読込んで制御ソフトウェアをテストし、該テストによりテスト結果レポートを生成し、設計者がプログラムのNG箇所を確認して前記制御ソフトウェアを修正し、前記テスト結果レポートのNG項目のみをテストシナリオとして前記設計者が修正した制御ソフトウェアを再テストする制御用ソフトウェアの自動テスト方法において、前記テストシナリオを用いた画面確認に際して、入力の正解画像パターンを作り、設計図書から画面のチェックすべき場所を検索して画面を分割したエリアを絞り込み、絞り込んだエリア内で正解画像パターンとチェックすべき場所を画像比較して特定し、特定したチェックすべき場所の色、数値、画像形状の変化を読取って良否判断することを特徴とする制御用ソフトウェアの自動テスト方法を提供することにより、前記課題を解決するものである。 The present invention reads a test scenario to test control software, generates a test result report based on the test, allows a designer to check the NG part of the program and corrects the control software, and NG items in the test result report. In an automatic testing method for control software in which the control software modified by the designer is retested using only a test scenario, when checking the screen using the test scenario, a correct image pattern of the input is created and the screen is checked from the design document. Search for the location that should be checked, narrow down the areas that are divided into screens, compare the correct image pattern and the location that should be checked within the narrowed down area, identify the location that should be checked, and check the color, numerical value, and image shape of the identified location that should be checked. The above-mentioned problem is solved by providing an automatic testing method for control software, which is characterized by reading changes and determining pass/fail.
本発明は、又、テストシナリオを読込んで制御ソフトウェアをテストし、該テストによりテスト結果レポートを生成し、設計者がプログラムのNG箇所を確認して前記制御ソフトウェアを修正し、前記テスト結果レポートのNG項目のみをテストシナリオとして前記設計者が修正した制御ソフトウェアを再テストする制御用ソフトウェアの自動テスト方法において、前記テストシナリオを用いた信号出力確認に際して、画面操作スイッチ窓を開き、画面操作を実施して、操作信号が制御装置から正しく出力されているか良否判断することを特徴とする制御用ソフトウェアの自動テスト方法を提供することにより、同様に前記課題を解決するものである。 In the present invention, the control software is tested by reading a test scenario, a test result report is generated by the test, the designer checks the NG part of the program and corrects the control software, and the test result report is In an automatic test method for control software in which control software modified by the designer is retested using only NG items as a test scenario, when confirming signal output using the test scenario, open a screen operation switch window and perform screen operations. The object of the present invention is to similarly solve the above problem by providing an automatic test method for control software, which is characterized by determining whether the operation signal is correctly output from the control device.
ここで、前記画面操作に際して、ソフトウェアが前記画面操作スイッチ窓で自動的に出力値を強制的に操作して、出力信号が正しい値か良否判断することができる。 Here , when operating the screen, the software automatically forcibly operates the output value using the screen operation switch window, and it is possible to judge whether the output signal is a correct value or not.
本発明は、又、テストシナリオを読込んで制御ソフトウェアをテストする手段と、該テストによりテスト結果レポートを生成する手段と、設計者がプログラムのNG箇所を確認して前記制御ソフトウェアを修正する手段と、前記テスト結果レポートのNG項目のみをテストシナリオとして前記設計者が修正した制御ソフトウェアを再テストする手段と、を備えた制御用ソフトウェアの自動テスト装置において、前記テストシナリオを用いた画面確認に際して、入力の正解画像パターンを作り、設計図書から画面のチェックすべき場所を検索して画面を分割したエリアを絞り込み、絞り込んだエリア内で正解画像パターンとチェックすべき場所を画像比較して特定し、特定したチェックすべき場所の色、数値、画像形状の変化を読取って良否判断するようにされていることを特徴とする制御用ソフトウェアの自動テスト装置を提供することにより、同様に前記課題を解決するものである。
本発明は、又、テストシナリオを読込んで制御ソフトウェアをテストする手段と、該テストによりテスト結果レポートを生成する手段と、設計者がプログラムのNG箇所を確認して前記制御ソフトウェアを修正する手段と、前記テスト結果レポートのNG項目のみをテストシナリオとして前記設計者が修正した制御ソフトウェアを再テストする手段と、を備えた制御用ソフトウェアの自動テスト装置において、前記テストシナリオを用いた信号出力確認に際して、画面操作スイッチ窓を開き、画面操作を実施して、操作信号が制御装置から正しく出力されているか良否判断するようにされていることを特徴とする制御用ソフトウェアの自動テスト装置を提供することにより、同様に前記課題を解決するものである。
The present invention also provides a means for reading a test scenario and testing the control software, a means for generating a test result report by the test, and a means for a designer to check the NG part of the program and correct the control software. , means for retesting the control software modified by the designer using only the NG items in the test result report as a test scenario; in an automatic test device for control software, when checking the screen using the test scenario, Create a correct image pattern for the input, search for the places on the screen that should be checked from the design document, narrow down the areas into which the screen is divided, compare images with the correct image pattern and identify the places that should be checked within the narrowed down area, The above-mentioned problem is similarly solved by providing an automatic test device for control software, which is characterized by reading changes in color, numerical value, and image shape of a specified location to be checked to determine pass/fail. It is something to do.
The present invention also provides a means for reading a test scenario and testing the control software, a means for generating a test result report by the test, and a means for a designer to check the NG part of the program and correct the control software. , means for retesting the control software modified by the designer using only the NG items in the test result report as a test scenario; in an automatic test device for control software, when confirming a signal output using the test scenario; To provide an automatic test device for control software, characterized in that the device opens a screen operation switch window, performs screen operations, and determines whether or not operation signals are correctly output from a control device. This similarly solves the above problem.
本発明は、又、前記自動テスト方法をコンピュータに実行させるためのコンピュータプログラムを提供するものである。 The present invention also provides a computer program for causing a computer to execute the automatic test method.
本発明は、又、前記自動テスト装置をコンピュータに実現させるためのコンピュータプログラムを提供するものである。 The present invention also provides a computer program for implementing the automatic test device on a computer.
本発明によれば、制御用ソフトウェアのテスト(デバッグ)を自動化して、検査工数の削減によるコストダウンと検査ミスの防止を図ることが可能となる。 According to the present invention, it is possible to automate testing (debugging) of control software, thereby reducing costs by reducing the number of inspection steps and preventing inspection errors.
以下、図面を参照して、本発明の実施の形態について詳細に説明する。なお、本発明は以下の実施形態及び実施例に記載した内容により限定されるものではない。また、以下に記載した実施形態及び実施例における構成要件には、当業者が容易に想定できるもの、実質的に同一のもの、いわゆる均等の範囲のものが含まれる。更に、以下に記載した実施形態及び実施例で開示した構成要素は適宜組み合わせてもよいし、適宜選択して用いてもよい。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. Note that the present invention is not limited to the contents described in the following embodiments and examples. Furthermore, the constituent elements in the embodiments and examples described below include those that can be easily assumed by those skilled in the art, those that are substantially the same, and those that are within the so-called equivalent range. Further, the constituent elements disclosed in the embodiments and examples described below may be combined as appropriate, or may be appropriately selected and used.
本発明が対象とするデバッグ試験対象プラント(例えばごみ焼却炉)のシステム構成の一例を図2に示す。このプラントには、1号焼却炉と2号焼却炉(図示省略)があり、それぞれに制御盤11、12、センサ21、22、操作端31、32、配線ケーブル41、42、プログラマブルロジックコントローラ(PLC)51、52が設けられている。又、1号焼却炉と2号焼却炉の共通系についても制御盤13、センサ23、操作端33、配線ケーブル43、PLC53が設けられている。又、1号焼却炉と2号焼却炉と共通系全体の監視操作システムとして、分散制御システム(DCS)71、72、73、モニタ画面91、92、93が設けられている。
FIG. 2 shows an example of the system configuration of a debug test target plant (for example, a garbage incinerator) targeted by the present invention. This plant has a No. 1 incinerator and a No. 2 incinerator (not shown), each with
このうち、工場出荷検査対象100は、PLC51、52、53、DCS71、72、73、モニタ画面91、92、93である。
Among these, the factory
最終形である現地納入システム200に対し、工場出荷時は現地機器(センサ21、22、23、制御盤11、12、13、操作端31、32、33)や、それら機器との配線ケーブル41、42、43が存在しないため、PLC51、52、53の入出力を模擬して検査する必要がある。図1に例示したように、従来は1点1点人手により検査していたため、入力作業員2と確認作業員6の複数の作業員が必要であり、しかも、人間によるチェックであるため、チェックミスの可能性があった。
For the final form of the
そこで本実施形態においては、DCS71、72、73にそれぞれ模擬信号生成用のソフトウェアである自動デバッグツール81、82、83を組み込み、通信ケーブルで機器接続して、工場検査システム構成を作る。
Therefore, in this embodiment,
一方、図3に示す如く、設計者用コンピュータ110に、ソフトウェアのテストシナリオ作成ツール120をインストールし、後で詳述する詳細設計図書140、150、160を自動で読込んで、テストシナリオ170を自動生成する。そして、OK/NG判定結果を示す詳細設計図書エラーレポート122を生成し、設計者がNG箇所を確認して、詳細設計図書140、150、160を修正する。そして、できたテストシナリオ170をDCS(図3の例では71)にコピーする。
On the other hand, as shown in FIG. 3, a software test
このようにして、修正した設計図書を再度自動で読込んで、テストシナリオ170を自動で再生成することによりNGを減らすことができる。これにより、設計図書のチェックもかかり、ソフト作成前に設計図書の精度が上がるため、ソフト作成時のミスが軽減できる。
In this way, by automatically reading the modified design document again and automatically regenerating the
一方、DCS71には、自動デバッグツール81をインストールし、設計者用コンピュータ110によって生成されたテストシナリオ170を自動で読込んで自動デバッグを行う。そして、OK/NG判定結果を含むテスト結果レポート180を生成する。そして、設計者がNG箇所を確認して、DCSソフトを修正する。
On the other hand, an
更に、前記テスト結果レポート180を、テストシナリオ170の代わりに自動で読込んで再デバッグを繰り返す。この際、自動デバッグツール81は、OKとなったシナリオをスキップして、NG項目のみ再デバッグすることにより、再デバッグテストを効率化することができる。
Furthermore, the
前記テストシナリオ170の生成に用いられる、画面設計用の詳細設計図書140、150、160の一つのハード/通信入出力(I/O)リスト140の例を図4に示す。図4に記載したような主要項目(他にも記載項目あり)を定義・記載しており、これらの項目からテストデータを生成する。図において、AIはアナログ入力、DIはデジタル入力である。
FIG. 4 shows an example of a hardware/communication input/output (I/O)
又、同じく画面設計用の詳細設計図書140、150、160の他の例である画面入出力(I/O)リスト150の例を図5に示す。これは図下側の座標を示した画面イメージと図上側のリストを組み合わせたものである。図5に記載したような主要項目(他にも記載項目あり)を定義・記載しており、これらの項目からテストデータを生成する。
Further, FIG. 5 shows an example of a screen input/output (I/O)
又、同じく画面設計用の詳細設計図書140、150、160の3番目の例であるソフトウェア機能仕様書160の例を図6に示す。図において162は、計器(図の例は温度計)のコントロール画面である計器フェイスプレート(FP)を表す。このソフトウェア機能仕様書160は、ハード/通信入出力リスト140と画面入出力リスト150を補間するものであり、仕様書作成ルールからフェイスプレート情報(フェイスプレートのあるタグ、警報設定値等)を読込み、テストデータを生成する。
FIG. 6 also shows an example of a
画面確認を自動化する方法としては、リストに基づき信号入力を自動で実施する。具体的には、入力の正解画像パターンを作り、設計者は画面のチェックすべき場所を検索して、ある程度の範囲に絞り込む。絞り込んだエリア内で正解画像パターンとチェックすべき場所の画像比較を行い特定する。特定したチェックすべき場所の色、数値、画像形状の変化を読取って良否判断する。前記エリア内の自動テストの検証対象は、例えば数値、単位、文字色、機器表示シンボルの色、異常表示ラベルの色、警報表示文字及び文字色、FP表示操作、FP画面内の表示(グラフ、数値、色)とすることができる。 A method for automating screen confirmation is to automatically input signals based on a list. Specifically, the designer creates a correct image pattern for the input, searches for areas on the screen that should be checked, and narrows it down to a certain range. Within the narrowed-down area, the correct image pattern and the location to be checked are compared and identified. It reads the changes in color, numerical value, and image shape of the identified areas to be checked to determine pass/fail. The verification targets for automatic testing in the area include, for example, numerical values, units, font colors, equipment display symbol colors, error display label colors, alarm display characters and font colors, FP display operations, and displays on the FP screen (graphs, (number, color).
又、信号出力確認を自動化する方法としては、自動で画面操作スイッチ窓を開き、画面操作を自動で実施する。そして、操作信号がPLC51から正しく出力されているか良否判断する。具体的には、例えばFP画面からMV値を入力して、PLCデータで確認したり、運転、停止操作の結果をPLCデータで確認する。
Further, as a method for automating signal output confirmation, a screen operation switch window is automatically opened and screen operations are automatically performed. Then, it is determined whether the operation signal is correctly output from the
例えば4つのテストシナリオ170A、170B、170C、170Dを含むテストシナリオ170の一例を図7に示す。自動デバッグテストを実行するとテスト結果(OK/NG)と、結果詳細(補足説明)が自動埋込みされ、図8に例示するようなテスト結果レポート(検査成績表)180が生成される。
An example of a
試験対象画面の一例を図9に示す。破線で囲まれた部分が本ツールでのチェック対象の例(自動入力して画面状態変化を評価)である。なお、ツールからPLC51へ自動入力を行って、画面表示をチェックするだけでなく、ツールから画面を自動操作してPLC51の出力チェックも同様にして実施することができる。具体的には、ツールがFP162等を操作し、画面操作スイッチ窓であるサブウィンドウ(FP162からの操作時ウィンドウ)164を開けて、このサブウィンドウ164から出力を操作する。
An example of the screen to be tested is shown in FIG. The area surrounded by broken lines is an example of what this tool checks (automatically inputs and evaluates screen state changes). In addition to automatically inputting information into the
全体フローを図10に示す。図に示すように、例えば計算ソフト用データで構成されるハード/通信I/Oリスト140(詳細設計図書の1番目)と、例えば計算ソフト用データ及び画像データで構成される画面I/Oリスト150(詳細設計図書の2番目)と、画像ソフトウェア用データで構成されるソフトウェア機能仕様書160(詳細設計図書の3番目)をテストシナリオ生成ツール120に入力し、例えば計算ソフト用データで構成されるテストシナリオ170を生成する。そして、シナリオ生成結果をみて、詳細設計図書140、150、160の誤記を修正する。
The overall flow is shown in FIG. As shown in the figure, there is a hardware/communication I/O list 140 (first part of the detailed design document) made up of data for calculation software, for example, and a screen I/O list made up of data for calculation software and image data, for example. 150 (second detailed design document) and software function specification 160 (third detailed design document) consisting of data for image software are input into the test
このようにして、修正した設計図書を再度自動で読込んで、テストシナリオ170を自動で再生成することによりNGを減らすことができる。これにより、設計図書のチェックもかかり、ソフト作成前に設計図書の精度が上がるため、ソフト作成時のミスが軽減できる。
In this way, by automatically reading the modified design document again and automatically regenerating the
又、テストシナリオ170を自動デバッグツール81に挿入し、例えば計算ソフト用データで構成されるテスト結果レポート180を出力する。ここで、テスト結果レポート180をそのままシナリオとして再検査することにより、ソフトウェアを修正する。この際、自動デバッグツール81は、OKとなったシナリオをスキップして、NG項目のみ再デバッグすることにより、再デバッグテストを効率化することができる。
Further, the
アナログ入力/表示(画面、FP)をチェックするテストシナリオ170Aによる自動デバッグの手順の例を図11に示す。
FIG. 11 shows an example of an automatic debugging procedure using a
まずステップ1000で、FPの有無をチェックする。FPが無いと判断された場合にはステップ1010に進み、画面定義ファイルを読込む。
First, in
次いでステップ1020に進み、試験数値、単位で正解画像(フォント、サイズ、色)を生成する。 Next, the process proceeds to step 1020, where a correct image (font, size, color) is generated using the test numerical value and unit.
次いでステップ1030に進み、PLCアドレスでテストデータを自動でセットする。 Next, the process proceeds to step 1030, where test data is automatically set using the PLC address.
次いでステップ1040に進み、画面表示位置エリア内を正解画像でスキャンして画像マッチングを行う。 Next, the process proceeds to step 1040, where the screen display position area is scanned with the correct image to perform image matching.
次いでステップ1050に進み、結果判定を行う。 Next, the process proceeds to step 1050, where the result is determined.
判定結果がOKである場合はステップ1060に進み、OKを記録する。一方、ステップ1050の判定結果がNGである場合はステップ1070に進み、NG及びその理由を詳細に記録する。
If the determination result is OK, the process advances to step 1060 and OK is recorded. On the other hand, if the determination result in
一方、前記ステップ1000で、FPが有ると判定された場合にはステップ1100に進み、FP定義ファイルを読込む。
On the other hand, if it is determined in
次いでステップ1110に進み、試験数値、単位で正解FP画像(フォント、サイズ、色)を生成する。 Next, the process proceeds to step 1110, where a correct FP image (font, size, color) is generated using the test numerical value and unit.
次いでステップ1120に進み、PLCアドレスへテストデータを自動でセットする。 Next, the process proceeds to step 1120, where test data is automatically set to the PLC address.
次いでステップ1130に進み、FP内を正解FP画像でスキャンして画像マッチングを行う。 Next, the process proceeds to step 1130, where the inside of the FP is scanned with the correct FP image and image matching is performed.
次いでステップ1140に進み、結果判定を行う。 Next, the process proceeds to step 1140, where the result is determined.
判定結果がOKである場合はステップ1150に進み、OKを記録する。一方、ステップ1140の判定結果がNGである場合はステップ1160に進み、NG及びその理由を詳細に記録する。
If the determination result is OK, the process advances to step 1150 and OK is recorded. On the other hand, if the determination result in
なお、ステップ1010以降ステップ1060又は1070までの作業は必ず行われ、同時にFPがシナリオの項目にある場合は、そちらも実施する。即ち、シナリオの項目にFPがある場合は、分岐前後の2つの作業を自動実行して、それぞれの項目についてOK、NGを判定する。
Note that the operations from
次に、アナログ入力/警報(画面、FP)をチェックするテストシナリオ170Bによる自動デバッグの手順の例を図12、図13に示す。
Next, an example of an automatic debugging procedure using a
この手順では、最初のステップ2000で、FP無しと判定された場合にはステップ2010に進み、警報メッセージの有無を判定する。そして、判定結果が無しである場合にはステップ2020に進み、画面定義ファイルを読込む。
In this procedure, if it is determined in the
次いでステップ2030で、試験数値、単位で正解画像(警報色)を生成する。
Next, in
以下、図11のステップ1030~1070と同様のステップ2040~2080を実行する。
Thereafter, steps 2040 to 2080 similar to
一方、2番目のステップ2010の判定結果が有りで警報メッセージを表示する場合には、図13のステップ2100に進み、画像定義ファイルを読込んだ後、ステップ2110で、警報メッセージエリア、正解文字画像(フォント、サイズ、色)を生成する。
On the other hand, if there is a judgment result in the
次いでステップ2120に進み、PLCアドレスへテストデータを自動でセットする。 Next, the process proceeds to step 2120, where test data is automatically set to the PLC address.
次いでステップ2130に進み、警報メッセージエリア内を正解画像でスキャンして画像マッチングする。 Next, the process proceeds to step 2130, in which the correct image is scanned within the alarm message area and image matching is performed.
次いでステップ2140に進み、結果を判定し、OKである場合にはステップ2150に進み、OKを記録する。一方、ステップ2140の判定結果がNGである場合にはステップ2160に進み、NG及びその理由を詳細に記録する。
The process then proceeds to step 2140, where the result is determined, and if OK, the process proceeds to step 2150, where OK is recorded. On the other hand, if the determination result in
又、最初のステップ2000でFP有りと判定された場合にはステップ2200に進み、FP定義ファイルを読込む。
Further, if it is determined in the
次いで、ステップ2210で、試験数値、単位で正解FP画像(警報色)を生成する。
Next, in
以下、図11のステップ1120~1160と同様のステップ2220~2260を実行する。
Thereafter, steps 2220 to 2260 similar to
なお、ステップ2020以降ステップ2070又は2080までの作業は必ず行われ、同時にFPや警報メッセージがシナリオの項目にある場合は、そちらも実施する。例えば、シナリオの項目にFPがあり、警報メッセージがあると判定された場合は、分岐前後の3つの作業を自動実行して、それぞれの項目についてOK、NGを判定する。
Note that the operations from
デジタル入力/表示(画面、FP)をチェックするテストシナリオ170Cによる自動デバッグの手順の例を図14に示す。
FIG. 14 shows an example of an automatic debugging procedure using a
ステップ2320で、シンボル種別、ラベル入替表示内容で正解画像(運転/停止:形、色)を生成する点、及び、ステップ2410で、ラベル入替表示内容で正解FP画像(文字、色)を生成する点を除き、実質的に図11と同じであるので、詳細な説明は省略する。
In
デジタル入力/警報(画面、FP)をチェックするテストシナリオ170Dによる自動デバッグの手順の例を図15、図16に示す。
Examples of automatic debugging procedures using a
ステップ2530で、シンボル種別、ラベル入替表示内容で正解画像(運転/停止:形、色)を生成する点、及び、ステップ2610で、警報メッセージエリア、正解文字画像(フォント、サイズ、色)を生成する点、及び、ステップ2710で、ラベル入替表示内容で正解FP画像(文字、色)を生成する点を除き、実質的に図12、図13と同じであるので、詳細な説明は省略する。
In
本実施形態においては、画面I/O検査時の効果だけでなく、自動検査を行うためのリストを自動生成する際に、自動的に設計図書の不整合チェックもレポート出力・判定するようにしているので、設計図書のチェックもかかり、ソフト作成前に設計図書の精度が上がるため、ソフト作成時のミスが削減できる。 In this embodiment, in addition to the effects of screen I/O inspection, when automatically generating a list for automatic inspection, the inconsistency check of design documents is automatically output and determined as a report. This allows the company to check the design documents and improve the accuracy of the design documents before creating the software, reducing errors when creating the software.
又、デバッグに際して、出力した検査成績表を基にソフトウェア設計者がNGとなった部分のソフト修正を行う際、検査成績表をそのままテストシナリオとして使用すると共に、自動テストツールにより検査OKの項目をスキップし、NGのみの部分のみを自動テストすることで再検査の効率化が図れる。例えばNGの割合が1/10の場合には、テスト時間も1/10となる。 In addition, when debugging, when the software designer modifies the parts that were rejected based on the output inspection report, the inspection report can be used as it is as a test scenario, and the items that are OK to be inspected can be checked using an automatic test tool. By skipping and automatically testing only the NG parts, re-examination can be made more efficient. For example, if the NG ratio is 1/10, the test time will also be 1/10.
実際のごみ焼却施設において、従来の人手による画面I/O検査方法に対し、同じ設計仕様で本実施形態により自動デバッグ試験を行ったところ、人間による検査を従来の1/5程度として自動化率80%を達成でき、且つ、間違いを正解とする誤判定は自動検査により0となり、検査工数の80%削減によるコストダウン及び検査ミスの防止ができ、有効性を確認できた。 At an actual waste incineration facility, we conducted an automatic debugging test using this embodiment with the same design specifications as compared to the conventional manual screen I/O inspection method, and found that the automation rate was 80, with human inspection being about 1/5 of the conventional method. %, and the number of erroneous judgments in which errors are considered correct was reduced to 0 through automatic inspection, reducing costs by reducing inspection man-hours by 80%, preventing inspection errors, and confirming effectiveness.
なお、本発明の適用対象はごみ焼却施設に限定されず、プラント一般に同様に適用できることは明らかである。制御装置もDCSやPLCに限定されない。 Note that the present invention is not limited to waste incineration facilities, but is obviously applicable to plants in general. The control device is also not limited to DCS or PLC.
又、炉やDCS、PLCの数も実施形態の2~3に限定されず、例えば1つであってもよい。 Furthermore, the number of furnaces, DCSs, and PLCs is not limited to two or three in the embodiments, and may be one, for example.
11、12、13…制御盤
21、22、23…センサ
31、32、33…操作端
41、42、43…配線ケーブル
51、52、53…プログラマブルロジックコントローラ(PLC)
71、72、73…分散制御システム(DCS)
81、82、83…自動デバッグツール
91、92、93…モニタ画面
100…工場出荷検査対象
110…設計者用コンピュータ
120…テストシナリオ生成ツール
122…エラーレポート
140…ハード/通信入出力(I/O)リスト(詳細設計図書)
150…画面入出力(I/O)リスト(詳細設計図書)
160…ソフトウェア機能仕様書(詳細設計図書)
162…(計器)フェイスプレート(FP)
164…サブウィンドウ(画面操作スイッチ窓)
170、170A、170B、170C、170D…テストシナリオ
180…テスト結果レポート
200…現地納入システム
11, 12, 13...
71, 72, 73...Distributed control system (DCS)
81, 82, 83...
150...Screen input/output (I/O) list (detailed design document)
160...Software functional specifications (detailed design documents)
162...(Instrument) Face plate (FP)
164...Sub window (screen operation switch window)
170, 170A, 170B, 170C, 170D...
Claims (8)
該テストによりテスト結果レポートを生成し、
設計者がプログラムのNG箇所を確認して前記制御ソフトウェアを修正し、
前記テスト結果レポートのNG項目のみをテストシナリオとして前記設計者が修正した制御ソフトウェアを再テストする制御用ソフトウェアの自動テスト方法において、
前記テストシナリオを用いた画面確認に際して、入力の正解画像パターンを作り、設計図書から画面のチェックすべき場所を検索して画面を分割したエリアを絞り込み、絞り込んだエリア内で正解画像パターンとチェックすべき場所を画像比較して特定し、特定したチェックすべき場所の色、数値、画像形状の変化を読取って良否判断することを特徴とする制御用ソフトウェアの自動テスト方法。 Load the test scenario to test the control software,
generating a test result report by the test;
The designer checks the NG part of the program and corrects the control software,
In an automatic test method for control software, the method re-tests the control software modified by the designer using only the NG items in the test result report as a test scenario,
When checking the screen using the above test scenario, create a correct image pattern for the input, search the design document for the location on the screen that should be checked, narrow down the areas in which the screen is divided, and check the correct image pattern within the narrowed down area. 1. An automatic test method for control software, characterized by identifying a location to be checked by comparing images, and determining pass/fail by reading changes in color, numerical value, and image shape of the identified location to be checked.
該テストによりテスト結果レポートを生成し、
設計者がプログラムのNG箇所を確認して前記制御ソフトウェアを修正し、
前記テスト結果レポートのNG項目のみをテストシナリオとして前記設計者が修正した制御ソフトウェアを再テストする制御用ソフトウェアの自動テスト方法において、
前記テストシナリオを用いた信号出力確認に際して、画面操作スイッチ窓を開き、画面操作を実施して、操作信号が制御装置から正しく出力されているか良否判断することを特徴とする制御用ソフトウェアの自動テスト方法。 Load the test scenario to test the control software,
generating a test result report by the test;
The designer checks the NG part of the program and corrects the control software,
In an automatic test method for control software, the method re-tests the control software modified by the designer using only the NG items in the test result report as a test scenario,
When checking the signal output using the test scenario, the control software automatically opens a screen operation switch window, performs screen operation, and determines whether the operation signal is correctly output from the control device. Test method.
該テストによりテスト結果レポートを生成する手段と、
設計者がプログラムのNG箇所を確認して前記制御ソフトウェアを修正する手段と、
前記テスト結果レポートのNG項目のみをテストシナリオとして前記設計者が修正した制御ソフトウェアを再テストする手段と、
を備えた制御用ソフトウェアの自動テスト装置において、
前記テストシナリオを用いた画面確認に際して、入力の正解画像パターンを作り、設計図書から画面のチェックすべき場所を検索して画面を分割したエリアを絞り込み、絞り込んだエリア内で正解画像パターンとチェックすべき場所を画像比較して特定し、特定したチェックすべき場所の色、数値、画像形状の変化を読取って良否判断するようにされていることを特徴とする制御用ソフトウェアの自動テスト装置。 a means for testing the control software by loading test scenarios;
means for generating a test result report from the test;
means for a designer to check the NG part of the program and correct the control software;
means for retesting the control software modified by the designer using only the NG items in the test result report as a test scenario;
In automatic test equipment for control software equipped with
When checking the screen using the above test scenario, create a correct image pattern for the input, search the design document for the location on the screen that should be checked, narrow down the areas in which the screen is divided, and check the correct image pattern within the narrowed down area. An automatic test device for control software, characterized in that a location to be checked is identified by comparing images, and a pass/fail judgment is made by reading changes in color, numerical value, and image shape of the identified location to be checked.
該テストによりテスト結果レポートを生成する手段と、
設計者がプログラムのNG箇所を確認して前記制御ソフトウェアを修正する手段と、
前記テスト結果レポートのNG項目のみをテストシナリオとして前記設計者が修正した制御ソフトウェアを再テストする手段と、
を備えた制御用ソフトウェアの自動テスト装置において、
前記テストシナリオを用いた信号出力確認に際して、画面操作スイッチ窓を開き、画面操作を実施して、操作信号が制御装置から正しく出力されているか良否判断するようにされていることを特徴とする制御用ソフトウェアの自動テスト装置。 a means for testing the control software by loading test scenarios;
means for generating a test result report from the test;
means for a designer to check the NG part of the program and correct the control software;
means for retesting the control software modified by the designer using only the NG items in the test result report as a test scenario;
In automatic test equipment for control software equipped with
When confirming the signal output using the test scenario, a screen operation switch window is opened, the screen is operated, and it is determined whether the operation signal is correctly output from the control device or not. Automatic test equipment for control software.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022208766A JP7392821B2 (en) | 2019-06-14 | 2022-12-26 | Automatic testing method and device for control software and computer program |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019111586A JP7226121B2 (en) | 2019-06-14 | 2019-06-14 | AUTOMATIC TEST SCENARIO GENERATION METHOD AND DEVICE FOR CONTROL SOFTWARE, AND COMPUTER PROGRAM |
JP2022208766A JP7392821B2 (en) | 2019-06-14 | 2022-12-26 | Automatic testing method and device for control software and computer program |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019111586A Division JP7226121B2 (en) | 2019-06-14 | 2019-06-14 | AUTOMATIC TEST SCENARIO GENERATION METHOD AND DEVICE FOR CONTROL SOFTWARE, AND COMPUTER PROGRAM |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2023024762A JP2023024762A (en) | 2023-02-16 |
JP7392821B2 true JP7392821B2 (en) | 2023-12-06 |
Family
ID=73838404
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019111586A Active JP7226121B2 (en) | 2019-06-14 | 2019-06-14 | AUTOMATIC TEST SCENARIO GENERATION METHOD AND DEVICE FOR CONTROL SOFTWARE, AND COMPUTER PROGRAM |
JP2022208766A Active JP7392821B2 (en) | 2019-06-14 | 2022-12-26 | Automatic testing method and device for control software and computer program |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019111586A Active JP7226121B2 (en) | 2019-06-14 | 2019-06-14 | AUTOMATIC TEST SCENARIO GENERATION METHOD AND DEVICE FOR CONTROL SOFTWARE, AND COMPUTER PROGRAM |
Country Status (1)
Country | Link |
---|---|
JP (2) | JP7226121B2 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008165399A (en) | 2006-12-27 | 2008-07-17 | Fanuc Ltd | Simulation data generation support device |
JP2011075824A (en) | 2009-09-30 | 2011-04-14 | Mitsubishi Electric Corp | Monitoring screen testing device |
JP2012103874A (en) | 2010-11-10 | 2012-05-31 | Nec Commun Syst Ltd | Software test device |
JP2017130139A (en) | 2016-01-22 | 2017-07-27 | 東芝三菱電機産業システム株式会社 | Interface test system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62271151A (en) * | 1986-05-20 | 1987-11-25 | Nec Corp | Automatic testing system for computer main body |
JP2009289162A (en) | 2008-05-30 | 2009-12-10 | Toshiba Mitsubishi-Electric Industrial System Corp | Apparatus for automatically creating control program and testing method plan |
JP5777492B2 (en) | 2011-11-02 | 2015-09-09 | 三菱電機株式会社 | Monitoring operation screen test support device |
-
2019
- 2019-06-14 JP JP2019111586A patent/JP7226121B2/en active Active
-
2022
- 2022-12-26 JP JP2022208766A patent/JP7392821B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008165399A (en) | 2006-12-27 | 2008-07-17 | Fanuc Ltd | Simulation data generation support device |
JP2011075824A (en) | 2009-09-30 | 2011-04-14 | Mitsubishi Electric Corp | Monitoring screen testing device |
JP2012103874A (en) | 2010-11-10 | 2012-05-31 | Nec Commun Syst Ltd | Software test device |
JP2017130139A (en) | 2016-01-22 | 2017-07-27 | 東芝三菱電機産業システム株式会社 | Interface test system |
Non-Patent Citations (1)
Title |
---|
"MATLAB Programming Fundamentals",R2018a,MathWorks,2018年03月,pp.32-133~32-136,[2023.08.21 検索], インターネット:<https://web.archive.org/web/20180328191144/http://www.mathworks.com/help/pdf_doc/matlab/matlab_prog.pdf> |
Also Published As
Publication number | Publication date |
---|---|
JP2023024762A (en) | 2023-02-16 |
JP7226121B2 (en) | 2023-02-21 |
JP2020204847A (en) | 2020-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Vogel-Heuser et al. | Modularity and architecture of PLC-based software for automated production Systems: An analysis in industrial companies | |
US7433801B2 (en) | Identifying and visualizing faults in PLC-based manufacturing systems | |
US6993456B2 (en) | Mechanical-electrical template based method and apparatus | |
Ould et al. | Testing in software development | |
Panesar-Walawege et al. | Characterizing the chain of evidence for software safety cases: A conceptual model based on the IEC 61508 standard | |
EP3220222B1 (en) | Evaluation system, evaluation method, and evaluation program | |
US6275955B1 (en) | Diagnostic software for facilitating flowchart programming | |
Ibrahim et al. | State of the Art in Software Tool Qualification with DO-330: A Survey. | |
Fischer et al. | Measuring the overall complexity of graphical and textual iec 61131-3 control software | |
CN114860518A (en) | Detection method and system of function safety system, electronic equipment and storage medium | |
JP7392821B2 (en) | Automatic testing method and device for control software and computer program | |
US7698245B2 (en) | Applying rules to validating data for a machine arrangement | |
Ulewicz et al. | A verification-supported evolution approach to assist software application engineers in industrial factory automation | |
Fan et al. | Empirical analysis of software-induced failure events in the nuclear industry | |
Khan et al. | Testing and validation of safety logic in the virtual environment | |
Zeller et al. | An industrial roadmap for continuous delivery of software for safety-critical systems | |
Boring et al. | Baseline Human Factors and Ergonomics in Support of Control Room Modernization at Nuclear Power Plants | |
Sandgren et al. | Software safety analysis to support iso 26262-6 compliance in agile development | |
Schamp et al. | Virtual commissioning of industrial control systems-a 3D digital model approach | |
US9600245B2 (en) | Computer-implemented method for generating control unit program code and message management environment relating thereto | |
KR101716480B1 (en) | Apparatus for inputting test-case using gui | |
Schamp et al. | State-based verification of industrial control programs with the use of a digital model | |
Scott et al. | Testing existing software for safety-related applications. Revision 7.1 | |
Chung et al. | Safety related questions for computer-controlled plants: derivation, organisation and application | |
CN111552263A (en) | Method, computer-readable storage medium, and system for inspecting an industrial facility |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20221226 |
|
A871 | Explanation of circumstances concerning accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A871 Effective date: 20221226 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20230404 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20230526 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20230829 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20231006 |
|
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: 20231024 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20231106 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7392821 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |