JP2020009271A - Verification information generator, verification information generation method, and verification information generation program - Google Patents

Verification information generator, verification information generation method, and verification information generation program Download PDF

Info

Publication number
JP2020009271A
JP2020009271A JP2018131115A JP2018131115A JP2020009271A JP 2020009271 A JP2020009271 A JP 2020009271A JP 2018131115 A JP2018131115 A JP 2018131115A JP 2018131115 A JP2018131115 A JP 2018131115A JP 2020009271 A JP2020009271 A JP 2020009271A
Authority
JP
Japan
Prior art keywords
state
transition
verification information
state transition
information generation
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
JP2018131115A
Other languages
Japanese (ja)
Other versions
JP7210917B2 (en
Inventor
豊 八鍬
Yutaka Yakuwa
豊 八鍬
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2018131115A priority Critical patent/JP7210917B2/en
Publication of JP2020009271A publication Critical patent/JP2020009271A/en
Application granted granted Critical
Publication of JP7210917B2 publication Critical patent/JP7210917B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

To provide a verification information generator, a verification information generation method and a verification information generation program, with which calculation resources in the system are reduced.SOLUTION: Provided is a verification information generator 1, comprising: a state transition detection unit 2 for detecting one or more transitions executable from a target state extracted from the state elements of state model corresponding to a system; a state transition pair management unit 3 for managing a plurality of state transition pair information pieces in which states and transitions are associated; a transition selection unit 4 for selecting a transition the quantity of state transition pair information pieces of which that are detected when a transition not selected yet is executed is largest from among the transitions detected by the state transition detection unit 2; and a test case generation unit 5 for generating a test case on the basis of the transition selected by the transition selection unit 4.SELECTED DRAWING: Figure 3

Description

本発明は、システムの検証に用いる検証情報を生成する検証情報生成装置、検証情報生成方法、及び検証情報生成プログラムに関する。   The present invention relates to a verification information generation device, a verification information generation method, and a verification information generation program for generating verification information used for system verification.

近年、情報通信技術システム(ICT(Information and Communication Technology)システム)などは社会を支えるインフラの一つとなっており、その重要性は増している。一方で、ICTシステムの大規模化、複雑化が進んでおり、その構築又は変更の実施は困難である。そこで、ICTシステムの構築又は変更を効率的に行うことを目的とした、構成管理技術が注目されている。   2. Description of the Related Art In recent years, information communication technology systems (ICT (Information and Communication Technology) systems) and the like have become one of the infrastructures that support society, and their importance is increasing. On the other hand, the scale and complexity of the ICT system are increasing, and it is difficult to construct or change the ICT system. Therefore, a configuration management technique for efficiently constructing or changing an ICT system has been receiving attention.

例えば、ICTシステムの構成管理技術は、一般的に、ICTシステムのモデルを開発し、開発したモデルを用いて、ICTシステムの構築又は変更をする。モデル開発を伴うICTシステムの構成管理技術の一つに、ICTシステムが有する部品(状態要素)の構築又は変更する手順を、自動的に生成する技術が知られている。   For example, the configuration management technology of the ICT system generally develops a model of the ICT system and builds or changes the ICT system using the developed model. As one of the configuration management techniques of an ICT system involving model development, a technique of automatically generating a procedure for constructing or changing a component (state element) of the ICT system is known.

特許文献1及び非特許文献1には、システムの構築又は変更後の状態がモデルとして宣言的に記述された情報を用いて、システムの現在の状態と、システムの構築後又は変更後の状態との差分を計算し、システムを構築又は変更する手順を自動的に算出する技術が開示されている。   Patent Literature 1 and Non-Patent Literature 1 describe the current state of the system and the state after the system is built or changed using information in which the state of the system after building or change is declaratively described as a model. A technique has been disclosed for calculating the difference between the two and automatically calculating the procedure for building or changing the system.

なお、特許文献1及び非特許文献1で開示されている、システムの状態をモデルとして宣言的に記述する状態モデルについて説明する。なお、特許文献1では、「状態モデル」を「状態マシン群」と呼び、「状態要素」を「状態マシン」と呼んでいる。   A state model disclosed in Patent Literature 1 and Non-Patent Literature 1 that declaratively describes the state of a system as a model will be described. In Patent Document 1, the “state model” is called “state machine group”, and the “state element” is called “state machine”.

状態モデルは、システムを変更する手順において、手順を計算するのに必要な情報を表したデータモデルで、状態要素と状態要素間の依存性とにより構成される。   The state model is a data model representing information necessary for calculating the procedure in the procedure for changing the system, and is composed of state elements and dependencies between the state elements.

状態要素は、独立して状態を持つシステム構成中の部品を表し、手順の計算において考慮される最小の構成単位となる。また、状態要素は、排他的な複数の状態と、その複数の状態間の状態遷移(遷移)により定義される。状態は、システムがとり得る状態を表す。また、状態は、複数の状態を定義でき、必ず一つの現在の状態(現在状態)と、現在の状態から要求により変化する任意の数の状態(要求状態)を含む。   The state element represents a part in the system configuration having an independent state, and is a minimum constituent unit considered in the calculation of the procedure. A state element is defined by a plurality of exclusive states and a state transition (transition) between the plurality of states. The status represents a possible status of the system. The state can define a plurality of states, and includes one current state (current state) and an arbitrary number of states (request states) that change from the current state upon request.

遷移は、システムがどの状態からどの状態へ変化可能かを表し、同一の状態要素における任意の状態間の変化と定義できる。   A transition represents which state the system can change from to which state, and can be defined as a change between arbitrary states in the same state element.

次に、依存性は、ある状態要素における遷移から、他の状態要素の状態に対して定義される。すなわち、前者の状態要素がその遷移を行うためには、後者の状態要素がその状態でなければならないという条件を表す。   Next, dependencies are defined from transitions in one state element to states in other state elements. That is, in order for the former state element to make the transition, the latter state element must be in that state.

なお、状態要素はシステム構成中の部品に対応する。そして、状態要素が行う遷移は、システム構築又は変更の全体の手順のうち部品が行う単一の工程と同義である。   The state elements correspond to parts in the system configuration. The transition performed by the state element is synonymous with a single step performed by a component in the entire procedure of system construction or change.

図1を用いて状態モデルについて具体的に説明をする。図1は、状態モデルを説明するための図である。図1では、状態要素TC、UV(例えば、ソフトウェアなどの部品)は長方形で表し、状態f、tは楕円形で表している。なお、状態要素TC、UVは、状態要
素それぞれを識別する識別情報である。
The state model will be specifically described with reference to FIG. FIG. 1 is a diagram for explaining a state model. In FIG. 1, the state elements TC and UV (for example, components such as software) are represented by rectangles, and the states f and t are represented by ellipses. The state elements TC and UV are identification information for identifying each state element.

また、図1では、現在状態fを二重線の楕円形で表し、要求状態tを黒塗りの楕円形で表している。現在状態fは、例えば、ソフトウェアがインストールされていない状態を表し、要求状態tは、例えば、ソフトウェアがインストールされている状態を表している。   In FIG. 1, the current state f is represented by a double-lined ellipse, and the request state t is represented by a black ellipse. The current state f indicates, for example, a state in which software is not installed, and the request state t indicates, for example, a state in which software is installed.

更に、状態遷移を実線の矢印線で表し、依存性を破線の矢印線で表している。なお、図1では、依存性は、状態要素TCから要求状態tへ至る矢印線で表している。これは、状態要素TCにおける状態遷移が、要求状態tに依存していることを表す。言い換えれば、ある状態要素TCが、他の状態要素UVの状態に依存する状態遷移を含む場合、状態要素TCは状態要素UVに依存する。又は、状態要素TCは状態要素UVへの依存性を持つ。   Further, the state transition is represented by a solid arrow line, and the dependency is represented by a broken arrow line. In FIG. 1, the dependency is represented by an arrow line from the state element TC to the request state t. This indicates that the state transition in the state element TC depends on the request state t. In other words, if one state element TC includes a state transition that depends on the state of another state element UV, the state element TC depends on the state element UV. Alternatively, the state element TC has a dependency on the state element UV.

続いて、モデル開発の検証に関するテスト技術について説明する。システムの構成管理におけるモデル開発では、モデルの妥当性を確認するために、ソフトウェア開発と同様に、開発物が期待通りのものかを検証する必要がある。しかし、モデル開発の検証に関するテスト技術には、現状デファクトが存在しないため、モデル開発者がソフトウェアテスト技術を流用するなどして、独自のテストを行うにとどまる。   Next, a test technique related to verification of model development will be described. In model development in system configuration management, as in software development, it is necessary to verify that the development is as expected, in order to confirm the validity of the model. However, there is no de facto test technology for verification of model development at present, so model developers simply use software testing technology to perform their own tests.

テストケース(検証情報)は一般的に、ソフトウェアが多様な入力内容や利用環境に対して適切に動作することを確認するため、それらの多くのパラメータの組み合わせを網羅するよう作成する。ところが、その組み合わせの数は膨大であるため、テスト工数を現実的なものに抑えるためには、組み合わせの取捨選択が必要となる。   In general, test cases (verification information) are created so as to cover many combinations of these parameters in order to confirm that the software operates properly with various input contents and usage environments. However, since the number of such combinations is enormous, it is necessary to select combinations in order to reduce the number of test steps to a realistic one.

そこで、モデル開発への適用が見込めるソフトウェアテスト技術の一つとしてペアワイズ法がある。ペアワイズ法は、テストの品質(例えば、バグを発見できる精度)を大きく損ねることなく、テストケースに採用する組み合わせを削減できる技術である。具体的には、全てのパラメータ間で全ての値の組み合わせを網羅するテストケースを作成するのではなく、任意の二つのパラメータに着目したとき、その二つのパラメータ間で全ての値の組み合わせが網羅されるテストケースを作成する。   Then, there is a pairwise method as one of the software test technologies that can be applied to model development. The pairwise method is a technique that can reduce the number of combinations used in a test case without significantly impairing the quality of a test (for example, the accuracy with which a bug can be found). Specifically, instead of creating a test case that covers all combinations of values between all parameters, when focusing on any two parameters, the combination of all values between those two parameters Create test cases to be created.

ウェブサイトのテストケースの作成を例に説明する。図2は、ペアワイズ法を説明するための図である。具体的には、図2は、ユーザがウェブサイトにアクセスする際に利用する、オペレーティングシステム、ブラウザ、検索エンジンを組み合わせた、テストケースを示している。すなわち、ユーザが使用するパラメータの候補として、オペレーティングシステムではOS_W又はOS_Lを、ブラウザではBR_C又はBR_F、検索エンジンではSE_G又はSE_Yを想定したテストケースを示している。   An example of creating a test case for a website will be described. FIG. 2 is a diagram for explaining the pairwise method. Specifically, FIG. 2 shows a test case combining an operating system, a browser, and a search engine used when a user accesses a website. That is, a test case is shown assuming OS_W or OS_L in the operating system, BR_C or BR_F in the browser, and SE_G or SE_Y in the search engine as candidates for parameters used by the user.

この場合、パラメータそれぞれがとり得る値は二種類であるため、全てのパラメータ間での全ての値の組み合わせを網羅するテストケースを作成すると、8個(2の3乗個)のテストケースが作成される。   In this case, there are two types of values that can be taken by each parameter. Therefore, when a test case that covers all combinations of values among all parameters is created, eight (2 3) test cases are created. Is done.

しかし、ペアワイズ法では、図2に示すように、4個のテストケースのみが作成される。理由は、図2のどの二つのパラメータ(列)に着目しても、それらのパラメータ間で全ての値を組み合わせた4種類(2の2乗)が網羅されている。このように、任意の二つのパラメータに着目したとき、その二つのパラメータ間で全ての値の組み合わせが網羅されるテストケースを作成するのがペアワイズ法である。   However, in the pairwise method, only four test cases are created as shown in FIG. The reason is that even if attention is paid to any two parameters (columns) in FIG. 2, four types (square of 2) in which all values are combined between those parameters are covered. As described above, when focusing on any two parameters, the pair-wise method creates a test case in which all combinations of values are covered between the two parameters.

また、ペアワイズ法では、ソフトウェアの不具合は、多くの場合、少ない要素(例えば、二つか三つの要素)間の組み合わせの問題により発生するという経験則に基づいている。従って、ペアワイズ法では、上述したテストの品質を大きく損ねることなく、テストケ
ース数を削減できる。
The pairwise method is based on an empirical rule that a software defect is often caused by a problem of a combination between a small number of elements (for example, two or three elements). Therefore, in the pair-wise method, the number of test cases can be reduced without significantly deteriorating the test quality described above.

更に、一般的なペアワイズ法は、入力や環境をパラメータとしたテスト技術であるため、状態モデルのテストには適さない。対して、状態遷移系を対象としたペアワイズ法は、状態モデルの基本的な概念は状態遷移系と同様であるため、状態モデルのテストに親和性があると考えられる。   Furthermore, the general pairwise method is a test technique using an input and an environment as parameters, and is not suitable for testing a state model. On the other hand, in the pairwise method for the state transition system, since the basic concept of the state model is the same as that of the state transition system, it is considered that the state model test has affinity.

関連する技術として、非特許文献2には、状態をパラメータとし、遷移を値として、特定の条件を満たしたパスを全て列挙し、列挙したすべてのパスをテストケースとする技術が開示されている。   As a related technology, Non-Patent Document 2 discloses a technology in which all paths satisfying a specific condition are enumerated using a state as a parameter and a transition as a value, and all the enumerated paths are used as test cases. .

また、非特許文献3には、テスト対象をモデル化した状態遷移系のパスを通るイベント列を列挙し、各イベント列に含まれるイベントの各パラメータの値をクラス分割し、イベント列ごとに、イベントをパラメータとし、クラスを値としたペアワイズ法を用いてテストケースを生成する技術が開示されている。   Non-Patent Document 3 lists an event sequence passing through a state transition system path that models a test target, classifies values of parameters of events included in each event sequence into classes, and, for each event sequence, There is disclosed a technique for generating a test case using a pairwise method using an event as a parameter and a class as a value.

特開2015−215885号公報JP 2015-215885 A

Kuroda T,et al.,“Model-based IT Change Management for Large System Definitions with State-related Dependencies”,Proc. of EDOC 2014,2014.Kuroda T, et al., “Model-based IT Change Management for Large System Definitions with State-related Dependencies”, Proc. Of EDOC 2014, 2014. 鶴巻敏郎,“オープンソースの組み合わせテストツールの開発−組み合わせにおける制約の表形式でのモデル化−”,JaSST 2009,2009.Toshiro Tsurumaki, "Development of Open Source Combination Testing Tool-Modeling Constraints in Combination in Tabular Format-", JaSST 2009, 2009. Cu D. Nguyen,et al.,“Combining Model-Based and Combinatorial Testing for Effective Test Case Generation”,Proc. of ISSTA 2012,2012.Cu D. Nguyen, et al., “Combining Model-Based and Combinatorial Testing for Effective Test Case Generation”, Proc. Of ISSTA 2012, 2012.

しかしながら、非特許文献2、3に開示されている、上述したモデル開発の検証に関するテスト技術では、例えば、ICTシステムがとり得る状態の数が膨大であるにもかかわらず、それら膨大な状態を予め全て用意した上で、テスト処理を行う必要がある。また、実際のシステムは非常に大規模なため、それを現実的な時間で処理するためには、膨大な計算資源が必要になる。   However, in the test techniques disclosed in Non-Patent Documents 2 and 3 related to the above-described verification of model development, for example, although the number of states that the ICT system can take is enormous, After preparing everything, it is necessary to perform test processing. In addition, since the actual system is very large, enormous computational resources are required to process it in a realistic time.

例えば、ICTシステムがとり得る状態を全て記憶できるサイズの記憶部などが必要になるが、通常そのような条件を満たすことは難しい。仮に、そのような条件を満たせたとしても、構築又は変更に関する処理の処理速度は大幅に低下してしまう。   For example, a storage unit having a size capable of storing all possible states of the ICT system is required, but it is usually difficult to satisfy such conditions. Even if such a condition can be satisfied, the processing speed of the processing related to the construction or the change is significantly reduced.

また、非特許文献2、3に開示されている、上述したモデル開発の検証に関するテスト技術では、システム全体から見た状態が異なる場合、部品をペアワイズ法における異なるパラメータとして扱う。そのため、ICTシステムを構成する殆どの部品の状態が同じだとしても、部品の一部でも状態が異なる場合、パラメータ間で全てのパラメータ値(ICTシステムに対する操作)の組み合わせを網羅する検証を行う。   Also, in the test techniques disclosed in Non-Patent Literatures 2 and 3 related to the verification of model development described above, when the state of the system as a whole is different, parts are treated as different parameters in the pairwise method. Therefore, even if the state of most of the components constituting the ICT system is the same, if even some of the components have different states, verification is performed to cover all combinations of parameter values (operations for the ICT system) among the parameters.

ペアワイズ法における、ICTシステムの不具合は、少数の部品間における状態と、操作の組み合わせとにより発生するケースが多いという考え方からすれば、上述したテスト技術における検証は、粒度が細かすぎるため、テストケースが膨大になる。そのため、膨大な計算資源が必要になる。   Considering that the failure of the ICT system in the pairwise method often occurs due to a combination of operations and a state between a small number of parts, the above-described verification in the test technique has too small a granularity, and thus the test case is too small. Becomes huge. Therefore, enormous computational resources are required.

本発明の目的の一例は、システムにおける計算資源を削減する検証情報生成装置、検証情報生成方法、及び検証情報生成プログラムを提供することにある。   An example of an object of the present invention is to provide a verification information generation device, a verification information generation method, and a verification information generation program that reduce computation resources in a system.

上記目的を達成するため、本発明の一側面における検証情報生成装置は、
システムに対応する状態モデルの状態要素から抽出した、対象とする状態から実行できる一つ以上の遷移を検出する、状態遷移検出部と、
状態と遷移とが関連付けられた複数の状態遷移ペア情報を管理する、状態遷移ペア管理部と、
前記状態遷移検出部で検出した前記遷移のうち、まだ選択していない遷移を実行した場合に検出される前記状態遷移ペア情報の数が最も多い遷移を選択する、遷移選択部と、
前記遷移選択部が選択した前記遷移に基づいてテストケースを生成する、テストケース生成部と、
を有することを特徴とする。
In order to achieve the above object, a verification information generation device according to one aspect of the present invention includes:
A state transition detection unit that detects one or more transitions that can be executed from the target state, extracted from the state element of the state model corresponding to the system,
A state transition pair management unit that manages a plurality of state transition pair information in which a state and a transition are associated,
Among the transitions detected by the state transition detection unit, a transition selection unit that selects the transition with the largest number of the state transition pair information detected when executing a transition that has not been selected,
A test case generation unit that generates a test case based on the transition selected by the transition selection unit,
It is characterized by having.

また、上記目的を達成するため、本発明の一側面における検証情報生成方法は、
(a)システムに対応する状態モデルの状態要素から抽出した、対象とする状態から実行できる一つ以上の遷移を検出する、ステップと、
(b)状態と遷移とが関連付けられた複数の状態遷移ペア情報を管理する、ステップと、(c)前記(a)のステップにおいて検出した前記遷移のうち、まだ選択していない遷移を実行した場合に検出される前記状態遷移ペア情報の数が最も多い遷移を選択する、ステップと、
(d)前記(c)のステップにおいて選択した前記遷移に基づいてテストケースを生成する、ステップと、
を有することを特徴とする。
In order to achieve the above object, a verification information generating method according to one aspect of the present invention includes:
(A) detecting one or more transitions executable from a target state, extracted from state elements of a state model corresponding to the system;
(B) managing a plurality of state transition pair information in which states and transitions are associated with each other; and (c) executing a transition that has not been selected among the transitions detected in the step (a). Selecting the transition with the largest number of state transition pair information detected in the case,
(D) generating a test case based on the transition selected in the step (c);
It is characterized by having.

更に、上記目的を達成するため、本発明の一側面における検証情報生成プログラムは、
コンピュータに
(a)システムに対応する状態モデルの状態要素から抽出した、対象とする状態から実行できる一つ以上の遷移を検出する、ステップと、
(b)状態と遷移とが関連付けられた複数の状態遷移ペア情報を管理する、ステップと、(c)前記(a)のステップにおいて検出した前記遷移のうち、まだ選択していない遷移を実行した場合に検出される前記状態遷移ペア情報の数が最も多い遷移を選択する、ステップと、
(d)前記(c)のステップにおいて選択した前記遷移に基づいてテストケースを生成する、ステップと、
を実行させることを特徴とする。
Further, in order to achieve the above object, a verification information generation program according to one aspect of the present invention includes:
Detecting (a) one or more transitions executable from a state of interest, extracted from state elements of a state model corresponding to the system;
(B) managing a plurality of state transition pair information in which states and transitions are associated with each other; and (c) executing a transition that has not been selected among the transitions detected in the step (a). Selecting the transition with the largest number of state transition pair information detected in the case,
(D) generating a test case based on the transition selected in the step (c);
Is executed.

以上のように本発明によれば、システムにおける計算資源を削減することができる。   As described above, according to the present invention, it is possible to reduce computation resources in a system.

図1は、状態モデルを説明するための図である。FIG. 1 is a diagram for explaining a state model. 図2は、ペアワイズ法を説明するための図である。FIG. 2 is a diagram for explaining the pairwise method. 図3は、検証情報生成装置の一例を示す図である。FIG. 3 is a diagram illustrating an example of the verification information generation device. 図4は、検証情報生成装置を有するシステムを示す図である。FIG. 4 is a diagram illustrating a system having a verification information generation device. 図5は、状態モデルの一例を示す図である。FIG. 5 is a diagram illustrating an example of the state model. 図6は、状態モデルの一例を示す図である。FIG. 6 is a diagram illustrating an example of the state model. 図7は、テストケース(遷移列)の一例を示す図である。FIG. 7 is a diagram illustrating an example of a test case (transition sequence). 図8は、検証情報生成装置の動作の一例を示す図である。FIG. 8 is a diagram illustrating an example of an operation of the verification information generation device. 図9は、ステップA3の疑似コードの一例を示す図である。FIG. 9 is a diagram showing an example of the pseudo code in step A3. 図10は、ステップA3の動作の一例を示す図である。FIG. 10 is a diagram illustrating an example of the operation of Step A3. 図11は、検証情報生成装置を実現するコンピュータの一例を示す図である。FIG. 11 is a diagram illustrating an example of a computer that implements the verification information generation device.

(実施の形態)
以下、本発明の実施の形態について、図3から図11を参照しながら説明する。
(Embodiment)
Hereinafter, embodiments of the present invention will be described with reference to FIGS.

[装置構成]
最初に、図3を用いて、本実施の形態における検証情報生成装置の構成について説明する。図3は、検証情報生成装置の一例を示す図である。
[Device configuration]
First, the configuration of the verification information generation device according to the present embodiment will be described with reference to FIG. FIG. 3 is a diagram illustrating an example of the verification information generation device.

図3に示すように、検証情報生成装置1は、システム(例えば、ICTシステムなど)における計算資源を削減するための装置である。検証情報生成装置1は、状態遷移検出部2と、状態遷移ペア管理部3と、遷移選択部4と、テストケース生成部5とを有する。   As shown in FIG. 3, the verification information generation device 1 is a device for reducing computation resources in a system (for example, an ICT system). The verification information generation device 1 includes a state transition detection unit 2, a state transition pair management unit 3, a transition selection unit 4, and a test case generation unit 5.

このうち、状態遷移検出部2は、システムに対応する状態モデルの状態要素から抽出した、対象とする状態から実行できる一つ以上の遷移を検出する。状態遷移ペア管理部3は、状態と遷移とが関連付けられた複数の状態遷移ペア情報を管理する。遷移選択部4は、状態遷移検出部2で検出した遷移のうち、まだ選択していない遷移を実行した場合に検出される状態遷移ペア情報の数が最も多い遷移を選択する。テストケース生成部5は、遷移選択部4が選択した遷移に基づいてテストケースを生成する。   Among them, the state transition detection unit 2 detects one or more transitions that can be executed from the target state, extracted from the state elements of the state model corresponding to the system. The state transition pair management unit 3 manages a plurality of state transition pair information in which states and transitions are associated. The transition selection unit 4 selects, from among the transitions detected by the state transition detection unit 2, a transition having the largest number of state transition pair information detected when a transition that has not been selected is executed. The test case generator 5 generates a test case based on the transition selected by the transition selector 4.

このように、本実施の形態では、ペアワイズ法の考えに則り、予め生成した状態遷移ペア情報を用いて、必要な範囲のテストケースを生成する。そのため、従来のようにシステムがとり得る膨大な数の状態を、予め全て用意してからシステムの構築又は変更に関する処理を行う必要がないので、処理に必要な計算資源を削減することができる。また、計算資源を削減できるため、より大規模なシステムの検証ができる。更に、テストケースの数を削減できるので、検証をする工数も削減できる。   As described above, in the present embodiment, test cases in a necessary range are generated using state transition pair information generated in advance in accordance with the idea of the pair-wise method. Therefore, unlike the related art, it is not necessary to prepare a huge number of states that can be taken by the system beforehand and then perform the processing related to the construction or change of the system, so that the computational resources required for the processing can be reduced. Further, since the computational resources can be reduced, a larger-scale system can be verified. Further, since the number of test cases can be reduced, the number of steps for verification can also be reduced.

続いて、図4を用いて、本実施の形態における検証情報生成装置1の構成をより具体的に説明する。図4は、検証情報生成装置を有するシステムを示す図である。   Subsequently, the configuration of the verification information generation device 1 in the present embodiment will be described more specifically with reference to FIG. FIG. 4 is a diagram illustrating a system having a verification information generation device.

図4に示すように、本実施の形態における検証情報生成装置1は、状態遷移検出部2と、状態遷移ペア管理部3と、遷移選択部4と、テストケース生成部5とに加えて、入力装置6と、出力装置7、記憶部8とを有する。   As shown in FIG. 4, the verification information generation device 1 according to the present embodiment includes a state transition detection unit 2, a state transition pair management unit 3, a transition selection unit 4, and a test case generation unit 5, It has an input device 6, an output device 7, and a storage unit 8.

状態遷移検出部2は、対象とする状態CS1が遷移できる遷移を検出する。具体的には、状態遷移検出部2は、システムに対応する、複数の状態要素を有する状態モデルを取得し、取得した状態モデルを用いて、システム全体の現在の状態CS1を検出する。続いて、状態遷移検出部2は、検出した状態CS1を、検出済みの状態として、検出済みの状態を記憶する状態集合部ES1に記憶する。状態集合部ES1は、検証情報生成装置1内部に設けられている記憶部8、又は、その外部に設けられている不図示の記憶部に設けられる。続いて、状態遷移検出部2は、状態CS1から実行可能な遷移を全て取得する。   The state transition detection unit 2 detects a transition to which the target state CS1 can transition. Specifically, the state transition detection unit 2 acquires a state model having a plurality of state elements corresponding to the system, and detects the current state CS1 of the entire system using the acquired state model. Subsequently, the state transition detection unit 2 stores the detected state CS1 as a detected state in the state collection unit ES1 that stores the detected state. The state collection unit ES1 is provided in the storage unit 8 provided inside the verification information generation device 1 or in a storage unit (not shown) provided outside thereof. Subsequently, the state transition detection unit 2 acquires all executable transitions from the state CS1.

また、状態遷移検出部2は、対象とする状態CS1が遷移することで得られる状態NS1を検出し、検出した状態NS1を次の対象とする状態CS1とする。   Further, the state transition detection unit 2 detects a state NS1 obtained by transition of the target state CS1, and sets the detected state NS1 as a next target state CS1.

状態遷移ペア管理部3は、状態遷移ペア管理部3内部の記憶部、又は、上述した記憶部8などに予め設けられる状態遷移ペア記憶部MI1を管理する。状態遷移ペア記憶部MI1は、状態要素が状態を遷移した場合における、遷移の主体と異なる状態要素の状態と、遷移の主体となる状態要素の遷移とを関連付けた状態遷移ペア情報を、複数有する。   The state transition pair management unit 3 manages a state transition pair storage unit MI1 provided in advance in the storage unit inside the state transition pair management unit 3 or the storage unit 8 described above. The state transition pair storage unit MI1 has a plurality of pieces of state transition pair information in which the state of a state element different from the subject of the transition and the transition of the state element that is the subject of the transition are associated with each other when the state element transits the state. .

具体的には、状態遷移ペア管理部3は、状態遷移検出部2が状態CS1を遷移させる場合、状態遷移ペア記憶部MI1を参照して、遷移の主体と異なる状態要素ごとに、遷移させる前の状態要素の状態と、遷移の主体となる状態要素の遷移とに一致する、状態遷移ペア情報を検出する。なお、状態遷移ペア情報を検出した場合、状態遷移ペア管理部3は、状態遷移ペア情報に検出したことを示すチェック情報を関連付ける(チェックする)。   Specifically, when the state transition detecting unit 2 causes the state CS1 to transition, the state transition pair management unit 3 refers to the state transition pair storage unit MI1 before transitioning each state element different from the subject of the transition. And state transition pair information that matches the state of the state element and the transition of the state element that is the subject of the transition. When detecting the state transition pair information, the state transition pair management unit 3 associates (checks) the check information indicating the detection with the state transition pair information.

更に、図5、図6を用いて具体的に状態遷移ペア情報の生成方法について説明する。図5、図6は、状態モデルの一例を示す図である。図5に示すシステムは、状態要素(部品)A、Bを有している。部品A、Bそれぞれは、状態fと状態tとを有する。また、部品A、Bが有する状態f、tは、状態fから状態tへ遷移(f→t)する。また、状態tから状態fへ遷移(t→f)する。   Further, a method of generating state transition pair information will be specifically described with reference to FIGS. 5 and 6 are diagrams illustrating an example of the state model. The system shown in FIG. 5 has state elements (parts) A and B. Each of the components A and B has a state f and a state t. The states f and t of the parts A and B transition from the state f to the state t (f → t). Further, the state transits from the state t to the state f (t → f).

図5、6では、状態要素A、B、C(例えば、ソフトウェアなどの部品)は長方形で表し、状態f、tは楕円形で表している。また、図5、6では、現在状態fを二重線の楕円形で表し、要求状態tを黒塗りの楕円形で表している。例えば、現在状態fは、例えば、ソフトウェアがインストールされていない状態を表し、要求状態tは、例えば、ソフトウェアがインストールされている状態を表している。なお、状態遷移を実線の矢印線で表し、依存性を破線の矢印線で表している。   5 and 6, state elements A, B, and C (for example, components such as software) are represented by rectangles, and states f and t are represented by ellipses. 5 and 6, the current state f is represented by a double-lined ellipse, and the required state t is represented by a black ellipse. For example, the current state f indicates, for example, a state in which software is not installed, and the request state t indicates, for example, a state in which software is installed. The state transition is indicated by a solid arrow line, and the dependency is indicated by a broken arrow line.

例えば、部品A、Bそれぞれの初期状態が状態fである場合に、部品Aが状態fから状態tへ遷移(A:f→t)したとする。この場合、状態遷移ペア管理部3は、部品Bの状態fと、部品Aの遷移(A:f→t)とを関連付けて状態遷移ペア情報として、状態遷移ペア記憶部MI1に記憶する。   For example, it is assumed that when the initial state of each of the parts A and B is the state f, the part A transitions from the state f to the state t (A: f → t). In this case, the state transition pair management unit 3 stores the state f of the part B and the transition of the part A (A: f → t) in the state transition pair storage unit MI1 as state transition pair information.

続けて、部品Aが状態tで、部品Bが状態fである場合、部品Bが状態fから状態tへ遷移(B:f→t)したとする。この場合、状態遷移ペア管理部3は、部品Aの状態fと、部品Bの遷移(B:f→t)とを関連付けて状態遷移ペア情報として、状態遷移ペア記憶部MI1に記憶する。   Subsequently, when the component A is in the state t and the component B is in the state f, it is assumed that the component B has transitioned from the state f to the state t (B: f → t). In this case, the state transition pair management unit 3 stores the state f of the component A and the transition of the component B (B: f → t) in the state transition pair storage unit MI1 as state transition pair information.

このように、状態遷移ペア情報の全ての組み合わせを、予め状態遷移ペア記憶部MI1に記憶する。ただし、状態遷移ペア管理部3は、依存関係により、成立しない状態遷移ペア情報は状態遷移ペア記憶部MI1に記憶しない。図5において、予め状態遷移ペア記憶部MI1に記憶する状態遷移ペア情報の組み合わせを以下に示す。   As described above, all combinations of the state transition pair information are stored in the state transition pair storage unit MI1 in advance. However, the state transition pair management unit 3 does not store the state transition pair information that does not hold due to the dependency in the state transition pair storage unit MI1. In FIG. 5, combinations of state transition pair information stored in the state transition pair storage unit MI1 in advance are shown below.

(A:f,B:f→t)
(A:f,B:t→f)
(A:t,B:f→t)
(B:f,A:f→t)
(B:f,A:t→f)
(B:t,A:f→t)
(B:t,A:t→f)
(A: f, B: f → t)
(A: f, B: t → f)
(A: t, B: f → t)
(B: f, A: f → t)
(B: f, A: t → f)
(B: t, A: f → t)
(B: t, A: t → f)

なお、状態遷移ペア情報(A:t,B:t→f)は、図5に示すように、依存関係が存在するため、部品Aが状態tのとき、部品Bは遷移t→fを実行できないからである。   Since the state transition pair information (A: t, B: t → f) has a dependency relationship as shown in FIG. 5, when the part A is in the state t, the part B executes the transition t → f. Because you can't.

また、システム全体を構成する部品の数が増えても、状態遷移ペア情報の形式には変化はない。図6に示すシステムは、状態要素(部品)A、B、Cを有する。部品A、B、Cそれぞれの初期状態が状態fである場合、部品Aが状態fから状態tへ遷移(A:f→t)したとする。この場合、部品Bの状態fと、部品Aの遷移(A:f→t)とを関連付けて状態遷移ペア情報として、状態遷移ペア記憶部MI1に記憶する。   Further, even if the number of components constituting the entire system increases, the format of the state transition pair information does not change. The system shown in FIG. 6 has state elements (parts) A, B, and C. When the initial state of each of the parts A, B, and C is the state f, it is assumed that the part A has transitioned from the state f to the state t (A: f → t). In this case, the state f of the component B and the transition (A: f → t) of the component A are associated and stored as state transition pair information in the state transition pair storage unit MI1.

図6のシステムの部品A、B、Cそれぞれの初期状態が状態fである場合には、いずれも初期状態状態fから部品Aが状態tへ遷移(f→tを実行)した場合、チェックされる状態遷移ペア情報は(B:f,A:f→t)と(C:f,A:f→t)である。   When the initial state of each of the components A, B, and C of the system in FIG. 6 is the state f, when the part A transitions from the initial state f to the state t (f → t is executed), it is checked. The state transition pair information is (B: f, A: f → t) and (C: f, A: f → t).

なお、上述した状態遷移検出部2が検出する状態及び状態集合部ES1が記憶する状態と、状態遷移ペア情報として記憶される状態とは、同じ粒度ではない。すなわち、状態遷移検出部2が検出する状態及び状態集合部ES1が記憶する状態は、システム全体の状態である。図6の例であれば、部品Aが状態tかつ部品Bが状態fかつ部品Cが状態fと表される情報である。対して、状態遷移ペアとして保持される状態は、任意の一つの部品の状態を示す。   The state detected by the state transition detection unit 2 and the state stored by the state collection unit ES1 and the state stored as the state transition pair information are not the same granularity. That is, the state detected by the state transition detection unit 2 and the state stored by the state collection unit ES1 are the states of the entire system. In the example of FIG. 6, the information is information indicating that the component A is in the state t, the component B is in the state f, and the component C is in the state f. On the other hand, the state held as a state transition pair indicates the state of any one component.

続いて、状態遷移ペア管理部3が予め生成する状態遷移ペア情報の生成方法について説明する。システムに含まれる任意の状態要素(部品)のペアについて、一方の状態要素の状態と、他方の状態要素の遷移の組み合わせとを全て生成する。ただし、依存性の都合で実現し得ない状態遷移ペア情報は除外する。   Next, a method of generating state transition pair information generated in advance by the state transition pair management unit 3 will be described. For any pair of state elements (parts) included in the system, all states of one state element and combinations of transitions of the other state element are generated. However, state transition pair information that cannot be realized due to the dependency is excluded.

例えば、図5における任意の部品の状態遷移ペア情報の一例として、部品Aと部品Bのペアの場合であれば、生成する状態遷移ペア情報は上述した通りである。   For example, as an example of the state transition pair information of an arbitrary part in FIG. 5, in the case of a pair of a part A and a part B, the generated state transition pair information is as described above.

これは、部品Aの状態f及びtと部品Bの遷移f→t及びt→f、並びに部品Bの状態f及びtと部品Aの遷移f→t及びt→fの全てのペアを列挙している。ただし、依存性の都合で実現し得ない(A:t,B:t→f)は除く。これを、任意の部品のペア全てについて作成する。例えば、図5のシステムにおける部品のペアはAとBのみだが、図6のシステムにおける部品のペアはAとB、AとC、BとCである。   This lists all pairs of states f and t of part A and transitions f → t and t → f of part B, and states f and t of part B and transitions f → t and t → f of part A. ing. However, exceptions that cannot be realized due to the dependency (A: t, B: t → f) are excluded. This is created for all pairs of arbitrary parts. For example, the pair of parts in the system of FIG. 5 is only A and B, but the pair of parts in the system of FIG. 6 are A and B, A and C, and B and C.

なお、パラメータの全ての組み合わせについてテストするのではなく、任意の二つのパラメータの組み合わせについてテストするのがペアワイズ法である。   It should be noted that the pairwise method does not test for all combinations of parameters but tests for any combination of two parameters.

遷移選択部4は、状態遷移検出部2により抽出した遷移のうちで、まだ選択していない遷移から実行することで、チェックされる状態遷移ペア情報の数が最も多い遷移T1を選択する。具体的には、遷移選択部4は、現在の対象である状態CS1から各部品(状態要素)が遷移可能な候補のうち、実行することで状態遷移ペア管理部3が管理するチェック済みの状態遷移ペアが最も多くなる遷移を選択する。   The transition selection unit 4 selects the transition T1 with the largest number of state transition pair information to be checked by executing the transitions not yet selected among the transitions extracted by the state transition detection unit 2. More specifically, the transition selection unit 4 executes a checked state managed by the state transition pair management unit 3 by executing the candidate among the candidates to which each component (state element) can transition from the current target state CS1. Select the transition with the most transition pairs.

テストケース生成部5は、状態遷移検出部2が状態遷移系を探索した範囲において、システムを検証するためのテストケース(検証情報)を生成する。テストケースは、例えば、システムの初期状態からある状態まで、部品ごとに実行した遷移の列である。部品の遷移は、システム構築又は変更の全体の手順のうち、部品が行う単一の工程と同義であり、遷移の列は、システム構築又は変更の全体の手順と同義である。   The test case generation unit 5 generates a test case (verification information) for verifying the system in a range where the state transition detection unit 2 has searched for a state transition system. The test case is, for example, a sequence of transitions executed for each component from the initial state of the system to a certain state. The transition of a component is synonymous with a single step performed by the component in the entire procedure of system construction or change, and the sequence of transition is synonymous with the entire procedure of system construction or change.

図3のシステムにおいて、部品Aが遷移(A:f→t)を実行した後、部品Bが遷移(B:f→t)を実行するという遷移列は、テストケースの一つである。図7は、テストケース(遷移列)の一例を示す図である。なお、図7はイメージであり、図7の形式に限定されるものではない。   In the system of FIG. 3, the transition sequence in which the part A executes the transition (A: f → t) and then the part B executes the transition (B: f → t) is one of the test cases. FIG. 7 is a diagram illustrating an example of a test case (transition sequence). FIG. 7 is an image and is not limited to the format shown in FIG.

入力装置6は、検証情報生成装置1に接続され、状態モデルを検証情報生成装置1へに出力する装置である。出力装置7は、検証情報生成装置1に接続され、検証情報生成装置1から出力されるテストケースを取得する装置である。   The input device 6 is a device that is connected to the verification information generation device 1 and outputs a state model to the verification information generation device 1. The output device 7 is a device that is connected to the verification information generation device 1 and acquires a test case output from the verification information generation device 1.

[装置動作]
次に、本発明の実施の形態における検証情報生成装置1の動作について図8を用いて説明する。図8は、検証情報生成装置の動作の一例を示す図である。以下の説明においては、適宜図3から図7を参酌する。また、本実施の形態では、検証情報生成装置1を動作させることによって、検証情報生成方法が実施される。よって、本実施の形態における検証情報生成方法の説明は、以下の検証情報生成装置の動作説明に代える。
[Device operation]
Next, the operation of the verification information generation device 1 according to the embodiment of the present invention will be described with reference to FIG. FIG. 8 is a diagram illustrating an example of an operation of the verification information generation device. In the following description, FIGS. 3 to 7 are appropriately referred to. In the present embodiment, the verification information generation method is performed by operating the verification information generation device 1. Therefore, the description of the verification information generation method according to the present embodiment is replaced with the following description of the operation of the verification information generation device.

まず、検証情報生成装置1は、検証対象のシステムの状態モデルM1を取得する(ステップA1)。具体的には、検証情報生成装置1は、入力装置6から出力された状態モデルM1を取得する。続いて、検証情報生成装置1は、状態モデルM1からシステム全体の初期状態IS1を検出する(ステップA2)。   First, the verification information generation device 1 acquires a state model M1 of the system to be verified (step A1). Specifically, the verification information generation device 1 acquires the state model M1 output from the input device 6. Subsequently, the verification information generation device 1 detects the initial state IS1 of the entire system from the state model M1 (Step A2).

その後、検証情報生成装置1は、初期状態IS1を最初の探索対象とし、再帰的に深さ優先探索を行う(ステップA3)。ステップA3の処理については後述する。続いて、検証情報生成装置1は、ステップA3で記憶した全てのテストケースを出力する(ステップA4)。具体的には、検証情報生成装置1は、出力装置7へテストケースを出力する。   Thereafter, the verification information generation device 1 performs the depth-first search recursively with the initial state IS1 as the first search target (step A3). The processing in step A3 will be described later. Subsequently, the verification information generation device 1 outputs all the test cases stored in step A3 (step A4). Specifically, the verification information generation device 1 outputs a test case to the output device 7.

続いて、図9、図10を用いて、ステップA3の動作について詳細に説明する。図9は、ステップA3の疑似コードの一例を示す図である。図10は、ステップA3の動作の一例を示す図である。   Next, the operation of step A3 will be described in detail with reference to FIGS. FIG. 9 is a diagram showing an example of the pseudo code in step A3. FIG. 10 is a diagram illustrating an example of the operation of Step A3.

最初に、状態遷移検出部2は、現在の対象である状態CS1が検出済みか、又は、状態遷移ペア情報の全てがチェック済みであるか否かを判定する(ステップA131)。   First, the state transition detection unit 2 determines whether the current target state CS1 has been detected or whether all state transition pair information has been checked (step A131).

テストケース生成部5は、現在探索対象の状態CS1が状態集合部ES1に記憶されているか、又は、状態遷移ペア管理部3が管理する状態遷移ペア情報の全てがチェック済みである場合(ステップA131:Yes)、その時点における、遷移を記憶する遷移スタックTS1の内容をテストケースとして、上述した記憶部8などに記憶する(ステップA132)。   The test case generation unit 5 determines whether the current search target state CS1 is stored in the state collection unit ES1 or all the state transition pair information managed by the state transition pair management unit 3 has been checked (step A131). : Yes), the content of the transition stack TS1 that stores the transition at that time is stored in the storage unit 8 or the like as a test case (step A132).

その後、状態遷移検出部2は、現在のステップA3の再帰処理を終了する。   After that, the state transition detection unit 2 ends the current recursive processing in step A3.

なお、ステップA3は、ステップ全体で、上述した再帰的な深さ優先探索における再帰一段分の処理を表している。また、後述するステップA141で次の段の再帰に進む。また、ステップA132は、再帰処理全体を終了するのではなく、再帰一段分(ステップA3一つ分)を終了する。従って、次の処理は、一つ前の段の再帰のステップA141となる。なお、ステップA141において、最初の段の再帰であった場合、再帰処理全体が終了する。   Step A3 represents the processing of one stage of recursion in the above-described recursive depth-first search in the entire step. In step A141 described later, the process proceeds to the recursion of the next stage. In addition, the step A132 does not end the entire recursive process, but ends one recursive stage (one step A3). Therefore, the next processing is step A141 of the recursion of the immediately preceding stage. In step A141, if it is the first stage recursion, the entire recursion process ends.

続いて、状態遷移検出部2は、現在探索対象の状態CS1が状態集合部ES1に含まれているか、又は、状態遷移ペア管理部3が管理する状態遷移ペア情報の全てがチェック済みでない場合(ステップA131:No)、状態CS1を状態集合部ES1に記憶する(ステップA133)。   Subsequently, the state transition detection unit 2 determines whether the state CS1 currently being searched is included in the state collection unit ES1 or if all the state transition pair information managed by the state transition pair management unit 3 is not checked ( (Step A131: No), the state CS1 is stored in the state collection unit ES1 (step A133).

具体的には、対象とする状態CS1が初期状態に最初に訪れる場合、現在探索対象の状
態CS1が状態集合部ES1に含まれず、かつ状態遷移ペア情報全てがチェック済みではないので、状態遷移検出部2はステップA133の処理を実行する。一方、現在探索対象の状態CS1が初期状態に戻る(二回目以降訪れる)場合、初期状態は必ず最初に探索済みなので、状態集合部ES1に含まれており、再帰を一段終了する。
More specifically, when the target state CS1 first visits the initial state, the state CS1 to be currently searched is not included in the state collection unit ES1, and all the state transition pair information has not been checked. The unit 2 executes the process of Step A133. On the other hand, when the current search target state CS1 returns to the initial state (visits the second and subsequent times), since the initial state is always searched first, it is included in the state set ES1 and the recursion is terminated one step.

なお、状態遷移検出部2は、現在探索対象の状態CS1を探索した場合に、記憶部8に検出済み状態であることを記憶する。例えば、対象とする状態CS1を、状態集合部ES1に追加する。   The state transition detection unit 2 stores the detected state in the storage unit 8 when searching for the current search target state CS1. For example, the target state CS1 is added to the state collection unit ES1.

続いて、状態遷移検出部2は、対象とする状態CS1から実行可能な遷移全て抽出する(ステップA134)。続いて、状態遷移検出部2は、抽出した遷移に、まだ選ばれていない遷移があるか否かを判定する(ステップA135)。状態遷移検出部2は、選ばれていない遷移がある場合(ステップA135:Yes)、ステップA136の処理を実行する。また、選ばれていない遷移がない場合(ステップA135:No)、状態遷移検出部2は、ステップA142の処理を実行する。   Subsequently, the state transition detection unit 2 extracts all executable transitions from the target state CS1 (step A134). Subsequently, the state transition detection unit 2 determines whether or not the extracted transition includes a transition that has not been selected yet (Step A135). When there is a transition that has not been selected (step A135: Yes), the state transition detection unit 2 executes the process of step A136. When there is no transition that has not been selected (step A135: No), the state transition detection unit 2 executes the process of step A142.

続いて、状態遷移検出部2は、選ばれていない遷移がある場合、残りの遷移において新たにチェックされる状態遷移ペア情報があるか否かを判定する(ステップA136)。   Subsequently, when there is a non-selected transition, the state transition detection unit 2 determines whether there is state transition pair information to be newly checked in the remaining transitions (step A136).

残りの遷移において新たにチェックされる状態遷移ペア情報がある場合(ステップA136:Yes)、状態遷移検出部2は、ステップA137の処理を実行する。また、残りの遷移で新たにチェックされる状態遷移ペア情報がない場合(ステップA136:No)、状態遷移検出部2は、ステップA142の処理を実行する。   When there is state transition pair information to be newly checked in the remaining transitions (step A136: Yes), the state transition detection unit 2 executes the process of step A137. If there is no state transition pair information to be newly checked in the remaining transitions (step A136: No), the state transition detection unit 2 executes the processing of step A142.

ステップA137においては、遷移選択部4が、ステップA134において状態遷移検出部2により抽出した遷移のうち、まだ選択していない遷移から実行することで、チェックされる状態遷移ペア情報の数が最も多い遷移T1を選択する。具体的には、遷移選択部4は、現在の対象である状態CS1から各部品が遷移可能な候補のうち、実行することで状態遷移ペア管理部3が管理するチェック済みの状態遷移ペアが最も多くなる遷移を選択する。   In step A137, the transition selection unit 4 executes the transition extracted by the state transition detection unit 2 in step A134 from a transition that has not been selected, so that the number of state transition pair information to be checked is the largest. Select transition T1. Specifically, the transition selection unit 4 executes, among the candidates whose components can transition from the current target state CS1, the checked state transition pair managed by the state transition pair management unit 3 by executing the component. Select more transitions.

続いて、状態遷移検出部2は、例えば、遷移スタックTS1に選択した遷移T1をプッシュする(ステップA138)。続いて、状態遷移検出部2は、対象とする状態CS1が遷移することで得られる状態NS1を検出し、検出した状態NS1を、次の対象とする状態CS1とする。   Subsequently, the state transition detection unit 2, for example, pushes the selected transition T1 to the transition stack TS1 (Step A138). Subsequently, the state transition detection unit 2 detects the state NS1 obtained by the transition of the target state CS1, and sets the detected state NS1 as the next target state CS1.

続いて、状態遷移ペア管理部3は、部品の状態と遷移T1との状態遷移ペア情報をチェック済みにする(ステップA139)。具体的には、状態遷移ペア管理部3は、遷移T1を遷移させる主体である部品と異なる部品それぞれの状態を列挙し、その中の任意の一つの状態と遷移T1と一致する状態遷移ペア情報を全て検出する。そして、状態遷移ペア管理部3は、状態遷移ペア情報に検出したことを示すチェック情報を関連付ける。   Subsequently, the state transition pair management unit 3 checks the state transition pair information of the state of the component and the transition T1 (step A139). Specifically, the state transition pair management unit 3 enumerates the state of each component different from the component that is the subject of the transition of the transition T1, and any one of the states and the state transition pair information that matches the transition T1. Are all detected. Then, the state transition pair management unit 3 associates the check information indicating the detection with the state transition pair information.

続いて、状態遷移検出部2は、現在探索対象の状態CS1が遷移T1することで得られる状態NS1を探索対象として、再帰的に深さ優先探索を行う(ステップA140)。ただし、状態遷移検出部2は、再帰的な深さ優先探索が完了した場合(再帰処理がここまで戻ってきた場合)、遷移スタックTS1から遷移T1をポップする(ステップA141)。   Subsequently, the state transition detection unit 2 performs a depth-first search recursively with the state NS1 obtained by the transition T1 of the current search target state CS1 as a search target (step A140). However, when the recursive depth-first search is completed (when the recursive processing returns to this point), the state transition detection unit 2 pops the transition T1 from the transition stack TS1 (step A141).

続いて、状態遷移検出部2は、ステップA137において一度も遷移を選んでいないか否かを判定する(ステップA142)。ステップA137において一度も遷移を選んでい
ない場合(ステップA142:Yes)、状態遷移検出部2は、ステップA132の処理を実行する。ステップA137において一度でも遷移を選んでいる場合(ステップA142:No)、状態遷移検出部2は、ステップA3の処理を終了する(再帰一段分の処理を終了する)。
Subsequently, the state transition detection unit 2 determines whether a transition has never been selected in step A137 (step A142). If a transition has never been selected in step A137 (step A142: Yes), the state transition detection unit 2 executes the process of step A132. If a transition has been selected at least once in step A137 (step A142: No), the state transition detection unit 2 ends the processing in step A3 (ends the processing for one recursive stage).

そして、状態遷移検出部2は、ステップA137で選択していない遷移がなくなるまで、ステップA135からA141の処理を繰り返し実行する(ステップA135:Yes)。また、ステップA137で遷移を選択する際、新たにチェックされる状態遷移ペア情報がない遷移だけの場合、ステップA135からA141の繰り返し処理を抜ける(ステップA136:No)。   Then, the state transition detection unit 2 repeatedly executes the processing of steps A135 to A141 until there are no more transitions not selected in step A137 (step A135: Yes). Further, when selecting a transition in step A137, if there is only a transition having no state transition pair information to be newly checked, the process exits from the repetition of steps A135 to A141 (step A136: No).

更に、ステップA135又はステップA136で繰り返し処理を抜けた際、ステップA137で一つも遷移を選択しなかった場合、テストケース生成部5は、その時点での遷移スタックTS1の内容を、テストケースとして記憶部8などに記憶する。すなわち、ステップA134で取得した遷移全てが、新たにチェックされる状態遷移ペア情報がない場合、テストケース生成部5は、その時点での遷移スタックTS1の内容を、テストケースとして記憶部8などに記憶する。そして、状態遷移検出部2は、ステップA3の処理を終了する(再帰一段分の処理を終了する)。   Further, when the process exits the repetition processing in step A135 or step A136 and no transition is selected in step A137, the test case generation unit 5 stores the contents of the transition stack TS1 at that time as a test case. It is stored in the unit 8 or the like. That is, when there is no state transition pair information to be newly checked for all the transitions acquired in step A134, the test case generation unit 5 stores the contents of the transition stack TS1 at that time in the storage unit 8 or the like as a test case. Remember. Then, the state transition detection unit 2 ends the process of step A3 (ends the process for one recursive stage).

[本実施の形態の効果]
以上のように、本実施の形態によれば、ペアワイズ法の考えに則り、予め生成した状態遷移ペア情報を用いて、必要な範囲のテストケースを生成する。そのため、従来のようにシステムがとり得る膨大な数の状態を、予め全て用意してからシステムの構築又は変更に関する処理を行う必要がないので、処理に必要な計算資源を削減することができる。また、計算資源を削減できるため、より大規模なシステムの検証ができる。更に、テストケースの数を削減できるので、検証をする工数も削減できる。
[Effects of the present embodiment]
As described above, according to the present embodiment, a required range of test cases is generated using state transition pair information generated in advance, based on the idea of the pair-wise method. Therefore, unlike the related art, it is not necessary to prepare a huge number of states that can be taken by the system beforehand and then perform the processing related to the construction or change of the system, thereby reducing the computational resources required for the processing. Further, since the computational resources can be reduced, a larger-scale system can be verified. Further, since the number of test cases can be reduced, the number of steps for verification can also be reduced.

例えば、状態遷移検出部2は、複数の部品から構成されるICTシステムの状態遷移系を探索するにあたって、遷移選択部4の出力に従い次に実行する遷移を決定しながら探索を行う。また、状態遷移ペア管理部3は、状態遷移検出部2が状態遷移系の遷移を実行する際、遷移の動作主体と異なるICTシステム部品毎に、遷移実行前のICTシステム部品の状態と、実行する遷移とのペア(状態遷移ペア)をチェックする。また、遷移選択部4は、状態遷移検出部2が探索中の状態遷移系の現在状態から実行する遷移を決定するにあたって、遷移の候補のうち、実行することで状態遷移ペア管理部3が管理するチェック済み状態遷移ペアが最も多くなる遷移を選択する。そして、テストケース生成部5は、状態遷移検出部2が状態遷移系を探索した範囲をカバーするテストケースを生成する。   For example, when searching for a state transition system of an ICT system composed of a plurality of components, the state transition detection unit 2 performs a search while determining the next transition to be executed according to the output of the transition selection unit 4. In addition, when the state transition detecting unit 2 executes the transition of the state transition system, the state transition pair management unit 3 determines, for each ICT system component different from the subject of the transition, the state of the ICT system component before the transition is executed and the execution state. Check the pair with the transition to be performed (state transition pair). In addition, the transition selection unit 4 manages the state transition pair management unit 3 by executing the transition candidates among the transition candidates when the state transition detection unit 2 determines the transition to be executed from the current state of the state transition system under search. The transition that has the largest number of checked state transition pairs is selected. Then, the test case generation unit 5 generates a test case covering the range in which the state transition detection unit 2 has searched for the state transition system.

そうすることで、ICTシステムがとり得る膨大な数の状態を、予め全て用意してからICTシステムの構築又は変更に関する処理を行う必要がないので、処理に必要な計算資源を削減することができる。また、計算資源を削減できるため、より大規模なシステムの検証ができる。更に、テストケースの数を削減できるので、検証をする工数も削減できる。   By doing so, there is no need to prepare a huge number of states that can be taken by the ICT system in advance and then perform the processing related to the construction or change of the ICT system, so that the computational resources required for the processing can be reduced. . Further, since the computational resources can be reduced, a larger-scale system can be verified. Further, since the number of test cases can be reduced, the number of steps for verification can also be reduced.

[プログラム]
本発明の実施の形態におけるプログラムは、コンピュータに、図8に示すステップA1からA4、及び、図9、10に示すステップA131からA142を実行させるプログラムであればよい。このプログラムをコンピュータにインストールし、実行することによって、本実施の形態における検証情報生成装置と検証情報生成方法とを実現することができる。この場合、コンピュータのプロセッサは、状態遷移検出部2と、状態遷移ペア管理部3と、遷移選択部4と、テストケース生成部5として機能し、処理を行なう。
[program]
The program according to the embodiment of the present invention may be any program that causes a computer to execute steps A1 to A4 shown in FIG. 8 and steps A131 to A142 shown in FIGS. By installing and executing this program on a computer, the verification information generation device and the verification information generation method according to the present embodiment can be realized. In this case, the processor of the computer functions as the state transition detection unit 2, the state transition pair management unit 3, the transition selection unit 4, and the test case generation unit 5, and performs processing.

また、本実施の形態におけるプログラムは、複数のコンピュータによって構築されたコンピュータシステムによって実行されてもよい。この場合は、例えば、各コンピュータが、それぞれ、状態遷移検出部2と、状態遷移ペア管理部3と、遷移選択部4と、テストケース生成部5のいずれかとして機能してもよい。   Further, the program according to the present embodiment may be executed by a computer system constructed by a plurality of computers. In this case, for example, each computer may function as one of the state transition detection unit 2, the state transition pair management unit 3, the transition selection unit 4, and the test case generation unit 5, respectively.

[物理構成]
ここで、実施の形態におけるプログラムを実行することによって、検証情報生成装置を実現するコンピュータについて図11を用いて説明する。図11は、検証情報生成装置を実現するコンピュータの一例を示す図である。
[Physical configuration]
Here, a computer that realizes the verification information generation device by executing the program according to the embodiment will be described with reference to FIG. FIG. 11 is a diagram illustrating an example of a computer that implements the verification information generation device.

図11に示すように、コンピュータ110は、CPU111と、メインメモリ112と、記憶装置113と、入力インターフェイス114と、表示コントローラ115と、データリーダ/ライタ116と、通信インターフェイス117とを備える。これらの各部は、バス121を介して、互いにデータ通信可能に接続される。なお、コンピュータ110は、CPU111に加えて、又はCPU111に代えて、GPU(Graphics Processing Unit)、又はFPGA(Field-Programmable Gate Array)を備えていてもよい。   As shown in FIG. 11, the computer 110 includes a CPU 111, a main memory 112, a storage device 113, an input interface 114, a display controller 115, a data reader / writer 116, and a communication interface 117. These units are connected via a bus 121 so as to be able to perform data communication with each other. Note that the computer 110 may include a GPU (Graphics Processing Unit) or an FPGA (Field-Programmable Gate Array) in addition to or instead of the CPU 111.

CPU111は、記憶装置113に格納された、本実施の形態におけるプログラム(コード)をメインメモリ112に展開し、これらを所定順序で実行することにより、各種の演算を実施する。メインメモリ112は、典型的には、DRAM(Dynamic Random Access Memory)等の揮発性の記憶装置である。また、本実施の形態におけるプログラムは、コンピュータ読み取り可能な記録媒体120に格納された状態で提供される。なお、本実施の形態におけるプログラムは、通信インターフェイス117を介して接続されたインターネット上で流通するものであってもよい。   The CPU 111 expands the programs (codes) according to the present embodiment stored in the storage device 113 in the main memory 112 and executes them in a predetermined order to perform various operations. The main memory 112 is typically a volatile storage device such as a DRAM (Dynamic Random Access Memory). Further, the program according to the present embodiment is provided in a state stored in a computer-readable recording medium 120. The program according to the present embodiment may be distributed on the Internet connected via the communication interface 117.

また、記憶装置113の具体例としては、ハードディスクドライブの他、フラッシュメモリ等の半導体記憶装置があげられる。入力インターフェイス114は、CPU111と、キーボード及びマウスといった入力機器118との間のデータ伝送を仲介する。表示コントローラ115は、ディスプレイ装置119と接続され、ディスプレイ装置119での表示を制御する。   Specific examples of the storage device 113 include a semiconductor storage device such as a flash memory in addition to a hard disk drive. The input interface 114 mediates data transmission between the CPU 111 and an input device 118 such as a keyboard and a mouse. The display controller 115 is connected to the display device 119 and controls display on the display device 119.

データリーダ/ライタ116は、CPU111と記録媒体120との間のデータ伝送を仲介し、記録媒体120からのプログラムの読み出し、及びコンピュータ110における処理結果の記録媒体120への書き込みを実行する。通信インターフェイス117は、CPU111と、他のコンピュータとの間のデータ伝送を仲介する。   The data reader / writer 116 mediates data transmission between the CPU 111 and the recording medium 120, reads a program from the recording medium 120, and writes a processing result in the computer 110 to the recording medium 120. The communication interface 117 mediates data transmission between the CPU 111 and another computer.

また、記録媒体120の具体例としては、CF(Compact Flash(登録商標))及びSD(Secure Digital)等の汎用的な半導体記憶デバイス、フレキシブルディスク(Flexible Disk)等の磁気記録媒体、又はCD−ROM(Compact Disk Read Only Memory)などの光学記録媒体があげられる。   Further, specific examples of the recording medium 120 include a general-purpose semiconductor storage device such as CF (Compact Flash (registered trademark)) and SD (Secure Digital), a magnetic recording medium such as a flexible disk (Flexible Disk), or a CD-ROM. An optical recording medium such as a ROM (Compact Disk Read Only Memory) can be used.

[付記]
以上の実施の形態に関し、更に以下の付記を開示する。上述した実施の形態の一部又は全部は、以下に記載する(付記1)から(付記12)により表現することができるが、以下の記載に限定されるものではない。
[Appendix]
Regarding the above embodiment, the following supplementary notes are further disclosed. Some or all of the above-described embodiments can be expressed by the following (Appendix 1) to (Appendix 12), but are not limited to the following description.

(付記1)
システムに対応する状態モデルの状態要素から抽出した、対象とする状態から実行できる一つ以上の遷移を検出する、状態遷移検出部と、
状態と遷移とが関連付けられた複数の状態遷移ペア情報を管理する、状態遷移ペア管理部と、
検出した前記遷移のうち、まだ選択していない遷移を実行した場合に検出される前記状態遷移ペア情報の数が最も多い遷移を選択する、遷移選択部と、
前記遷移選択部が選択した前記遷移に基づいてテストケースを生成する、テストケース生成部と、
を有することを特徴とする検証情報生成装置。
(Appendix 1)
A state transition detection unit that detects one or more transitions that can be executed from the target state, extracted from the state element of the state model corresponding to the system,
A state transition pair management unit that manages a plurality of state transition pair information in which a state and a transition are associated,
Among the detected transitions, a transition selection unit that selects a transition having the largest number of the state transition pair information detected when executing a transition that has not been selected,
A test case generation unit that generates a test case based on the transition selected by the transition selection unit,
A verification information generation device, comprising:

(付記2)
付記1に記載の検証情報生成装置であって、
状態遷移検出部は、遷移選択部により選択された前記遷移を実行した次の状態を、新しい前記対象とする状態とする、
ことを特徴とする検証情報生成装置。
(Appendix 2)
The verification information generation device according to Supplementary Note 1, wherein
The state transition detection unit sets the next state in which the transition selected by the transition selection unit has been executed as the new target state,
A verification information generation device, characterized in that:

(付記3)
付記1又は2に記載の検証情報生成装置であって、
前記状態遷移ペア情報は、前記状態要素と異なる状態要素の状態と、前記遷移とが関連付けた情報である、
ことを特徴とする検証情報生成装置。
(Appendix 3)
The verification information generating device according to claim 1 or 2, wherein
The state transition pair information is information associated with the state of the state element different from the state element and the transition,
A verification information generation device, characterized in that:

(付記4)
付記1から3のいずれか一つに記載の検証情報生成装置であって、
前記状態遷移ペア管理部は、前記遷移を実行した場合、検出される状態遷移ペア情報にチェック情報を関連付ける、
ことを特徴とする検証情報生成装置。
(Appendix 4)
The verification information generation device according to any one of supplementary notes 1 to 3, wherein
The state transition pair management unit, when executing the transition, associates check information with the detected state transition pair information,
A verification information generation device, characterized in that:

(付記5)
(a)システムに対応する状態モデルの状態要素から抽出した、対象とする状態から実行できる一つ以上の遷移を検出する、ステップと、
(b)状態と遷移とが関連付けられた複数の状態遷移ペア情報を管理する、ステップと、(c)前記(a)のステップにおいて検出した前記遷移のうち、まだ選択していない遷移を実行した場合に検出される前記状態遷移ペア情報の数が最も多い遷移を選択する、ステップと、
(d)前記(c)のステップにおいて選択した前記遷移に基づいてテストケースを生成する、ステップと、
を有することを特徴とする検証情報生成方法。
(Appendix 5)
(A) detecting one or more transitions executable from a target state, extracted from state elements of a state model corresponding to the system;
(B) managing a plurality of state transition pair information in which states and transitions are associated with each other; and (c) executing a transition that has not been selected among the transitions detected in the step (a). Selecting the transition with the largest number of state transition pair information detected in the case,
(D) generating a test case based on the transition selected in the step (c);
A verification information generation method, comprising:

(付記6)
付記5に記載の検証情報生成方法であって、
前記(a)のステップにおいて、前記(c)のステップにより選択された前記遷移を実行した次の状態を、新しい前記対象とする状態とする、
ことを特徴とする検証情報生成方法。
(Appendix 6)
A verification information generation method according to attachment 5, wherein
In the step (a), the next state after executing the transition selected in the step (c) is set as a new target state.
A method for generating verification information, characterized in that:

(付記7)
付記5又は6に記載の検証情報生成方法であって、
前記状態遷移ペア情報は、前記状態要素と異なる状態要素の状態と、前記遷移とを関連付けた情報である、
ことを特徴とする検証情報生成方法。
(Appendix 7)
The verification information generation method according to attachment 5 or 6, wherein
The state transition pair information is information relating the state of the state element different from the state element and the transition.
A method for generating verification information, characterized in that:

(付記8)
付記5から7のいずれか一つに記載の検証情報生成方法であって、
前記(b)のステップにおいて、前記遷移を実行した場合、検出される状態遷移ペア情報にチェック情報を関連付ける、
ことを特徴とする検証情報生成方法。
(Appendix 8)
The verification information generation method according to any one of appendices 5 to 7, wherein
In the step (b), when the transition is performed, check information is associated with the detected state transition pair information;
A method for generating verification information, characterized in that:

(付記9)
コンピュータに
(a)システムに対応する状態モデルの状態要素から抽出した、対象とする状態から実行できる一つ以上の遷移を検出する、ステップと、
(b)状態と遷移とが関連付けられた複数の状態遷移ペア情報を管理する、ステップと、(c)前記(a)のステップにおいて検出した前記遷移のうち、まだ選択していない遷移を実行した場合に検出される前記状態遷移ペア情報の数が最も多い遷移を選択する、ステップと、
(d)前記(c)のステップにおいて選択した前記遷移に基づいてテストケースを生成する、ステップと、
を実行させることを特徴とする検証情報生成プログラム。
(Appendix 9)
Detecting (a) one or more transitions executable from a state of interest, extracted from state elements of a state model corresponding to the system;
(B) managing a plurality of state transition pair information in which states and transitions are associated with each other; and (c) executing a transition that has not been selected among the transitions detected in the step (a). Selecting the transition with the largest number of state transition pair information detected in the case,
(D) generating a test case based on the transition selected in the step (c);
And a verification information generation program.

(付記10)
付記9に記載の検証情報生成プログラムであって、
前記(a)のステップにおいて、前記(c)のステップにより選択された前記遷移を実行した次の状態を、新しい前記対象とする状態とする、
ことを特徴とする検証情報生成プログラム。
(Appendix 10)
A verification information generation program according to attachment 9, wherein
In the step (a), the next state after executing the transition selected in the step (c) is set as a new target state.
A verification information generating program characterized in that:

(付記11)
付記9又は10に記載の検証情報生成プログラムであって、
前記状態遷移ペア情報は、前記状態要素と異なる状態要素の状態と、前記遷移とを関連付けた情報である、
ことを特徴とする検証情報生成プログラム。
(Appendix 11)
The verification information generation program according to attachment 9 or 10, wherein
The state transition pair information is information relating the state of the state element different from the state element and the transition.
A verification information generating program characterized in that:

(付記12)
付記9から11のいずれか一つに記載の検証情報生成プログラムであって、
前記(b)のステップにおいて、前記遷移を実行した場合、検出される状態遷移ペア情報にチェック情報を関連付ける、
ことを特徴とする検証情報生成プログラム。
(Appendix 12)
The verification information generation program according to any one of supplementary notes 9 to 11, wherein
In the step (b), when the transition is performed, check information is associated with the detected state transition pair information;
A verification information generating program characterized in that:

以上のように本発明によれば、システムにおける計算資源を削減することができる。本発明は、状態モデルを検証する分野において有用である。   As described above, according to the present invention, it is possible to reduce computation resources in a system. The present invention is useful in the field of verifying a state model.

1 検証情報生成装置
2 状態遷移検出部
3 状態遷移ペア管理部
4 遷移選択部
5 テストケース生成部
6 入力装置
7 出力装置
8 記憶部
110 コンピュータ
111 CPU
112 メインメモリ
113 記憶装置
114 入力インターフェイス
115 表示コントローラ
116 データリーダ/ライタ
117 通信インターフェイス
118 入力機器
119 ディスプレイ装置
120 記録媒体
121 バス
REFERENCE SIGNS LIST 1 verification information generation device 2 state transition detection unit 3 state transition pair management unit 4 transition selection unit 5 test case generation unit 6 input device 7 output device 8 storage unit 110 computer 111 CPU
112 Main memory 113 Storage device 114 Input interface 115 Display controller 116 Data reader / writer 117 Communication interface 118 Input device 119 Display device 120 Recording medium 121 Bus

Claims (6)

システムに対応する状態モデルの状態要素から抽出した、対象とする状態から実行できる一つ以上の遷移を検出する、状態遷移検出手段と、
状態と遷移とが関連付けられた複数の状態遷移ペア情報を管理する、状態遷移ペア管理手段と、
前記状態遷移検出手段で検出した前記遷移のうち、まだ選択していない遷移を実行した場合に検出される前記状態遷移ペア情報の数が最も多い遷移を選択する、遷移選択手段と、
前記遷移選択手段が選択した前記遷移に基づいてテストケースを生成する、テストケース生成手段と、
を有することを特徴とする検証情報生成装置。
A state transition detecting unit that detects one or more transitions that can be executed from the target state, extracted from the state element of the state model corresponding to the system,
A state transition pair management unit that manages a plurality of state transition pair information in which a state and a transition are associated with each other,
Among the transitions detected by the state transition detection unit, a transition selection unit that selects the transition with the largest number of the state transition pair information detected when a transition that has not been selected is executed,
A test case generating unit that generates a test case based on the transition selected by the transition selecting unit,
A verification information generation device, comprising:
請求項1に記載の検証情報生成装置であって、
状態遷移検出手段は、遷移選択手段により選択された前記遷移を実行した次の状態を、新しい前記対象とする状態とする、
ことを特徴とする検証情報生成装置。
The verification information generation device according to claim 1, wherein
The state transition detection unit sets the next state after executing the transition selected by the transition selection unit as a new target state.
A verification information generation device, characterized in that:
請求項1又は2に記載の検証情報生成装置であって、
前記状態遷移ペア情報は、前記状態要素と異なる状態要素の状態と、前記遷移とを関連付けた情報である
ことを特徴とする検証情報生成装置。
The verification information generating device according to claim 1 or 2,
The verification information generation device, wherein the state transition pair information is information in which a state of a state element different from the state element is associated with the transition.
請求項1から3のいずれか一つに記載の検証情報生成装置であって、
前記状態遷移ペア管理手段は、前記遷移を実行した場合、検出される状態遷移ペア情報にチェック情報を関連付ける、
ことを特徴とする検証情報生成装置。
The verification information generation device according to claim 1, wherein:
The state transition pair management means, when executing the transition, associates check information with the detected state transition pair information,
A verification information generation device, characterized in that:
(a)システムに対応する状態モデルの状態要素から抽出した、対象とする状態から実行できる一つ以上の遷移を検出する、ステップと、
(b)状態と遷移とが関連付けられた複数の状態遷移ペア情報を管理する、ステップと、(c)前記(a)のステップにおいて検出した前記遷移のうち、まだ選択していない遷移を実行した場合に検出される前記状態遷移ペア情報の数が最も多い遷移を選択する、ステップと、
(d)前記(c)のステップにおいて選択した前記遷移に基づいてテストケースを生成する、ステップと、
を有することを特徴とする検証情報生成方法。
(A) detecting one or more transitions executable from a target state, extracted from state elements of a state model corresponding to the system;
(B) managing a plurality of state transition pair information in which states and transitions are associated with each other; and (c) executing a transition that has not been selected among the transitions detected in the step (a). Selecting the transition with the largest number of state transition pair information detected in the case,
(D) generating a test case based on the transition selected in the step (c);
A verification information generation method, comprising:
コンピュータに
(a)システムに対応する状態モデルの状態要素から抽出した、対象とする状態から実行できる一つ以上の遷移を検出する、ステップと、
(b)状態と遷移とが関連付けられた複数の状態遷移ペア情報を管理する、ステップと、(c)前記(a)のステップにおいて検出した前記遷移のうち、まだ選択していない遷移を実行した場合に検出される前記状態遷移ペア情報の数が最も多い遷移を選択する、ステップと、
(d)前記(c)のステップにおいて選択した前記遷移に基づいてテストケースを生成する、ステップと、
を実行させることを特徴とする検証情報生成プログラム。
Detecting (a) one or more transitions executable from a state of interest, extracted from state elements of a state model corresponding to the system;
(B) managing a plurality of state transition pair information in which states and transitions are associated with each other; and (c) executing a transition that has not been selected among the transitions detected in the step (a). Selecting the transition with the largest number of state transition pair information detected in the case,
(D) generating a test case based on the transition selected in the step (c);
And a verification information generation program.
JP2018131115A 2018-07-10 2018-07-10 Verification information generation device, verification information generation method, and verification information generation program Active JP7210917B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018131115A JP7210917B2 (en) 2018-07-10 2018-07-10 Verification information generation device, verification information generation method, and verification information generation program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018131115A JP7210917B2 (en) 2018-07-10 2018-07-10 Verification information generation device, verification information generation method, and verification information generation program

Publications (2)

Publication Number Publication Date
JP2020009271A true JP2020009271A (en) 2020-01-16
JP7210917B2 JP7210917B2 (en) 2023-01-24

Family

ID=69151894

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018131115A Active JP7210917B2 (en) 2018-07-10 2018-07-10 Verification information generation device, verification information generation method, and verification information generation program

Country Status (1)

Country Link
JP (1) JP7210917B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1040316A (en) * 1996-07-18 1998-02-13 Toshiba Corp Device and method for supporting test of graphics
JP2016151925A (en) * 2015-02-18 2016-08-22 日本電信電話株式会社 Priority imparting device, priority imparting method, and priority imparting program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1040316A (en) * 1996-07-18 1998-02-13 Toshiba Corp Device and method for supporting test of graphics
JP2016151925A (en) * 2015-02-18 2016-08-22 日本電信電話株式会社 Priority imparting device, priority imparting method, and priority imparting program

Also Published As

Publication number Publication date
JP7210917B2 (en) 2023-01-24

Similar Documents

Publication Publication Date Title
WO2022180702A1 (en) Analysis function addition device, analysis function addition program, and analysis function addition method
US11675575B2 (en) Checking source code validity at time of code update
US10983904B1 (en) Test automation for data processing
US20110016452A1 (en) Method and system for identifying regression test cases for a software
US20120226952A1 (en) Automatic identification of information useful for generation-based functional verification
WO2018066040A1 (en) Management computer and test environment determination method
JP6256115B2 (en) Operation search program, operation search method, and operation search device
US20240152402A1 (en) Inference flow orchestration service
US9405652B2 (en) Regular expression support in instrumentation languages using kernel-mode executable code
JP5233355B2 (en) Property generation system and property verification system
US20210232495A1 (en) System and method for executing a test case
JP7210917B2 (en) Verification information generation device, verification information generation method, and verification information generation program
US11947966B2 (en) Identifying computer instructions enclosed by macros and conflicting macros at build time
Imtiaz et al. Predicting vulnerability for requirements
JP2017041196A (en) Stub object determination device, method, and program
CN114174983B (en) Method and system for optimized automatic verification of advanced constructs
JP7380851B2 (en) Test script generation device, test script generation method and program
JP6818568B2 (en) Communication device, communication specification difference extraction method and communication specification difference extraction program
JP5755861B2 (en) Test case generation apparatus, test case generation method, and test case generation program
Li et al. Automating Cloud Deployment for Real-Time Online Foundation Model Inference
JP5233354B2 (en) Property verification system, property verification method, and program
WO2022249256A1 (en) Api detection device, api detection method, and program
EP4432095A1 (en) Unit testing generation method and apparatus, and related device
Singh et al. Software Reliability with Jumping Finite Automata
JP2013061893A (en) Information processor, information processing method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210603

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220520

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220531

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220726

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221226

R151 Written notification of patent or utility model registration

Ref document number: 7210917

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151