JP6771664B2 - Test equipment, test systems, test methods, and programs - Google Patents
Test equipment, test systems, test methods, and programs Download PDFInfo
- Publication number
- JP6771664B2 JP6771664B2 JP2019516327A JP2019516327A JP6771664B2 JP 6771664 B2 JP6771664 B2 JP 6771664B2 JP 2019516327 A JP2019516327 A JP 2019516327A JP 2019516327 A JP2019516327 A JP 2019516327A JP 6771664 B2 JP6771664 B2 JP 6771664B2
- Authority
- JP
- Japan
- Prior art keywords
- test
- simulator
- air conditioner
- unit
- value
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/26—Functional testing
- G06F11/273—Tester hardware, i.e. output processing circuits
- G06F11/277—Tester hardware, i.e. output processing circuits with comparison between actual response and known fault-free response
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Testing And Monitoring For Control Systems (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
- Air Conditioning Control Device (AREA)
Description
本発明は、試験装置、試験システム、試験方法、および、プログラムに関する。 The present invention relates to test equipment, test systems, test methods, and programs.
複数のモジュールを備えるシステムにおいて、機能を改善したり不具合を修正したりするために一部のモジュールを変更する場合がある。この場合、この変更の影響がこれまで正常であった他のモジュールにおよび、当該他のモジュールで異常が発生する虞がある。したがって、高い品質を確保する為には、モジュールの変更があった場合は、当該変更がシステム全体の規模に比べて微小なものであったとしても、システム試験を全項目に渡って再度実施するのが望ましい。さらに、システム試験において不具合が発見された場合は、不具合を修正するために再度モジュールを変更する作業が必要となり、システム試験を再度実施する必要がある。 In a system with multiple modules, some modules may be modified to improve functionality or fix defects. In this case, the effect of this change may extend to other modules that have been normal so far, and an abnormality may occur in the other modules. Therefore, in order to ensure high quality, if there is a module change, the system test will be repeated for all items even if the change is small compared to the scale of the entire system. Is desirable. Furthermore, if a defect is found in the system test, it is necessary to change the module again in order to correct the defect, and it is necessary to carry out the system test again.
そこで、システム試験を効率化するため、システムを構成する機器の動作を計算機上で模擬するシミュレータを活用する技術が提案されている。例えば、特許文献1には、車両シミュレータを用いた車両装置の自動評価システムについて記載されている。具体的には、特許文献1に記載の車両装置の自動評価システムでは、評価者が入力した試験ケースデータにより設定した入力信号を車両シミュレータに入力し、車両シミュレータから出力される信号を分析する。これにより、車両装置の試験を簡易に実現することが可能となる。
Therefore, in order to improve the efficiency of system tests, a technique has been proposed that utilizes a simulator that simulates the operation of the devices constituting the system on a computer. For example,
上述した特許文献1に記載の技術では、機器から入力される入力信号および出力される出力信号を用いて機器の不具合を判別している。そのため、試験中に機器のメモリに記憶されている値を確認することはできないため、試験の精度において課題があった。また、試験の精度を向上させるために試験で確認したい情報を出力信号として出力させるようにすることも考えられるが、この場合は試験の内容が複雑化することが想定される。
In the technique described in
本発明は、上記実情に鑑みてなされたものであり、従来よりも高い精度での機器の試験を容易に実施することができる試験装置、試験システム、試験方法、および、プログラムを提供することを目的とする。 The present invention has been made in view of the above circumstances, and provides a test apparatus, a test system, a test method, and a program capable of easily performing a test of an apparatus with higher accuracy than before. The purpose.
上記目的を達成するため、本発明の試験装置は、
試験ケースに応じた処理を実行させるための入力信号を、試験対象とする機器を模擬するシミュレータに入力する信号入力部と、
前記入力信号の入力に応じて変化すると想定される前記シミュレータのメモリ領域の値を取得するメモリ取得部と、
前記メモリ取得部が取得した値に基づいて、異常の有無を判定する判定部と、を備え、
前記入力信号は、前記シミュレータの前記メモリ領域の特定の場所に、特定の転送速度で、特定の値を格納させることを指示する信号である。
In order to achieve the above object, the test apparatus of the present invention
A signal input unit that inputs an input signal for executing processing according to the test case to a simulator that simulates the device to be tested,
A memory acquisition unit that acquires the value of the memory area of the simulator, which is expected to change according to the input of the input signal, and
A determination unit for determining the presence or absence of an abnormality based on the value acquired by the memory acquisition unit is provided .
The input signal is a signal instructing that a specific value is stored in a specific place in the memory area of the simulator at a specific transfer rate.
本発明によれば、従来よりも高い精度での機器の試験を容易に実施することができる。 According to the present invention, it is possible to easily test a device with higher accuracy than before.
以下、本発明の実施形態について、図面を参照しながら詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
本発明の実施形態に係る試験システム10は、1又は複数の空調機(室内機、室外機)を備える空調システムで正常な処理が行われているかどうかを試験するためのシステムである。試験システム10は、図1に示すように、複数の空調機シミュレータ100A、B、Cと、試験装置200と、を備える。
The
空調機シミュレータ100A、B、Cは、試験システム10で試験対象とする空調システムを構成する各空調機の動作を模擬するコンピュータである。なお、後述するシミュレータ設定処理により、空調機シミュレータ100Aは、空調機識別番号が「1」である室外機(以下、室外機1とも表記)を模擬するように設定される。また、後述するシミュレータ設定処理により、空調機シミュレータ100Bは、空調機識別番号が「2」である室内機(以下、室内機2とも表記)を模擬するように設定される。また、後述するシミュレータ設定処理により、空調機シミュレータ100Cは、空調機識別番号が「3」である室内機(以下、室内機3とも表記)を模擬するように設定される。なお、以下の説明では、空調機シミュレータ100A、B、Cを区別しない場合は、空調機シミュレータ100と表記する。
The
続いて、空調機シミュレータ100の構成について説明する。空調機シミュレータ100は、インタフェース(IF)部110と、記憶部120と、制御部130と、を備える。
Subsequently, the configuration of the air conditioner simulator 100 will be described. The air conditioner simulator 100 includes an interface (IF) unit 110, a
IF部110は、空調機シミュレータ100が試験装置200、および、他の空調機シミュレータ100と通信するためのインタフェースである。
The IF unit 110 is an interface for the air conditioner simulator 100 to communicate with the
記憶部120は、いわゆる二次記憶装置(補助記憶装置)としての役割を担い、例えば、読み書き可能な不揮発性のフラッシュメモリ、ハードディスクドライブ等である。記憶部120には、制御部130が実行するプログラムや各種のデータが記憶される。また、記憶部120には、空調機シミュレータ100が模擬する空調機のメモリに相当する空調メモリ領域121が設けられている。模擬する空調機のメモリのアドレス空間のサイズと空調メモリ領域121のアドレス空間のサイズとは、実質的に同一である。
The
制御部130は、CPU(Central Processing Unit)、オペレーティングシステム等のプログラムを記憶するROM(Read Only Memory)、ワークエリアとなるRAM(Random Access Memory)等を備える。制御部130は、ROMに記憶されているプログラムを実行することにより、空調機シミュレータ100の全体を制御する。また、制御部130は、機能的な構成として、シミュレータ管理部131と、模擬部132と、を備える。
The
シミュレータ管理部131は、試験装置200からの指示に基づいて、空調メモリ領域121に情報を読み書きする。例えば、シミュレータ管理部131は、試験装置200から送信された空調機プログラムを空調メモリ領域121に格納する。また、シミュレータ管理部131は、試験装置200から要求された空調メモリ領域121のアドレスが示す場所から、要求されたサイズ分の値を取得して、試験装置200に送信する。
The
模擬部132は、試験装置200から送信された空調機プログラムを実行することにより、空調機を模擬する。例えば、模擬部132は、空調機で行われる通信処理を模擬して、他の空調機シミュレータ100との間で各種の情報を送受信する。また、模擬部132は、空調機で行われるCPUの動作(メモリ、および、レジスタへの情報の読み書き)を模擬する。
The
続いて、試験装置200について説明する。試験装置200は、空調機シミュレータ100を制御して試験ケースに応じた処理を実行させるコンピュータである。試験装置200は、インタフェース(IF)部210と、表示部220と、操作部230と、記憶部240と、制御部250と、を備える。
Subsequently, the
IF部210は、試験装置200が空調機シミュレータ100と通信するためのインタフェースである。
The
表示部220は、例えば、液晶ディスプレイであり、制御部250の制御の下、各種の情報を表示する。例えば、表示部220は、試験の結果を表す画面を表示する。
The
操作部230は、例えば、キーボードやマウスであり、ユーザからの操作入力を受け付け、該操作入力に対応した信号を制御部250に出力する。例えば、操作部230は、ユーザから、試験ケースの指定や試験の開始の指示を受け付ける。
The
記憶部240は、いわゆる二次記憶装置(補助記憶装置)としての役割を担い、例えば、読み書き可能な不揮発性のフラッシュメモリ、ハードディスクドライブ等である。記憶部240には、制御部250が実行するプログラムと各種のデータが記憶される。また、記憶部240は、空調機プログラム格納部241と、システム構成テーブル242と、試験ケースデータ格納部243と、試験結果格納部244と、を記憶する。
The
空調機プログラム格納部241には、空調機プログラムが格納される。具体的には、空調機プログラム格納部241には、図2に示すように、空調機プログラムと、該空調機プログラムを識別するためのプログラム名と、データテーブルと、が対応付けられて記憶される。
The air conditioner program is stored in the air conditioner
空調機プログラムは、空調機シミュレータ100に送信されて実行されるプログラムである。空調機シミュレータ100が空調機プログラムを実行することにより、空調機シミュレータ100は、空調機として動作(模擬)する。空調機プログラムは、ソースコードをコンパイルすることによって作成されるオブジェクトコードである。なお、空調機プログラム格納部241に格納されている空調機プログラムは、模擬される空調機のメモリに実際に記憶されて実行されているものと同一である。
The air conditioner program is a program that is transmitted to and executed by the air conditioner simulator 100. When the air conditioner simulator 100 executes the air conditioner program, the air conditioner simulator 100 operates (simulates) as an air conditioner. An air conditioner program is object code created by compiling source code. The air conditioner program stored in the air conditioner
データテーブルは、この空調機プログラムで定義されている各データのデータ名、各データが格納されている場所を示す空調メモリ領域121のアドレス、および、各データのサイズが登録されるテーブルである。データテーブルは、例えば、空調機プログラムのソースコードをコンパイルした際のログファイルを解析することにより作成される。なお、図2におけるデータテーブルのサイズの単位はバイトである。 The data table is a table in which the data name of each data defined in this air conditioner program, the address of the air conditioner memory area 121 indicating the location where each data is stored, and the size of each data are registered. The data table is created, for example, by analyzing the log file when the source code of the air conditioner program is compiled. The unit of the size of the data table in FIG. 2 is bytes.
図1に戻り、システム構成テーブル242は、試験対象とする空調システムを構成する各空調機に関する情報が登録されるテーブルである。具体的には、図3に示すように、システム構成テーブル242には、空調システムを構成する空調機毎に、この空調機の識別情報である空調機識別番号と、この空調機が室内機か室外機の何れかであるかを示す種別と、この空調機のメモリに記憶されている空調機プログラムのプログラム名と、この空調機の接続相手(この空調機が接続する他の空調機の空調機識別番号)と、が登録される。なお、空調機識別番号の代わりに、空調機の識別名やID等をシステム構成テーブル242に登録してもよい。 Returning to FIG. 1, the system configuration table 242 is a table in which information about each air conditioner constituting the air conditioning system to be tested is registered. Specifically, as shown in FIG. 3, in the system configuration table 242, for each air conditioner constituting the air conditioner system, an air conditioner identification number which is identification information of the air conditioner and whether the air conditioner is an indoor unit The type indicating whether it is one of the outdoor units, the program name of the air conditioner program stored in the memory of this air conditioner, and the connection partner of this air conditioner (air conditioner of other air conditioners to which this air conditioner connects). Machine identification number) and are registered. Instead of the air conditioner identification number, the air conditioner identification name, ID, or the like may be registered in the system configuration table 242.
図1に戻り、試験ケースデータ格納部243には、図4に示すように、試験ケース毎に、試験ケース名と、入力信号と、入力信号の送信先となる空調機シミュレータ100が模擬する空調機の空調機識別番号(送信先空調機識別番号)と、判定対象情報と、が格納される。
Returning to FIG. 1, in the test case
入力信号は、この試験ケースによる試験の開始時に空調機シミュレータ100に送信される信号である。入力信号には、アドレス、転送レート、および、入力値を示す情報が含まれる。空調機シミュレータ100は、入力信号を受信すると、この入力信号で指定されている空調メモリ領域121のアドレスが示す領域に、指定されている入力値を、指定されている転送レートで格納する。これにより、空調機シミュレータ100では、試験ケースに応じた処理が実行され、空調メモリ領域121に記憶されている各データ(判定用データ)の値が変更される。 The input signal is a signal transmitted to the air conditioner simulator 100 at the start of the test by this test case. The input signal contains information indicating the address, transfer rate, and input value. When the air conditioner simulator 100 receives the input signal, the air conditioner simulator 100 stores the designated input value at the designated transfer rate in the area indicated by the address of the air conditioning memory area 121 designated by the input signal. As a result, in the air conditioner simulator 100, the processing according to the test case is executed, and the value of each data (determination data) stored in the air conditioning memory area 121 is changed.
判定対象情報は、判定用データが格納されている空調機の空調機識別番号、判定用データのデータ名、および判定用データの期待値を示す情報により構成される。判定用データは、この試験ケースによる試験での異常の有無を判定するために値が参照されるデータである。正常動作の場合、判定用データの値は期待値と一致する。なお、期待値には、一定の幅を持たせてもよい。 The judgment target information is composed of the air conditioner identification number of the air conditioner in which the judgment data is stored, the data name of the judgment data, and the information indicating the expected value of the judgment data. The determination data is data whose value is referred to in order to determine the presence or absence of an abnormality in the test by this test case. In the case of normal operation, the value of the judgment data matches the expected value. The expected value may have a certain range.
図1に戻り、試験結果格納部244には、試験での異常の有無を判定した結果を示す情報が格納される。具体的には、図5に示すように、試験結果格納部244には、試験ケースの名称と、この試験ケースによる試験で判定した結果(正常か異常か)を示す判定結果と、その判定の理由を示す判定理由情報と、が対応付けられて格納される。なお、判定理由情報は、期待値が一致しなかった判定用データが格納されている空調機の空調機識別番号と、該判定用データのデータ名と、値と、期待値と、を示す情報が含まれる。なお、判定結果「正常」の場合は、判定理由情報には「全て一致」等のテキストが登録される。
Returning to FIG. 1, the test
図1に戻り、制御部250は、CPU、オペレーティングシステム等のプログラムを記憶するROM、ワークエリアとなるRAM等を備える。制御部250は、ROMに記憶されているプログラムを実行することにより、試験装置200の全体を制御する。また、制御部250は、機能的な構成として、設定部251と、信号入力部252と、メモリ取得部253と、判定部254と、を備える。
Returning to FIG. 1, the
設定部251は、試験を実施する前に、空調機シミュレータ100の設定を行う。設定部251が実施する処理の詳細については後述する。
The
信号入力部252は、試験ケースデータ格納部243を参照して、試験ケースに応じた入力信号を対応する空調機シミュレータ100に入力する。信号入力部252が実施する処理の詳細については後述する。
The
メモリ取得部253は、空調機シミュレータ100から、入力信号の入力に応じて変化すると想定される空調機シミュレータ100の空調メモリ領域121の値を取得する。メモリ取得部253が実施する処理の詳細については後述する。
The
判定部254は、メモリ取得部253が取得した値に基づいて、異常の有無を判定する。判定部254が実施する処理の詳細については後述する。
The
(シミュレータ設定処理)
続いて、試験システム10の動作について説明する。始めに、試験を実施する前に、空調機シミュレータ100の設定を行うシミュレータ設定処理について、図6に示すフローチャート、および、このフローチャートに対応する図7に示すシーケンス図を用いて説明する。なお、ユーザが操作部230を介して入力したり図示せぬサーバからダウンロードする等して、試験装置200の記憶部240には、図2〜4に示すような内容の空調機プログラム格納部241、システム構成テーブル242、および、試験ケースデータ格納部243が格納されている。また、この段階では、各空調機シミュレータ100がどの空調機を模擬するかは設定されておらず、起動もしていない。(Simulator setting process)
Subsequently, the operation of the
試験装置200の操作部230を介して、ユーザからシミュレータ設定処理の開始の指示がなされるとシミュレータ設定処理が開始される。まず、試験装置200の設定部251は、システム構成テーブル242を参照して、試験対象とする空調システムを構成する空調機(室内機、室外機)の台数を判別する(ステップS11)。図3に示すシステム構成テーブル242より、空調機の台数は3台と判別される。そして、設定部251は、判別した台数分の空調機シミュレータ100に起動コマンドを送信する(ステップS12)。起動コマンドを受信した空調機シミュレータ100は、起動状態となる。なお、ここでは、空調機シミュレータ100A〜Cが起動されたものとする。
When the user gives an instruction to start the simulator setting process via the
続いて、試験装置200の設定部251は、図2に示す空調機プログラム格納部241に格納されている各空調機プログラムを、起動させた各空調機シミュレータ100に送信する(ステップS13)。なお、ここでは、プログラム名「室外機PGM_v1」の空調機プログラムが空調機シミュレータ100Aに送信され、プログラム名「室内機PGM_v2」の空調機プログラムが空調機シミュレータ100Bに送信され、プログラム名「室内機PGM_v3」の空調機プログラムが空調機シミュレータ100Cに送信されたものとする。
Subsequently, the
続いて、空調機シミュレータ100のシミュレータ管理部131は、空調機プログラムを受信すると(ステップS14)、当該空調機プログラムを記憶部120の空調メモリ領域121に格納する(ステップS15)。そして、空調機シミュレータ100は、格納した空調機プログラムを実行する(ステップS16)。これにより、空調機シミュレータ100は、空調機プログラムに対応した空調機を模擬する。即ち、空調機シミュレータ100Aは室外機1を模擬し、空調機シミュレータ100Bは室内機2を模擬し、空調機シミュレータ100Cは室内機3を模擬する。以上でシミュレータ設定処理は終了する。
Subsequently, when the
(試験処理)
続いて、上述したシミュレータ設定処理後に試験システム10で実施される、空調システムを試験する処理(試験処理)について、図8のフローチャートを参照して説明する。例えば、試験装置200の操作部230を介して、ユーザから実施したい試験ケースの指定を受け付けると試験処理は開始される。なお、ここでは、ユーザから試験ケース名「設定通信試験」が指定されたものとして以下説明する。(Test process)
Subsequently, a process (test process) for testing the air conditioning system, which is performed in the
(試験処理:信号入力処理)
試験処理が開始されると、試験装置200は、試験ケースデータ格納部243を参照して、指定された試験ケースに応じた処理を実行させるための入力信号を空調機シミュレータ100に送信し、空調機シミュレータ100では、受信した入力信号に基づいた処理がなされる信号入力処理が実行される(ステップS100)。信号入力処理の詳細について、図9に示すフローチャート、および、このフローチャートに対応する図10に示すシーケンス図を用いて説明する。(Test processing: Signal input processing)
When the test process is started, the
まず、試験装置200の信号入力部252は、試験ケースデータ格納部243を参照して、指定された試験ケースに対応する入力信号を、送信先空調機識別番号で識別される空調機を模擬している空調機シミュレータ100に送信する(S101)。試験ケースデータ格納部243には図4に示す情報が格納されており、ユーザからは試験ケース名「設定通信試験」が指定されているため、アドレス「0x80808」、転送レート「10bps」、値「00101011b」を含んだ入力信号が、空調機識別番号がそれぞれ2、3である「室内機2」、「室内機3」を模擬している空調機シミュレータ100B、Cに送信される。
First, the
続いて、空調機シミュレータ100のシミュレータ管理部131は、試験装置200から入力信号を受信すると(ステップS102)、受信した入力信号で指定されている転送レートで、空調メモリ領域121の指定されているアドレスが示す場所に、指定されている値を格納する(ステップS103)。従って、空調機シミュレータ100B、Cのそれぞれの空調メモリ領域121のアドレス「0x80808」が示す位置に、転送レート「10bps」で、値「0101011b」が格納される。
Subsequently, when the
このステップS103での空調メモリ領域121への値の格納をトリガにして、模擬部132は、指定された試験ケースに応じた処理を実行する(ステップS104)。そして、この処理が正常に実行されると、各判定用データの値は期待値に更新される。以上で信号入力処理は終了する。
Triggered by the storage of the value in the air conditioning memory area 121 in step S103, the
(試験処理:メモリ取得処理)
図8に戻り、信号入力処理が終了すると、試験システム10では、試験装置200が空調機シミュレータ100のメモリ領域から判定用データの値を取得するメモリ取得処理が実施される(ステップS200)。メモリ取得処理の詳細について、図11に示すフローチャート、および、このフローチャートに対応する図12に示すシーケンス図を用いて説明する。(Test process: Memory acquisition process)
Returning to FIG. 8, when the signal input process is completed, the
まず、試験装置200のメモリ取得部253は、試験ケースデータ格納部243の判定対象情報を参照して、指定した試験ケースで判定対象にする判定用データを特定する(ステップS201)。即ち、ここでは、試験ケース名「設定通信試験」が指定されているため、図4に示す試験ケースデータ格納部243から、空調機識別番号が「2」、「3」である空調機(室内機2、3)のデータ名が「発停」、「運転モード」、「冷房設定温度」、「暖房設定温度」、「通信異常」、「冷媒系異常」であるデータが、判定用データとして特定される。
First, the
続いて、メモリ取得部253は、システム構成テーブル242と空調機プログラム格納部241のデータテーブルとを参照して、ステップS201で特定した判定用データが格納されている空調機シミュレータ100の空調メモリ領域121のアドレスの範囲を特定する(ステップS202)。従って、ここでは、判定用データ「発停」、「運転モード」、「冷房設定温度」、「暖房設定温度」、「通信異常」、「冷媒系異常」が格納されている室内機2、3の空調メモリ領域121のアドレス範囲「0x00000〜0x0000F」が特定される。
Subsequently, the
そして、メモリ取得部253は、対応する空調機シミュレータ100に、空調メモリ領域121の特定したアドレス範囲が示す場所から値を取得することを要求する取得要求コマンドを送信する(ステップS203)。即ち、室内機2、室内機3をそれぞれ模擬している空調機シミュレータ100B、Cに、アドレス範囲「0x00000〜0x0000F」が示す空調メモリ領域121の場所から値を取得することを要求する取得要求コマンドが送信される。
Then, the
空調機シミュレータ100のシミュレータ管理部131は、取得要求コマンドを受信すると(ステップS204)、空調メモリ領域121の当該取得要求コマンドで要求されているアドレス範囲が示す場所に格納されている値を取得する(ステップS205)。そして、シミュレータ管理部131は、取得した値を試験装置200に送信し(ステップS206)、試験装置200のメモリ取得部253は、この値を受信する(ステップS207)。以上でメモリ取得処理は終了する。
When the
(試験処理:判定処理)
図8に戻り、メモリ取得処理が終了すると、試験装置200は、当該メモリ取得処理で取得された値に基づいて、試験が正常に実施されたか否かを判定する判定処理を行う(ステップS300)。判定処理の詳細について、図13に示すフローチャートを用いて説明する。(Test process: Judgment process)
Returning to FIG. 8, when the memory acquisition process is completed, the
まず、試験装置200の判定部254は、試験ケースデータ格納部243に格納されている判定対象情報を参照して、メモリ取得処理で取得された値(空調メモリ領域121の値)から、各判定用データの値を取得する(ステップS301)。
First, the
例えば、メモリ取得処理で、室内機2を模擬している空調機シミュレータ100Bの空調メモリ領域121のアドレス範囲「0x00000〜0x0000F」が示す場所から、図14Aに示すような値が取得された場合を考える。この場合、判定部254は、判定用データ「発停」の値として、図14Aに示す値からアドレス「0x00000」を先頭に1バイト分の値「0x01」を取得する。同様に、判定部254は、判定用データ「運転モード」の値として、図14Aに示す値からアドレス「0x00001」を先頭に3バイト分の値「0x000001」を取得する。判定部254は、他の判定用データの値も同様に取得して、最終的には、図14Bに示すように、各判定用データの値が取得される。
For example, in the memory acquisition process, a value as shown in FIG. 14A may be acquired from the location indicated by the address range “0x00000 to 0x0000F” of the air conditioning memory area 121 of the
図13に戻り、続いて、判定部254は、試験ケースデータ格納部243を参照して、取得した判定用データの値が、全て期待値と一致するか否かを判別する(ステップS302)。
Returning to FIG. 13, the
全て一致すると判別された場合(ステップS302;Yes)、判定部254は、試験結果格納部244に、指定された試験ケースによる試験では異常は無かったことを示すデータ(判定結果「正常」とするデータ)を登録する(ステップS303)。なお、この場合、判定部254は、登録されたデータの判定理由情報は、「全て一致」等のテキストを入力する。
When it is determined that all of them match (step S302; Yes), the
一方、期待値と一致しない判定用データがあると判別された場合(ステップS302;No)、判定部254は、試験結果格納部244に、指定された試験ケースによる試験で異常が発生したことを示すデータ(判定結果「異常」とするデータ)を登録する(ステップS304)。なお、この場合、判定理由情報には、一致しなかった判定用データのデータ名、値、期待値を入力する。ここでは、今回指定した試験ケース「設定通信試験」での試験において、ステップS301で取得した室内機2の判定用データ「運転モード」の値「0x000002」が、期待値「0x000001」と一致しないため、図5に示すように、判定結果「異常」とするデータが、試験結果格納部244に登録される。
On the other hand, when it is determined that there is determination data that does not match the expected value (step S302; No), the
続いて、判定部254は、判定結果を表示部220に出力させる(ステップS305)。例えば、判定部254は、試験結果格納部244に格納されている情報を表示するための画面を表示部220に表示させればよい。
Subsequently, the
以上で判定処理は終了し、図8に戻り、試験処理自体も終了する。 With the above, the determination process is completed, the process returns to FIG. 8, and the test process itself is also completed.
このように、本実施形態に係る試験装置200によれば、空調機から出力されない信号であるメモリ内の値を用いて、異常の有無を判定する。そのため、機器の出力信号を用いて異常の有無を判定する従来の技術よりも、精度の高い試験を容易に実施することが可能となる。
As described above, according to the
また、本実施形態に係る試験装置200では、メモリ内の値を直接確認して判定するため、条件によっては出力までに時間がかかる出力信号で異常の有無を判定する従来の試験よりも、試験時間を短縮することが可能となる。
Further, in the
また、本実施形態に係る試験装置200では、実際の空調機で実行されている空調機プログラムを、その空調機を模擬する空調機シミュレータ100に送信して実行させるため、空調機シミュレータ100用のプログラムを別途作成すること無しに試験を実行することができる。
Further, in the
また、本実施形態に係る試験装置200によれば、判定用データのデータ名とその値とを評価対象としているため、空調機プログラムの一部に変更が加えられた場合であっても、データ名に変更が無ければ同じ試験ケースデータを容易に流用することができる。
Further, according to the
また、本実施形態に係る試験装置200によれば、試験結果は人が視認可能な形式で出力される為、試験結果の確認作業が容易となる。また、試験結果とともにその判定理由も併せて出力される為、不具合の原因の解析に活用することができる。
Further, according to the
また、本実施形態に係る試験装置200によれば、空調機自体は用いずに、空調機シミュレータ100を用いて試験をするため、システム試験を開発の早期段階にて実施することが可能となり、比較的少ないコストでソフトウェアの品質を向上させることが可能となる。
Further, according to the
(変形例)
なお、本発明は、上記実施形態に限定されず、本発明の要旨を逸脱しない部分での種々の修正は勿論可能である。(Modification example)
It should be noted that the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the gist of the present invention.
例えば、上記実施形態では、空調機(又は空調システム)の試験を行う試験システム10について説明したが、本発明は、空調機以外の機器や空調システム以外のシステムの試験を行う試験にも適用可能である。
For example, in the above embodiment, the
また、上記実施形態では、図4に示す試験ケースデータ格納部243において、試験ケースを2つ例示したが、実際には、空調システムの全動作を網羅した試験ケースを用意しておくことが望ましい。なお、ここでいう全動作とは、空調機のリモコンから設定可能な全ての値を網羅する動作、または、通常の空調機の使用では発生させることが困難な通信異常(通信衝突や通信タイミングのずれなど)やエラーコードの全種類の出力等を網羅した動作を意味する。
Further, in the above embodiment, two test cases are illustrated in the test case
また、上記実施形態では、試験装置200のメモリ取得部253からの要求に応じて、シミュレータ管理部131は、判定対象となる空調メモリ領域121の値のみを送信しているが、空調メモリ領域121に格納されている全ての値を試験装置200に送信してもよい。また、試験中に空調メモリ領域121の値が変化する度に、その値を試験装置200に送信して期待度と比較して異常の有無を判定してもよい。
Further, in the above embodiment, in response to the request from the
また、上記実施形態では、判定用データを特定するための情報として、「発停」や「運転モード」といった判定用データのデータ名を空調機プログラム格納部241(図2)や試験ケースデータ格納部243(図4)に格納させているが、データ名の代わりに、空調機プログラムのソースコード内で定義されている判定用データのグローバル変数名やID等を格納させてもよい。 Further, in the above embodiment, as information for specifying the determination data, the data names of the determination data such as "start / stop" and "operation mode" are stored in the air conditioner program storage unit 241 (FIG. 2) and the test case data. Although it is stored in the unit 243 (FIG. 4), the global variable name, ID, and the like of the determination data defined in the source code of the air conditioner program may be stored instead of the data name.
また、例えば、本実施形態に係る試験装置200の動作を規定する動作プログラムを既存のパーソナルコンピュータや情報端末機器等に適用することで、当該パーソナルコンピュータ等を本発明に係る試験装置200として機能させることも可能である。
Further, for example, by applying an operation program that defines the operation of the
また、このようなプログラムの配布方法は任意であり、例えば、CD−ROM(Compact Disk Read-Only Memory)、DVD(Digital Versatile Disk)、MO(Magneto Optical Disk)、メモリカードなどのコンピュータ読み取り可能な記録媒体に格納して配布してもよいし、インターネットなどの通信ネットワークを介して配布してもよい。 The distribution method of such a program is arbitrary, and for example, a computer-readable CD-ROM (Compact Disk Read-Only Memory), DVD (Digital Versatile Disk), MO (Magneto Optical Disk), memory card, etc. It may be stored in a recording medium and distributed, or may be distributed via a communication network such as the Internet.
本発明は、本発明の広義の精神と範囲を逸脱することなく、様々な実施形態及び変形が可能とされるものである。また、上述した実施形態は、この発明を説明するためのものであり、本発明の範囲を限定するものではない。すなわち、本発明の範囲は、実施形態ではなく、請求の範囲によって示される。そして、請求の範囲内及びそれと同等の発明の意義の範囲内で施される様々な変形が、この発明の範囲内とみなされる。 The present invention allows for various embodiments and modifications without departing from the broad spirit and scope of the present invention. Moreover, the above-described embodiment is for explaining the present invention, and does not limit the scope of the present invention. That is, the scope of the present invention is indicated not by the embodiment but by the claims. And various modifications made within the scope of the claims and within the equivalent meaning of the invention are considered to be within the scope of the invention.
本発明は、例えば、空調機や空調システムの試験を実施する試験装置に好適に利用できる。 INDUSTRIAL APPLICABILITY The present invention can be suitably used, for example, in a test device for performing a test of an air conditioner or an air conditioning system.
10 試験システム、100(100A,100B,100C) 空調機シミュレータ、110 IF部、120 記憶部、121 空調メモリ領域、130 制御部、131 シミュレータ管理部、132 模擬部、200 試験装置、210 IF部、220 表示部、230 操作部、240 記憶部、241 空調機プログラム格納部、242 システム構成テーブル、243 試験ケースデータ格納部、244 試験結果格納部、250 制御部、251 設定部、252 信号入力部、253 メモリ取得部、254 判定部 10 test system, 100 (100A, 100B, 100C) air conditioner simulator, 110 IF unit, 120 storage unit, 121 air conditioner memory area, 130 control unit, 131 simulator management unit, 132 simulation unit, 200 test equipment, 210 IF unit, 220 display unit, 230 operation unit, 240 storage unit, 241 air conditioner program storage unit, 242 system configuration table, 243 test case data storage unit, 244 test result storage unit, 250 control unit, 251 setting unit, 252 signal input unit, 253 Memory acquisition unit, 254 Judgment unit
Claims (10)
前記入力信号の入力に応じて変化すると想定される前記シミュレータのメモリ領域の値を取得するメモリ取得部と、
前記メモリ取得部が取得した値に基づいて、異常の有無を判定する判定部と、を備え、
前記入力信号は、前記シミュレータの前記メモリ領域の特定の場所に、特定の転送速度で、特定の値を格納させることを指示する信号である、
試験装置。 A signal input unit that inputs an input signal for executing processing according to the test case to a simulator that simulates the device to be tested,
A memory acquisition unit that acquires the value of the memory area of the simulator, which is expected to change according to the input of the input signal, and
A determination unit for determining the presence or absence of an abnormality based on the value acquired by the memory acquisition unit is provided .
The input signal is a signal instructing that a specific value is stored in a specific place in the memory area of the simulator at a specific transfer rate.
Test equipment.
請求項1に記載の試験装置。 The simulator is further provided with a setting unit for transmitting and executing a program executed by the device simulated by the simulator.
The test apparatus according to claim 1.
請求項2に記載の試験装置。 The setting unit transmits and executes each program executed by each of the plurality of devices constituting the system to be tested to the simulator having the same number as the number of the plurality of devices.
The test apparatus according to claim 2.
請求項1から3の何れか1項に記載の試験装置。 The determination unit uses the value acquired by the memory acquisition unit based on the information for specifying the position of the memory area in which the determination data for determining the presence or absence of an abnormality is stored. To get the value of,
The test apparatus according to any one of claims 1 to 3.
請求項1から4の何れか1項に記載の試験装置。 The determination unit determines the presence or absence of an abnormality by comparing the value acquired by the memory acquisition unit with the expected value.
The test apparatus according to any one of claims 1 to 4.
請求項1から5の何れか1項に記載の試験装置。 The determination unit outputs information indicating a determination result of determining the presence or absence of an abnormality together with information indicating a determination reason.
The test apparatus according to any one of claims 1 to 5 .
請求項1から6の何れか1項に記載の試験装置。 The device is an air conditioner.
The test apparatus according to any one of claims 1 to 6 .
を備える試験システム。 The test apparatus according to any one of claims 1 to 7 , a simulator that simulates the operation of the apparatus, and the like.
Test system with.
前記入力信号の入力に応じて変化すると想定される前記シミュレータのメモリ領域の値を取得するメモリ取得ステップと、
前記取得した値に基づいて、異常の有無を判定する判定ステップと、を有し、
前記入力信号は、前記シミュレータの前記メモリ領域の特定の場所に、特定の転送速度で、特定の値を格納させることを指示する信号である、
試験方法。 A signal input step that inputs an input signal according to the test case into a simulator that simulates the equipment to be tested, and
A memory acquisition step for acquiring the value of the memory area of the simulator, which is expected to change according to the input of the input signal, and
Based on the obtained value, have a, a determining step of determining the presence or absence of an abnormality,
The input signal is a signal instructing that a specific value is stored in a specific place in the memory area of the simulator at a specific transfer rate.
Test method.
試験ケースに応じた処理を実行させるための入力信号を、試験対象とする機器を模擬するシミュレータに入力する信号入力部、
前記入力信号の入力に応じて変化すると想定される前記シミュレータのメモリ領域の値を取得するメモリ取得部、
前記メモリ取得部が取得した値に基づいて、異常の有無を判定する判定部、
として機能させ、
前記入力信号は、前記シミュレータの前記メモリ領域の特定の場所に、特定の転送速度で、特定の値を格納させることを指示する信号である、
プログラム。 Computer,
A signal input unit that inputs an input signal for executing processing according to the test case to a simulator that simulates the equipment to be tested.
A memory acquisition unit that acquires the value of the memory area of the simulator, which is expected to change according to the input of the input signal.
A determination unit that determines the presence or absence of an abnormality based on the value acquired by the memory acquisition unit.
To function as,
The input signal is a signal instructing that a specific value is stored in a specific place in the memory area of the simulator at a specific transfer rate.
program.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2017/017265 WO2018203390A1 (en) | 2017-05-02 | 2017-05-02 | Testing apparatus, testing system, testing method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JPWO2018203390A1 JPWO2018203390A1 (en) | 2019-11-07 |
JP6771664B2 true JP6771664B2 (en) | 2020-10-21 |
Family
ID=64016540
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019516327A Active JP6771664B2 (en) | 2017-05-02 | 2017-05-02 | Test equipment, test systems, test methods, and programs |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP6771664B2 (en) |
WO (1) | WO2018203390A1 (en) |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03225436A (en) * | 1990-01-31 | 1991-10-04 | Fuji Xerox Co Ltd | Simulator of recording device and its debugger |
JP2011123672A (en) * | 2009-12-10 | 2011-06-23 | Mitsubishi Electric Corp | Module generation device and verification system |
JP5882052B2 (en) * | 2011-12-28 | 2016-03-09 | 日立オートモティブシステムズ株式会社 | Computer system for co-simulation, verification method and program for embedded system |
-
2017
- 2017-05-02 WO PCT/JP2017/017265 patent/WO2018203390A1/en active Application Filing
- 2017-05-02 JP JP2019516327A patent/JP6771664B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
WO2018203390A1 (en) | 2018-11-08 |
JPWO2018203390A1 (en) | 2019-11-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11302412B2 (en) | Systems and methods for simulated device testing using a memory-based communication protocol | |
JP2009002950A (en) | Testing device for testing at least one electronic control system and method for operating testing device | |
US20120185669A1 (en) | Program inspection method and non-transitory, computer readable storage medium storing inspection program | |
JP2017084082A (en) | Simulation device, test scenario file creation method, and test method using test scenario file | |
CN108427637B (en) | Test case recommendation method, electronic device and readable storage medium | |
CN111123736A (en) | Universal virtualization platform for systems using hardware abstraction software layers | |
CN111913694A (en) | Method and system for compiling automatic identification platform | |
CN115794519A (en) | Test method, test system, electronic device and readable storage medium | |
CN107272441B (en) | Method for monitoring errors and data processing device for monitoring errors | |
WO2019077738A1 (en) | Data verification device, data verification method, and data verification program | |
KR20100124726A (en) | Building operating system images based on applications | |
JP6771664B2 (en) | Test equipment, test systems, test methods, and programs | |
EP3734379A1 (en) | Method and system for generating control programs in a cloud computing environment | |
JP6366811B2 (en) | Inspection device, inspection method, and program | |
JP2009104490A (en) | Apparatus for testing program | |
JP2008299502A (en) | Test case validity automatic verification program and test case validity automatic verification result display method | |
CN110968519A (en) | Game testing method, device, server and storage medium | |
JPWO2020065804A1 (en) | Eligibility automatic judgment system | |
US9710581B1 (en) | VIP assisted method and apparatus to enable SOC integration and software development | |
US9183331B1 (en) | Formalizing IP driver interface | |
JPH07219980A (en) | Test execution system | |
TWI749774B (en) | Verification system and verification method thereof | |
CN113360406B (en) | Method and device for testing JSbridge method of application program | |
JP2019079219A (en) | Semiconductor device and debugging system | |
CN113377586B (en) | Automatic detection method and device for server and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190702 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190702 |
|
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: 20200901 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20200929 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6771664 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |