JPH1065762A - Automatic testing simulator for communication software and automatic testing method therefor - Google Patents

Automatic testing simulator for communication software and automatic testing method therefor

Info

Publication number
JPH1065762A
JPH1065762A JP8214548A JP21454896A JPH1065762A JP H1065762 A JPH1065762 A JP H1065762A JP 8214548 A JP8214548 A JP 8214548A JP 21454896 A JP21454896 A JP 21454896A JP H1065762 A JPH1065762 A JP H1065762A
Authority
JP
Japan
Prior art keywords
unit
message
information
communication
reception
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
JP8214548A
Other languages
Japanese (ja)
Inventor
Tsunehiro Arai
恒博 新井
Katsuhisa Kumazawa
克久 熊澤
Masami Mineo
正美 峯尾
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.)
Hitachi Ltd
Hitachi Information Technology Co Ltd
Original Assignee
Hitachi Ltd
Hitachi Communication Systems Inc
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 Hitachi Ltd, Hitachi Communication Systems Inc filed Critical Hitachi Ltd
Priority to JP8214548A priority Critical patent/JPH1065762A/en
Publication of JPH1065762A publication Critical patent/JPH1065762A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Communication Control (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an automatic testing simulator for communication software capable of executing the operation confirming test of the plural different communication protocols of communication software. SOLUTION: A template file 123 previously holds each communication form of the plural protocols. A message editing part 122 refers to the template file 23 and edits transmitting information and reception expected information according to a communication form corresponding to one protocol received by an input part 140. A message transmitting part 124 transmits transmitting information edited by the message editing part 122 to a program to be tested 102. A message receiving part 125 receives received information sent from the program to be tested 102. An editing and outputting part 128 judges whether reception expected information and received information are coincident with each other and outputs the result of judgement.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、網管理システム等
で開発されている通信ソフトウェアの動作確認試験を行
う際の自動試験シミュレータ及びその自動試験方法に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic test simulator and an automatic test method for performing an operation check test of communication software developed in a network management system or the like.

【0002】[0002]

【従来の技術】従来、通信ソフトウェアの動作確認試験
は、試験者が、通信ソフトウェアに対してメッセージを
送り、通信ソフトウェアからその応答として送信された
メッセージを受信し、受信したメッセージ内容を試験者
が直接確認して正常な通信が行われたかどうかの判断を
行っている。
2. Description of the Related Art Conventionally, in an operation check test of communication software, a tester sends a message to the communication software, receives a message transmitted as a response from the communication software, and examines the received message contents. It checks directly to determine whether normal communication has been performed.

【0003】また、動作確認試験専用の通信ソフトウェ
アを用意してシミュレーションによる試験を行う場合も
ある。この場合、1つの動作確認試験をするために、被
試験ソフトウェアである実際の通信ソフトウェアと、そ
の通信ソフトウェアの通信プロトコルに依存した動作確
認試験専用の通信ソフトウェアとの2つの通信ソフトウ
ェアを作成しなければならない。
[0003] In some cases, communication software dedicated to an operation confirmation test is prepared and a test is performed by simulation. In this case, in order to perform one operation check test, two pieces of communication software must be created: actual communication software as software under test and communication software dedicated to the operation check test depending on the communication protocol of the communication software. Must.

【0004】また、この場合、動作確認用通信ソフトウ
ェアは、正常性の確認を行うために、試験結果のメッセ
ージが正しいメッセージであるか否かを比較する手段を
組み込まなくてはならないので、メッセージの内容に変
更が出た場合や仕様変更の場合には、送信するメッセー
ジとそれに対する受信メッセージとを作成し直さなくて
はならない。
In this case, the operation confirmation communication software must incorporate a means for comparing whether or not the test result message is a correct message in order to confirm normality. When the content is changed or when the specification is changed, the message to be transmitted and the received message corresponding thereto must be recreated.

【0005】このような課題を解決するものとして、特
開平5−53864号公報に示されるような従来技術が
ある。この従来技術では、試験を行うためのシミュレー
ション用のツールを用意する。そのツールは、試験者か
らのコマンド入力を受け付け、被試験のプロセスに対し
てそのコマンドを送信し、送信したコマンドに対する応
答を被試験のプロセスから受信している。このツールを
利用することにより、動作確認試験専用の通信ソフトウ
ェアを作成せずに、試験を行っている。
To solve such a problem, there is a conventional technique as disclosed in Japanese Patent Application Laid-Open No. 5-53864. In this conventional technique, a simulation tool for performing a test is prepared. The tool receives a command input from a tester, transmits the command to a process under test, and receives a response to the transmitted command from the process under test. By using this tool, the test is performed without creating communication software dedicated to the operation check test.

【0006】[0006]

【発明が解決しようとする課題】前述した2つの通信ソ
フトウェアを作成する方法では、通信プロトコルの異な
る別の動作確認試験を行う際に、同じ動作確認試験専用
の通信ソフトウェアは使えないので、動作確認試験専用
の通信ソフトウェアを異なる通信プロトコルに対応する
ように修正するか、もしくは、新たに作成しなくてはな
らない。このため、試験者は、確認したい通信ソフトウ
ェアの動作を試験するための専用の通信ソフトウェアを
通信プロトコルの数だけ作成する必要がある。
In the above-described method of creating two communication softwares, when performing another operation confirmation test using a different communication protocol, the same communication software dedicated to the operation confirmation test cannot be used. The test-specific communication software must be modified to support a different communication protocol, or a new one must be created. For this reason, the tester needs to create dedicated communication software for testing the operation of the communication software to be checked, by the number of communication protocols.

【0007】また、特開平5−53864号公報に示さ
れるような従来技術では、複数の異なる通信プロトコル
の通信ソフトウェアの動作確認試験を行うことについて
は、述べられていない。
The prior art as disclosed in Japanese Patent Application Laid-Open No. 5-53864 does not describe performing an operation check test of communication software having a plurality of different communication protocols.

【0008】本発明は、このような課題を解決するため
に、通信ソフトウェアの複数の異なる通信プロトコルの
動作確認試験を行うことができる通信ソフトウェアの自
動試験シミュレータ及びその方法を提供することを目的
とする。また、仕様の変更にも柔軟に対応することがで
きる通信ソフトウェアの自動試験シミュレータ及びその
方法を提供することを他の目的とする。
An object of the present invention is to provide a communication software automatic test simulator capable of performing an operation confirmation test of a plurality of different communication protocols of communication software, and a method therefor, in order to solve such a problem. I do. It is another object of the present invention to provide a communication software automatic test simulator and a method thereof that can flexibly respond to a change in specifications.

【0009】[0009]

【課題を解決するための手段】前述の課題を解決するた
め、本発明では、通信ソフトウェアの動作確認試験を行
う通信ソフトウェアの自動試験シミュレータであって、
複数のプロトコルの各々の通信形式を保持する保持部
と、前記通信ソフトウェアと通信を行うための、前記複
数のプロトコルのうちの一つのプロトコルと、送信すべ
き送信情報と、当該送信情報の応答として期待される受
信期待情報とを受け付ける受付部と、前記受付部で受け
付けられた前記一つのプロトコルに対応する、前記保持
部に保持されている通信形式にしたがって、前記受付部
で受け付けられた前記送信情報と前記受信期待情報とを
編集する編集部と、前記編集部で編集された送信情報を
前記通信ソフトウェアに対して送信する送信部と、前記
通信ソフトウェアから送出された、前記送信情報の応答
である情報を受信情報として受信する受信部と、前記編
集部で編集された受信期待情報と、前記受信部で受信さ
れた受信情報とが一致するか否かを判断し、当該判断の
結果を出力する出力部とを有する。
According to the present invention, there is provided an automatic communication software test simulator for performing an operation check test of communication software.
A holding unit for holding a communication format of each of a plurality of protocols, and for communicating with the communication software, one of the plurality of protocols, transmission information to be transmitted, and a response to the transmission information. A reception unit that receives expected reception expectation information; and the transmission that is received by the reception unit according to a communication format that is held in the storage unit and that corresponds to the one protocol that is received by the reception unit. An editing unit for editing information and the expected reception information, a transmission unit for transmitting the transmission information edited by the editing unit to the communication software, and a response to the transmission information sent from the communication software. A receiving unit that receives certain information as reception information, reception expectation information edited by the editing unit, and reception information received by the reception unit; Whether determined, and an output unit for outputting the result of the determination.

【0010】保持部は、複数のプロトコルの各々の通信
形式を予め保持しておく。受付部は、通信ソフトウェア
と通信を行うための、前記複数のプロトコルのうちの一
つのプロトコルと、送信すべき送信情報と、当該送信情
報の応答として期待される受信期待情報とを受け付け
る。編集部では、前記受付部で受け付けられた前記一つ
のプロトコルに対応する、前記保持部に保持されている
通信形式にしたがって、前記受付部で受け付けられた前
記送信情報と前記受信期待情報とを編集する。送信部
は、前記編集部で編集された送信情報を前記通信ソフト
ウェアに対して送信する。受信部は、前記通信ソフトウ
ェアから送出された、前記送信情報の応答である情報を
受信情報として受信する。出力部は、前記編集部で編集
された受信期待情報と、前記受信部で受信された受信情
報とが一致するか否かを判断し、当該判断の結果を出力
する。異なるプロトコルで通信ソフトウェアと通信を行
う場合には、受付部で、異なるプロトコルを指示するよ
うにすればよい。
[0010] The holding unit previously holds the communication format of each of the plurality of protocols. The receiving unit receives one of the plurality of protocols, transmission information to be transmitted, and expected reception information expected as a response to the transmission information, for performing communication with the communication software. The editing unit edits the transmission information and the expected reception information received by the reception unit according to the communication format stored in the storage unit and corresponding to the one protocol received by the reception unit. I do. The transmitting unit transmits the transmission information edited by the editing unit to the communication software. The receiving unit receives, as reception information, information transmitted from the communication software, which is a response to the transmission information. The output unit determines whether the reception expectation information edited by the editing unit matches the reception information received by the reception unit, and outputs a result of the determination. When communicating with communication software using different protocols, the receiving unit may instruct different protocols.

【0011】本発明によれば、通信ソフトウェアの複数
の異なる通信プロトコルの動作確認試験を行うことがで
きる。このため、動作確認試験専用の通信ソフトウェア
を、試験者が通信プロトコルの数だけ作成する必要がな
い。また、被試験の通信ソフトウェアの仕様を変更した
場合にも、変更に対応した送信情報を受付部から指示す
るだけで柔軟に対応できる。
According to the present invention, an operation check test of a plurality of different communication protocols of communication software can be performed. Therefore, it is not necessary for the tester to create communication software dedicated to the operation check test by the number of communication protocols. Further, even when the specification of the communication software under test is changed, it is possible to flexibly cope with the change only by instructing the transmission information corresponding to the change from the reception unit.

【0012】[0012]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照して詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0013】図1は、本発明の実施の形態におけるシス
テム構成の概要を示した図である。図1において、シミ
ュレータ部101は、通信ソフトウェアの自動試験シミ
ュレータであり、被テストプログラム102のロジック
のテストなどの目的でメッセージを作成し送信する送信
部111と、被テストプログラム102から送信された
メッセージを受信し、受信したメッセージの正常性を判
定する受信部112とを備える。
FIG. 1 is a diagram showing an outline of a system configuration according to an embodiment of the present invention. In FIG. 1, a simulator unit 101 is an automatic test simulator of communication software, and a transmitting unit 111 that creates and transmits a message for the purpose of testing a logic of the program under test 102, and a message transmitted from the program under test 102. And a receiving unit 112 for determining the normality of the received message.

【0014】被テストプログラム102は、被試験ソフ
トウェアであり、シミュレータ部101とメッセージを
送受信する。
The program under test 102 is software under test, and sends and receives messages to and from the simulator unit 101.

【0015】シミュレータ部101の送信部111は、
プロトコルの種別と、送信したいメッセージとを受け付
ける入力部140と、入力部140で受け付けたプロト
コルの種別と、送信したいメッセージをテキスト形式で
記述した送信テキストメッセージとを保持する送信情報
ファイル121と、複数の通信プロトコルに準じた形式
をそれぞれ保持するテンプレートファイル123と、テ
ンプレートファイル123を参照し、送信情報ファイル
121に保持する送信テキストメッセージを通信プロト
コルの種別に従って編集し、送信メッセージを生成する
メッセージ編集部122と、メッセージ編集部122で
生成された送信メッセージを送信する送信メッセージ部
124とを備える。
The transmitting unit 111 of the simulator unit 101
An input unit 140 for receiving a type of protocol and a message to be transmitted, a type of protocol received by the input unit 140, and a transmission information file 121 for storing a transmission text message in which a message to be transmitted is described in text format; And a message editing unit that generates a transmission message by editing the transmission text message stored in the transmission information file 121 according to the type of the communication protocol with reference to the template file 123. 122, and a transmission message unit 124 for transmitting the transmission message generated by the message editing unit 122.

【0016】テンプレートファイル123は、例えば、
p1、p2、SNMPなど予め定められた複数の通信プ
ロトコルに準じた形式をそれぞれ保持する。プロトコル
種別は、例えば、OSIの階層が異なる場合も、異なる
プロトコルとしている。
The template file 123 is, for example,
Each has a format according to a plurality of predetermined communication protocols such as p1, p2, and SNMP. For example, the protocol type is different even when the OSI layer is different.

【0017】メッセージ編集部122では、テンプレー
トファイル123を参照し、送信情報ファイル121で
受け付けた通信プロトコル種別に従い、送信テキストメ
ッセージを通信プロトコルに準じた形式に変換し、メッ
セージの送信に必要な通信プロトコルの情報を付加して
送信メッセージを生成する。メッセージの送信に必要な
通信プロトコルの情報とは、通信ヘッダ等の予め定めら
れた情報である。送信メッセージ部124は、メッセー
ジ編集部122で生成された送信メッセージを被テスト
プログラム102に送信する。送信情報ファイル121
とメッセージ編集部122とは通信プロトコルに依存し
ない汎用的なものである。
The message editing unit 122 refers to the template file 123, converts the transmission text message into a format conforming to the communication protocol according to the communication protocol type received by the transmission information file 121, and converts the communication protocol necessary for transmitting the message. To generate a transmission message. The information of the communication protocol necessary for transmitting the message is predetermined information such as a communication header. The transmission message unit 124 transmits the transmission message generated by the message editing unit 122 to the program under test 102. Transmission information file 121
The message editing unit 122 is a general-purpose one that does not depend on the communication protocol.

【0018】一方、受信部112は、被テストプログラ
ム102から受信メッセージを受信する受信メッセージ
部125と、プロトコルの種別と、受信したいメッセー
ジとを受け付ける入力部140と、入力部140で受け
付けたプロトコルの種別とテキスト形式で記述した受信
期待値テキストメッセージとを保持する受信期待値ファ
イル126と、複数の通信プロトコルに準じた形式をそ
れぞれ保持するテンプレートファイル123と、テンプ
レートファイル123を参照し、受信期待値ファイル1
26に保持する受信テキストメッセージを通信プロトコ
ルの種別に従って編集し、受信期待値メッセージを生成
するメッセージ編集部122と、メッセージ編集部12
2で編集された受信期待値メッセージを保持する受信期
待値メッセージ部127と、受信期待値メッセージ部1
27で保持する受信期待値メッセージと受信メッセージ
部125で受信した受信メッセージとを比較する編集出
力部128と、編集出力部で比較した結果を画面表示す
る画面出力部129と、編集出力部で比較した結果を保
持するファイル出力部130とを備える。
On the other hand, the receiving section 112 includes a receiving message section 125 for receiving a received message from the program under test 102, an input section 140 for receiving the type of protocol and a message to be received, and a protocol for receiving the message to be received. The expected expected value file 126 holding the expected expected value text message described in the type and the text format, the template file 123 holding the format according to a plurality of communication protocols, and the expected expected value File 1
26, a message editing unit 122 that edits the received text message according to the type of the communication protocol and generates an expected reception value message;
2, a reception expectation message part 127 holding the reception expectation message edited in step 2, and an reception expectation message part 1
An edit output unit 128 that compares the expected reception value message held at 27 with the received message received at the receive message unit 125, a screen output unit 129 that displays the result of the comparison at the edit output unit on the screen, and a comparison at the edit output unit And a file output unit 130 for holding the result.

【0019】メッセージ編集部122は、送信メッセー
ジを編集したのと同一の手段であり、受信期待値ファイ
ル125であらかじめ受け付けておいた受け付けた通信
プロトコル種別に従い、テンプレートファイル123を
参照し、受信期待値テキストメッセージを、通信プロト
コルに準じた形式に変換し、通信プロトコルの情報を付
加して受信期待値メッセージを生成する。編集出力部1
28では、受信メッセージ部125で受信した受信メッ
セージを受け取り、受信メッセージと受信期待値メッセ
ージとを比較し、比較した結果を、画面出力部129ま
たはファイル出力部130あるいはその両方に出力す
る。
The message editing unit 122 is the same means as that for editing the transmission message. The message editing unit 122 refers to the template file 123 according to the received communication protocol type previously received in the expected reception value file 125, and The text message is converted into a format conforming to the communication protocol, and information on the communication protocol is added to generate a reception expectation value message. Editing output unit 1
At 28, the received message received by the received message unit 125 is received, the received message is compared with the expected reception value message, and the comparison result is output to the screen output unit 129 and / or the file output unit 130.

【0020】本発明の実施の形態におけるメッセージの
やりとりは、送受信を行う対象やその数を限定するもの
ではなく、送受信の方向も特に意味は持たない。また特
定の通信手段に限定するものではなく、数字列、文字列
等で通信を行う各種の通信関数及びプロトコルに適用可
能であり、一つの機器内での内部通信においても適用可
能である。
The exchange of messages according to the embodiment of the present invention does not limit the objects to be transmitted and received and the number thereof, and the direction of transmission and reception has no particular meaning. The present invention is not limited to a specific communication means, but can be applied to various communication functions and protocols for performing communication using a numeric string, a character string, and the like, and is also applicable to internal communication within one device.

【0021】つぎに、図2〜図5を参照し、送信情報フ
ァイル121及び受信期待値ファイル126に保持する
プロトコルの種別と送信テキストメッセージとの記述の
仕方を説明する。図2〜図5に、送信情報ファイル12
1及び受信期待値ファイル126に保持するプロトコル
の種別と送信テキストメッセージとの記述の一例を示
す。送信情報ファイル及び受信期待値ファイルは、プロ
トコルの種別と、そのプロトコル種別に対応するメッセ
ージのキーワードと、そのキーワードに対応する内容
(テキスト)とが含まれる。キーワードはプロトコルに
より異なる。入力部140で受け付けたプロトコルの種
別と、送信したいメッセージをテキスト形式で記述した
送信テキストメッセージとを図2〜図5に示すような、
テキスト形式で保持する。メッセージは、キーワードに
対応する内容を、予め定められたキーワードの羅列順序
で羅列したものとみなせる。キーワードに対応する内容
は、キーワードに対応させて、テキスト形式で文字列や
数字列という形式で作成する。試験者が入力部140か
らキーワードおよびその内容を直接入力するようにして
もよいし、試験者が入力部140からプロトコル種別を
入力することにより、キーワードを画面出力129のデ
ィスプレイ上に表示させ、それぞれのキーワードに対応
する内容を試験者が入力部140から入力するようにし
てもよい。さらに、テンプレートファイル123に保持
するすべてのプロトコル種別を、画面出力129のディ
スプレイ上に表示させ、いずれかのプロトコル種別を選
択し、選択されたプロトコル種別に対応するキーワード
を表示させ、それぞれのキーワードに対応する内容を試
験者が入力部140から入力するようにしてもよい。
Next, with reference to FIGS. 2 to 5, a description will be given of a method of describing the type of the protocol stored in the transmission information file 121 and the expected reception value file 126 and the transmission text message. FIGS. 2 to 5 show the transmission information file 12.
1 shows an example of the description of the protocol type and the transmission text message held in the expected value file 126 and the reception expectation file 126. The transmission information file and the expected reception value file include a protocol type, a keyword of a message corresponding to the protocol type, and contents (text) corresponding to the keyword. Keywords vary by protocol. The type of the protocol accepted by the input unit 140 and the transmission text message in which the message to be transmitted is described in text format as shown in FIGS.
Keep in text format. The message can be regarded as a list of contents corresponding to the keywords in a predetermined order of the keywords. The content corresponding to the keyword is created in a text format such as a character string or a numeric string in association with the keyword. The tester may directly input the keyword and its contents from the input unit 140, or the tester may input the protocol type from the input unit 140 to cause the keyword to be displayed on the display of the screen output 129. The tester may input the content corresponding to the keyword from the input unit 140. Further, all the protocol types held in the template file 123 are displayed on the display of the screen output 129, any one of the protocol types is selected, and a keyword corresponding to the selected protocol type is displayed. The tester may input the corresponding content from the input unit 140.

【0022】図2においては、複数の通信プロトコルの
うち、p1の種別が入力され、送信情報ファイル及び受
信期待値ファイルが同じである場合を示す。また、通信
管理ヘッダ、メッセージ番号、チェーンポインタ、個別
部長ポインタ、個別部長のキーワードおよびそれらの内
容が保持されている。例201において、メッセージ番
号というキーワードの後に「8」という数字列でキーワ
ードに対する内容を記述している。また、本発明の実施
の形態においては、キーワードに対応する内容が、文字
列(キャラクタコード)、数字列(10進コード)、1
6進コード、バイナリコードのうちいずれにより示され
ているかを、キーワードに対応する内容の属性とし、後
述するテンプレートファイルにおいて示される属性と一
致するかが判断される。
FIG. 2 shows a case where the type of p1 is input among a plurality of communication protocols, and the transmission information file and the expected reception value file are the same. In addition, a communication management header, a message number, a chain pointer, an individual manager pointer, an individual manager keyword, and their contents are held. In the example 201, the contents of the keyword are described by a numeral string “8” after the keyword of the message number. Further, in the embodiment of the present invention, the content corresponding to the keyword includes a character string (character code), a numeric string (decimal code),
Which of the hexadecimal code and the binary code is indicated as the attribute of the content corresponding to the keyword, and it is determined whether the attribute matches the attribute indicated in the template file described later.

【0023】また、図3においては、p2の通信プロト
コルの送信情報ファイルが入力された例を示し、図4に
その応答としての受信期待値ファイルの例を示す。さら
に、図5においては、複数の通信プロトコルのうち、S
NMPの通信プロトコル種別の送信情報ファイルの例を
示す。
FIG. 3 shows an example in which a transmission information file of the p2 communication protocol is input, and FIG. 4 shows an example of a reception expectation value file as a response. Further, in FIG. 5, among a plurality of communication protocols, S
5 shows an example of a transmission information file of a communication protocol type of NMP.

【0024】つぎに、テンプレートファイル123に保
持する内容について説明する。図6〜図8に、送信情報
ファイルから送信メッセージ、及び、受信期待値ファイ
ルから受信期待値メッセージを生成するときに使用する
テンプレートファイル123の一例を示す。図6〜図8
において、テンプレートファイル123は、全てのプロ
トコル種別ごとにキーワードの属性およびサイズを定義
するキーワード定義部301と、プロトコル種別ごとに
キーワードの羅列順序を定義するメッセージ定義部30
2とを保持している。また、テンプレートファイル12
3には、図6〜図8に示すように、キーワード定義部3
01は全てのプロトコルについてのキーワードが並べら
れており、メッセージ定義部302は、プロトコル種別
p1、p2やプロトコル種別SNMPなどのように、複
数のプロトコル種別ごとに形式をそれぞれ保持してい
る。プロトコル種別p1と、p2とSNMPとに対応す
る場合には、図6〜図8に示すようなプロトコル種別p
1と、p2とSNMPとに対応する形式をテンプレート
ファイル123に備える。また、テンプレートファイル
123に保持する内容は入力部140から入力され、試
験者は、必要なプロトコルの形式を随時入力することが
できる。また、キーワード定義部301やメッセージ定
義部302に保持する定義内容を変更したいときには、
試験者は入力部140から変更後の内容を指示すること
ができる。
Next, the contents held in the template file 123 will be described. 6 to 8 show examples of a template file 123 used when generating a transmission message from a transmission information file and an expected value message from an expected value file. 6 to 8
In the template file 123, the keyword definition unit 301 defining the attribute and size of the keyword for each protocol type, and the message definition unit 30 defining the order of keywords for each protocol type
2 is held. The template file 12
3 includes a keyword definition unit 3 as shown in FIGS.
01 is a list of keywords for all protocols, and the message definition unit 302 holds a format for each of a plurality of protocol types such as protocol types p1 and p2 and protocol type SNMP. When the protocol type p1 and the protocol type p2 and SNMP are supported, the protocol type p as shown in FIGS.
1, a format corresponding to p2 and SNMP is provided in the template file 123. The contents held in the template file 123 are input from the input unit 140, and the tester can input a required protocol format at any time. When it is desired to change the definition contents held in the keyword definition unit 301 and the message definition unit 302,
The tester can specify the changed content from the input unit 140.

【0025】図6〜図8において、キーワード定義部3
01は、メッセージについての複数のキーワードと、各
々のキーワードに対応する属性およびサイズなどがあら
かじめ定義されている。複数のキーワードは、送信情報
ファイル及び受信期待値ファイルに記述されているキー
ワードと対応している。キーワード定義部301は、図
6に示す例では、通信管理ヘッダ、メッセージ番号、チ
ェーンポインタ、個別部長ポインタ、個別部長、CSア
ドレス、結果というキーワードを備える。キーワードの
後に示す、B(10進コード)、X(16進コード)、
もしくは、C(キャラクターコード)は、属性を示し、
その後に示す数字は、キーワードの内容のサイズを示
す。例えば、キーワードの通信管理ヘッダは、Bで1バ
イト、キーワードのCSアドレスは、Cで8バイトとい
う属性とサイズとが定義されている。また、メッセージ
定義部302は、通信プロトコルに準拠した形式に変換
するための情報や、メッセージの構造を示すキーワード
の羅列順序が定義される。図6において、メッセージ定
義部302は、例えば、通信管理ヘッダの内容が「3」
というメッセージの場合、通信管理ヘッダの#CASE
3に対応し、#CASE3の下に示されるメッセージ番
号、チェーンポインタ、個別部ポインタ、個別部長の順
でメッセージの構成が定義される。メッセージ編集部1
22では、テンプレートファイル123の入力されたプ
ロトコル種別に対応するキーワードに一致する送信情報
ファイルおよび受信期待値ファイルのキーワードを検索
し、一致するキーワードについて、指定された属性に基
づいて送信および受信メッセージの生成を行う。
In FIG. 6 to FIG.
In the field 01, a plurality of keywords for the message, and attributes and sizes corresponding to the respective keywords are defined in advance. The plurality of keywords correspond to the keywords described in the transmission information file and the expected reception value file. In the example shown in FIG. 6, the keyword definition unit 301 includes keywords such as a communication management header, a message number, a chain pointer, an individual unit length pointer, an individual unit length, a CS address, and a result. B (decimal code), X (hexadecimal code), shown after keyword
Or, C (character code) indicates the attribute,
The number shown after that indicates the size of the content of the keyword. For example, the attribute and size of the communication management header of the keyword are defined as 1 byte for B and the CS address of the keyword is 8 bytes for C. The message definition unit 302 defines information for conversion into a format conforming to the communication protocol, and a list of keywords indicating the structure of the message. In FIG. 6, for example, the message definition unit 302 indicates that the content of the communication management header is “3”.
Message, the communication management header #CASE
3, the structure of the message is defined in the order of a message number, a chain pointer, an individual unit pointer, and an individual unit length shown under # CASE3. Message editor 1
At 22, search for a keyword in the transmission information file and a keyword in the expected reception value file that match the keyword corresponding to the input protocol type in the template file 123, and search for the matching keyword based on the specified attribute. Generate.

【0026】つぎに、送信メッセージを送信するときの
処理を図9を参照して説明する。図9に、メッセージを
送信するときの処理の流れを示す。
Next, a process for transmitting a transmission message will be described with reference to FIG. FIG. 9 shows a flow of processing when transmitting a message.

【0027】図9において、入力部140は、送信要求
として、プロトコルの種別と送信したいメッセージとを
受け付け、送信情報ファイル121は、受け付けたプロ
トコルの種別と、送信したいメッセージをテキスト形式
で記述した送信テキストメッセージとを保持する(ステ
ップ410)。メッセージ編集部122は、受け付けた
プロトコルの種別に対応する、あらかじめ登録してある
テンプレートファイル123のキーワード定義部301
を参照し(ステップ420)、キーワード定義部301
に定義されている、プロトコルの種別に対応するキーワ
ードと送信情報ファイルに保持するキーワードとが一致
するキーワードを検出し、一致したキーワードのキーワ
ード定義部301に定義されている属性およびサイズと
送信情報ファイルに保持されているキーワードの内容の
属性およびサイズとが、一致するか否かを判定する(ス
テップ430)。例えば、メッセージ編集部122は、
図6に示すテンプレートファイル123のキーワード定
義部301に定義されているキーワードの通信管理ヘッ
ダと図2に示す送信情報ファイルに保持するキーワード
の通信管理ヘッダとが一致することを検出する。送信情
報ファイルに保持する他のキーワードについても、キー
ワード定義部301に定義されている一致するキーワー
ドを検出する。つぎに、図6に示すテンプレートファイ
ル123のキーワード定義部301において、一致した
キーワードの通信管理ヘッダの属性がB(10進コー
ド)でサイズが1バイトと定義されており、図2に示す
送信情報ファイルに保持するキーワードの通信管理ヘッ
ダの内容が「8」であり、10進コードでサイズが1バ
イトであるので、属性が一致することを判定する。ま
た、図2において、0x28の0xの後に続く数字もし
くは文字が16進コードであることを示し、”002f
35”は””の内部にキャラクタコードが示されている
ことを示す。送信情報ファイルに保持する他のキーワー
ドの属性およびサイズについてもキーワード定義部30
1に定義されている属性およびサイズと一致するか否か
を判定する。送信情報ファイルに保持するキーワードの
サイズが、キーワード定義部301に示されるサイズと
一致するかもしくはそれより小さいサイズであれば一致
するものと判断する。属性もしくはサイズが一致しない
場合には、画面出力129のディスプレイにエラーメッ
セージを表示出力し(ステップ450)、送信メッセー
ジを生成せずに終了する。
In FIG. 9, the input unit 140 receives a protocol type and a message to be transmitted as a transmission request, and the transmission information file 121 stores a transmission type in which the received protocol type and the message to be transmitted are described in text format. The text message is held (step 410). The message editing unit 122 includes a keyword definition unit 301 of the template file 123 registered in advance corresponding to the type of the received protocol.
(Step 420), and the keyword definition unit 301
, The keyword corresponding to the protocol type and the keyword held in the transmission information file match, and the attribute and size defined in the keyword definition unit 301 of the matched keyword and the transmission information file Then, it is determined whether or not the attribute and the size of the content of the keyword stored in are the same (step 430). For example, the message editing unit 122
It is detected that the communication management header of the keyword defined in the keyword definition unit 301 of the template file 123 shown in FIG. 6 matches the communication management header of the keyword held in the transmission information file shown in FIG. As for the other keywords stored in the transmission information file, a matching keyword defined in the keyword definition unit 301 is detected. Next, in the keyword definition section 301 of the template file 123 shown in FIG. 6, the attribute of the communication management header of the matched keyword is defined as B (decimal code) and the size is 1 byte, and the transmission information shown in FIG. Since the content of the communication management header of the keyword held in the file is “8” and the size is 1 byte in decimal code, it is determined that the attributes match. Further, in FIG. 2, it is shown that the number or character following 0x of 0x28 is a hexadecimal code, and "002f
35 "indicates that a character code is indicated inside"". The attribute and size of other keywords held in the transmission information file are also defined in the keyword definition unit 30.
It is determined whether or not the attribute and the size defined in No. 1 match. If the size of the keyword held in the transmission information file matches or is smaller than the size indicated in the keyword definition unit 301, it is determined that the keyword matches. If the attributes or sizes do not match, an error message is displayed on the display of the screen output 129 (step 450), and the process ends without generating a transmission message.

【0028】送信情報ファイルに保持する全てのキーワ
ードおよび属性が一致すれば、プロトコル種別に対応す
るキーワード定義部301およびメッセージ定義部30
2を参照し、通信プロトコルに準ずる形式の送信メッセ
ージを生成する(ステップ440)。送信メッセージの
生成方法としては、キーワード定義部301に定義され
ている属性およびサイズに従って、内容を16進コード
に変換し、メッセージ定義部302に定義されているキ
ーワードの羅列順序で16進コードに変換されたキーワ
ードの内容を羅列する。例えば、図6において、キーワ
ードの属性のBは10進コードで表現されていることを
示すので、これを16進コードに変換し、キーワード定
義部301に定義されているサイズにあわせる。Xは1
6進コードで表現されていることを示し、例えば、図2
に示すチェーンポインタの内容の0x28は16進コー
ドであるのでそのまま28を取りだし、キーワード定義
部301に定義されているチェーンポインタのサイズが
4バイトであるので、28の前に0を付加して4バイト
にする。また、Cはキャラクターコードであるので、キ
ャラクタコードを予め定められている対応する16進コ
ードに変換し、さらにキーワード定義部301に定義さ
れているサイズに合わせるようにする。キーワードの内
容を16進コードに変換後、メッセージ定義部302に
定義されているキーワードの羅列順序で16進コードに
変換されたキーワードの内容を羅列する。このようにし
て送信メッセージが生成される。
If all keywords and attributes held in the transmission information file match, the keyword definition unit 301 and the message definition unit 30 corresponding to the protocol type
Referring to FIG. 2, a transmission message in a format conforming to the communication protocol is generated (step 440). As a method of generating the transmission message, the content is converted into a hexadecimal code according to the attribute and size defined in the keyword definition unit 301, and the content is converted into the hexadecimal code in the order of the keywords defined in the message definition unit 302. List the contents of the keywords that have been entered. For example, in FIG. 6, B of the attribute of the keyword indicates that it is represented by a decimal code. X is 1
It indicates that it is represented by a hexadecimal code.
Since 0x28 of the content of the chain pointer shown in (1) is a hexadecimal code, 28 is taken out as it is. Since the size of the chain pointer defined in the keyword definition unit 301 is 4 bytes, 0 is added before 28 to 4 Make bytes. Further, since C is a character code, the character code is converted into a corresponding hexadecimal code that is determined in advance, and is further adjusted to the size defined in the keyword definition unit 301. After converting the contents of the keywords into hexadecimal codes, the contents of the keywords converted into the hexadecimal codes are listed in the order of the keywords defined in the message definition unit 302. Thus, a transmission message is generated.

【0029】図9において、生成された送信メッセージ
は、図10に示すように、画面出力129のディスプレ
イに表示出力され(ステップ460)、編集者が送信メ
ッセージを確認することができる。
In FIG. 9, the generated transmission message is displayed and output on the screen output 129 as shown in FIG. 10 (step 460), and the editor can confirm the transmission message.

【0030】図10に、生成された送信メッセージの一
例を示す。図10において、送信メッセージは、図2に
示す送信情報ファイルに保持されている内容からテンプ
レートファイル123に基づいて生成されたものであ
る。図10に示す送信メッセージは、最初の03が、図
2に示す通信管理ヘッダの3が変換されたものであり、
以降、メッセージ番号の8が08に変換され、チェーン
ポインタの0x28が00000028に変換され、個
別部長ポインタの0x1666が00001666に変
換され、個別部長の002f35が303032663
335に変換され、生成されたことを示している。な
お、本発明の実施の形態においては、送信メッセージも
しくは受信メッセージを、図10に示すように、16進
コードにより示しているが、試験者がメッセージを確認
するのに、プロトコル種別にしたがい、判り易い形式、
例えば、キャラクタコードにより示すようにしてもよ
い。
FIG. 10 shows an example of the generated transmission message. 10, the transmission message is generated based on the template file 123 from the contents held in the transmission information file shown in FIG. In the transmission message shown in FIG. 10, the first 03 is obtained by converting 3 of the communication management header shown in FIG.
Thereafter, the message number 8 is converted to 08, the chain pointer 0x28 is converted to 00000028, the individual part length pointer 0x1666 is converted to 000016666, and the individual part length 002f35 is converted to 303033263.
335, and is generated. In the embodiment of the present invention, the transmission message or the reception message is indicated by a hexadecimal code as shown in FIG. 10, but the tester confirms the message according to the protocol type. Easy format,
For example, it may be indicated by a character code.

【0031】図9において、生成された送信メッセージ
は、図1に示す送信メッセージ部124により2進コー
ドに変換され、送信メッセージ部124は、変換された
2進コードにしたがって、送信メッセージを被テストプ
ログラム102に対して送信する。
In FIG. 9, the generated transmission message is converted into a binary code by the transmission message unit 124 shown in FIG. 1, and the transmission message unit 124 tests the transmission message according to the converted binary code. It is transmitted to the program 102.

【0032】つぎに、受信メッセージを受け取るときの
処理を図11を参照して説明する。図11に、メッセー
ジを受け取るときの処理の流れを示す。
Next, a process for receiving a received message will be described with reference to FIG. FIG. 11 shows the flow of processing when receiving a message.

【0033】図11において、被テストプログラム10
2からの受信要求により、受信メッセージを受信すると
(ステップ610)、あらかじめ予想できる受信結果の
受信期待値メッセージと比較を行うため、受信期待値フ
ァイル126を呼び出して(ステップ611)、受信期
待値メッセージ127を生成する。受信期待値メッセー
ジの生成方法は、送信メッセージの生成方法と同様であ
り、メッセージ編集部122は、受け付けたプロトコル
の種別に対応する、あらかじめ登録してあるテンプレー
トファイル123のキーワード定義部301を参照し
(ステップ612)、キーワード定義部301に定義さ
れている、プロトコルの種別に対応するキーワードと受
信期待値ファイルに保持するキーワードとが一致するキ
ーワードを検出し、一致したキーワードのキーワード定
義部301に定義されている属性およびサイズと受信期
待値ファイルに保持されているキーワードの内容の属性
およびサイズとが、一致するか否かを判定する(ステッ
プ613)。属性もしくはサイズが一致しない場合に
は、画面出力129のディスプレイにエラーメッセージ
を表示出力し(ステップ615)、受信期待値メッセー
ジを生成せずに終了する。受信期待値ファイルに保持す
る全てのキーワードおよび属性が一致すれば、プロトコ
ル種別に対応するキーワード定義部301およびメッセ
ージ定義部302を参照し、通信プロトコルに準ずる形
式の受信期待値メッセージを生成する(ステップ61
4)。図13に示す受信期待値メッセージは、図4に示
す受信期待値ファイルと、図7に示すテンプレートファ
イルとから生成されている。図13に示す受信期待値メ
ッセージは、最初の0002が、図4に示すメッセージ
種別の2が変換されたものであり、以降、オペレーショ
ンコードの1が0001に変換され、送信元端末IDと
送信先端末IDとがキャラクタコード12と11に対応
する16進数に変換され、同様に、付加情報長、サーバ
要求通番、CSアドレスがそれぞれに変換されている。
また、羅列順序は、メッセージ種別が2であるので、メ
ッセージ定義部のメッセージ種別の#CASE2が選択
され、さらに、オペレーションコードが1であるので、
メッセージ定義部のオペレーションコードの#CASE
1が選択され、オペレーションコードの#CASE1の
下に続く、送信元端末ID、送信先端末ID、付加情報
長、サーバ要求通番、CSアドレスが順番に羅列され
る。
In FIG. 11, the program under test 10
When the received message is received according to the reception request from Step 2 (Step 610), the reception expected value file 126 is called (Step 611) in order to compare the received message with the expected reception value message of the reception result which can be predicted in advance (Step 611). 127 is generated. The generation method of the expected reception value message is the same as the generation method of the transmission message, and the message editing unit 122 refers to the keyword definition unit 301 of the template file 123 registered in advance corresponding to the type of the received protocol. (Step 612), a keyword defined by the keyword definition unit 301 and corresponding to the protocol type and the keyword held in the expected reception value file are detected, and the keyword is defined in the keyword definition unit 301 of the matched keyword. Then, it is determined whether or not the attribute and size of the keyword match the attribute and size of the content of the keyword held in the expected reception value file (step 613). If the attributes or sizes do not match, an error message is displayed on the display of the screen output 129 (step 615), and the process ends without generating an expected reception value message. If all the keywords and attributes held in the expected reception value file match, the keyword definition unit 301 and the message definition unit 302 corresponding to the protocol type are referred to, and the expected reception value message in a format conforming to the communication protocol is generated (step 61
4). The expected reception value message shown in FIG. 13 is generated from the expected reception value file shown in FIG. 4 and the template file shown in FIG. In the expected reception value message shown in FIG. 13, the first 0002 is obtained by converting the message type 2 shown in FIG. 4, and thereafter, the operation code 1 is converted to 0001, and the source terminal ID and the destination The terminal ID is converted into a hexadecimal number corresponding to the character codes 12 and 11, and similarly, the additional information length, the server request serial number, and the CS address are respectively converted.
In addition, since the message type is 2 in the list order, # CASE2 of the message type in the message definition section is selected, and the operation code is 1, so that
#CASE of the operation code in the message definition section
1 is selected, and the source terminal ID, the destination terminal ID, the additional information length, the server request serial number, and the CS address following the # CASE1 of the operation code are listed in order.

【0034】受信期待値メッセージが生成されたとき
に、編集出力部128において、実際に受信した受信メ
ッセージと受信期待値メッセージとを照合し(ステップ
616)、一致するかどうかを判断する(ステップ61
7)。一致した場合は受信したメッセージを、図12に
示すように、画面出力129のディスプレイに表示し、
また、ファイル出力部130に格納する(ステップ61
8)。図12に、比較した結果、正常な通信であると判
断されたときの出力例を示す。正常通信の場合は、この
例で示すように受信したメッセージを表示する。
When the expected reception value message is generated, the editing output unit 128 compares the actually received reception message with the expected reception value message (step 616), and determines whether or not they match (step 61).
7). If they match, the received message is displayed on the screen output 129 as shown in FIG.
Also, it is stored in the file output unit 130 (step 61).
8). FIG. 12 shows an output example when it is determined that the communication is normal as a result of the comparison. In the case of normal communication, the received message is displayed as shown in this example.

【0035】また、ステップ617の判断において、一
致せずに相違がある場合は、図13に示すように、受信
メッセージと受信期待値メッセージとの双方のメッセー
ジに相違点を明示して画面出力129のディスプレイに
表示し、また、ファイル出力部130に格納する(ステ
ップ619)。図13に、比較の結果が一致せず、動作
不良と判断されたときの出力例を示す。動作不良の場合
は、この例で示すように、受信メッセージと受信期待値
メッセージとの双方のメッセージを表示し、相違がある
箇所に括弧でしるしを付け、相違点が明示的にわかるよ
うに表示する。
If it is determined in step 617 that there is a difference without a match, as shown in FIG. 13, the difference between the received message and the expected expected value message is clearly indicated on the screen output 129. Is displayed on the display and stored in the file output unit 130 (step 619). FIG. 13 shows an output example when the comparison result does not match and it is determined that the operation is defective. In the case of malfunction, as shown in this example, the message of both the received message and the expected expected value message is displayed, and the places where there is a difference are marked with parentheses, and the difference is clearly displayed. I do.

【0036】本発明の実施の形態における通信ソフトウ
ェアの自動試験シミュレータによれば、通信ソフトウェ
アの動作確認の際に、通信プロトコルの情報を持ったテ
ンプレートファイルを用いて試験データの自動作成、解
析を行うことにより、通信ソフトウェアの複数の異なる
通信プロトコルの動作確認試験を行うことができる。こ
のため、デバッグ用のプロセスを通信プロトコル毎に作
成することなくプロセスシミュレーションを実現でき、
通信ソフトウェアの動作確認試験に伴う工数を大幅に削
減することが可能となる。また、通信メッセージ構造を
変更する場合には、テンプレートファイルを変更するだ
けで良く、メッセージ編集部の変更をする必要が生じな
いため、動作確認試験にかかる工数を大幅に削減できる
にも柔軟に対応することができる。さらに、送受信メッ
セージの形式に誤りがないかのチェックが可能である。
According to the communication software automatic test simulator in the embodiment of the present invention, when confirming the operation of the communication software, the test data is automatically created and analyzed by using the template file having the information of the communication protocol. Accordingly, it is possible to perform an operation confirmation test of a plurality of different communication protocols of the communication software. Therefore, a process simulation can be realized without creating a process for debugging for each communication protocol.
The man-hours required for the operation check test of the communication software can be greatly reduced. Also, when changing the communication message structure, it is only necessary to change the template file, and there is no need to change the message editing unit. can do. Further, it is possible to check whether there is an error in the format of the transmitted / received message.

【0037】[0037]

【発明の効果】本発明によれば、本発明の実施の形態に
おける通信ソフトウェアの自動試験シミュレータによれ
ば、通信ソフトウェアの複数の異なる通信プロトコルの
動作確認試験を行うことができる。また、通信メッセー
ジ構造の変更にも柔軟に対応することができる。
According to the present invention, according to the communication software automatic test simulator of the embodiment of the present invention, it is possible to perform an operation confirmation test of a plurality of different communication protocols of the communication software. Further, it is possible to flexibly cope with a change in the communication message structure.

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

【図1】本発明の実施の形態におけるシステム構成図。FIG. 1 is a system configuration diagram according to an embodiment of the present invention.

【図2】テキスト形式で記述した送信情報ファイル及び
受信期待値ファイルの一例を示す説明図。
FIG. 2 is an explanatory diagram showing an example of a transmission information file and an expected reception value file described in a text format.

【図3】テキスト形式で記述した送信情報ファイルの一
例を示す説明図。
FIG. 3 is an explanatory diagram showing an example of a transmission information file described in a text format.

【図4】テキスト形式で記述した受信期待値ファイルの
一例を示す説明図。
FIG. 4 is an explanatory diagram showing an example of an expected reception value file described in a text format.

【図5】テキスト形式で記述した送信情報ファイルの一
例を示す説明図。
FIG. 5 is an explanatory diagram showing an example of a transmission information file described in a text format.

【図6】送信メッセージ及び受信メッセージを生成する
ときに使用するテンプレートファイルの一例を示す説明
図。
FIG. 6 is an explanatory diagram showing an example of a template file used when generating a transmission message and a reception message.

【図7】送信メッセージ及び受信メッセージを生成する
ときに使用するテンプレートファイルの一例を示す説明
図。
FIG. 7 is an explanatory diagram showing an example of a template file used when generating a transmission message and a reception message.

【図8】送信メッセージ及び受信メッセージを生成する
ときに使用するテンプレートファイルの一例を示す説明
図。
FIG. 8 is an explanatory diagram showing an example of a template file used when generating a transmission message and a reception message.

【図9】メッセージを送るときの処理の流れを示したフ
ローチャート。
FIG. 9 is a flowchart showing the flow of processing when sending a message.

【図10】送信メッセージの一例を示す説明図。FIG. 10 is an explanatory diagram showing an example of a transmission message.

【図11】メッセージを受け取るときの処理の流れを示
したフローチャート。
FIG. 11 is a flowchart showing a processing flow when receiving a message.

【図12】正常な通信が行われたと判断されたときの出
力例を示す説明図。
FIG. 12 is an explanatory diagram showing an output example when it is determined that normal communication has been performed.

【図13】動作不良と判断されたときの出力例を示す説
明図。
FIG. 13 is an explanatory diagram showing an output example when it is determined that the operation is defective.

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

101・・・シミュレータ部 102・・・被テストプログラム 111・・・送信部 112・・・受信部 121・・・送信情報ファイル 122・・・メッセージ編集部 123・・・テンプレートファイル 124・・・送信メッセージ部 125・・・受信メッセージ部 126・・・受信期待値ファイル 127・・・受信期待値メッセージ 128・・・編集出力部 129・・・画面出力 130・・・ファイル出力 140・・・入力部 201・・・送信情報ファイルまたは受信期待値ファイ
ルの書き方の一例 301・・・テンプレートファイル内のキーワード定義
部 302・・・テンプレートファイル内のメッセージ定義
部 401・・・生成された送信メッセージの処理 402・・・エラーメッセージを出力 601・・・エラーメッセージを出力
101: Simulator unit 102: Tested program 111: Transmission unit 112: Receiving unit 121: Transmission information file 122: Message editing unit 123: Template file 124: Transmission Message part 125 ... Received message part 126 ... Received expected value file 127 ... Received expected value message 128 ... Edit output part 129 ... Screen output 130 ... File output 140 ... Input part 201 ... One example of how to write a transmission information file or expected reception value file 301 ... Keyword definition part in template file 302 ... Message definition part in template file 401 ... Processing of generated transmission message 402・ ・ ・ Output error message 601 ・ ・ ・ Error message Output di

───────────────────────────────────────────────────── フロントページの続き (72)発明者 峯尾 正美 神奈川県横浜市戸塚区戸塚町180番地 日 立通信システム株式会社内 ────────────────────────────────────────────────── ─── Continued on the front page (72) Inventor Masami Mineo 180, Totsuka-cho, Totsuka-ku, Yokohama-shi, Kanagawa Prefecture

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】通信ソフトウェアの動作確認試験を行う通
信ソフトウェアの自動試験シミュレータであって、 複数のプロトコルの各々の通信形式を保持する保持部
と、 前記通信ソフトウェアと通信を行うための、前記複数の
プロトコルのうちの一つのプロトコルと、送信すべき送
信情報と、当該送信情報の応答として期待される受信期
待情報とを受け付ける受付部と、 前記受付部で受け付けられた前記一つのプロトコルに対
応する、前記保持部に保持されている通信形式にしたが
って、前記受付部で受け付けられた前記送信情報と前記
受信期待情報とを編集する編集部と、 前記編集部で編集された送信情報を前記通信ソフトウェ
アに対して送信する送信部と、 前記通信ソフトウェアから送出された、前記送信情報の
応答である情報を受信情報として受信する受信部と、 前記編集部で編集された受信期待情報と、前記受信部で
受信された受信情報とが一致するか否かを判断し、当該
判断の結果を出力する出力部とを有することを特徴とす
る通信ソフトウェアの自動試験シミュレータ。
An automatic test simulator for communication software for performing an operation check test of communication software, comprising: a holding unit for holding a communication format of each of a plurality of protocols; and a plurality of communication units for communicating with the communication software. A receiving unit for receiving one of the protocols, transmission information to be transmitted, and expected reception information expected as a response to the transmission information, and a reception unit corresponding to the one protocol received by the reception unit. An editing unit that edits the transmission information and the expected reception information received by the reception unit in accordance with a communication format held in the holding unit; and transmitting the transmission information edited by the editing unit to the communication software. A transmitting unit for transmitting the information transmitted from the communication software as a response to the transmission information. A receiving unit that receives as, and an output unit that determines whether the expected reception information edited by the editing unit matches the received information received by the receiving unit, and outputs a result of the determination. An automatic test simulator for communication software, comprising:
【請求項2】請求項1において、前記出力部は、前記編
集部で編集された送信情報と、前記受信期待情報とのう
ち少なくとも一方をさらに出力することを特徴とする通
信ソフトウェアの自動試験シミュレータ。
2. The automatic test simulator for communication software according to claim 1, wherein the output unit further outputs at least one of the transmission information edited by the editing unit and the expected reception information. .
【請求項3】請求項1において、前記出力部は、前記判
断の結果、前記編集部で編集された受信期待情報と、前
記受信部で受信された受信情報とが一致しない場合に、
前記編集部で編集された受信期待情報と、前記受信部で
受信された受信情報とをさらに出力することを特徴とす
る通信ソフトウェアの自動試験シミュレータ。
3. The method according to claim 1, wherein the output unit determines that, when the determination result indicates that the expected reception information edited by the editing unit does not match the reception information received by the receiving unit,
An automatic test simulator for communication software, further comprising output expectation information edited by the editing unit and reception information received by the reception unit.
【請求項4】請求項3において、前記出力部は、前記編
集部で編集された受信期待情報と、前記受信部で受信さ
れた受信情報とを出力するときに、当該受信期待情報と
当該受信情報との不一致の部分を明示することを特徴と
する通信ソフトウェアの自動試験シミュレータ。
4. The reception unit according to claim 3, wherein the output unit outputs the expected reception information edited by the editing unit and the reception information received by the reception unit. An automatic test simulator for communication software, which specifies a part that does not match information.
【請求項5】通信ソフトウェアの動作確認試験を行うシ
ミュレータにおける通信ソフトウェアの自動試験方法で
あって、 複数のプロトコルの各々の通信形式を保持し、 前記通信ソフトウェアと通信を行うための、前記複数の
プロトコルのうちの一つのプロトコルと、送信すべき送
信情報と、当該送信情報の応答として期待される受信期
待情報とを受け付け、 前記受け付けられた前記一つのプロトコルに対応する、
前記保持されている通信形式にしたがって、前記受け付
けられた前記送信情報と前記受信期待情報とを編集し、 前記編集された送信情報を前記通信ソフトウェアに対し
て送信し、 前記通信ソフトウェアから送出された、前記送信情報の
応答である情報を受信情報として受信し、 前記受信期待情報と、前記受信情報とが一致するか否か
を判断し、当該判断の結果を出力することを特徴とする
通信ソフトウェアの自動試験方法。
5. An automatic test method for communication software in a simulator for performing an operation check test of communication software, the method comprising: holding a communication format of each of a plurality of protocols; and performing communication with the communication software. One of the protocols, transmission information to be transmitted, and reception expectation information expected as a response to the transmission information, and corresponding to the one received protocol,
The received transmission information and the expected reception information are edited according to the held communication format, and the edited transmission information is transmitted to the communication software, and is transmitted from the communication software. Communication software that receives information as a response to the transmission information as reception information, determines whether the reception expectation information matches the reception information, and outputs a result of the determination. Automatic test method.
JP8214548A 1996-08-14 1996-08-14 Automatic testing simulator for communication software and automatic testing method therefor Pending JPH1065762A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8214548A JPH1065762A (en) 1996-08-14 1996-08-14 Automatic testing simulator for communication software and automatic testing method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8214548A JPH1065762A (en) 1996-08-14 1996-08-14 Automatic testing simulator for communication software and automatic testing method therefor

Publications (1)

Publication Number Publication Date
JPH1065762A true JPH1065762A (en) 1998-03-06

Family

ID=16657571

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8214548A Pending JPH1065762A (en) 1996-08-14 1996-08-14 Automatic testing simulator for communication software and automatic testing method therefor

Country Status (1)

Country Link
JP (1) JPH1065762A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005039360A (en) * 2003-07-16 2005-02-10 Ics:Kk Device and method for multiple communication tests equipped with plurality of virtualized input and output communication port couples
JP2009260754A (en) * 2008-04-18 2009-11-05 Nippon Syst Wear Kk Communication test device, network with communication test function, communication test method and communication test program
JP2012080378A (en) * 2010-10-04 2012-04-19 Nec Commun Syst Ltd Protocol test device, protocol test method, and protocol test program
JP6355782B1 (en) * 2017-03-14 2018-07-11 三菱電機株式会社 Simulation device, simulation method, and simulation program
CN111627171A (en) * 2020-04-28 2020-09-04 深圳壹账通智能科技有限公司 Test message conversion method, device, equipment and medium of ATMP system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005039360A (en) * 2003-07-16 2005-02-10 Ics:Kk Device and method for multiple communication tests equipped with plurality of virtualized input and output communication port couples
JP2009260754A (en) * 2008-04-18 2009-11-05 Nippon Syst Wear Kk Communication test device, network with communication test function, communication test method and communication test program
JP2012080378A (en) * 2010-10-04 2012-04-19 Nec Commun Syst Ltd Protocol test device, protocol test method, and protocol test program
JP6355782B1 (en) * 2017-03-14 2018-07-11 三菱電機株式会社 Simulation device, simulation method, and simulation program
JP2018152770A (en) * 2017-03-14 2018-09-27 三菱電機株式会社 Simulation device, simulation method and simulation program
CN111627171A (en) * 2020-04-28 2020-09-04 深圳壹账通智能科技有限公司 Test message conversion method, device, equipment and medium of ATMP system

Similar Documents

Publication Publication Date Title
US6373822B1 (en) Data network protocol conformance test system
CN109768970B (en) Configurable universal protocol generation method
US6405361B1 (en) Automatically generating a program
US20060101331A1 (en) Methods and systems for automated test-case generation
CN111741019A (en) Communication protocol analysis method and system based on field description
CN113612654B (en) Vehicle-mounted gateway function test method based on database
JP2000232516A (en) Method for generating validity check rule, generating module, control module and storage means
CN116049014A (en) AMBA bus verification platform generation method and device
US20070118644A1 (en) Consensus testing of electronic system
US7188162B1 (en) Method and equipment for setting up a protocol/system protocol
JPH1065762A (en) Automatic testing simulator for communication software and automatic testing method therefor
JP2000216854A (en) Method, verification module, server, control module and storage means for verifying configuration data for communication system
CN1115628C (en) Software simulation test method
CN116827566A (en) Equipment data transmission method, device and system
JPH0666605A (en) Interconnection test sequence generating system
JP3715777B2 (en) Structured document editing method, structured document editing apparatus, and recording medium recording a structured document editing program
JP2766210B2 (en) File list extraction method and device
JPH10207727A (en) System for automatically generating test program
KR100425500B1 (en) simulator of the EMS and controlling method therefore
JPH06195216A (en) Automatic generation device for verification program
Mariño et al. The PROFIBUS formal specification: a comparison between two FDTs
EP0907132A1 (en) Page transition system, device to implement the same, and medium having a program and data recorded thereon
US20210211362A1 (en) Gui assisted infrastructure as code
CN118069502A (en) Test system, method and device and storage medium
JP2005038244A (en) Automatic program generation device