A pressure testing method and system for power communication protocol software system
By constructing a pressure data generator and polynomial fitting function, gradually increasing the pressure data and calculating the response delay, the problem of difficult positioning of pressure boundaries in traditional testing methods is solved, and the pressure testing efficiency and accuracy of the power communication protocol software system is improved.
Patent Information
- Application Number
- CN202310076061.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-18
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2043-01-18
AI Technical Summary
Traditional stress testing methods are difficult to accurately locate the pressure boundaries of the power communication protocol software system in a multi-process and multi-threaded environment, resulting in inefficient testing and difficult to ensure the system's pressure data tolerance within a specified time in the case of simulated data avalanches.
By building a communication environment between the pressure data generator and the power communication protocol software system under test, the pressure data is gradually increased, the response delay is recorded, the polynomial fitting function is constructed to calculate the coefficients of pressure and response delay, the pressure data is randomly selected for testing, the data response delay and disturbance value are calculated, and the system's pressure accurate upper limit is obtained.
A comprehensive analysis of the pressure boundary of the power communication protocol software system is achieved, the working efficiency of the pressure test is improved, and the maximum pressure tolerance of the system is accurately determined.
Smart Images

Figure CN116094961B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of pressure testing, and in particular relates to a pressure testing method and system for a power communication protocol software system. Background Art
[0002] With the rapid development of society, the requirements for the stability and health of smart grids are becoming increasingly higher, and the requirements for dispatching master stations and plant stations are also becoming increasingly higher. The integrated monitoring system and dispatching master station system in the substation are the main equipment of the smart grid, and their fast and stable communication is particularly important.
[0003] The power grid is a real-time control system. Its generation, transmission, and consumption occur instantaneously, making it impossible to store or temporarily transfer power. Due to the sheer volume of data involved, a "data avalanche" can occur when a grid failure or disturbance occurs. In such situations, the ability to correctly transmit commands and display relevant information becomes a crucial indicator for maintaining grid stability. Furthermore, in unmanned substations, the recording and storage of fault information can significantly support fault analysts, enabling them to make informed decisions about the problem.
[0004] The traditional stress test method is to prepare multiple actual measurement and control devices, use air switches to uniformly control the telesignaling points of the measurement and control devices, simulate data avalanche by manually changing the position of the air switches, and finally query on the interface whether the number of received signals is consistent with the number of position changes.
[0005] This traditional approach often requires testers to repeatedly operate air switches to simulate data avalanches. If problems arise that are related to the number of times the test is repeated, this can require significant time and repeated testing. The most critical issue is that this traditional approach, through repeated retesting, makes it difficult to identify the actual stress boundary of the software system itself. In practice, repeated testing is often the only way to ensure that the system under test can withstand the stress data volume within a specified timeframe. This is primarily due to the multi-process, multi-threaded environment of the operating system, where information collection, processing, and upload depend on the processing times of different devices. This is fundamentally due to the uncertainty of external I / O and network latency in the communication system, which leads to uncertainty in the operating system's scheduling. As a distributed system, this leads to inconsistent stress data execution sequences, ultimately making it difficult to locate the stress boundary. Summary of the Invention
[0006] The purpose of the present invention is to provide a stress testing method and system for an electric power communication protocol software system, which comprehensively analyzes and determines the stress boundaries of the electric power communication protocol software system, thereby greatly improving the working efficiency of the stress test.
[0007] In order to achieve the above object, the technical solution adopted by the present invention is:
[0008] A first aspect of the present invention provides a stress testing method for a power communication protocol software system, comprising:
[0009] Build a communication environment for information exchange between the pressure data generator and the measured power communication protocol software system;
[0010] Control the pressure data generator to generate pressure data A and send it to the power communication protocol software system. Set the pressure data sent to the power communication protocol software system to gradually increase, and record the response delay of the power communication protocol software system; find the rough upper limit of the pressure of the tested power communication protocol software system;
[0011] Construct a polynomial fitting function of the delay value and the pressure data volume, and calculate the polynomial coefficients of the pressure and response delay using the polynomial fitting method;
[0012] Within the rough upper limit of the pressure of the tested power communication protocol software system, k pressure data B are randomly selected to test the data response delay of the power communication protocol software system. The data response delay of the power communication protocol software system to randomly selected k pressure data B is calculated by the polynomial approximate relationship between the delay value and the pressure data volume. in It represents randomly selecting the i-th group of pressure data from k pressure data sets, where i = 1, 2, 3...k;
[0013] Calculating data response delay and data response delay The response disturbance value is obtained; the normal distribution of the delay value and the pressure data volume is obtained according to the response disturbance value; the confidence interval is calculated to obtain the precise upper limit of the maximum pressure of the power communication protocol software system.
[0014] Preferably, the method of controlling the pressure data generator to generate pressure data A and send it to the power communication protocol software system includes:
[0015] The pressure data generator is limited to complete the production of pressure data A within the test time T seconds and send it to the power communication protocol software system;
[0016] The pressure data A sent by the control pressure data generator to the power communication protocol software system is gradually increased by multiples of P; P has 3 significant digits.
[0017] Preferably, the method for finding a rough upper limit of the pressure of the tested power communication protocol software system includes:
[0018] In response to the power communication protocol software system receiving the pressure data A sent by the pressure data generator, the system generates pressure response data and sends it back to the pressure data generator;
[0019] In response to the pressure data generator receiving the pressure response data of the power communication protocol software system under test, the amount of pressure response data and the response delay are obtained; if the pressure response data is equal to the amount of pressure data and the response delay is less than the set threshold, the next set of pressure data A test is automatically started; otherwise, the amount of pressure data in this test is output and used as a rough upper limit of the pressure of the power communication protocol software system under test.
[0020] Preferably, a method of constructing a polynomial fitting function of the delay value and the pressure data amount, and calculating the polynomial coefficients of the pressure and the response delay by using the polynomial fitting method includes:
[0021] Construct a polynomial fitting function of the delay value and the pressure data volume, the expression is:
[0022] f*(x)=a0x 3 +a1x 2 +a2x+a3
[0023] Where a0, a1, a2, and a3 are parameters to be determined for the fitting function, x is the independent variable, and takes the value of the pressure data. f*(·) is the polynomial fitting function of the delay value and the pressure data under each pressure condition tested.
[0024] The pressure data volume of pressure data A is j=1,2,3...m; the pressure response value corresponding to the pressure data A generated by the power communication protocol software system is Let the matrix
[0025] The calculation formula for the sum of squared errors S is:
[0026] S=(XA-Y) T (XA-Y)
[0027] The least squares method can be used to find the A matrix that minimizes the sum of squared errors S, thereby obtaining the parameter values of a0, a1, a2, and a3.
[0028] Preferably, within the rough upper limit of the pressure of the tested power communication protocol software system, the method of randomly selecting k pressure data B includes:
[0029] exist Randomly select k pressure data B within the range of pressure data, and the value of k is 30.
[0030] Preferably, calculate the data response delay and data response delay The method for obtaining the normal distribution of the delay value and the pressure data volume according to the response disturbance value includes:
[0031] Calculating data response delay and data response delay The expression formula of the response disturbance value is:
[0032]
[0033] In the formula, d i Indicated as data response delay and data response delay The response disturbance value of
[0034] Calculate d1, d2, d3...d k The average value μ and variance δ of the delay value and the normal distribution of the pressure data volume are obtained, d satisfies d~N(μ,δ), where N is the normal distribution function.
[0035] A second aspect of the present invention provides a stress testing system for a power communication protocol software system, comprising:
[0036] Communication module, used to build a communication environment for information exchange between the pressure data generator and the measured power communication protocol software system;
[0037] The coarse test module is used to control the pressure data generator to generate pressure data A and send it to the power communication protocol software system, set the pressure data sent to the power communication protocol software system to gradually increase, record the response delay of the power communication protocol software system; and find the rough upper limit of the pressure of the tested power communication protocol software system;
[0038] A model building module is used to build a polynomial fitting function of the delay value and the pressure data volume, and calculate the polynomial coefficients of the pressure and response delay using the polynomial fitting method;
[0039] The precision test module randomly selects k pressure data B within the rough upper limit of the pressure of the power communication protocol software system under test to test the data response delay of the power communication protocol software system The data response delay of the power communication protocol software system to randomly selected k pressure data B is calculated by the polynomial approximate relationship between the delay value and the pressure data volume. in It represents randomly selecting the i-th group of pressure data from k pressure data sets, where i = 1, 2, 3...k;
[0040] Processing and analysis module, used to calculate data response delay and data response delay The response disturbance value is obtained; the normal distribution of the delay value and the pressure data volume is obtained according to the response disturbance value; the confidence interval is calculated to obtain the precise upper limit of the maximum pressure of the power communication protocol software system.
[0041] A third aspect of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the stress testing method when executing the program.
[0042] Compared with the prior art, the present invention has the following beneficial effects:
[0043] The present invention finds the rough upper limit of the pressure of the tested power communication protocol software system; randomly selects k pressure data B to test the data response delay of the power communication protocol software system respectively. Calculating data response delay and data response delay The system can obtain the response disturbance value; obtain the normal distribution of delay value and pressure data volume based on the response disturbance value; calculate the confidence interval to obtain the precise upper limit of the maximum pressure of the power communication protocol software system; comprehensively analyze and determine the pressure boundary of the power communication protocol software system, which greatly improves the work efficiency of stress testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 This is a structural diagram of a pressure testing system for a power communication protocol software system provided by the second embodiment of the present invention;
[0045] Figure 2 This is a flowchart of a method for stress testing a power communication protocol software system provided in Example 1 of the present invention. DETAILED DESCRIPTION
[0046] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solutions of the present invention and are not intended to limit the scope of protection of the present invention.
[0047] The power communication protocol software system under test is deployed on the server. In this example, the power communication protocol software system is a substation monitoring system. Its hardware devices (memory / CPU / disk I / O) are all capable of stress testing. The stress data generator consists of a data control module, an in-station equipment simulation module, and a signal receiving module.
[0048] The switch allows the substation monitoring system under test to interact with the pressure data generator normally. The in-station equipment simulation module sends the pressure data signal to the substation monitoring system through IEC104, IEC61850 and other protocols. The signal receiving module can receive the pressure data counted by the substation monitoring system through IEC104, IEC61850 and other protocols.
[0049] Example 1
[0050] like Figure 2 As shown, a stress testing method for a power communication protocol software system includes:
[0051] Build a communication environment for information exchange between the pressure data generator and the measured power communication protocol software system;
[0052] The method of controlling the pressure data generator to generate pressure data A and sending it to the power communication protocol software system includes:
[0053] The pressure data generator is limited to complete the production of pressure data A and send it to the power communication protocol software system within the test time T seconds; the test time T is preferably 20 seconds;
[0054] The pressure data A sent by the control pressure data generator to the power communication protocol software system is gradually increased by multiples of P; P retains 3 significant digits, and the pressure data are 1.260, 1.587, 2.000, etc.;
[0055] Record the response delay of the power communication protocol software system; the method for finding the rough upper limit of the stress of the tested power communication protocol software system includes:
[0056] In response to the power communication protocol software system receiving the pressure data A sent by the pressure data generator, the system generates pressure response data and sends it back to the pressure data generator;
[0057] In response to the pressure data generator receiving the pressure response data of the power communication protocol software system under test, the amount of pressure response data and the response delay are obtained; if the pressure response data is equal to the amount of pressure data and the response delay is less than the set threshold, the next set of pressure data A test is automatically started; otherwise, the amount of pressure data in this test is output and used as a rough upper limit of the pressure of the power communication protocol software system under test.
[0058] Methods for constructing a polynomial fitting function of the delay value and the pressure data volume and calculating the polynomial coefficients of the pressure and response delay using the polynomial fitting method include:
[0059] Construct a polynomial fitting function of the delay value and the pressure data volume, the expression is:
[0060] f*(x)=a0x 3 +a1x 2 +a2x+a3
[0061] Where a0, a1, a2, and a3 are parameters to be determined for the fitting function, x is the independent variable, and takes the value of the pressure data. f*(·) is the polynomial fitting function of the delay value and the pressure data under each pressure condition tested.
[0062] The pressure data volume of pressure data A is j=1,2,3...m; the pressure response value corresponding to the pressure data A generated by the power communication protocol software system is Let the matrix
[0063] The calculation formula for the sum of squared errors S is:
[0064] S=(XA-Y) T (XA-Y)
[0065] The least squares method can be used to find the A matrix that minimizes the sum of squared errors S, thereby obtaining the parameter values of a0, a1, a2, and a3.
[0066] exist Randomly select k pressure data B within the pressure data volume range, k is 30; use pressure data B to test the data response delay of the power communication protocol software system The data response delay of the power communication protocol software system to randomly selected k pressure data B is calculated by the polynomial approximate relationship between the delay value and the pressure data volume. in It represents randomly selecting the i-th group of pressure data from k pressure data sets, where i = 1, 2, 3...k;
[0067] Calculating data response delay and data response delay The method for obtaining the normal distribution of the delay value and the pressure data volume according to the response disturbance value includes:
[0068] Calculating data response delay and data response delay The expression formula of the response disturbance value is:
[0069]
[0070] In the formula, d i Indicated as data response delay and data response delay The response disturbance value of
[0071] Calculate d1, d2, d3...d k The average value μ and variance δ of the delay value and the normal distribution of the pressure data volume are obtained, d~N(μ,δ), d satisfies d~N(μ,δ), where N is the normal distribution function.
[0072] Based on the confidence level 1-α (α is generally set to 1%), calculate the confidence interval of the normal distribution [μ-zδ, μ+zδ]. Z is the confidence interval range calculated based on the probability density of the normal distribution. It can be obtained using numerical integration or table lookup. For example, when α is 1%, Z is approximately equal to 2.5758. After calculating the confidence interval, the upper limit of the stress test of the system under test at a given confidence level can be obtained by the maximum stress test data Nmax that satisfies the following inequality:
[0073] f*(Nmax)+μ+zδ<given delay requirement
[0074] Record test data and output test conclusions, draw curves of boundary data at different test times, and collect information logs for manual analysis.
[0075] Example 2
[0076] like Figure 1 As shown, a stress testing system for a power communication protocol software system is provided. This system is applied to the stress testing method described in Example 1. The system includes:
[0077] Communication module, used to build a communication environment for information exchange between the pressure data generator and the measured power communication protocol software system;
[0078] The coarse test module is used to control the pressure data generator to generate pressure data A and send it to the power communication protocol software system, set the pressure data sent to the power communication protocol software system to gradually increase, record the response delay of the power communication protocol software system; and find the rough upper limit of the pressure of the tested power communication protocol software system;
[0079] A model building module is used to build a polynomial fitting function of the delay value and the pressure data volume, and calculate the polynomial coefficients of the pressure and response delay using the polynomial fitting method;
[0080] The precision test module randomly selects k pressure data B within the rough upper limit of the pressure of the power communication protocol software system under test to test the data response delay of the power communication protocol software system The data response delay of the power communication protocol software system to randomly selected k pressure data B is calculated by the polynomial approximate relationship between the delay value and the pressure data volume. in It represents randomly selecting the i-th group of pressure data from k pressure data sets, where i = 1, 2, 3...k;
[0081] Processing and analysis module, used to calculate data response delay and data response delay The response disturbance value is obtained; the normal distribution of the delay value and the pressure data volume is obtained according to the response disturbance value; the confidence interval is calculated to obtain the precise upper limit of the maximum pressure of the power communication protocol software system.
[0082] Example 3
[0083] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the stress testing method described in Example 1 when executing the program.
[0084] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0085] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0086] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0087] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1A step that specifies a function in one or more boxes.
[0088] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A stress testing method for a power communication protocol software system, characterized in that: include: Build a communication environment for information exchange between the pressure data generator and the measured power communication protocol software system; Control the pressure data generator to generate pressure data A and send it to the power communication protocol software system, set the pressure data sent to the power communication protocol software system to gradually increase, and record the response delay of the power communication protocol software system; Find a rough upper limit on the stress of the power communication protocol software system under test; Construct a polynomial fitting function of the delay value and the pressure data volume, the expression is: <h2 style=";text-align:left;direction:ltr">f*(x) = a0x<h2 style=";text-align:left;direction:ltr"> 3 <h2 style=";text-align:left;direction:ltr"> +a1 x<h2 style=";text-align:left;direction:ltr"> 2 <h2 style=";text-align:left;direction:ltr"> +a2 x+a3 Wherein, a0, a1, a2, and a3 are coefficients to be determined of the polynomial fitting function, x is the independent variable, which takes the value of the pressure data volume, and f*(·) is the polynomial fitting function of the delay value and the pressure data volume fitted under each pressure condition tested; The polynomial fitting function coefficients of pressure and response delay are calculated using a polynomial fitting method; Within the rough upper limit of the pressure of the tested power communication protocol software system, k pressure data B are randomly selected to test the data response delay of the power communication protocol software system. The data response delay of the power communication protocol software system to randomly selected k pressure data B is calculated by the polynomial fitting function of the delay value and the pressure data volume. in It represents randomly selecting the i-th group of pressure data from k pressure data sets, where i = 1, 2, 3...k; Calculating data response delay and data response delay The response disturbance value d i , the expression formula is: In the formula, d i Indicated as data response delay and data response delay The response disturbance value of Calculate d1, d2, d3...d k The mean value μ and variance δ of the response disturbance value d are obtained i The normal distribution of d i Satisfy d i ~N(μ,δ), where N is the normal distribution function; μ and δ are the response disturbance values d i The mean and variance of ; The confidence interval [μ-zδ, μ+zδ] of the normal distribution is calculated based on the confidence level 1-α, where α is the set percentage and z is the confidence interval range factor. The maximum pressure upper limit of the power communication protocol software system is determined based on the confidence interval [μ-zδ, μ+zδ]. The expression formula is: f*(N max ) + μ + zδ < Given delay requirement In the formula, N max This is the maximum stress test data.
2. A stress testing method for a power communication protocol software system according to claim 1, characterized in that: The method of controlling the pressure data generator to generate pressure data A and sending it to the power communication protocol software system includes: The pressure data generator is limited to complete the production of pressure data A within the test time T seconds and send it to the power communication protocol software system; The pressure data A sent by the control pressure data generator to the power communication protocol software system is gradually increased by multiples of P; P has 3 significant digits.
3. The stress testing method of a power communication protocol software system according to claim 1, characterized in that: Methods for finding a rough upper limit on the stress of the power communication protocol software system under test include: In response to the power communication protocol software system receiving the pressure data A sent by the pressure data generator, the system generates pressure response data and sends it back to the pressure data generator; In response to the pressure data generator receiving the pressure response data of the power communication protocol software system under test, the amount of pressure response data and the response delay are obtained; if the pressure response data is equal to the amount of pressure data and the response delay is less than the set threshold, the next set of pressure data A test is automatically started; otherwise, the amount of pressure data in this test is output and used as a rough upper limit of the pressure of the power communication protocol software system under test.
4. The stress testing method for a power communication protocol software system according to claim 1, characterized in that: The polynomial fitting function coefficients of pressure and response delay are calculated using a polynomial fitting method; specifically, the following steps are involved: The pressure data volume of pressure data A is The pressure response value corresponding to the pressure data A generated by the power communication protocol software system is Let the matrix The calculation formula for the sum of squared errors S is: S=(XA-Y) T (XA-Y) The least squares method is used to find the A matrix that minimizes the sum of squared errors S, thereby obtaining the parameter values of a0, a1, a2, and a3.
5. A stress testing method for a power communication protocol software system according to claim 4, characterized in that: Within the rough upper limit of the pressure of the power communication protocol software system under test, the method of randomly selecting k pressure data B includes: exist Randomly select k pressure data B within the range of pressure data, and the value of k is 30.
6. A stress testing system for a power communication protocol software system, characterized in that: include: Communication module, used to build a communication environment for information exchange between the pressure data generator and the measured power communication protocol software system; A coarse test module is used to control the pressure data generator to generate pressure data A and send it to the power communication protocol software system, set the pressure data sent to the power communication protocol software system to gradually increase, and record the response delay of the power communication protocol software system; Find a rough upper limit on the stress of the power communication protocol software system under test; A model building module is used to build a polynomial fitting function of the delay value and the pressure data volume, and calculate the polynomial coefficients of the pressure and response delay using the polynomial fitting method; The precision test module randomly selects k pressure data B within the rough upper limit of the pressure of the power communication protocol software system under test to test the data response delay of the power communication protocol software system The data response delay of the power communication protocol software system to randomly selected k pressure data B is calculated by the polynomial fitting function of the delay value and the pressure data volume. in It represents randomly selecting the i-th group of pressure data from k pressure data sets, where i = 1, 2, 3...k; Processing and analysis module, used to calculate data response delay and data response delay The response disturbance value is expressed as: In the formula, d i Indicated as data response delay and data response delay The response disturbance value of Get the response disturbance value d i The normal distribution of d i Satisfy d i ~N(μ,δ), where N is the normal distribution function; μ and δ are the response disturbance values d i The mean and variance of ; Calculate confidence intervals to obtain the precise upper limit of the maximum pressure of the power communication protocol software system; The processing and analysis module calculates the confidence interval to obtain the precise upper limit of the maximum pressure of the power communication protocol software system, specifically including: The confidence interval [μ-zδ, μ+zδ] of the normal distribution is calculated based on the confidence level 1-α, where α is the set percentage and z is the confidence interval range factor. The maximum pressure upper limit of the power communication protocol software system is determined based on the confidence interval [μ-zδ, μ+zδ]. The expression formula is: f*(N max ) + μ + zδ < given delay requirement In the formula, N max This is the maximum pressure test data, which is the precise upper limit of the maximum pressure of the power communication protocol software system; The model building module constructs a polynomial fitting function of the delay value and the pressure data volume, and calculates the polynomial coefficients of the pressure and response delay using a polynomial fitting method; specifically, it includes: Construct a polynomial fitting function of the delay value and the pressure data volume, the expression is: <h2 style=";text-align:left;direction:ltr">f*(x) = a0x<h2 style=";text-align:left;direction:ltr"> 3 <h2 style=";text-align:left;direction:ltr"> +a1 x<h2 style=";text-align:left;direction:ltr"> 2 <h2 style=";text-align:left;direction:ltr"> +a2 x+a3 Where a0, a1, a2, and a3 are parameters to be determined for the fitting function, x is the independent variable, and takes the value of the pressure data. f*(·) is the polynomial fitting function of the delay value and the pressure data under each pressure condition tested. The pressure data volume of pressure data A is The pressure response value corresponding to the pressure data A generated by the power communication protocol software system is Let the matrix The calculation formula for the sum of squared errors S is: S=(XA-Y) T (XA-Y) The least squares method is used to find the A matrix that minimizes the sum of squared errors S, thereby obtaining the parameter values of a0, a1, a2, and a3.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the stress testing method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Web application system load testing method based on value recording detection method
CN102769674A
Request load control method and device, storage medium and computer equipment
CN109815004A