JP2014115884A - Test case generation system - Google Patents

Test case generation system Download PDF

Info

Publication number
JP2014115884A
JP2014115884A JP2012270424A JP2012270424A JP2014115884A JP 2014115884 A JP2014115884 A JP 2014115884A JP 2012270424 A JP2012270424 A JP 2012270424A JP 2012270424 A JP2012270424 A JP 2012270424A JP 2014115884 A JP2014115884 A JP 2014115884A
Authority
JP
Japan
Prior art keywords
test case
input
output
control device
control
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
Application number
JP2012270424A
Other languages
Japanese (ja)
Other versions
JP5901505B2 (en
Inventor
Ryoichi Watanabe
亮一 渡邉
Tokiko Shibazaki
登紀子 柴崎
Yosuke Asai
陽介 浅井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2012270424A priority Critical patent/JP5901505B2/en
Publication of JP2014115884A publication Critical patent/JP2014115884A/en
Application granted granted Critical
Publication of JP5901505B2 publication Critical patent/JP5901505B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a test case generation system which can generate test cases corresponding to all system configurations of a distributed control system which dynamically changes the system configuration.SOLUTION: An input/output wiring diagram 31 is described including processing, a device to be controlled, as input/output information thereof, and range information of a control device. System configuration information 35 indicates information on a relation between the control device and the device to be controlled, and the range information of the control device. Input-output data information 36 indicates a range of input/output values. A test case generation part 34 generates a test case on the basis of the information extracted from the input/output wiring diagram 31, the system configuration information 35, and the input-output data information 36.

Description

本発明は、複数の制御装置がネットワークで接続され、システム構成が動的に変化する分散制御システムにおいて、複数のシステム構成におけるテストケースを漏れ無く記述するためのテストケース生成システムに関するものである。   The present invention relates to a test case generation system for describing test cases in a plurality of system configurations without omission in a distributed control system in which a plurality of control devices are connected via a network and the system configuration dynamically changes.

ネットワークを介して複数の制御装置が接続され、システム構成が動的に変化する分散制御システムでは、同一システムの同一機能確認テストにおいて、種々の異なるテスト環境でテストを行う必要がある。
従来のテストケース生成システムでは、テスト対象のソースコードを解析し、モジュールの出力値に関係する代入文や条件分岐文に利用されている数値や変数を抽出し、入力値の取り得る範囲を求めることにより、無駄のないテストケースとしての「入力値」と「期待値(出力値)」を生成するものがあった(例えば、特許文献1参照)。
また、この他にも、テスト環境・条件別に異なるテストデータを、変数として共通テストケースに記述し、予め用意したテストデータリストを参照して、複数のテスト環境・条件に対応するテストケースを生成するシステムがあった(例えば、特許文献2参照)。
In a distributed control system in which a plurality of control devices are connected via a network and the system configuration dynamically changes, it is necessary to perform tests in various different test environments in the same function confirmation test of the same system.
In the conventional test case generation system, the source code to be tested is analyzed, and numerical values and variables used in assignment statements and conditional branch statements related to the output value of the module are extracted to obtain the range of input values. As a result, there are some which generate “input value” and “expected value (output value)” as a test case without waste (see, for example, Patent Document 1).
In addition, different test data for each test environment / condition is described as a variable in a common test case, and a test case corresponding to multiple test environments / conditions is generated by referring to a test data list prepared in advance. There is a system that performs this (for example, see Patent Document 2).

特開2009−32133号公報JP 2009-32133 A 特開平7−93185号公報JP-A-7-93185

しかしながら、複数の制御装置がネットワークで接続され、テスト環境・条件ごとにシステム構成が変化する分散制御システムのテストにおいては、同一機能のテストを複数のシステム構成で実施する必要があり、テストケースを漏れ無く抽出することが困難である。   However, in a distributed control system test in which multiple control devices are connected via a network and the system configuration changes depending on the test environment and conditions, it is necessary to perform tests of the same function with multiple system configurations. It is difficult to extract without leakage.

このような分散制御システムのソフトウェアは、システム構成のパラメータをテスト対象のモジュールとは別で管理していることが多く、特許文献1に記載されているようにソースコードを解析するシステムでは、同一プログラムであってもシステム構成によって入力データの取得範囲が変化する分散制御システムのテストケースを抽出することは困難であった。
また、特許文献2では、テストケースにおける変動部を変数として記述し、テストデータリストと組み合わせてテスト条件ごとのテストケースを作成することを示しているが、監視制御対象装置の位置だけでなく、数も変動する分散制御システムでは、変動部を単純に変数で表現することは困難である。
Such distributed control system software often manages system configuration parameters separately from modules to be tested, and is the same in a system that analyzes source code as described in Patent Document 1. Even for a program, it is difficult to extract a test case of a distributed control system whose input data acquisition range varies depending on the system configuration.
Further, Patent Document 2 describes that a variable part in a test case is described as a variable and creates a test case for each test condition in combination with a test data list, but not only the position of the monitoring control target device, In a distributed control system in which the number fluctuates, it is difficult to simply represent the fluctuation part as a variable.

この発明は上記のような課題を解決するためになされたもので、システム構成が動的に変化するような分散制御システムであっても全てのシステム構成に対応するテストケースを漏れ無く作成することのできるテストケース生成システムを得ることを目的とする。   The present invention has been made to solve the above problems, and even in a distributed control system in which the system configuration changes dynamically, test cases corresponding to all system configurations can be created without omission. The purpose is to obtain a test case generation system that can be used.

この発明に係るテストケース生成システムは、複数の制御装置が通信接続され、かつ、個々の制御装置が、各々特定の制御対象装置を制御する分散制御システムにおける制御装置の処理に関するテストケースを生成するテストケース生成システムであって、処理と処理の入出力とが記述され、入出力が、どの制御対象装置に対応した入出力であり、かつ、どの制御装置に対応した入出力であるかを示す制御装置の範囲情報とを含んで記述された入出力配線図から処理と入出力の情報を入出力関係情報として抽出する入出力解析部と、個々の制御装置がどの制御対象装置を制御するかを示すと共に、制御装置の範囲情報を示すシステム構成情報と、入出力がどのような値を取るかの値域を示す入出力データ情報と、システム構成情報と入出力関係情報とに基づいて、テストケースを生成する処理に対応した入出力となる制御対象装置と制御装置を特定し、かつ、入出力データの値を入出力データ情報から取得して、制御装置と入出力データの値域に対応したテストケースを生成するテストケース生成部を備えたものである。   In the test case generation system according to the present invention, a plurality of control devices are communicatively connected, and each control device generates a test case related to the processing of the control device in the distributed control system that controls a specific control target device. This is a test case generation system that describes processing and input / output of processing, and indicates which control device corresponds to the input / output and which control device corresponds to the input / output Input / output analysis unit that extracts processing and input / output information as input / output relation information from the input / output wiring diagram described including the range information of the control device, and which control target device each control device controls System configuration information indicating the range information of the control device, input / output data information indicating the value range of input / output, system configuration information and input / output Based on the information, the control target device and the control device to be input / output corresponding to the process for generating the test case are specified, and the value of the input / output data is obtained from the input / output data information to enter the control device. A test case generation unit that generates a test case corresponding to the range of the output data is provided.

この発明のテストケース生成システムは、処理と処理の入出力とが記述され、入出力が、どの制御対象装置に対応した入出力であり、かつ、どの制御装置に対応した入出力であるかを示す制御装置の範囲情報とを含んで記述された入出力配線図と、個々の制御装置がどの制御対象装置を制御するかを示すと共に、制御装置の範囲情報を示すシステム構成情報と、入出力がどのような値を取るかの値域を示す入出力データ情報とに基づいてテストケースを生成するようにしたので、システム構成が動的に変化するような分散制御システムであっても全てのシステム構成に対応するテストケースを漏れ無く作成することができる。   In the test case generation system of the present invention, processing and processing input / output are described, and input / output corresponding to which control target device is input / output corresponding to which control device. I / O wiring diagram described including the range information of the control device to be shown, system control information indicating the range information of the control device, input / output, indicating which control target device each control device controls Since test cases are generated based on input / output data information indicating the range of values taken by the system, all systems, even distributed control systems where the system configuration changes dynamically Test cases corresponding to the configuration can be created without omission.

この発明の実施の形態1によるテストケース生成システムのテスト対象とする分散制御システムを示す構成図である。It is a block diagram which shows the distributed control system made into the test object of the test case generation system by Embodiment 1 of this invention. この発明の実施の形態1によるテストケース生成システムのテスト対象となる分散制御システムの構成例を示す説明図である。It is explanatory drawing which shows the structural example of the distributed control system used as the test object of the test case generation system by Embodiment 1 of this invention. この発明の実施の形態1によるテストケース生成システムを示すブロック図である。It is a block diagram which shows the test case production | generation system by Embodiment 1 of this invention. この発明の実施の形態1によるテストケース生成システムの入出力配線図の記述例を示す説明図である。It is explanatory drawing which shows the example of description of the input-output wiring diagram of the test case generation system by Embodiment 1 of this invention. この発明の実施の形態1によるテストケース生成システムの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the test case production | generation system by Embodiment 1 of this invention. この発明の実施の形態1によるテストケース生成システムの入出力配線図の記入例を示す説明図である。It is explanatory drawing which shows the example of entry of the input-output wiring diagram of the test case generation system by Embodiment 1 of this invention. この発明の実施の形態1によるテストケース生成システムの編成パタンの記述例を示す説明図である。It is explanatory drawing which shows the example of a description of the composition pattern of the test case generation system by Embodiment 1 of this invention. この発明の実施の形態1によるテストケース生成システムの制御対象装置の配置情報の記述例を示す説明図である。It is explanatory drawing which shows the example of description of the arrangement | positioning information of the control object apparatus of the test case generation system by Embodiment 1 of this invention. この発明の実施の形態1によるテストケース生成システムの入出力データ情報の記述例を示す説明図である。It is explanatory drawing which shows the example of a description of the input-output data information of the test case generation system by Embodiment 1 of this invention. この発明の実施の形態1によるテストケース生成システムで生成されたテストケースの一部を示す説明図である。It is explanatory drawing which shows a part of test case produced | generated by the test case production | generation system by Embodiment 1 of this invention. この発明の実施の形態2によるテストケース生成システムを示すブロック図である。It is a block diagram which shows the test case production | generation system by Embodiment 2 of this invention. この発明の実施の形態3によるテストケース生成システムを示すブロック図である。It is a block diagram which shows the test case production | generation system by Embodiment 3 of this invention. この発明の実施の形3によるテストケース生成システムの同一処理判定部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the same process determination part of the test case generation system by Embodiment 3 of this invention. この発明の実施の形態4によるテストケース生成システムを示すブロック図である。It is a block diagram which shows the test case production | generation system by Embodiment 4 of this invention. この発明の実施の形態4によるテストケース生成システムの他の例を示すブロック図である。It is a block diagram which shows the other example of the test case production | generation system by Embodiment 4 of this invention.

実施の形態1.
図1は本発明で示すテストケース生成システムのテスト対象となる分散制御システムの構成を示したブロック図である。図1において、分散制御システム1は、複数の制御装置10−1〜10−nが制御ネットワーク11で接続され、複数の制御装置10−1〜10−nは制御ネットワーク11を通じて互いに通信する。制御装置10−1〜10−nは、入出力ネットワーク12−1〜12−nを介して、制御対象装置13−1〜13−m,14−1〜14−mを監視・制御する。本発明では、分散制御システム1を構成する制御装置10−1〜10−nのソフトウェアをテストするためのテストケースを生成するものである。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing the configuration of a distributed control system to be tested by the test case generation system shown in the present invention. In FIG. 1, a distributed control system 1 includes a plurality of control devices 10-1 to 10-n connected via a control network 11, and the plurality of control devices 10-1 to 10-n communicate with each other through the control network 11. The control devices 10-1 to 10-n monitor and control the control target devices 13-1 to 13-m and 14-1 to 14-m via the input / output networks 12-1 to 12-n. In the present invention, a test case for testing software of the control devices 10-1 to 10-n constituting the distributed control system 1 is generated.

図2は本発明で示すテストケース生成システムのテスト対象となる分散制御システム1のシステム構成例を示したものである。図2中の制御装置21〜27は図1における制御装置10−1〜10−nに相当するものである。本発明では、システム稼働時に切り離されることのないシステム構成の最小単位を「編成」と呼ぶこととする。図2のシステムは、制御装置21〜24により構成される編成1aと、制御装置25〜27により構成される編成1bと、編成1aと編成1bを連結させた構成の編成1cの3通りのパタンで構成される。   FIG. 2 shows a system configuration example of the distributed control system 1 to be tested by the test case generation system shown in the present invention. Control devices 21 to 27 in FIG. 2 correspond to the control devices 10-1 to 10-n in FIG. In the present invention, the minimum unit of the system configuration that is not disconnected when the system is operating is referred to as “organization”. The system shown in FIG. 2 includes three patterns: a knitting 1a composed of the control devices 21 to 24, a knitting 1b composed of the control devices 25 to 27, and a knitting 1c configured by connecting the knitting 1a and the knitting 1b. Consists of.

このように、本発明は、システム構成の変化のパタンが既知かつ有限である分散制御システム1を対象とする。本実施の形態を適用可能な分散制御システム1として、例えば列車に搭載される様々な機器の監視制御を行う「列車監視制御システム」が挙げられる。列車は、走行路線によって取りうるシステム構成のパタン(例えば6両編成、4両編成等)が予め決まっており、列車監視制御システムにおいても、システム構成のパタンを予め定義し、管理しておくことが可能である。列車は、システム構成のパタンによって、監視制御対象装置(例えば、モータ、ブレーキ、空調などの列車に搭載される機器)の数や位置が異なるため、従来、列車監視制御システムのテストケースを作成する場合、システム構成に応じて漏れ無くテストケースを作成することは困難であった。   As described above, the present invention is directed to the distributed control system 1 in which the change pattern of the system configuration is known and finite. As a distributed control system 1 to which this embodiment can be applied, for example, there is a “train monitoring control system” that performs monitoring control of various devices mounted on a train. For trains, system configuration patterns (for example, 6-car trains, 4-car trains, etc.) that can be taken according to the travel route are determined in advance, and the system configuration patterns must be defined and managed in the train monitoring control system. Is possible. Since trains differ in the number and position of devices to be monitored and controlled (for example, devices mounted on trains such as motors, brakes, and air conditioners) depending on the system configuration pattern, a test case for a train monitoring and control system is conventionally created. In this case, it was difficult to create a test case without omission according to the system configuration.

図3は本発明の実施の形態1で示すテストケース生成システムの構成を示したブロック図である。図示のように、テストケース生成システムは、入出力配線図31、入出力関係解析部32、入出力関係情報33、テストケース生成部34、システム構成情報35、入出力データ情報36、テストケース37を備えている。入出力配線図31は、処理と処理の入出力とが記述され、入出力が、どの制御対象装置に対応した入出力であり、かつ、どの制御装置に対応した入出力であるかを示す制御装置の範囲情報とを含んで記述されたものである。入出力関係解析部32は、入出力配線図31の構造を解析し、入出力の接続関係や入出力データの名称や範囲を取得し、入出力関係情報33として保存する。テストケース生成部34は、入出力関係情報33と、予め定義されたシステム構成情報35と、同じく予め定義された入出力データ情報36とから、テストケース37を生成する。システム構成情報35は、分散制御システムの設計時に定義されたシステム構成を管理するための情報である。システム構成情報35としては、システムが取りうる編成とその組み合わせのパタン(編成パタンと呼ぶ)、監視制御対象装置の数や位置を示す配置情報などが管理される。入出力データ情報36は、テスト対象となるモジュールの入出力データの名称、データの最小値、最大値や正常範囲、異常範囲などを管理するための情報である。   FIG. 3 is a block diagram showing the configuration of the test case generation system shown in Embodiment 1 of the present invention. As shown, the test case generation system includes an input / output wiring diagram 31, an input / output relationship analysis unit 32, input / output relationship information 33, a test case generation unit 34, system configuration information 35, input / output data information 36, and a test case 37. It has. The input / output wiring diagram 31 describes processing and input / output of processing, and the control indicating which input / output corresponds to which control target device and which control device corresponds to the input / output. It is described including the range information of the device. The input / output relationship analysis unit 32 analyzes the structure of the input / output wiring diagram 31, acquires the input / output connection relationship and the name and range of the input / output data, and stores the input / output relationship information 33. The test case generation unit 34 generates a test case 37 from the input / output relationship information 33, the predefined system configuration information 35, and the predefined input / output data information 36. The system configuration information 35 is information for managing the system configuration defined at the time of designing the distributed control system. As the system configuration information 35, knitting and combination patterns (referred to as knitting patterns) that the system can take, arrangement information indicating the number and positions of monitoring control target devices, and the like are managed. The input / output data information 36 is information for managing the name of input / output data of the module to be tested, the minimum value, maximum value, normal range, abnormal range, and the like of the data.

図4は入出力配線図31の記述例を示したものである。入出力配線図31は、入力41a,41b、処理42、出力43a,43bとから構成される。処理42は本発明で示すテストケース生成システムのテスト対象になるモジュールを示し、入出力配線図31上において、必ず1つだけ記述される。
入力41a,41bは、処理42に対する入力データを示すものであり、1つの入出力配線図31上において、必ず1つ以上記述される。入力41a,41bの箱の中央には、入力データ名称が記述される。入力データ名称には、図3における入出力データ情報36において定義される入出力データ名称を用いる。入力41a,41bの上部には、データの範囲44を記述する。データの範囲44は、監視制御対象装置名称と範囲指定子をコンマで区切って記述する。監視制御対象装置名称には、データの取得元/設定先である監視制御対象装置の名称が記述される。また、範囲指定子には、データの取得/設定する範囲をアルファベットの記号で記述する。
FIG. 4 shows a description example of the input / output wiring diagram 31. The input / output wiring diagram 31 includes inputs 41a and 41b, a process 42, and outputs 43a and 43b. The process 42 indicates a module to be tested by the test case generation system shown in the present invention, and only one is described on the input / output wiring diagram 31.
Inputs 41 a and 41 b indicate input data for the process 42, and one or more inputs are always described on one input / output wiring diagram 31. An input data name is described in the center of the boxes of the inputs 41a and 41b. As the input data name, the input / output data name defined in the input / output data information 36 in FIG. 3 is used. A data range 44 is described above the inputs 41a and 41b. The data range 44 is described by separating the monitoring control target device name and the range specifier by a comma. The monitoring control target device name describes the name of the monitoring control target device that is the data acquisition source / setting destination. In the range specifier, the range to acquire / set data is described with alphabetic symbols.

出力43a,43bは、処理42に対する出力データを示すものであり、1つの入出力配線図31上において、必ず1つ以上記述される。出力43a,43bも入力41a,41bと同様に、箱の中央に出力データ名称を、箱の上部にデータの範囲44を記述する。   The outputs 43a and 43b indicate output data for the processing 42, and one or more outputs are always described on one input / output wiring diagram 31. Similarly to the inputs 41a and 41b, the outputs 43a and 43b describe the output data name at the center of the box and the data range 44 at the top of the box.

例えば、列車監視制御システムの場合、複数編成を含む列車全体からデータを取得する場合や列車全体にデータを設定する場合は範囲指定子に「T」を、編成内からデータを取得する場合や編成内にデータを設定する場合は範囲指定子に「F」を、自ノードのみのデータを取得/設定する場合は範囲指定子に「S」を記述する。データの範囲44として、「モータ,T」と記述する場合、列車全体のうち、モータを監視・制御する制御装置に対してのみ、データの入出力が行われることを示す。モータを監視・制御する制御装置の数や位置は、列車の構成により変化するが、入出力配線図31では、列車構成を直接記述しないで、データの範囲を記述するため、同一の機能であれば、全ての列車構成において同一の入出力配線図31を用いることができる。このように、入出力配線図31では、システム構成を抽象的に記述できるので、抽象度の高いテストケース記述方法として用いることができる。   For example, in the case of a train monitoring control system, when data is acquired from the entire train including multiple trains or when data is set for the entire train, the range specifier is set to “T” and data is acquired from within the train If the data is set in the field, “F” is described in the range specifier, and “S” is described in the range specifier when only the data of the own node is acquired / set. When “motor, T” is described as the data range 44, it indicates that data is input / output only to a control device that monitors and controls the motor in the entire train. The number and position of the control devices that monitor and control the motor vary depending on the train configuration, but the input / output wiring diagram 31 describes the range of data without describing the train configuration directly. For example, the same input / output wiring diagram 31 can be used in all train configurations. Thus, in the input / output wiring diagram 31, the system configuration can be described abstractly, so that it can be used as a test case description method with a high degree of abstraction.

図5はテストケース生成部34の動作を記述したフローチャートである。
まず、ステップS1において、システム構成情報35から、テスト対象システムの取りうる編成パタンのリストを取得する。
ループL1において、ステップS1によって取得した編成パタンのパタン数だけ、L1Eまでの処理を繰り返す。例えば、システム構成リストが4両構成、6両構成の2パタンの場合は、4両、6両のそれぞれのパタンに関してL1〜L1Eまでの処理を実行する。
ステップS2では、入出力関係情報33から入出力データの範囲情報を取得し、システム構成情報35で定義された監視制御対象装置の配置情報を取得する。入出力データの範囲情報(監視制御対象装置名称と範囲指定子)と、監視制御対象装置の配置情報を組み合わせることで、テストケースで用いる入出力データのリストを取得する。
ステップS3では、入出力データ情報36から、ステップS2で取得した入出力データリストの各データの値域を取得する。ここでの値域は、最大値、最小値、正常値の範囲、異常値の範囲を指す。
FIG. 5 is a flowchart describing the operation of the test case generator 34.
First, in step S1, a list of knitting patterns that the test target system can take is acquired from the system configuration information 35.
In the loop L1, the processes up to L1E are repeated for the number of knitting pattern patterns acquired in step S1. For example, when the system configuration list has two patterns of four-car configuration and six-car configuration, the processing from L1 to L1E is executed for each of the patterns of four cars and six cars.
In step S 2, the input / output data range information is acquired from the input / output relationship information 33, and the monitoring control target device arrangement information defined by the system configuration information 35 is acquired. A list of input / output data used in the test case is acquired by combining the range information (monitor control target device name and range specifier) of the input / output data and the placement information of the monitor control target device.
In step S3, the value range of each data in the input / output data list acquired in step S2 is acquired from the input / output data information 36. The value range here refers to the maximum value, minimum value, normal value range, and abnormal value range.

ループL2では、ステップS2で取得した入出力データリストを用いてテストケースを作成していく。ループL2では、テストケースの全組み合わせを出力できるまでL2〜L2Eの処理を繰り返す。
ステップS4は、ステップS2で取得した入出力データリストのうち、入力データに関するテストケースを生成する。具体的には、ステップS3で取得した値域を元に、正常値または異常値を入力データに代入するテストケースを生成する。テストケース生成の際には、一般的なブラックボックステストに用いられる「同値分割法」と「境界値分析」を用いて代表値を決定する構成を取っても良い。
ステップS5は、ステップS2で取得した入出力データリストのうち、出力データに関するテストケースを生成する。本実施の形態では、出力に対する期待値を自動的に計算する機能は有しないため、期待値の部分を空欄として、出力結果を照合するテストケースを出力する。この時、入出力データ情報36で取得した値域をテストケースのコメントとして出力し、テストケース設計の際の助けとなるようにしても良い。
ステップS4,S5を全ての入力データの組み合わせに対して実施し、さらにステップS2からステップS5までのステップを全編成パタンで繰り返すことで、全ての編成パタンに対応するテストケースを漏れ無く作成することが可能になる。
In the loop L2, a test case is created using the input / output data list acquired in step S2. In the loop L2, the processes of L2 to L2E are repeated until all combinations of test cases can be output.
In step S4, a test case relating to input data is generated from the input / output data list acquired in step S2. Specifically, based on the range acquired in step S3, a test case for substituting normal values or abnormal values into input data is generated. At the time of test case generation, a configuration may be adopted in which representative values are determined using “equivalence division method” and “boundary value analysis” used in a general black box test.
In step S5, a test case relating to output data is generated from the input / output data list acquired in step S2. In this embodiment, since there is no function for automatically calculating an expected value for output, a test case for collating output results is output with the expected value portion blank. At this time, the value range acquired by the input / output data information 36 may be output as a test case comment to assist in test case design.
Steps S4 and S5 are performed for all combinations of input data, and the steps from step S2 to step S5 are repeated for all the knitting patterns, so that test cases corresponding to all the knitting patterns are created without omission. Is possible.

以降では、本実施の形態を列車監視制御システムに適用した場合の具体例を説明する。例えば、「運転士が列車内の編成内の両端の車両に配置されるドア開スイッチを押した時に、列車内の全ての速度計が5km/h以内であれば列車内のドアを開く」という「ドア開判定」機能についてのテストケースを作成する具体例を説明する。   Hereinafter, a specific example when the present embodiment is applied to a train monitoring control system will be described. For example, "When the driver pushes the door opening switch placed on the vehicles at both ends of the train in the train, if all speedometers in the train are within 5 km / h, the door in the train is opened." A specific example of creating a test case for the “door open determination” function will be described.

図6に本具体例における入出力配線図31の記入例を示す。ドア開判定処理63は、入力信号「ドア開スイッチ押下」61と入力信号「速度」62、及び、出力信号「ドア開指令」64を持つ。入力信号「ドア開スイッチ押下」61は、列車内の運転台から取得できる情報であり、運転台にあるドア開スイッチが押下されたかどうかの情報が格納される。入力信号「速度」62は、列車内の速度計から取得できる列車の速度情報である。出力信号「ドア開指令」64は、列車内のドアを開くための指令情報である。   FIG. 6 shows an example of entry of the input / output wiring diagram 31 in this specific example. The door open determination process 63 has an input signal “door open switch pressed” 61, an input signal “speed” 62, and an output signal “door open command” 64. The input signal “door open switch pressed” 61 is information that can be acquired from the cab in the train, and stores information on whether or not the door open switch in the cab has been pressed. The input signal “speed” 62 is train speed information that can be acquired from a speedometer in the train. The output signal “door opening command” 64 is command information for opening the door in the train.

図7に本具体例における編成パタンの記述例を示す。編成パタンは、編成パタン名71ごとの制御装置のシステム構成72を表形式で示すものである。図7の例では、4両編成は制御装置1〜4、3両編成は制御装置5〜7、7両編成は制御装置1〜7で構成される。   FIG. 7 shows a description example of the composition pattern in this specific example. The knitting pattern indicates the system configuration 72 of the control device for each knitting pattern name 71 in a table format. In the example of FIG. 7, the four-car train is composed of the control devices 1 to 4, the three-car train is composed of the control devices 5 to 7, and the seven-car train is composed of the control devices 1 to 7.

図8に本具体例における制御対象装置の配置情報の記述例を示す。配置情報は、制御対象装置名81の制御装置番号82ごとの搭載個数を表形式で示すものである。   FIG. 8 shows a description example of the arrangement information of the control target device in this specific example. The arrangement information indicates the number of mounted control device numbers 81 for each control device number 82 in a table format.

図9に本具体例における入出力データ情報の記述例を示す。入出力データ情報は、データ名称91、伝送パケット内のバイトオフセット92、データサイズ93、データの正常範囲94、データの異常範囲95などから構成される。   FIG. 9 shows a description example of input / output data information in this specific example. The input / output data information includes a data name 91, a byte offset 92 in the transmission packet, a data size 93, a normal data range 94, an abnormal data range 95, and the like.

以下、図5のフローチャートに従って、図6の入出力配線図から図7〜図9の情報を元にテストケースを生成する手順を説明する。
まず、ステップS1で図7に示すシステム構成情報35より編成パタンのリストを取得する。ここでは、4両編成、3両編成、7両編成の3パタンが取得される。
次に、ループL1〜L1Eの処理を、ステップS1で抽出した全ての編成パタンに対して実施する。以下では、4両編成の場合を説明する。
A procedure for generating a test case from the input / output wiring diagram of FIG. 6 based on the information of FIGS. 7 to 9 will be described below with reference to the flowchart of FIG.
First, in step S1, a list of knitting patterns is acquired from the system configuration information 35 shown in FIG. Here, three patterns of four-car train, three-car train, and seven-car train are acquired.
Next, the processing of the loops L1 to L1E is performed for all the knitting patterns extracted in step S1. Hereinafter, the case of four-car train will be described.

ステップS2では、まず、図6に示す入出力配線図31から抽出された入出力関係情報33から、入力信号として「ドア開スイッチ押下」61、「速度」62、出力信号として「ドア開指令」64が抽出される。図7に示すシステム構成情報35の編成パタンのリスト情報から、4両編成は制御装置1〜4で構成されることが分かるので、図8に示すシステム構成情報35から制御装置ごとの監視制御対象装置の配置情報を得る。例えば、「ドア開スイッチ押下」信号は、入出力配線図31のデータ範囲として「運転台,T」と指定されているので、運転台の監視制御対象装置数が1以上である制御装置1と制御装置4に対して、入力信号「ドア開スイッチ押下」を設定するテストケースを作成すれば良いことが分かる。   In step S2, first, from the input / output relation information 33 extracted from the input / output wiring diagram 31 shown in FIG. 6, "door open switch press" 61, "speed" 62, and "door open command" as output signals are input signals. 64 are extracted. Since it can be seen from the list information of the composition pattern of the system configuration information 35 shown in FIG. 7 that the four-car train is composed of the control devices 1 to 4, the system control information 35 shown in FIG. Obtain device placement information. For example, since the “door open switch pressed” signal is designated as “driver's cab, T” as the data range of the input / output wiring diagram 31, the control device 1 with one or more monitoring control target devices in the cab is It can be seen that it is sufficient to create a test case for setting the input signal “door open switch pressed” for the control device 4.

ステップS3では、図9に示す入出力データ情報36から、データ名称に対応する値域(正常範囲94と異常範囲95)を取得する。例えば「ドア開スイッチ押下」は、図9より、正常範囲は「ON」、異常範囲は「OFF」である1ビットのデータであることが分かる。
ループL2〜L2Eでは、ステップS2で取得した入力データのリストに関して、ステップS3で取得した値域の全組み合わせに対応するテストケースを作成する。
ステップS4では、ステップS2で取得した入力データのリストに関して、ステップS3で取得した値域のうち、未選択である1つの組み合わせを選択し、テストケースを生成する。例えば、「ドア開スイッチ押下」信号に関しては、(1)制御装置1がON、制御装置4がON、(2)制御装置1がON、制御装置4がOFF、(3)制御装置1がOFF、制御装置4がON、(4)制御装置1がOFF、制御装置4がOFFの4通りのテストケースが生成される。
ステップS5では、出力信号「ドア開指令」に関するテストケースを生成する。本実施の形態では、出力に対する期待値を自動的に計算する機能は有しないため、期待値の部分を空欄とした出力結果を照合するためのテストケースを出力する。期待値に関しては、テスト設計者がテストケース生成後に、手動で入力する。
In step S3, a value range (normal range 94 and abnormal range 95) corresponding to the data name is acquired from the input / output data information 36 shown in FIG. For example, it can be seen from FIG. 9 that “door open switch pressed” is 1-bit data in which the normal range is “ON” and the abnormal range is “OFF”.
In loops L2 to L2E, test cases corresponding to all combinations of the value ranges acquired in step S3 are created for the list of input data acquired in step S2.
In step S4, with respect to the list of input data acquired in step S2, one unselected combination is selected from the value range acquired in step S3, and a test case is generated. For example, regarding the “door open switch pressed” signal, (1) the control device 1 is ON, the control device 4 is ON, (2) the control device 1 is ON, the control device 4 is OFF, and (3) the control device 1 is OFF. Four test cases are generated: the control device 4 is ON, (4) the control device 1 is OFF, and the control device 4 is OFF.
In step S5, a test case relating to the output signal “door opening command” is generated. In this embodiment, since there is no function for automatically calculating an expected value for output, a test case for collating output results with the expected value portion blank is output. The expected value is manually input by the test designer after generating the test case.

図10は、本具体例において、出力されたテストケースの一部を示す。今回の例では、速度が5km/h以下でドア開スイッチを押してドアが正常に開くケースと、速度が6km/h以上でドア開スイッチを押してドアが開かないケースの2通りに関するテストケースの一例を記述している。コマンド101には、実際にテストを実施する際の操作を示すコマンドを記述する。入力データに対して値を設定する場合はSETコマンドを記述する。出力データの値を照合する場合はCHECKコマンドを記述する。制御装置番号102は、SETコマンド、CHECKコマンドの対象となる制御装置番号を示し、データ名称103はSETコマンド、CHECKコマンドの対象となる入出力データの名称を示す。値104は、入力データに対する設定値と、出力データの照合値を示す。出力データの期待値は、テスト設計者がテストケース生成後に、手動で入力する。なお、図10中の#で始まる行は、コメント行を示す。   FIG. 10 shows a part of the output test cases in this specific example. In this example, there are two test cases: the case where the door opens normally when the speed is 5 km / h or less and the door opens normally, and the case where the door is not opened when the speed is 6 km / h or higher and the door is opened. Is described. In the command 101, a command indicating an operation for actually executing the test is described. When setting a value for input data, a SET command is described. When checking the value of output data, a CHECK command is described. The control device number 102 indicates the control device number that is the target of the SET command and the CHECK command, and the data name 103 indicates the name of the input / output data that is the target of the SET command and the CHECK command. A value 104 indicates a set value for the input data and a collation value for the output data. The expected value of the output data is manually input after the test designer generates the test case. Note that a line beginning with # in FIG. 10 indicates a comment line.

このように、本実施の形態では、テストケース生成部34が、システム構成を抽象的に記述した入出力配線図31と予め管理されたシステム構成情報35とからテストケースを生成するので、同一機能のテストを複数のシステム構成で実施する必要がある分散処理システムにおいて、テストケースを漏れ無く抽出することができる。また、入出力配線図31は、システム構成を抽象的に記述しているため、同一機能を持つ別機種での再利用が可能である。   As described above, in the present embodiment, the test case generation unit 34 generates a test case from the input / output wiring diagram 31 that abstractly describes the system configuration and the system configuration information 35 that is managed in advance. In a distributed processing system where it is necessary to perform the above test with a plurality of system configurations, test cases can be extracted without omission. Further, since the input / output wiring diagram 31 describes the system configuration abstractly, it can be reused in different models having the same function.

以上説明したように実施の形態1のテストケース生成システムによれば、複数の制御装置が通信接続され、かつ、個々の制御装置が、各々特定の制御対象装置を制御する分散制御システムにおける制御装置の処理に関するテストケースを生成するテストケース生成システムであって、処理と処理の入出力とが記述され、入出力が、どの制御対象装置に対応した入出力であり、かつ、どの制御装置に対応した入出力であるかを示す制御装置の範囲情報とを含んで記述された入出力配線図から処理と入出力の情報を入出力関係情報として抽出する入出力解析部と、個々の制御装置がどの制御対象装置を制御するかを示すと共に、制御装置の範囲情報を示すシステム構成情報と、入出力がどのような値を取るかの値域を示す入出力データ情報と、システム構成情報と入出力関係情報とに基づいて、テストケースを生成する処理に対応した入出力となる制御対象装置と制御装置を特定し、かつ、入出力データの値を入出力データ情報から取得して、制御装置と入出力データの値域に対応したテストケースを生成するテストケース生成部を備えたので、システム構成が動的に変化するような分散制御システムであっても全てのシステム構成に対応するテストケースを漏れ無く作成することができる。   As described above, according to the test case generation system of the first embodiment, a control device in a distributed control system in which a plurality of control devices are communicatively connected and each control device controls a specific control target device. Is a test case generation system that generates a test case related to the process of the process, the process and the input / output of the process are described, the input / output corresponds to which control target device, and which control device corresponds An input / output analysis unit that extracts processing and input / output information as input / output relation information from an input / output wiring diagram including control device range information that indicates whether the input / output is the input / output, and individual control devices Indicates which control target device is to be controlled, system configuration information indicating range information of the control device, input / output data information indicating a value range of input / output, and system Based on the system configuration information and the input / output relation information, the control target device and control device that are the input / output corresponding to the process for generating the test case are specified, and the value of the input / output data is obtained from the input / output data information. Since the test case generation unit that generates test cases corresponding to the control device and the range of input / output data is provided, all system configurations can be used even in distributed control systems where the system configuration changes dynamically. Corresponding test cases can be created without omission.

実施の形態2.
図11は、本発明の実施の形態2におけるテストケース生成システムの構成を示したブロック図である。実施の形態2は、図3に示す実施の形態1の構成に、テストケース抜粋部111と類似度判定部112と代表テストケース113を追加したものである。他の構成は実施の形態1と同様であるため、対応する部分に同一符号を付してその説明を省略する。
類似度判定部112は、システム構成情報35から装置間の類似度を算出する。テストケース抜粋部111は、類似度判定部112が生成する類似度を用いて、テストケース37からテストケースを抜粋し、代表テストケース113として格納するものである。
Embodiment 2. FIG.
FIG. 11 is a block diagram showing the configuration of the test case generation system according to Embodiment 2 of the present invention. In the second embodiment, a test case extraction unit 111, a similarity determination unit 112, and a representative test case 113 are added to the configuration of the first embodiment shown in FIG. Since other configurations are the same as those of the first embodiment, the same reference numerals are given to corresponding portions, and the description thereof is omitted.
The similarity determination unit 112 calculates the similarity between devices from the system configuration information 35. The test case extraction unit 111 extracts a test case from the test case 37 using the similarity generated by the similarity determination unit 112 and stores it as a representative test case 113.

分散制御システムでは、監視制御対象装置の構成が類似することが多く、そのような場合、装置構成の類似する制御装置では、同一のプログラムが実行されることが多い。例えば、列車監視制御システムにおいては、モータ車、客車など、車種によって監視制御対象装置の構成が類似していることが多い。本実施の形態は、分散制御システムの「監視制御対象装置の構成が類似する制御装置において、同一内容の処理が実行されることが多い」という性質を用いてテストケースを抜粋する。   In a distributed control system, the configurations of monitoring and control target devices are often similar, and in such a case, the same program is often executed in control devices having similar device configurations. For example, in a train monitoring and control system, the configuration of the monitoring and control target device is often similar depending on the vehicle type, such as a motor vehicle or a passenger car. In the present embodiment, test cases are extracted using the property that “the same control process is often performed in a control device having a similar configuration of the monitoring control target device” of the distributed control system.

類似度判定部112において、制御装置間の類似度は、監視制御対象装置の有無と個数により決定する。類似度は、例えば、監視制御対象装置の有無がログ解析対象と一致する場合は1ポイント、個数が一致する場合は2ポイントとし、全監視制御対象装置の合計により算出し、ある一定しきい値を超えた制御装置同士は類似していると判定される。本実施の形態では、類似と判定された制御装置同士は、同一処理が実行されるものとして扱う。   In the similarity determination unit 112, the similarity between the control devices is determined by the presence / absence and the number of the monitoring control target devices. The similarity is, for example, 1 point when the presence or absence of the monitoring control target device matches the log analysis target, and 2 points when the number matches, and is calculated by the sum of all the monitoring control target devices. It is determined that the control devices exceeding the threshold are similar. In the present embodiment, the control devices determined to be similar are handled as the same processing being executed.

テストケース抜粋部111は、テストケース生成部34により生成されたテストケース37のうち、類似度判定部112によって装置構成が類似すると判定された制御装置に対して同一の操作を行うテストケースのうちの1つを代表テストケース113として抜粋する。また、テストケース抜粋部111は、装置構成が類似と判定された制御装置に対して、同一内容の確認を行うテストケースのうち1つを、代表テストケース113として抜粋する。   The test case excerpt unit 111 is a test case in which the same operation is performed on the control devices determined to be similar by the similarity determination unit 112 among the test cases 37 generated by the test case generation unit 34. One of these is extracted as a representative test case 113. Further, the test case extraction unit 111 extracts one of the test cases for confirming the same content as the representative test case 113 with respect to the control device determined to have a similar device configuration.

実施の形態2における具体例を図6、図8及び図10を用いて説明する。今、図8に示す監視制御対象装置の配置情報から、制御装置1と制御装置7、及び、制御装置2と制御装置6、及び、制御装置4と制御装置5が、装置構成が類似していると判定されたとする。この時、図6における入力「ドア開スイッチ押下」61や出力「ドア開指令」64のように、同一のデータ名称で複数の制御装置に共通に存在するデータに対するテストケースを生成する際に、類似する制御装置に対する操作や確認を行うテストケースのうち1つを代表テストケースとする。例えば、図10におけるテストケースでは、「ドア開スイッチ」指令を1つの制御装置のみONにするテストケースが、運転台が搭載される制御装置1、制御装置4、制御装置5、制御装置7に対して生成されるが、本具体例では、制御装置1と制御装置7、及び、制御装置4と制御装置5の装置構成が類似と判定されているので、制御装置1、及び、制御装置4のテストケースを代表テストケースとして抽出する。これにより、テストケースを50%削減することができる。また、「ドア開」を確認するテストでは、制御装置1〜7の全ての「ドア開」を確認するテストケースが生成されるが、本具体例では、制御装置1と制御装置7、及び、制御装置2と制御装置6、及び、制御装置4と制御装置5の装置構成が類似と判定されているので、制御装置1、及び、制御装置2、及び、制御装置4を代表テストケースとして選択する。これにより、テストケースを従来の7ケースから4ケースに削減することができ、テストケースを43%削減できる。   A specific example in the second embodiment will be described with reference to FIGS. Now, from the monitoring control target device arrangement information shown in FIG. 8, the control device 1 and the control device 7, the control device 2 and the control device 6, and the control device 4 and the control device 5 have similar device configurations. Suppose that it is determined to be. At this time, when generating a test case for data common to a plurality of control devices with the same data name, such as the input “door open switch press” 61 and the output “door open command” 64 in FIG. One of the test cases for performing operations and confirmations on similar control devices is a representative test case. For example, in the test case in FIG. 10, a test case in which the “door open switch” command is turned on for only one control device is applied to the control device 1, the control device 4, the control device 5, and the control device 7 on which the cab is mounted. In this specific example, since the device configurations of the control device 1 and the control device 7 and the control device 4 and the control device 5 are determined to be similar, the control device 1 and the control device 4 are generated. Are extracted as representative test cases. As a result, the test cases can be reduced by 50%. Further, in the test for confirming “door open”, a test case for confirming all “door open” of the control devices 1 to 7 is generated. In this specific example, the control device 1 and the control device 7, and Since the device configurations of the control device 2 and the control device 6, and the control device 4 and the control device 5 are determined to be similar, the control device 1, the control device 2, and the control device 4 are selected as representative test cases. To do. As a result, the test cases can be reduced from the conventional 7 cases to 4 cases, and the test cases can be reduced by 43%.

以上説明したように、実施の形態2のテストケース生成システムによれば、制御装置と制御対象装置との関係を示す制御装置間の制御対象装置構成の類似度を判定する類似度判定部と、制御対象装置構成の類似する制御装置に対して、同一内容の処理に対応したテストケースのうちの1つを代表テストケースとして抜粋するテストケース抜粋部とを備え、代表テストケースをテストケースとして出力するようにしたので、テストのカバレッジを低下することなくテストケース数を削減することができ、テストケース作成を効率化することができる。   As described above, according to the test case generation system of the second embodiment, the similarity determination unit that determines the similarity of the control target device configuration between the control devices indicating the relationship between the control device and the control target device; A test case excerpt that extracts one of the test cases corresponding to the processing of the same content as a representative test case for a control device having a similar control target device configuration, and outputs the representative test case as a test case As a result, the number of test cases can be reduced without degrading test coverage, and the efficiency of test case creation can be improved.

実施の形態3.
図12は、本発明の実施の形態3におけるテストケース生成システムの構成を示したブロック図であり、図11に示す実施の形態2の構成に、同一処理判定部114を追加したものである。同一処理判定部114は、類似度判定部112で類似と判定された制御装置同士が、同一の処理が実行されるかどうかを判定する。
同一処理判定部114の詳細処理フローを図13に示す。まず、ステップS11で、テスト対象モジュールの入出力配線図31から、入力、または出力の上部に記述されたデータ範囲情報に記述された制御対象装置名称を取得する。次に、ステップS12で、類似度判定部112により類似と判定された制御装置に対して、ステップS11で取得した制御対象装置の搭載個数をシステム構成情報35から取得する。最後に、ステップS13にて、ステップS12で取得した制御対象装置の個数が一致する場合には、同一処理であると判定し、一致しない場合は、同一処理でないと判断する。
同一処理判定部114で同一と判断された入力に関して、テストケース抜粋部111は、同一の操作を行うテストケースのうちの1つを代表テストケース113として抜粋する。
また、同一処理判定部114で同一と判断された出力に関して、テストケース抜粋部111は、同一内容の確認を行うテストケースのうち1つを、代表テストケース113として抜粋する。
Embodiment 3 FIG.
FIG. 12 is a block diagram showing the configuration of the test case generation system according to the third embodiment of the present invention, in which the same process determination unit 114 is added to the configuration of the second embodiment shown in FIG. The same process determination unit 114 determines whether or not the same processing is executed between the control devices determined to be similar by the similarity determination unit 112.
A detailed processing flow of the same processing determination unit 114 is shown in FIG. First, in step S11, the control target device name described in the data range information described above the input or output is acquired from the input / output wiring diagram 31 of the test target module. Next, the number of mounted control target devices acquired in step S11 is acquired from the system configuration information 35 for the control device determined to be similar by the similarity determination unit 112 in step S12. Finally, in step S13, if the number of control target devices acquired in step S12 matches, it is determined that the processes are the same, and if they do not match, it is determined that the processes are not the same.
With respect to inputs determined to be the same by the same process determination unit 114, the test case extraction unit 111 extracts one of the test cases performing the same operation as the representative test case 113.
In addition, regarding the outputs determined to be the same by the same process determination unit 114, the test case extraction unit 111 extracts one of the test cases for checking the same content as the representative test case 113.

以上説明したように、実施の形態3のテストケース生成システムによれば、類似度判定部にて類似と判定された制御装置に対して、入出力配線図で定義された処理の入出力の関係と、システム構成情報に定義された制御対象装置の配置情報とから、制御装置同士が同一の入出力処理を持つかを判定する同一処理判定部を備え、テストケース抜粋部は、同一処理を持つと判定された制御装置に対して代表テストケースを生成するようにしたので、テストケースを削減する際に、誤って同一でない処理のテストケースを削減するといったことを防止することができ、テストケース作成の効率化が図れると共に、テストケースの絞り込み精度を向上させることができる。   As described above, according to the test case generation system of the third embodiment, the input / output relationship of the process defined in the input / output wiring diagram with respect to the control device determined to be similar by the similarity determination unit. And the same processing determination unit that determines whether the control devices have the same input / output processing from the arrangement information of the control target devices defined in the system configuration information, and the test case excerpt unit has the same processing Since a representative test case is generated for a control device that is determined to be a test case, it is possible to prevent a test case from being mistakenly deleted when the test cases are reduced. The efficiency of creation can be improved and the accuracy of narrowing down test cases can be improved.

実施の形態4.
図14は、本発明の実施の形態4におけるテストケース生成システムの構成を示したブロック図である。実施の形態4は、図11に示した実施の形態2の構成に、抜粋回数記憶部115と制御装置別抜粋回数116とを追加したものである。抜粋回数記憶部115は、同一の制御装置のみに対する操作や確認にテストケースが偏らないように、代表テストケースとして抜粋された制御装置番号ごとの抜粋回数を、制御装置別抜粋回数116として記憶する。
Embodiment 4 FIG.
FIG. 14 is a block diagram showing a configuration of a test case generation system according to Embodiment 4 of the present invention. In the fourth embodiment, an extract number storage unit 115 and a control device-specific extract number 116 are added to the configuration of the second embodiment shown in FIG. The extraction frequency storage unit 115 stores the extraction frequency for each control device number extracted as the representative test case as the extraction frequency 116 for each control device so that the test case is not biased to the operation or confirmation for only the same control device. .

テストケース抜粋部111は、テストケースを抜粋する際に、抜粋回数記憶部115に抜粋対象の制御装置の抜粋回数を問い合わせて、抜粋された回数の最も少ない制御装置に対するテストケースを選択するような構成を取る。あるいは、この場合、制御装置ごとに抜粋された回数への重み付けを行ってもよい。
本実施の形態は、実施の形態3と組み合わせて図15のような構成を取ることも可能である。すなわち、実施の形態3の構成に抜粋回数記憶部115と制御装置別抜粋回数116とを追加してもよい。なお、この場合の動作は、実施の形態3において上記の動作と同様であるため、ここでの説明は省略する。
When extracting the test case, the test case extraction unit 111 inquires the extraction number storage unit 115 about the extraction number of the control device to be extracted, and selects the test case for the control device with the smallest number of extractions. Take composition. Alternatively, in this case, the number of times extracted for each control device may be weighted.
This embodiment can also be configured as shown in FIG. 15 in combination with the third embodiment. That is, the extraction number storage unit 115 and the number of extractions 116 for each control device may be added to the configuration of the third embodiment. Since the operation in this case is the same as the above-described operation in the third embodiment, the description thereof is omitted here.

以上説明したように、実施の形態4のテストケース生成システムによれば、テストケースとして抜粋された制御装置別の抜粋回数を記憶する抜粋回数記憶部を備え、テストケース抜粋部は、テストケースから代表テストケースを抜粋する際に、抜粋された回数の最も少ない制御装置に対するテストケースを代表テストケースとして抜粋するようにしたので、テストケース数を削減した際にも特定の制御装置にテストケースが集中しない、均一なテストケースを作成することができる。   As described above, according to the test case generation system of the fourth embodiment, the extraction number storage unit that stores the number of extractions for each control device extracted as a test case is provided, and the test case extraction unit is obtained from the test case. When extracting a representative test case, the test case for the control device with the fewest number of extractions was selected as the representative test case, so even when the number of test cases was reduced, a test case could be added to a specific control device. It is possible to create a uniform test case that does not concentrate.

なお、本願発明はその発明の範囲内において、各実施の形態の自由な組み合わせ、あるいは各実施の形態の任意の構成要素の変形、もしくは各実施の形態において任意の構成要素の省略が可能である。   In the present invention, within the scope of the invention, any combination of the embodiments, or any modification of any component in each embodiment, or omission of any component in each embodiment is possible. .

1 分散制御システム、1a,1b,1c 編成、10−1〜10−n、21〜27 制御装置、11 制御ネットワーク、12−1〜12−n 入出力ネットワーク、13−1〜13−m,14−1〜14−m 制御対象装置、31 入出力配線図、32 入出力関係解析部、33 入出力関係情報、34 テストケース生成部、35 システム構成情報、36 入出力データ情報、37 テストケース、41a,41b 入力、42 処理、43a,43b 出力、44 データの範囲、111 テストケース抜粋部、112 類似度判定部、113 代表テストケース、114 同一処理判定部、115 抜粋回数記憶部、116 制御装置別抜粋回数。   DESCRIPTION OF SYMBOLS 1 Distributed control system, 1a, 1b, 1c organization, 10-1 to 10-n, 21 to 27 control device, 11 control network, 12-1 to 12-n input / output network, 13-1 to 13-m, 14 -1 to 14-m Control target device, 31 I / O wiring diagram, 32 I / O relationship analysis unit, 33 I / O relationship information, 34 Test case generation unit, 35 System configuration information, 36 I / O data information, 37 Test case, 41a, 41b input, 42 processing, 43a, 43b output, 44 data range, 111 test case excerpt section, 112 similarity determination section, 113 representative test case, 114 identical process determination section, 115 excerpt count storage section, 116 control device The number of excerpts.

Claims (4)

複数の制御装置が通信接続され、かつ、個々の制御装置が、各々特定の制御対象装置を制御する分散制御システムにおける前記制御装置の処理に関するテストケースを生成するテストケース生成システムであって、
前記処理と当該処理の入出力とが記述され、当該入出力が、どの制御対象装置に対応した入出力であり、かつ、どの制御装置に対応した入出力であるかを示す制御装置の範囲情報とを含んで記述された入出力配線図から前記処理と入出力の情報を入出力関係情報として抽出する入出力解析部と、
前記個々の制御装置がどの制御対象装置を制御するかを示すと共に、前記制御装置の範囲情報を示すシステム構成情報と、
前記入出力がどのような値を取るかの値域を示す入出力データ情報と、
前記システム構成情報と前記入出力関係情報とに基づいて、テストケースを生成する処理に対応した入出力となる制御対象装置と制御装置を特定し、かつ、入出力データの値を前記入出力データ情報から取得して、前記制御装置と前記入出力データの値域に対応したテストケースを生成するテストケース生成部を備えたテストケース生成システム。
A test case generation system in which a plurality of control devices are connected in communication, and each control device generates a test case related to processing of the control device in a distributed control system that controls a specific control target device,
Range information of the control device that describes the process and the input / output of the process, and that the input / output corresponds to which control target device, and which control device corresponds to the input / output An input / output analysis unit that extracts the processing and input / output information as input / output relation information from an input / output wiring diagram including
System control information indicating which control target device the individual control device controls, and range information of the control device;
Input / output data information indicating a value range of the input / output, and
Based on the system configuration information and the input / output relation information, a control target device and a control device that are input / output corresponding to a process for generating a test case are specified, and the value of the input / output data is set to the input / output data. A test case generation system including a test case generation unit that generates a test case corresponding to a range of the control device and the input / output data, acquired from information.
制御装置と制御対象装置との関係を示す前記制御装置間の制御対象装置構成の類似度を判定する類似度判定部と、
前記制御対象装置構成の類似する制御装置に対して、同一内容の処理に対応したテストケースのうちの1つを代表テストケースとして抜粋するテストケース抜粋部とを備え、
前記代表テストケースをテストケースとして出力することを特徴とする請求項1記載のテストケース生成システム。
A similarity determination unit that determines the similarity of the control target device configuration between the control devices indicating the relationship between the control device and the control target device;
A test case excerpt unit that extracts one of the test cases corresponding to the processing of the same content as a representative test case for a similar control device of the control target device configuration;
The test case generation system according to claim 1, wherein the representative test case is output as a test case.
類似度判定部にて類似と判定された制御装置に対して、入出力配線図で定義された処理の入出力の関係と、システム構成情報に定義された制御対象装置の配置情報とから、制御装置同士が同一の入出力処理を持つかを判定する同一処理判定部を備え、
テストケース抜粋部は、同一処理を持つと判定された制御装置に対して代表テストケースを生成することを特徴とする請求項2記載のテストケース生成システム。
For control devices determined to be similar by the similarity determination unit, control is performed based on the input / output relationship of the process defined in the input / output wiring diagram and the arrangement information of the control target device defined in the system configuration information. Equipped with the same processing determination unit that determines whether devices have the same input / output processing,
The test case generation system according to claim 2, wherein the test case excerpt unit generates a representative test case for a control device determined to have the same processing.
テストケースとして抜粋された制御装置別の抜粋回数を記憶する抜粋回数記憶部を備え、
テストケース抜粋部は、テストケースから代表テストケースを抜粋する際に、抜粋された回数の最も少ない制御装置に対するテストケースを代表テストケースとして抜粋することを特徴とする請求項2または請求項3のテストケース生成システム。
An extract number storage unit that stores the number of extracts for each control device extracted as a test case is provided.
The test case excerpt section extracts a test case for the control device with the smallest number of extractions as a representative test case when extracting the representative test case from the test case. Test case generation system.
JP2012270424A 2012-12-11 2012-12-11 Test case generation system Active JP5901505B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012270424A JP5901505B2 (en) 2012-12-11 2012-12-11 Test case generation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012270424A JP5901505B2 (en) 2012-12-11 2012-12-11 Test case generation system

Publications (2)

Publication Number Publication Date
JP2014115884A true JP2014115884A (en) 2014-06-26
JP5901505B2 JP5901505B2 (en) 2016-04-13

Family

ID=51171798

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012270424A Active JP5901505B2 (en) 2012-12-11 2012-12-11 Test case generation system

Country Status (1)

Country Link
JP (1) JP5901505B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016135821A1 (en) * 2015-02-23 2016-09-01 三菱電機株式会社 Inspection device, inspection method and program
CN110968071A (en) * 2018-09-30 2020-04-07 株洲中车时代电气股份有限公司 Method and system for generating functional test case of electric screen cabinet of railway vehicle
US11176178B2 (en) 2017-01-31 2021-11-16 Mitsubishi Electric Corporation Requirement analysis apparatus, requirement analysis method, and computer readable medium
WO2023281614A1 (en) * 2021-07-06 2023-01-12 三菱電機株式会社 Test specification generation device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0830487A (en) * 1994-07-15 1996-02-02 Fujitsu Ltd Method and device for testing program
JP2005242421A (en) * 2004-02-24 2005-09-08 Mitsubishi Electric Corp Test execution managing device for distributed control system
JP2012113538A (en) * 2010-11-25 2012-06-14 Mitsubishi Electric Corp Test table generation device and method for the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0830487A (en) * 1994-07-15 1996-02-02 Fujitsu Ltd Method and device for testing program
JP2005242421A (en) * 2004-02-24 2005-09-08 Mitsubishi Electric Corp Test execution managing device for distributed control system
JP2012113538A (en) * 2010-11-25 2012-06-14 Mitsubishi Electric Corp Test table generation device and method for the same

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016135821A1 (en) * 2015-02-23 2016-09-01 三菱電機株式会社 Inspection device, inspection method and program
JPWO2016135821A1 (en) * 2015-02-23 2017-08-31 三菱電機株式会社 Inspection device, inspection method, and program
US11176178B2 (en) 2017-01-31 2021-11-16 Mitsubishi Electric Corporation Requirement analysis apparatus, requirement analysis method, and computer readable medium
CN110968071A (en) * 2018-09-30 2020-04-07 株洲中车时代电气股份有限公司 Method and system for generating functional test case of electric screen cabinet of railway vehicle
WO2023281614A1 (en) * 2021-07-06 2023-01-12 三菱電機株式会社 Test specification generation device

Also Published As

Publication number Publication date
JP5901505B2 (en) 2016-04-13

Similar Documents

Publication Publication Date Title
US10255168B2 (en) Method and device for generating test cases for autonomous vehicles
CN102033543B (en) Method and system for automatic test-case generation for distributed embedded systems
JP5901505B2 (en) Test case generation system
CN109740222B (en) Testing device and system for automobile networking scene
CN103439961B (en) Automobile electronic control unit diagnostic function test method and system
CN109726061B (en) SoC chip verification method
US9829866B2 (en) Method and apparatus for automatically creating an executable safety function for a device
US11989535B2 (en) Simulation method and recording medium
CN105511906B (en) A kind of video signal platform automatic deployment method, apparatus and system
EP3889782A1 (en) Vehicle log transmission device, vehicle log analysis server, vehicle log analysis system, and vehicle log transmission/reception method
CN112364434B (en) Fault positioning method and system based on vehicle state BIM model
CN104101504A (en) Motor car automatic testing method and device
Lee et al. Requirements modeling and automated requirements-based test generation
Vöst et al. Trace-based test selection to support continuous integration in the automotive industry
Daun et al. Collaborating multiple system instances of smart cyber-physical systems: a problem situation, solution idea, and remaining research challenges
US11156649B2 (en) Transport unit having at least one installation
De Oliveira et al. Supporting the automated generation of modular product line safety cases
Falcone et al. Modeling and simulation for the performance evaluation of the on-board communication system of a metro train
US9561814B2 (en) Method for operating an automatic train control system and automatic train control system
Bucher et al. Automated assessment of E/E-architecture variants using an integrated model-and simulation-based approach
US20160224456A1 (en) Method for verifying generated software, and verifying device for carrying out such a method
US20220269593A1 (en) Automatic generation of integrated test procedures using system test procedures
CN113220345B (en) Method, device, equipment and storage medium for processing instruction block
CN106354930B (en) A kind of self-adapting reconstruction method and system of spacecraft
Kobayashi et al. The effectiveness of D-Case application knowledge on a safety process

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150424

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160128

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: 20160209

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160308

R150 Certificate of patent or registration of utility model

Ref document number: 5901505

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250