Stability evaluation method and device, equipment, storage medium
By comprehensively considering the anomaly probability, frequency, and time interval of the first function, as well as the influence parameters of the associated second function, system type, and operating environment, the problem of inaccuracy in existing stability assessment methods is solved, and a more accurate system stability assessment is achieved.
Patent Information
- Application Number
- CN202211102978.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-09
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-09-09
AI Technical Summary
Existing stability assessment methods are not comprehensive or accurate enough to effectively guarantee the long-term stable operation of software systems.
By determining the probability, frequency, and time interval of anomalies in the first function of the system under evaluation, as well as the impact parameters of the associated second function, system type, and operating environment, the evaluation score of the first function is comprehensively evaluated, thereby improving the accuracy of stability assessment.
The accuracy of the evaluation scores has been increased, making the system stability assessment results more accurate. It can comprehensively consider the impact of functional anomalies, system type and operating environment, thus improving the objectivity and accuracy of software system stability assessment.
Smart Images

Figure CN116775450B_ABST
Abstract
Description
Technical Field
[0001] This application relates to electronic technology, including but not limited to stability assessment methods and apparatus, devices, and storage media. Background Technology
[0002] When a software system triggers calls to implement its corresponding functions, these calls sometimes run normally and sometimes encounter exceptions. Therefore, software design and completion require functional testing to ensure that the design objectives and requirements are met. System stability testing verifies a software system's ability to operate stably over a long period and is a crucial dimension for evaluating software system quality. However, existing stability assessment methods are not comprehensive, specific, or accurate enough, which hinders the provision of high-level assurance for the operation of software systems. Summary of the Invention
[0003] In view of this, the stability assessment method, apparatus, equipment, and storage medium provided in this application improve the accuracy of the assessment scores of the first function, making the third parameter determined based on the assessment scores of each first function more accurate, that is, the system stability assessment results are more accurate.
[0004] According to one aspect of the embodiments of this application, a stability assessment method is provided, comprising: determining a first parameter of at least one first function in a system to be assessed; the first parameter being used to characterize a situation where an anomaly occurs in the corresponding first function; determining a second parameter, the second parameter including at least one of the following: an impact parameter characterizing a second function associated with the first function, a type parameter characterizing the type of the system to be assessed, and an environmental parameter characterizing the operating environment of the system to be assessed; determining an assessment score for the first function based on the first parameter and the second parameter; and determining a third parameter based on the assessment score of the at least one first function; the third parameter being used to characterize the stability of the system to be assessed.
[0005] According to one aspect of the embodiments of this application, a stability assessment apparatus is provided, comprising: a first determining module, configured to determine a first parameter of at least one first function in a system to be assessed; the first parameter being used to characterize a situation where an anomaly occurs in the corresponding first function; the first determining module is further configured to determine a second parameter, the second parameter including at least one of the following: an impact parameter characterizing a second function associated with the first function, a type parameter characterizing the type of the system to be assessed, and an environmental parameter characterizing the operating environment of the system to be assessed; a second determining module, configured to determine an assessment score of the first function based on the first parameter and the second parameter; the second determining module is further configured to determine a third parameter based on the assessment score of the at least one first function; the third parameter being used to characterize the stability of the system to be assessed.
[0006] According to one aspect of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor executes the program to implement the method described in the embodiments of the present application.
[0007] According to one aspect of the embodiments of this application, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the methods provided in the embodiments of this application.
[0008] In this embodiment, when determining the evaluation score of the first function, not only are the scenarios where the first function malfunctions considered, but also at least one of the second function associated with the first function, as well as the type and operating environment of the system to be evaluated. On the one hand, if the first function malfunctions, the second function associated with the first function may also malfunction. Thus, considering the second function when determining the evaluation score of the first function can increase the accuracy of the evaluation score. On the other hand, if the first function is deployed in different types of systems and / or the operating environment of the first function is different, the malfunction, operating conditions, or testing conditions of the first function may also be different. Thus, considering the type and / or operating environment of the system to be evaluated when determining the evaluation score of the first function provides a more comprehensive consideration of the factors affecting the first function, thereby further increasing the accuracy of the evaluation score and making the third parameter determined based on the evaluation scores of each first function more accurate, i.e., the system stability evaluation result is more accurate.
[0009] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0010] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application. Obviously, the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0011] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0012] Figure 1 A schematic diagram illustrating the implementation process of a stability assessment method provided in this application embodiment;
[0013] Figure 2 This is a schematic diagram illustrating the first functional error display provided in an embodiment of this application;
[0014] Figure 3 A schematic diagram illustrating an implementation process for determining a first performance parameter, provided in an embodiment of this application;
[0015] Figure 4 A schematic diagram illustrating the implementation flow of the use case filtering method provided in the embodiments of this application;
[0016] Figure 5 This is a functional diagram of the user interaction unit provided in an embodiment of this application;
[0017] Figure 6 A schematic diagram illustrating the degree of influence of the first function on the second function provided in the embodiments of this application;
[0018] Figure 7 A schematic diagram illustrating the implementation process of another stability evaluation method provided in this application embodiment;
[0019] Figure 8 A schematic diagram of the Stackelberg model provided in the embodiments of this application;
[0020] Figure 9 This is a schematic diagram of the structure of a stability evaluation device provided in an embodiment of this application;
[0021] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0022] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the specific technical solutions of this application will be further described in detail below with reference to the accompanying drawings of the embodiments of this application. The following embodiments are used to illustrate this application, but are not intended to limit the scope of this application.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0024] In the following description, references to "some embodiments," "this embodiment," "this application embodiment," and examples, etc., describe a subset of all possible embodiments. However, it is understood that "some embodiments" may be the same subset or different subset of all possible embodiments and may be combined with each other without conflict.
[0025] This application provides a stability evaluation method applied to an electronic device. This electronic device can be of various types with information processing capabilities, such as mobile phones, tablets, desktop computers, laptops, or sensing devices. The functionality achieved by this method can be implemented by a processor in the electronic device calling program code. The program code can be stored in a computer storage medium. Therefore, the electronic device includes at least a processor and a storage medium.
[0026] Figure 1 This is a schematic diagram illustrating the implementation process of the stability assessment method provided in the embodiments of this application, as shown below. Figure 1 As shown, the method may include the following steps 101 to 103:
[0027] Step 101: Determine a first parameter for at least one first function in the system to be evaluated; the first parameter is used to characterize the situation where the corresponding first function is abnormal.
[0028] In some embodiments, the system can be understood as a software system; further, the system to be evaluated can be software to be evaluated; for example, the system to be evaluated can be a webpage and application software (Application, APP), etc.
[0029] In some embodiments, the system to be evaluated has at least one first function. When evaluating the stability of the system to be evaluated, it is necessary to test at least one first function of the system. Before testing the first function, corresponding test cases are first set for the first function. The system can test whether the first function is normal by calling the test cases corresponding to the first function.
[0030] In some embodiments, a first function is used to perform a task, and correspondingly, a test case can be set for a first function; in other embodiments, a function can be used to perform multiple tasks, that is, a function may contain multiple sub-functions, each sub-function can be regarded as a first function, and a corresponding test case can be set for each sub-function; or, a corresponding test case can be set for each sub-function in the first function, that is, at least one test case can be set for the first function.
[0031] In some embodiments, the first parameter includes at least one of the following: the probability of the first function malfunctioning, the frequency of malfunctions, and the time interval between two consecutive malfunctions.
[0032] In some embodiments, when testing the first function, server-side instrumentation points can be set in the context information of the test case corresponding to the first function, so that the system generates corresponding instrumentation logs when the test case corresponding to the first function is called. Table 1 is a parameter table of an instrumentation log provided in an embodiment of this application. As shown in Table 1, the instrumentation log includes: Trace Identity Document (TraceID), Remote Procedure Call Identity Document (RPCID), call start time, call type, protocol type, Internet Protocol Address (IP) and port of the caller, service name of the call request, call duration, call result, exception information and message messages, etc.
[0033] Table 1. Parameter Table for Tracking Logs
[0034]
[0035] In some embodiments, the call type includes at least the type corresponding to the call request method; for example, the call type may be request methods such as GET and POST; further, the electronic device can perform the test of the first function by calling at least one different type of request method in the software system.
[0036] In some embodiments, when an electronic device tests a first function by calling a test case corresponding to the first function, if the calling process of the test case is interrupted, or if the first function is not implemented by calling the test case, it is determined that the first function has an anomaly, and the reason for the anomaly or the anomaly information is recorded and saved in the data entry log.
[0037] In some embodiments, the frequency of the first function malfunctioning can be the ratio of the number of times the first function malfunctions to the total number of times the first function is tested.
[0038] In some embodiments, the time interval between two consecutive occurrences of an anomaly in the first function can be the absolute value of the difference between the interruption of the call process of two consecutive test cases for the first function, or the time difference between the two consecutive calls to the test cases when the first function is not implemented.
[0039] In the embodiments of this application, the probability of the first function malfunctioning, the frequency of malfunctions, and the time interval between two consecutive malfunctions can be described as: the probability of the call corresponding to the first function malfunctioning, the probability of the call corresponding to the first function malfunctioning, or the time interval between two consecutive malfunctions in the call corresponding to the first function; or it can be described as: the probability of the test case corresponding to the call to the first function malfunctioning, the probability of the test case corresponding to the call to the first function malfunctioning, or the time interval between two consecutive malfunctions in the test case corresponding to the call to the first function; the embodiments of this application do not limit this.
[0040] In some embodiments, the probability of the first function malfunctioning, the frequency of malfunctioning, and the time interval between two consecutive malfunctions can be the probability of the first function malfunctioning the same malfunction, the frequency of malfunctioning the same malfunction, and the time interval between two consecutive malfunctions of the same malfunction, respectively; or they can be the probability of the first function malfunctioning the same malfunction, the frequency of malfunctioning the same malfunction, and the time interval between two consecutive malfunctions of the same malfunction, respectively.
[0041] Step 102: Determine the second parameter, which includes at least one of the following: an influence parameter characterizing the second function associated with the first function, a type parameter characterizing the type of the system to be evaluated, and an environmental parameter characterizing the operating environment of the system to be evaluated.
[0042] In some embodiments, the influence parameters include parameters characterizing the degree of influence of the second function on the system to be evaluated and / or parameters characterizing the degree of association between the first function and the second function.
[0043] In this embodiment, the parameter characterizing the degree of influence of the second function on the system to be evaluated can be described as the degree of influence parameter of the second function or the degree of influence parameter value of the second function; the parameter characterizing the degree of association between the first function and the second function can be described as the degree of association between the first function and the second function or the degree of association between the first function and the second function; this embodiment does not limit this.
[0044] In some embodiments, the software system includes at least a first function and a second function. The first function and the second function may be the same or different. An abnormality in the first function may or may not affect the second function. The correlation parameter value between the first function and the second function can be determined based on the degree of influence of the first function on the second function. For example, if the first function is a text editing function and the second function is a text rewriting function, an abnormality in the first function will most likely affect the second function, causing the second function to malfunction. That is, the first function has a high degree of influence on the second function. Therefore, the correlation parameter value between the first function and the second function can be set to a large value, such as 0.9. If the first function is a text editing function and the second function is a voice playback function, an abnormality in the first function will most likely not cause the second function to malfunction. That is, the first function has a low degree of influence on the second function. Therefore, the correlation parameter value between the first function and the second function can be set to a small value, such as 0.01. In some embodiments, a third threshold can be set according to actual needs. In the second function, the second function whose parameter value of the degree of association with the first function is greater than the third threshold is first determined. Then, the abnormal influence score of the first function is determined according to the sum of the influence degree parameter values of each second function greater than the third threshold and the influence degree parameter values of the first function. Thus, the evaluation score of the first function is determined at least according to the abnormal influence score.
[0045] In some embodiments, the influence parameter value of the second function can be predefined according to the importance of the second function in the software system; for example, the software system to be evaluated is a webpage, the second function A is a text display function, the second function B is a text editing function, the importance of A is relatively higher than that of B, therefore, the parameter value of A can be a larger value, such as 0.9; the parameter value of B can be set to a smaller value, such as 0.7.
[0046] Understandably, if the parameter value of the correlation between the second function and the first function is greater than the third threshold, then the first function is more likely to affect the second function. Therefore, when calculating the evaluation score of the first function, the parameter value of the influence of the first function on the second function is taken into account, making the determined evaluation score more accurate.
[0047] In some embodiments, the evaluation score of the first function may be determined at least based on the parameter values of environmental parameters characterizing the operating environment of the system to be evaluated.
[0048] In some embodiments, the operating environment includes at least a central processing unit (CPU), network, memory, and disk. Correspondingly, the parameter values of the environment parameters include at least CPU utilization, network bandwidth utilization, memory utilization, and disk read / write utilization. The utilization rate can be determined based on the ratio of the used amount to the peak total. In some embodiments, the evaluation score of the first function can be determined at least based on the sum of the absolute values of the differences between the parameter values of each environment parameter and the corresponding total operating environment value when the first function malfunctions. For example, if the total operating environment value is 100%, and when the first function malfunctions, the CPU utilization is 95%, the network bandwidth utilization is 80%, the memory utilization is 20%, and the disk read / write utilization is 50%, then the sum of the absolute values of the differences between the parameter values of each environment parameter and the corresponding total operating environment value when the first function malfunctions is: (|100%-95%|+|100%-80%|+|100%-20%|+|100%-50%|)*100%=155.
[0049] In some embodiments, the evaluation score of the first function may be determined at least based on the parameter value of the type parameter that characterizes the type of the system to be evaluated, wherein the type of the system to be evaluated includes at least: lightweight application, distributed application, and platform application.
[0050] In some embodiments, if the system being evaluated is a lightweight application, meaning it is less dependent on the external environment (e.g., CPU utilization, network bandwidth utilization, memory utilization, and disk read / write utilization), then if the first function malfunctions, it is more likely that the malfunction is caused by an internal function. Therefore, the type parameter representing the type of the system being evaluated can be set to a larger value, such as 1. If the system being evaluated is a distributed application or a platform application, meaning it is more dependent on the external environment, then if the first function malfunctions, it is more likely that the malfunction is caused by an external environment. Therefore, the type parameter representing the type of the system being evaluated can be set to a smaller value, such as 0.1.
[0051] Step 103: Determine the evaluation score of the first function based on the first parameter and the second parameter of the first function.
[0052] In some embodiments, at least one first parameter and / or at least one second parameter may be weighted according to actual needs, and the evaluation score of the first function may be determined based on the weighted first and second parameters.
[0053] In some embodiments, the evaluation score of the first function can also be described as the abnormal evaluation score of the first function. The higher the abnormal evaluation score, the more likely the first function is to malfunction and the worse the stability of the system.
[0054] In some embodiments, the evaluation score of the first function is directly proportional to the parameter value of the type parameter of the system to be evaluated, the influence parameter of the second function, and the probability or frequency of the first function malfunctioning; and inversely proportional to the time interval between two consecutive malfunctions of the first function.
[0055] In some embodiments, the evaluation score of the first function can be determined according to the following formula (1):
[0056]
[0057] Where N is the parameter value of the type parameter of the system to be evaluated; P(e) is the probability or frequency of the first function occurring abnormally; I(e) is the parameter value of the influence of the second function or the parameter value of the first function whose correlation with the first function is greater than the third threshold. The sum of the influence parameters of each second function whose correlation with the first function is greater than the third threshold and the influence parameter of the first function can also be described as the abnormal influence score of the first function A; T is the average time interval between two consecutive abnormal occurrences of the first function; S(ee) is the parameter value of the environmental parameter when the first function is abnormal. When the first function malfunctions, it is the sum of the absolute values of the differences between the parameter values of each environmental parameter and the corresponding total value of the operating environment.
[0058] Step 104: Determine a third parameter based on the evaluation score of the at least one first function; the third parameter is used to characterize the stability of the system to be evaluated.
[0059] In this embodiment, when determining the evaluation score of the first function, not only are the scenarios where the first function malfunctions considered, but also at least one of the second function associated with the first function, as well as the type and operating environment of the system to be evaluated. On the one hand, if the first function malfunctions, the second function associated with the first function may also malfunction. Thus, considering the second function when determining the evaluation score of the first function can increase the accuracy of the evaluation score. On the other hand, if the first function is deployed in different types of systems and / or the operating environment of the first function is different, the malfunction, operating conditions, or testing conditions of the first function may also be different. Thus, considering the type and / or operating environment of the system to be evaluated when determining the evaluation score of the first function provides a more comprehensive consideration of the factors affecting the first function, further increasing the accuracy of the evaluation score. This makes the third parameter determined based on the evaluation scores of each first function more accurate, i.e., the system stability evaluation result is more accurate.
[0060] Understandably, higher scores for each primary function indicate lower system stability. Higher scores for primary functions suggest a greater impact on the system, a greater impact from related secondary functions, a higher probability of primary function failures, shorter intervals between primary function failures, or favorable external environments when primary functions fail. In such cases, system stability can be considered poor. Conversely, lower scores for primary functions suggest a smaller impact on the system, a smaller impact from related secondary functions, a lower probability of primary function failures, longer intervals between primary function failures, or poorer external environments when primary functions fail. In such cases, system stability can be considered good. Thus, system evaluation considers not only the probability of failure of the tested functions but also the system type and other functions associated with the tested functions, resulting in a more comprehensive and specific system assessment.
[0061] Figure 2 The abnormal display diagrams provided in this application's embodiments; in some embodiments, such as Figure 2 As shown in Figure a, when the first function malfunctions, the parameter values corresponding to the first function and the environmental parameters in the system under evaluation can be displayed in the same row, up and down, or in the same table; or, a first performance parameter whose parameter value meets the first condition during the first time period when the first function malfunctions can be determined first; wherein, the first performance parameter includes parameters characterizing hardware performance and / or parameters characterizing network performance; for example, Figure 2 As shown in b, the first function and the first performance parameter associated with the first function that meets the first condition are displayed in the same row, upstream / downstream, or same table. For example, the exception information for the first function is: Socket TimeoutException. Socket timeout is generally caused by network anomalies; therefore, the first performance parameter associated with the first function is network bandwidth utilization. Figure 2 In b, the first function and network bandwidth usage will be displayed together.
[0062] In some embodiments, the first performance parameter includes CPU, network, memory, and disk, etc. Accordingly, the parameter values of the environmental parameter include at least CPU utilization, network bandwidth utilization, memory utilization, and disk read / write utilization, etc., and the utilization can be determined based on the ratio of the amount used to the peak amount.
[0063] In this application embodiment, the first performance parameter associated with the first function can also be understood as the first performance parameter associated with the abnormal information of the first function.
[0064] In some embodiments, the hardware performance parameters may include CPU utilization, memory utilization, and disk read / write utilization; the network performance parameters may include network bandwidth utilization, etc.
[0065] In some embodiments, the first performance parameter that satisfies the first condition can be determined through steps 301 to 303 of the following embodiments, which will not be described in detail here.
[0066] Figure 3 This application provides a schematic diagram of an implementation process for determining a first performance parameter, as illustrated in the embodiments of this application. Figure 3 As shown, the first performance parameter that satisfies the first condition can be determined through the following steps 301 to 303:
[0067] Step 301: Determine the first average value of the parameter value of the first performance parameter within the first time period.
[0068] In some embodiments, a first variance or a first standard deviation of the parameter value of the first performance parameter within the first time period may also be determined.
[0069] In some embodiments, the first time period includes the moment when the first function malfunctions. The duration from the moment to the start of the first time period and the duration from the moment to the end of the first time period may be the same or different. This application embodiment does not limit this.
[0070] In some embodiments, the average value may be the average value of the first performance parameter at each moment or in each time interval within the first time period.
[0071] Step 302: Determine the second average value of the parameter value of the first performance parameter within the second time period.
[0072] In some embodiments, the first performance parameter in the second time period and the first performance parameter in the first time period are the same performance parameter.
[0073] In some embodiments, a second variance or a second standard deviation of the parameter value of the first performance parameter during the second time period may also be determined.
[0074] In some embodiments, the second time period may be a historical time period of equal duration to the first time period; during the historical time period, the first function did not malfunction.
[0075] Step 303: If the absolute value of the difference between the first average value and the second average value is greater than or equal to the first threshold, determine that the corresponding first performance parameter satisfies the first condition.
[0076] In some embodiments, the first threshold can be preset according to actual needs; the first performance parameter that satisfies the first condition can be a first performance parameter in which the absolute value of the difference between the first average value and the second average value is greater than or equal to the first threshold; or it can be a first performance parameter in which the absolute value of the difference between the first variance and the second variance is greater than or equal to the fourth threshold, or the absolute value of the first standard deviation and the standard deviation of the second variance is less than or equal to the fifth threshold.
[0077] Understandably, if the absolute value of the difference between the first average value and the second average value of the first performance parameter is greater than or equal to a first threshold, then the first performance parameter may be abnormal. Further, based on a pre-defined association between the first function and the first performance parameter, or the association between first function anomaly information and the first performance parameter, the first performance parameter that satisfies the first condition and is associated with the first function or an anomaly of the first function can be determined.
[0078] This application embodiment further provides a use case filtering method, which is applied to electronic devices. Figure 4 This is a schematic diagram illustrating the implementation process of the use case filtering method provided in the embodiments of this application, as shown below. Figure 4 As shown, the method includes steps 401 to 404:
[0079] Step 401: Based on the evaluation score and the second threshold, classify the test cases corresponding to the at least one first function to obtain a first type of test case and a second type of test case.
[0080] In some embodiments, the second threshold can be preset according to actual needs.
[0081] In some embodiments, the abnormal test cases corresponding to the first function can be classified to obtain a first type of test case and a second type of test case.
[0082] In some embodiments, abnormal test cases corresponding to a first function with an evaluation score less than or equal to a second threshold are identified as first type test cases; abnormal test cases corresponding to a first function with an evaluation score greater than the second threshold are identified as second type test cases.
[0083] Step 402: Determine the first number of the first type of use cases and the second number of the second type of use cases based on the Stackelberg model.
[0084] In some embodiments, the first type of use case can be understood as the slave use case in the Stackelberg model, and the second type of use case can be understood as the master use case in the Stackelberg model.
[0085] In some embodiments, the first quantity and the second quantity (not shown in the figure) may be determined according to the following steps 4021 to 4024:
[0086] Step 4021: Using the first quantity as the first independent variable, the second quantity as the second independent variable, and the first benefit of the first type of use case as the first dependent variable; construct a first benefit function for the first type of use case based at least on the first independent variable, the second independent variable, and the first dependent variable.
[0087] In some embodiments, a first revenue function for the first use case can be constructed based on a first independent variable, a second independent variable, the execution cost coefficient of the first type of use case, the inverse return coefficient of the first type of use case and / or the second type of use case, and a first dependent variable, as shown in equation (2) below:
[0088] π 从 =(KQ 主 -Q 从 )*Q 从 -a1Q 从 2 (2)
[0089] Where, π 从 The first benefit from executing the first type of use case; a1 is the execution cost coefficient of the first type of use case; Q 主 Q is the first quantity; 从 K is the second quantity; K is the inverse yield coefficient for executing the first type of use case and / or the second type of use case.
[0090] In some embodiments, a1 can be preset according to the actual cost of executing the first type of use case, for example, a1 is greater than or equal to 1 and less than or equal to 2; K can be preset according to the pre-defined requirements, and K is a constant; KQ in equation (2) 主 -Q 从 It can be used to represent the rate of return for the first type of use case and / or the second type of use case; a1Q 从 2 This can be used to represent the cost of executing a first type of use case, which can be time cost, computing resource cost, etc.
[0091] In some embodiments, the sum of the first quantity and the second quantity is the sum of the number of test cases corresponding to the at least one first function.
[0092] Step 4022: Differentiate the first revenue function to obtain the first relationship between the first independent variable and the second independent variable.
[0093] In some embodiments, differentiating the first independent variable in the first revenue function yields a response function for a first type of use case, wherein the response function characterizes a first relationship between a first quantity and a second quantity. That is, differentiating the first independent variable in the first revenue function yields... At that time, determine the first relationship Q between the first quantity and the second quantity.从 =F(Q) 主 ).
[0094] Step 4023: Using the second benefit of the second type of use case as the second dependent variable, construct the second benefit function of the second type of use case based at least on the first independent variable, the second independent variable, and the second dependent variable.
[0095] In some embodiments, a second revenue function for the second use case is constructed based on a first independent variable, a second independent variable, the execution cost coefficient of the second type of use case, the inverse return coefficient of the first type of use case and / or the second type of use case, and a second dependent variable, as shown in equation (3) below:
[0096] π 主 =(KQ 主 -Q 从 )*Q 主 -a2Q 主 2 (3)
[0097] Where, π 主 a1 represents the second benefit of the second type of use case; a2 represents the execution cost coefficient of the second type of use case.
[0098] In some embodiments, a2 can be preset according to the actual cost of executing the second type of use case; for example, a2 is greater than or equal to 1 and less than or equal to 2; a2 and a1 can be the same or different.
[0099] Step 4024: Determine the first quantity and the second quantity based on the first relationship and the second revenue function.
[0100] In some embodiments, the derivative of the second independent variable in the second revenue function is first taken to obtain the second relationship between the first quantity and the second quantity. That is, the derivative of the second independent variable in the second revenue function is taken to obtain the second relationship between the first quantity and the second quantity. At that time, determine the second relationship Q between the first quantity and the second quantity. 主 =F(Q) 从 ).
[0101] Understandably, the first and second relations can be viewed as two linear equations in two variables. By solving the first and second relations jointly, the first quantity Q can be obtained. 从 Second quantity Q 主 .
[0102] Step 403: Determine the valid use cases in the first type of use cases based at least on the first quantity.
[0103] In some embodiments, valid use cases in the first category of use cases can be determined based on the evaluation scores of the first function corresponding to the first category of use cases and the first quantity of use cases. Further, the corresponding first category of use cases can be sorted according to the evaluation scores of the first function corresponding to the first category of use cases in descending order or ascending order, and the first number of first category of use cases can be taken as valid use cases.
[0104] In some embodiments, a second number of test cases may be randomly selected from the second type of test cases as valid test cases in the second type of test cases.
[0105] Step 404: Determine the valid use cases in the second type of use cases based at least on the second quantity.
[0106] In some embodiments, valid use cases in the second category of use cases can be determined based on the evaluation scores of the first function corresponding to the second category of use cases. Further, the corresponding second category of use cases can be sorted according to the evaluation scores of the first function corresponding to the second category of use cases in descending or ascending order, and the first second number of second category of use cases can be taken as valid use cases.
[0107] In some embodiments, a second number of test cases may be randomly selected from the second type of test cases as valid test cases in the second type of test cases.
[0108] Understandably, when determining the test cases corresponding to the first function, the test cases are divided into first-class test cases and second-class test cases. Then, according to the Stackelberg model, the number of first-class test cases and second-class test cases can be determined when the execution benefit is maximized. In this way, the time and computing resources for executing test cases are saved.
[0109] In some embodiments, within a complex software system, clicking a webpage button sends multiple calls to the backend, corresponding to a series of business processes. These calls may be parallel or dependent. These calls are triggered at different times, and while some are normal, others are abnormal, reflecting system stability. Stability is a crucial dimension for evaluating software quality during testing and deployment. In assessing system stability, existing methods and devices typically only consider the probability of anomalies, lacking an effective evaluation and tracing system. Furthermore, they fail to create differentiated test case sets and lack a clear method to maximize testing benefits by selecting appropriate test cases from the set for targeted stability testing of the system.
[0110] The existing technologies evaluate stability issues solely based on the probability of occurrence, which has the following shortcomings: First, the lack of a corresponding evaluation system and issue levels leads to subjective evaluations; second, it fails to distinguish whether an anomaly is caused by fluctuations in computer and network performance indicators or by an anomaly inherent in the software itself, and it does not correlate anomalies caused by external environmental factors; third, during testing, test cases are not differentiated into test case sets based on the comprehensive score of the anomalies detected; and fourth, there is no method for filtering the number of test cases in the test case set.
[0111] This application provides a method for evaluating system stability. It detects and collects data on the external environment when anomalies occur, distinguishes test cases based on stability evaluation scores, and offers a test case selection method based on a Stackelberg two-layer game to achieve optimal resolution under test cost constraints. This method associates anomalies with fluctuations in the external environment, provides a more objective stability assessment, distinguishes test case sets based on evaluation scores, and selects test cases by finding the optimal solution under test cost constraints using game theory.
[0112] In some embodiments, the electronic device includes a user interaction unit that can initialize a constant factor (an example of a parameter value representing the type of the system to be evaluated), which can be adjusted by the user for different applications. For example, if the system to be evaluated is a lightweight application with low dependence on the external environment, the constant factor can be set larger; if the system to be evaluated is a distributed or platform-level application with high dependence on computer performance and network performance indicators, the factor can be set smaller, for example, to 0.1.
[0113] Figure 5 This is a functional diagram of the user interaction unit provided in the embodiments of this application, such as... Figure 5 As shown, the user interaction unit can display computer performance indicators and network performance indicators (an example of a first performance parameter). The computer performance indicators (an example of hardware performance parameters) may include CPU utilization, memory utilization, and disk read / write utilization, etc.; the network performance indicators (an example of network performance parameters) may include network bandwidth utilization, etc. Utilization rate is the ratio of used data to the total peak performance.
[0114] In some embodiments, based on the abnormal scores calculated by the algorithm unit, the corresponding abnormalities are sorted and displayed to the user according to the abnormality name and corresponding score. For example, if a user creation fails and the score of the abnormality is displayed, the higher the score, the higher the ranking.
[0115] The user interaction unit can also associate and display the first function with the external environment (an example of the operating environment) when the first function is abnormal. If the external environment fluctuation is collected by the computer performance index and network performance index collection unit when the abnormality occurs, and the abnormality association judgment unit determines that the external environment and the abnormality of the first function have a causal relationship, that is, the external environment fluctuation causes the first function to be abnormal, the abnormality information of the first function and the external environment that caused the abnormality of the first function are displayed on the same line or in front of and behind each other.
[0116] In some embodiments, the electronic device further includes an algorithm unit, which mainly performs a first function of calculating scores and dynamically sorting them.
[0117] Figure 6 This is a schematic diagram illustrating the degree of influence of the first function on the second function provided in the embodiments of this application; for example... Figure 6 As shown, the first function is A, the second functions are B, C, and D, and the third threshold is 0.5. The parameter values of the correlation between B and C and A are greater than 0.5, and the parameter value of the correlation between D and A is less than 0.5. Therefore, the function of A affects the functions of B and C, but the function of A does not affect the function of D. The abnormal influence score of A is the sum of the influence parameter value of A (7), the influence parameter value of B (4), and the influence parameter value of C (15), that is, the abnormal influence score of A is 7 + 4 + 15 = 26.
[0118] In some embodiments, the electronic device further includes a computer performance index and network performance index acquisition unit. The computer performance index and network performance index acquisition unit can also be described as an external environment index acquisition unit, which is not limited in this application embodiment. The external environment index acquisition unit can determine first performance parameters such as CPU utilization, memory utilization, disk read / write utilization, and network bandwidth utilization.
[0119] In some embodiments, the anomaly detection unit can determine the computer performance indicators and network performance indicators during the first time period in which the first function malfunctions; and confirm whether the computer performance indicators and network performance indicators fluctuate by comparing them with the average value of the first performance indicators over historical time periods. If fluctuation is determined, the fluctuation is classified as CPU, memory, disk, or network fluctuation.
[0120] In some embodiments, the electronic device further includes a call anomaly detection unit; the system uses the context information of the test case node corresponding to the first function to perform server-side instrumentation, and the instrumentation log includes information such as TraceId, RPCId, call start time, call type, protocol type, caller IP and port, requested service name, call duration, call result, exception information, and message message. The call anomaly detection unit captures the logs and displays all the above fields in the logs containing exception information.
[0121] In some embodiments, the electronic device further includes an anomaly association judgment unit; this unit determines whether the anomaly of the first function is caused by an anomaly of the computer performance indicators and network performance indicators by calling the anomaly detection unit and the internal and external anomaly information obtained by the computer performance indicators and network performance indicators acquisition unit; if so, it performs anomaly association.
[0122] In some embodiments, the electronic device collects system environment indicators such as CPU utilization, memory utilization, network bandwidth utilization, and disk read / write utilization through an external environment indicator acquisition unit.
[0123] In some embodiments, the electronic device uses automated test scripts (an example of test cases corresponding to the first function) and tools to execute various function requests via system calls.
[0124] In some embodiments, the electronic device obtains abnormal information by statistically analyzing abnormal situations through an anomaly detection unit.
[0125] In some embodiments, computer performance metrics and network performance metrics are collected for a certain period before and after the anomaly occurs. If the CPU, network bandwidth, memory, and disk performance metrics do not deviate significantly from their historical averages, then no fluctuation in computer and network performance metrics has occurred. If the metrics at a certain point in time show a large discrepancy, anomaly classification and comparative correlation are required. For example, if the collected data shows that the ping time in the network is far below the historical average, and a SocketTimeoutException occurs at this time, a correlation can be established.
[0126] This application provides a stability assessment method. Figure 7 This is a schematic diagram illustrating the implementation process of the stability evaluation method provided in the embodiments of this application, as shown below. Figure 7 As shown, the method includes steps 701 to 708:
[0127] Step 701: Initialize the constant factor of the user interaction unit;
[0128] Step 702: Collect the CPU utilization, memory utilization, network bandwidth utilization, memory utilization and disk read / write utilization of the system to be evaluated, as well as the corresponding first performance parameters, through the external environment indicator collection unit.
[0129] Step 703: Use automated test scripts (an example of test cases corresponding to the first function) and tools to execute various function requests for system calls;
[0130] Step 704: Obtain abnormal information by statistically analyzing abnormal situations through the anomaly detection unit.
[0131] In some embodiments, a first performance parameter is collected within a first time period when the first function malfunctions. If the difference between the CPU, network bandwidth, memory, and disk performance metrics and the average value of the first performance parameter within a historical time period is less than a first threshold, then no fluctuation in computer performance metrics or network performance metrics has occurred. If the difference is greater than or equal to the first threshold, then anomaly classification and comparative correlation are required. For example, if the collected data shows that the ping performance time in the network is far below the historical average, and the system experiences a SocketTimeoutException at this time, then correlation can be established.
[0132] Step 705: Has an abnormal first performance parameter been collected? If yes, proceed to step 706; otherwise, proceed to step 707.
[0133] Step 706: The anomaly association judgment unit determines the first performance parameter that satisfies the first condition and is associated with the first function;
[0134] Step 707: The algorithm unit calculates the evaluation score of the first function and sorts the evaluation scores.
[0135] In some embodiments, the evaluation score of the first function can be calculated according to equation (1). Wherein, N is an anomaly factor constant (e.g., the parameter value of the type parameter of the system to be evaluated). P(e) is the probability or frequency of the first function occurring an anomaly, equal to the number of times the first function occurs an anomaly divided by the total number of calls (e.g., the number of times the test case corresponding to the first function is called). I(e) is the anomaly impact score (e.g., the impact parameter value of the second function whose correlation with the first function is greater than the third threshold, or the impact parameter value of the first function). T is the average time interval between the occurrence of the same anomaly (e.g., the average time interval between two consecutive anomalies of the first function). S(ee) is the absolute value of the difference between the parameter value of each environmental parameter and the total value of the corresponding operating environment when the first function occurs an anomaly. The higher the frequency of the first function occurring an anomaly, the higher the evaluation score of the first function; if the first function affects the second function, The evaluation score is the sum of the impact parameter values of the first function and the impact parameter values of each second function. The evaluation score of the first function is inversely proportional to the average interval between adjacent anomalies, that is, the longer the average interval, the lower the evaluation score. The external environment score is added. The higher the score of the first function, the better the external environment. For example, if the anomaly occurs when the utilization rate of each first performance parameter is relatively low, the score of the first function will be higher.
[0136] In some embodiments, a second function that is affected by the first function can be predefined.
[0137] Step 708: The user interaction unit displays the first function corresponding to the sorted evaluation score and displays the first performance parameters that meet the first condition and are associated with the first function in the same row, up row, or in the same table.
[0138] In some embodiments, when the first function malfunctions, computer performance indicators and network performance indicators are collected to determine the first performance parameter that meets the first condition; the process then proceeds to the association unit, where keyword matching analysis is performed based on the malfunction of the first function and the malfunction of the first performance parameter. The malfunctions are categorized into internal malfunctions and malfunctions of the first function caused by the first performance parameter associated with the first function, and the latter is associated with other malfunctions.
[0139] In some embodiments, test cases that detect anomalies (e.g., abnormal test cases corresponding to the first function) are classified into two test case sets according to a second threshold. Abnormal test cases less than or equal to the second threshold constitute a first test case set, and the test cases in the first test case set are described as first type test cases. Abnormal test cases greater than the second threshold constitute a second test case set, and the abnormal test cases in the second test case set are described as second type test cases. Figure 8 This is a schematic diagram of the Stackelberg game model provided in the embodiments of this application, as shown below. Figure 8 As shown, this application embodiment uses a two-layer Stackelberg game model to find the optimal solution and allocate the number of test cases under the constraint of test return rate.
[0140] The cost of executing the first type of use case is TC1 = a1Q1 2 The performance return of the first type of use case and / or the second type of use case is P = KQ, where Q = Q 主 +Q 从 K is the inverse return coefficient, a constant; a is the execution use case cost coefficient (a constant greater than 1 and less than 2), determined based on the actual execution use case cost. First return π 从 =P*Q 从 -a1Q 从 2 =(KQ 主 -Q 从 )*Q 从 -a1Q 从 2 The first-order condition for maximizing the benefit of the first use case set is: according to The reaction function Q for the first use case set is obtained. 从 =F(Q) 主 The second benefit π of the second use case set 主 =P*Q 主 -a2Q 主 2 =(KQ 主-Q 从 )*Q 主 -a2Q 主 2 Q 从 =F(Q) 主 Substitute π 主 =P*Q 主 -a2Q 主 2 =(KQ 主 -Q 从 )*Q 主 -a2Q 主 2 ,according to and Q 从 =F(Q) 主 Under the two-layer Stackelberg game model, the first and second quantities maximize the execution benefit, that is, maximize the saving of time and computing resources for executing use cases.
[0141] This application provides a multi-dimensional system stability assessment method that considers not only the probability of a first function malfunctioning, but also the time interval between two consecutive malfunctions of the first function, the influence parameter value of the first function, and the influence parameter value of a second function associated with the first function.
[0142] In this embodiment, the evaluation score of the first function is determined based on the sum of the influence degree parameter values of the first function and the influence degree parameter values of each of the second functions.
[0143] This application proposes to perform full-link detection of anomalies in the first function and to monitor computer performance indicators and network performance indicators throughout the process, wherein anomalies in the first function caused by fluctuations in computer performance indicators and network performance indicators are correlated.
[0144] The embodiments of this application take into account different types of applications, and reasonable constant factors can be freely set to improve its versatility.
[0145] In this application embodiment, an anomaly evaluation score is set for the first function, and the executed abnormal test cases are distinguished into a first test case set and a second test case set.
[0146] This application establishes a Stackelberg two-layer game model, where executing all use cases incurs corresponding costs. The optimal solution is to select an appropriate number of use cases in both the first and second use case sets to maximize the revenue.
[0147] It should be noted that although the steps of the method in this application are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps; or steps from different embodiments may be combined into a new technical solution.
[0148] Based on the foregoing embodiments, this application provides a stability evaluation device, which includes various modules and units included in each module, and can be implemented by a processor; of course, it can also be implemented by specific logic circuits; in the implementation process, the processor can be a central processing unit (CPU), microprocessor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA), etc.
[0149] Figure 9 This is a schematic diagram of the structure of the stability evaluation device provided in the embodiments of this application, as shown below. Figure 9 As shown, the stability evaluation device 90 includes a first determining module 91 and a second determining module 92, wherein:
[0150] The first determining module 91 is used to determine a first parameter of at least one first function in the system to be evaluated; the first parameter is used to characterize the situation where the corresponding first function is abnormal.
[0151] The first determining module 91 is further configured to determine a second parameter, the second parameter including at least one of the following: an influence parameter characterizing the second function associated with the first function, a type parameter characterizing the type of the system to be evaluated, and an environmental parameter characterizing the operating environment of the system to be evaluated;
[0152] The second determining module 92 is used to determine the evaluation score of the first function based on the first parameter and the second parameter of the first function;
[0153] The second determining module 92 is further configured to determine a third parameter based on the evaluation score of the at least one first function; the third parameter is used to characterize the stability of the system to be evaluated.
[0154] In some embodiments, the first parameter includes at least one of the following: the probability of the first function malfunctioning, the frequency of malfunctions, and the time interval between two consecutive malfunctions.
[0155] In some embodiments, the influence parameters include parameter values characterizing the degree of influence of the second function on the system to be evaluated and / or parameter values characterizing the degree of association between the first function and the second function.
[0156] In some embodiments, the stability assessment device further includes a display module, and the first determining module 91 is configured to determine a first performance parameter whose parameter value meets a first condition during a first time period in which the first function malfunctions; wherein the first performance parameter includes parameters characterizing hardware performance and / or parameters characterizing network performance; the display module is configured to display the first function and the first performance parameter associated with the first function that meets the first condition.
[0157] In some embodiments, the first determining module is configured to determine a first average value of the parameter values of the first performance parameter within the first time period; determine a second average value of the parameter values of the first performance parameter within a second time period; and determine that the corresponding first performance parameter satisfies a first condition if the absolute value of the difference between the first average value and the second average value is greater than or equal to a first threshold.
[0158] In some embodiments, the stability assessment device further includes a classification module and a third determination module. The classification module is used to classify the test cases corresponding to the at least one first function according to the assessment score and a second threshold to obtain a first type of test cases and a second type of test cases. The third determination module is used to determine a first number of test cases in the first type and a second number of test cases in the second type based on a Stackelberg model; determine valid test cases in the first type of test cases based at least on the first number; and determine valid test cases in the second type of test cases based at least on the second number.
[0159] In some embodiments, the stability assessment device further includes a construction module, which is configured to: use the first quantity as a first independent variable, the second quantity as a second independent variable, and the first benefit of the first type of use case as a first dependent variable; construct a first benefit function for the first type of use case based at least on the first independent variable, the second independent variable, and the first dependent variable; differentiate the first benefit function to obtain a first relationship between the first independent variable and the second independent variable; and construct a second benefit function for the second type of use case based at least on the first independent variable, the second independent variable, and the second dependent variable, using the second benefit of the second type of use case as a second dependent variable; the third determination module is configured to determine the first quantity and the second quantity based on the first relationship and the second benefit function.
[0160] The descriptions of the above device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0161] It should be noted that the module division of the stability evaluation device in this embodiment is illustrative and only represents a logical functional division; in actual implementation, there may be other division methods. Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, exist as separate physical units, or have two or more units integrated into one unit. The integrated units can be implemented in hardware, as software functional units, or a combination of software and hardware.
[0162] It should be noted that, in the embodiments of this application, if the above-mentioned stability assessment method is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, or the part that contributes to the related technology, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, mobile hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.
[0163] This application provides an electronic device. Figure 10 This is a schematic diagram of the hardware entity of the electronic device according to an embodiment of this application, such as... Figure 10 As shown, the electronic device 100 includes a memory 1001 and a processor 1002. The memory 1001 stores a computer program that can run on the processor 1002. When the processor 1002 executes the program, it implements the steps in the method provided in the above embodiments.
[0164] It should be noted that the memory 1001 is configured to store instructions and applications executable by the processor 1002, and can also cache data to be processed or already processed (e.g., image data, audio data, voice communication data and video communication data) in the processor 1002 and various modules in the electronic device 100. It can be implemented by flash memory or random access memory (RAM).
[0165] This application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps in the stability evaluation method provided in the above embodiments.
[0166] This application provides a computer program product containing instructions that, when run on a computer, cause the computer to perform the steps in the stability evaluation method provided in the above-described method embodiments.
[0167] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium, storage medium, and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0168] It should be understood that the phrases "one embodiment," "an embodiment," or "some embodiments" mentioned throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment," "in one embodiment," or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. The descriptions of the various embodiments above tend to emphasize the differences between the various embodiments; their similarities or commonalities can be referred to mutually, and for the sake of brevity, they will not be repeated here.
[0169] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three kinds of relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist simultaneously, and object B exists alone.
[0170] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0171] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or modules can be electrical, mechanical, or other forms.
[0172] The modules described above as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules. They may be located in one place or distributed across multiple network units. Some or all of the modules may be selected to achieve the purpose of this embodiment according to actual needs.
[0173] In addition, each functional module in the various embodiments of this application can be integrated into one processing unit, or each module can be a separate unit, or two or more modules can be integrated into one unit; the integrated modules can be implemented in hardware or in the form of hardware plus software functional units.
[0174] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0175] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0176] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined to obtain new method embodiments without conflict. The features disclosed in the several product embodiments provided in this application can be arbitrarily combined to obtain new product embodiments without conflict. The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined to obtain new method embodiments or device embodiments without conflict.
[0177] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A stability assessment method, characterized in that, The method includes: A first parameter is determined for at least one first function in the system to be evaluated; the first parameter is used to characterize the situation in which the corresponding first function is abnormal; the first parameter includes the probability or frequency of the first function being abnormal, and the time interval between two consecutive abnormal occurrences of the first function. The second parameter is determined, and the second parameter includes: an impact parameter characterizing the second function associated with the first function, a first function impact parameter characterizing the degree of impact of the first function on the system to be evaluated, a type parameter characterizing the type of the system to be evaluated, and an environmental parameter characterizing the operating environment of the system to be evaluated; the second function impact parameter includes a parameter characterizing the degree of impact of the second function on the system to be evaluated and a parameter characterizing the degree of association between the first function and the second function; the parameter values of the environmental parameter include at least CPU utilization, network bandwidth utilization, memory utilization, and disk read / write utilization, and the utilization is determined based on the ratio of the amount used to the peak amount; In the second function, a second function whose correlation parameter value with the first function is greater than a third threshold is identified; The abnormal impact score of the first function is determined by summing the parameter values of the degree of influence of each second function on the system to be evaluated and the parameter values of the first function's influence parameters. The evaluation score of the first function is determined based on the anomaly impact score, the parameter value of the type parameter, the probability or frequency of the first function malfunctioning, the time interval between two consecutive malfunctions of the first function, and the sum of the absolute values of the differences between the parameter values of each environmental parameter and the corresponding total operating environment when the first function malfunctions. A third parameter is determined based on the evaluation score of the at least one first function; the third parameter is used to characterize the stability of the system to be evaluated.
2. The method according to claim 1, characterized in that, The method further includes: A first performance parameter is determined to satisfy a first condition during a first time period in which the parameter value meets the first condition; wherein, the first performance parameter includes parameters characterizing hardware performance and / or parameters characterizing network performance. Display the first function and the first performance parameter associated with the first function that satisfies the first condition.
3. The method according to claim 2, characterized in that, The method further includes: Determine the first average value of the parameter value of the first performance parameter within the first time period; Determine the second average value of the parameter value of the first performance parameter within the second time period; If the absolute value of the difference between the first average value and the second average value is greater than or equal to the first threshold, the corresponding first performance parameter is determined to satisfy the first condition.
4. The method according to claim 1, characterized in that, The method further includes: Based on the evaluation score and the second threshold, the test cases corresponding to the at least one first function are classified to obtain a first category of test cases and a second category of test cases. The first number of the first type of use cases and the second number of the second type of use cases are determined based on the Stackelberg model. Based at least on the first quantity, determine the valid use cases in the first type of use cases; Based at least on the second quantity, determine the valid use cases in the second type of use cases.
5. The method according to claim 4, characterized in that, The determination of the first number of the first type of use cases and the second number of the second type of use cases based on the Stackelberg model includes: Using the first quantity as the first independent variable, the second quantity as the second independent variable, and the first benefit of the first type of use case as the first dependent variable; at least based on the first independent variable, the second independent variable, and the first dependent variable, construct a first benefit function for the first type of use case. By differentiating the first revenue function, the first relationship between the first independent variable and the second independent variable is obtained; Using the second benefit of the second type of use case as the second dependent variable, a second benefit function for the second type of use case is constructed based on at least the first independent variable, the second independent variable, and the second dependent variable; The first quantity and the second quantity are determined based on the first relationship and the second revenue function.
6. A stability evaluation device, characterized in that, include: The first determining module is used to determine the first parameter of at least one first function in the system to be evaluated; The first parameter is used to characterize the situation where the corresponding first function malfunctions; The first parameter includes the probability or frequency of the first function malfunctioning, and the time interval between two consecutive malfunctions of the first function. The first determining module is further configured to determine a second parameter, the second parameter including: an impact parameter characterizing the second function associated with the first function, a first function impact parameter characterizing the degree of influence of the first function on the system to be evaluated, a type parameter characterizing the type of the system to be evaluated, and an environmental parameter characterizing the operating environment of the system to be evaluated; the second function impact parameter includes a parameter characterizing the degree of influence of the second function on the system to be evaluated and a parameter characterizing the degree of association between the first function and the second function; the parameter values of the environmental parameter include at least CPU utilization, network bandwidth utilization, memory utilization, and disk read / write utilization, the utilization being determined based on the ratio of used amount to peak amount; The second determining module is used to determine, among the second functions, a second function whose correlation parameter value with the first function is greater than a third threshold; to determine the abnormal impact score of the first function based on the sum of the parameter values of the influence degree of each determined second function on the system to be evaluated and the parameter values of the first function's influence parameter; and to determine the evaluation score of the first function based on the abnormal impact score, the parameter value of the type parameter, the probability or frequency of the first function's abnormality, the time interval between two consecutive abnormalities of the first function, and the sum of the absolute values of the differences between the parameter values of each environmental parameter and the corresponding total operating environment when the first function is abnormal. The second determining module is further configured to determine a third parameter based on the evaluation score of the at least one first function; the third parameter is used to characterize the stability of the system to be evaluated.
7. An electronic device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that, When the processor executes the program, it implements the method according to any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Method, device and system for evaluating functional modules in application program
CN109032916A
Evaluating performance maturity level of an application
US20140201714A1
