A mqtt service testing system and method

A test system and test execution technology, applied in software test/debugging, error detection/correction, instruments, etc., can solve the problems of MQTT service massive long link test difficulty, test system complexity, etc., to achieve simple operation and flexible system scale Effect

Active Publication Date: 2022-04-08
ZHENGZHOU XINDA JIEAN INFORMATION TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Aiming at the problem of complex test system deployment in traditional test schemes, the present invention provides an MQTT service test system and method, which can effectively solve the problems of MQTT service massive long link test difficulties and complex test systems

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
  • A mqtt service testing system and method
  • A mqtt service testing system and method
  • A mqtt service testing system and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0053] Such as figure 1 As shown, the embodiment of the present invention proposes a kind of MQTT service testing system, and described system comprises environment configuration module, test execution module and data collection and analysis module;

[0054] The environment configuration module is used to construct the basic configuration information required by the test execution module, so that the test execution module can create massive long links based on the basic configuration information;

[0055]Specifically, the basic configuration information includes: multiple virtual IPs set for the test system, the target MQTT service tested by the test system, the number of long links tested by the test system, and the long link keep-alive period maintained by the test system.

[0056] The test execution module is used to establish a large amount of long links, and maintain the long link keep-alive state; record the state information of the long link in the process of maintainin...

Embodiment 2

[0063] On the basis of the above-described embodiments, as a possible implementation, the basic configuration information constructed by the environment configuration module includes the following four aspects: multiple virtual IPs set for the test system, target MQTT services for test system tests, and test The number of long links tested by the system and the long link keep-alive period maintained by the test system.

[0064] In practical applications, the environment configuration module of the embodiment of the present invention includes at least the configuration functions of the above four aspects, aiming to build the basic environment and basic configuration parameters required by the test execution module, so that the test execution module can create a large number of long links .

[0065] As a possible implementation, such as figure 2 As shown, the test execution module in the embodiment of the present invention includes: a long link information management submodule...

Embodiment 3

[0072] On the basis of the above-mentioned embodiments, different from the above-mentioned embodiments, the embodiment of the present invention provides a workflow of the test execution module, such as image 3 As shown, the test execution module runs each internal submodule according to the following steps:

[0073] First, initialize the long link information management submodule;

[0074] Specifically, such as Figure 4 As shown, it specifically includes the following sub-steps: load the basic configuration information of the environment configuration module; initialize the long link maintenance and management data structure of the long link information management submodule; create an epoll handle through epoll_create;

[0075] Then, execute the long link to generate the monitoring submodule;

[0076] Specifically, such as Figure 5 shown, including the following sub-steps:

[0077] Step A1: Obtain a virtual IP in the long link information management submodule and target...

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 provides an MQTT service testing system and method. The test system includes: an environment configuration module, a test execution module, and a data collection and analysis module; the environment configuration module is used to construct the basic configuration information required by the test execution module; the test execution module is used to establish a large number of Long link, and maintain the long link keep-alive status; record the status information of the long link in the process of maintaining the long link; submit the log data information to the data collection and analysis module; the data collection and analysis module is used to circulate the message queue; receive The log data information submitted by other modules during the test; analyze the performance of the test system according to the log data information. The invention can effectively solve the problems of difficulty in testing a large number of long links of MQTT service, complex test system and the like.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to an MQTT service testing system and method. Background technique [0002] The most basic business of the application system in the field of Internet of Things is to ensure the long connection between the device and the server, so that the server can sense the changes of the client in real time and obtain the status information of the client. The application system in the Internet of Things field uses the basic data interaction protocol based on the MQTT protocol. MQTT, the Message Queue Telemetry Transport Protocol, is lightweight, simple, open, and easy to implement. These characteristics make the protocol widely used in machine communication, medical equipment, smart home and so on. [0003] The server serving the Internet of Things system is a crucial issue for the inspection and verification of system capacity and performance indicators. Whether the server supports...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3664G06F11/3688G06F11/3692
Inventor 郭斌昌王小辉王佳井科星雷宇龙王平
Owner ZHENGZHOU XINDA JIEAN INFORMATION TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products