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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com