Cloud sound box network pressure test method and system
By obtaining the status information of cloud speakers and generating test tasks for different device models and network modes, the problems of low comprehensiveness and low reliability of existing cloud speaker network stress test results are solved, and more accurate and comprehensive test results are achieved.
Patent Information
- Application Number
- CN202411920194.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-03-21
AI Technical Summary
The existing cloud speaker network stress test results are low in comprehensiveness and low reliability, and cannot effectively simulate real workloads in different device models and network modes.
By obtaining the status information of the cloud speaker, including the device model and the current network mode, generate test tasks for different device models and network modes, set the network mode of the cloud speaker, and push test messages to simulate real workloads.
It improves the comprehensiveness and accuracy of the cloud speaker network stress test results, and can be tested in different network modes to ensure that all network modes can be stress tested.
Smart Images

Figure CN119676114A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things equipment testing, and in particular to a cloud speaker network stress testing method and system. Background Art
[0002] With the popularity of mobile payment, cloud speakers are widely used in offline consumption scenarios. Cloud speakers can realize functions such as voice broadcasting of payment amount, confirmation of payment status, and push marketing messages. The application of cloud speakers can facilitate merchants to understand the status of mobile payments. The network connection performance of cloud speakers has a great impact on the reliability of their broadcast information. Therefore, cloud speakers usually need to undergo network stress testing to collect data such as the network delay rate of cloud speakers, and improve the equipment and optimize the algorithm through the data of network stress testing.
[0003] The existing network stress test pushes a unified test message to the cloud speaker through the test server. However, the hardware configurations of cloud speakers of different device models are different. Therefore, the broadcast message loads of cloud speakers of different device models in actual work are different. Using a unified test message for testing cannot simulate the actual workload of cloud speakers of different device models, which results in low accuracy and reliability of the existing cloud speaker stress network test results.
[0004] In addition, the cloud speaker has at least a WIFI network mode and a data traffic network mode. The existing cloud speaker network stress test cannot select the network mode of the cloud speaker, which results in that the test can only be performed under the current network mode of the cloud speaker, and the test data of other network modes of the cloud speaker cannot be obtained. Therefore, the comprehensiveness of the existing cloud speaker stress network test results is low. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a cloud speaker network stress test method and system to solve the problems of low comprehensiveness and low reliability of existing cloud speaker network stress test results.
[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is: a cloud speaker network stress testing method, which comprises the following steps: S1. Obtain status information of a cloud speaker, and generate a test task according to the status information; wherein the status information of the cloud speaker includes a device model of the cloud speaker; S2. Setting the network mode of the cloud speaker according to the test task; S3. Pushing a test message to the cloud speaker according to the test task, wherein the cloud speaker receives the test message and generates log data; S4. Analyze the log data and generate a test report.
[0007] Furthermore, in step S2, the network mode of the cloud speaker is set according to the test task, specifically including: the test server sends a network switching message to the cloud speaker according to the test task, and the cloud speaker sets its network mode to WIFI network mode or mobile data network mode according to the network switching message.
[0008] Furthermore, the status information of the cloud speaker also includes the current network mode of the cloud speaker; In the step S2, the network mode of the cloud speaker is set according to the test task, specifically including: determining whether the current network mode is the same as the test network mode of the test task; if so, setting the network mode of the cloud speaker according to the test task, and executing step S3; if not, executing step S3.
[0009] Further, in the step S3, pushing a test message to the cloud speaker according to the test task specifically includes: generating the test message according to the test task, and pushing the test message to the cloud speaker at a preset interval.
[0010] Furthermore, the log data includes: message receiving time and message reply time.
[0011] Furthermore, the test message includes: a timestamp, a message number and voice broadcast content.
[0012] Furthermore, the step S3 also includes: the cloud speaker performs a language broadcast task according to the voice broadcast content.
[0013] Furthermore, the test message also includes: displaying the broadcast content; The step S3 also includes: the cloud speaker performs a display and broadcast task according to the display and broadcast content.
[0014] Another object of the present invention is to provide a cloud speaker network stress testing system, which is used to execute the above-mentioned cloud speaker network stress testing method. The cloud speaker network stress testing system includes: multiple cloud speakers, a test server and a data analysis module. The cloud speaker includes a network switching module, and the network switching module is used to set the network mode of the cloud speaker to a WIFI network mode or a mobile data network mode. The multiple cloud speakers are all communicatively connected to the test server, and the test server is used to push test messages to the cloud speakers and obtain log data of the cloud speakers. The data analysis module is communicatively connected to the test server, and the test server is used to perform data analysis on the log data and generate a test report.
[0015] Furthermore, among the multiple cloud speakers, device models of at least two of the cloud speakers are different from each other, the test server obtains the device models of the cloud speakers, and generates a test task according to the device models of the cloud speakers.
[0016] The beneficial effects of the present invention are that the cloud speaker network stress testing method provided by the present invention can configure the network mode of the cloud speaker according to preset test requirements to ensure that all network modes of the cloud speaker can perform network stress testing, and the method can also obtain the device model of the cloud speaker through status information to determine the hardware configuration of the cloud speaker, thereby generating different test tasks for cloud speakers with different hardware configurations, thereby improving the comprehensiveness and accuracy of the test results.
[0017] The cloud speaker network stress test provided by the present invention can implement multi-dimensional testing of each cloud speaker based on the device model and network mode to ensure the comprehensiveness of the test results, and the method can realize real-time monitoring of the network status of each cloud speaker and perform data analysis on the test results, thereby improving the efficiency of cloud speaker network operation and optimization. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A flowchart of the cloud speaker network stress testing method of the present invention; Figure 2 This is a block diagram of the cloud speaker network stress testing system described in the present invention.
[0019] Description of labels: 1. Cloud speaker; 2. Test server; 3. Data analysis module. DETAILED DESCRIPTION
[0020] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.
[0021] Please refer to Figure 1 as well as Figure 2 , a cloud speaker network stress testing method, comprising the following steps: S1. Obtain status information of a cloud speaker, and generate a test task according to the status information; wherein the status information of the cloud speaker includes a device model of the cloud speaker; S2. Setting the network mode of the cloud speaker according to the test task; S3. Pushing a test message to the cloud speaker according to the test task, wherein the cloud speaker receives the test message and generates log data; S4. Analyze the log data and generate a test report.
[0022] From the above description, it can be seen that the beneficial effects of the present invention are: the cloud speaker network stress testing method provided by the present invention can configure the network mode of the cloud speaker according to preset test requirements to ensure that all network modes of the cloud speaker can perform network stress testing, and the method can also obtain the device model of the cloud speaker through status information to determine the hardware configuration of the cloud speaker, thereby generating different test tasks for cloud speakers with different hardware configurations, thereby improving the comprehensiveness and accuracy of the test results.
[0023] The cloud speaker network stress test provided by the present invention can implement multi-dimensional testing of each cloud speaker based on the device model and network mode to ensure the comprehensiveness of the test results, and the method can realize real-time monitoring of the network status of each cloud speaker and perform data analysis on the test results, thereby improving the efficiency of cloud speaker network operation and optimization.
[0024] Furthermore, in step S2, the network mode of the cloud speaker is set according to the test task, specifically including: the test server sends a network switching message to the cloud speaker according to the test task, and the cloud speaker sets its network mode to WIFI network mode or mobile data network mode according to the network switching message.
[0025] It can be seen from the above description that the method provided by the present invention can set the network mode of the cloud speaker according to the preset test, so that the cloud speaker can test its WIFI network mode and mobile data network mode respectively.
[0026] Furthermore, the status information of the cloud speaker also includes the current network mode of the cloud speaker; In the step S2, the network mode of the cloud speaker is set according to the test task, specifically including: determining whether the current network mode is the same as the test network mode of the test task; if so, setting the network mode of the cloud speaker according to the test task, and executing step S3; if not, executing step S3.
[0027] It can be seen from the above description that the cloud speaker network stress testing method provided by the present invention can set the network mode of the cloud speaker according to the test task.
[0028] Further, in the step S3, pushing a test message to the cloud speaker according to the test task specifically includes: generating the test message according to the test task, and pushing the test message to the cloud speaker at a preset interval.
[0029] From the above description, it can be seen that the cloud speaker network stress testing method provided by the present invention can obtain the device model of the cloud speaker according to the status information, and generate different test tasks for cloud speakers of different device models, and the test messages pushed to cloud speakers of different device models are different, so as to simulate the real workload for speakers of various device models and improve the accuracy of the test results.
[0030] Furthermore, the log data includes: message receiving time and message reply time.
[0031] From the above description, it can be seen that the message delay can be calculated based on the message reception time, and the message reply duration is the time difference from the test server pushing the test message to the cloud speaker sending a feedback message to the test server.
[0032] Furthermore, the test message includes: a timestamp, a message number and voice broadcast content.
[0033] As can be seen from the above description, when a network stress test is performed on a cloud speaker without a screen, the test message carries voice broadcast content, and the test content is the same or similar to the information load of the broadcast message received when the cloud speaker without a screen is working, so as to simulate the workload in a real working environment for the cloud speaker, thereby improving the comprehensiveness and accuracy of the network stress test results of the cloud speaker. The timestamp and message number of the test message can facilitate the tracking and analysis of the log data generated by the corresponding test message.
[0034] Furthermore, the step S3 also includes: the cloud speaker performs a language broadcast task according to the voice broadcast content.
[0035] From the above description, it can be seen that after receiving the test message, the cloud speaker will perform the voice broadcast task according to the test message. Therefore, the cloud speaker network stress testing method provided by the present invention can collect the voice broadcast success rate and voice broadcast delay data of the cloud speaker to improve the comprehensiveness and accuracy of the cloud speaker network stress test results.
[0036] Furthermore, the test message also includes: displaying the broadcast content; The step S3 also includes: the cloud speaker performs a display and broadcast task according to the display and broadcast content.
[0037] From the above description, it can be seen that when conducting a network stress test on a cloud speaker equipped with a screen, the test message carries both voice broadcast content and display broadcast content. The information load of the test message is the same or similar to that of the broadcast message received by the cloud speaker, so as to simulate the real workload of the cloud speaker equipped with a screen, thereby ensuring the accuracy and comprehensiveness of the network stress test results.
[0038] Another object of the present invention is to provide a cloud speaker network stress testing system, which is used to execute the above-mentioned cloud speaker network stress testing method. The cloud speaker network stress testing system includes: multiple cloud speakers, a test server and a data analysis module. The cloud speaker includes a network switching module, and the network switching module is used to set the network mode of the cloud speaker to a WIFI network mode or a mobile data network mode. The multiple cloud speakers are all communicatively connected to the test server, and the test server is used to push test messages to the cloud speakers and obtain log data of the cloud speakers. The data analysis module is communicatively connected to the test server, and the test server is used to perform data analysis on the log data and generate a test report.
[0039] It can be seen from the above description that the cloud speaker network stress testing system provided in this embodiment has at least all the beneficial effects of the above-mentioned cloud speaker network stress testing method.
[0040] Furthermore, among the multiple cloud speakers, device models of at least two of the cloud speakers are different from each other, the test server obtains the device models of the cloud speakers, and generates a test task according to the device models of the cloud speakers.
[0041] It can be seen from the above description that the test server can test multiple cloud speakers of different device models at the same time, and the test tasks generated for cloud speakers of different device models are different.
[0042] Embodiment 1 Please refer to Figure 1 to Figure 2 , Embodiment 1 of the present invention is to provide a cloud audio network stress testing method to solve the problems of low accuracy, low reliability and low comprehensiveness of existing cloud speaker stress network testing results.
[0043] The cloud speaker network stress testing method provided in this embodiment includes the following steps: S1. Obtain status information of the cloud speaker and generate a test task according to the status information; S2. Setting the network mode of the cloud speaker according to the test task; S3. Pushing a test message to the cloud speaker according to the test task, wherein the cloud speaker receives the test message and generates log data; S4. Analyze the log data and generate a test report.
[0044] In this embodiment, the status information of the cloud speaker includes: the device model of the cloud speaker and the current network mode of the cloud speaker.
[0045] The cloud speaker network stress testing method can confirm the network mode of the cloud speaker through the status information of the cloud speaker, and obtain the device model of the cloud speaker, generate different test tasks corresponding to cloud speakers with different device models, and then push corresponding test messages to the cloud speaker according to the test tasks.
[0046] In this embodiment, step S1 specifically includes: the cloud speaker is connected to the test server for communication, the test server obtains the status information of the cloud speaker, and records the device model and current network mode of the cloud speaker according to the status information of the cloud speaker; In step S2, the network mode of the cloud speaker is set according to the test task, specifically including: determining whether the current network mode is the same as the test network mode of the test task; if so, setting the network mode of the cloud speaker according to the test task and then executing step S3; if not, executing step S3.
[0047] In step S2 of the cloud speaker network stress testing method provided in this embodiment, the network mode of the cloud speaker is set according to the test task, specifically including: the test server sends a network switching message to the cloud speaker according to the test task, and the cloud speaker sets its network mode to WIFI network mode or mobile data network mode according to the network switching message.
[0048] The cloud speaker network stress testing method provided in this embodiment can set the network mode of the cloud speaker according to preset test requirements to ensure that the test data of the WIFI network mode and the mobile data network mode of the cloud speaker can be obtained respectively through the cloud speaker network stress testing method to improve the comprehensiveness of the test results.
[0049] In the step S3, pushing the test message to the cloud speaker according to the test task specifically includes: generating the test message according to the test task, and pushing the test message to the cloud speaker at a preset interval.
[0050] In this embodiment, the preset interval time can be set as required, and the preset interval time can be a dynamically configured time, and the preset interval time is adjusted in real time according to the data analysis results of the log data. The preset interval time can also be set as a statically configured time, for example, the preset interval time can be set to 30 seconds.
[0051] In this embodiment, the test messages generated corresponding to different test tasks are different. For example: The cloud speaker network stress test method can be used to perform network stress tests on a first cloud speaker and a second cloud speaker respectively, wherein the first cloud speaker and the second cloud speaker have different device models, wherein the first cloud speaker is provided with a voice module, and the first cloud speaker can realize a voice broadcast function, and the second cloud speaker is provided with a voice module and a display screen module, and the second cloud speaker can realize a cloud voice broadcast function and a display broadcast function; When the network stress test method provided by this embodiment is applied, the method includes the following steps: obtaining first status information of the first cloud speaker and second status information of the second cloud speaker, and generating a first test task and a second test task respectively corresponding to the first status information and the second status information; pushing a first test message to the first cloud speaker according to the first test task, and pushing a second test message to the second cloud speaker according to the second test task; The first test message includes a timestamp, a message number and a voice broadcast content; the first cloud speaker performs a voice broadcast task according to the voice broadcast content; the second test message includes a timestamp, a message number, a voice broadcast content and a display broadcast content, the second cloud speaker performs a voice broadcast task according to the voice broadcast content, and performs a display broadcast task according to the display broadcast content; wherein, the first test message does not contain a display broadcast task, so the information load of the first test message is less than the information load of the second test message.
[0052] The existing cloud speaker network stress test lacks consideration of the condition that the information load of the broadcast messages received by cloud speakers of different device models in actual work is different. The same test message is used for cloud speakers of various device models, and only the sending and receiving time and delay data are simply obtained to judge the network status; however, the information load of the broadcast message will affect the network traffic, data transmission rate, etc. of the cloud speaker, so the accuracy of the existing cloud speaker network stress test results is low.
[0053] The cloud speaker network stress testing method provided in this embodiment can generate different test tasks for cloud speakers of different device models to simulate real workloads for cloud speakers of different device models, and the cloud speaker can perform corresponding broadcast tasks according to the test message, so that the broadcast success rate of the cloud speaker can be collected according to the cloud speaker network stress test. The cloud speaker network stress testing method can effectively improve the accuracy and comprehensiveness of the test results.
[0054] In this embodiment, the above log data includes but is not limited to: message receiving time, message reply time, and broadcast task results. Among them, the message reply time is the time difference from the test server pushing the test message to the cloud speaker sending the feedback message to the test server.
[0055] Please refer to Figure 2The present embodiment also provides a cloud speaker network stress testing system, which is used to execute the above-mentioned cloud speaker network stress testing method. The cloud speaker network stress testing system includes: multiple cloud speakers 1, a test server 2 and a data analysis module 3. The cloud speaker 1 includes a network switching module, which is used to set the network mode of the cloud speaker 1 to a WIFI network mode or a mobile data network mode. The multiple cloud speakers 1 are all connected to the test server 2 for communication. The test server 2 is used to push test messages to the cloud speakers 1 and obtain the log data of the cloud speakers 1. The data analysis module 3 is connected to the test server 2 for communication. The test server 2 is used to perform data analysis on the log data and generate a test report.
[0056] In this embodiment, the cloud speaker can switch between the WIFI network mode and the mobile data network mode through the network switching module and maintain a stable connection. The cloud speaker can receive the test message pushed by the test server and perform the broadcast task according to the test message. The cloud speaker will record the reception time, delay status and broadcast task results of the message under the test.
[0057] In the cloud speaker network stress test system provided in this embodiment, the test server generates a test task according to the device model and network mode, and pushes a test message to the cloud speaker at a preset interval. The test server can obtain log data from the cloud speaker, send the log data to the data analysis module, update the statistical analysis results of the data analysis module in real time, and provide the operation and maintenance personnel with the function of real-time query of test data according to the generated test report.
[0058] The data analysis module of the cloud speaker network stress testing system provided in this embodiment can calculate the broadcast success rate and statistical message delay in real time based on log data.
[0059] In summary, the cloud speaker network stress testing method and system provided by the present invention can be used to test the network connection performance of the cloud speaker with high accuracy and comprehensiveness, ensure the stable operation of the cloud speaker under high load through high-frequency stress testing, reduce the voice broadcast delay or error rate, and ensure the user transaction experience. In addition, the cloud speaker network stress testing method provided by the present invention can switch the network modes such as mobile data and WiFi of the cloud speaker, and perform stress tests respectively, optimize the connection performance of the cloud speaker under various network modes, and reduce the broadcast interruption or delay caused by network instability. The cloud speaker network stress testing method provided by the present invention can provide a scientific basis for equipment improvement and algorithm optimization by recording data such as broadcast success rate and delay in real time, verify the network performance of the cloud speaker in various scenarios, and enable the cloud speaker to meet the network testing requirements of different scenarios. This method can discover performance bottlenecks or network problems in advance, reduce maintenance costs caused by equipment failures, and the test data obtained by this method can help the cloud speaker provide stable and low-latency broadcast services, optimize consumers' payment experience, and enhance merchants' trust in products.
[0060] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A cloud speaker network stress testing method, characterized in that: The following steps are involved: S1. Obtain status information of a cloud speaker, and generate a test task according to the status information; wherein the status information of the cloud speaker includes a device model of the cloud speaker; S2. Setting the network mode of the cloud speaker according to the test task; S3. Pushing a test message to the cloud speaker according to the test task, wherein the cloud speaker receives the test message and generates log data; S4. Analyze the log data and generate a test report.
2. The cloud speaker network stress testing method according to claim 1, characterized in that: In the step S2, the network mode of the cloud speaker is set according to the test task, specifically including: the test server sends a network switching message to the cloud speaker according to the test task, and the cloud speaker sets its network mode to WIFI network mode or mobile data network mode according to the network switching message.
3. The cloud speaker network stress testing method according to claim 1, characterized in that: The status information of the cloud speaker also includes the current network mode of the cloud speaker; In the step S2, the network mode of the cloud speaker is set according to the test task, specifically including: determining whether the current network mode is the same as the test network mode of the test task; if so, setting the network mode of the cloud speaker according to the test task, and executing step S3; if not, executing step S3.
4. The cloud speaker network stress testing method according to claim 1, characterized in that: In the step S3, pushing the test message to the cloud speaker according to the test task specifically includes: generating the test message according to the test task, and pushing the test message to the cloud speaker at a preset interval.
5. The cloud speaker network stress testing method according to claim 1, characterized in that: The log data includes: message receiving time and message reply time.
6. The cloud speaker network stress testing method according to claim 1, characterized in that: The test message includes: a timestamp, a message number and voice broadcast content.
7. The cloud speaker network stress testing method according to claim 6, characterized in that: The step S3 also includes: the cloud speaker performs a language broadcast task according to the voice broadcast content.
8. The cloud speaker network stress testing method according to claim 1, characterized in that: The test message also includes: displaying the broadcast content; The step S3 also includes: the cloud speaker performs a display and broadcast task according to the display and broadcast content.
9. A cloud speaker network stress testing system, characterized in that: The cloud speaker network stress testing system is used to execute the cloud speaker network stress testing method described in any one of claims 1 to 8, and the cloud speaker network stress testing system includes: multiple cloud speakers, a test server and a data analysis module, the cloud speaker includes a network switching module, the network switching module is used to set the network mode of the cloud speaker to a WIFI network mode or a mobile data network mode, the multiple cloud speakers are all communicatively connected to the test server, the test server is used to push test messages to the cloud speakers and obtain log data of the cloud speakers, the data analysis module is communicatively connected to the test server, and the test server is used to perform data analysis on the log data and generate a test report.
10. The cloud speaker network stress testing system according to claim 9, characterized in that: Among the multiple cloud speakers, the device models of at least two of the cloud speakers are different from each other. The test server obtains status information of the cloud speakers, the status information including the device model of the cloud speaker and the network status of the cloud speaker, and generates a test task according to the device model of the cloud speaker.