Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for testing communication protocol interface

A protocol testing and communication protocol technology, applied in transmission systems, digital transmission systems, electrical components, etc., can solve the problems of inconvenient automated testing, increased testing costs, difficult control, etc., to reduce testing costs, facilitate testing, and save development costs Effect

Active Publication Date: 2013-04-03
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The simulator often runs as an independent system, and there is no connection between each simulator, and it is not related to the automated test script. It is difficult to control in the automated test. To simulate complex test scenarios, the simulator needs to be adjusted at any time, which brings inconvenience to the automated test. , and increases the test cost

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for testing communication protocol interface
  • Method and system for testing communication protocol interface
  • Method and system for testing communication protocol interface

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The technical solution of the testing method of the communication protocol interface and the system will be described in detail below in combination with specific embodiments and accompanying drawings.

[0039] Such as figure 2 Shown, in one embodiment, a kind of testing method of communication protocol interface comprises the following steps:

[0040] Step S210, the test script invokes the function of the protocol test library, simulates the behavior of the client, and sends the first message to the object under test.

[0041] A test script refers to a program written in a scripting language that can complete automated testing. The class, function or method that completes a certain test logic or test function is stored in the protocol test library. The object under test may be, for example, CGI (Common Gateway Interface, common gateway interface), which provides an interface with a client HTML (Hypertext Markup Language, text markup language) page.

[0042] The tes...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to method and a system for testing a communication protocol interface. The system comprises a testing script module and a universal logic service simulator, wherein the testing script module calls a function of a protocol testing library, simulates the behavior of a client side, and sends a first message to a tested object; the universal logic service simulator receives a second message generated after the first message is processed through the tested object, and transmits the second message to the testing script module; the testing script module simulates the behavior of a service side, and returning a response message of the second message; the universal logic service simulator transmits the response message of the second message to the tested object; and after receiving the response message (processed by the tested object) of the second message, the testing script module checks a response message of the first message. According to the method and the system for testing the communication protocol interface, the universal logic service simulator is adopted to forward messages of various different protocols, different simulators are not required to be developed, and the testing cost can be lowered.

Description

【Technical field】 [0001] The invention relates to the field of network communication testing, in particular to a testing method and system for a communication protocol interface. 【Background technique】 [0002] When the communication system or equipment performs automated testing of the protocol interface, the simulator is often used to simulate the real communication system or equipment. Such as figure 1 As shown, various logic services of the object under test are replaced by simulators, and clients are replaced by automated test scripts plus a protocol test library, where IF (Interface, protocol interface), ie, IF0-IFn, are different protocol interfaces. Using the simulator to simulate the logic service, it is not necessary to use the real logic service to build the test environment, which reduces the test cost and improves the test efficiency. [0003] However, for different protocol interfaces, corresponding simulators need to be provided. The simulator often runs as...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L12/26
Inventor 徐勇王谊麟
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products