CN104618182B - A kind of simulated testing system for supporting a variety of mobile service agreements - Google Patents
A kind of simulated testing system for supporting a variety of mobile service agreements Download PDFInfo
- Publication number
- CN104618182B CN104618182B CN201510030336.7A CN201510030336A CN104618182B CN 104618182 B CN104618182 B CN 104618182B CN 201510030336 A CN201510030336 A CN 201510030336A CN 104618182 B CN104618182 B CN 104618182B
- Authority
- CN
- China
- Prior art keywords
- message
- protocol
- format
- mobile service
- test
- 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.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 109
- 238000012545 processing Methods 0.000 claims abstract description 47
- 230000004044 response Effects 0.000 claims abstract description 38
- 230000005540 biological transmission Effects 0.000 claims abstract description 35
- 238000000034 method Methods 0.000 claims abstract description 33
- 238000012795 verification Methods 0.000 claims abstract description 26
- 230000008569 process Effects 0.000 claims abstract description 21
- 238000006243 chemical reaction Methods 0.000 claims abstract description 11
- 238000004088 simulation Methods 0.000 claims description 24
- 239000000344 soap Substances 0.000 claims description 6
- 238000004458 analytical method Methods 0.000 claims description 4
- 230000002159 abnormal effect Effects 0.000 claims description 3
- 230000010354 integration Effects 0.000 abstract description 7
- 230000002093 peripheral effect Effects 0.000 description 10
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000008676 import Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000010200 validation analysis Methods 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种模拟测试系统,尤其涉及一种支持多种移动业务协议的模拟测试系统。The invention relates to a simulation test system, in particular to a simulation test system supporting multiple mobile service protocols.
背景技术Background technique
为了应对电信行业用户数量、业务类型激增,需要一个庞大的多级业务运营支撑系统,具有灵活性、可扩展性、高可靠性、易维护性等特性。所以,业务运营支撑系统采用松耦合架构,以降低整体复杂性和依赖性。使应用程序环境更敏捷,能更快地使用更改,并降低风险。In order to cope with the surge in the number of users and business types in the telecommunications industry, a huge multi-level business operation support system is required, which has the characteristics of flexibility, scalability, high reliability, and easy maintenance. Therefore, the business operation support system adopts a loosely coupled architecture to reduce overall complexity and dependencies. Make application environments more agile, consume changes faster, and reduce risk.
松耦合架构通常是基于消息的系统,两个耦合系统直接并不知道对方是如何实现。相互之间的通信由消息的架构支撑。只要消息符合协商的架构,则双方客户根据需要进行更改,而不必担心会破坏对方。A loosely coupled architecture is usually a message-based system, and two coupled systems don't directly know how the other is implemented. The communication between them is supported by the structure of the message. As long as the message conforms to the negotiated schema, clients on both sides can make changes as needed without fear of breaking each other.
移动业务运营支撑系统与外围系统之间是松耦合架构,多数使用消息机制通信。外围系统实现差异,通信协议选取存在较大差异,大致分为:HTTP协议、SOAP协议、SOCKET协议、FTP协议。The mobile service operation support system and peripheral systems are loosely coupled architectures, most of which use message mechanisms for communication. There are differences in the implementation of peripheral systems, and there are large differences in the selection of communication protocols, which can be roughly divided into: HTTP protocol, SOAP protocol, SOCKET protocol, and FTP protocol.
松耦合架构虽然满足灵活性、可扩展性、易维护性等特性,却大大降低可测试性。在进行系统集成测试时,需要外围系统与之配合才能完成端到端测试。而外围系统搭建存在困难,使得多数测试路径不完整。现在多使用一个外围系统搭建一个测试桩,依据消息结构内容,人工编写报文文件,并通过测试桩发送到业务运营支撑系统中。而如果由业务运营支撑系统发送到外围系统的消息,则查看系统接口处记录的报文内容,确定接口功能是否正确。Although the loosely coupled architecture meets the characteristics of flexibility, scalability, and ease of maintenance, it greatly reduces testability. When conducting system integration testing, the peripheral system needs to cooperate with it to complete the end-to-end testing. However, there are difficulties in building peripheral systems, making most test paths incomplete. Now use an additional peripheral system to build a test stub, manually write the message file according to the message structure content, and send it to the business operation support system through the test stub. And if the message is sent from the business operation support system to the peripheral system, check the message content recorded at the system interface to determine whether the interface function is correct.
现有业务运营支撑系统的集成测试工作开展时,需要为每个外围系统搭建一个测试桩,并且依据报文格式人工编写报文文件。同时,如果报文协议变更、或者报文格式变化,则需要重新定义报文文件。在集成测试过程中,即使之前已经做过多次,还需人工一步一步的重新配置和操作。现有的测试方式存在几个缺点:When carrying out the integration test of the existing business operation support system, it is necessary to build a test pile for each peripheral system, and manually compile the message file according to the message format. At the same time, if the message protocol changes or the message format changes, the message file needs to be redefined. In the process of integration testing, even if it has been done many times before, it still needs manual reconfiguration and operation step by step. Existing testing methods have several disadvantages:
1、测试桩配置、报文配置、协议发送接收操作等都有较多人工处理,容易因人为操作引入错误,影响测试可靠性。1. There are many manual processes for test stub configuration, message configuration, and protocol sending and receiving operations, which are easy to introduce errors due to human operations and affect test reliability.
2、与外围系统的测试多数情况下需进行多批次测试,而较多人工处理,大大降低处理效率。2. In most cases, the test with the peripheral system needs to be tested in multiple batches, and more manual processing will greatly reduce the processing efficiency.
3、由于对端系统较难搭建,导致两个系统接口交互的过程不易测试到位,更存在对端系统较难按照协议回复异常消息,导致异常流程难覆盖。3. Since the peer system is difficult to build, it is difficult to test the interaction process of the two system interfaces, and it is difficult for the peer system to reply to the exception message according to the protocol, which makes it difficult to cover the exception process.
4、一个测试桩支持一种协议类型,不对协议格式、报文内容进行定义,所以,报文收发格式校验和报文结果是否正确均由人工判断。4. A test stub supports one protocol type, and does not define the protocol format and message content. Therefore, whether the message sending and receiving format verification and message results are correct is manually judged.
发明内容Contents of the invention
本发明所要解决的技术问题是提供一种支持多种移动业务协议的模拟测试系统,能够与业务运营支撑系统模拟消息交互,保障在业务运营支撑系统集成测试过程中接口测试充分和测试路径全覆盖,避免质量盲点,提升测试效率及测试质量。The technical problem to be solved by the present invention is to provide a simulation test system supporting multiple mobile service protocols, capable of interacting with simulated messages of the service operation support system, and ensuring sufficient interface testing and full coverage of test paths during the integration test process of the service operation support system , Avoid quality blind spots, improve test efficiency and test quality.
本发明为解决上述技术问题而采用的技术方案是提供一种支持多种移动业务协议的模拟测试系统,包括协议处理模块:提供多种移动业务协议的报文格式,报文时序,以及报文字段参数的配置处理;传输处理模块:提供多种移动业务支持的传输协议类型及其处理模块;测试桩配置模块:对移动业务协议类型与传输类型进行配置组合形成测试桩;运行处理模块:为每个配置好的测试桩接收报文请求;对报文内容进行格式转换和校验,获取通过校验后的报文中的协议特征值,利用协议处理模块进行报文处理,并将处理后的报文转换为该测试桩对应的传输类型的格式;利用传输处理模块发送处理转换后的报文进行应答。The technical scheme adopted by the present invention to solve the above-mentioned technical problems is to provide a simulation test system supporting multiple mobile service protocols, including a protocol processing module: providing message formats, message timing, and message Configuration processing of field parameters; transmission processing module: providing transmission protocol types and processing modules supported by various mobile services; test stub configuration module: configuring and combining mobile service protocol types and transmission types to form test stubs; operation processing module: for Each configured test stub receives a message request; performs format conversion and verification on the content of the message, obtains the protocol characteristic value in the verified message, uses the protocol processing module to process the message, and converts the processed Convert the message to the format of the transmission type corresponding to the test stub; use the transmission processing module to send and process the converted message to reply.
上述的支持多种移动业务协议的模拟测试系统,其中,所述报文格式配置包括字段名称、字段属性、枚举字段的枚举值定义以及字段的校验和取值方法。In the above simulation test system supporting multiple mobile service protocols, the message format configuration includes field names, field attributes, enumerated value definitions of enumerated fields, and methods for checking and obtaining values of fields.
上述的支持多种移动业务协议的模拟测试系统,其中,所述报文时序配置包括将多个相互关联的协议按先后顺序组成一个业务交易,并在消息收发过程中依据配置好的时序关系进行应答。The above-mentioned simulation test system supporting multiple mobile service protocols, wherein the message timing configuration includes composing a plurality of interrelated protocols into a business transaction in sequence, and proceeding according to the configured timing relationship in the process of sending and receiving messages. answer.
上述的支持多种移动业务协议的模拟测试系统,其中,所述传输协议类型包括SOAP、HTTP1.0\1.1、MML、SOCKET和FTP协议,所述测试桩配置模块将每一个测试桩选中的传输协议实例化形成一个独立线程的同时加载相应移动业务协议类型。The above-mentioned simulation test system supporting multiple mobile service protocols, wherein the transmission protocol types include SOAP, HTTP1.0\1.1, MML, SOCKET and FTP protocols, and the test stub configuration module selects the transmission of each test stub The protocol instantiation forms an independent thread and loads the corresponding mobile service protocol type at the same time.
上述的支持多种移动业务协议的模拟测试系统,其中,所述运行处理模块的报文接收过程如下:对每个配置好的测试桩,按照该测试桩配置的传输协议,从接收端获取发送到该测试桩的报文内容;获取报文协议特征值,对比该测试桩所配置的移动业务协议特征值,查看报文是否属于该测试桩协议;如果不属于该测试桩协议,直接对端报文发送错误;如果属于该测试桩协议,则查找协议报文格式。The above-mentioned simulation test system supporting multiple mobile service protocols, wherein, the message receiving process of the operation processing module is as follows: for each configured test stub, according to the transmission protocol configured by the test stub, obtain and send the message from the receiving end The content of the message to the test stub; obtain the characteristic value of the message protocol, compare the characteristic value of the mobile service protocol configured by the test stub, and check whether the message belongs to the test stub protocol; if it does not belong to the test stub protocol, directly peer The message is sent incorrectly; if it belongs to the test stub protocol, check the format of the protocol message.
上述的支持多种移动业务协议的模拟测试系统,其中,所述运行处理模块的报文格式转换和校验过程如下:依据报文协议特征值,从报文格式库中查询报文格式,并加载到内存中;将报文依据报文格式定义转换成统一XML格式,再通过报文格式WSDL校验报文结构是否正确。The above-mentioned simulation test system supporting multiple mobile service protocols, wherein, the message format conversion and verification process of the operation processing module is as follows: query the message format from the message format library according to the message protocol characteristic value, and Load it into the memory; convert the message into a unified XML format according to the message format definition, and then check whether the message structure is correct through the message format WSDL.
上述的支持多种移动业务协议的模拟测试系统,其中,所述运行处理模块的报文处理过程如下:字段校验:按照报文字段定义和校验方法定义对字段值进行校验;通过字段校验的报文可进行后续处理,否则将作为异常报文指出校验错误后返回错误应答;获取应答格式:通过报文协议特征值,获取与接收报文同协议的应答报文格式,并加载到内存中;分析请求报文:依据收发报文关联关系,从接收报文中获取发送报文所需的字段信息,并存储等待组装发送报文时使用;应答策略:依据测试桩加载的应答策略,设置应答返回值;数据组装:按照应答报文的结构,从分析请求报文中获取的字段信息、以及应答策略中获取的应答值,组装为应答报文体;转换协议格式:再将统一的XML格式转换为协议所需的格式;发送:将组装好的报文,采用实时应答发送模式或异步应答发送模式发送到指定的接收端。The above-mentioned simulation test system supporting multiple mobile service protocols, wherein, the message processing process of the operation processing module is as follows: field check: check the field value according to the message field definition and check method definition; The verified message can be processed later, otherwise it will be used as an abnormal message to indicate the verification error and return an error response; obtain the response format: obtain the response message format of the same protocol as the received message through the message protocol characteristic value, and Load it into the memory; analyze the request message: obtain the field information required for sending the message from the received message according to the association relationship between the sending and receiving messages, and store it for use when assembling and sending the message; response strategy: load according to the test pile Response strategy, set the response return value; data assembly: according to the structure of the response message, assemble the field information obtained from the analysis request message and the response value obtained from the response strategy into a response message body; convert the protocol format: then The unified XML format is converted into the format required by the protocol; sending: send the assembled message to the designated receiving end in real-time reply sending mode or asynchronous reply sending mode.
本发明对比现有技术有如下的有益效果:本发明提供的支持多种移动业务协议的模拟测试系统,对移动业务协议类型与传输类型进行配置组合形成测试桩,能够模拟外围系统通信机制,支持现有的移动业务涉及的全部业务协议类型,并可以通过报文字段属性参数配置、或者报文结构定义导入等方式维护各种业务报文格式,从而保障在业务运营支撑系统集成测试过程中接口测试充分和测试路径全覆盖,避免质量盲点,提升测试效率及测试质量。Compared with the prior art, the present invention has the following beneficial effects: the simulation test system supporting multiple mobile service protocols provided by the present invention can configure and combine mobile service protocol types and transmission types to form test piles, which can simulate peripheral system communication mechanisms and support All types of business protocols involved in the existing mobile business, and various business message formats can be maintained through message field attribute parameter configuration, or message structure definition import, etc., so as to ensure that the interface during the integration test process of the business operation support system The test is sufficient and the test path is fully covered to avoid quality blind spots and improve test efficiency and test quality.
附图说明Description of drawings
图1为本发明支持多种移动业务协议的模拟测试系统架构示意图;Fig. 1 is a schematic diagram of the simulation test system architecture supporting multiple mobile service protocols in the present invention;
图2为本发明支持多种移动业务协议的模拟测试系统控制流程示意图。Fig. 2 is a schematic diagram of the control flow of the simulation test system supporting multiple mobile service protocols in the present invention.
具体实施方式detailed description
下面结合附图和实施例对本发明作进一步的描述。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
图1为本发明支持多种移动业务协议的模拟测试系统架构示意图;图2为本发明支持多种移动业务协议的模拟测试系统控制流程示意图。Figure 1 is a schematic diagram of the structure of the simulation test system supporting multiple mobile service protocols in the present invention; Figure 2 is a schematic diagram of the control flow of the simulation test system supporting multiple mobile service protocols in the present invention.
请参见图1和图2,本发明提供的支持多种移动业务协议的模拟测试系统包括:Referring to Fig. 1 and Fig. 2, the simulated test system supporting multiple mobile service protocols provided by the present invention includes:
协议处理模块:提供多种移动业务协议的报文格式,报文时序,以及报文字段参数的配置处理;Protocol processing module: provide message formats of various mobile service protocols, message timing, and configuration processing of message field parameters;
传输处理模块:提供多种移动业务支持的传输协议类型及其处理模块;Transmission processing module: provide transmission protocol types and processing modules supported by various mobile services;
测试桩配置模块:对移动业务协议类型与传输类型进行配置组合形成测试桩;Test stub configuration module: configure and combine the mobile service protocol type and transmission type to form a test stub;
运行处理模块:为每个配置好的测试桩接收报文请求;对报文内容进行格式转换和校验,获取通过校验后的报文中的协议特征值,利用协议处理模块进行报文处理,并将处理后的报文转换为该测试桩对应的传输类型的格式;利用传输处理模块发送处理转换后的报文进行应答。Operation processing module: receive message request for each configured test pile; perform format conversion and verification on the content of the message, obtain the protocol characteristic value in the verified message, and use the protocol processing module to process the message , and convert the processed message into the format of the transmission type corresponding to the test stub; use the transmission processing module to send the processed and converted message to reply.
本发明提供的支持多种移动业务协议的模拟测试系统,对移动业务协议类型与传输类型进行配置组合形成测试桩,能够模拟外围系统通信机制,支持现有的移动业务涉及的全部业务协议类型,并可以通过报文字段属性参数配置、或者报文结构定义导入等方式维护各种业务报文格式,且全面支持对报文格式校验方法、报文应答策略、报文测试数据进行管理。The simulation test system supporting multiple mobile service protocols provided by the present invention configures and combines mobile service protocol types and transmission types to form test piles, which can simulate peripheral system communication mechanisms and support all service protocol types involved in existing mobile services. It can also maintain various business message formats through message field attribute parameter configuration, or message structure definition import, etc., and fully supports the management of message format verification methods, message response strategies, and message test data.
本发明各模块主要功能及处理过程如下:The main functions and processing procedures of each module of the present invention are as follows:
1、测试桩处理模块:一种协议类型和一种传输类型结合,是构成测试桩的基本要素。其他要素包含:网络配置、协议编码定义、特殊校验方法、协议参数配置等。使用协议类型与传输类型的组合定义,使得模拟业务协议系统可以轻松定义多种测试桩,以应对不同协议的测试。1. Test stub processing module: a combination of a protocol type and a transmission type is the basic element of a test stub. Other elements include: network configuration, protocol encoding definition, special verification method, protocol parameter configuration, etc. Using the combined definition of protocol type and transmission type makes it possible for the simulated service protocol system to easily define a variety of test stubs to cope with the testing of different protocols.
2、协议处理模块:一个协议需要定义报文格式,报文时序,以及报文字段参数定义等。2. Protocol processing module: A protocol needs to define message format, message timing, and message field parameter definition, etc.
a)报文格式:字段名称、字段属性、如果是枚举字段,还需维护字段的枚举值定义,同时还需定义字段的校验和取值方法a) Message format: field name, field attribute, if it is an enumerated field, it is also necessary to maintain the definition of the enumerated value of the field, and at the same time, it is necessary to define the verification and value method of the field
b)报文时序:一对报文定义一次应答,系统维护报文应答时序。针对移动业务协议的复杂性,部分业务处理需要由多组协议组成。例如:先注册、后操作、再注销业务处理模式,就是有三个协议组成一个业务交易,系统维护三个协议的时序关系,并在消息收发过程中依据时序关系应答。b) Message sequence: A pair of messages defines a response, and the system maintains the message response sequence. For the complexity of mobile service protocols, some service processing needs to be composed of multiple sets of protocols. For example: first register, then operate, and then cancel the business processing mode, that is, there are three protocols to form a business transaction, the system maintains the timing relationship of the three protocols, and responds according to the timing relationship during the process of sending and receiving messages.
c)协议继承关系;针对移动业务协议逐级细化的特点。例如【VGOP业务单行本】中定义VGOP业务协议格式,每个VGOP业务又有各自协议格式定义。其中多数协议报文字段保持一致,部分字段由于协议不同则有不同选择(或者有不同限制)。为了使VGOP业务整体协议格式的某个变动能够直接影响所有VGOP单个业务协议格式,则需支撑协议继承关系。c) Protocol inheritance relationship; for the characteristics of step-by-step refinement of mobile service protocols. For example, the VGOP business protocol format is defined in [VGOP business booklet], and each VGOP business has its own protocol format definition. Most of the protocol message fields are consistent, and some fields have different choices (or have different restrictions) due to different protocols. In order to make a change in the overall protocol format of the VGOP service directly affect the protocol format of all individual VGOP services, it is necessary to support the protocol inheritance relationship.
飞信平台和PIM平台订购请求,除操作代码定义不同,其他都一致,与VGOP业务订购请求协议一致。飞信平台与PIM平台均和VGOP平台协议具有继承关系,但也存在特例。The order requests of Fetion platform and PIM platform are consistent except for the definition of operation code, which is consistent with the VGOP business order request protocol. Both the Fetion platform and the PIM platform have an inheritance relationship with the VGOP platform agreement, but there are exceptions.
3、传输管理:依据现有移动业务协议类型的需要,现在系统支持SOAP、HTTP1.0\1.1、MML、SOCKET、FTP等多种协议。模拟业务协议系统管理这些传输类型模版,测试桩配置时则将此类传输类型模版实例化形成一个独立线程的同时加载相应协议,模拟特定的移动业务。3. Transmission management: According to the needs of existing mobile service protocol types, the system now supports SOAP, HTTP1.0\1.1, MML, SOCKET, FTP and other protocols. The simulated business protocol system manages these transmission type templates. When configuring test stubs, instantiate such transmission type templates to form an independent thread and load corresponding protocols at the same time to simulate specific mobile services.
请参见图2,下面按照某个业务发送到模拟业务协议系统处理为例子,详细解释本发明对业务协议的处理流程。Please refer to FIG. 2 , taking a certain service sent to the simulated service agreement system as an example to explain in detail the processing flow of the service agreement in the present invention.
1、接收:按照传输协议,从接收端获取发送到模拟业务协议系统某个测试桩的报文内容。1. Receiving: According to the transmission protocol, the content of the message sent to a test stub of the simulated business protocol system is obtained from the receiving end.
2、报文转换:2. Message conversion:
a)协议类型:依据报文协议特征值定义,获取报文协议特征值,对比该测试桩所承载的协议特征值,查看报文是否属于该测试桩协议。如果不属于该测试桩协议,则对端报文发送错误;如果属于该测试桩协议,查找协议报文格式。a) Protocol type: According to the definition of the message protocol characteristic value, obtain the message protocol characteristic value, compare the protocol characteristic value carried by the test stub, and check whether the message belongs to the test stub protocol. If it does not belong to the test stub protocol, the peer message is sent incorrectly; if it belongs to the test stub protocol, search for the format of the protocol message.
b)报文格式:依据报文协议特征值,从报文格式库中查询报文格式,并加载到内存中。b) Message format: query the message format from the message format library according to the characteristic value of the message protocol, and load it into the memory.
c)格式转换/校验:将报文依据报文格式定义,转换成统一XML格式。再通过报文格式WSDL校验报文结构是否正确。c) Format conversion/verification: convert the message into a unified XML format according to the message format definition. Then check whether the message structure is correct through the message format WSDL.
3、报文处理:3. Message processing:
d)字段校验:报文将按照报文字段定义和校验方法定义对其字段值进行校验。例如:字段为日期型,则需检查是否符合日期格式要求;字段枚举值【1-5】,则需检查是否超过这个范围;或者报文某个字段与报文其他字段有关联关系,也可以通过校验方法进行检查。通过字段校验的报文,即可进行后续处理,否则将作为异常报文指出校验错误后返回错误应答。d) Field verification: the message will verify its field value according to the message field definition and verification method definition. For example: if the field is a date type, you need to check whether it meets the date format requirements; if the enumerated value of the field is [1-5], you need to check whether it exceeds this range; It can be checked by the validation method. Subsequent processing can be performed on the message that passes the field verification, otherwise it will be used as an abnormal message to indicate the verification error and return an error response.
e)获取应答格式:通过报文协议特征值,获取与接收报文同协议的应答报文格式,并加载到内存。e) Obtaining the response format: Obtain the response message format of the same protocol as the received message through the characteristic value of the message protocol, and load it into the memory.
f)分析请求报文:依据收发报文关联关系定义,从接收报文中获取发送报文所需的字段信息(例如:流水号、电话号码、用户信息等),并存储到MAP中,以备组装发送报文使用。f) Analyzing the request message: According to the definition of the association relationship between sending and receiving messages, the field information (for example: serial number, phone number, user information, etc.) required for sending the message is obtained from the received message, and stored in the MAP for It is used for assembling and sending messages.
g)应答策略:依据测试桩加载的应答策略,设置应答返回值。例如:应答返回正确信息,则应设定报文某个返回值为0。g) Response strategy: set the response return value according to the response strategy loaded by the test stub. For example: if the response returns correct information, a certain return value of the message should be set to 0.
h)数据组装:按照应答报文的结构,从分析请求报文中获取的字段信息、以及应答策略中获取的应答值,组装为应答报文体。h) Data assembly: according to the structure of the response message, assemble the response message body from the field information obtained from the analysis request message and the response value obtained from the response policy.
i)统一报文格式:形成XML报文格式体。i) Unified message format: form an XML message format body.
j)转换协议格式:通过协议格式转换将统一的XML格式转换为协议所需的格式。例如:MML所需格式、SOAP所需格式等。j) Convert protocol format: convert the unified XML format into the format required by the protocol through protocol format conversion. For example: format required by MML, format required by SOAP, etc.
4、发送:将组装好的报文,发送到制定的地方。支持实时应答发送和异步应答发送两种模式。4. Sending: Send the assembled message to the designated place. Support real-time reply sending and asynchronous reply sending two modes.
综上所述,本发明使用传输协议和承载的移动业务协议灵活组装为一个测试桩,用于模拟移动业务协议,从而可以对协议、传输、报文结构的提供灵活配置管理,并统将不同协议报文格式转换为统一格式处理的方法,减少不同协议报文格式对系统的影响,极大提升集成测试的效率、覆盖面,具有较强的灵活性。具体优点如下:1、某个模拟业务协议定义为测试桩。测试桩由传输协议和承载协议灵活配置组成,模拟移动业务协议系统对协议的模拟都可以配置一个测试桩即可实现,系统具有强大的可扩展性。2、系统为协议、传输、报文都提供灵活配置的界面,使得系统能支撑多种协议、传输、以及报文,尤其是对报文进行多级校验:格式校验、字段校验、值有效性校验。还提供校验方法单独配置,以应对后续校验方法的扩展。3、系统将各类不同的协议报文格式,在内部处理时都转换成统一格式(XML),以方便系统处理,而不同格式的协议报文系统则主要维护格式转换和格式组装,报文格式的多样性对系统影响较小,使得系统能承载多种协议报文的能力。4、全面支持移动现有业务协议,包括SOAP、HTTP1.0\1.1、MML、SOCKET、FTP等多种协议。To sum up, the present invention uses the transmission protocol and the carried mobile service protocol to flexibly assemble into a test stub for simulating the mobile service protocol, thereby providing flexible configuration management for the protocol, transmission, and message structure, and integrating different The protocol message format is converted into a unified format processing method, which reduces the impact of different protocol message formats on the system, greatly improves the efficiency and coverage of integration testing, and has strong flexibility. The specific advantages are as follows: 1. A simulated service agreement is defined as a test stub. The test stub is composed of the flexible configuration of the transmission protocol and the bearer protocol. The simulated mobile service protocol system can realize the simulation of the protocol by configuring a test stub. The system has strong scalability. 2. The system provides a flexible configuration interface for protocols, transmissions, and messages, enabling the system to support multiple protocols, transmissions, and messages, especially for multi-level verification of messages: format verification, field verification, Value validity check. It also provides a separate configuration of the verification method to deal with the expansion of subsequent verification methods. 3. The system converts various protocol message formats into a unified format (XML) during internal processing to facilitate system processing, while the protocol message system of different formats mainly maintains format conversion and format assembly. The diversity of formats has little impact on the system, making the system capable of carrying packets of various protocols. 4. Fully support mobile existing business protocols, including SOAP, HTTP1.0\1.1, MML, SOCKET, FTP and other protocols.
虽然本发明已以较佳实施例揭示如上,然其并非用以限定本发明,任何本领域技术人员,在不脱离本发明的精神和范围内,当可作些许的修改和完善,因此本发明的保护范围当以权利要求书所界定的为准。Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art may make some modifications and improvements without departing from the spirit and scope of the present invention. Therefore, the present invention The scope of protection should be defined by the claims.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510030336.7A CN104618182B (en) | 2015-01-21 | 2015-01-21 | A kind of simulated testing system for supporting a variety of mobile service agreements |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510030336.7A CN104618182B (en) | 2015-01-21 | 2015-01-21 | A kind of simulated testing system for supporting a variety of mobile service agreements |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104618182A CN104618182A (en) | 2015-05-13 |
CN104618182B true CN104618182B (en) | 2018-02-27 |
Family
ID=53152473
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510030336.7A Active CN104618182B (en) | 2015-01-21 | 2015-01-21 | A kind of simulated testing system for supporting a variety of mobile service agreements |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104618182B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108563558A (en) * | 2018-02-26 | 2018-09-21 | 南京粤讯电子科技有限公司 | A kind of program testing method, test pile system and device |
CN110213119B (en) * | 2018-03-07 | 2022-02-22 | 财付通支付科技有限公司 | Test pile generation method, test system, test method and test equipment |
CN109768970B (en) * | 2018-12-24 | 2021-05-04 | 通号通信信息集团有限公司 | Configurable universal protocol generation method |
CN109802957B (en) * | 2019-01-03 | 2022-05-31 | 深圳壹账通智能科技有限公司 | Interface docking method, device, computer equipment and storage medium |
CN112507005B (en) * | 2019-09-16 | 2024-04-16 | 北京京东振世信息技术有限公司 | Method and device for processing message |
CN112532564B (en) * | 2019-09-17 | 2022-09-13 | 中国移动通信集团广东有限公司 | Service calling method and device and electronic equipment |
CN110580225A (en) * | 2019-09-20 | 2019-12-17 | 中国银行股份有限公司 | Business system simulation method and device |
CN113094254A (en) * | 2019-12-23 | 2021-07-09 | 腾讯科技(深圳)有限公司 | Service system test method and device, storage medium and electronic device |
CN112035355A (en) * | 2020-08-28 | 2020-12-04 | 中国平安财产保险股份有限公司 | Data processing method, apparatus, computer equipment and storage medium |
CN112799713B (en) * | 2020-12-31 | 2022-06-28 | 江苏苏宁银行股份有限公司 | Universal configurable test pile platform |
CN113194006B (en) * | 2021-03-29 | 2021-11-09 | 北京城建智控科技股份有限公司 | RSSP-I protocol-based test method |
CN114710333B (en) * | 2022-03-23 | 2024-09-27 | 广州华速信息技术有限公司 | Data transmission and verification method, system, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102104894A (en) * | 2009-12-16 | 2011-06-22 | 中国移动通信集团公司 | Mobile service protocol testing device and method |
CN102110049A (en) * | 2010-12-14 | 2011-06-29 | 中山大学 | Method and system for automatically testing digital television middleware interface |
CN102546442A (en) * | 2012-03-09 | 2012-07-04 | 北京神州数码思特奇信息技术股份有限公司 | Communication protocol conversion technology |
CN102790705A (en) * | 2012-07-24 | 2012-11-21 | 大唐移动通信设备有限公司 | Service test system and method, signaling analysis system and method |
CN103378994A (en) * | 2012-04-19 | 2013-10-30 | 北京动力源科技股份有限公司 | Method and terminal for testing communication equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9341676B2 (en) * | 2011-10-07 | 2016-05-17 | Alcatel Lucent | Packet-based propagation of testing information |
-
2015
- 2015-01-21 CN CN201510030336.7A patent/CN104618182B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102104894A (en) * | 2009-12-16 | 2011-06-22 | 中国移动通信集团公司 | Mobile service protocol testing device and method |
CN102110049A (en) * | 2010-12-14 | 2011-06-29 | 中山大学 | Method and system for automatically testing digital television middleware interface |
CN102546442A (en) * | 2012-03-09 | 2012-07-04 | 北京神州数码思特奇信息技术股份有限公司 | Communication protocol conversion technology |
CN103378994A (en) * | 2012-04-19 | 2013-10-30 | 北京动力源科技股份有限公司 | Method and terminal for testing communication equipment |
CN102790705A (en) * | 2012-07-24 | 2012-11-21 | 大唐移动通信设备有限公司 | Service test system and method, signaling analysis system and method |
Also Published As
Publication number | Publication date |
---|---|
CN104618182A (en) | 2015-05-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104618182B (en) | A kind of simulated testing system for supporting a variety of mobile service agreements | |
US9817067B2 (en) | Testbench builder, system, device and method including latency detection | |
CN109768970B (en) | Configurable universal protocol generation method | |
CN110032511A (en) | A kind of interface test method and interface testing equipment | |
Lerche et al. | Industry adoption of the Internet of Things: A constrained application protocol survey | |
CN109495870A (en) | Bluetooth test method and device | |
US20080039070A1 (en) | Remote mobile testing probe | |
CN103491135A (en) | Device and method for conducting self-matching on data formats | |
CN103780455B (en) | TETRA digit cluster protocol test method and system based on TTCN-3 | |
CN110233767A (en) | Service configuration method, system, device and the readable storage medium storing program for executing of distributed type assemblies | |
CN111625474B (en) | Automatic testing method of alliance chain | |
CN112698817B (en) | Message access method, device and system based on micro-service architecture and storage medium | |
CN111935767B (en) | Network simulation system | |
CN103647687A (en) | Method and device for verifying business parameters of application system | |
CN113852516A (en) | Method, system, terminal and storage medium for generating switch diagnostic program | |
CN107466018A (en) | The data transferring method and terminal device of a kind of terminal device | |
CN114371982A (en) | Simulation test method, device, equipment and readable storage medium | |
CN113992505A (en) | Network equipment configuration method and device, electronic equipment and readable storage medium | |
CN117708036B (en) | AT command processing method, device, terminal and terminal equipment | |
CN113452468B (en) | An information processing method and related equipment based on a new fronthaul network | |
CN110417704A (en) | A kind of things-internet gateway preloading method and device based on heterogeneous network fusion | |
CN108683540A (en) | A kind of lightweight realization method and system that Network Management Protocol channel is cross-platform | |
CN116051090A (en) | Method and system for simulating and processing cross-border payment transaction | |
CN118113586A (en) | Test method, test device, test apparatus, test program product, and test program | |
CN116418718A (en) | Protocol test system for space network protocol |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |