JP2001256078A - Test support equipment - Google Patents
Test support equipmentInfo
- Publication number
- JP2001256078A JP2001256078A JP2001023889A JP2001023889A JP2001256078A JP 2001256078 A JP2001256078 A JP 2001256078A JP 2001023889 A JP2001023889 A JP 2001023889A JP 2001023889 A JP2001023889 A JP 2001023889A JP 2001256078 A JP2001256078 A JP 2001256078A
- Authority
- JP
- Japan
- Prior art keywords
- event
- state
- test
- definition
- test sequence
- 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.)
- Abandoned
Links
Landscapes
- Debugging And Monitoring (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
- Monitoring And Testing Of Exchanges (AREA)
- Exchange Systems With Centralized Control (AREA)
Abstract
(57)【要約】
【課題】 ソフトウェア開発において、対象システムの
テストを行なうためのテストシーケンスを作成する作業
を、誤りなくスムーズに入力することを可能とすること
を課題としている。
【解決手段】 次に遷移する状態とこの状態遷移を引き
起こすイベントとが含まれる状態遷移表(101)と、
この状態遷移表中に含まれる前記状態と前記イベントと
を抽出するイベント状態抽出部(701)と、この抽出
された状態とイベントとに基づいて、イベントの内容を
定義したイベント状態定義表を生成するイベント状態定
義生成部(702)とを備えたものである。
(57) [Summary] [PROBLEMS] To make it possible to input a task of creating a test sequence for testing a target system smoothly and without errors in software development. SOLUTION: A state transition table (101) including a next transition state and an event causing the state transition,
An event state extraction unit (701) for extracting the state and the event included in the state transition table, and generating an event state definition table defining the contents of the event based on the extracted state and the event And an event state definition generation unit (702).
Description
【0001】[0001]
【発明の属する技術分野】本発明は、状態ベースの仕様
からテストシーケンスを生成する支援や、状態ベースの
仕様テスト自動実行システムへの入力データとなるイベ
ント定義を生成する支援を行なうテスト支援装置に関す
るものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a test support apparatus for supporting the generation of a test sequence from a state-based specification and the generation of an event definition as input data to an automatic state-based specification test execution system. Things.
【0002】[0002]
【従来の技術】ソフトウェア、ハードウェア、あるいは
両者が混在するシステム開発において、開発対象である
システムの仕様を早期に誤りなく決定するために、有限
状態機械など状態ベースの仕様記述を用いて、開発対象
システムがどのように動作するかの仕様を分析/定義す
ることが広く行なわれている。図21は、例えば特開昭
63−148747号公報に示される従来の状態遷移仕
様に基づくテスト支援装置である。状態・イベント検索
部2002では、入力された状態遷移図2001から状
態およびその直後のイベントを取り出す。次に同時操作
抽出部2003では、取り出された個々の状態及びイベ
ントに対して、同時操作抽出ルール2005を検索して
同時操作となり得るイベントの組み合わせを調べ、それ
に従ってその状態において起こり得る同時操作とその結
果の状態とを求める。このようにして状態遷移図200
1中のすべての状態およびイベントに対して上記の処理
を行ない求めた結果を、試験項目表作成部2004によ
って同時操作試験の試験項目表2006にして出力す
る。2. Description of the Related Art In the development of a system in which software, hardware, or a mixture of both are used, in order to determine the specifications of a system to be developed quickly and without errors, development is performed using a state-based specification description such as a finite state machine. It is widely practiced to analyze / define the specifications of how the target system operates. FIG. 21 shows a conventional test support device based on a state transition specification disclosed in Japanese Patent Application Laid-Open No. 63-148747. The state / event search unit 2002 extracts a state and an event immediately after the state from the input state transition diagram 2001. Next, the simultaneous operation extraction unit 2003 searches the simultaneous operation extraction rule 2005 for each of the extracted states and events to check a combination of events that can be a simultaneous operation. The state of the result is obtained. Thus, the state transition diagram 200
The results obtained by performing the above processing for all the states and events in 1 are output as a test item table 2006 of the simultaneous operation test by the test item table creation unit 2004.
【0003】[0003]
【発明が解決しようとする課題】図21に示す従来のテ
スト支援装置は、状態遷移図に含まれる全状態と、そこ
から出ていく状態遷移を対象に、同時操作試験ルールに
したがって対象となる状態遷移を選択し、選択された状
態遷移から、遷移を引き起こすイベントと遷移後の状態
のリストを表の形式にして出すものである。従来の状態
遷移仕様に基づくテスト支援装置からは、テスト項目と
して、各状態に対する発生イベントとそれに対する期待
値である遷移先が出力される。このような従来のテスト
支援装置には、次のような問題点があった。 (1)状態遷移図を基となる仕様としているので、状態
に対して遷移を引き起こすイベントだけが記述されてお
り、状態とイベントとの組み合わせが網羅的にならな
い。 (2)出力されたテスト項目をすべてテストするために
は、まず各状態にシステムの状態を設定してから、状態
遷移を引き起こすイベントを入力しなければならない。
この設定は非常に面倒であるので、テストを実施する前
に、複数の状態遷移を順次たどるためのテストシーケン
スを改めて生成しなければならない。The conventional test support apparatus shown in FIG. 21 targets all states included in the state transition diagram and state transitions exiting from the state transition target according to the simultaneous operation test rule. A state transition is selected, and from the selected state transition, a list of events that cause the transition and states after the transition are displayed in a table format. From a test support device based on the conventional state transition specification, an occurrence event for each state and a transition destination which is an expected value for the state are output as test items. Such a conventional test support apparatus has the following problems. (1) Since the specifications are based on a state transition diagram, only events that cause a transition to a state are described, and combinations of states and events are not exhaustive. (2) In order to test all output test items, it is necessary to first set a system state in each state and then input an event that causes a state transition.
Since this setting is very troublesome, a test sequence for sequentially following a plurality of state transitions must be generated again before the test is performed.
【0004】テスト自動実行装置とは、テストシーケン
スとその中で使われているイベントと状態を定義するイ
ベント・状態表を入力し、そのテストシーケンスを実施
し結果をレポートする装置である。イベント・定義表と
は、テストシーケンス中で使われているイベントと状態
が、被試験プログラムに対してどんな意味を持っている
か(例えばあるメモリの値がある数値になったとかプロ
グラムの実行がある位置まで来たなど)を定義した表で
ある。通常、イベント・状態定義表は、手入力をしなけ
ればならないため、この作業に時間がかかるとともに、
テストシーケンスで使っていながらイベント・状態定義
表にないという場合が起こり、テスト自動実行ができな
いという問題点があった。An automatic test execution apparatus is an apparatus that inputs a test sequence and an event / state table defining events and states used in the test sequence, executes the test sequence, and reports a result. The event / definition table describes the meaning of the events and states used in the test sequence for the program under test (for example, when a certain memory value reaches a certain value or when the program is executed). It is a table that defines the position. Usually, the event / state definition table requires manual input, so this work takes time,
There is a case where the test / sequence does not exist in the event / state definition table even though it is used in the test sequence, and the test cannot be automatically executed.
【0005】この発明は上記のような問題点を解決する
ためになされたもので、ソフトウェア開発において、対
象システムのテストを行なうためのテストシーケンスを
作成する作業を、誤りなくスムーズに入力することを可
能とし、仕様の変更に対して、テストシーケンスの変更
作業を効率良くすることを目的としている。SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems. In software development, it is necessary to smoothly input the operation of creating a test sequence for testing a target system without error. The purpose is to make test sequence change work more efficient with respect to specification changes.
【0006】[0006]
【課題を解決するための手段】第1の発明は、次に遷移
する状態とこの状態遷移を引き起こすイベントとが含ま
れる状態遷移表と、この状態遷移表中に含まれる前記状
態と前記イベントとを抽出するイベント状態抽出部と、
この抽出された状態とイベントとに基づいて、イベント
の内容を定義したイベント状態定義表を生成するイベン
ト状態定義生成部とを備えたものである。According to a first aspect of the present invention, there is provided a state transition table including a next transition state and an event causing the state transition, and the state and the event included in the state transition table. An event state extraction unit for extracting
An event status definition generating unit that generates an event status definition table defining the contents of the event based on the extracted status and the event is provided.
【0007】第2の発明は、状態遷移を引き起こすイベ
ントの内容がシステムにより予め定義されたイベント状
態定義ファイルと、前記イベント状態抽出部により抽出
されたイベントが前記イベント状態定義ファイル中に存
在するか否かをチエックするイベント状態照合部とを備
えたものである。A second invention is an event state definition file in which the contents of an event causing a state transition are defined in advance by a system, and whether an event extracted by the event state extraction unit exists in the event state definition file. And an event state matching unit for checking whether or not the event state is checked.
【0008】第3の発明は、前記イベント状態照合部の
チエックにより、前記イベント状態抽出部により抽出さ
れたイベントが前記イベント状態定義ファイル中に存在
しなかった場合に、前記抽出されたイベントの内容を前
記イベント状態定義ファイルに追加するイベント状態定
義追加部を備えたものである。According to a third aspect of the present invention, when the event extracted by the event status extracting unit does not exist in the event status definition file, the content of the extracted event is checked by the event status checking unit. Is added to the event state definition file.
【0009】[0009]
【発明の実施の形態】実施の形態1.図1は、本発明の
実施の形態1によるテスト支援装置の機能構成図を示
す。図1において、101は、本テスト支援装置の入力
となる状態遷移表、102は、状態遷移表101を入力
し、内部状態遷移表103を出力する状態遷移表入力部
である。104は、内部状態遷移表103を入力し表の
形式で表示する遷移表表示部である。105は、ユーザ
が状態遷移表101中のセルを選択する操作を解釈し、
選択されたセルに相当するテスト項目を順次生成するテ
ストシーケンス生成部である。図2は、状態遷移表10
1の一例である。状態遷移表101は、行としてシステ
ムの状態、列としてシステムへの入力イベントをとるマ
トリックスデータである(行と列が逆の場合もある)。
1つの状態と1つのイベントで指定されるセルには、次
に遷移する状態と遷移の瞬間に実行されるアクションを
記述する。図2において、次のような構文ルールとなっ
ている。 遷移先状態/アクション 遷移先状態に「−」を指定している箇所は、遷移がなく
アクションも実行されないという意味である。斜めに線
を引かれたセルは、起こり得ない遷移を表している。こ
のセルを除いた残りのセルを有効セルと呼ぶ。内部状態
遷移表103は、入力の状態遷移表101に加えて、表
全体に現在の状態と次入力イベントの候補を示すデータ
領域と、各セルに通過回数のデータ領域とを加えたもの
である。ある現在状態で通過回数が0である有効セルを
候補セルと呼ぶこととする。DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiment 1 FIG. 1 shows a functional configuration diagram of the test support device according to the first embodiment of the present invention. In FIG. 1, reference numeral 101 denotes a state transition table which is an input of the test support apparatus, and 102 denotes a state transition table input unit which inputs the state transition table 101 and outputs an internal state transition table 103. Reference numeral 104 denotes a transition table display unit that inputs the internal state transition table 103 and displays it in a table format. 105 interprets the operation of the user selecting a cell in the state transition table 101,
This is a test sequence generation unit that sequentially generates test items corresponding to the selected cells. FIG. 2 shows a state transition table 10
1 is an example. The state transition table 101 is matrix data in which a system state is taken as a row and an input event to the system is taken as a column (the row and the column may be reversed).
In the cell specified by one state and one event, the next transition state and the action executed at the moment of the transition are described. In FIG. 2, the syntax rules are as follows. Transition destination state / action A portion where "-" is designated as the transition destination state means that there is no transition and no action is executed. Diagonally lined cells represent improbable transitions. The remaining cells excluding this cell are called valid cells. The internal state transition table 103 is obtained by adding, in addition to the input state transition table 101, a data area indicating the current state and a candidate for the next input event to the entire table, and a data area indicating the number of passes to each cell. . A valid cell whose passing number is 0 in a certain current state is referred to as a candidate cell.
【0010】図3は、実施の形態1の動作を示すフロー
チャートであり、このフローチャートに基づいて実施の
形態1の動作を説明する。まず、遷移表入力部102が
状態遷移表101を読み込み(301)、内部状態遷移
表103へ出力する。この際、すべてのセルの有効回数
を0に設定する。遷移表表示部104が内部状態遷移表
103を表示する(302)。以下、ユーザによる終了
指定が行なわれるか、すべての有効セルの通過回数が1
以上になるまで、テストシーケンス生成部105が、テ
ストシーケンス作成処理(303)を繰り返す。テスト
シーケンス作成処理(303)では、まずユーザからの
初期状態の入力を待つ(304)。この際、候補セルの
ない初期状態が選ばれないようにする。候補セルのある
初期状態を入力できた場合、入力結果を現在状態に代入
する。そうでない場合には終了する。この入力した初期
状態を次のように出力する(305)。 初期状態 次に、現在状態に初期状態を代入し(306)、現在状
態に対する候補セルがなくなるまでテスト項目処理(3
07)を繰り返す。テスト項目処理(307)では、そ
の候補セルをハイライトし(308)、セルの選択待ち
(309)に入る。ユーザが候補セルの中から1つ選択
すると、そのセルの記述に基づいて次の出力をする(3
10)。 (入力イベント,遷移先状態,アクション) 次に現在状態の値を遷移先状態とし(311)、選択さ
れたセルの通過回数を1増やし(312)、テスト項目
処理(307)に戻りこの処理を繰り返す。FIG. 3 is a flowchart showing the operation of the first embodiment. The operation of the first embodiment will be described based on this flowchart. First, the transition table input unit 102 reads the state transition table 101 (301) and outputs it to the internal state transition table 103. At this time, the valid times of all cells are set to zero. The transition table display unit 104 displays the internal state transition table 103 (302). Thereafter, the end is designated by the user, or the number of passes of all valid cells is 1
Until the above, the test sequence generation unit 105 repeats the test sequence creation processing (303). In the test sequence creation process (303), first, an input of an initial state from the user is waited (304). At this time, an initial state with no candidate cell is not selected. If a certain initial state of the candidate cell can be input, the input result is substituted for the current state. Otherwise, end. The input initial state is output as follows (305). Initial state Next, the initial state is substituted for the current state (306), and test item processing (3) is performed until there are no candidate cells for the current state.
07) is repeated. In the test item processing (307), the candidate cell is highlighted (308), and the process waits for cell selection (309). When the user selects one of the candidate cells, the next output is performed based on the description of the cell (3).
10). (Input event, transition destination state, action) Next, the value of the current state is set as the transition destination state (311), the number of passages of the selected cell is increased by one (312), and the process returns to the test item process (307) to repeat this process. repeat.
【0011】図4は、実施の形態1の動作の流れを説明
する説明図である。図4の左側には遷移表表示部104
によって表示される内部状態遷移表103の画面イメー
ジを示す。図4の左側に示される内部状態遷移表103
の各セルの値は、状態遷移表101からコピーされたも
のである。図4の右側には、その左の画面に対応した内
部状態遷移表103の内部データを示す。その内部デー
タとしては、現在状態と候補セルと通過回数と、その時
点でのテストシーケンス出力がある。例えば、出力=s
1−>(e1,s2,a1)−>(e1,s2,−)
は、「初期状態s1からスタートし、入力イベントe1
が来ると期待値として、次の状態がs2になりアクショ
ンとしてa1を出力する。次に入力イベントe1が来る
と期待値として、次の状態がs2で変わらず何もアクシ
ョンが出力されない」という意味である。また、通過回
数=(1,0,1,0)は、セル11(1行1列のセル
の意味:状態s1−イベントe1に対応)の通過回数=
1、セル12の通過回数=0、セル21の通過回数=
1、セル22の通過回数=0という意味である。FIG. 4 is an explanatory diagram for explaining the flow of the operation of the first embodiment. The transition table display section 104 is on the left side of FIG.
9 shows a screen image of the internal state transition table 103 displayed by the に よ っ て. The internal state transition table 103 shown on the left side of FIG.
Are copied from the state transition table 101. On the right side of FIG. 4, the internal data of the internal state transition table 103 corresponding to the left screen is shown. The internal data includes a current state, a candidate cell, the number of passes, and a test sequence output at that time. For example, output = s
1-> (e1, s2, a1)-> (e1, s2,-)
Is "Starting from the initial state s1 and input event e1
Comes, the next state becomes s2 as an expected value, and a1 is output as an action. Next, when the input event e1 comes, the next state is s2, and no action is output as an expected value. Also, the number of passes = (1,0,1,0) is the number of passes of the cell 11 (meaning the cell in the first row and the first column: corresponding to the state s1-the event e1)
1, the number of passages through cell 12 = 0, the number of passages through cell 21 =
1, meaning that the number of times of passage through the cell 22 = 0.
【0012】図4において、201は初期画面であり、
初期状態としてS1が指定され、候補セルとしてセル1
1がハイライト表示されている。202は、初期画面に
対してユーザがセル11を選択した後の結果を示す画面
である。画面202で、セル11がマークされ、現在状
態をセル11に示された遷移先状態であるs2とし、s
2に対する候補セルであるセル21とセル22をハイラ
イト表示している。画面203は、画面202からさら
に、ユーザがセル21を選択したときの結果を表す画面
である。画面203では、現在状態は変わらず、セル2
1がマークされ、候補セルがセル22だけになる。画面
204は、画面203からさらに、ユーザがセル22を
選択したときの結果を表す画面である。現在状態s1に
対して候補セルが存在しないので、このテストシーケン
スはここまでで終了である。さらに候補セルのある状態
がないので、処理を終了する。In FIG. 4, reference numeral 201 denotes an initial screen.
S1 is designated as an initial state, and cell 1 is designated as a candidate cell.
1 is highlighted. Reference numeral 202 denotes a screen showing a result after the user selects the cell 11 on the initial screen. On the screen 202, the cell 11 is marked, and the current state is s2, which is the transition destination state shown in the cell 11, and s2
Cell 21 and cell 22, which are candidate cells for No. 2, are highlighted. The screen 203 is a screen showing the result when the user selects the cell 21 from the screen 202. On the screen 203, the current state does not change, and the cell 2
1 is marked, and cell 22 is the only candidate cell. The screen 204 is a screen showing the result when the user selects the cell 22 from the screen 203. Since there is no candidate cell for the current state s1, this test sequence ends here. Since there are no more candidate cells, the process ends.
【0013】以上のように本実施の形態によれば、状態
遷移表に基づくテストシーケンス作成において、一つの
テスト項目の次の遷移先状態と、その次のテスト項目の
現在状態とは一致していなければならないが、現在状態
に対する候補セルを見せ操作者を順次入力導いていくた
め、誤りなくテストシーケンスを作ることができる。ま
た、既に生成したテストシーケンスで通過した候補セル
は、ハイライトされないので重複したテスト項目を選択
してしまうことを防ぐ。さらにまた、既にテスト項目と
して選択したセルを表示するため、何がテスト項目とし
て残っているかを把握することができ、テスト項目をも
れなく作りながら効率的にテストシーケンスを作ること
ができる。これらによって、従来例の問題点であるテス
ト項目の網羅性が保証されないことと、テスト項目生成
とテストシーケンスの生成が別の作業となることを解決
している。As described above, according to the present embodiment, when a test sequence is created based on a state transition table, the next transition destination state of one test item matches the current state of the next test item. However, since the candidate cells for the current state are shown and the operator is sequentially input and guided, a test sequence can be created without error. Also, candidate cells that have passed in the already generated test sequence are not highlighted, thereby preventing selection of duplicate test items. Furthermore, since the cells already selected as test items are displayed, it is possible to grasp what remains as test items, and to efficiently create a test sequence while creating all test items. This solves the problem of the conventional example that the coverage of the test items is not guaranteed and that the test item generation and the test sequence generation are different operations.
【0014】なお、本実施の形態においては、図2に示
した状態遷移表を用いたが、階層的な状態を用いた状態
遷移表においても、ある現在状態に対して上位の状態ま
で含めて候補セルを作成するようにすれば、本実施の形
態と同様に扱うことができる。また、本実施の形態の動
作の説明では、図4に示したようにハイライト表示やマ
ークの表示を行うが、操作者にそれとわかる他の方法を
用いることも勿論可能である。In the present embodiment, the state transition table shown in FIG. 2 is used. However, even in a state transition table using hierarchical states, a state higher than a certain current state is included. If a candidate cell is created, it can be handled in the same manner as in the present embodiment. Further, in the description of the operation of the present embodiment, the highlight display and the mark display are performed as shown in FIG. 4, but it is of course possible to use another method that the operator can understand.
【0015】実施の形態2.図5は、本発明の実施の形
態2によるテスト支援装置の機能構成図を示す。図5に
おいて、101〜104は図1に示す機能ブロックと同
様のものである。403は、次の形式の内容をテストシ
ーケンス1単位として記述する複数のテストシーケンス
を含むテストシーケンスファイルである。*は繰り返し
を表す。 テストシーケンス=初期状態+テスト項目* テスト項目=(入力イベント,遷移先状態,アクショ
ン) 401は、エラー判定付テストシーケンストレース部で
あり、テストシーケンスファイル403を読み込み、個
々のテストシーケンスを内部状態遷移表103上でトレ
ースすることで、システムの仕様とテストシーケンスと
の間の食い違いを報告する。Embodiment 2 FIG. 5 shows a functional configuration diagram of the test support device according to the second embodiment of the present invention. In FIG. 5, reference numerals 101 to 104 are the same as the functional blocks shown in FIG. Reference numeral 403 denotes a test sequence file including a plurality of test sequences that describe the content of the following format as one test sequence unit. * Represents repetition. Test sequence = initial state + test item * test item = (input event, transition destination state, action) 401 is a test sequence trace unit with error judgment, reads the test sequence file 403 and transitions each test sequence to the internal state. By tracing on table 103, discrepancies between system specifications and test sequences are reported.
【0016】次に実施の形態2の動作について説明す
る。図6は、遷移表入力部102によって内部状態遷移
表103がすでに初期設定されている段階での、エラー
判定付テストシーケンス部401の動作を示すフローチ
ャートである。図6において、まずエラー判定付きテス
トシーケンストレース部401がテストシーケンスファ
イル403の読み込み(601)を行ない、テストシー
ケンスがある限り、個々のテストシーケンスにユニーク
な番号としてシーケンス番号をふり、テストシーケンス
処理(602)を繰り返す。テストシーケンス処理(6
02)では、対象テストシーケンスの初期状態が、内部
状態遷移表103にあるかどうかをチェックし(60
3)、内部状態遷移表103上にない場合には、エラー
リポート1(607)において、次のメッセージを出力
し、新たなテストシーケンスを対象としてテストシーケ
ンス処理(602)を行なう。 シーケンス番号:状態名:初期状態が存在しない 内部状態遷移表103上にある場合には、内部状態遷移
表103内の現在状態を読み込んだ初期状態として(6
04)、テスト項目がある限り、テスト項目処理(60
5)を行なう。ここで処理対象となるテスト項目を対象
テスト項目と呼ぶ。Next, the operation of the second embodiment will be described. FIG. 6 is a flowchart showing the operation of the test sequencer with error determination 401 when the internal state transition table 103 has already been initialized by the transition table input unit 102. In FIG. 6, first, the test sequence trace unit 401 with error judgment reads the test sequence file 403 (601). As long as there is a test sequence, a sequence number is assigned as a unique number to each test sequence, and the test sequence processing ( 602) is repeated. Test sequence processing (6
02), it is checked whether or not the initial state of the target test sequence is in the internal state transition table 103 (60).
3) If not in the internal state transition table 103, the next message is output in the error report 1 (607), and the test sequence processing (602) is performed for a new test sequence. Sequence number: state name: initial state does not exist If the state exists on the internal state transition table 103, the current state in the internal state transition table 103 is read as (6)
04), test item processing (60
Perform 5). Here, the test item to be processed is called a target test item.
【0017】次に、現在状態の候補セル中に、対象テス
ト項目の入力イベントが存在するかどうかをチェックす
る(606)。入力イベントが候補セル中にない場合に
は、エラーリポート2(612)において、次のメッセ
ージを出力し、新たなテストシーケンスを対象としてテ
ストシーケンス処理(602)を行なう。 シーケンス番号:現在状態名:入力イベント名:入力イ
ベントが存在しない 入力イベントが候補セル中にある場合には、その候補セ
ルを選択セルとし、対象テスト項目にあるアクション
と、選択セル内のアクションとを比較する(608)。
アクションが異なる場合、エラーリポート3(613)
において、次のメッセージを出力し、(609)の処理
を実行する。 シーケンス番号:現在状態名:入力イベント名:アクシ
ョン名:アクションが異なる アクションが同じ場合には、何もせずに(609)の処
理を実行する。(609)では、対象テスト項目の遷移
先状態を選択セル内の遷移先とを比較する。遷移先が異
なる場合には、エラーレポート4(614)において、
次のメッセージを出力し、新たなテストシーケンスを対
象としてテストシーケンス処理(602)を行なう。 シーケンス番号:現在状態名:入力イベント名:遷移先
状態名:遷移先が異なる 遷移先が同じ場合には、現在状態をその遷移先状態にし
て(610)、次のテスト項目を対象テスト項目として
テスト項目処理(605)を行なう。Next, it is checked whether or not an input event of the target test item exists in the candidate cell in the current state (606). If the input event is not in the candidate cell, the next message is output in the error report 2 (612), and the test sequence processing (602) is performed for a new test sequence. Sequence number: Current state name: Input event name: No input event exists If an input event exists in a candidate cell, the candidate cell is set as a selected cell, and the action in the target test item and the action in the selected cell Are compared (608).
If the actions are different, error report 3 (613)
, The next message is output, and the process of (609) is executed. Sequence number: current state name: input event name: action name: different actions If the actions are the same, the processing of (609) is executed without doing anything. At (609), the transition destination state of the target test item is compared with the transition destination in the selected cell. When the transition destination is different, in error report 4 (614),
The next message is output, and test sequence processing (602) is performed for the new test sequence. Sequence number: current state name: input event name: destination state name: destination is different When the destination is the same, the current state is set to the destination state (610), and the next test item is set as the target test item Test item processing (605) is performed.
【0018】以上のように本実施の形態によれば、状態
遷移表に基づくテストシーケンス作成において、テスト
シーケンスファイル内に記述されたテストシーケンス群
と、仕様である内部状態遷移表とを比較し、その差異を
レポートすることができるので、作成者がマニュアルで
作成したテストシーケンスの誤りを検出することができ
る。さらに、仕様自体への変更に対し、既に存在するテ
ストシーケンスが新しい仕様に適合しているかどうかを
チェックすることができるので、仕様の変更にともなう
テストシーケンスの再作成を効率良く行なうことができ
る。As described above, according to the present embodiment, when creating a test sequence based on the state transition table, the test sequence group described in the test sequence file is compared with the internal state transition table which is a specification. Since the difference can be reported, an error in the test sequence created manually by the creator can be detected. Furthermore, since it is possible to check whether or not the existing test sequence conforms to the new specification in response to the change to the specification itself, it is possible to efficiently re-create the test sequence according to the change in the specification.
【0019】なお、本実施の形態は、エラーメッセージ
を一定の形式のテキストとして出力するものであるが、
同じ情報を異なる形式で操作者に見せることも可能であ
る。例えば、図5に示す遷移表表示部104が表示して
いる状態遷移表の上でエラー位置を見せることも可能で
ある。In this embodiment, an error message is output as text in a certain format.
The same information can be presented to the operator in different formats. For example, it is possible to show the error position on the state transition table displayed by the transition table display unit 104 shown in FIG.
【0020】実施の形態3.図7は、本発明の実施の形
態3によるテスト支援装置の機能構成図を示す。図7に
おいて、101、102、104は図1に示す機能ブロ
ックと同様のものである。1703は内部状態遷移表で
あり、実施の形態1で示した内部状態遷移表103に次
の変更を加えたものである。内部状態遷移表103では
各セルにマークをつける際、通過回数のみを保存してい
たが、通過したテストシーケンス群の番号を記録する番
号リストのデータ領域を持つものとした。1701は、
テストシーケンスファイル403を入力し、テストシー
ケンスをトレースしつつ、トレース結果を内部状態遷移
表1703にマークしていくマーキング付テストシーケ
ンストレース部である。1702は、マーキング付テス
トシーケンストレース部1701によりトレース結果が
反映された内部状態遷移表1703を解析して、テスト
項目の重複を判定する重複判定部である。Embodiment 3 FIG. 7 shows a functional configuration diagram of the test support device according to the third embodiment of the present invention. 7, 101, 102 and 104 are the same as the functional blocks shown in FIG. Reference numeral 1703 denotes an internal state transition table, which is obtained by adding the following change to the internal state transition table 103 shown in the first embodiment. When marking each cell in the internal state transition table 103, only the number of passes is stored. However, the internal state transition table 103 has a data area of a number list for recording the number of the passed test sequence group. 1701 is
A test sequence trace unit with a mark that inputs the test sequence file 403 and marks the trace result in the internal state transition table 1703 while tracing the test sequence. Reference numeral 1702 denotes a duplication determination unit that analyzes the internal state transition table 1703 on which the trace result is reflected by the test sequence trace unit with marking 1701 and determines duplication of test items.
【0021】次に実施の形態3の動作について説明す
る。図8は、マーキング付テストシーケンストレース部
1701の動作を示すフローチャートであり、図7で示
した遷移表入力部102によって内部状態遷移表170
3がすでに初期設定されていることが仮定されている。
図8は、図6に示したエラー判定付テストシーケンスト
レース部401のフローチャートから、エラーレポート
1(607)、エラーレポート2(612)、アクショ
ンがあるか(608)、エラーレポート3(613)、
エラーレポート4(614)等の各処理を削除し、(2
201)のセルをマークする処理を加えたものである。
(2201)では、対象セルの番号リストに、通過した
テストシーケンスのシーケンス番号の付加を行なう。Next, the operation of the third embodiment will be described. FIG. 8 is a flowchart showing the operation of the test sequence tracing unit with marking 1701, and the internal state transition table 170 is output by the transition table input unit 102 shown in FIG.
3 has already been initialized.
FIG. 8 shows an error report 1 (607), an error report 2 (612), an action (608), an error report 3 (613) from the flowchart of the test sequence tracing unit 401 with error judgment shown in FIG.
Delete each process such as error report 4 (614) and (2
201) is added to mark the cell.
At (2201), the sequence number of the passed test sequence is added to the number list of the target cell.
【0022】図9は、重複判定部1702の動作を示す
フローチャートである。重複判定部1702は、マーキ
ング付テストシーケンストレース部1701の処理が終
了した状態で、処理が行なわれる。図9で、内部状態遷
移表1703内のすべてのセルを対象セルとして重複判
定処理(2401)を行なう。重複判定処理(240
1)では、対象セルの番号リストが、2つ以上の番号を
持っている場合(2402)、次のエラーメッセージを
出力する(2403)。 セル番号:シーケンス番号リスト:テスト項目に重複あ
りFIG. 9 is a flowchart showing the operation of the duplication judgment section 1702. The duplication determination unit 1702 performs processing in a state where the processing of the test sequence trace unit with marking 1701 has been completed. In FIG. 9, duplication determination processing (2401) is performed using all cells in the internal state transition table 1703 as target cells. Duplicate judgment processing (240
In 1), when the number list of the target cell has two or more numbers (2402), the next error message is output (2403). Cell number: Sequence number list: Duplicate test items
【0023】以上のように本実施の形態によれば、状態
遷移表に基づくテストシーケンス作成において、テスト
シーケンスファイル内に記述されたテストシーケンス群
と、仕様である内部状態遷移表とを比較し、テストシー
ケンスの重複度をレポートすることができるので、作成
者がテキストエディタ等を使ってマニュアルで作成した
テストシーケンスの冗長な部分を見つけることができ
る。As described above, according to the present embodiment, when creating a test sequence based on the state transition table, the test sequence group described in the test sequence file is compared with the internal state transition table which is a specification. Since the redundancy of the test sequence can be reported, the creator can find a redundant portion of the test sequence manually created using a text editor or the like.
【0024】なお、本実施の形態は、エラーメッセージ
を一定の形式のテキストとして出力するものであるが、
同じ情報を異なる形式で操作者に見せることも可能であ
る。例えば、表示している状態遷移表の上でエラー位置
を見せることも可能である。In this embodiment, an error message is output as text in a certain format.
The same information can be presented to the operator in different formats. For example, it is also possible to show an error position on the displayed state transition table.
【0025】実施の形態4.図10は、本発明の実施の
形態4によるテスト支援装置の機能構成図を示す。図1
0において、101、102、104、1701、17
03は図7に示す機能ブロックと同様のものである。1
802は、マーキング付テストシーケンストレース部1
701がトレース結果を反映した内部状態遷移表170
3を解析して、テスト項目の不足を判定する不足判定部
である。Embodiment 4 FIG. 10 shows a functional configuration diagram of the test support device according to the fourth embodiment of the present invention. FIG.
At 0, 101, 102, 104, 1701, 17
03 is the same as the functional block shown in FIG. 1
Reference numeral 802 denotes a test sequence trace unit 1 with a marking.
Reference numeral 701 denotes an internal state transition table 170 reflecting a trace result.
3 is an insufficiency judging unit that judges the shortage of test items by analyzing No.
【0026】次に実施の形態4の動作について説明す
る。図11は、不足判定部1802の動作を示すフロー
チャートである。不足判定部1802は、マーキング付
テストシーケンストレース部1701の処理が終了した
状態で、処理が行なわれる。図11で、内部状態遷移表
1703内のすべてのセルを対象セルとして不足判定処
理(2501)を行なう。不足判定処理(2501)で
は、対象セルの番号リストの要素が0個である場合(2
502)、次のエラーメッセージを出力する(240
3)。 セル番号:テスト項目に不足ありNext, the operation of the fourth embodiment will be described. FIG. 11 is a flowchart illustrating the operation of the shortage determination unit 1802. The shortage determination unit 1802 performs the processing in a state where the processing of the test sequence trace unit with marking 1701 has been completed. In FIG. 11, shortage determination processing (2501) is performed with all cells in the internal state transition table 1703 as target cells. In the shortage determination process (2501), when the number of elements in the number list of the target cell is 0 (2
502), and outputs the next error message (240)
3). Cell number: Test item is missing
【0027】以上のように本実施の形態によれば、状態
遷移表に基づくテストシーケンス作成において、テスト
シーケンスファイル内に記述されたテストシーケンス群
と、仕様である内部状態遷移表とを比較し、テストシー
ケンスが不足する分をレポートすることができるので、
作成者がマニュアルで作成したテストシーケンスの不足
する部分を見つけることができる。また、実施の形態1
と組み合わせて、不足した分を作業者に示しながらテス
トシーケンスを補充する支援を行なうこともできる。As described above, according to the present embodiment, when creating a test sequence based on the state transition table, the test sequence group described in the test sequence file is compared with the internal state transition table which is a specification. You can report the lack of test sequences,
The creator can find the missing part of the test sequence created manually. Embodiment 1
In addition to the above, it is possible to assist the operator in replenishing the test sequence while indicating the shortage to the operator.
【0028】なお、本実施の形態は、エラーメッセージ
を一定の形式のテキストとして出力するものであるが、
同じ情報を異なる形式で操作者に見せることも可能であ
る。例えば、表示している状態遷移表の上でエラー位置
を見せることも可能である。In this embodiment, an error message is output as text in a certain format.
The same information can be presented to the operator in different formats. For example, it is also possible to show an error position on the displayed state transition table.
【0029】実施の形態5.図12は、実施の形態2〜
4について、仕様である内部状態遷移表と、検査対象で
あるテストシーケンスの間で、どのようなチェックが行
なわれるかを示す図である。図12で、検査対象はテス
トシーケンス1(504)とテストシーケンス2(50
5)であり、仕様は内部状態遷移表506である。実施
の形態2では、テストシーケンス1(504)の3番目
のテスト項目(e2,s1,a4)のアクションa4
が、内部状態遷移表506上のアクションa3と異なる
ので、次のエラーメッセージが出力される(501)。 1:e2:s1:a4:アクションが異なる 実施の形態3では、テストシーケンス1(504)とテ
ストシーケンス2(505)が、セル22で重なってい
るので、次のエラーメッセージが表示される(50
3)。 22:1,2:テスト項目に重複あり 実施の形態4では、テストシーケンス1(504)とテ
ストシーケンス2(505)が、セル12を通過しない
ので次のエラーメッセージが表示される。 12:テスト項目に不足ありEmbodiment 5 FIG. 12 shows Embodiment 2
4 is a diagram showing what kind of check is performed between an internal state transition table as a specification and a test sequence to be inspected. FIG. In FIG. 12, the test objects are test sequence 1 (504) and test sequence 2 (50).
5), and the specification is the internal state transition table 506. In the second embodiment, the action a4 of the third test item (e2, s1, a4) of the test sequence 1 (504)
Is different from the action a3 on the internal state transition table 506, the following error message is output (501). 1: e2: s1: a4: different actions In the third embodiment, since the test sequence 1 (504) and the test sequence 2 (505) overlap in the cell 22, the following error message is displayed (50).
3). 22: 1, 2: Duplicate test items In the fourth embodiment, since the test sequence 1 (504) and the test sequence 2 (505) do not pass through the cell 12, the following error message is displayed. 12: Insufficient test items
【0030】なお、実施の形態2〜実施の形態4は、ど
うのように組み合わて用いてもよい。Note that Embodiments 2 to 4 may be used in any combination.
【0031】実施の形態6.図13は、本発明の実施の
形態6によるテスト支援装置の機能構成図を示す。図1
3において、101は図1に示す状態遷移表101と同
様のものである。701は、状態遷移表101を入力
し、状態遷移表101内に含まれるイベントと状態を抽
出するイベント状態抽出部であり、702は、抽出され
たイベントと状態を入力しイベント状態定義表703の
雛型を生成するイベント状態定義生成部である。704
は生成したイベント状態定義を編集するためのイベント
状態定義エディタである。Embodiment 6 FIG. FIG. 13 shows a functional configuration diagram of the test support device according to the sixth embodiment of the present invention. FIG.
3, reference numeral 101 is the same as the state transition table 101 shown in FIG. Reference numeral 701 denotes an event state extraction unit that inputs the state transition table 101 and extracts events and states included in the state transition table 101. Reference numeral 702 denotes an event state extraction unit that inputs the extracted events and states, and An event state definition generation unit that generates a template. 704
Is an event state definition editor for editing the generated event state definition.
【0032】イベント状態定義表703は、論理名、I
D、イベント状態種別、定義の4つの項目をもつ表であ
る。従来、テストシーケンスを入力し、プログラムを自
動的にテストするテスト自動実行システムでは、このイ
ベント状態定義表703を入力して、プログラム中の実
アドレスと、テストシーケンス中のイベントと状態との
対応を取っている。定義は、マクロ識別子を用いた算術
(不)等式の論理演算で表現される。定義例を以下に示
す。 例1)イベント「初期化」は、プログラム内のラベルM
_10にプログラムが到達したときと定義する。 初期化,1,EVENT,!M_10 例2)イベント「値変更」は、変数マクロ名INPの内
容が書かれるときに、バイト長比較で、OH以上5H以
下になったときである。 値変更,2,EVENT,0H≦(INP,BYTE)
≦5H 例3)状態「変更中」は、変数マクロ名INPの2ビッ
ト目がオンのときである。 変更中,3,STATE,(INP,BIT,2)=1The event state definition table 703 includes a logical name, I
It is a table having four items of D, event state type, and definition. Conventionally, in a test automatic execution system for inputting a test sequence and automatically testing a program, this event status definition table 703 is input to determine correspondence between a real address in a program, an event and a status in the test sequence. taking it. The definition is expressed by a logical operation of an arithmetic (inequality) equation using a macro identifier. The definition example is shown below. Example 1) Event "Initialization" is the label M in the program
Define when the program reaches _10. Initialization, 1, EVENT,! M_10 Example 2) The event “value change” is when the content of the variable macro name INP is written and becomes OH or more and 5H or less by byte length comparison. Value change, 2, EVENT, 0H ≦ (INP, BYTE)
≦ 5H Example 3) The state “changing” is when the second bit of the variable macro name INP is ON. During change, 3, STATE, (INP, BIT, 2) = 1
【0033】次に本実施の形態の動作について説明す
る。図14は、本実施の形態の動作を示すフローチャー
トである。まず、イベント状態抽出部701が状態遷移
表101を入力し、同表内のすべてのイベントと状態を
抽出する(901)。次にイベント状態定義生成部70
2が、シーケンス番号に1を代入し、抽出された各イベ
ントと状態を対象として、イベントID付加処理(90
2)を繰り返した後、イベント状態定義表703への出
力(907)を行なう。ID付加処理(902)におい
ては、シーケンス番号をイベントと状態に付加して(9
03)、シーケンス番号を1つインクリメントする(9
05)。Next, the operation of this embodiment will be described. FIG. 14 is a flowchart showing the operation of the present embodiment. First, the event state extraction unit 701 inputs the state transition table 101, and extracts all events and states in the table (901). Next, the event state definition generation unit 70
2 assigns 1 to the sequence number, and performs an event ID addition process (90 for each extracted event and state).
After repeating step 2), an output (907) to the event state definition table 703 is performed. In the ID adding process (902), the sequence number is added to the event and the state (9
03), increments the sequence number by one (9)
05).
【0034】図15は、本実施の形態の動作を説明する
例である。図15において、801は入力となる状態遷
移表であり、802は出力となるイベント状態定義表の
雛型である。状態遷移表801において、イベントと状
態は、e1,e2,s1,s2であり、802にはその
論理名、ID、イベント状態種別が出力される。定義に
ついてはUNDEFと出力している。図16は、図15
に示したイベント状態定義表の雛型802を入力した直
後のイベント状態定義エディタ704の画面例である。
このイベント状態定義エディタ704を用いて操作者
は、各イベントと状態の定義を入力することができる。FIG. 15 is an example for explaining the operation of the present embodiment. In FIG. 15, reference numeral 801 denotes an input state transition table, and reference numeral 802 denotes a template of an output event state definition table. In the state transition table 801, events and states are e1, e2, s1, and s2, and the logical name, ID, and event state type are output to 802. The definition is output as UNDEF. FIG.
8 is a screen example of the event state definition editor 704 immediately after inputting the template 802 of the event state definition table shown in FIG.
Using the event state definition editor 704, the operator can input the definition of each event and state.
【0035】以上のように本実施の形態によれば、状態
遷移表に基づくテスト自動実行システムへの入力データ
としてイベント状態定義を作成する場合において、仕様
である状態遷移表内のイベントと状態を用いて定義され
たテストシーケンスに対して、操作者が過不足なくイベ
ントと状態の定義を与えることを強要するので、誤りが
混入し難いという利点がある。As described above, according to the present embodiment, when creating an event state definition as input data to the automatic test execution system based on the state transition table, the event and the state in the state transition table, which are specifications, are defined. Since the operator is forced to give the definitions of the event and the status to the test sequence defined by using the same, there is an advantage that errors are hardly mixed.
【0036】実施の形態7.図17は、本発明の実施の
形態7によるテスト支援装置の機能構成図を示す。図1
7において、101、701、703は図13に示すも
のと同様のものである。1001は、イベント状態抽出
部701からの出力と、イベント状態定義ファイル70
5からの出力を照合するイベント状態照合部である。1
002はイベント状態照合部1001の出力結果を示す
エラーリポートである。Embodiment 7 FIG. 17 shows a functional configuration diagram of the test support device according to the seventh embodiment of the present invention. FIG.
7, 101, 701 and 703 are the same as those shown in FIG. Reference numeral 1001 denotes an output from the event state extraction unit 701 and an event state definition file 70.
5 is an event state collating unit for collating the output from 5. 1
Reference numeral 002 denotes an error report indicating an output result of the event state matching unit 1001.
【0037】次に本実施の形態の動作について説明す
る。図18は、本実施の形態の動作を示すフローチャー
トである。まず、イベント状態抽出部701が状態遷移
表101を入力し、同表内のすべてのイベントと状態を
抽出する(901)。その後、イベント状態照合部10
01が、状態遷移表101より抽出したイベントと状態
を対象イベント/状態として照合処理(1201)を行
ない、全イベント状態定義列に対してイベント状態定義
チェック(1208)を行ない、エラーメッセージの出
力(1212)を行ない、終了する。照合処理(120
1)においては、全イベント状態定義列について個別照
合処理(1202)を行なう。個別照合処理(120
2)においては、状態遷移表101から抽出したイベン
ト状態が、イベント状態定義ファイル705にあれば
(1203)、そのイベント状態定義ファイル705の
列にマークし(1204)、次の照合処理(1201)
を行なう。そうでなければ再度個別総合処理を行なう。
すべてのイベント状態定義列についてチェックを行なっ
た結果一致するものがない場合には、エラーメッセージ
の作成1(1206)において次のエラーメッセージを
作成する。 イベント状態定義:ID:イベント状態の定義がない さらに、イベント状態チェックについてのイベント状態
定義チェック(1208)において、対象イベント状態
定義列にマークがないかどうかをチェックする。マーク
がない場合、エラーメッセージの作成2(1210)に
おいて次のエラーメッセージを作成する。 イベント状態の定義:ID:遷移表にイベント状態の定
義がない エラーメッセージの出力(1212)においては、エラ
ーメッセージの作成1(1206)とエラーメッセージ
の作成2(1210)で作られたエラーメッセージをエ
ラーレポート(1002)として出力する。Next, the operation of this embodiment will be described. FIG. 18 is a flowchart showing the operation of the present embodiment. First, the event state extraction unit 701 inputs the state transition table 101, and extracts all events and states in the table (901). After that, the event state matching unit 10
01 performs a matching process (1201) using the event and state extracted from the state transition table 101 as target events / states, performs an event state definition check (1208) on all event state definition columns, and outputs an error message ( 1212), and the processing ends. Checking process (120
In 1), individual collation processing (1202) is performed for all event state definition columns. Individual collation processing (120
In 2), if the event state extracted from the state transition table 101 exists in the event state definition file 705 (1203), the column of the event state definition file 705 is marked (1204), and the next collation processing (1201)
Perform If not, the individual comprehensive processing is performed again.
If no match is found as a result of checking all the event state definition columns, the next error message is created in error message creation 1 (1206). Event status definition: ID: No event status is defined. Further, in the event status definition check (1208) for the event status check, it is checked whether or not there is a mark in the target event status definition column. If there is no mark, the next error message is created in error message creation 2 (1210). Event state definition: ID: No definition of event state in transition table In the output of error message (1212), the error message created in error message creation 1 (1206) and error message creation 2 (1210) Output as an error report (1002).
【0038】以上のように本実施の形態によれば、状態
遷移表に基づくテストシーケンス作成において、仕様で
ある状態遷移表内で使われるイベントと状態と、イベン
ト状態定義表で定義されたイベントと状態の過不足を調
べることができるので、テスト自動実行システムへの入
力であるテストシーケンスを解釈する上で必要なイベン
ト状態定義を誤りなく定義することができ、スムーズに
テスト自動実行を行なうことが可能となる。As described above, according to the present embodiment, when creating a test sequence based on the state transition table, the events and states used in the state transition table, which is the specification, and the events defined in the event state definition table Since it is possible to check the excess or deficiency of the status, it is possible to define the event status definition necessary for interpreting the test sequence that is the input to the automatic test execution system without errors, and to perform the automatic test execution smoothly. It becomes possible.
【0039】実施の形態8.図19は、本発明の実施の
形態8によるテスト支援装置の機能構成図を示す。図1
9において、101、704、705は図13に示すも
のと同様のものである。1301は、イベント状態抽出
部701からの出力と、イベント状態定義ファイル70
5からの出力を照合するイベント状態照合部である。1
302はイベント状態照合部1301の出力結果を示す
エラーリポートである。1303はイベント状態照合部
1301の出力であるイベント状態名を基にイベント状
態定義ファイル705に新たなイベント状態定義の雛型
を追加するイベント状態定義生成部である。Embodiment 8 FIG. FIG. 19 shows a functional configuration diagram of the test support device according to the eighth embodiment of the present invention. FIG.
9, 101, 704 and 705 are the same as those shown in FIG. Reference numeral 1301 denotes an output from the event state extraction unit 701 and the event state definition file 70.
5 is an event state collating unit for collating the output from 5. 1
Reference numeral 302 denotes an error report indicating an output result of the event state matching unit 1301. An event state definition generation unit 1303 adds a new event state definition template to the event state definition file 705 based on the event state name output from the event state matching unit 1301.
【0040】次に本実施の形態の動作について説明す
る。図20は、本実施の形態の動作を示すフローチャー
トである。図20において、(901)は図14のフロ
ーチャートに示されるものと同じ処理を行なう。イベン
ト状態照合部1301が行なう照合処理(1201)に
おいては、図17のイベント照合部1001おける図1
8の照合処理(1201)に、(1301)の新イベン
ト状態定義生成の処理が加わった以外は同じである。
(1301)では、イベント状態定義列の中で、遷移表
内に存在しないものは、新イベント状態定義として、イ
ベント状態定義生成部1303へ出力される。さらに、
(1209)〜(1212)は図18のものと全く同じ
である、(1302)では、シーケンス番号にイベント
状態定義表内のID番号の最大値に1を足した数字を代
入し、ID付加処理(902)とイベント状態定義表へ
の出力(907)を行なう。(902)(907)は図
14に示すものと全く同じ処理である。Next, the operation of this embodiment will be described. FIG. 20 is a flowchart showing the operation of the present embodiment. In FIG. 20, (901) performs the same processing as that shown in the flowchart of FIG. In the matching process (1201) performed by the event state matching unit 1301, the event matching unit 1001 shown in FIG.
8 is the same as that of FIG. 8 except that a process of generating a new event state definition of (1301) is added to the matching process (1201).
In (1301), the event state definition column that does not exist in the transition table is output to the event state definition generation unit 1303 as a new event state definition. further,
(1209) to (1212) are completely the same as those in FIG. 18. In (1302), a number obtained by adding 1 to the maximum value of the ID number in the event state definition table is substituted for the sequence number, and the ID addition processing is performed. (902) and output to the event state definition table (907). Steps (902) and (907) are exactly the same as those shown in FIG.
【0041】以上のように本実施の形態によれば、状態
遷移表に基づくテストシーケンス作成において、イベン
ト状態定義表と仕様である状態遷移表とを比較し、イベ
ント状態定義として足りないものは新たに定義を促した
り、余計なイベント状態定義を検出したりすることがで
きるので、仕様の変更が頻繁に起こる場合、すでに作ら
れているテストシーケンスとそこで使われるイベント状
態定義と仕様との整合性を保つことが容易となる。As described above, according to the present embodiment, when creating a test sequence based on the state transition table, the event state definition table is compared with the specification state transition table. If the specification changes frequently, the test sequence that has already been created and the event state definition used there must be consistent with the specification because the specification can be changed frequently. Will be easier to keep.
【0042】[0042]
【0043】第1の発明によれば、次に遷移する状態と
この状態遷移を引き起こすイベントとが含まれる状態遷
移表と、この状態遷移表中に含まれる前記状態と前記イ
ベントとを抽出するイベント状態抽出部と、この抽出さ
れた状態とイベントとに基づいて、イベントの内容を定
義したイベント状態定義表を生成するイベント状態定義
生成部とを備えたことにより、操作者が過不足なくイベ
ントと状態の定義を与えることができる。According to the first aspect, a state transition table including a next transition state and an event causing the state transition, and an event for extracting the state and the event included in the state transition table By providing a state extraction unit and an event state definition generation unit that generates an event state definition table that defines the contents of the event based on the extracted state and the event, the operator can determine whether the event is A definition of the state can be given.
【0044】第2の発明によれば、状態遷移を引き起こ
すイベントの内容がシステムにより予め定義されたイベ
ント状態定義ファイルと、前記イベント状態抽出部によ
り抽出されたイベントが前記イベント状態定義ファイル
中に存在するか否かをチエックするイベント状態照合部
とを備えたことにより、テスト自動実行システムへの入
力であるテストシーケンスを解釈する上で必要なイベン
ト状態定義を誤りなく定義することができる。According to the second invention, the contents of the event causing the state transition are defined in the event state definition file by the system, and the event extracted by the event state extraction unit exists in the event state definition file. With the provision of the event state collating unit for checking whether or not to perform the test, it is possible to define the event state definition necessary for interpreting the test sequence as an input to the automatic test execution system without error.
【0045】第3の発明によれば、前記イベント状態照
合部のチエックにより、前記イベント状態抽出部により
抽出されたイベントが前記イベント状態定義ファイル中
に存在しなかった場合に、前記抽出されたイベントの内
容を前記イベント状態定義ファイルに追加するイベント
状態定義追加部を備えたことにより、仕様の変更が頻繁
に起こる場合、すでに作られているテストシーケンスと
そこで使われるイベント状態定義と仕様との整合性を保
つことが容易となる。According to the third aspect, when the event extracted by the event status extracting unit does not exist in the event status definition file by the check of the event status checking unit, the extracted event is output. When the specification changes frequently, the event sequence definition is added to the event status definition file. If the specification frequently changes, the test sequence that has already been created matches the event status definition used in the specification with the specification. It is easy to maintain the performance.
【図1】 この発明の実施の形態1におけるテスト支援
装置の機能構成図である。FIG. 1 is a functional configuration diagram of a test support device according to Embodiment 1 of the present invention.
【図2】 状態遷移表の一例を示す図である。FIG. 2 is a diagram illustrating an example of a state transition table.
【図3】 この発明の実施の形態1の動作を示すフロー
チャートである。FIG. 3 is a flowchart showing the operation of the first embodiment of the present invention.
【図4】 この発明の実施の形態1におけるテストシー
ケンス生成支援の具体的イメージを示す一例である。FIG. 4 is an example showing a specific image of test sequence generation support according to the first embodiment of the present invention.
【図5】 この発明の実施の形態2におけるテスト支援
装置の機能構成図である。FIG. 5 is a functional configuration diagram of a test support device according to a second embodiment of the present invention.
【図6】 この発明の実施の形態2の動作を示すフロー
チャートである。FIG. 6 is a flowchart showing an operation of the second embodiment of the present invention.
【図7】 この発明の実施の形態3におけるテスト支援
装置の機能構成図である。FIG. 7 is a functional configuration diagram of a test support device according to Embodiment 3 of the present invention.
【図8】 この発明の実施の形態3におけるマーキング
付きテストシーケンストレース部の動作を示すフローチ
ャートである。FIG. 8 is a flowchart illustrating an operation of a test sequence trace unit with marking according to Embodiment 3 of the present invention;
【図9】 この発明の実施の形態3の動作を示すフロー
チャートである。FIG. 9 is a flowchart showing the operation of the third embodiment of the present invention.
【図10】 この発明の実施の形態4におけるテスト支
援装置の機能構成図である。FIG. 10 is a functional configuration diagram of a test support device according to Embodiment 4 of the present invention.
【図11】 この発明の実施の形態4の動作を示すフロ
ーチャートである。FIG. 11 is a flowchart showing an operation of the fourth embodiment of the present invention.
【図12】 この発明の実施の形態5におけるテストシ
ーケンス評価の一例を示す図である。FIG. 12 is a diagram showing an example of a test sequence evaluation according to the fifth embodiment of the present invention.
【図13】 この発明の実施の形態6におけるテスト支
援装置の機能構成図である。FIG. 13 is a functional configuration diagram of a test support device according to Embodiment 6 of the present invention.
【図14】 この発明の実施の形態6の動作を示すフロ
ーチャートである。FIG. 14 is a flowchart showing the operation of the sixth embodiment of the present invention.
【図15】 この発明の実施の形態6の入出力例を示し
た図である。FIG. 15 is a diagram showing an input / output example according to a sixth embodiment of the present invention.
【図16】 この発明の実施の形態6におけるイベント
状態定義エディタの画面例である。FIG. 16 is a screen example of an event state definition editor according to Embodiment 6 of the present invention.
【図17】 この発明の実施の形態7におけるテスト支
援装置の機能構成図である。FIG. 17 is a functional configuration diagram of a test support device according to Embodiment 7 of the present invention.
【図18】 この発明の実施の形態7の動作を示すフロ
ーチャートである。FIG. 18 is a flowchart showing the operation of the seventh embodiment of the present invention.
【図19】 この発明の実施の形態8におけるテスト支
援装置の機能構成図である。FIG. 19 is a functional configuration diagram of a test support device according to an eighth embodiment of the present invention.
【図20】 この発明の実施の形態8の動作を示すフロ
ーチャートである。FIG. 20 is a flowchart showing the operation of the eighth embodiment of the present invention.
【図21】 この発明による従来のテストケース生成装
置の機能構成である。FIG. 21 is a functional configuration of a conventional test case generation device according to the present invention.
101 状態遷移表、102 状態遷移表入力部、10
3 内部状態遷移表、104 遷移表表示部、105
テストシーケンス生成部、401 エラー判定付テスト
シーケンストレース部、403 テストシーケンスファ
イル、701イベント状態抽出部、702 イベント状
態定義生成部、703 イベント状態定義表、704
イベント状態定義エディタ、705 イベント状態定義
ファイル、1001 イベント状態照合部、1002
エラーリポート、1301 イベント状態照合部、13
02 エラーリポート、1303 イベント状態定義生
成部、1701 マーキング付テストシーケンストレー
ス部、1702 重複判定部、1802 不足判定部。101 state transition table, 102 state transition table input section, 10
3 internal state transition table, 104 transition table display section, 105
Test sequence generation unit, 401 Test sequence trace unit with error judgment, 403 test sequence file, 701 event state extraction unit, 702 event state definition generation unit, 703 event state definition table, 704
Event status definition editor, 705 Event status definition file, 1001 Event status collation unit, 1002
Error report, 1301 Event status collation unit, 13
02 error report, 1303 event state definition generation unit, 1701 test sequence trace unit with marking, 1702 duplication judgment unit, 1802 shortage judgment unit.
Claims (3)
起こすイベントとが含まれる状態遷移表と、 この状態遷移表中に含まれる前記状態と前記イベントと
を抽出するイベント状態抽出部と、 この抽出された状態とイベントとに基づいて、イベント
の内容を定義したイベント状態定義表を生成するイベン
ト状態定義生成部とを備えたことを特徴とするテスト支
援装置。A state transition table including a state to be transitioned next and an event causing the state transition; an event state extraction unit that extracts the state and the event included in the state transition table; A test support device comprising: an event state definition generation unit that generates an event state definition table that defines the contents of an event based on the extracted state and the event.
システムにより予め定義されたイベント状態定義ファイ
ルと、 前記イベント状態抽出部により抽出されたイベントが前
記イベント状態定義ファイル中に存在するか否かをチエ
ックするイベント状態照合部とを備えたことを特徴とす
る請求項1記載のテスト支援装置。2. An event state definition file in which the contents of an event causing a state transition are defined in advance by a system, and whether or not the event extracted by the event state extraction unit exists in the event state definition file is checked. 2. The test support apparatus according to claim 1, further comprising: an event state matching unit that performs the operation.
り、前記イベント状態抽出部により抽出されたイベント
が前記イベント状態定義ファイル中に存在しなかった場
合に、前記抽出されたイベントの内容を前記イベント状
態定義ファイルに追加するイベント状態定義追加部を備
えたことを特徴とする請求項2記載のテスト支援装置。3. When the event extracted by the event status extraction unit does not exist in the event status definition file according to a check of the event status collation unit, the content of the extracted event is converted to the event status. 3. The test support apparatus according to claim 2, further comprising an event state definition adding unit that adds the event state definition to the definition file.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001023889A JP2001256078A (en) | 2001-01-31 | 2001-01-31 | Test support equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001023889A JP2001256078A (en) | 2001-01-31 | 2001-01-31 | Test support equipment |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP15423196A Division JP3214356B2 (en) | 1996-06-14 | 1996-06-14 | Test support equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2001256078A true JP2001256078A (en) | 2001-09-21 |
Family
ID=18889113
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2001023889A Abandoned JP2001256078A (en) | 2001-01-31 | 2001-01-31 | Test support equipment |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2001256078A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009157661A (en) * | 2007-12-26 | 2009-07-16 | Fuji Soft Inc | Model checking support device |
| JP2011521368A (en) * | 2008-05-19 | 2011-07-21 | ジョンソン コントロールズ テクノロジー カンパニー | Method for automatically creating test cases to verify at least part of a piece of software |
-
2001
- 2001-01-31 JP JP2001023889A patent/JP2001256078A/en not_active Abandoned
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009157661A (en) * | 2007-12-26 | 2009-07-16 | Fuji Soft Inc | Model checking support device |
| JP2011521368A (en) * | 2008-05-19 | 2011-07-21 | ジョンソン コントロールズ テクノロジー カンパニー | Method for automatically creating test cases to verify at least part of a piece of software |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8010844B2 (en) | File mutation method and system using file section information and mutation rules | |
| US7996819B2 (en) | Generating functional test scripts | |
| JP2694122B2 (en) | How to automatically test software applications | |
| JP3361224B2 (en) | Digital circuit topology based computer aided design method and apparatus | |
| US5327568A (en) | Apparatus for supporting graphic data driven program development and for displaying instruction execution results superimposed on the graphic program | |
| CN100587666C (en) | Method and system for analyzing and presenting conflicts in model transformations and automatically reconciling model transformations | |
| US20070266378A1 (en) | Source code generation method, apparatus, and program | |
| US20060218523A1 (en) | Software development support system | |
| JPH08190587A (en) | Business process simulation system | |
| JP3248433B2 (en) | Program linkage verification method | |
| US5761079A (en) | Engineering change management system employing a smart editor | |
| JP2000112784A (en) | Program test support apparatus and recording medium storing program test support program | |
| Goli et al. | Automated analysis of virtual prototypes at electronic system level | |
| Leuschel et al. | Visualising larger state spaces in P RO B | |
| CN110286882B (en) | Foreground system design and verification method based on model detection | |
| CN115391173B (en) | Conversion method from Simulink-StateFlow model to NuSMV model | |
| JPH103405A (en) | Test support equipment | |
| CN116451621A (en) | Method, system, equipment and medium for generating functional coverage rate code | |
| CN113326206A (en) | Method, apparatus, storage medium, and program product for testing data processing system | |
| JP2001256078A (en) | Test support equipment | |
| US8024684B2 (en) | Apparatus, method, and computer product for estimating power consumption of LSI | |
| JP2002014845A (en) | Method and apparatus for automatically generating test script components | |
| JP5075695B2 (en) | Property description coverage measuring apparatus and program | |
| JP3464159B2 (en) | Test specification creation device and storage medium storing the program | |
| Weber et al. | Detecting inconsistencies in multi-view uml models |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040203 |
|
| A762 | Written abandonment of application |
Free format text: JAPANESE INTERMEDIATE CODE: A762 Effective date: 20040326 |