WO2007065321A1 - A protocol conformance test device and a test method thereof - Google Patents

A protocol conformance test device and a test method thereof Download PDF

Info

Publication number
WO2007065321A1
WO2007065321A1 PCT/CN2006/000764 CN2006000764W WO2007065321A1 WO 2007065321 A1 WO2007065321 A1 WO 2007065321A1 CN 2006000764 W CN2006000764 W CN 2006000764W WO 2007065321 A1 WO2007065321 A1 WO 2007065321A1
Authority
WO
WIPO (PCT)
Prior art keywords
module
message
test
test case
protocol
Prior art date
Application number
PCT/CN2006/000764
Other languages
French (fr)
Chinese (zh)
Inventor
Song Guo
Guanghua Yang
Weidong Cheng
Junyi Liu
Feng Zhang
Original Assignee
China Mobile Communications Corporation
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 China Mobile Communications Corporation filed Critical China Mobile Communications Corporation
Publication of WO2007065321A1 publication Critical patent/WO2007065321A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/24Testing correct operation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 

Definitions

  • the testing method of the related device is especially
  • the platform is consistent with the device and the method of making the device consistent. Background wood
  • the existing method is a test device for each test, which is accompanied by a large number of engineering methods to routinely prepare a large number of test applications or comparisons (ea.). It usually refers to a specific software or platform test. Describe Hugh test plan, method, wood and strategy.
  • the communication method in the new moon today has low efficiency, cumbersome operation, and scalability. Especially for some recent communications, it has not been tested because there is no suitable test device.
  • the first purpose of this book is to provide consistent device communication and to measure the consistency of each platform to reduce errors in each platform.
  • the second purpose of this book is to provide a consistent method of communication and each involved in the measurement of the consistency and the platform to reduce errors.
  • the first purpose of this book is to provide a coherent device, which includes initial configuration for testing and parameter configuration data storage. Seven configuration operations and parameters that violate the stored configuration
  • the message VII executes the connection to provide the received operation instruction and receives the anti-message message storage message to store the anti-message message.
  • the message message storage and the execution control are connected to the counter message line parsing, and the counter message parsing of the counter message parsing in the control execution test is compared, then The results will be compared.
  • the second objective above provides a consistent method, which includes the following steps
  • Steps storing the operating instructions
  • Step A test obtained from the test used for self-storage is used for the counter message executed under the form
  • Controlling, testing, and testing have good characteristics, which are common to different platforms.
  • Figure 1 shows the schematic diagram of the force consistency measuring device.
  • This device is composed of the following, which has the configuration 1, the content editing at the root and usually a large number, which can be connected to the configuration storage configuration with parameters (such as P address, connection, etc.). Its function is to connect each For testing
  • the function is to connect the operation instructions in the storage to the result obtained under the required shape, that is, the anti-message message
  • Each system sends out the anti-message to the anti-message, connects the anti-message message message storage message to the anti- & test test of the stored message, and connects the message storage to the control, works with the same message storage, and controls the message storage to extract the counter message to Parse, and then compare the parsed message content control test with the counter information executed to output the comparison result.
  • 2 shows a schematic representation of the force-generating device. Some of the functions of the book are subdivided, and the control and control device includes the wiper editor 1 And usually a large number of configurations 1 are stored in the parameters (such as P address, connection, etc. configuration,
  • configuration 11 correspond to the operating instructions stored in and the parameters in the same configuration 11
  • the anti-message message is stored.
  • the message storage message 1 is contrary to the stored message.
  • This method includes the following steps Steps, the same parameters as required in the configuration test configuration, the parameters include P address and so on
  • Step 1 Store the operation instructions and the same parameters for testing
  • Step 1 Use the test, then save the test in the counter message line under the shape
  • Step 1 The operation instruction obtained by the message will be merged into the unified
  • Step 1 Messages received and reversed are saved in the message store
  • Step 1 The message analyzes the counter-message stored in the message, and compares the counter-message of the counter-message in the test.
  • the unified message in step 1 in the above solution () and each platform can also be each management (M) each platform.
  • this method is not limited to platform testing. It is used for other solutions provided by the platform of.
  • the reverse information can be temporarily stored by the execution or by the control.

Abstract

A protocol conformance test device is provided, wherein the initial data configuration module is connected with the data memory module; the test examples implementing module is connected with the data memory module, the message input/output module and the protocol emulation module; the message memory module is connected with the message input/output module to obtain the feedback message; the state implementation control module is connected with each module and performs coordination; the message processing module is connected with the message memory module, compares the standard feedback message with the parsed feedback message and performs output. A protocol conformance test method based on the above test device is provided in the present invention, which includes steps: editing the test examples and configuring the network parameters; implementing the test examples and obtaining the standard feedback message; receiving the feedback message from the tested service system; comparing the standard feedback message with the parsed feedback message and implementing output. The present invention achieves the test automatization, each module has excellent expansibility, and the present invention is applicable for different platforms.

Description

协议一致性测试装置及测试方法 技术领域 Protocol conformance testing device and testing method Technical field
本发明涉及一种协议一致性测试装置及测试方法, 尤其是一种针对移 动通信网络中的业务平台进行通信协议一致性测试的自动化装置以及采 用该自动化装置进行协议一致性测试的方法。 背景技术 The present invention relates to a protocol consistency testing device and a testing method, in particular to an automated device for performing communication protocol consistency testing on a business platform in a mobile communication network and a method for using the automated device to perform protocol consistency testing. Background technique
随着通信技术的普及与发展, 各种新的通信业务不断产生, 每一种通 信业务的出现, 必然有相关的业务平台和底层的通信协议进行支持, 但由 于整个通信系统是个复杂实时的大系统, 如果不进行测试, 极有可能在应 用中出现一些无法预料的错误, 如何尽可能的降低错误是个必须解决的问 题。 在相关的测试中, 协议一致性测试是基础性的测试, 能够为接下来的 协议兼容性测试和业务平台性能测试做好铺垫, 以便更快更容易地发现问 题并处理。 所谓协议一致性测试是根据协议的要求, 制定相关测试用例对 被测系统的接口协议进行测试, 来检验被测系统的接口协议是否满足规范 的要求。 经过这样的测试以后, 如果发现有不符合一致性的问题, 可以进 行调整, 然后再次进行测试以达到最后的精度要求。 With the popularization and development of communication technology, various new communication services are constantly emerging. The emergence of each communication service must be supported by related business platforms and underlying communication protocols. However, since the entire communication system is a complex and real-time system, If the system is not tested, it is very likely that some unpredictable errors will occur in the application. How to reduce errors as much as possible is a problem that must be solved. Among related tests, protocol conformance testing is a basic test, which can pave the way for subsequent protocol compatibility testing and business platform performance testing, so that problems can be discovered and dealt with faster and easier. The so-called protocol conformance testing is to formulate relevant test cases to test the interface protocol of the system under test based on the requirements of the protocol to verify whether the interface protocol of the system under test meets the requirements of the specification. After such testing, if any inconsistency issues are found, adjustments can be made and then tested again to achieve the final accuracy requirements.
现有的一致性测试方法是针对于具体的业务协议, 开发具体的测试装 置, 并附带有大量的人工手段, 例如人工编制大量的测试用例, 利用人的 观察力进行判断或者比较等, 其中测试用例 (Tes t Case ) 通常是指对一 项特定的软件产品或网络平台进行测试任务的描述,体现测试方案、方法、 技术和策略。 对于如今日新月异的移动通信网络技术来讲, 这种方法具有 效率低、 准确性差、 操作繁瑣及扩展性差等缺点, 尤其是一些新近开展的 通信业务, 由于没有合适的测试装置, 给测试带来了很大的困难。 发明内容 The existing conformance testing method is to develop specific test devices for specific business protocols, and is accompanied by a large number of manual means, such as manually preparing a large number of test cases, using human observation to make judgments or comparisons, among which testing Test Case usually refers to the description of the testing task for a specific software product or network platform, embodying the testing plan, method, technology and strategy. For today's rapidly changing mobile communication network technology, this method has shortcomings such as low efficiency, poor accuracy, cumbersome operations, and poor scalability. Especially for some newly developed communication services, the lack of suitable test equipment has brought difficulties to the test. great difficulty. Contents of the invention
本发明的第一目的提供一种协议一致性测试装置,能够对移动通信网络 中的业务所涉及的协议进行协议一致性的测试, 以保证业务平台在协议层 的出错几率降低。 The first object of the present invention is to provide a protocol consistency testing device that can test the protocol consistency of protocols involved in services in a mobile communication network to ensure that the error probability of the service platform at the protocol layer is reduced.
本发明的第二目的提供一种协议一致性测试方法,能够对移动通信网络 中的业务所涉及的协议进行协议一致性的测试, 以保证业务平台在协议层 的出错几率降低。 The second object of the present invention is to provide a protocol consistency testing method that can test the protocol consistency of the protocols involved in the services in the mobile communication network to ensure that the error probability of the service platform at the protocol layer is reduced.
为实现上述第一目的,本发明提供了一种协议一致性测试装置,其包括: 一初始数据配置模块, 用于编辑测试用例以及对网络参数进行配置; 一数据存储模块, 与所述初始数据配置模块相连, 用于存储对应于测 试用例的操作指令数据和实验数据以及网络参数; In order to achieve the above first purpose, the present invention provides a protocol consistency testing device, which includes: an initial data configuration module, used for editing test cases and configuring network parameters; a data storage module, and the initial data The configuration module is connected and used to store operation instruction data, experimental data and network parameters corresponding to test cases;
一协议仿真模块, 用于根据所需测试的协议进行协议仿真; A protocol simulation module, used to perform protocol simulation according to the protocol required to be tested;
一测试用例执行模块, 与所述数据存储模块以及协议仿真模块相连, 用于提取所述操作指令数据和实验数据, 并根据所述操作指令数据和实验 数据调用所迷协议仿真模块执行所述测试用例, 获得所述协议仿真模块输 出的所述测试用例在协议仿真状态下执行的标准反馈消息; A test case execution module, connected to the data storage module and the protocol simulation module, is used to extract the operation instruction data and experimental data, and call the protocol simulation module to execute the test according to the operation instruction data and experimental data. Use case, obtain the standard feedback message that the test case output by the protocol simulation module is executed in the protocol simulation state;
一消息输入输出模块, 与所述测试用例执行模块相连, 用于提供与被 测业务系统的接口, 并根据所述测试用例执行模块获得的所述操作指令数 据发送所述实验数据和接收反馈消息; 一消息存储模块, 与所述消息输入 输出模块相连, 用于存储所述反馈消息; A message input and output module, connected to the test case execution module, used to provide an interface with the business system under test, and to send the experimental data and receive feedback messages according to the operation instruction data obtained by the test case execution module ; A message storage module, connected to the message input and output module, used to store the feedback message;
一状态执行控制模块, 与所述测试用例执行模块和消息存储模块相 连, 用于控制模块之间的协同工作; A state execution control module, connected to the test case execution module and message storage module, used to control collaborative work between modules;
一消息处理模块, 与所述消息存储模块和所述状态执行控制模块相 连, 用于对所述反馈消息进行解析, 并将所述状态控制执行模块从所述测 试用例执行模块中获取的标准反馈消息与解析后的反馈消息进行比较, 然 后将比较结果输出。 A message processing module, connected to the message storage module and the state execution control module, for parsing the feedback message, and providing the standard feedback obtained by the state control execution module from the test case execution module. The message is compared with the parsed feedback message, then Then output the comparison result.
为实现上述第二目的, 本发明提供了一种协议一致性测试的方法, 其 中包括以下步骤: In order to achieve the above second purpose, the present invention provides a protocol consistency testing method, which includes the following steps:
步骤 1、 初始数据配置模块编辑测试用例, 配置网络参数; Step 1. The initial data configuration module edits test cases and configures network parameters;
步骤 2、 数据存储模块将对应于测试用例的操作指令数据和实验数据 以及网络参数进行存储; Step 2. The data storage module stores the operation instruction data, experimental data and network parameters corresponding to the test case;
步骤 3、 测试用例执行模块调用协议仿真模块执行自所述数据存储模 块调用的测试用例, 并获得所述协议仿真模块输出的所述测试用例在协议 仿真状态下执行的标准反馈消息; Step 3. The test case execution module calls the protocol simulation module to execute the test case called from the data storage module, and obtains the standard feedback message output by the protocol simulation module that the test case is executed in the protocol simulation state;
步骤 4、 消息输入输出模块根据所述测试用例执行模块获得的所述操 作指令数据将所述实验数据输出到被测业务系统; Step 4. The message input and output module outputs the experimental data to the business system under test according to the operation instruction data obtained by the test case execution module;
步骤 5、 所述消息输入输出模块接收被测业务系统反馈的消息 , 并保 存至消息存储模块; Step 5. The message input and output module receives the message fed back by the business system under test and saves it to the message storage module;
步骤 6、 消息处理模块将所述消息存储模块的反馈消息解析, 并将所 述状态控制执行模块从所述测试用例执行模块中获取的标准反馈消息与 解析后的反馈消息进行比较; Step 6. The message processing module parses the feedback message of the message storage module, and compares the standard feedback message obtained by the state control execution module from the test case execution module with the parsed feedback message;
步骤 7、 所述消息处理模块统计比较结果并进行输出。 Step 7. The message processing module collects statistics on the comparison results and outputs them.
根据上述技术方案可知, 本发明通过状态执行控制模块对整个测试过程 进行控制, 实现了测试的自动化, 并且各模块有很好的扩展特性, 针对于不 同平台都适用。 According to the above technical solution, the present invention controls the entire test process through the state execution control module, realizing the automation of the test, and each module has good expansion characteristics and is applicable to different platforms.
下面通过附图和实施例, 对本发明的技术方案做进一步的详细描述。 附图说明 The technical solution of the present invention will be further described in detail below through the accompanying drawings and examples. Description of the drawings
图 1为本发明协议一致性测量装置的结构示意图。 Figure 1 is a schematic structural diagram of the protocol consistency measurement device of the present invention.
图 2为本发明协议一致性测试装置的一个具体实施例的结构示意图。 图 3为本发明协议一致性测试方法的一个具体实施例的流程示意图。 具体实施方式 Figure 2 is a schematic structural diagram of a specific embodiment of the protocol consistency testing device of the present invention. Figure 3 is a schematic flow chart of a specific embodiment of the protocol consistency testing method of the present invention. Detailed ways
如图 1所示, 为本发明协议一致性测量装置的结构示意图。本发明中, 协议一致性测试装置是由以下模块组成的, 其中包括有: 初始数据配置模 块 1 , 用于根据欲测试的内容编辑和組织通常数量很大的协议测试用例, 同时可以对网络参数(例如: IP地址、 接入端口等)进行配置; 数据存储 模块 2, 与初始数据配置模块 1相连, 其作用是将每一个测试用例所对应 的操作指令数据和实验数据进行保存, 并保存配置用的网络参数; 协议仿 真模块 4, 可以根据所需测试的协议的具体协议内容进行协议仿真, 能够 仿真不同的协议内容; 测试用例执行模块 3 , 与数据存储模块 2以及协议 仿真模块 4相连, 其作用是根据从数据存储模块 2中获取的操作指令数据 将实验数据输入到协议仿真模块 4 , 并在所需测试的协议的仿真状态下执 行, 并从协议仿真模块 4获得执行后的结果, 即标准反馈消息; 消息输入 输出模块 5, 与测试用例执行模块 3相连, 提供了与被测业务系统 6的接 口, 其作用是根据操作指令数据将实验数据输出到被测业务系统 6 , 当被 测业务系统 6对实验数据执行后,会向消息输入输出模块 5发出反馈消息, 输出入输出模块 5会将反馈消息发送给消息存储模块 7; 消息存储模块 7 , 与消息输入输出模块 5相连, 用于存储消息输入输出模块 5发送的反馈消 息; 状态执行控制模块 9 , 与测试用例执行模块 3和消息存储模块 7相连, 用于控制模块间的协同工作; 消息处理模块 8 , 与消息存储模块 7和状态 执行控制模块 9相连, 从消息存储模块 7中提取反馈消息, 并将消息内容 解析, 然后将解析后的消息内容与状态执行控制模块 9从测试用例执行模 块 3中获得的标准反馈信息进行比较, 并将比较结果进行输出。 As shown in Figure 1, it is a schematic structural diagram of the protocol consistency measurement device of the present invention. In the present invention, the protocol consistency testing device is composed of the following modules, including: Initial data configuration module 1, used to edit and organize a usually large number of protocol test cases according to the content to be tested, and at the same time, it can configure network parameters (for example: IP address, access port, etc.) for configuration; Data storage module 2, connected to the initial data configuration module 1, its function is to save the operation instruction data and experimental data corresponding to each test case, and save the configuration The network parameters used; the protocol simulation module 4, can perform protocol simulation according to the specific protocol content of the protocol to be tested, and can simulate different protocol contents; the test case execution module 3, is connected to the data storage module 2 and the protocol simulation module 4, Its function is to input the experimental data into the protocol simulation module 4 according to the operation instruction data obtained from the data storage module 2, and execute it in the simulation state of the protocol to be tested, and obtain the execution results from the protocol simulation module 4, That is, the standard feedback message; the message input and output module 5, connected to the test case execution module 3, provides an interface with the business system under test 6, and its function is to output experimental data to the business system under test 6 according to the operation instruction data. When the business system under test is After the test business system 6 executes the experimental data, it will send a feedback message to the message input and output module 5. The input and output module 5 will send the feedback message to the message storage module 7; the message storage module 7 is connected to the message input and output module 5. Used to store feedback messages sent by the message input and output module 5; State execution control module 9, connected to the test case execution module 3 and message storage module 7, used to control collaborative work between modules; Message processing module 8, connected with the message storage module 7 is connected to the state execution control module 9, extracts the feedback message from the message storage module 7, parses the message content, and then combines the parsed message content with the standard feedback information obtained by the state execution control module 9 from the test case execution module 3 Compare and output the comparison results.
如图 2所示, 为本发明协议一致性测试装置的一个实施例的结构示意 图。 本实施例对本发明中的一些功能模块进行了细分, 并通过状态执行控 制模块 9进行协调控制, 该装置其中包括: 测试用例编辑模块 10 , 用于编 辑和组织通常数量很大的协议测试用例; 网络数据配置模块 11 , 用于对网 络参数(例如: IP地址、 接入端口等)进行配置; 数据存储模块 2 , 与测 试用例编辑模块 10和网络数据配置模块 11相连, 用于存储对应于测试用 例的操作指令数据和实验数据和网络数据配置模块 11中的网络参数; 协 议仿真模块 4 , 可以根据所需测试的协议的具体协议内容进行协议仿真, 能够仿真不同的协议内容; 测试用例执行模块 3 , 与数据存储模块 2以及 协议仿真模块 4相连, 根据从数据存储模块 2中获取的操作指令数据将实 验数据输入到协议仿真模块 4, 并在所需测试的协议的仿真状态下执行, 并从协议仿真模块 4获得执行后的结果, 即标准反馈消息; 消息输出模块 As shown in Figure 2, it is a schematic structural diagram of an embodiment of the protocol conformance testing device of the present invention. This embodiment subdivides some functional modules in the present invention and performs coordinated control through the state execution control module 9. The device includes: a test case editing module 10, used for editing Edit and organize a usually large number of protocol test cases; Network data configuration module 11, used to configure network parameters (such as IP address, access port, etc.); Data storage module 2, together with test case editing module 10 and network The data configuration module 11 is connected and used to store the operation instruction data and experimental data corresponding to the test case and the network parameters in the network data configuration module 11; the protocol simulation module 4 can perform protocol simulation according to the specific protocol content of the protocol to be tested. , capable of simulating different protocol contents; the test case execution module 3 is connected to the data storage module 2 and the protocol simulation module 4, and inputs the experimental data to the protocol simulation module 4 according to the operation instruction data obtained from the data storage module 2, and The required test protocol is executed in the simulation state, and the execution result is obtained from the protocol simulation module 4, that is, the standard feedback message; message output module
12 , 与测试用例执行模块 3相连, 提供了输出到被测业务系统 6的接口, 负责根据操作指令数据将实验数据输出到被测业务系统 6; 消息输入模块12, connected to the test case execution module 3, provides an interface for output to the business system under test 6, and is responsible for outputting experimental data to the business system under test 6 according to the operation instruction data; message input module
13 , 用于接收被测业务系统 6发回的反馈消息, 并将反馈消息发送给消息 存储模块 7 ; 消息存储模块 7, 与消息输入模块 13相连, 用于存储消息输 入模块 13发送的反馈消息; 消息解析模块 14 , 与消息存储模块 7相连, 从消息存储模块 7中提取反馈消息,并将消息内容解析;消息比较模块 15, 将解析后的消息内容与状态执行控制模块 9从测试用例执行模块 3中获得 的标准反馈信息进行比较; 结果输出模块 16 , 将消息比较模块 15比较的 结果进行统计, 然后进行输出; 状态执行控制模块 9 , 与测试用例执行模 块 3、 消息存储模块 7、 消息解析模块 14以及消息比较模块 15相连, 用 于控制模块间的协同工作。 13, used to receive the feedback message sent back by the business system 6 under test, and send the feedback message to the message storage module 7; the message storage module 7, connected to the message input module 13, is used to store the feedback message sent by the message input module 13 ; The message parsing module 14 is connected to the message storage module 7, extracts the feedback message from the message storage module 7, and parses the message content; the message comparison module 15, executes the parsed message content and status execution control module 9 from the test case Compare the standard feedback information obtained in module 3; the result output module 16, statistics the results of the comparison of the message comparison module 15, and then output; the status execution control module 9, and the test case execution module 3, message storage module 7, message The parsing module 14 and the message comparison module 15 are connected and used to control the collaborative work between the modules.
在以上的实施例中 ,所进行的协议测试可以典型应用于即时消息( IM ) 业务平台的协议测试, 也可以用在设备管理 (DM ) 业务平台的协议测试, 但本发明装置并不仅仅局限在这两种协议的测试, 对于其他的平台协议本 发明提供的方案都是适用的。 In the above embodiments, the protocol test performed can be typically applied to the protocol test of the instant messaging (IM) service platform, and can also be used in the protocol test of the device management (DM) service platform. However, the device of the present invention is not limited to In the testing of these two protocols, the solution provided by the present invention is applicable to other platform protocols.
如图 3所示,为本发明协议一致性测试方法的一个实施例的流程示意图。 本实施例测试方法包括以下步骤: 步骤 101、针对于测试所需的协议在初始数据配置模块 1编辑测试用例, 配置网络参数, 其中网络参数包括 IP地址以及端口号等; As shown in Figure 3, it is a schematic flow chart of one embodiment of the protocol consistency testing method of the present invention. The test method in this embodiment includes the following steps: Step 101. Edit the test case in the initial data configuration module 1 for the protocol required for the test, and configure the network parameters, where the network parameters include IP address, port number, etc.;
步驟 102、 数据存储模块 2将对应于该测试用例的操作指令数据和实 验数据以及网络参数进行存储; Step 102. The data storage module 2 stores the operation instruction data, experimental data and network parameters corresponding to the test case;
步骤 103、 测试用例执行模块 3将测试用例输入到协议仿真模块, 调 用协议仿真模块 4对测试用例进行执行, 然后将协议仿真模块 4输出的所 述测试用例在协议仿真状态下执行的标准反馈消息进行保存; Step 103. The test case execution module 3 inputs the test case into the protocol simulation module, calls the protocol simulation module 4 to execute the test case, and then sends the standard feedback message output by the protocol simulation module 4 that the test case is executed in the protocol simulation state. save;
步骤 104、 消息输入输出模块 5根据所述测试用例执行模块获得的所 述操作指令数据将所述实验数据输出到被测业务系统 6; Step 104. The message input and output module 5 outputs the experimental data to the business system under test 6 according to the operation instruction data obtained by the test case execution module;
步骤 105、 消息输入输出模块 5接收被测业务系统反馈的消息, 并保 存至消息存储模块 7 ; Step 105. The message input and output module 5 receives the message fed back by the business system under test and saves it to the message storage module 7;
步骤 106、 消息处理模块 8将所述消息存储模块 7的反馈消息解析, 并将状态控制执行模块 9从所述测试用例执行模块 3中获取的标准反馈消 息与解析后的反馈消息进行比较; Step 106. The message processing module 8 parses the feedback message of the message storage module 7, and compares the standard feedback message obtained by the state control execution module 9 from the test case execution module 3 with the parsed feedback message;
步骤 107、 消息处理模块 8统计比较结果并进行输出。 Step 107. The message processing module 8 counts the comparison results and outputs them.
上述方案中, 步骤 104中的被测业务系统可具体为即时消息 ( IM ) 业 务平台, 也可以是设备管理(DM )业务平台, 但本发明方法并不局限在这 两种业务平台的测试, 对于其他的业务平台本发明提供的方案都是适用 的。 而在步骤 103中标准反馈信息可以由测试用例执行模块 3进行暂存, 也可由状态控制模块 9获取后进行暂存。 In the above solution, the service system under test in step 104 can be specifically an instant messaging (IM) service platform or a device management (DM) service platform. However, the method of the present invention is not limited to testing these two service platforms. The solution provided by the present invention is applicable to other business platforms. In step 103, the standard feedback information can be temporarily stored by the test case execution module 3, or can be temporarily stored after being obtained by the status control module 9.
最后应当说明的是:以上实施例仅用以说明本发明的技术方案而非对 其限制; 尽管参照较佳实施例对本发明进行了详细的说明, 所属领域的普 部分技术特征进行等同替换; 而不脱离本发明技术方案的精神 , 其均应涵 盖在本发明请求保护的技术方案范围当中。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention and not to limit it; although the present invention has been described in detail with reference to the preferred embodiments, common technical features in the field can be replaced by equivalents; and Without departing from the spirit of the technical solutions of the present invention, they shall be covered by the scope of the technical solutions claimed by the present invention.

Claims

权 利 要 求 Rights request
1、 一种协议一致性测试装置, 其特征在于包括: 1. A protocol conformance testing device, characterized by including:
一初始数据配置模块, 用于编辑测试用例以及对网络参数进行配置; 一数据存储模块, 与所述初始数据配置模块相连, 用于存储对应于测 试用例的操作指令数据和实验数据以及网络参数; An initial data configuration module, used to edit test cases and configure network parameters; a data storage module, connected to the initial data configuration module, used to store operation instruction data and experimental data and network parameters corresponding to the test cases;
一协议仿真模块, 用于根据所需测试的协议进行协议仿真; A protocol simulation module, used to perform protocol simulation according to the protocol required to be tested;
一测试用例执行模块, 与所述数据存储模块以及协议仿真模块相连, 用于提取所述操作指令数据和实验数据, 并根据所述操作指令数据和实验 数据调用所述协议仿真模块执行所述测试用例, 获得所述协议仿真模块输 出的所述测试用例在协议仿真状态下执行的标准反馈消息; A test case execution module, connected to the data storage module and the protocol simulation module, is used to extract the operation instruction data and experimental data, and call the protocol simulation module to execute the test according to the operation instruction data and experimental data. Use case, obtain the standard feedback message that the test case output by the protocol simulation module is executed in the protocol simulation state;
一消息输入输出模块, 与所述测试用例执行模块相连, 用于提供与被 测业务系统的接口, 并根据所述测试用例执行模块获得的所述操作指令数 据发送所述实验数据和接收反馈消息; A message input and output module, connected to the test case execution module, used to provide an interface with the business system under test, and to send the experimental data and receive feedback messages according to the operation instruction data obtained by the test case execution module ;
一消息存储模块, 与所述消息输入输出模块相连, 用于存储所述反馈 消息; A message storage module, connected to the message input and output module, used to store the feedback message;
一状态执行控制模块, 与所述测试用例执行模块和消息存储模块相 连, 用于控制模块之间的协同工作; A state execution control module, connected to the test case execution module and message storage module, used to control collaborative work between modules;
一消息处理模块, 与所述消息存储模块和所述状态执行控制模块相 连, 用于对所述反馈消息进行解析, 并将所述状态控制执行模块从所述测 试用例执行模块中获取的标准反馈消息与解析后的反馈消息进行比较, 然 后将比较结果输出。 A message processing module, connected to the message storage module and the state execution control module, for parsing the feedback message, and providing the standard feedback obtained by the state control execution module from the test case execution module. The message is compared with the parsed feedback message, and then the comparison result is output.
2、 根据权利要求 1所述的测试装置, 其特征在于所述初始数据配置 模块包括: 2. The test device according to claim 1, characterized in that the initial data configuration module includes:
一测试用例编辑模块, 与所述数据存储模块相连, 用于编辑和组织测 试用例; 一网络数据配置模块, 与所述数据存储模块相连, 用于配置网络相关 参数。 A test case editing module, connected to the data storage module, used to edit and organize test cases; A network data configuration module, connected to the data storage module, is used to configure network-related parameters.
3、 根据权利要求 1所述的测试装置, 其特征在于所述消息输入输出 模块包括: 3. The test device according to claim 1, characterized in that the message input and output module includes:
一消息输出模块, 与所述测试用例执行模块相连, 用于提供与所述被 测业务系统交互的输出接口, 将所述测试用例执行模块的相关消息进行输 出; A message output module, connected to the test case execution module, used to provide an output interface for interaction with the business system under test, and to output relevant messages of the test case execution module;
一消息输入模块, 与所述消息存储模块相连, 用于提供与所述被测业 务系统交互的输入接口, 对所述被测业务系统反馈的消息进行接收, 并发 送到所述消息存储模块。 A message input module, connected to the message storage module, is used to provide an input interface for interaction with the business system under test, receive messages fed back by the business system under test, and send them to the message storage module.
4、 根据权利要求 1所述的测试装置, 其特征在于所述消息处理模块 包括: 4. The test device according to claim 1, characterized in that the message processing module includes:
一消息解析模块, 与所述消息存储模块以及所述状态执行控制模块相 连, 用于提取所述反馈消息并进行解析; A message parsing module, connected to the message storage module and the status execution control module, for extracting the feedback message and parsing it;
一消息比较模块, 与所述消息解析模块以及所述状态执行控制模块相 连, 用于将所述状态控制执行模块从所述测试用例执行模块中获取的标准 反馈消息与解析后的反馈消息进行比较; A message comparison module, connected to the message parsing module and the state execution control module, for comparing the standard feedback message obtained by the state control execution module from the test case execution module with the parsed feedback message ;
一结果输出模块, 与所述消息比较模块相连, 用于将所述消息比较模 块比较后的结果进行统计并输出。 A result output module, connected to the message comparison module, is used to collect statistics and output the results after comparison by the message comparison module.
5、 一种协议一致性测试的方法, 其中包括以下步骤: 5. A method for protocol conformance testing, which includes the following steps:
步驟 1、 初始数据配置模块编辑测试用例, 配置网络参数; Step 1. The initial data configuration module edits test cases and configures network parameters;
步骤 2、 数据存储模块将对应于测试用例的操作指令数据和实验数据 以及网络参数进行存储; Step 2. The data storage module stores the operation instruction data, experimental data and network parameters corresponding to the test case;
步骤 3、 测试用例执行模块调用协议仿真模块执行自所述数据存储模 块调用的测试用例, 并获得所述协议仿真模块输出的所述测试用例在协议 仿真状态下执行的标准反馈消息; 步驟 4、 消息输入输出模块根据所述测试用例执行模块获得的所述操 作指令数据将所述实验数据输出到被测业务系统; Step 3. The test case execution module calls the protocol simulation module to execute the test case called from the data storage module, and obtains the standard feedback message output by the protocol simulation module that the test case is executed in the protocol simulation state; Step 4. The message input and output module outputs the experimental data to the business system under test according to the operation instruction data obtained by the test case execution module;
步驟 5、 所述消息输入输出模块接收被测业务系统反馈的消息, 并保 存至消息存储模块; Step 5. The message input and output module receives the message fed back by the business system under test and saves it to the message storage module;
步骤 6、 消息处理模块将所述消息存储模块的反馈消息解析, 并将所 述状态控制执行模块从所述测试用例执行模块中获取的标准反馈消息与 解析后的反馈消息进行比较; Step 6. The message processing module parses the feedback message of the message storage module, and compares the standard feedback message obtained by the state control execution module from the test case execution module with the parsed feedback message;
步骤 7、 所述消息处理模块统计比较结果并进行输出。 Step 7. The message processing module collects statistics on the comparison results and outputs them.
6、 根据权利要求 5所述的测试方法, 其中所述步驟 1中配置网络参 数具体为对 IP地址和 /或接入端口参数进行配置。 6. The test method according to claim 5, wherein configuring network parameters in step 1 specifically configures IP address and/or access port parameters.
7、 根据权利要求 5所述的测试方法, 其中所述步骤 4中将所述实验 数据输出到被测业务系统具体为将所述实验数据输出到即时消息业务平 台或设备管理业务平台。 7. The testing method according to claim 5, wherein outputting the experimental data to the business system under test in step 4 specifically includes outputting the experimental data to an instant messaging business platform or a device management business platform.
PCT/CN2006/000764 2005-12-08 2006-04-21 A protocol conformance test device and a test method thereof WO2007065321A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNB2005101302936A CN100385864C (en) 2005-12-08 2005-12-08 Protocol conformance measuring device and method
CN200510130293.6 2005-12-08

Publications (1)

Publication Number Publication Date
WO2007065321A1 true WO2007065321A1 (en) 2007-06-14

Family

ID=36766446

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/000764 WO2007065321A1 (en) 2005-12-08 2006-04-21 A protocol conformance test device and a test method thereof

Country Status (2)

Country Link
CN (1) CN100385864C (en)
WO (1) WO2007065321A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104734912A (en) * 2015-02-13 2015-06-24 大唐联仪科技有限公司 Method and device for testing protocol conformance
CN115550231A (en) * 2022-03-31 2022-12-30 许昌开普检测研究院股份有限公司 Multi-protocol testing platform based on configuration file and testing method thereof

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100479393C (en) * 2006-06-13 2009-04-15 华为技术有限公司 Method for realizing executor test
CN100442729C (en) * 2006-12-06 2008-12-10 中国科学院计算技术研究所 Configuration method of tested system in conformance test of network protocol
CN101001182B (en) * 2007-01-12 2010-09-29 中国电信股份有限公司 Adaptive test method and system of network management interface test
CN101262472B (en) * 2007-03-07 2011-09-28 力博特公司 A multi-function protocol parser and its realization method
CN101150454B (en) * 2007-07-31 2010-12-29 中兴通讯股份有限公司 Testing method for automatic switching optical network
CN101174899B (en) * 2007-11-26 2010-12-08 中兴通讯股份有限公司 Automatic testing method for service protection and recovery in ASON network
CN101237454B (en) * 2008-01-30 2011-09-14 重庆重邮东电通信技术有限公司 Design method and system in protocol message editing system
CN102026257B (en) * 2009-09-18 2013-08-14 鼎桥通信技术有限公司 Automatic test and analysis method for communication protocols
CN101827379A (en) * 2010-03-25 2010-09-08 工业和信息化部电信传输研究所 General-purpose interoperability test system and test method thereof
CN103002490B (en) * 2011-09-08 2015-07-29 中国移动通信集团公司 A kind of business simulating test macro and its implementation
CN103986615A (en) * 2013-02-07 2014-08-13 国家电网公司 Testing method and device
CN103220186A (en) * 2013-03-21 2013-07-24 大唐联仪科技有限公司 Communication equipment testing method and system
CN103634161B (en) * 2013-07-31 2017-05-03 中车青岛四方机车车辆股份有限公司 Train communication protocol consistency detection device and train communication protocol consistency detection method
CN103559330B (en) * 2013-10-10 2017-04-12 上海华为技术有限公司 Method and system for detecting data consistency
CN104601403A (en) * 2015-01-07 2015-05-06 上海瀚之友信息技术服务有限公司 Automatic test system
CN104657272A (en) * 2015-03-04 2015-05-27 上海华东电信研究院 Method and system for judging test items in mobile terminal
CN106100935A (en) * 2016-08-06 2016-11-09 顺德职业技术学院 Charging equipment of electric automobile communication protocol consistency test device and method
CN107027140A (en) * 2017-03-27 2017-08-08 武汉虹信通信技术有限责任公司 Protocal layers customer instance consistency maintaining method in a kind of LTE
CN107065838B (en) * 2017-06-05 2018-04-20 广东顺德西安交通大学研究院 Industrial control system attack detection method with model response analysis is perceived based on instruction
CN108009088A (en) * 2017-11-30 2018-05-08 惠州市德赛西威汽车电子股份有限公司 A kind of automatization test system of underlying protocol
CN109831348A (en) * 2018-12-17 2019-05-31 北京航天晨信科技有限责任公司 Automatic jig test method, equipment and system
CN112328394B (en) * 2020-11-03 2024-03-01 北京信而泰科技股份有限公司 Message sequence processing method, device and readable medium in protocol simulation

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6373822B1 (en) * 1999-01-08 2002-04-16 Cisco Technology, Inc. Data network protocol conformance test system
CN1400751A (en) * 2001-08-08 2003-03-05 中国科学院计算技术研究所 Virtual testing system in communication protocal conformance test and its method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09181871A (en) * 1995-12-21 1997-07-11 Ricoh Co Ltd G3 protocol measuring device
SE522408C2 (en) * 2000-04-27 2004-02-10 Microsoft Corp Computer program and procedure for automated testing of a computer's functionality
CN1265570C (en) * 2002-10-10 2006-07-19 华为技术有限公司 Measuring device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6373822B1 (en) * 1999-01-08 2002-04-16 Cisco Technology, Inc. Data network protocol conformance test system
CN1400751A (en) * 2001-08-08 2003-03-05 中国科学院计算技术研究所 Virtual testing system in communication protocal conformance test and its method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104734912A (en) * 2015-02-13 2015-06-24 大唐联仪科技有限公司 Method and device for testing protocol conformance
CN104734912B (en) * 2015-02-13 2018-12-18 大唐联仪科技有限公司 A kind of method and apparatus of testing protocol consistency
CN115550231A (en) * 2022-03-31 2022-12-30 许昌开普检测研究院股份有限公司 Multi-protocol testing platform based on configuration file and testing method thereof

Also Published As

Publication number Publication date
CN100385864C (en) 2008-04-30
CN1777127A (en) 2006-05-24

Similar Documents

Publication Publication Date Title
WO2007065321A1 (en) A protocol conformance test device and a test method thereof
CN104579822B (en) Mobile application automated performance testing system and method based on Http agreements
US20080039070A1 (en) Remote mobile testing probe
DE602004029403D1 (en) METHOD FOR CONFIGURING A RADIO TERMINATOR THROUGH A RADIO COMMUNICATION NETWORK, SUCH NETWORK AND COMPUTER PROGRAM PRODUCT THEREFOR
WO2021164261A1 (en) Method for testing cloud network device, and storage medium and computer device
CN111522727B (en) Simulation object test method, device and system
CN113612654A (en) Vehicle-mounted gateway function testing method based on database
CN105577463A (en) Testing method and testing device based on communication protocol
CN103746879A (en) Testing system and method for consistency of IPv6 (Internet Protocol Version 6) protocol
CN102291274A (en) System and method for realizing automatic adaptation of network testing instrument
CN102750143A (en) Digital signal processing (DSP) developing method based on matrix laboratory (MATLAB) component object model (COM) component calling
KR20130075252A (en) Apparatus and method for conformance testing of service choreography
CN111294225A (en) Automatic test system and method for exchange equipment in rail transit system
US20120203885A1 (en) Service Linkage Control System and Method
CN109286536B (en) Interface testing method and device
CN101141753A (en) Big traffic automatization testing device and method
CN107124326A (en) A kind of automated testing method and system
CN114629830B (en) Method and system for automatically controlling test center instrument test
CN113347060B (en) Method, device and system for detecting power network fault based on process automation
CN115542875A (en) Vehicle detection method based on SOA service and related equipment
CN100384285C (en) Method for testing apparatus management service system
CN105207854A (en) Multi-terminal concurrent testing system and method
WO2017197829A1 (en) Test information management method and apparatus, and test case execution system and device
CN108683540A (en) A kind of lightweight realization method and system that Network Management Protocol channel is cross-platform
CN112667454A (en) Software simulation system of power device tester and design method of simulation system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 06722395

Country of ref document: EP

Kind code of ref document: A1