JPWO2014184949A1 - Software test apparatus, software test method, and program - Google Patents
Software test apparatus, software test method, and program Download PDFInfo
- Publication number
- JPWO2014184949A1 JPWO2014184949A1 JP2015516857A JP2015516857A JPWO2014184949A1 JP WO2014184949 A1 JPWO2014184949 A1 JP WO2014184949A1 JP 2015516857 A JP2015516857 A JP 2015516857A JP 2015516857 A JP2015516857 A JP 2015516857A JP WO2014184949 A1 JPWO2014184949 A1 JP WO2014184949A1
- Authority
- JP
- Japan
- Prior art keywords
- test
- information
- test information
- programs
- competition
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
ソフトウェア試験装置は、複数のプログラムのうち少なくともいずれか2つ以上のプログラムを並行して実行する設備機器において、並行して実行される該プログラムの競合試験を実行する。単一試験情報取得部(251)は、複数のプログラム毎に、該プログラムの試験内容を表す単一試験情報を取得する。競合試験情報生成部(252)は、複数のプログラムの組み合わせに基づいて、競合試験において並行して実行されるプログラムのグループを生成し、生成されたグループに属するプログラムの単一試験情報を統合することにより、生成されたグループに属するプログラムの競合試験の内容を表す競合試験情報を生成する。そして、試験実行部(253)は、生成された競合試験情報に基づいて、競合試験を実行する。The software test apparatus executes a competition test of the programs that are executed in parallel in the equipment that executes at least any two of the plurality of programs in parallel. The single test information acquisition unit (251) acquires single test information representing the test contents of the program for each of a plurality of programs. The competition test information generation unit (252) generates a group of programs to be executed in parallel in the competition test based on a combination of a plurality of programs, and integrates single test information of programs belonging to the generated group. Thus, the competition test information indicating the content of the competition test of the program belonging to the generated group is generated. And a test execution part (253) performs a competition test based on the produced | generated competition test information.
Description
本発明は、ソフトウェア試験装置、ソフトウェア試験方法、及びプログラムに関する。 The present invention relates to a software test apparatus, a software test method, and a program.
機器を制御するソフトウェアの試験を支援する技術として、特許文献1には、試験対象であるプログラムを評価用プログラムに変換し、その評価用プログラムに基づいて、評価項目データと評価結果の期待値データとを自動的に生成する技術が開示されている。
As a technique for supporting testing of software for controlling devices,
近年、空調機器や照明機器といった設備機器及び設備機器システムの多機能化が進んでいる。これに伴い、ユーザ操作の受付、自動運転や自動停止、他の設備機器との連動等を制御する設備機器の制御ソフトウェアも、複雑化している。このため、設備機器の制御ソフトウェアに対する試験作業において、制御ソフトウェアを構成する複数のプログラムが並列に実行された場合、すなわち複数にプログラムが競合する場合の設備機器の動作を検証する必要がある。しかし、動作試験において、並列に実行させるプログラムの組合せの数は非常に多く、さらに、プログラムを実行させるタイミングも考慮すると、試験パターンは無数に考えられるため、試験作業を担当する担当者に大きな負荷を与えてしまう。しかし、特許文献1に記載の技術では、複数のプログラムが競合する場合の動作試験のための評価項目を作成することは困難である。
In recent years, multi-functionalization of equipment such as air conditioning equipment and lighting equipment and equipment equipment systems has been progressing. Along with this, control software for facility equipment that controls reception of user operations, automatic operation and automatic stop, linkage with other equipment, and the like has become more complicated. For this reason, in the test work for the control software of the equipment, it is necessary to verify the operation of the equipment when a plurality of programs constituting the control software are executed in parallel, that is, when the programs compete with each other. However, in operation tests, the number of combinations of programs to be executed in parallel is very large, and considering the timing of program execution, there are an infinite number of test patterns. Will be given. However, with the technology described in
本発明は、上記実情に鑑みてなされたものであり、並行して実行される複数のプログラムの競合試験の効率化を図ることが可能なソフトウェア試験装置、ソフトウェア試験方法、及びプログラムを提供することを目的とする。 The present invention has been made in view of the above circumstances, and provides a software test apparatus, a software test method, and a program capable of improving the efficiency of a competitive test of a plurality of programs executed in parallel. With the goal.
上記目的を達成するために、本発明に係るソフトウェア試験装置は、
複数のプログラムのうち少なくともいずれか2つ以上のプログラムを並行して実行する設備機器において、並行して実行される該プログラムの競合試験を実行するソフトウェア試験装置であって、
前記複数のプログラム毎に、該プログラムの試験内容を表す単一試験情報を取得する単一試験情報取得部と、
前記複数のプログラムの組み合わせに基づいて、前記競合試験において並行して実行されるプログラムのグループを生成し、生成されたグループに属するプログラム毎に、前記単一試験情報取得部により取得された単一試験情報を特定し、特定した単一試験情報を統合することにより、生成されたグループに属するプログラムの競合試験の内容を表す競合試験情報を生成する競合試験情報生成部と、
前記グループ毎に、前記競合試験情報生成部により生成された競合試験情報に基づいて、該グループに属するプログラムの競合試験を実行する試験実行部と、
を備えることを特徴とする。In order to achieve the above object, a software test apparatus according to the present invention provides:
A software test apparatus that executes a competition test of the programs that are executed in parallel in a facility device that executes at least any two or more of the plurality of programs in parallel,
For each of the plurality of programs, a single test information acquisition unit that acquires single test information representing the test content of the program,
Based on the combination of the plurality of programs, a group of programs to be executed in parallel in the competitive test is generated, and for each program belonging to the generated group, a single acquired by the single test information acquisition unit A competitive test information generation unit that generates competitive test information representing the content of the competitive test of the program belonging to the generated group by identifying the test information and integrating the specified single test information;
For each group, based on the competition test information generated by the competition test information generation unit, a test execution unit that executes a competition test of programs belonging to the group;
It is characterized by providing.
本発明によれば、並列して実行される複数のプログラムそれぞれの試験内容を表す単一試験情報を統合して、その複数のプログラムの競合試験の内容を表す競合試験情報を生成するため、並行して実行される複数のプログラムの競合試験の効率化を図ることができる。 According to the present invention, the single test information representing the test contents of each of the plurality of programs executed in parallel is integrated to generate the competition test information representing the content of the competition test of the plurality of programs. Thus, it is possible to improve the efficiency of the competitive test of a plurality of programs executed in the same manner.
本発明の実施の形態について、図面を参照して詳細に説明する。 Embodiments of the present invention will be described in detail with reference to the drawings.
図1は、本発明の実施形態に係るソフトウェア試験システム1の全体構成を示す概略ブロック図である。図1に示すように、ソフトウェア試験システム1は、設備機器100と、設備機器100と通信可能に接続されるソフトウェア試験装置200と、から構成される。設備機器100は、ソフトウェア試験装置200と、有線又は無線にて通信可能に接続されている。
FIG. 1 is a schematic block diagram showing an overall configuration of a
設備機器100は、ソフトウェア試験装置200により試験される対象となる機器である。設備機器100は、例えば、空調機器、照明機器といった機器である。なお、図1では、1つの設備機器100を図示しているが、ソフトウェア試験装置200が試験する対象となる設備機器100は複数であってもよい。
The
また、図1に示すように、設備機器100は、設備機器100全体を制御する制御部110と、制御部110の制御のもと駆動する駆動部120と、各種データを記憶する記憶部130と、外部の装置と通信する通信部140と、から構成され、各部はバス150により接続されている。
As shown in FIG. 1, the
より詳細には、制御部110は、例えば、CPU(Central Processing Unit)、CPUが生成したデータを一時的に格納するRAM(Random Access Memory)、現在時刻を計時するタイマから構成され、設備機器100の全体の制御を行う。具体的には、制御部110は、記憶部130に記憶された制御ソフトウェア131を実行することにより、駆動部120の運転を制御する。また、制御部110は、制御ソフトウェア131の実行に必要な各種の情報を、通信部140を介して、外部から取得してもよい。
More specifically, the
駆動部120は、制御部110による制御のもと、電源(図示せず)から電力の供給を受けて駆動する。駆動部120は、例えば、モータ、LED(Light Emitting Diode)といったアクチュエータから構成される。
The
記憶部130は、不揮発性の半導体メモリ等の記録媒体から構成され、設備機器100の制御に用いられる各種データを記憶する。具体的には、記憶部130は、制御ソフトウェア131と、通信データ132と、内部データ133と、を記憶する。
The
制御ソフトウェア131は、設備機器100の動作を制御するためのソフトウェアである。具体的には、制御ソフトウェア131は、複数のプログラムから構成され、制御部131は、その複数のプログラムのうち1つを単独で実行することにより、又は、その複数のプログラムのうち2つ以上を並列して実行することにより、設備機器100の動作を制御する。
The
通信データ132は、設備機器100を構成する各部同士が通信するデータと、設備機器100が通信部140を介して外部の装置と通信するデータと、の履歴から構成される。より具体的には、通信データ132は、例えば、設備機器100が備える図示しないセンサ(温度センサ、圧力センサ等)の出力値、駆動部120への入力値、図示しないリモコンにより入力される設備機器100の各種設定(運転モード設定、スケジュール設定等)を表すデータ、を含む。また、通信データ132は、データ毎に、通信を行った装置を識別するデータ、その通信を行った時刻を表すデータを含む。
The
内部データ133は、制御ソフトウェア131中で変数として定義されているデータの履歴から構成される。より具体的には、内部データ133は、例えば、制御ソフトウェア131を構成するプログラムのレジスタのデータや、メモリのデータを含む。また、内部データ132は、データ毎に、そのデータが用いられるプログラムや変数を識別するデータ、そのデータが変化した時刻を表すデータを含む。
The
通信部140は、ソフトウェア試験装置200や図示しない外部の装置と、無線又は有線による通信を行うためのインターフェースから構成される。
The
次に、本実施形態に係るソフトウェア試験装置200の構成について詳細に説明する。
Next, the configuration of the
図1に示すように、ソフトウェア試験装置200は、外部の装置と通信する通信部210と、ユーザからの入力を受け付ける入力部220と、各種データを表示する表示部230と、各種データを記憶する記憶部240と、ソフトウェア試験装置200全体を制御する制御部250とを備え、各部はバス260により接続されている。
As shown in FIG. 1, the
通信部210は、設備機器100と、無線又は有線による通信を行うためのインターフェースから構成される。
The
入力部220は、ボタン、タッチパネル、キーボード等の入力装置から構成される。入力部220は、ユーザからの操作入力を受け付け、受け付けた操作入力に対応する操作入力信号を制御部250に出力する。
The
表示部230は、CRT(Cathode Ray Tube)や液晶ディスプレイ等の表示装置から構成され、制御部250から供給される文字や画像等のデータを表示する。
The
記憶部240は、ハードディスクドライブや、フラッシュメモリ、SSD(Solid State Drive)のような、書き込み可能な記憶装置から構成される。具体的には、記憶部240は、設備機器100から取得した通信データ132及び内部データ133を格納する履歴DB(データベース)241と、単一試験情報を格納する単一試験情報DB242と、競合試験情報を格納する競合試験情報DB243と、を記憶する。
The
より詳細には、履歴DB241は、通信部210を介して設備機器100から取得した通信データ132及び内部データ133を記憶する。
More specifically, the
単一試験情報DB242は、後述する制御部250の単一試験情報生成部251により生成された単一試験情報を格納する。ここで、単一試験情報は、制御ソフトウェアを構成するプログラム毎に、そのプログラムの試験内容を表す情報である。
The single
図2に、単一試験情報DB242に格納されるデータの一例を示す。図2に示すように、単一試験情報DB242は、単一試験IDと、その単一試験IDにより識別される事前入力情報と、単一試験シーケンス情報と、出力判定情報と、を含む単一試験情報を格納する。
FIG. 2 shows an example of data stored in the single
単一試験IDは、1つのプログラムの試験を実行する際の試験項目を識別する情報である。 The single test ID is information for identifying a test item when executing a test of one program.
事前入力情報は、単一試験IDにより識別される試験を実行する前に設備機器100に入力される情報である。例えば、設備機器100が空調機器であって、制御ソフトウェア131が、冷房運転中に室内温度が予め設定された温度以下になった場合に、冷房運転を停止するという設備機器100の動作を制御するプログラムを含んでいるとする。このプログラムの試験を実行する場合、実行前に設備機器100は冷房運転を行っている必要がある。従って、このプログラムの試験に対応する事前入力情報は、設備機器100に冷房運転を開始するよう指示する通信データ132、又は内部データ133を含む。
The pre-input information is information input to the
単一試験シーケンス情報は、単一試験IDにより識別される試験において、設備機器100に入力される入力情報と、その入力情報を設備機器100に入力するタイミングを表す時刻情報と、を含む。図3は、試験シーケンス情報の一例を表す図である。図3に示す単一試験シーケンス情報では、時刻t=tstartで試験が開始され、時刻t=tendで試験が終了する。また、時刻t=t1,t2,t3において、それぞれ入力データDi1,Di2,Di3が設備機器100に入力される。なお、出力データDo1,Do2,Do3は、入力データDi1,Di2,Di3が設備機器100に入力された結果、設備機器100から出力されるデータである。ソフトウェア試験装置200は、これらの出力データDo1,Do2,Do3を設備機器100から受信し、試験結果を検証する際に用いる。The single test sequence information includes input information input to the
出力判定情報は、単一試験IDにより識別される試験を実行することにより設備機器100から出力される出力情報が正常か否かを判定するための情報である。具体的には、出力判定情報は、単一試験IDにより識別される試験の対象であるプログラムが正常である場合に、その試験を実行することにより設備機器100から出力される出力情報を含む。ソフトウェア試験装置200は、設備機器100からの出力情報と、出力判定情報とを比較することにより、試験の対象であるプログラムが正常か否かを判定する。
The output determination information is information for determining whether or not the output information output from the
図1に戻って、競合試験情報DB243は、後述する制御部250の競合試験情報生成部252により生成された競合試験情報を格納する。ここで、競合試験情報は、複数のプログラムの競合試験の内容を表す情報である。
Returning to FIG. 1, the competitive
図4に、競合試験情報DB243に格納されるデータの一例を示す。図4に示すように、競合試験情報DB243は、競合試験IDと、その競合試験IDにより識別される事前入力情報と、競合試験シーケンス情報と、出力判定情報と、を含む競合試験情報を格納する。競合試験IDは、複数のプログラムの競合試験を実行する際の試験項目を識別する情報である。事前入力情報は、競合試験IDにより識別される試験を実行する前に設備機器100に入力される情報である。競合試験シーケンス情報は、競合試験IDにより識別される試験において、設備機器100に入力される入力情報と、その入力情報を設備機器100に入力するタイミングを表す時刻情報と、を含む。出力判定情報は、競合試験IDにより識別される試験を実行することにより設備機器100から出力される出力情報が正常か否かを判定するための情報である。競合試験情報に含まれる事前入力情報、競合試験シーケンス情報、及び出力判定情報の詳細については、後述する。
FIG. 4 shows an example of data stored in the competition
図1に戻って、制御部250は、例えば、CPU(Central Processing Unit)、CPUが実行するプログラムを格納するROM(Read Only Memory)、CPUが生成したデータを一時的に格納するRAM(Random Access Memory)、現在時刻を計時するタイマから構成され、ソフトウェア試験装置200の全体の制御を行う。
Returning to FIG. 1, the
図5は、制御部250の機能構成の一例を示すブロック図である。図5に示すように、制御部250は、単一試験情報を取得する単一試験情報取得部251、競合試験情報を生成する競合試験情報生成部252、競合試験を実行する試験実行部253、試験実行部253により実行された競合試験の結果を検証する試験結果検証部254、として機能する。
FIG. 5 is a block diagram illustrating an example of a functional configuration of the
単一試験情報取得部251は、制御ソフトウェア131を構成する複数のプログラム毎に、単一試験情報を取得する。具体的には、単一試験情報取得部251は、通信部210を介して、設備機器100から通信データ132及び内部データ133を取得し、履歴DB241に格納する。そして、単一試験情報取得部251は、履歴DB241に格納された通信データ132及び内部データ133に基づいて、単一試験情報を生成し、単一試験情報DB242に格納する。例えば、単一試験情報取得部251は、履歴DB241に格納されたデータを、単一試験情報DB242に対応付けるテーブルを有し、そのテーブルに基づいて、履歴DB241に格納されたデータから単一試験情報を生成する。
The single test
競合試験情報生成部252は、単一試験情報DB242に格納された単一試験情報に基づいて、競合試験情報を生成する。具体的には、競合試験情報生成部252は、制御ソフトウェア131に含まれる複数のプログラムの組み合わせに基づいて、競合試験において並行して実行されるプログラムのグループを生成する。そして、競合試験情報生成部252は、生成されたグループに属するプログラム毎に、単一試験情報DB242に格納された単一試験情報を特定する。そして、競合試験情報生成部252は、特定した単一試験情報を統合することにより、生成されたグループに属するプログラムの競合試験の内容を表す競合試験情報を生成し、競合試験情報DB243に格納する。
The competition test
試験実行部253は、競合試験情報DB243に格納された競合試験情報に基づいて、複数のプログラムの競合試験を実行する。具体的には、試験実行部253は、機競合試験情報DB243に格納されている事前入力情報を設備機器100に通信部210を介して入力する。次に、試験実行部253は、競合試験シーケンス情報に基づいて、競合試験情報に含まれる入力情報を、その入力情報に対応する時刻情報が表すタイミングで設備機器100に通信部210を介して入力する。
The
試験結果検証部254は、試験実行部253が実行した競合試験の結果を検証する。具体的には、試験結果検証部254は、競合試験情報に基づいて競合試験を実行することにより設備機器100から出力された出力情報を、その競合試験情報に含まれる出力判定情報と比較することにより、競合試験の対象であるプログラムが正常か否かを判定する。
The test
次に、本実施形態に係るソフトウェア試験装置200の動作について説明する。
Next, the operation of the
まず、ソフトウェア試験装置200の制御部250が実行する単一試験情報生成処理について説明する。単一試験情報生成処理は、例えば制御部250のCPUがROMに記憶されたプログラムを読み込むことにより実行される。
First, single test information generation processing executed by the
図6は、ソフトウェア試験装置200の制御部250が実行する単一試験情報生成処理のフローチャートの一例である。単一試験情報生成処理は、例えば、ユーザにより、入力部220を介して処理の実行開始を示す操作入力が入力されたことを契機として開始する。
FIG. 6 is an example of a flowchart of single test information generation processing executed by the
単一試験情報取得部251は、通信部210を介して、設備機器100から通信データ132及び内部データ133を取得する(ステップS11)。そして、単一試験情報取得部251は、取得したデータを、履歴DB241に格納する。
The single test
単一試験情報取得部251は、履歴DB241に格納された通信データ132及び内部データ133に基づいて、単一試験情報を生成する(ステップS12)。そして、単一試験情報取得部251は、生成した単一試験情報を、単一試験情報DB242に格納する。そして、単一試験情報生成処理を終了する。
The single test
次に、ソフトウェア試験装置200の制御部250が実行する競合試験情報生成処理について説明する。競合試験情報生成処理は、例えば制御部250のCPUがROMに記憶されたプログラムを読み込むことにより実行される。
Next, competition test information generation processing executed by the
図7は、ソフトウェア試験装置200の制御部250が実行する競合試験情報生成処理のフローチャートの一例である。競合試験情報生成処理は、例えば、ユーザにより、入力部220を介して処理の実行開始を示す操作入力が入力されたことを契機として開始する。
FIG. 7 is an example of a flowchart of competition test information generation processing executed by the
まず、競合試験情報生成部252は、制御ソフトウェア131を構成するプログラムの組合せに基づいて、競合試験において並行して実行されるプログラムのグループを生成する(ステップS21)。
First, the competition test
ここで、競合試験情報生成部252による競合させるプログラムのグループの生成方法の一例について、図8を用いて説明する。図8において、制御ソフトウェア131は、プログラムP1〜P3を含む複数のプログラムから構成されている。競合試験情報生成部252は、制御ソフトウェア131を構成する複数のプログラムの組合せに基づいて、グループG1〜G4といった、競合させるプログラムのグループを生成する。例えば、グループG1には、プログラムP1とプログラムP2とが属している。従って、グループG1に対応する競合試験では、プログラムP1とプログラムP2を競合させる。Here, an example of a method for generating a group of programs to be competed by the competition test
次に、競合試験情報生成部252は、ステップS21において生成したグループ毎に、そのグループに属するプログラムに対応する単一試験情報を単一試験情報DB242から取得する(ステップS22)。
Next, the competitive test
次に、競合試験情報生成部252は、グループ毎に、ステップS22において取得した単一試験情報に含まれる事前入力情報を統合して、そのグループに対応する競合試験で用いる事前入力情報を生成する(ステップS23)。そして、競合試験情報生成部252は、生成した事前入力情報を競合試験情報DB243に格納する。
Next, the competitive test
例えば、プログラムP1に対応する単一試験情報に含まれる事前入力情報がA1、プログラムP2に対応する単一試験情報に含まれる事前入力情報がA2である場合、グループG1に対応する競合試験において用いられる事前入力情報は、A1及びA2である。For example, when the pre-input information included in the single test information corresponding to the program P 1 is A 1 and the pre-input information included in the single test information corresponding to the program P 2 is A 2 , it corresponds to the group G 1 The pre-input information used in the competitive test is A 1 and A 2 .
次に、競合試験情報生成部252は、グループ毎に、ステップS22において取得した単一試験情報に含まれる出力判定情報を統合して、そのグループに対応する競合試験で用いる出力判定情報を生成する(ステップS24)。そして、競合試験情報生成部252は、生成した出力判定情報を競合試験情報DB243に格納する。
Next, the competition test
例えば、プログラムP1に対応する単一試験情報に含まれる出力判定情報がB1、プログラムP2に対応する単一試験情報に含まれる事前入力情報B2である場合、グループG1に対応する競合試験において用いられる出力判定情報は、B1及びB2である。For example, when the output determination information included in the single test information corresponding to the program P 1 is B 1 and the pre-input information B 2 included in the single test information corresponding to the program P 2, it corresponds to the group G 1 . Output determination information used in the competition test is B 1 and B 2 .
次に、競合試験情報生成部252は、グループ毎に、ステップS22において取得した単一試験情報に含まれる単一試験シーケンス情報を統合して、そのグループに対応する競合試験で用いる競合試験シーケンス情報を生成する(ステップS25)。そして、競合試験情報生成部252は、生成した競合試験シーケンス情報を競合試験情報DB243に格納する。そして、競合試験情報生成処理を終了する。
Next, the competitive test
ここで、競合試験情報生成部252による競合試験シーケンス情報の生成方法の一例について、図9を用いて説明する。図9に示す例では、グループG1に属するプログラムP1及びプログラムP2の競合試験で用いる競合試験シーケンス情報の生成について説明する。プログラムP1に対応する単一試験情報及びプログラムP2に対応する単一試験情報は、それぞれ図9に示す単一試験シーケンスSa1及び単一試験シーケンスSa2を含む。このとき、競合試験情報生成部252は、単一試験シーケンスSa1に含まれる入力データD11〜D13、及び、単一試験シーケンスSa2に含まれる入力データD21〜D23について、それらの入力データが設備機器100に入力される順序及びタイミングのうち少なくともいずれか一方がそれぞれ異なる複数の競合試験シーケンス情報を生成する。図9では、競合試験情報生成部252が、単一試験シーケンスSa1及び単一試験シーケンスSa2に基づいて生成した、2つのパターンの競合試験シーケンス情報Sb1,Sb2を例として図示している。Here, an example of a method for generating competition test sequence information by the competition test
次に、ソフトウェア試験装置200の制御部250が実行する競合試験実行処理について説明する。競合試験実行処理は、例えば制御部250のCPUがROMに記憶されたプログラムを読み込むことにより実行される。
Next, a competition test execution process executed by the
図10は、ソフトウェア試験装置200の制御部250が実行する競合試験実行処理のフローチャートの一例である。競合試験実行処理は、例えば、ユーザにより、入力部220を介して処理の実行開始を示す操作入力が入力されたことを契機として開始する。
FIG. 10 is an example of a flowchart of competition test execution processing executed by the
まず、試験実行部253は、競合試験情報DB243から、競合試験を実行する対象となる競合試験情報を取得する(ステップS301)。なお、競合試験を実行する対象となる競合試験情報は、例えば、入力部220を介してユーザにより選択される。
First, the
次に、試験実行部253は、ステップS301において取得された競合試験情報に含まれる事前入力情報を設備機器100に出力する(ステップS302)。
Next, the
次に、試験実行部253は、ステップS301において取得された競合試験情報に含まれる競合試験シーケンス情報に基づいて、競合試験を開始する(ステップS303)。
Next, the
次に、試験実行部253は、設備機器100から出力情報を受信したか否かを判定する(ステップS304)。設備機器100から出力情報を受信したと判定した場合(ステップS304;Yes)、試験実行部253は、その受信した出力情報を例えばRAMに記録する(ステップS305)。
Next, the
設備機器100から出力情報を受信していないと判定した場合(ステップS304;No)、試験実行部253は、ステップS301において取得された競合試験情報に含まれる競合試験シーケンス情報のうち、設備機器100に出力していない入力情報があるか否かを判定する(ステップS306)。
When it is determined that the output information is not received from the facility device 100 (step S304; No), the
設備機器100に出力していない入力情報があると判定した場合(ステップS306;Yes)、その入力情報に対応する時刻情報に基づいて、その入力情報を設備機器100に出力する時刻になったか否かを判定する(ステップS307)。入力情報を設備機器100に出力する時刻になっていないと判定した場合(ステップS307;No)、処理をステップS304に戻す。
If it is determined that there is input information that has not been output to the facility device 100 (step S306; Yes), whether or not it is time to output the input information to the
入力情報を設備機器100に出力する時刻になったと判定した場合(ステップS307;Yes)、試験実行部253は、その入力情報を設備機器100に出力する(ステップS308)。そして、処理をステップS304に戻す。
When it is determined that it is time to output the input information to the equipment device 100 (step S307; Yes), the
設備機器100に出力していない入力情報がないと判定した場合(ステップS306;No)、試験実行部253は、競合試験を終了する。そして、試験結果検証部254は、ステップS301において取得された競合試験情報に含まれる出力判定情報と、ステップS305において記録された出力情報と、に基づいて試験結果を検証する(ステップS309)。
When it determines with there being no input information which has not been output to the equipment 100 (step S306; No), the
そして、試験結果検証部254は、ステップS309における検証結果を表示部230に表示する(ステップS310)。そして、競合試験実行処理を終了する。
Then, the test
以上説明したように、本実施形態のソフトウェア試験装置200は、まず、並列して実行される複数のプログラムそれぞれの試験内容を表す単一試験情報を取得する。そして、取得した単一試験情報を統合して、その複数のプログラムの競合試験の内容を表す競合試験情報を生成するため、並行して実行される複数のプログラムの競合試験の効率化を図ることができる。
As described above, the
以上、本発明の実施形態について説明したが、本発明は本実施形態によって限定されるものではない。 As mentioned above, although embodiment of this invention was described, this invention is not limited by this embodiment.
例えば、上記の実施形態において、単一試験情報生成部251は、履歴DB241に格納された通信データ及び内部データに基づいて、単一試験情報を生成したが、単一試験情報の生成方法は、これに限られない。例えば、単一試験情報の一部又は全部の情報を、ユーザが、例えば入力部220を介して、入力してもよい。
For example, in the above embodiment, the single test
また、競合試験情報生成部252は、競合試験情報を生成する際、入力情報を設備機器100に入力する順序及びタイミングのうち少なくともいずれか一方を制約する制約条件を満たすように、競合試験情報を生成してもよい。このような制約条件は、例えば、予めユーザにより入力部220を介して入力され、記憶部に240に記憶されていてもよい。
In addition, when generating the competitive test information, the competitive test
また、上記の実施形態において、設備機器100は、通信データ132と内部データ133の両方を記憶するが、いずれか一方でもよい。この場合、ソフトウェア試験装置200は、設備機器100に記憶された、通信データ132と内部データ133のいずれか一方のデータを用いて、競合試験情報を生成し、競合試験を実行できる。
Moreover, in said embodiment, although the
また、上記の実施形態において、ソフトウェア試験装置200は、設備機器100を試験対象としているが、設備機器シミュレータを試験対象としてもよい。
In the above-described embodiment, the
なお、上記実施の形態において、ソフトウェア試験装置200が実行するプログラムは、フレキシブルディスク、CD−ROM(Compact Disk Read-Only Memory)、DVD(Digital Versatile Disk)、MO(Magneto-Optical Disk)等のコンピュータ読み取り可能な記録媒体に格納されて配布されてもよい。そして、そのプログラムがパーソナルコンピュータ等の情報処理装置にインストールされることにより、上述の処理を実行する各装置が構成されてもよい。
In the above embodiment, the program executed by the
また、プログラムは、インターネット等の通信ネットワーク上の所定のサーバ装置が有するディスク装置等に格納されてもよい。そして、プログラムは、例えば、搬送波に重畳されて、ダウンロードされてもように構成されてもよい。 The program may be stored in a disk device or the like included in a predetermined server device on a communication network such as the Internet. And a program may be comprised so that it may be superimposed on a carrier wave and downloaded, for example.
また、上述の機能を、OS(Operating System)が分担して実現する場合又はOSとアプリケーションとの協働により実現する場合、OSの機能を実現する部分以外のプログラムのみが、記録媒体に格納されて配布されてもよく、また、ダウンロードされてもよい。 Further, when the above functions are realized by sharing an OS (Operating System) or when the OS and the application cooperate, only the program other than the part realizing the OS functions is stored in the recording medium. It may be distributed or downloaded.
本発明は、本発明の広義の精神と範囲に逸脱することなく、様々な実施の形態及び変形が可能とされるものである。また、上述した実施形態は、本発明を説明するためのものであり、本発明の範囲を限定するものではない。つまり、本発明の範囲は、実施の形態ではなく、特許請求の範囲によって示される。そして、特許請求の範囲内及びそれと同等の発明の意義の範囲内で施される様々な変形が、本発明の範囲内とみなされる。 Various embodiments and modifications can be made to the present invention without departing from the broad spirit and scope of the present invention. Further, the above-described embodiment is for explaining the present invention, and does not limit the scope of the present invention. In other words, the scope of the present invention is shown not by the embodiments but by the claims. Various modifications within the scope of the claims and within the scope of the equivalent invention are considered to be within the scope of the present invention.
本発明は、複数のプログラムのうち少なくともいずれか2つ以上のプログラムを並行して実行する設備機器において、並行して実行される該プログラムの競合試験を実行するソフトウェア試験システムに適する。 The present invention is suitable for a software test system that executes a competitive test of a program that is executed in parallel in a facility device that executes at least any two or more of the plurality of programs in parallel.
1 ソフトウェア試験システム、100 設備機器、110 制御部、120 駆動部、130 記憶部、131 制御ソフトウェア、132 通信データ、133 内部データ、140 通信部、150 バス、200 ソフトウェア試験装置、210 通信部、220 入力部、230 表示部、240 記憶部、241 履歴DB、242 単一試験情報DB、243 競合試験情報DB、250 制御部、251 単一試験情報取得部、252 競合試験情報生成部、253 試験実行部、254 試験結果検証部、260 バス 1 software test system, 100 equipment, 110 control unit, 120 drive unit, 130 storage unit, 131 control software, 132 communication data, 133 internal data, 140 communication unit, 150 bus, 200 software test device, 210 communication unit, 220 Input unit, 230 display unit, 240 storage unit, 241 history DB, 242 single test information DB, 243 competitive test information DB, 250 control unit, 251 single test information acquisition unit, 252 competitive test information generation unit, 253 test execution Part, 254 test result verification part, 260 bus
上記目的を達成するために、本発明に係るソフトウェア試験装置は、
並行して実行される複数のプログラムの競合試験を実行するソフトウェア試験装置であって、
前記複数のプログラム毎に、該プログラムの試験内容を表す単一試験情報を取得する単一試験情報取得部と、
前記複数のプログラムの組み合わせに基づいて、前記競合試験において並行して実行されるプログラムのグループを生成し、前記生成されたグループに属するプログラム毎に、前記単一試験情報取得部により取得された単一試験情報を特定し、特定した単一試験情報を統合することにより、前記生成されたグループに属するプログラムの競合試験の内容を表す競合試験情報を生成する競合試験情報生成部と、
を備えることを特徴とする。
To achieve the above object, a software test apparatus according to the present invention provides:
A software testing apparatus for performing a competitive test a plurality of programs to be executed by concurrent,
For each of the plurality of programs, a single test information acquisition unit that acquires single test information representing the test content of the program,
Based on a combination of the plurality of programs, said generates a group of programs that are executed in parallel in a competition test, each program belonging to the generated group, obtained by the single test information acquiring unit single one test information to identify, by integrating a single test information specified, a competitive test information generating unit that generates a competitive test information representing the content of competitive test programs belonging to the generated group,
It is characterized by providing.
Claims (9)
前記複数のプログラム毎に、該プログラムの試験内容を表す単一試験情報を取得する単一試験情報取得部と、
前記複数のプログラムの組み合わせに基づいて、前記競合試験において並行して実行されるプログラムのグループを生成し、生成されたグループに属するプログラム毎に、前記単一試験情報取得部により取得された単一試験情報を特定し、特定した単一試験情報を統合することにより、生成されたグループに属するプログラムの競合試験の内容を表す競合試験情報を生成する競合試験情報生成部と、
前記グループ毎に、前記競合試験情報生成部により生成された競合試験情報に基づいて、該グループに属するプログラムの競合試験を実行する試験実行部と、
を備えるソフトウェア試験装置。A software test apparatus that executes a competition test of the programs that are executed in parallel in a facility device that executes at least any two or more of the plurality of programs in parallel,
For each of the plurality of programs, a single test information acquisition unit that acquires single test information representing the test content of the program,
Based on the combination of the plurality of programs, a group of programs to be executed in parallel in the competitive test is generated, and for each program belonging to the generated group, a single acquired by the single test information acquisition unit A competitive test information generation unit that generates competitive test information representing the content of the competitive test of the program belonging to the generated group by identifying the test information and integrating the specified single test information;
For each group, based on the competition test information generated by the competition test information generation unit, a test execution unit that executes a competition test of programs belonging to the group;
A software testing apparatus comprising:
前記競合試験情報生成部は、前記生成されたグループに属するプログラム毎に特定された単一試験情報に含まれる入力情報及び時刻情報に基づいて、前記生成されたグループに属するプログラムの競合試験において該入力情報を前記設備機器に入力する順序及びタイミングのうち少なくともいずれか一方がそれぞれ異なる複数の競合試験パターンを、前記競合試験情報として生成する、
請求項1に記載のソフトウェア試験装置。The single test information acquisition unit includes, for each of the plurality of programs, input information to be input to the facility device in a test of the program, and time information indicating a timing at which the input information is input to the facility device. Get single test information,
The competition test information generation unit is configured to perform the competition test of a program belonging to the generated group based on input information and time information included in single test information specified for each program belonging to the generated group. A plurality of competitive test patterns in which at least any one of the order and timing of inputting the input information to the equipment is different is generated as the competitive test information.
The software testing apparatus according to claim 1.
前記競合試験情報生成部は、前記入力部により入力された制約情報が表す制約条件を満たすように、前記競合試験パターンを生成する、
請求項2に記載のソフトウェア試験装置。An input unit for inputting constraint information representing a constraint condition that restricts at least one of the order and timing of inputting the input information to the facility device in a competition test of the program belonging to the generated group;
The competitive test information generating unit generates the competitive test pattern so as to satisfy a constraint condition represented by the constraint information input by the input unit;
The software test apparatus according to claim 2.
請求項2又は3に記載のソフトウェア試験装置。The single test information acquisition unit acquires communication data received by the facility device from another device as the input information.
The software testing apparatus according to claim 2 or 3.
請求項2又は3に記載のソフトウェア試験装置。The single test information acquisition unit acquires internal data defined as a variable in the program as the input information.
The software testing apparatus according to claim 2 or 3.
前記競合試験情報生成部は、前記生成されたグループに属するプログラム毎に特定された単一試験情報に含まれる事前入力情報を、前記生成されたグループに属するプログラムの競合試験前の実行前に前記設備機器に入力する事前入力情報として含む競合試験情報を生成する、
請求項1乃至5のいずれか1項に記載のソフトウェア試験装置。The single test information acquisition unit acquires, for each of the plurality of programs, single test information including pre-input information to be input to the equipment before executing the test of the program,
The competitive test information generation unit is configured to read the pre-input information included in the single test information specified for each program belonging to the generated group before executing the program belonging to the generated group before the competitive test. Generate competitive test information that includes pre-input information to be input to the equipment.
The software testing apparatus according to any one of claims 1 to 5.
前記競合試験情報生成部は、前記生成されたグループに属するプログラム毎に特定された単一試験情報に含まれる出力判定情報を、前記生成されたグループに属するプログラムの競合試験を実行することにより前記設備機器から出力された出力情報が正常か否かを判定するための出力判定情報として含む競合試験情報を生成する、
請求項1乃至6のいずれか1項に記載のソフトウェア試験装置。The single test information acquisition unit includes, for each of the plurality of programs, output determination information for determining whether or not output information output from the facility device is normal by executing a test of the program. Get one exam information,
The competition test information generation unit performs output determination information included in single test information specified for each program belonging to the generated group by executing a competition test of the program belonging to the generated group. Generating competition test information included as output determination information for determining whether the output information output from the equipment is normal;
The software testing apparatus according to any one of claims 1 to 6.
前記複数のプログラム毎に、該プログラムの試験内容を表す単一試験情報を取得する単一試験情報取得ステップと、
前記複数のプログラムの組み合わせに基づいて、前記競合試験において並行して実行されるプログラムのグループを生成し、生成されたグループに属するプログラム毎に、前記単一試験情報取得ステップにおいて取得された単一試験情報を特定し、特定した単一試験情報を統合することにより、生成されたグループに属するプログラムの競合試験の内容を表す競合試験情報を生成する競合試験情報生成ステップと、
前記グループ毎に、前記競合試験情報生成ステップにおいて生成された競合試験情報に基づいて、該グループに属するプログラムの競合試験を実行する試験実行ステップと、
を有するソフトウェア試験方法。A software test method for executing a competitive test of a program that is executed in parallel in a facility device that executes at least any two or more of the plurality of programs in parallel,
For each of the plurality of programs, a single test information acquisition step for acquiring single test information representing the test content of the program;
Based on the combination of the plurality of programs, a group of programs to be executed in parallel in the competitive test is generated, and each program belonging to the generated group is acquired in the single test information acquisition step. A competitive test information generation step for generating competitive test information representing the content of the competitive test of the program belonging to the generated group by identifying the test information and integrating the identified single test information;
A test execution step for executing a competition test of a program belonging to the group based on the competition test information generated in the competition test information generation step for each group;
A software testing method.
前記複数のプログラム毎に、該プログラムの試験内容を表す単一試験情報を取得する単一試験情報取得ステップと、
前記複数のプログラムの組み合わせに基づいて、前記競合試験において並行して実行されるプログラムのグループを生成し、生成されたグループに属するプログラム毎に、前記単一試験情報取得ステップにおいて取得された単一試験情報を特定し、特定した単一試験情報を統合することにより、生成されたグループに属するプログラムの競合試験の内容を表す競合試験情報を生成する競合試験情報生成ステップと、
前記グループ毎に、前記競合試験情報生成ステップにおいて生成された競合試験情報に基づいて、該グループに属するプログラムの競合試験を実行する試験実行ステップと、
を実行させるプログラム。In a facility device that executes at least any two or more of a plurality of programs in parallel, a software test apparatus that executes a competition test of the programs executed in parallel,
For each of the plurality of programs, a single test information acquisition step for acquiring single test information representing the test content of the program;
Based on the combination of the plurality of programs, a group of programs to be executed in parallel in the competitive test is generated, and each program belonging to the generated group is acquired in the single test information acquisition step. A competitive test information generation step for generating competitive test information representing the content of the competitive test of the program belonging to the generated group by identifying the test information and integrating the identified single test information;
A test execution step for executing a competition test of a program belonging to the group based on the competition test information generated in the competition test information generation step for each group;
A program that executes
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2013/063782 WO2014184949A1 (en) | 2013-05-17 | 2013-05-17 | Software testing device, software testing method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP5980420B2 JP5980420B2 (en) | 2016-08-31 |
JPWO2014184949A1 true JPWO2014184949A1 (en) | 2017-02-23 |
Family
ID=51897954
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015516857A Active JP5980420B2 (en) | 2013-05-17 | 2013-05-17 | Software test apparatus, software test method, and program |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP5980420B2 (en) |
WO (1) | WO2014184949A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6676883B2 (en) * | 2015-06-01 | 2020-04-08 | 株式会社Ihi | Simulation equipment |
CN107797928B (en) * | 2017-10-26 | 2021-08-31 | 北京广利核系统工程有限公司 | Instrument control system platform logic algorithm block testing device and method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003099285A (en) * | 2001-09-25 | 2003-04-04 | Toshiba Corp | Method and device for preparing test case related to function competition and program therefor |
JP2010003224A (en) * | 2008-06-23 | 2010-01-07 | Hitachi Ltd | Test information management server, test information management method and program |
JP2011118637A (en) * | 2009-12-03 | 2011-06-16 | Hitachi Ltd | System test specification generation device and test device |
-
2013
- 2013-05-17 WO PCT/JP2013/063782 patent/WO2014184949A1/en active Application Filing
- 2013-05-17 JP JP2015516857A patent/JP5980420B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
WO2014184949A1 (en) | 2014-11-20 |
JP5980420B2 (en) | 2016-08-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20140236997A1 (en) | Controller, information processing apparatus, and recording medium | |
CN104049122B (en) | Hand-held measuring system with optional option | |
KR20130040254A (en) | Control program generation device, control program generation program, and control program generation method | |
JP5980420B2 (en) | Software test apparatus, software test method, and program | |
JP5748868B2 (en) | Equipment management device, equipment management system, equipment management method, and program | |
JP2009294846A (en) | Test case generator, and test case generation program and method | |
CN108196861A (en) | A kind of data updating method and its diagnostic device | |
US20110271266A1 (en) | Systems, methods, and apparatus for deploying application code change configurations for multiple target controllers | |
JP4906286B2 (en) | Software development environment system | |
JP5521889B2 (en) | Automatic program generator | |
JP2017224063A (en) | Plant controller testing device and testing method | |
TW202017625A (en) | Training processing device, mediation device, training system, and training process method | |
JP6541420B2 (en) | Diagnostic device, diagnostic method, and program | |
JP5350949B2 (en) | Nonvolatile memory test method and memory test apparatus | |
JP6249803B2 (en) | Inverter test system | |
WO2016135821A1 (en) | Inspection device, inspection method and program | |
JP6964439B2 (en) | Equipment test run system | |
JP6045681B2 (en) | Equipment, equipment analysis system, operation control method, and program | |
JP6207888B2 (en) | Information processing device | |
KR20130065706A (en) | Software generation device, software generation method and program | |
JP2018055389A (en) | Program creation support method | |
KR101785889B1 (en) | Apparatus and method for determining priority of debugging test items associated with debugging test program of semiconductor | |
JP5303968B2 (en) | Elevator program verification system | |
JP2017041127A (en) | Test device | |
CN105022331A (en) | programmable logic controller and control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
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: 20160628 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20160726 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5980420 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
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 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |