JPH06149561A - Software developing device - Google Patents

Software developing device

Info

Publication number
JPH06149561A
JPH06149561A JP4303961A JP30396192A JPH06149561A JP H06149561 A JPH06149561 A JP H06149561A JP 4303961 A JP4303961 A JP 4303961A JP 30396192 A JP30396192 A JP 30396192A JP H06149561 A JPH06149561 A JP H06149561A
Authority
JP
Japan
Prior art keywords
time
test
software
transition
test case
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.)
Pending
Application number
JP4303961A
Other languages
Japanese (ja)
Inventor
Jiro Okayasu
二郎 岡安
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP4303961A priority Critical patent/JPH06149561A/en
Publication of JPH06149561A publication Critical patent/JPH06149561A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

PURPOSE:To automate test data preparation in a test process and to improve productivity in the case of software development. CONSTITUTION:This device is provided with a specification description part 1 for applying a software specification described in a state transition model containing the concept of time as well, test case description part 2 for generating a test case describing the sequence of transitions in this specification, time sequential data generation part 3 equipped with an extracting function for extracting applied from the outside and time limit existent between these events concerning the software of a test object by using the specification of a software depending on the state transitions provided from the specification description part 1 for this provided test case and a generating function for generating time sequential data satisfying the time limit corresponding to the events extracted by this extracting function, and test execution part 4 for executing the software of the test object by using these generated time sequential data.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータを利用し
たソフトウェア開発装置にかかわり、特に制御用ソフト
ウェアのシステムテスト工程を効能率に実施できるよう
にしたソフトウェア開発装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a software development device using a computer, and more particularly to a software development device capable of efficiently performing a system test process of control software.

【0002】[0002]

【従来の技術】開発中のソフトウェアは、プログラミン
グ内容が仕様通りの動作をするかを確認するために、テ
ストを行う。この工程がテスト工程であるが、コンピュ
ータを用いたソフトウェア開発におけるシステムテスト
工程では、従来、テスト責任者がソフトウェアの仕様を
もとに、テストケース(テスト用に想定した各種状態や
状況)を作成し、さらにそのテストケースに対応したテ
ストデータ(テスト用の模擬情報)を作成してテスト対
象ソフトウェアに与えて実行させ、動作テストをしてい
た。
2. Description of the Related Art Software under development is tested in order to confirm whether the programming content operates according to specifications. This process is the test process, but in the system test process in software development using a computer, the test manager has conventionally created test cases (various states and conditions assumed for testing) based on the software specifications. Then, the test data (simulated information for testing) corresponding to the test case is created and given to the software under test to be executed, thereby performing the operation test.

【0003】このとき、実際にテスト対象ソフトウェア
に与えるテストデータは、制御用ソフトウェアの場合、
時系列の信号データであり、この場合、目的のテストケ
ースに対応した信号データを作成するのは困難な作業で
あった。
At this time, in the case of control software, the test data actually given to the test target software is
It is time-series signal data, and in this case, it was a difficult task to create the signal data corresponding to the target test case.

【0004】また、従来のシステムテスト用のデータ生
成方式では、システムの仕様とプログラムの制御構造か
ら、システムの動作を網羅する形での入力データを生成
することは可能であるが、対象が制御用ソフトウェアで
ある場合は、入力の単純な組合せだけでなく、それらの
入力が時間的にどのように変化してゆくか、と云ったと
ころまで考慮して、時系列のデータを生成しなければ、
単体テスト以上の効果は期待できない。
Further, in the conventional system test data generation method, it is possible to generate input data in a form that covers the operation of the system from the system specifications and the control structure of the program, but the target is controlled. In the case of software for software, time-series data must be generated taking into consideration not only simple combinations of inputs but also how those inputs change over time. ,
You can't expect more than a unit test.

【0005】[0005]

【発明が解決しようとする課題】開発中のソフトウェア
が、仕様通りの動作をするかを確認するために行うシス
テムテスト工程では、従来、テスト責任者がソフトウェ
アの仕様をもとに、テストケースを作成し、さらにその
テストケースに対応したテストデータを作成してテスト
対象ソフトウェアに与えて実行させ、動作テストをして
いた。
In the system testing process, which is performed to confirm whether the software under development operates according to the specifications, conventionally, the person in charge of testing has a test case based on the specifications of the software. I created the test data corresponding to the test case, gave it to the software to be tested, and executed it.

【0006】しかし、対象が制御用ソフトウェアである
場合はテストデータは時系列の信号データである。その
ため、テストデータ作成段階においてテストケースから
実際のテストデータを作成する作業は多大な労力を要す
るばかりでなく、入力が時間的にどのように変化してゆ
くかと云ったところまで考慮して時系列のデータを生成
する必要があるが、これを人手によって作成するのは極
めて困難なことである。
However, if the object is control software, the test data is time-series signal data. Therefore, creating actual test data from test cases in the test data creation stage is not only labor-intensive, but also considers how the input changes over time and time series. , But it is extremely difficult to create it manually.

【0007】ソフトウェアの信頼性を確保するには、現
実に起こり得る全ての状況に対して、どのような振る舞
いをするか確認すると共に、仕様に合致したものとなっ
ているかを確認しておく必要があるが、経時的変化を考
慮しなければならないケースでは実際上、そのようなテ
ストデータを作成することは、容易ではなく、十分な信
頼性を得ることは、困難なこととなる。
In order to ensure the reliability of software, it is necessary to confirm what behavior behaves in all actual situations and whether it conforms to the specifications. However, in the case where the change over time has to be taken into consideration, it is not easy to create such test data, and it is difficult to obtain sufficient reliability.

【0008】そして、現状ではテストケースに対応する
想定したテストデータを作成して、テストを重ね、テス
ト結果から、バグを発見して修正を行い、再びテストし
てバグが解消されたと信じられる段階で出荷するように
していた。
At the present stage, it is believed that the expected test data corresponding to the test case is created, the test is repeated, the bug is found from the test result, the bug is corrected, and the bug is resolved by testing again. I was going to ship it.

【0009】そこで、この発明の目的とするところは、
テスト工程におけるテストデータ作成作業を自動化で
き、しかも、テストケースに対応した時系列信号のテス
トデータを制御の実態に合う形でタイミングを合わせて
自動的に作成することが可能となり、ソフトウェア開発
における生産性の向上を図ることができると共に、ソフ
トウェア製品の信頼性の向上を図ることができるように
したソフトウェア開発装置を提供することにある。
Therefore, the object of the present invention is to
It is possible to automate the test data creation work in the test process, and it is also possible to automatically create the test data of the time-series signal corresponding to the test case at a timing that matches the actual state of control. It is an object of the present invention to provide a software development device capable of improving the reliability and the reliability of a software product.

【0010】[0010]

【課題を解決するための手段】上記目的を達成するた
め、本発明は次のように構成する。すなわち、時間の概
念も含む状態遷移モデルによって記述したソフトウェア
仕様を与える仕様記述手段と、この仕様記述手段により
与えられたソフトウェア仕様をもとに、この仕様におけ
るある状態において、あるイベントに対し、あるアクシ
ョンを実行して、ある状態に至る遷移の列を記述したテ
ストケースを生成するテストケース記述手段と、このテ
ストケース記述手段から得られるテストケースに対し、
上記仕様記述手段から得られる状態遷移によるソフトウ
ェアの仕様を用いて、テスト対象のソフトウェアに対
し、外部から与えるイベントと、それらイベントの間に
存在する時間制約を抽出する抽出機能、この抽出機能に
より抽出したイベントに対応した時間制約を満たす時系
列のデータを生成する生成機能とを有する時系列データ
生成手段と、この時系列データ生成手段からの時系列デ
ータを用いてテスト対象のソフトウェアを実行するテス
ト実行部とを具備して構成する。
In order to achieve the above object, the present invention is configured as follows. That is, there is a specification description means for giving a software specification described by a state transition model that also includes the concept of time, and based on the software specification given by this specification description means, for a certain event in a certain state in this specification, For the test case description means that executes the action and generates the test case that describes the sequence of transitions to a certain state, and the test case obtained from this test case description means,
An extraction function that extracts externally applied events and time constraints existing between the events from the software to be tested using the software specifications based on the state transitions obtained from the specification description means. Time series data generation means having a generation function for generating time series data satisfying the time constraint corresponding to the event, and a test for executing the software to be tested using the time series data from the time series data generation means And an execution unit.

【0011】[0011]

【作用】このような構成の本装置は、ソフトウェア開発
におけるテスト工程において、仕様記述手段からは、ソ
フトウェアの仕様を時間の概念も含む状態遷移モデルに
よって記述されたものが与えられ、テストケース記述手
段からは、この記述された仕様における遷移(ある状態
において、あるイベントに対し、あるアクションを実行
して、ある状態に至る)の列で記述されたテストケース
が与えられる。そして、時系列データ生成手段は、この
テストケースから実際にシステムのテストに用いる時系
列データを生成し、テスト実行手段は当該時系列データ
を用いてシステムのテストを実行する。時系列データ生
成手段での時系列データ生成処理は、テストケース記述
手段から得られるテストケースに対し、仕様記述手段か
ら得られる状態遷移によるソフトウェアの仕様を用い
て、テスト対象システムに対し、外部から与えるイベン
トとそれらイベントの間に存在する時間制約を抽出し、
抽出したイベントに対応した、時間制約を満たす時系列
のデータを生成すると云った処理である。この生成され
た時系列のデータを用いてテストを実施することによっ
て、実際のソフトウェア製品の動作状況でのシステムテ
ストが可能となる。
In the present apparatus having such a configuration, in the test process in software development, the specification description means gives the description of the software specification by the state transition model including the concept of time, and the test case description means From, a test case described in a sequence of transitions in this described specification (in a certain state, a certain event is executed for a certain event to reach a certain state) is given. Then, the time-series data generation means generates time-series data that is actually used for testing the system from this test case, and the test execution means executes the system test using the time-series data. The time-series data generation processing by the time-series data generation means uses the software specifications based on the state transitions obtained from the specification description means for the test case obtained from the test case description means to externally test the system under test. Extract the events you give and the time constraints that exist between them,
This is a process of generating time-series data that satisfies the time constraint and corresponds to the extracted event. By performing a test using the generated time-series data, it is possible to perform a system test in the actual operating condition of the software product.

【0012】遷移の生起時刻が決定されたなら、ソフト
ウェア仕様からその生起時点に遷移を引き起こす該当の
イベントを対応させることができる。そして、イベント
が決まれば、どのようなテストデータが必要であるかは
決まるので、遷移を引き起こす生起時刻に、その遷移を
引き起こす該当のイベントで定まるテストデータを生成
すれば、必要なタイミングにおいて、必要なテストデー
タを生成することができるようになり、制御の実態に対
応した時系列のデータを自動生成することができるよう
になる。
Once the time of occurrence of the transition has been determined, the corresponding event causing the transition can be associated with that time of occurrence from the software specifications. Then, when the event is decided, what kind of test data is needed is decided, so if the test data decided by the corresponding event that causes the transition is generated at the occurrence time that causes the transition, it is necessary at the necessary timing. It becomes possible to generate various test data, and it becomes possible to automatically generate time-series data corresponding to the actual condition of control.

【0013】本発明により、テストケースに対応した時
系列信号のテストデータを制御の実態に合う形で自動的
に作成することが可能となり、テスト工程における最適
なテストデータ作成作業が自動化できて、テストのため
の多大な労力が削減され、ソフトウェア開発における生
産性の向上が実現されるばかりでなく、テスト作業の容
易化にともない十分なテストの実現が可能となり、ソフ
トウェア製品の信頼性の向上を実現できる。
According to the present invention, it is possible to automatically create test data of a time series signal corresponding to a test case in a form that matches the actual condition of control, and it is possible to automate the optimum test data creation work in the test process. It not only saves a great deal of effort for testing and improves productivity in software development, but also makes it possible to perform sufficient testing due to the ease of testing work, thereby improving the reliability of software products. realizable.

【0014】[0014]

【実施例】以下、本発明の実施例を図を参照して説明す
る。図1は本発明のシステム構成を示すブロック図であ
り、1は仕様記述部、2はテストケース記述部、3は時
系列データ生成部、4はテスト実行部である。
Embodiments of the present invention will now be described with reference to the drawings. FIG. 1 is a block diagram showing the system configuration of the present invention. Reference numeral 1 is a specification description unit, 2 is a test case description unit, 3 is a time series data generation unit, and 4 is a test execution unit.

【0015】これらのうち、仕様記述部1はソフトウェ
アの仕様を、時間の概念も含む状態遷移モデルによって
記述したものを供給するものであり、テストケース記述
部2は、この仕様記述部1によって記述された仕様にお
ける遷移(ある状態において、あるイベントに対し、あ
るアクションを実行して、ある状態に至る)の列によっ
てテストケースを記述するものである。また、時系列デ
ータ生成部3はテストケース記述部2によって記述され
たテストケースから実際にシステムのテストに用いる時
系列データを生成するものであり、テスト実行部4は時
系列データ生成部3の生成した時系列データを用いてシ
ステムのテストを自動実行するものである。
Of these, the specification description unit 1 supplies the software specifications described by the state transition model including the concept of time, and the test case description unit 2 describes the specification description unit 1. A test case is described by a sequence of transitions in a specified specification (in a certain state, a certain event is executed for a certain event to reach a certain state). The time-series data generation unit 3 is for generating time-series data that is actually used for testing the system from the test case described by the test case description unit 2, and the test execution unit 4 is for the time-series data generation unit 3. The system test is automatically executed using the generated time series data.

【0016】このような構成において、ソフトウェアの
仕様は状態遷移モデルに基づいて記述されたものが仕様
記述部1から入力される。この仕様記述部1はディスク
装置等のファイル記憶装置であっても良いし、また、キ
ーボードを備えたマンマシンインタフェースであるコン
ソールなどであっても良い。コンソールの場合はオペレ
ータがソフトウェアの仕様記述をキー入力することによ
り、時系列データ生成部3に与え、ファイル記憶装置の
場合は予めソフトウェアの仕様記述をファイルとして記
憶しておいたものを読出して時系列データ生成部3に与
える。
In such a configuration, the software specification described based on the state transition model is input from the specification description unit 1. The specification description unit 1 may be a file storage device such as a disk device, or a console which is a man-machine interface equipped with a keyboard. In the case of a console, the operator inputs the software specification description by key input to give it to the time-series data generation unit 3. In the case of a file storage device, the software specification description stored in advance as a file is read out and read out. It is given to the series data generation unit 3.

【0017】また、時系列データ生成部3にはテストケ
ース記述部2よりテストケースが与えられる。テストケ
ースは状態遷移による仕様上の遷移の列として与えられ
る。これらが与えられると時系列データ生成部3は、与
えられたテストケースである遷移の列に対し、それら遷
移の生起時刻に関する時間的な制約を抽出し、この時間
的な制約を満たすように遷移の生起時刻を決定した上
で、各遷移にトリガをかける各イベントに対応したデー
タを、時系列のテストデータとして生成する(図2参
照)。そして、時系列データ生成部3により生成された
時系列のテストデータはテスト実行部4に与えられ、テ
スト実行部4はこれらの時系列のテストデータを用いて
ソフトウェアを実行し、テストを行う。
A test case is given from the test case description unit 2 to the time series data generation unit 3. Test cases are given as a sequence of transitions on the specification due to state transitions. When these are given, the time-series data generation unit 3 extracts the time constraint regarding the occurrence time of those transitions from the sequence of transitions that is the given test case, and transitions so as to satisfy this time constraint. After determining the occurrence time, the data corresponding to each event that triggers each transition is generated as time-series test data (see FIG. 2). Then, the time-series test data generated by the time-series data generation unit 3 is given to the test execution unit 4, and the test execution unit 4 executes software using these time-series test data to perform a test.

【0018】次に本発明の重要な部分であるテストデー
タ生成処理について説明する。図2はこれを実施する部
分であるテストケース記述部2と時系列データ生成部3
のシステム構成図である。図において、21はテストケ
ース記述部2を構成するテストケース作成部であり、状
態遷移モデルに基づくソフトウェア仕様の上で、テスト
ケースに対応した動作を指定するものである。22はテ
ストケース作成部21で作成されたテストケースであ
る。上記ソフトウェア仕様は、仕様記述部1より与えら
れる状態遷移ソフトウェア仕様24から得る。時系列デ
ータ生成部3は、時間制約抽出部23、遷移時刻決定部
25、時系列信号生成部26から構成される。
Next, the test data generation process, which is an important part of the present invention, will be described. FIG. 2 shows a test case description unit 2 and a time-series data generation unit 3 that are the parts that implement this.
2 is a system configuration diagram of FIG. In the figure, reference numeral 21 is a test case creation unit that constitutes the test case description unit 2, and specifies the operation corresponding to the test case on the software specification based on the state transition model. Reference numeral 22 is a test case created by the test case creation unit 21. The software specification is obtained from the state transition software specification 24 given by the specification description unit 1. The time series data generation unit 3 includes a time constraint extraction unit 23, a transition time determination unit 25, and a time series signal generation unit 26.

【0019】時間制約抽出部23は、テストケース22
と状態遷移ソフトウェア仕様24とから、遷移の起こる
時刻に関する時間制約を抽出するものである。遷移時刻
決定部25は、この遷移時刻決定部25の決定した制約
を満足する形で遷移時刻を決定するものである。また、
時系列信号生成部26は、この遷移時刻決定部25によ
り決定された遷移時刻に基づき、遷移に伴うイベントを
外部からの時系列信号として生成するものである。
The time constraint extraction unit 23 uses the test case 22.
And the state transition software specification 24, the time constraint regarding the time when the transition occurs is extracted. The transition time determination unit 25 determines the transition time so as to satisfy the constraint determined by the transition time determination unit 25. Also,
The time-series signal generation unit 26 generates an event associated with the transition as a time-series signal from the outside, based on the transition time determined by the transition time determination unit 25.

【0020】このような構成において、まず、テストケ
ース作成部21では、状態遷移モデルに基づくソフトウ
ェア仕様の上で、テストケースに対応した動作を指定す
る。動作の指定は、状態遷移ソフトウェア仕様24上の
遷移の系列として表現されることになる。
In such a configuration, first, the test case creation unit 21 specifies the operation corresponding to the test case on the software specification based on the state transition model. The designation of the operation will be expressed as a sequence of transitions on the state transition software specification 24.

【0021】テストケース22の指定方法は、遷移図上
で人(オペレータ)が遷移列を指定するようにしても良
いが、一定のアルゴリズムに従って、自動的に生成させ
るようにすることも可能である。
As a method of designating the test case 22, a person (operator) may designate a transition sequence on the transition diagram, but it is also possible to automatically generate it according to a certain algorithm. .

【0022】このようにして、生成されたテストケー
ス、即ち遷移列が22である。時間制約抽出部23は、
テストケース22と状態遷移ソフトウェア仕様24から
遷移の起こる時刻に関する時間制約を抽出する。さら
に、その制約を満足する形で遷移時刻決定部25が遷移
時刻を決定する。最後に、時系列信号生成部26が、決
定された遷移時刻に基づき、遷移に伴うイベントを外部
からの時系列信号として生成する。次に、時間制約抽出
部23による時間制約の抽出処理及び遷移時刻決定部2
5による遷移時刻の決定処理について説明する。まず、
処理の流れを図3に示す。時間制約抽出部23による時
間制約の抽出処理は時間軸遷移配置処理310と時間制
約の抽出処理311により実施される。
The test cases, that is, the transition sequences generated in this way are 22. The time constraint extraction unit 23
From the test case 22 and the state transition software specification 24, the time constraint regarding the time when the transition occurs is extracted. Furthermore, the transition time determination unit 25 determines the transition time so as to satisfy the constraint. Finally, the time series signal generation unit 26 generates an event associated with the transition as a time series signal from the outside based on the determined transition time. Next, the time constraint extraction processing by the time constraint extraction unit 23 and the transition time determination unit 2
The determination processing of the transition time by 5 will be described. First,
The processing flow is shown in FIG. The time constraint extraction processing by the time constraint extraction unit 23 is performed by the time axis transition placement processing 310 and the time constraint extraction processing 311.

【0023】時間軸遷移配置処理310では、テストケ
ースにより与えられた遷移列を時間軸へ配置する。この
時間軸への遷移の配置とは、テストケースにより与えら
れた遷移列を時間軸上に点列として配置することを意味
する。このとき、時間軸上での遷移の時刻は未定であ
る。時間軸への遷移の配置は図4に示す如きであり、こ
れは、各遷移が軸上に配置された例である。
In the time axis transition arrangement processing 310, the transition sequence given by the test case is arranged on the time axis. The arrangement of transitions on the time axis means that the transition sequence given by the test case is arranged as a point sequence on the time axis. At this time, the time of transition on the time axis is undecided. The arrangement of the transitions on the time axis is as shown in FIG. 4, and this is an example in which each transition is arranged on the axis.

【0024】次に、時間制約の抽出処理311である。
具体的には、遷移に伴うタイマに関するイベント、アク
ションの組み合わせより、時間軸上でタイマの動作して
いる遷移の区間(時区間と呼ぶ)を抽出し、さらに、タ
イマの設定時間からその区間の時間制約を見い出す。こ
の様子を図5に示す。図5に示すように、タイマの“ス
タート、ウェイト”、“コンティニュ、タイムアウト”
の組み合わせにより、2つの時区間が抽出され、タイマ
の設定時間から時間制約が求められている。
Next, there is a time constraint extraction process 311.
Specifically, the section of the transition in which the timer is operating on the time axis (called the time section) is extracted from the combination of events and actions related to the timer associated with the transition, and further, the section of the section from the set time of the timer is extracted. Find time constraints. This state is shown in FIG. As shown in Figure 5, "start, wait", "continue, timeout" of the timer
By combining the above, two time intervals are extracted, and the time constraint is obtained from the set time of the timer.

【0025】遷移時刻決定部25による遷移時刻の決定
処理は、時区間の正規化処理312と遷移時刻決定処理
313により実現する。時区間の正規化処理312で
は、時間制約の抽出処理311によって得た時間制約の
中の冗長な部分を無くし、遷移時刻決定処理313に際
し、矛盾が生じないようにする。具体的には、図6のよ
うに時区間の包含関係を解消することに対応する。
The transition time determination processing by the transition time determination unit 25 is realized by the time interval normalization processing 312 and the transition time determination processing 313. In the time interval normalization process 312, the redundant part in the time constraint obtained by the time constraint extraction process 311 is eliminated so that no contradiction occurs in the transition time determination process 313. Specifically, it corresponds to canceling the inclusion relation of time intervals as shown in FIG.

【0026】遷移時刻決定処理313においては遷移時
刻の決定を行うため、時間制約の抽出処理311、時区
間の正規化処理312によって与えられる時間制約を満
たすように、実際に各遷移の生起時刻を決定する。
Since the transition time is determined in the transition time determination process 313, the occurrence time of each transition is actually set so as to satisfy the time constraint given by the time constraint extraction process 311 and the time interval normalization process 312. decide.

【0027】生起時刻の決定方法としては、本実施例で
は次の2通りの方法のいずれかを用いる。 (1) ・製品に関する知識に基づく方法。 (2) ・時間制約を配分する方法。
In the present embodiment, one of the following two methods is used as the method of determining the occurrence time. (1) ・ Method based on knowledge about products. (2) ・ A method to allocate time constraints.

【0028】このうち、(1) 「製品に関する知識に基づ
く方法」では、ある遷移の時刻を決定する際に、何の時
間制約も与えられていない場合、製品に関する知識か
ら、ある状態からその遷移を引き起こすためのイベント
がどれくらいの時間で起こるかを得て、その時間から遷
移時刻を決定する。
Among these, in (1) “method based on knowledge about product”, when no time constraint is given when determining the time of a certain transition, from the knowledge about the product, the transition from a certain state Get how long the event to trigger occurs and determine the transition time from that time.

【0029】また、(2) 「時間制約を配分する方法」で
は、時区間内に存在する遷移の数と、その時区間に与え
られた制約時間、および製品に関する知識とから得られ
るイベントが起こるまでに通常かかる時間、の3つの要
素をもとに、遷移が起こるまでの時間を配分し、遷移時
刻を決定するものである。
(2) In the "method of allocating time constraints", until an event occurs, which is obtained from the number of transitions existing in the time interval, the constraint time given to the time interval, and the knowledge about the product. The time until the transition occurs is distributed and the transition time is determined based on the three elements of the time normally required for the transition.

【0030】図7は遷移時刻を決定する様子を示してい
る。この例では、時区間に与えられた制約時間Tを、各
遷移を引き起こすイベントが、通常起こるまでの時間
(状態滞留時間)の比で分配して、遷移時刻を決定して
いる。また、大域的には各タイマ毎の制約に基づく時刻
の決定を伝播させる形で、全体としての時刻の決定を進
めてゆく。時刻決定の伝播による大域的時刻決定の様子
を図8に示す。
FIG. 7 shows how to determine the transition time. In this example, the transition time is determined by dividing the constraint time T given to the time interval by the ratio of the time (state retention time) until the event that causes each transition normally occurs. Further, globally, the time determination as a whole is advanced by propagating the time determination based on the constraint of each timer. FIG. 8 shows a state of global time determination by propagation of time determination.

【0031】以上のようにして遷移時刻を決定すること
により、遷移を引き起こすイベントの生成時刻が決定さ
れ、そのイベントに対応するシステムの入力を、その時
刻に与えると云う操作の列として、時系列信号のテスト
データが生成できる。
By determining the transition time as described above, the generation time of the event that causes the transition is determined, and a series of operations for giving an input of the system corresponding to the event to the time is a time series. Signal test data can be generated.

【0032】このように、本システムにおいては、状態
遷移モデルに基づいて記述されたソフトウェア仕様と、
状態遷移による仕様上の遷移の列として与えられるテス
トケースとを用い、この与えられたテストケースである
遷移の列に対し、それら遷移の生起時刻に関する時間的
な制約を抽出し、この時間的な制約を満たすように遷移
の生起時刻を決定した上で、各遷移にトリガをかける各
イベントに対応したデータを、時系列のテストデータと
して生成するようにしたものである(図2参照)。
As described above, in the present system, the software specification described based on the state transition model,
Using a test case given as a sequence of transitions on the specification due to state transitions, the temporal constraint on the occurrence time of those transitions is extracted for the sequence of transitions that is the given test case, and this temporal After the occurrence time of the transition is determined so as to satisfy the constraint, the data corresponding to each event that triggers each transition is generated as time-series test data (see FIG. 2).

【0033】そして、生起時刻の決定では、まず、図4
に示されるように、テストケースに対応する遷移Tr1 ,
Tr2 ,〜Trn の列を配列し、次に、図5に示すように、
ソフトウェアの仕様から、タイマの動作に注目すること
により、遷移間の時間的な制約を抽出する。具体的に
は、タイマを動作させてから、タイマが終了するまでの
遷移の間には、タイマが動作している部分に注目する
と、経過時間(の和)はタイマの設定時間に一致してい
ると云う関係を用いている。例えば、図5に示す例で
は、タイマ設定値Tのとき、タイマが動作している時区
間を見付けて加算することにより、時間制約 T=T1
+T2 を抽出できる。
In determining the occurrence time, first, referring to FIG.
, The transition Tr1, corresponding to the test case,
Arrange the columns of Tr2, ~ Trn, and then, as shown in FIG.
By focusing on the operation of the timer, we extract the time constraint between transitions from the software specifications. Specifically, during the transition from operating the timer to the end of the timer, paying attention to the part where the timer is operating, the elapsed time (sum of) is equal to the set time of the timer. It uses the relationship that there is. For example, in the example shown in FIG. 5, when the timer setting value is T, the time constraint T = T1 is obtained by finding and adding the time period in which the timer is operating.
+ T2 can be extracted.

【0034】このようにして、遷移の生起時刻に関する
制約を抽出した後は、時間制約の冗長性をなくすため
に、図6のように時間制約の正規化を行う。具体的に
は、時間制約を構成する、タイマの動作している区間の
重複をなくすことである。
In this way, after the constraint regarding the transition occurrence time is extracted, the time constraint is normalized as shown in FIG. 6 in order to eliminate the redundancy of the time constraint. Specifically, it is to eliminate duplication of the interval in which the timer is operating, which constitutes the time constraint.

【0035】最後に、以上のようにして抽出した時間制
約を満足する形で、各遷移の生起時刻を決定する。決定
方法としては、図7のように製品に関する知識の一つで
ある、状態への平均的な滞留時間を用いて、時間の幅と
して与えられる時間制約を分配する形で決定する。
Finally, the occurrence time of each transition is determined so as to satisfy the time constraint extracted as described above. As a determination method, as shown in FIG. 7, the average residence time to the state, which is one of the knowledge about the product, is used, and the time constraint given as the time width is distributed.

【0036】これらの遷移時刻の決定は、図8のように
して、各タイマ毎の時間制約の関係を伝播する形で進め
られる。図8では矢印の方向に時刻の決定が伝播され
る。このようにして遷移の生起時刻が決定されたなら、
ソフトウェア仕様から各生起時点での遷移を引き起こす
イベントを対応させ、決定された生起時刻にそのイベン
トに対応するデータを生成してテスト対象システムに与
えることで、自動テストを可能とする。
The determination of these transition times proceeds in a manner of propagating the relation of the time constraint for each timer as shown in FIG. In FIG. 8, the time determination is propagated in the direction of the arrow. If the transition occurrence time is determined in this way,
An automatic test is enabled by correlating the event that causes the transition at each occurrence time from the software specifications, and generating the data corresponding to the event at the determined occurrence time and giving it to the test target system.

【0037】イベントが決まれば、どのようなテストデ
ータが必要であるかは決まるので、遷移を引き起こす生
起時刻に、その遷移を引き起こす該当のイベントで定ま
るテストデータを生成すれば、必要なタイミングにおい
て、必要なテストデータを生成することができるように
なり、制御の実態に対応した時系列のデータを自動生成
することができるようになる。なお、本発明は上記し、
かつ、図面に示す実施例に限定することなく、その要旨
を変更しない範囲内で適宜変形して実施し得るものであ
る。
When the event is determined, what kind of test data is necessary is determined. Therefore, if the test data determined by the corresponding event that causes the transition is generated at the occurrence time that causes the transition, at the necessary timing, Necessary test data can be generated, and time-series data corresponding to the actual condition of control can be automatically generated. The present invention is as described above,
Moreover, the present invention is not limited to the embodiments shown in the drawings, and can be appropriately modified and carried out within the scope of the invention.

【0038】以上、本発明は、状態遷移モデルに基づい
て記述されたソフトウェアの仕様と、状態遷移による仕
様上の遷移の列として与えられるテストケースとを用
い、この与えられたテストケースである遷移の列に対
し、それら遷移の生起時刻に関する時間的な制約を抽出
し、この時間的な制約を満たすように遷移の生起時刻を
決定した上で、各遷移にトリガをかける各種イベントに
対応したデータを、時系列のテストデータとして生成す
るようにしたものであり、生起時刻の決定では、まず、
テストケースに対応する遷移の列を配列し、次に、ソフ
トウェアの仕様から、タイマの動作に注目することによ
り、遷移間の時間的な制約を抽出する。このようにし
て、遷移の生起時刻に関する制約を抽出した後は、時間
制約の冗長性をなくすために、制約の正規化を行い、最
後に、以上のようにして抽出した時間制約を満足する形
で、各遷移の生起時刻を決定する。決定方法としては、
製品に関する知識の一つである、状態への平均的な滞留
時間を用いて、時間の幅として与えられる時間制約を分
配する形で決定する。これらの遷移時刻の決定は、各タ
イマ毎の制約の関係を伝播する形で進める。
As described above, the present invention uses the software specification described based on the state transition model and the test case given as the sequence of transitions on the specification due to the state transition, and the transition which is the given test case. For the columns of, extract the temporal constraints on the occurrence times of those transitions, determine the occurrence times of the transitions so as to satisfy this time constraint, and then data corresponding to various events that trigger each transition. Is generated as time-series test data, and in determining the occurrence time, first,
By arranging the sequence of transitions corresponding to the test case and then focusing on the operation of the timer from the software specifications, the time constraint between transitions is extracted. In this way, after extracting the constraint on the occurrence time of transition, in order to eliminate the redundancy of the time constraint, the constraint is normalized, and finally, the form that satisfies the time constraint extracted as above is satisfied. Then, the occurrence time of each transition is determined. As a decision method,
The average residence time to the state, which is one of the knowledge about the product, is used to determine the distribution of the time constraint given as the width of time. The determination of these transition times proceeds in the form of propagating the constraint relationship for each timer.

【0039】このようにして遷移の生起時刻が決定され
たなら、ソフトウェア仕様からその生起時点に遷移を引
き起こす該当のイベントを対応させ、上記決定された生
起時刻にそのイベントに対応するデータを生成してテス
ト対象システムに与えることで、自動テストを可能にす
る。
When the occurrence time of the transition is determined in this way, the corresponding event that causes the transition is made to correspond to the occurrence time from the software specifications, and the data corresponding to the event is generated at the determined occurrence time. It is possible to perform an automatic test by applying it to the system under test.

【0040】本発明により、テストケースを記述すれ
ば、そのテストケースに対応した時系列信号のテストデ
ータを制御の実態に合う形でタイミングを合わせて自動
的に作成することが可能となり、テストのための多大な
労力が削減されるとともに、タイミング的にも制御の実
態に合う形でテストを実施することができることから、
ソフトウェアの信頼性を向上させることができる。
According to the present invention, when a test case is described, it becomes possible to automatically generate test data of a time series signal corresponding to the test case at a timing matched with the actual condition of the control. It saves a great deal of effort for the test, and allows the test to be performed in a form that matches the actual control situation in terms of timing.
The reliability of software can be improved.

【0041】[0041]

【発明の効果】以上、詳述したように本発明によれば、
ソフトウェア開発におけるテスト工程において、テスト
ケースを容易に記述するとともに、記述したテストケー
スから自動的に制御の実態に合った時系列信号のテスト
データを生成することができる。このため、テストデー
タ生成に伴う作業が大幅に削減され、ソフトウェアの生
産性が向上するとともに、作業の量的な余裕から十分な
テストが可能となり、ソフトウェアの信頼性が向上する
等の特徴を有するソフトウェア開発装置を提供できる。
As described above in detail, according to the present invention,
In the test process in software development, it is possible to easily describe the test case and automatically generate the test data of the time-series signal that matches the actual control condition from the described test case. Therefore, the work involved in the generation of test data is significantly reduced, the productivity of software is improved, and sufficient tests can be performed from the quantitative margin of work, and the reliability of software is improved. A software development device can be provided.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の実施例を示すシステムブロック図。FIG. 1 is a system block diagram showing an embodiment of the present invention.

【図2】図1における要部詳細を示すシステムブロック
図。
FIG. 2 is a system block diagram showing details of main parts in FIG.

【図3】図1における要部詳細を示すシステムブロック
図。
FIG. 3 is a system block diagram showing details of main parts in FIG.

【図4】本発明の実施例を説明するための図であって、
生起時刻の決定処理を説明するための図。
FIG. 4 is a diagram for explaining an embodiment of the present invention,
The figure for demonstrating the determination process of the occurrence time.

【図5】本発明の実施例を説明するための図であって、
遷移間の時間的な制約を抽出する処理を説明するための
図。
FIG. 5 is a diagram for explaining an embodiment of the present invention,
The figure for demonstrating the process which extracts the time restrictions between transitions.

【図6】本発明の実施例を説明するための図であって、
制約の正規化を行う処理を説明するための図。
FIG. 6 is a diagram for explaining an embodiment of the present invention,
The figure for demonstrating the process which normalizes a constraint.

【図7】本発明の実施例を説明するための図であって、
各遷移の生起時刻を決定する処理を説明するための図。
FIG. 7 is a diagram for explaining an embodiment of the present invention,
The figure for demonstrating the process which determines the occurrence time of each transition.

【図8】本発明の実施例を説明するための図であって、
各遷移の生起時刻を決定する処理を説明するための図。
FIG. 8 is a diagram for explaining an embodiment of the present invention,
The figure for demonstrating the process which determines the occurrence time of each transition.

【符号の説明】[Explanation of symbols]

1…仕様記述部 2…テストケー
ス記述部 3…時系列データ生成部 4…テスト実行
部 21…テストケース作成部 22…テストケ
ース 23…時間制約抽出部 24…状態遷移
ソフトウェア 25…遷移時刻決定部 26…時系列信
号生成部。
1 ... Specification description section 2 ... Test case description section 3 ... Time series data generation section 4 ... Test execution section 21 ... Test case creation section 22 ... Test case 23 ... Time constraint extraction section 24 ... State transition software 25 ... Transition time determination section 26 ... Time-series signal generation unit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 時間の概念も含む状態遷移モデルによっ
て記述したソフトウェア仕様を与える仕様記述手段と、 この仕様記述手段により与えられたソフトウェア仕様を
もとに、この仕様におけるある状態において、あるイベ
ントに対し、あるアクションを実行して、ある状態に至
る遷移の列を記述したテストケースを生成するテストケ
ース記述手段と、 このテストケース記述手段から得られるテストケースに
対し、上記仕様記述手段から得られる状態遷移によるソ
フトウェアの仕様を用いて、テスト対象のソフトウェア
に対し、外部から与えるイベントと、それらイベントの
間に存在する時間制約を抽出する抽出機能、この抽出機
能により抽出したイベントに対応した時間制約を満たす
時系列のデータを生成する生成機能とを有する時系列デ
ータ生成手段と、 この時系列データ生成手段からの時系列データを用いて
テスト対象のソフトウェアを実行するテスト実行部と、 を具備することを特徴とするソフトウェア開発装置。
1. A specification description means for giving a software specification described by a state transition model including the concept of time, and based on the software specification given by the specification description means, a certain event in a certain state in this specification On the other hand, a test case description means for executing a certain action to generate a test case describing a sequence of transitions to a certain state, and a test case obtained from this test case description means are obtained from the specification description means. An extraction function that extracts externally applied events to the software under test and the time constraints existing between those events using the software specifications based on state transitions, and time constraints corresponding to the events extracted by this extraction function. Time series data having a generation function for generating time series data satisfying A data generation unit, the software development apparatus characterized by comprising a test executing unit for executing the time-series data test software using the time-series data from the generating means.
JP4303961A 1992-11-13 1992-11-13 Software developing device Pending JPH06149561A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4303961A JPH06149561A (en) 1992-11-13 1992-11-13 Software developing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4303961A JPH06149561A (en) 1992-11-13 1992-11-13 Software developing device

Publications (1)

Publication Number Publication Date
JPH06149561A true JPH06149561A (en) 1994-05-27

Family

ID=17927358

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4303961A Pending JPH06149561A (en) 1992-11-13 1992-11-13 Software developing device

Country Status (1)

Country Link
JP (1) JPH06149561A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009282970A (en) * 2008-05-14 2009-12-03 Honeywell Internatl Inc Method, device and system for automatic inspection generation from state chart

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009282970A (en) * 2008-05-14 2009-12-03 Honeywell Internatl Inc Method, device and system for automatic inspection generation from state chart

Similar Documents

Publication Publication Date Title
TWI515655B (en) Method, system, and computer-readable memory for switching threads within routines
US5467462A (en) Event driven logic simulator for partial simulation
US6279154B1 (en) Apparatus and method for an install system for third party applications
US8429613B2 (en) Stepping and application state viewing between points
US7865883B1 (en) Parallel and asynchronous debugger and debugging method for multi-threaded programs
JPH08212106A (en) Device and method for supporting system test
JPH06149561A (en) Software developing device
JPH08314760A (en) Program development supporting device
EP0760980A1 (en) A system and method for creating design configurations and for controlling the execution of multiple design tools
JP3083220B2 (en) Design support system
JP3660083B2 (en) Task margin analysis device, task margin analysis method, and recording medium storing task margin analysis program
JPH02118852A (en) Simplifying system for debugging of high-level language
JP3278588B2 (en) Program development support device and program development support method
JPH08263130A (en) Simulation system
JP2003208333A (en) Trace information searching device and method therefor
JPH0713809A (en) Program evaluation system
JPH07253909A (en) Microprogram verifying method
JP3304524B2 (en) System call function processing unit
JP3778720B2 (en) Software update method
CN115770390A (en) Model skeleton repair method and device, storage medium and electronic equipment
JPS5835648A (en) Program execution controlling system
JPH0895817A (en) Method for testing information processor
JP3057620B2 (en) Information processing device
Kaplan Some debugging strategies for assembler-based minicomputer operating systems
Buckle Testing and Validation