Internet of videos streaming media pressure measurement method and system

Through the Visual Internet streaming media stress testing method, through the configuration of simulation strategies and target scenarios, the problem of audio and video traffic performance evaluation in the Visual Internet environment is solved, and efficient and flexible stress testing and performance report generation are achieved.

CN119342306APending Publication Date: 2025-01-21E SURFING VISION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411473323.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

In the video network environment, it is difficult for the prior art to effectively conduct comprehensive performance evaluation of audio and video traffic, especially when simulating the real-time streaming media interaction scenario between large-scale audio and video equipment and access centers for high-intensity stress testing.

Method used

This paper proposes a video streaming media stress testing method. By obtaining the simulation strategy of the preset stress testing scenario, the target stress testing scenario is determined, and the target stress testing environment is configured according to the target scenario to perform streaming media interaction. During the execution process, the target simulation strategy is executed, performance data is obtained, and a stress test report is automatically generated.

Benefits of technology

Improve the efficiency of pressure testing, increase the flexibility of the pressure testing scene, enable it to adapt to a variety of different test needs. Through automatically generating pressure test reports, it reduces the work burden of testers and improves the accuracy and efficiency of the test. Essence

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119342306A_ABST
    Figure CN119342306A_ABST
Patent Text Reader

Abstract

The invention relates to an articulated naturality web streaming media pressure measurement method and system, and belongs to the technical field of articulated naturality web, and the method comprises the steps: obtaining a simulation strategy of a preset pressure measurement scene; determining a target pressure measurement scene, and obtaining a target simulation strategy of the target pressure measurement scene from the simulation strategies of the preset pressure measurement scene; configuring a target pressure measurement environment according to the target pressure measurement scene, and executing streaming media interaction under the condition that the configuration of the target pressure measurement environment is completed; and in the process of executing the streaming media interaction, executing the target simulation strategy, obtaining performance data of the target scene, and automatically generating a pressure measurement report based on the performance data. According to the method, the pressure testing efficiency is improved, the flexibility of a pressure testing scene is improved, the pressure testing scene can adapt to various different testing requirements, the workload of testing personnel is relieved by automatically generating the pressure testing report, and the testing accuracy and efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of visual networking, and in particular, relates to a method and system for stress testing streaming media in a visual networking. Background Art

[0002] With the vigorous development of smart home networks and the increasing diversification and intelligence of home smart devices, terminal devices including home cameras, doorbell cameras, access control displays, smart speakers, smart TVs, smart set-top boxes, mobile phones, computers, etc. have been widely popularized in tens of millions of households. These devices achieve efficient networking through home multimedia gateways, build home local area networks, promote interconnection between devices and seamless sharing of media information, and become a new trend in the development of the industry. However, the comprehensive performance evaluation of audio and video traffic in the visual networking environment is quite different from the single request-response mode of traditional digital business systems. The performance test of the visual networking needs to focus on simulating the real-time streaming media interaction scenarios between large-scale audio and video devices and access centers, and conduct high-intensity stress testing. Therefore, how to better implement stress testing under the visual networking has become an urgent problem to be solved. Summary of the invention

[0003] In view of the above shortcomings of the prior art, the purpose of the invention is to provide a visual network streaming media stress testing method and system. The method improves the efficiency of stress testing and increases the flexibility of stress testing scenarios.

[0004] According to a first aspect of the present invention, a visual network streaming media stress testing method is proposed, comprising: S1, obtaining a simulation strategy for a preset stress testing scenario; S2, determining a target stress testing scenario, and obtaining a target simulation strategy for the target stress testing scenario from the simulation strategy for the preset stress testing scenario; S3, configuring a target stress testing environment according to the target stress testing scenario, and executing streaming media interaction when the configuration of the target stress testing environment is completed; S4, executing the target simulation strategy during the execution of the streaming media interaction, and obtaining performance data of the target scenario, and automatically generating a stress testing report based on the performance data.

[0005] Furthermore, the types of simulation strategies include one or more types, wherein obtaining the simulation strategy of the preset stress testing scenario includes: determining the level of user demand; determining the simulation strategy of the preset stress testing scenario according to business characteristics and the level of user demand.

[0006] Furthermore, the simulation strategy of the preset stress testing scenario is determined according to the business characteristics and the level of the user demand, including: based on the business characteristics, when the level of the user demand is level one, the type of simulation strategy of the preset stress testing scenario is one; based on the business characteristics, when the level of the user demand is level two, the type of simulation strategy of the preset stress testing scenario is two; based on the business characteristics, when the level of the user demand is level three, the type of simulation strategy of the preset stress testing scenario is three; wherein, the higher the level of the user demand, the more types of simulation strategies of the preset stress testing scenario.

[0007] Furthermore, performance data of the target scenario is obtained, and a stress testing report is automatically generated based on the performance data, including: determining configuration parameters of the target stress testing scenario, the configuration parameters including a configuration interface, a request volume of the configuration interface, an execution time of the configuration interface, and performance indicators that need to be monitored, the performance indicators including CPU utilization, memory usage, and network latency; calling the configuration interface according to a preset time, recording the request volume of the configuration interface, the execution time of the configuration interface, and the value of the performance indicator; and automatically generating the stress testing report based on the recorded request volume of the configuration interface, the execution time of the configuration interface, and the value of the performance indicator.

[0008] Furthermore, the stress testing report also includes bottleneck analysis and optimization suggestions.

[0009] Furthermore, automatically generating a stress testing report based on the performance data also includes: determining an abnormal response time and an abnormal throughput of the target stress testing scenario; and automatically generating the stress testing report according to the abnormal response time and the abnormal throughput.

[0010] Furthermore, the stress testing report includes exception handling and system stability assessment.

[0011] According to a second aspect of the present invention, a visual network streaming media stress testing system is proposed, comprising: a first acquisition module, used to acquire a simulation strategy for a preset stress testing scenario; a second acquisition module, used to determine a target stress testing scenario, and acquire a target simulation strategy for the target stress testing scenario from the simulation strategy for the preset stress testing scenario; an execution module, used to configure a target stress testing environment according to the target stress testing scenario, and execute streaming media interaction when the configuration of the target stress testing environment is completed; a generation module, used to execute the target simulation strategy during the execution of the streaming media interaction, and acquire performance data of the target scenario, and automatically generate a stress testing report based on the performance data.

[0012] According to a third aspect of the present invention, an electronic device is proposed, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any of the methods described in the first aspect of the present invention.

[0013] According to a fourth aspect of the present invention, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any one of the methods according to the first aspect of the present invention.

[0014] The beneficial effects of the present invention are as follows:

[0015] The visual network streaming media stress testing method and system described in the present invention obtains a simulation strategy for a preset stress testing scenario; determines a target stress testing scenario, and obtains a target simulation strategy for the target stress testing scenario from the simulation strategy for the preset stress testing scenario; configures a target stress testing environment according to the target stress testing scenario, and executes streaming media interaction when the configuration of the target stress testing environment is completed; in the process of executing the streaming media interaction, executes the target simulation strategy, and obtains the performance data of the target scenario, and automatically generates a stress testing report based on the performance data. This method improves the efficiency of stress testing, increases the flexibility of stress testing scenarios, enables it to adapt to a variety of different testing requirements, and reduces the workload of testers by automatically generating stress testing reports, and improves the accuracy and efficiency of testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings are only used to illustrate specific embodiments and are not considered to limit the present invention. In the entire drawings, the same reference symbols represent the same components. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.

[0017] Figure 1 is a flow chart of a method for stress testing of streaming media in a visual network according to an embodiment of the present invention;

[0018] Figure 2 is a flow chart of a visual network streaming media stress testing method according to a specific embodiment of the present invention;

[0019] Figure 3 is a schematic diagram of a visual network streaming media stress testing system according to an embodiment of the present invention;

[0020] Figure 4 It is a structural block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0021] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.

[0022] Furthermore, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts disclosed in the present invention.

[0023] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. The terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0024] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of methods and systems consistent with some aspects of the present invention as detailed in the appended claims.

[0025] With the vigorous development of smart home networks and the increasing diversification and intelligence of home smart devices, terminal devices including home cameras, doorbell cameras, access control displays, smart speakers, smart TVs, smart set-top boxes, mobile phones, computers, etc. have been widely popularized in tens of millions of households. These devices are efficiently networked through home multimedia gateways to build home LANs, promote the interconnection between devices and the seamless sharing of media information, and become a new trend in the development of the industry.

[0026] However, the comprehensive performance evaluation of audio and video traffic in the visual networking environment is quite different from the single request-response mode of traditional digital business systems. The visual networking performance test needs to focus on simulating the real-time streaming interaction scenario between large-scale audio and video equipment and access centers, and conduct high-intensity stress testing. In this process, the key is to collect and analyze key performance indicators such as network bandwidth usage, memory usage, CPU load, disk I / O, etc. from terminals, transmission links to access centers in real time to accurately identify full-link performance bottlenecks and potential capacity risks.

[0027] In addition, in order to comprehensively evaluate the robustness and reliability of the system, the test must also cover a variety of abnormal scenario simulations, such as sudden terminal offline, freezes and packet loss during transmission, overload of the access center, and even service interruption. Through the simulation of these extreme situations, we can gain in-depth insight into and quantify the performance of the system under different pressures, providing solid data support for subsequent architecture optimization, resource allocation, and fault prevention.

[0028] To this end, the present invention proposes a visual network streaming media stress testing method, system and related equipment. Specifically, the visual network streaming media stress testing method, system and related equipment of an embodiment of the present invention are described below with reference to the accompanying drawings.

[0029] Figure 1 It is a flow chart of a visual network streaming media stress testing method according to an embodiment of the present invention. It should be noted that the visual network streaming media stress testing method of the embodiment of the present invention can be applied to the visual network streaming media stress testing system of the embodiment of the present invention. The visual network streaming media stress testing system can be configured on an electronic device or in a server. This embodiment of the present application does not limit this.

[0030] like Figure 1 As shown in the figure, the visual network streaming media stress testing method includes:

[0031] S110, obtaining a simulation strategy for a preset stress testing scenario.

[0032] In the embodiment of the present invention, the level of user demand is determined; and the simulation strategy of the preset stress testing scenario is determined according to the business characteristics and the level of user demand. The specific implementation method can refer to the subsequent embodiments.

[0033] S120: Determine a target stress testing scenario, and obtain a target simulation strategy for the target stress testing scenario from simulation strategies for preset stress testing scenarios.

[0034] In an embodiment of the present invention, when a target stress testing scenario is determined, a simulation strategy corresponding to the name or keyword of the target stress testing scenario can be obtained from simulation strategies of preset stress testing scenarios based on the name or keyword of the target stress testing scenario, and the simulation strategy can be used as the target simulation strategy.

[0035] S130, configuring a target stress testing environment according to a target stress testing scenario, and executing streaming media interaction when the configuration of the target stress testing environment is completed.

[0036] For example, the target stress test scenario is a scenario where a camera pulls a live stream. The goal is to determine whether it can support 10,000 concurrent accesses. That is, the target stress test environment is to prepare 10,000+ simulated camera devices to perform streaming media interaction.

[0037] S140, in the process of executing the streaming media interaction, executing the target simulation strategy, obtaining the performance data of the target scenario, and automatically generating a stress test report based on the performance data.

[0038] In the embodiment of the present invention, during the execution of streaming media interaction, a target simulation strategy needs to be executed, and then during the execution of the target simulation strategy, performance data of the target scenario is obtained to automatically generate a stress test report based on the performance data. The specific implementation method can refer to the subsequent embodiments.

[0039] According to the visual network streaming media stress testing method of the embodiment of the present invention, the simulation strategy of the preset stress testing scenario is obtained; the target stress testing scenario is determined, and the target simulation strategy of the target stress testing scenario is obtained from the simulation strategy of the preset stress testing scenario; the target stress testing environment is configured according to the target stress testing scenario, and when the configuration of the target stress testing environment is completed, the streaming media interaction is performed; in the process of performing the streaming media interaction, the target simulation strategy is executed, and the performance data of the target scenario is obtained, and the stress testing report is automatically generated based on the performance data. This method improves the efficiency of stress testing, increases the flexibility of stress testing scenarios, enables it to adapt to a variety of different testing requirements, and reduces the workload of testers by automatically generating stress testing reports, and improves the accuracy and efficiency of testing.

[0040] In order to make it easier for those skilled in the art to understand the present invention, Figure 2 A visual network streaming media stress testing method according to a specific embodiment of the present invention is as follows: Figure 2 As shown, the visual network streaming media stress testing method includes:

[0041] S210, determining the level of user demand.

[0042] Among them, user needs include but are not limited to basic needs, expected needs, exciting needs, etc. Basic needs can be understood as the stability and reliability of the system, expected needs can be understood as the response speed and ease of use of the system, and exciting needs can be understood as the innovative functions and user experience of the system. For example, the level of basic needs can be determined as level one, the level of expected needs can be determined as level two, and the level of exciting needs can be determined as level three.

[0043] S220: Determine a simulation strategy for a preset stress testing scenario according to business characteristics and user demand levels.

[0044] In an embodiment of the present invention, based on business characteristics, when the level of user demand is level one, the type of simulation strategy for the preset stress testing scenario is one; based on business characteristics, when the level of user demand is level two, the type of simulation strategy for the preset stress testing scenario is two; based on business characteristics, when the level of user demand is level three, the type of simulation strategy for the preset stress testing scenario is three; wherein, the higher the level of user demand, the more types of simulation strategies for the preset stress testing scenarios.

[0045] Among them, business characteristics include but are not limited to business types, business processes, user behavior patterns, etc.

[0046] The types of simulation strategies include one or more types. For example, the types of simulation strategies include but are not limited to load testing, stability testing, stress testing, benchmark testing, capacity testing, fatigue testing, limit testing, concurrent testing, and the like.

[0047] For example, the preset stress test scenario is a scenario where a live stream is pulled from a camera. An overall performance analysis is performed on the business of the preset stress test scenario. The stress test strategy first selects a load test to find the maximum load, then uses a stability test to confirm the stability of the system for long-term operation, and then uses a stress test to determine the system's fault tolerance and recoverability when the system's normal load is exceeded.

[0048] S230: Determine a target stress testing scenario, and obtain a target simulation strategy for the target stress testing scenario from simulation strategies for preset stress testing scenarios.

[0049] S240, configuring a target stress testing environment according to a target stress testing scenario, and executing streaming media interaction when the configuration of the target stress testing environment is completed.

[0050] In the embodiment of the present invention, the implementation of steps S230 - S240 may refer to the implementation of steps S120 - S130 described above, and the present invention will not elaborate on this.

[0051] S250, executing a target simulation strategy during the process of executing streaming media interaction.

[0052] S260: Obtain performance data of the target scenario, and automatically generate a stress testing report based on the performance data.

[0053] In an embodiment of the present invention, when executing a target simulation strategy during streaming media interaction, the configuration parameters of the target stress testing scenario can be determined, the configuration parameters including the configuration interface, the request volume of the configuration interface, the execution time of the configuration interface, and the performance indicators that need to be monitored, the performance indicators including CPU utilization, memory usage, and network latency; the configuration interface is called according to a preset time, and the request volume of the configuration interface, the execution time of the configuration interface, and the value of the performance indicator are recorded; and a stress testing report is automatically generated based on the recorded request volume of the configuration interface, the execution time of the configuration interface, and the value of the performance indicator.

[0054] That is to say, in the process of executing streaming media interaction, when the target stress test scenario (such as the scenario of the camera pulling live stream) is stress tested according to the target simulation strategy (such as load testing, stability testing, etc.), the system will collect and record a series of performance data. These data include but are not limited to the number of requests for the configuration interface, the execution time of the configuration interface, CPU utilization, memory usage, network latency and other key performance indicators. Once the performance data is collected, the system will automatically analyze and process the data, and then generate a detailed stress test report. This report will comprehensively reflect the performance of the target stress test scenario under specific conditions, including but not limited to key information such as the system's response time, processing power, and resource utilization.

[0055] In an embodiment of the present invention, the stress test report also includes bottleneck analysis and optimization suggestions. The bottleneck analysis can be understood as determining whether the access volume of the configuration interface has reached the bottleneck of the system. If it has reached the bottleneck of the system, the request can no longer be processed. If it is processed again, the configuration interface will have problems such as error reporting or slow response. The optimization suggestion can be understood as providing a solution suggestion for the bottleneck analysis.

[0056] In an embodiment of the present invention, when executing a target simulation strategy during streaming media interaction, the abnormal response time and abnormal throughput of the target stress test scenario are determined; and a stress test report is automatically generated based on the abnormal response time and abnormal throughput. The stress test report includes abnormal handling and system stability evaluation.

[0057] The abnormal response time may be understood as the response time exceeding the preset time, and the abnormal throughput may be understood as the throughput exceeding the preset throughput.

[0058] In a specific embodiment of the present invention, in a digital village scene, there are a large number of surveillance camera devices, and the addresses of the surveillance devices on one street range from 1 to 1000. These camera devices need to transmit audio and video streams with the digital village monitoring center (address A) to achieve monitoring of every corner of the village. Testers designed a variety of stress test scenarios based on actual conditions. These include a single camera device transmitting video streams in real time, multiple camera devices transmitting video streams at the same time, simulating network packet loss scenarios at the access center, etc. Test scenario A: The tester simulates the stress test scenario of new device online by using the strategy of "adding one camera device online every second and transmitting real-time monitoring images". Monitor the full-link performance of the device connection channel to the access center during the online process of all devices. Test scenario B: When all devices in test scenario A are online and all devices are in a continuous transmission state, the stress test control end issues "at the access center (address A)" to execute the network intermittent packet loss exception. Monitor the full-link performance of the device connection channel to the access center during the online process of all devices, and check whether the video stored at the access center is complete. This method uses a virtual machine to simulate the video streams collected by large-scale terminal devices, and uses active reporting or passive pulling to perform concurrent stress testing with the device access center. During the simulated stress test, the system collects performance data such as network, memory, CPU, and disk utilization from the terminal and transmission line to the access center, and analyzes the performance bottlenecks and hidden dangers of the entire link. At the same time, various abnormal scenarios such as terminal offline, transmission jams, transmission packet loss, overload of the access center, and suspension of service are simulated to evaluate the reliability of the entire link. The gradient stress test function is used to simulate different pressure load conditions to evaluate the capacity of the entire link and formulate reasonable capacity planning and deployment plans.

[0059] According to the visual network streaming media stress testing method of the embodiment of the present invention, by clearly distinguishing basic needs, expected needs and exciting needs, and setting different levels for them, the user's needs can be understood and positioned more accurately, thereby ensuring that all aspects of user concern can be fully covered during the performance test process; according to the business characteristics and the level of user needs, the simulation strategy of the preset stress testing scenario is flexibly formulated to ensure that the test scenario is closer to the actual business scenario and improve the pertinence and effectiveness of the test. At the same time, as the user demand level increases, the types of simulation strategies are increased, and the performance of the system can be evaluated more comprehensively; after determining the target stress testing scenario, the target simulation strategy can be quickly obtained from the simulation strategy of the preset stress testing scenario, and the target stress testing environment can be configured accordingly. This greatly improves the efficiency of setting up the test environment and shortens the test cycle; in the process of executing streaming media interaction, the target stress testing scenario is stress tested according to the target simulation strategy, and performance data including key performance indicators such as the request volume, execution time, CPU utilization, memory usage, and network delay of the configuration interface can be fully collected. These data provide a solid foundation for the subsequent generation of stress testing reports; the system can automatically analyze and process the collected performance data to generate a detailed stress testing report. This report not only comprehensively reflects the performance of the target stress test scenario under specific conditions, but also includes bottleneck analysis and optimization suggestions, providing strong support for system performance optimization; by determining the abnormal response time and abnormal throughput of the target stress test scenario, and automatically generating a stress test report including abnormal handling conditions and system stability evaluation, potential problems in the system can be discovered and handled in a timely manner to ensure the stability and reliability of the system; this method is suitable for stress test simulation of any visual network streaming media acquisition and transmission scenario, and supports simulation capabilities of different loads and abnormal scenarios, so as to evaluate the performance, capacity and reliability of the system under high load and different network conditions, and ultimately achieve improved user experience through continuous improvement and optimization.

[0060] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0061] According to one aspect of an embodiment of the present invention, a visual network streaming media stress testing system is also provided. Figure 3is a schematic diagram of a visual network streaming media stress testing system according to an embodiment of the present invention; Figure 3 As shown, including:

[0062] A first acquisition module 310 is used to acquire a simulation strategy for a preset stress testing scenario;

[0063] A second acquisition module 320 is used to determine a target stress testing scenario and acquire a target simulation strategy of the target stress testing scenario from the simulation strategy of the preset stress testing scenario;

[0064] An execution module 330 is used to configure a target stress testing environment according to the target stress testing scenario, and execute streaming media interaction when the configuration of the target stress testing environment is completed;

[0065] The generation module 340 is used to execute the target simulation strategy and obtain the performance data of the target scenario during the execution of the streaming media interaction, and automatically generate a stress test report based on the performance data.

[0066] According to the visual network streaming media stress testing system of the embodiment of the present invention, the simulation strategy of the preset stress testing scenario is obtained; the target stress testing scenario is determined, and the target simulation strategy of the target stress testing scenario is obtained from the simulation strategy of the preset stress testing scenario; the target stress testing environment is configured according to the target stress testing scenario, and when the configuration of the target stress testing environment is completed, the streaming media interaction is performed; in the process of performing the streaming media interaction, the target simulation strategy is executed, and the performance data of the target scenario is obtained, and the stress testing report is automatically generated based on the performance data. This improves the efficiency of the stress testing, increases the flexibility of the stress testing scenario, enables it to adapt to a variety of different testing requirements, and reduces the workload of testers by automatically generating stress testing reports, thereby improving the accuracy and efficiency of the test.

[0067] Optionally, the types of simulation strategies include one or more types, wherein the first acquisition module 310 is specifically used to determine the level of user demand; and determine the simulation strategy of the preset stress testing scenario according to business characteristics and the level of user demand.

[0068] Optionally, the first acquisition module 310 is specifically used to, based on the business characteristics, when the level of the user demand is level one, provide one type of simulation strategy for the preset stress testing scenario; based on the business characteristics, when the level of the user demand is level two, provide two types of simulation strategies for the preset stress testing scenario; based on the business characteristics, when the level of the user demand is level three, provide three types of simulation strategies for the preset stress testing scenario; wherein, the higher the level of the user demand, the more types of simulation strategies for the preset stress testing scenario.

[0069] Optionally, a generation module 340 is specifically used to determine the configuration parameters of the target stress testing scenario, the configuration parameters including a configuration interface, a request volume of the configuration interface, an execution time of the configuration interface, and performance indicators that need to be monitored, the performance indicators including CPU utilization, memory usage, and network latency; calling the configuration interface according to a preset time, recording the request volume of the configuration interface, the execution time of the configuration interface, and the value of the performance indicator; and automatically generating the stress testing report based on the recorded request volume of the configuration interface, the execution time of the configuration interface, and the value of the performance indicator.

[0070] Optionally, the stress testing report also includes bottleneck analysis and optimization suggestions.

[0071] Optionally, the generation module 340 is specifically used to determine the abnormal response time and abnormal throughput of the target stress testing scenario; and automatically generate the stress testing report according to the abnormal response time and the abnormal throughput.

[0072] Optionally, the stress testing report includes exception handling and system stability assessment.

[0073] According to one aspect of an embodiment of the present invention, an electronic device is provided.

[0074] Figure 4 Schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Figure 4 As shown, the electronic device may include one or more ( Figure 4 Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a microprocessor (Microprocessor Unit, referred to as MPU) or a programmable logic device (Programmable logic device, referred to as PLD)) and a memory 104 for storing data. In an exemplary embodiment, the electronic device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 4 The structure shown is for illustration only and does not limit the structure of the above terminal device. Figure 4 More or fewer components as shown, or with Figure 4 Equivalent functions or comparisons shown Figure 4 A different configuration with more features is shown.

[0075] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the visual network streaming media stress testing method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0076] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the switching device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0077] The present invention proposes a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute a visual network streaming media stress testing method.

[0078] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation schemes of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, but not to limit the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.

[0079] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0080] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

[0081] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the above embodiments, or replace some of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. Any changes or replacements that can be easily thought of by those skilled in the art within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.

Claims

1. A visual network streaming media stress testing method, characterized in that: include: S1, obtain the simulation strategy of the preset stress testing scenario; S2, determining a target stress testing scenario, and obtaining a target simulation strategy for the target stress testing scenario from the simulation strategy for the preset stress testing scenario; S3, configuring a target stress testing environment according to the target stress testing scenario, and executing streaming media interaction when the configuration of the target stress testing environment is completed; S4, in the process of executing the streaming media interaction, executing the target simulation strategy, acquiring the performance data of the target scenario, and automatically generating a stress test report based on the performance data.

2. The visual network streaming media stress testing method according to claim 1 is characterized in that: The types of simulation strategies include one or more types, wherein obtaining a simulation strategy for a preset stress testing scenario includes: Determine the level of user needs; The simulation strategy of the preset stress testing scenario is determined according to the business characteristics and the level of the user demand.

3. The visual network streaming media stress testing method according to claim 2 is characterized in that: Determining the simulation strategy of the preset stress testing scenario according to the business characteristics and the level of the user demand includes: Based on the business characteristics, when the level of the user demand is level one, the type of the simulation strategy of the preset stress testing scenario is one; Based on the business characteristics, when the level of the user demand is level 2, there are two types of simulation strategies for the preset stress testing scenario; Based on the business characteristics, when the level of the user demand is level three, there are three types of simulation strategies for the preset stress testing scenarios; wherein, the higher the level of the user demand, the more types of simulation strategies for the preset stress testing scenarios.

4. The visual network streaming media stress testing method according to claim 1 is characterized in that: Obtaining performance data of the target scenario and automatically generating a stress test report based on the performance data, including: Determine the configuration parameters of the target stress testing scenario, the configuration parameters include the configuration interface, the request volume of the configuration interface, the execution time of the configuration interface, and the performance indicators to be monitored, the performance indicators include CPU utilization, memory usage, and network latency; Calling the configuration interface according to a preset time, recording the request volume of the configuration interface, the execution time of the configuration interface, and the value of the performance indicator; The stress testing report is automatically generated based on the recorded request volume of the configuration interface, the execution time of the configuration interface, and the value of the performance indicator.

5. The visual network streaming media stress testing method according to claim 4 is characterized in that: The stress testing report also includes bottleneck analysis and optimization suggestions.

6. The visual network streaming media stress testing method according to claim 1, characterized in that: The stress test report is automatically generated based on the performance data, and also includes: Determine the abnormal response time and abnormal throughput of the target stress testing scenario; The stress testing report is automatically generated according to the abnormal response time and the abnormal throughput.

7. The visual network streaming media stress testing method according to claim 6 is characterized in that: The stress testing report includes exception handling and system stability assessment.

8. A visual network streaming media stress testing system, characterized in that: include: The first acquisition module is used to obtain a simulation strategy for a preset stress testing scenario; A second acquisition module is used to determine a target stress testing scenario and acquire a target simulation strategy of the target stress testing scenario from the simulation strategy of the preset stress testing scenario; An execution module, configured to configure a target stress testing environment according to the target stress testing scenario, and execute streaming media interaction when the configuration of the target stress testing environment is completed; A generation module is used to execute the target simulation strategy and obtain the performance data of the target scenario during the execution of the streaming media interaction, and automatically generate a stress test report based on the performance data.

9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 7.