JP2000298599A - Automatic testing system for exchange software - Google Patents
Automatic testing system for exchange softwareInfo
- Publication number
- JP2000298599A JP2000298599A JP11105834A JP10583499A JP2000298599A JP 2000298599 A JP2000298599 A JP 2000298599A JP 11105834 A JP11105834 A JP 11105834A JP 10583499 A JP10583499 A JP 10583499A JP 2000298599 A JP2000298599 A JP 2000298599A
- Authority
- JP
- Japan
- Prior art keywords
- command
- real
- failure
- time
- exchange
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
(57)【要約】
【課題】 効率よく確実に交換アプリケーションプログ
ラムの障害発生を検出でき、しかも障害発生時にも継続
して自動試験を行うことができる交換ソフトウェアの自
動試験システムを実現する。
【解決手段】 周期コマンド実行手段108により、周
期的にデバッガのコマンドを実行して、デバッグモニタ
124から受信したリアルタイムOSの状態遷移によ
り、障害検出手段110が障害発生を検出するようにし
たので、効率よく確実に交換アプリケーションプログラ
ム121の障害発生を検出することができる。また、障
害検出手段110で障害発生を検出した場合、コマンド
取得手段101が再開手順ファイルを読み込んで再開処
理を行うので、障害発生時にも継続して自動試験を行う
ことができる。
(57) [Summary] [PROBLEMS] To realize an automatic test system of exchange software capable of efficiently and surely detecting a failure of an exchange application program and performing an automatic test even when a failure occurs. SOLUTION: Since a command of a debugger is periodically executed by a periodic command execution means 108, and a failure detection means 110 detects occurrence of a failure by a state transition of a real-time OS received from a debug monitor 124. The occurrence of a failure in the exchange application program 121 can be detected efficiently and reliably. In addition, when the failure detection unit 110 detects the occurrence of a failure, the command acquisition unit 101 reads the restart procedure file and performs the restart processing, so that the automatic test can be continuously performed even when the failure occurs.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、電子交換機に用い
られる交換ソフトウェアを自動的に試験する交換ソフト
ウェアの自動試験システムに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic switching software test system for automatically testing switching software used in an electronic exchange.
【0002】[0002]
【従来の技術】従来の自動試験システムは、図6に示す
ように、ワークステーション300と、交換機320と
から構成され、通信回線330で接続されている。ワー
クステーション300は、コマンド取得手段301、コ
マンド検査手段302、コマンド判別手段303、デバ
ッガコマンド実行手段304、通話路系擬似手段30
5、オンラインコマンド実行手段306および実行結果
記憶手段307を備える。交換機320は、交換ソフト
ウェア321、ブートストラッププログラム322、リ
アルタイムOS323およびデバッグモニタ324を備
える。2. Description of the Related Art As shown in FIG. 6, a conventional automatic test system comprises a workstation 300 and an exchange 320, which are connected by a communication line 330. The workstation 300 includes a command acquisition unit 301, a command inspection unit 302, a command determination unit 303, a debugger command execution unit 304, and a communication path system simulation unit 30.
5. An online command execution unit 306 and an execution result storage unit 307 are provided. The exchange 320 includes exchange software 321, a bootstrap program 322, a real-time OS 323, and a debug monitor 324.
【0003】このような構成による自動試験システムで
は、まずワークステーション300において、コマンド
取得手段301が試験を行うためのコマンドが記述され
た試験手順ファイルからコマンドを取得した後、コマン
ド検査手段302が取得したコマンドに誤りがあるか検
査する。そして、コマンド判別手段303によって、コ
マンドの先頭に付与された”!”、または、”<”など
の識別子によりコマンドの種類を判別して、デバッガコ
マンド実行手段304、通話路系擬似手段305、オン
ラインコマンド実行手段306にコマンドを引き渡して
実行する。デバッグモニタ324および交換アプリケー
ションプログラム321から受信した実行結果を実行結
果記憶手段307が記憶する。試験手順ファイルからコ
マンドが取得できなくなるまで、前述の処理を行う。In the automatic test system having such a configuration, first, in the workstation 300, the command acquisition unit 301 acquires a command from a test procedure file in which a command for performing a test is described, and then the command inspection unit 302 acquires the command. Check the command you entered for errors. Then, the command discriminating means 303 discriminates the type of the command by an identifier such as "!" Or "<" added to the head of the command, and outputs the debugger command executing means 304, the communication path system pseudo means 305, The command is passed to the command execution means 306 and executed. The execution result storage unit 307 stores the execution results received from the debug monitor 324 and the exchange application program 321. The above-described processing is performed until a command cannot be obtained from the test procedure file.
【0004】[0004]
【発明が解決しようとする課題】さて、上述した従来の
自動試験システムでは、以下(イ)、(ロ)に示す問題
がある。 (イ)デバッガコマンド実行手段304、通話路系擬似
手段305、オンラインコマンド実行手段306にてコ
マンドを実行してから一定時間内にデバッグモニタ32
4、および、交換アプリケーションプログラム321か
ら実行結果を取得できない場合、一意的に障害と見做す
ようにしている為、交換機320の負荷が高く、コマン
ド実行に時間がかかると、交換アプリケーションプログ
ラム321が正常に動作しているにもかかわらず、障害
が発生したものとして検出されてしまう、という問題が
ある。The above-described conventional automatic test system has the following problems (a) and (b). (A) The debug monitor 32 within a certain period of time after executing a command by the debugger command execution means 304, the communication path system simulation means 305, and the online command execution means 306.
4, and when the execution result cannot be obtained from the exchange application program 321, the failure is uniquely regarded as a failure. Therefore, if the load on the exchange 320 is high and it takes time to execute the command, the exchange application program 321 There is a problem that a fault is detected as having occurred even though it is operating normally.
【0005】(ロ)オンラインコマンド実行手段306
が、交換アプリケーションプログラム321からオンラ
インメッセージを受信する毎に、障害発生のメッセージ
であるか否かを判定し、障害発生のメッセージであった
場合に障害としている為、障害発生の検出処理に時間が
かかり効率が悪い、という問題もある。(B) Online command execution means 306
Each time an online message is received from the exchange application program 321, it is determined whether or not the message is a failure message. If the message is a failure message, the failure is determined to be a failure. There is also a problem that the cost is low.
【0006】そこで本発明は、このような事情に鑑みて
なされたもので、効率よく確実に交換アプリケーション
プログラムの障害発生を検出でき、しかも障害発生時に
も継続して自動試験を行うことができる交換ソフトウェ
アの自動試験システムを提供することを目的としてい
る。Accordingly, the present invention has been made in view of such circumstances, and it is possible to efficiently and surely detect the occurrence of a failure in an exchange application program, and to perform an automatic test continuously even when a failure occurs. It aims to provide an automatic test system for software.
【0007】[0007]
【課題を解決するための手段】上記目的を達成するた
め、請求項1に記載の発明では、リアルタイムOS上で
実行され、交換機の処理動作を具現する交換ソフトウェ
アを自動的に試験する自動試験システムにおいて、周期
的にデバッガコマンドを実行させ、そのコマンド実行に
対応した前記リアルタイムOSの状態から障害発生の有
無を検出する障害検出手段と、この障害検出手段が障害
発生を検出した場合、所定の再開手順で交換機を再開さ
せる再開コマンドを実行する再開手段とを具備すること
を特徴とする。According to the first aspect of the present invention, there is provided an automatic test system for automatically testing exchange software executed on a real-time OS and embodying processing operations of an exchange. A failure detecting means for periodically executing a debugger command and detecting the presence or absence of a failure from the state of the real-time OS corresponding to the execution of the command; and a predetermined restart when the failure detection means detects the failure. Restart means for executing a restart command for restarting the exchange in a procedure.
【0008】請求項2に記載の発明では、リアルタイム
OS上で実行され、交換機の処理動作を具現する交換ソ
フトウェアを自動的に試験する自動試験システムにおい
て、デバッガコマンドを周期的に実行する周期コマンド
実行手段と、この周期コマンド実行手段の実行結果から
前記リアルタイムOSの状態を判定して記憶する状態記
憶手段と、この状態記憶手段に記憶される前記リアルタ
イムOSの状態に応じて障害発生の有無を検出する障害
検出手段と、この障害検出手段が障害発生を検出した場
合、交換機を再開させるコマンドを再開手順ファイルか
ら読み込んで実行する再開手順取得手段とを具備するこ
とを特徴とする。According to the second aspect of the present invention, there is provided an automatic test system for automatically testing exchange software which is executed on a real-time OS and embodying a processing operation of an exchange. Means, state storage means for determining and storing the state of the real-time OS from the execution result of the periodic command execution means, and detecting presence / absence of a failure according to the state of the real-time OS stored in the state storage means And a restart procedure obtaining means for reading a command for restarting the exchange from the restart procedure file and executing the command when the fault detection means detects the occurrence of the fault.
【0009】請求項3に記載の発明にあっては、前記デ
バッガコマンドは、リアルタイムOSが動作不能に陥っ
た原因を示す情報を出力させることを特徴とする。According to a third aspect of the present invention, the debugger command outputs information indicating the cause of the inability of the real-time OS to operate.
【0010】本発明では、周期的にデバッガコマンドを
実行させ、そのコマンド実行に対応したリアルタイムO
Sの状態から障害発生の有無を検出し、障害発生を検出
した場合、所定の再開手順で交換機を再開させるので、
効率よく確実に交換アプリケーションプログラムの障害
発生を検出でき、しかも障害発生時にも継続して自動試
験を行うことが可能になる。According to the present invention, a debugger command is executed periodically, and a real-time debugger command corresponding to the command execution is executed.
The presence or absence of a failure is detected from the state of S, and when the failure is detected, the exchange is restarted by a predetermined restart procedure.
The occurrence of a failure in the exchange application program can be detected efficiently and reliably, and the automatic test can be continuously performed even when the failure occurs.
【0011】[0011]
【発明の実施の形態】以下、図面を参照して本発明の一
実施形態について説明する。 (1)発明の概要 本発明は、交換ソフトウェアの自動試験システムにおい
て、周期的にデバッガのコマンドを実行することによ
り、交換アプリケーションプログラムの障害発生を検出
し、障害検出時に交換機を再開させることにより、継続
して自動試験を行う構成を提供するものである。具体的
には、図1に図示する周期コマンド実行手段108が周
期的にデバッガのコマンドを実行し、リアルタイムOS
状態記憶手段109が実行結果からリアルタイムOS1
23の状態(起動、または、未起動)を判定して記憶す
る。そして、障害検出手段110がリアルタイムOS1
23の状態遷移を判定することにより障害発生を検出す
る。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. (1) Summary of the Invention In the present invention, an automatic test system for exchange software detects a failure of an exchange application program by periodically executing a debugger command, and restarts the exchange when a failure is detected. It is intended to provide a configuration for performing an automatic test continuously. Specifically, the periodic command execution means 108 shown in FIG.
The state storage means 109 reads the real-time OS1 from the execution result.
The state of 23 (activated or not activated) is determined and stored. Then, the failure detection means 110 is used to
The occurrence of a failure is detected by determining the state transition at 23.
【0012】障害発生を検出した場合、コマンド取得手
段101は、交換機120を再開させるためのコマンド
が順次記述された再開手順ファイルからコマンドを読み
込んで実行することにより交換機120を再開させ、継
続して自動試験を行う。これにより、交換アプリケーシ
ョンプログラムの障害発生を検出し、障害検出時に交換
機を再開させることにより継続して自動試験を行うこと
を可能にする。When the occurrence of a failure is detected, the command acquisition means 101 reads the command from the restart procedure file in which commands for restarting the exchange 120 are sequentially described and executes the command, thereby restarting the exchange 120 and continuing. Perform an automatic test. This makes it possible to detect the occurrence of a failure in the exchange application program and restart the exchange when the failure is detected, thereby continuously performing the automatic test.
【0013】(2)構成 次に、図1を参照して実施の一形態である自動試験シス
テムの構成について説明する。本発明による自動試験シ
ステムは、プログラム制御により動作するものであり、
ワークステーション100と、交換機120と、通信回
線130とから構成されている。(2) Configuration Next, the configuration of an automatic test system according to an embodiment will be described with reference to FIG. The automatic test system according to the present invention operates under program control,
It comprises a workstation 100, an exchange 120, and a communication line 130.
【0014】ワークステーション100の構成 ワークステーション100は、コマンド取得手段10
1、コマンド検査手段102、コマンド判別手段10
3、デバッガコマンド実行手段104、通話路系擬似手
段105、オンラインコマンド実行手段106、実行結
果記憶手段107、周期コマンド実行手段108、リア
ルタイムOS状態記憶手段109および障害検出手段1
10から構成される。Configuration of the Workstation 100 The workstation 100 includes a command acquisition unit 10
1, command checking means 102, command discriminating means 10
3. Debugger command execution means 104, communication path system simulation means 105, online command execution means 106, execution result storage means 107, periodic command execution means 108, real-time OS state storage means 109, and failure detection means 1.
It consists of ten.
【0015】コマンド取得手段101は、試験を実行す
るためのコマンドが順次記述された試験手順ファイル
と、障害発生検出時に再開を行うためのコマンドが順次
記述された再開手順ファイルとからコマンド取得する。
コマンド検査手段102は、取得したコマンドに誤りが
ないか検査する。コマンド判別手段103は、取得した
コマンドの種類を判別して、デバッガコマンド実行手段
104、通話路系擬似手段105およびオンラインコマ
ンド実行手段106にコマンドを引き渡す。デバッガコ
マンド実行手段104は通信回線130を介してデバッ
グモニタ124と通信し、デバッガのコマンドを実行す
る。The command obtaining means 101 obtains commands from a test procedure file in which commands for executing a test are sequentially described and a restart procedure file in which commands for restarting when a failure has been detected are sequentially described.
The command checking unit 102 checks the acquired command for errors. The command determining unit 103 determines the type of the acquired command, and transfers the command to the debugger command executing unit 104, the communication channel system simulating unit 105, and the online command executing unit 106. The debugger command execution means 104 communicates with the debug monitor 124 via the communication line 130 to execute a debugger command.
【0016】通話路系擬似手段105は、通信回線13
0を介してデバッグモニタ124経由で交換アプリケー
ションプログラム121と信号の送受信を行い、通話路
系装置の擬似を行う。オンラインコマンド実行手段10
6は、通信回線130を介して交換アプリケーションプ
ログラム121と通信を行い、オンラインコマンドを実
行する。実行結果記憶手段107は、デバッガコマンド
実行手段104、通話路系擬似手段105およびオンラ
インコマンド実行手段106で実行したコマンドの実行
結果を記憶する。The communication path system simulating means 105 is connected to the communication line 13.
Signals are transmitted to and received from the exchange application program 121 via the debug monitor 124 via the debug monitor 124 to simulate a communication path system device. Online command execution means 10
6 communicates with the exchange application program 121 via the communication line 130 and executes an online command. The execution result storage unit 107 stores the execution results of the commands executed by the debugger command execution unit 104, the communication channel system simulation unit 105, and the online command execution unit 106.
【0017】周期コマンド実行手段108は、周期的に
デバッガのコマンドをデバッガコマンド実行手段104
に引き渡す。リアルタイムOS状態記憶手段109は、
周期的に実行したデバッガのコマンドの実行結果からリ
アルタイムOS123の状態を判定して記憶する。障害
検出手段110は、リアルタイムOS状態記憶手段10
9で前回記憶したリアルタイムOS123の状態と今回
記憶したリアルタイムOS123の状態の遷移により、
交換アプリケーションプログラム121の障害発生の有
無を判定する。The periodic command execution means 108 periodically outputs a debugger command to the debugger command execution means 104.
Hand over to The real-time OS state storage means 109
The state of the real-time OS 123 is determined from the execution result of the command of the debugger executed periodically and stored. The fault detecting means 110 is provided in the real-time OS state storing means 10.
9, the transition between the state of the real-time OS 123 stored last time and the state of the real-time OS 123 stored this time
It is determined whether a failure has occurred in the exchange application program 121.
【0018】交換機120の構成 交換機120は、交換アプリケーションプログラム12
1、ブートストラッププログラム122、リアルタイム
OS123およびデバッグモニタ124から構成され
る。ブートストラッププログラム122は、自身が起動
された時、デバッグモニタ124の初期化処理を呼び出
す。リアルタイムOS123は、自身が起動された時、
デバッグモニタ124の初期化処理を呼び出す。交換ア
プリケーションプログラム121に障害が発生した場
合、リアルタイムOS123に例外割り込みが発生す
る。リアルタイムOS123は、交換アプリケーション
プログラム121に障害が発生して例外割り込みが発生
した場合、ブートストラッププログラム122を起動す
る。Configuration of Exchange 120 The exchange 120 is provided with the exchange application program 12
1, a bootstrap program 122, a real-time OS 123, and a debug monitor 124. The bootstrap program 122 calls an initialization process of the debug monitor 124 when the bootstrap program 122 itself is started. When the real-time OS 123 starts itself,
The initialization process of the debug monitor 124 is called. When a failure occurs in the exchange application program 121, an exception interrupt occurs in the real-time OS 123. The real-time OS 123 activates the bootstrap program 122 when a failure occurs in the exchange application program 121 and an exception interrupt occurs.
【0019】(3)動作 次に、図2を参照して上記構成による自動試験システム
の動作について説明する。 全体動作 まず、コマンド取得手段101は、試験を実行するため
のコマンドが順次記述された試験手順ファイルから1コ
マンドを取得する(ステップA1)。続くステップA2
では、コマンド取得手順101がコマンドを取得できた
かどうか判定し、コマンドを取得できなかった場合には
自動試験を終了する。一方、コマンドを取得できた場合
には、ステップA3に処理を進め、コマンド検査手段1
02は、取得したコマンドに誤りがないか検査する。(3) Operation Next, the operation of the automatic test system having the above configuration will be described with reference to FIG. Overall Operation First, the command acquisition unit 101 acquires one command from a test procedure file in which commands for executing a test are sequentially described (step A1). Subsequent step A2
Then, the command acquisition procedure 101 determines whether or not the command has been acquired. If the command cannot be acquired, the automatic test ends. On the other hand, if the command can be obtained, the process proceeds to step A3,
02 checks whether the acquired command is correct.
【0020】コマンド判別手段103は、コマンドの先
頭に付与された”!”、または、”<”などの識別子に
より、取得したコマンドの種類を判別して、デバッガコ
マンド実行手段104、通話路系擬似手段105、オン
ラインコマンド実行手段106にコマンドを引き渡して
実行し、実行結果を取得する(ステップA4)。次い
で、ステップA5では実行結果記憶手段107がコマン
ドの実行結果を記憶する。The command discriminating means 103 discriminates the type of the acquired command based on an identifier such as "!" Or "<" added to the beginning of the command, and outputs the command to the debugger command executing means 104, The means 105 delivers the command to the online command execution means 106, executes the command, and acquires an execution result (step A4). Next, in step A5, the execution result storage unit 107 stores the execution result of the command.
【0021】この後、ステップA6に処理を進め、周期
コマンド実行手段108がパニックトラップの設定情報
参照用にpanicコマンドの実行をデバッガコマンド
実行手段104に要求する。panicコマンドは、リ
アルタイムOS123が動作不能になった場合に動作不
能になった原因を示すメッセージを標準出力に出力する
ためのパニックトラップの設定、パニックトラップの解
除、および、パニックトラップの設定情報参照を行うデ
バッガのコマンドである。Thereafter, the process proceeds to step A6, and the periodic command execution unit 108 requests the debugger command execution unit 104 to execute a panic command for referring to the setting information of the panic trap. The panic command is used to set a panic trap for outputting a message indicating the cause of the inoperability to the standard output when the real-time OS 123 becomes inoperable, cancel the panic trap, and refer to the panic trap setting information. This is the debugger command to be executed.
【0022】パニックトラップの設定情報参照用にpa
nicコマンドを実行すると、panicコマンドの実
行結果として、リアルタイムOS123が起動している
場合はパニックトラップの設定情報(パニックトラップ
を設定している、または、パニックトラップを設定して
いない)を、リアルタイムOS123が未起動の場合は
リアルタイムOSの状態として未起動を、デバッグモニ
タ123から受信することができる。For reference of panic trap setting information, pa
When the nic command is executed, as the execution result of the panic command, if the real-time OS 123 is running, the panic trap setting information (panic trap is set or panic trap is not set) is transmitted to the real-time OS 123. Is not activated, the non-activated state can be received from the debug monitor 123 as the state of the real-time OS.
【0023】デバッガコマンド実行手段104がpan
icコマンドを実行して、実行結果をデバッグモニタ1
23から受信すると(ステップA6)、リアルタイムO
S状態記憶手段109は、受信したpanicコマンド
の実行結果がリアルタイムOS未起動の場合、リアルタ
イムOS123の状態として未起動を記憶し、実行結果
がリアルタイムOS未起動以外の場合はリアルタイムO
S123の状態として起動を記憶する(ステップA
7)。The debugger command execution means 104
Execute the ic command and display the execution result in the debug monitor 1
23 (step A6), the real-time O
The S state storage unit 109 stores the non-startup as the state of the real-time OS 123 when the execution result of the received panic command indicates that the real-time OS has not been started, and stores the real-time OS when the execution result is other than the real-time OS not started.
The activation is stored as the state of S123 (step A
7).
【0024】さて、panicコマンドを実行すると走
行中の交換機120のプログラムが停止するため、周期
コマンド実行手段108は、交換機のプログラムを走行
させるgコマンドの実行をデバッガコマンド実行手段1
04に要求する。デバッガコマンド実行手段105がg
コマンドを実行して、交換機120のプログラムを走行
させる(ステップA8)。すると、障害検出手段110
は、リアルタイムOS状態記憶手段109で前回記憶し
たリアルタイムOS123の状態と今回記憶したリアル
タイムOS123の状態の遷移により、障害発生の有無
を判定する(ステップA9)。When the panic command is executed, the program of the running exchange 120 is stopped. Therefore, the periodic command execution means 108 executes the g command for running the exchange program by the debugger command execution means 1.
Request to 04. Debugger command execution means 105
The command is executed to run the program of the exchange 120 (step A8). Then, the fault detecting means 110
Determines whether a failure has occurred based on the transition between the state of the real-time OS 123 previously stored in the real-time OS state storage means 109 and the state of the real-time OS 123 stored this time (step A9).
【0025】ここで、起動から未起動への状態遷移であ
った場合は障害発生あり、それ以外の状態遷移は障害発
生なしと判定するが、障害発生していない場合には、引
き続きステップA1からの試験実行処理を行う。障害が
発生していた場合、コマンド取得手段101は、ステッ
プA10に処理を進め、再開を行うためのコマンドが順
次記述された再開手順ファイルから1コマンドを取得
し、続くステップA11ではコマンド取得の有無を判定
する。そして、コマンド取得できなかった場合は再開処
理が終了しているため、ステップA1からの試験実行処
理を継続して行うが、コマンド取得できた場合、継続し
て再開処理を行う。Here, it is determined that a failure has occurred if the state transition is from activation to non-activation, and that no other failure has occurred in the other state transitions. Of test execution. If a failure has occurred, the command acquisition unit 101 proceeds with the process to step A10, acquires one command from the restart procedure file in which commands for resuming are sequentially described, and determines in step A11 whether a command has been acquired. Is determined. If the command cannot be obtained, the restart processing has been completed, and the test execution processing from step A1 is continuously performed. If the command can be obtained, the restart processing is continuously performed.
【0026】次に、ステップA12〜A17の処理は、
上述したステップA3〜A8と同一の処理である。障害
検出手段110により、ステップA9と同様に障害発生
の有無を判定する。再開処理中に障害が発生していた場
合、自動試験を終了する。障害が発生していない場合、
ステップA10からの処理を継続して行う(ステップA
18)。再開終了後、引き続きステップA1からの試験
実行処理を行う。試験手順ファイルからコマンドを取得
できる間、ステップA1〜A9またはA18を繰り返し
て行う。Next, the processing in steps A12 to A17 is as follows:
This is the same process as steps A3 to A8 described above. The failure detection means 110 determines whether a failure has occurred, as in step A9. If a failure has occurred during the restart processing, the automatic test ends. If no failures have occurred,
Continue the processing from step A10 (step A
18). After the restart, the test execution processing from step A1 is continuously performed. Steps A1 to A9 or A18 are repeated while a command can be obtained from the test procedure file.
【0027】障害検出処理および交換機120側動作 次に、図3に図示する障害検出処理シーケンスにそっ
て、図2のステップA6〜A9およびステップA15〜
A18に該当する障害検出処理について、交換機120
のプログラムの動作とともに説明する。交換アプリケー
ションプログラム121、ブートストラッププログラム
122、リアルタイムOS123、デバッグモニタ12
4は、従来の自動試験システムと同様に動作する。Next, in accordance with the failure detection processing sequence shown in FIG. 3, steps A6 to A9 and steps A15 to A15 in FIG.
For the failure detection processing corresponding to A18, the exchange 120
This will be described together with the operation of the program. Exchange application program 121, bootstrap program 122, real-time OS 123, debug monitor 12
4 operates similarly to a conventional automatic test system.
【0028】まず、交換機120を立ち上げると、交換
機120の固定アドレスに割り付けられたブートストラ
ッププログラム122が自動的に起動され、ブートスト
ラッププログラム122は、デバッグモニタ124の初
期化処理を呼び出し、デバッグモニタ124がリアルタ
イムOS123の状態として未起動を記憶する(図3の
シーケンスB1)。自動試験開始時に自動試験システム
が内部起動した周期コマンド実行手段108は、デバッ
ガコマンド実行手段104にpanicコマンドの実行
を要求し、デバッガコマンド実行手段104がpani
cコマンドを実行する(シーケンスB2)。First, when the exchange 120 is started up, the bootstrap program 122 assigned to the fixed address of the exchange 120 is automatically started, and the bootstrap program 122 calls the initialization processing of the debug monitor 124 and Reference numeral 124 stores the state of the real-time OS 123 as not-started (sequence B1 in FIG. 3). The periodic command execution means 108 internally activated by the automatic test system at the start of the automatic test requests the debugger command execution means 104 to execute the panic command, and the debugger command execution means 104 executes the pani command.
Execute the c command (sequence B2).
【0029】デバッグモニタ124は、panicコマ
ンドの実行結果として、記憶しているリアルタイムOS
123の状態である未起動をデバッガコマンド実行手段
104に送信する。リアルタイムOS記憶手段109
は、デバッグモニタ124から受信したリアルタイムO
S123の状態である未起動を記憶する(シーケンスB
3)。panicコマンドを実行すると、実行中の交換
機120のプログラムが停止するため、周期コマンド実
行手段108は、デバッガコマンド実行手段104にg
コマンドの実行を要求し、デバッガコマンド実行手段1
04がgコマンドを実行して、交換機のプログラムを走
行させる。障害検出手段110は、リアルタイムOS1
23の状態が起動から未起動に遷移していないため、障
害発生なしと判定する(シーケンスB4)。The debug monitor 124 stores the stored real-time OS as the execution result of the panic command.
The inactive state 123 is transmitted to the debugger command execution unit 104. Real-time OS storage means 109
Is the real-time O received from the debug monitor 124.
The non-startup state of S123 is stored (sequence B
3). When the panic command is executed, the program of the exchange 120 being executed is stopped.
Command execution request, debugger command execution means 1
04 executes the g command to run the exchange program. The failure detection means 110 is a real-time OS 1
Since the state of 23 has not transitioned from active to inactive, it is determined that no failure has occurred (sequence B4).
【0030】そして、リアルタイムOS123が起動さ
れるまで、シーケンスB2からB4が繰り返し行われ
る。ブートストラッププログラム122は、交換機12
0の固定アドレスに格納されているリアルタイムOS1
23の実行開始アドレスを読み出し、リアルタイムOS
123を起動すると、リアルタイムOS123がデバッ
グモニタ124の初期化処理を呼び出し、デバッグモニ
タ124がリアルタイムOS123の状態として起動を
記憶する(シーケンスB5)。周期コマンド実行手段1
08は、デバッガコマンド実行手段104にpanic
コマンドの実行を要求し、デバッガコマンド実行手段1
04がpanicコマンドを実行する(シーケンスB
6)。Until the real-time OS 123 is started, the sequences B2 to B4 are repeatedly performed. The bootstrap program 122 is installed in the exchange 12
Real-time OS1 stored at a fixed address of 0
Read the execution start address of the real-time OS
When the 123 is started, the real-time OS 123 calls the initialization process of the debug monitor 124, and the debug monitor 124 stores the start as the state of the real-time OS 123 (sequence B5). Periodic command execution means 1
08 indicates panic to the debugger command execution means 104
Command execution request, debugger command execution means 1
04 executes the panic command (sequence B
6).
【0031】デバッグモニタ124は、リアルタイムO
S123に記憶しているパニックトラップの設定情報を
読み出す(シーケンスB7、B8)。デバッグモニタ1
24は、panicコマンドの実行結果として、パニッ
クトラップの設定情報をデバッガコマンド実行手段10
4に送信する。リアルタイムOS状態記憶手段109
は、リアルタイムOS123の状態として起動を記憶す
る(シーケンスB9)。周期コマンド実行手段108
は、デバッガコマンド実行手段104にgコマンドの実
行を要求し、デバッガコマンド実行手段104がgコマ
ンドを実行して、交換機120のプログラムを走行させ
る。障害検出手段110は、リアルタイムOS123の
状態が起動から未起動に遷移していないため、障害発生
なしと判定する(シーケンスB10)。The debug monitor 124 is a real-time O
The setting information of the panic trap stored in S123 is read (sequences B7 and B8). Debug monitor 1
24, the panic trap setting information as the execution result of the panic command;
Send to 4. Real-time OS state storage means 109
Stores the activation as the state of the real-time OS 123 (sequence B9). Periodic command execution means 108
Requests the debugger command execution means 104 to execute the g command, and the debugger command execution means 104 executes the g command to run the program of the exchange 120. Since the state of the real-time OS 123 has not transitioned from activation to non-activation, the failure detection unit 110 determines that no failure has occurred (sequence B10).
【0032】交換アプリケーションプログラム121に
障害が発生しない間は、シーケンスB6からB10が繰
り返し行われる。交換アプリケーションプログラム12
1にアドレスエラーやバスエラーなどの障害が発生する
と例外割り込みが発生し、リアルタイムOS123の例
外ハンドラに制御が移る(シーケンスB11)。リアル
タイムOS123の例外ハンドラは、交換機120の固
定アドレスの命令を実行することにより、ブートストラ
ッププログラム122に制御が移り、ブートストラップ
プログラム122は、デバッグモニタ124の初期化処
理を呼び出し、デバッグモニタ124がリアルタイムO
S123の状態として未起動を記憶する(シーケンスB
12)。As long as no failure occurs in the exchange application program 121, the sequences B6 to B10 are repeated. Exchange application program 12
When a failure such as an address error or a bus error occurs in the first device, an exception interrupt occurs, and control is transferred to an exception handler of the real time OS 123 (sequence B11). When the exception handler of the real-time OS 123 executes the instruction at the fixed address of the exchange 120, the control is transferred to the bootstrap program 122. The bootstrap program 122 calls the initialization processing of the debug monitor 124, and the debug monitor 124 O
The inactive state is stored as the state of S123 (sequence B
12).
【0033】周期コマンド実行手段108は、デバッガ
コマンド実行手段104にpanicコマンドの実行を
要求し、デバッガコマンド実行手段104がpanic
コマンドを実行する(シーケンスB13)。デバッグモ
ニタ124は、panicコマンドの実行結果として、
記憶しているリアルタイムOS123の状態である未起
動をデバッガコマンド実行手段104に送信する。リア
ルタイムOS状態記憶手段109は、デバッグモニタ1
24から受信したリアルタイムOS123の状態である
未起動を記憶する(シーケンスB14)。周期コマンド
実行手段108は、デバッガコマンド実行手段104に
gコマンドの実行を要求し、デバッガコマンド実行手段
104がgコマンドを実行して、交換機120のプログ
ラムを走行させる。障害検出手段110はリアルタイム
OS123の状態が起動から未起動に遷移していること
により、障害発生ありと判定する(シーケンスB1
5)。The cyclic command execution means 108 requests the debugger command execution means 104 to execute a panic command, and the debugger command execution means 104
The command is executed (sequence B13). The debug monitor 124, as an execution result of the panic command,
The stored state of the real-time OS 123 that is not yet started is transmitted to the debugger command execution unit 104. The real-time OS state storage means 109 is provided in the debug monitor 1
The non-start state, which is the state of the real-time OS 123, received from the server 24 is stored (sequence B14). The periodic command execution unit 108 requests the debugger command execution unit 104 to execute the g command, and the debugger command execution unit 104 executes the g command to run the program of the exchange 120. The failure detection unit 110 determines that a failure has occurred because the state of the real-time OS 123 has transitioned from started to not started (sequence B1).
5).
【0034】以上のように、本実施形態によれば、周期
コマンド実行手段108により、周期的にデバッガのコ
マンドを実行して、デバッグモニタ124から受信した
リアルタイムOSの状態遷移により、障害検出手段11
0が障害発生を検出するようにしたので、効率よく確実
に交換アプリケーションプログラム121の障害発生を
検出することができる。また、障害検出手段110で障
害発生を検出した場合、コマンド取得手段101が再開
手順ファイルを読み込んで再開処理を行うので、障害発
生時にも継続して自動試験を行うことができる。As described above, according to the present embodiment, the cyclic command executing means 108 periodically executes the debugger command, and the state transition of the real-time OS received from the debug monitor 124 causes the failure detecting means 11 to execute.
Since 0 detects the occurrence of a failure, the occurrence of a failure in the exchange application program 121 can be efficiently and reliably detected. In addition, when the failure detection unit 110 detects the occurrence of a failure, the command acquisition unit 101 reads the restart procedure file and performs the restart processing, so that the automatic test can be continuously performed even when the failure occurs.
【0035】なお、上述したステップA6,A15(図
2参照)およびシーケンスB2,B6,B13(図3参
照)において実行するpanicコマンドに替えて、設
定情報参照用にemコマンド(図4のステップC6、C
15および図5のシーケンスD2、D6、D13)を実
行する態様としても同様な効果を奏することができる。
このemコマンドとは、交換アプリケーションプログラ
ム121にアドレスエラーや、バスエラーなどの例外が
発生した時、発生した例外の種類に対応した番号を標準
出力に出力するための例外トラップの設定、例外トラッ
プの解除、例外トラップの設定情報参照を行うデバッガ
のコマンドである。It should be noted that, instead of the panic command executed in steps A6 and A15 (see FIG. 2) and sequences B2, B6 and B13 (see FIG. 3), an em command for setting information reference (step C6 in FIG. 4) is used. , C
15 and the sequence D2, D6, and D13) of FIG.
The em command is used when an exception such as an address error or a bus error occurs in the exchange application program 121, to set an exception trap for outputting a number corresponding to the type of the occurred exception to a standard output, and to set an exception trap. This is a debugger command for canceling and referring to the setting information of the exception trap.
【0036】つまり、図4および図5に図示した通り、
例外トラップの設定情報参照用にemコマンドを実行す
ると実行結果として、リアルタイムOS123が起動し
ている場合は例外トラップの設定情報を、リアルタイム
OS123が未起動の場合はリアルタイムOSの状態と
して未起動を、デバッグモニタ123から受信する。上
述した実施の形態において周期的に実行したpanic
コマンドと、本形態にて周期的に実行したemコマンド
とは、ともにリアルタイムOS123に記憶した設定情
報を変更せずに、リアルタイムOS123の状態をデバ
ッグモニタ124から受信することができるデバッガの
コマンドである。同様に、デバッグモニタ124からリ
アルタイムOS123の状態を受信することができるデ
バッガのコマンドを周期コマンド実行手段108から周
期的に実行することによっても、障害発生を検出するこ
とができる。That is, as shown in FIGS. 4 and 5,
When the em command is executed for referring to the setting information of the exception trap, as an execution result, the setting information of the exception trap when the real-time OS 123 is activated, and the non-start as the state of the real-time OS when the real-time OS 123 is not activated, Received from the debug monitor 123. Panic periodically executed in the above-described embodiment.
The command and the em command periodically executed in this embodiment are debugger commands that can receive the state of the real-time OS 123 from the debug monitor 124 without changing the setting information stored in the real-time OS 123. . Similarly, the occurrence of a failure can be detected by periodically executing a debugger command capable of receiving the state of the real-time OS 123 from the debug monitor 124 from the periodic command execution unit 108.
【0037】[0037]
【発明の効果】本発明によれば、周期的にデバッガコマ
ンドを実行させ、そのコマンド実行に対応したリアルタ
イムOSの状態から障害発生の有無を検出し、障害発生
を検出した場合、所定の再開手順で交換機を再開させる
ので、効率よく確実に交換アプリケーションプログラム
の障害発生を検出でき、しかも障害発生時にも継続して
自動試験を行うことができる。According to the present invention, a debugger command is periodically executed, the presence / absence of a failure is detected from the state of the real-time OS corresponding to the execution of the command, and when the failure is detected, a predetermined restart procedure is performed. Therefore, the occurrence of a failure in the exchange application program can be detected efficiently and reliably, and the automatic test can be continuously performed even when a failure occurs.
【図1】 本発明の実施の一形態による自動試験システ
ムの構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of an automatic test system according to an embodiment of the present invention.
【図2】 自動試験システムにおける全体動作を示すフ
ローチャート図である。FIG. 2 is a flowchart showing an overall operation in the automatic test system.
【図3】 障害検出処理シーケンスを示すシーケンス図
である。FIG. 3 is a sequence diagram showing a failure detection processing sequence.
【図4】 emコマンドを用いた場合の全体動作を示す
フローチャート図である。FIG. 4 is a flowchart illustrating an overall operation when an em command is used.
【図5】 emコマンドを用いた場合の障害検出処理シ
ーケンスを示すシーケンス図である。FIG. 5 is a sequence diagram showing a failure detection processing sequence when an em command is used.
【図6】 従来例を説明するためのブロック図である。FIG. 6 is a block diagram for explaining a conventional example.
100…ワークステーション、101…コマンド取得手
段、102…コマンド検査手段、103…コマンド判別
手段、104…デバッガコマンド実行手段、105…通
話路系擬似手段、106…オンラインコマンド実行手
段、107…実行結果記憶手段、108…周期コマンド
実行手段、109…リアルタイムOS状態記憶手段、1
10…障害検出手段、120…交換機、121…交換ア
プリケーションプログラム、122…ブートストラップ
プログラム、123…リアルタイムOS、124…デバ
ッグモニタReference Signs List 100: workstation, 101: command acquisition unit, 102: command inspection unit, 103: command discrimination unit, 104: debugger command execution unit, 105: speech path system simulation unit, 106: online command execution unit, 107: execution result storage Means, 108: periodic command execution means, 109: real-time OS state storage means, 1
DESCRIPTION OF SYMBOLS 10 ... Fault detection means, 120 ... Exchange, 121 ... Exchange application program, 122 ... Bootstrap program, 123 ... Real-time OS, 124 ... Debug monitor
Claims (3)
の処理動作を具現する交換ソフトウェアを自動的に試験
する自動試験システムにおいて、 周期的にデバッガコマンドを実行させ、そのコマンド実
行に対応した前記リアルタイムOSの状態から障害発生
の有無を検出する障害検出手段と、 この障害検出手段が障害発生を検出した場合、所定の再
開手順で交換機を再開させる再開コマンドを実行する再
開手段と を具備することを特徴とする交換ソフトウェアの自動試
験システム。1. An automatic test system, which is executed on a real-time OS and automatically tests exchange software embodying a processing operation of an exchange, wherein a debugger command is periodically executed, and the real-time OS corresponding to the command execution is executed. And a restart means for executing a restart command for restarting the exchange in a predetermined restart procedure when the fault detection means detects a fault occurrence. And an exchange software automatic test system.
の処理動作を具現する交換ソフトウェアを自動的に試験
する自動試験システムにおいて、 デバッガコマンドを周期的に実行する周期コマンド実行
手段と、 この周期コマンド実行手段の実行結果から前記リアルタ
イムOSの状態を判定して記憶する状態記憶手段と、 この状態記憶手段に記憶される前記リアルタイムOSの
状態に応じて障害発生の有無を検出する障害検出手段
と、 この障害検出手段が障害発生を検出した場合、交換機を
再開させるコマンドを再開手順ファイルから読み込んで
実行する再開手順取得手段とを具備することを特徴とす
る交換ソフトウェアの自動試験システム。2. An automatic test system, which is executed on a real-time OS and automatically tests exchange software embodying a processing operation of an exchange, comprising: a cyclic command execution means for periodically executing a debugger command; State storage means for determining and storing the state of the real-time OS from the execution result of the means; failure detection means for detecting the presence or absence of a failure according to the state of the real-time OS stored in the state storage means; An automatic testing system for exchange software, comprising: a restart procedure acquisition unit that reads a command for restarting the exchange from a restart procedure file and executes the command when the failure detection unit detects the occurrence of a failure.
OSが動作不能に陥った原因を示す情報を出力させるこ
とを特徴とする請求項1または請求項2のいずれかに記
載の交換ソフトウェアの自動試験システム。3. The automatic test system for exchange software according to claim 1, wherein the debugger command outputs information indicating a cause of the inability of the real-time OS to operate.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11105834A JP2000298599A (en) | 1999-04-13 | 1999-04-13 | Automatic testing system for exchange software |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11105834A JP2000298599A (en) | 1999-04-13 | 1999-04-13 | Automatic testing system for exchange software |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2000298599A true JP2000298599A (en) | 2000-10-24 |
Family
ID=14418081
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP11105834A Pending JP2000298599A (en) | 1999-04-13 | 1999-04-13 | Automatic testing system for exchange software |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2000298599A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2020074192A (en) * | 2012-11-09 | 2020-05-14 | コーヒレント・ロジックス・インコーポレーテッド | Real-time analysis and control for multiprocessor systems. |
| CN114104044A (en) * | 2020-08-28 | 2022-03-01 | 比亚迪股份有限公司 | Train control method, storage medium, vehicle controller, and train |
-
1999
- 1999-04-13 JP JP11105834A patent/JP2000298599A/en active Pending
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2020074192A (en) * | 2012-11-09 | 2020-05-14 | コーヒレント・ロジックス・インコーポレーテッド | Real-time analysis and control for multiprocessor systems. |
| JP7053691B2 (en) | 2012-11-09 | 2022-04-12 | コーヒレント・ロジックス・インコーポレーテッド | Real-time analysis and control for multi-processor systems |
| US11720479B2 (en) | 2012-11-09 | 2023-08-08 | Coherent Logix, Incorporated | Real time analysis and control for a multiprocessor system |
| CN114104044A (en) * | 2020-08-28 | 2022-03-01 | 比亚迪股份有限公司 | Train control method, storage medium, vehicle controller, and train |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN100582799C (en) | Electronic device diagnostic methods and systems | |
| US5513319A (en) | Watchdog timer for computer system reset | |
| US6393586B1 (en) | Method and apparatus for diagnosing and conveying an identification code in post on a non-booting personal computer | |
| EP2724235A1 (en) | N-way runtime interoperative debugging | |
| US8117430B2 (en) | Boot test system and method thereof | |
| US5987625A (en) | Method and apparatus for testing network bootable devices | |
| CN107357694A (en) | Error event reporting system and its method during startup self-detection | |
| CN112948190A (en) | Hardware testing method, system and related device of server | |
| CN101539876A (en) | Start-up test system and method thereof | |
| JP2000298599A (en) | Automatic testing system for exchange software | |
| JP2003186697A (en) | System and method for testing peripheral device | |
| JP4558376B2 (en) | controller | |
| CN118467340A (en) | Instant debugging method, system, storage medium and equipment of UEFI BIOS | |
| JP2001243089A (en) | Software verification device and software verification method | |
| CN101989936A (en) | Test method and system of single plate fault | |
| TW201015296A (en) | Method for auto-testing environment variable setting | |
| CN115756914A (en) | Test method, test system, test platform and test machine | |
| CN112711494A (en) | Downtime fault positioning method and device | |
| TWI881780B (en) | Method of a dual bios image processing mechanism | |
| CN100418059C (en) | Method for detecting switching failure | |
| CN117215854A (en) | Method, system, equipment and storage medium for testing AMT (automated mechanical transmission) of server | |
| JPH11259160A (en) | Computer starting method, computer and storage medium recording starting processing program | |
| CN120832267A (en) | Dual BIOS image processing mechanism method | |
| CN116881070A (en) | Test fixture, method, device and medium for intrusion switch interface of server | |
| JP2998793B2 (en) | Test method for information processing equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20030422 |