Method, device, electronic device and storage medium for determining quality parameters
By obtaining multi-dimensional quality index data from the upstream system and using the relational model to calculate quantitative software quality parameters, the problem of software quality assessment relying on manual judgment in the existing technology is solved, and efficient and accurate software quality assessment is achieved.
Patent Information
- Application Number
- CN202011218313.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-04
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-11-04
AI Technical Summary
In the existing technology, software quality assessment relies on vague manual judgment and lacks data support, resulting in low efficiency and low accuracy.
By obtaining quality indicator data of different dimensions from the upstream system connected to the software to be evaluated, we use the relationship model (such as Q=G-(n1*g11+n2*g12+…+nn*g1n)*k1-(m *g2)*k2-(l1*g31+l2*g32+…+ln*g3n)*k3-(h*g4)*k4) calculates the quality quantification parameters of the software and supports multi-dimensional quality quantification and trend analysis.
It improves the accuracy and credibility of software quality determination, greatly improves the efficiency compared to manual evaluation, and provides an intuitive and accurate quality reflection.
Smart Images

Figure CN112463589B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of software technology, and in particular to a method, device, electronic device and storage medium for determining quality parameters. Background Art
[0002] Software quality directly affects the applicability and maintenance of software. The purpose of software quality assessment is to directly support the development and obtain software products that can meet user requirements. The ultimate goal is to ensure that the product can provide quality that meets the target requirements. At present, in the process of evaluating the quality of software systems, some very vague evaluation concepts are often used to describe software quality, such as good quality, average quality, poor quality and other evaluation concepts. These evaluation concepts are often derived from manual judgment. However, relying entirely on manual judgment to determine software quality is seriously lacking in data support. On the other hand, due to the different levels of understanding of different software by each person, manual determination of software quality is not only inefficient, but also easily questioned in terms of accuracy. Summary of the invention
[0003] In view of the problems existing in the prior art, the embodiments of the present invention provide a method, device, electronic device and storage medium for determining quality parameters.
[0004] In a first aspect, an embodiment of the present invention provides a method for determining a quality parameter, comprising:
[0005] Acquire quality indicator data reflecting the quality of the software to be evaluated in different dimensions from each upstream system connected to the software to be evaluated; wherein the quality indicator data includes: one or more of first quality indicator data corresponding to the accident dimension, second quality indicator data corresponding to the online rollback dimension, third quality indicator data corresponding to the stability dimension, and fourth quality indicator data corresponding to the slow SQL dimension;
[0006] The quality quantification parameters of the software to be evaluated are determined according to the quality indicator data.
[0007] Further, determining the quality quantification parameters of the software to be evaluated according to the quality indicator data includes:
[0008] Determine the quality quantitative parameters of the software to be evaluated according to the first relational model based on one or more of the first quality indicator data corresponding to the accident dimension, the second quality indicator data corresponding to the online rollback dimension, the third quality indicator data corresponding to the stability dimension, and the fourth quality indicator data corresponding to the slow SQL dimension;
[0009] Wherein, the first relationship model is:
[0010] Q=G-(n1*g 11+n2*g 12 +…+n n *g 1n )*k1-(m*g2)*k2-(l1*g 31 +l2*g 32 +…+
[0011] l n *g 3n )*k3-(h*g4)*k4
[0012] Wherein, Q represents the quality quantification parameter of the software to be evaluated, G represents the preset standard quality quantification parameter, n1, ..., n n Indicates the number of accidents of different levels, g 11 , …, g 1n represents the quality deduction parameter corresponding to the occurrence of different levels of accidents, k1 represents the weight coefficient corresponding to the first quality indicator data; m represents the number of online rollbacks, g2 represents the quality deduction parameter corresponding to the online rollback, k2 represents the weight coefficient corresponding to the second quality indicator data; l1,…,l n Indicates the effective index corresponding to different levels of stability, l1,…,l n It takes 0 or 1. When the stability is at a certain level, the effective index corresponding to the stability of that level takes 1, and the effective index corresponding to the stability of other levels takes 0. 31 , …, g 3n represents the quality deduction parameter corresponding to different levels of stability, k3 represents the weight coefficient corresponding to the third quality indicator data; h represents the number of slow SQLs, g4 represents the quality deduction parameter corresponding to the slow SQL, and k4 represents the weight coefficient corresponding to the fourth quality indicator data.
[0013] Further, determining the quality quantification parameters of the software to be evaluated according to the quality indicator data includes:
[0014] Determine the quality quantitative parameters of the software to be evaluated in the corresponding time period according to the quality indicator data in different time periods;
[0015] The quality distribution trend of the software to be evaluated is determined according to the quality quantification parameters of the software to be evaluated in different time periods.
[0016] Furthermore, it also includes:
[0017] According to the quality distribution trend of the software to be evaluated, a quality distribution trend graph of the software to be evaluated is drawn.
[0018] Furthermore, the obtaining of quality indicator data reflecting the quality of the software to be evaluated in different dimensions from each upstream system connected to the software to be evaluated includes:
[0019] By calling the HTTP interface, quality indicator data reflecting the quality of the software to be evaluated in different dimensions is obtained from various upstream systems connected to the software to be evaluated.
[0020] Furthermore, each upstream system includes one or more of a research and development process management platform, a publishing platform, an application monitoring platform, and a database management platform;
[0021] Accordingly, the quality indicator data reflecting the quality of the software to be evaluated in different dimensions is obtained from each upstream system connected to the software to be evaluated, including:
[0022] Acquire first quality indicator data reflecting the quality of the software to be evaluated in the accident dimension from a research and development process management platform connected to the software to be evaluated;
[0023] and / or,
[0024] Acquire second quality indicator data reflecting the quality of the software to be evaluated in the online rollback dimension from a publishing platform connected to the software to be evaluated;
[0025] and / or,
[0026] Acquire third quality indicator data reflecting the quality of the software to be evaluated in the stability dimension from an application monitoring platform connected to the software to be evaluated;
[0027] and / or,
[0028] Fourth quality indicator data reflecting the quality of the software to be evaluated in a slow SQL dimension is obtained from a database management platform connected to the software to be evaluated.
[0029] In a second aspect, an embodiment of the present invention provides a device for determining a quality parameter, including:
[0030] An acquisition module is used to acquire quality indicator data reflecting the quality of the software to be evaluated in different dimensions from various upstream systems connected to the software to be evaluated; wherein the quality indicator data includes: one or more of first quality indicator data corresponding to the accident dimension, second quality indicator data corresponding to the online rollback dimension, third quality indicator data corresponding to the stability dimension, and fourth quality indicator data corresponding to the slow SQL dimension;
[0031] The determination module is used to determine the quality quantitative parameters of the software to be evaluated according to the quality indicator data.
[0032] Furthermore, the determining module is used to:
[0033] Determine the quality quantitative parameters of the software to be evaluated according to the first relational model based on one or more of the first quality indicator data corresponding to the accident dimension, the second quality indicator data corresponding to the online rollback dimension, the third quality indicator data corresponding to the stability dimension, and the fourth quality indicator data corresponding to the slow SQL dimension;
[0034] Wherein, the first relationship model is:
[0035] Q=G-(n1*g 11 +n2*g 12 +…+n n *g 1n )*k1-(m*g2)*k2-(l1*g 31 +l2*g 32 +…+l n *g 3n )*k3-(h*g4)*k4
[0036] Wherein, Q represents the quality quantification parameter of the software to be evaluated, G represents the preset standard quality quantification parameter, n1, ..., n n Indicates the number of accidents of different levels, g 11 , …, g 1n represents the quality deduction parameter corresponding to the occurrence of different levels of accidents, k1 represents the weight coefficient corresponding to the first quality indicator data; m represents the number of online rollbacks, g2 represents the quality deduction parameter corresponding to the online rollback, k2 represents the weight coefficient corresponding to the second quality indicator data; l1,…,l n Indicates the effective index corresponding to different levels of stability, l1,…,l n It takes 0 or 1. When the stability is at a certain level, the effective index corresponding to the stability of that level takes 1, and the effective index corresponding to the stability of other levels takes 0. 31 , …, g 3n represents the quality deduction parameter corresponding to different levels of stability, k3 represents the weight coefficient corresponding to the third quality indicator data; h represents the number of slow SQLs, g4 represents the quality deduction parameter corresponding to the slow SQL, and k4 represents the weight coefficient corresponding to the fourth quality indicator data.
[0037] Furthermore, the determining module is used to:
[0038] Determine the quality quantitative parameters of the software to be evaluated in the corresponding time period according to the quality indicator data in different time periods;
[0039] The quality distribution trend of the software to be evaluated is determined according to the quality quantification parameters of the software to be evaluated in different time periods.
[0040] Furthermore, it also includes:
[0041] The drawing module is used to draw a quality distribution trend graph of the software to be evaluated according to the quality distribution trend of the software to be evaluated.
[0042] Furthermore, the acquisition module is used to:
[0043] By calling the HTTP interface, quality indicator data reflecting the quality of the software to be evaluated in different dimensions is obtained from various upstream systems connected to the software to be evaluated.
[0044] Furthermore, each upstream system in the acquisition module includes one or more of a research and development process management platform, a publishing platform, an application monitoring platform, and a database management platform;
[0045] Accordingly, the acquisition module is used to:
[0046] Acquire first quality indicator data reflecting the quality of the software to be evaluated in the accident dimension from a research and development process management platform connected to the software to be evaluated;
[0047] and / or,
[0048] Acquire second quality indicator data reflecting the quality of the software to be evaluated in the online rollback dimension from a publishing platform connected to the software to be evaluated;
[0049] and / or,
[0050] Acquire third quality indicator data reflecting the quality of the software to be evaluated in the stability dimension from an application monitoring platform connected to the software to be evaluated;
[0051] and / or,
[0052] Fourth quality indicator data reflecting the quality of the software to be evaluated in a slow SQL dimension is obtained from a database management platform connected to the software to be evaluated.
[0053] In a third aspect, an embodiment of the present invention further provides 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 method for determining quality parameters as described in the first aspect above are implemented.
[0054] In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for determining quality parameters as described in the first aspect above.
[0055] It can be seen from the above technical scheme that the quality parameter determination method, device, electronic device and storage medium provided by the embodiment of the present invention obtains quality indicator data reflecting software quality in different dimensions from each upstream system connected to the software to be evaluated; and determines the quality quantification parameters of the software to be evaluated according to the quality indicator data. In the process of determining the software quality, the embodiment of the present invention obtains quality indicator data reflecting software quality in different dimensions from each upstream system connected to the software to be evaluated, so that the software quality can be quantified based on multi-dimensional quality according to the software quality data of different dimensions, so as to effectively improve the accuracy of software quality determination. At the same time, due to the support of big data, the credibility of the determination result of software quality is also relatively high. At the same time, compared with the manual evaluation method, the efficiency is also greatly improved. It can be understood that by determining the quality quantification parameters of the software to be evaluated according to the quality indicator data, the quality of the software can be quantified, so that the obtained quality quantification parameters can reflect the quality of the software more intuitively, accurately and specifically. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0057] Figure 1 A flow chart of a method for determining quality parameters provided by an embodiment of the present invention;
[0058] Figure 2 A schematic diagram of the quality distribution trend of software to be evaluated provided by an embodiment of the present invention;
[0059] Figure 3 A schematic diagram of the structure of a device for determining quality parameters provided by an embodiment of the present invention;
[0060] Figure 4 The figure is a schematic diagram of the physical structure of an electronic device in one embodiment of the present invention. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0062] Figure 1 A flow chart of a method for determining quality parameters provided by an embodiment of the present invention; Figure 1 As shown, the method includes:
[0063] Step 101: Acquire quality indicator data reflecting the quality of the software to be evaluated in different dimensions from various upstream systems connected to the software to be evaluated.
[0064] In this step, it can be understood that the upstream systems connected to the software to be evaluated can refer to: R&D process management platform, release platform, application monitoring platform, etc.; dimensions can refer to: accident dimension, online rollback dimension, stability dimension, slow SQL dimension, etc. For example, assuming that the software to be determined for quality is software A, the first quality indicator data that can reflect the quality of the software from the accident dimension can be obtained from the R&D process management platform connected to software A; or the fourth quality indicator data that can reflect the quality of the software from the slow SQL dimension can be obtained from the application monitoring platform connected to software A, or the first quality indicator data that can reflect the quality of the software from the accident dimension, the second quality indicator data that can reflect the quality of the software from the online rollback dimension, the third quality indicator data that can reflect the quality of the software from the stability dimension, and the fourth quality indicator data that can reflect the quality of the software from the slow SQL dimension can be obtained from the R&D process management platform, release platform, application monitoring platform and database management platform connected to software A.
[0065] Step 102: Determine the quality quantification parameters of the software to be evaluated according to the quality indicator data.
[0066] In this step, it can be understood that the quality quantification parameter of the software can be a numerical value, and the quality quantification parameter of the software is calculated through a number of quality indicator data, so that the numerical value representing the quality quantification parameter of the software obtained by calculation reflects the quality of the software.
[0067] In this step, multi-dimensional quality indicator data is used to determine the quality quantitative parameters of the software. It can be seen that since there are multi-dimensional software quality indicator data as the basis for determining software quality, the determination result of software quality can be made more accurate and reliable.
[0068] In this step, when determining the quality quantitative parameters of the software to be evaluated according to the quality indicator data, a variety of processing methods can be adopted. For example, multiple quality indicator data (such as first quality indicator data, second quality indicator data, third quality indicator data and fourth quality indicator data) obtained from various dimensions can be input into a preset calculation model, and the calculation model will determine the quality quantitative parameters of the software according to the preset calculation formula based on the multiple quality indicator data (such as first quality indicator data, second quality indicator data, third quality indicator data and fourth quality indicator data).
[0069] In addition, in other implementations, the quality quantification parameters of the software can also be determined by machine learning. For example, the quality indicator data obtained from each dimension (including one dimension or multiple dimensions) (such as the first quality indicator data, the second quality indicator data, the third quality indicator data and the fourth quality indicator data, or the first quality indicator data, the second quality indicator data and the third quality indicator data, or the first quality indicator data, the second quality indicator data and the fourth quality indicator data, etc.) can be input into the quality quantification parameter determination model, and then the quality quantification parameters of the software to be evaluated are determined according to the results output by the model. It should be noted that the quality quantification parameter determination model is obtained by training the training data based on machine learning, wherein the training data includes the quality indicator sample data of each dimension corresponding to each software and the quality quantification label parameters of the corresponding software. It can be understood that the initial model is trained by the training data until the training ends when the model convergence condition is met.
[0070] It can be seen from the above technical scheme that the method for determining the quality parameters provided by the embodiment of the present invention obtains quality indicator data that can reflect the quality of the software from different dimensions from each upstream system that is connected to the software to be evaluated; and determines the quality quantification parameters of the software to be evaluated according to the quality indicator data. In the process of determining the quality of the software, the embodiment of the present invention obtains quality indicator data that can reflect the quality of the software from different dimensions from each upstream system that is connected to the software to be evaluated, so that the quality of the software can be determined based on multi-dimensional quality quantification according to the software quality data of different dimensions, thereby effectively improving the accuracy of the software quality determination. At the same time, due to the support of big data, the credibility of the determination result of the software quality is also relatively high. At the same time, compared with the manual evaluation method, the efficiency is also greatly improved. It can be understood that by determining the quality quantification parameters of the software to be evaluated according to the quality indicator data, the quality of the software can be quantified, so that the obtained quality quantification parameters can more intuitively, accurately and specifically reflect the quality of the software.
[0071] Based on the above embodiments, in this embodiment, the quality indicator data includes: one or more of first quality indicator data corresponding to the accident dimension, second quality indicator data corresponding to the online rollback dimension, third quality indicator data corresponding to the stability dimension, and fourth quality indicator data corresponding to the slow SQL dimension.
[0072] In this embodiment, it should be noted that the accident dimension may refer to the type of accident that occurs during the software operation and the number of occurrences of each type of accident. Here, the accident type may be a serious accident, a general accident, a medium accident, etc. For example, a serious accident may be a data error or a logic error caused by a code conversion error during the software operation, which may cause serious consequences; for example, a medium accident may allow unauthorized users to access encrypted data in the software; when determining the software quality from the accident dimension, the type of accident that occurs and the number of occurrences of each type of accident are generally used as the judgment criteria. For example, the first quality indicator data corresponding to the accident dimension can be determined according to the type of accident that occurs and the number of occurrences of each type of accident. The online rollback dimension may refer to the situation where code rollback occurs during the software operation. When determining the software quality from the online rollback dimension, the number of online rollbacks that occur is generally used as the judgment criteria. For example, the second quality indicator data corresponding to the online rollback dimension can be determined according to the number of online rollbacks that occur. The stability dimension may refer to the stability level during the software operation. Here, the stability level may include very stable, relatively stable, generally stable, unstable, very unstable, etc. For example, the stability of the software can be calculated by data volume / total access volume*100, and the calculated stability is matched with the preset stability level data table to determine whether the stability is very stable or other stability conditions (such as relatively stable, generally stable, unstable, very unstable, severely unstable, etc.). For example, the preset stability data in the range of [99.99%, 99.9%] is very stable, the preset stability data in the range of [99.9%, 90%] is relatively stable, the preset stability data in the range of [90%, 80%] is generally stable, the preset stability data in the range of [80%, 70%] is unstable, the preset stability data in the range of [70%, 50%] is very unstable, and the preset stability data below 50% is severely unstable. When determining the software quality from the stability dimension, the stability level during the software operation process is generally used as the judgment standard. For example, the third quality indicator data corresponding to the accident dimension can be determined based on the stability level during the software operation process.
[0073] The slow SQL dimension may refer to the number of times slow SQL occurs during software operation. Generally speaking, the more times slow SQL occurs, the worse the software quality is. When determining software quality from the slow SQL dimension, the number of times slow SQL occurs is generally used as a judgment criterion. For example, the fourth quality indicator data corresponding to the slow SQL dimension may be determined based on the number of times slow SQL occurs.
[0074] For ease of understanding, the concept of slow SQL is explained here. Slow SQL refers to SQL statements that run relatively slowly, that is, SQL statements whose execution time exceeds the time threshold set by the long_query_time parameter. For example, if the default value of long_query_time is 10s, then statements that run for more than 10 seconds are slow SQL statements. The main reason for slow SQL is SQL writing problems (such as long strings, functions added before fields, and not using ascending sorting, etc.).
[0075] The method for determining quality parameters provided by the embodiment of the present invention obtains first quality indicator data reflecting software quality from the accident dimension, and / or obtains second quality indicator data reflecting software quality from the online rollback dimension, and / or obtains third quality indicator data reflecting software quality from the stability dimension, and / or obtains fourth quality indicator data reflecting software quality from the slow SQL dimension, and determines the quality quantitative parameters of the software according to one or more of the first quality indicator data, the second quality indicator data, the third quality indicator data, and the fourth quality indicator data, thereby determining the corresponding quality quantitative parameters through the first quality indicator data corresponding to the accident dimension, the second quality indicator data corresponding to the online rollback dimension, the third quality indicator data corresponding to the stability dimension, and the fourth quality indicator data corresponding to the slow SQL dimension, and performing software quality determination, thereby providing data support for software quality determination through multiple dimensions, and providing data quantification means at the same time, ensuring that the determined software quality results are more objective and accurate.
[0076] On the basis of the above embodiment, in this embodiment, determining the quality quantification parameter of the software to be evaluated according to the quality indicator data includes:
[0077] Determine the quality quantitative parameters of the software to be evaluated according to the first relational model based on one or more of the first quality indicator data corresponding to the accident dimension, the second quality indicator data corresponding to the online rollback dimension, the third quality indicator data corresponding to the stability dimension, and the fourth quality indicator data corresponding to the slow SQL dimension;
[0078] Wherein, the first relationship model is:
[0079] Q=G-(n1*g 11 +n2*g12 +…+n n *g 1n )*k1-(m*g2)*k2-(l1*g 31 +l2*g 32 +…+l n *g 3n )*k3-(h*g4)*k4
[0080] Wherein, Q represents the quality quantification parameter of the software to be evaluated, G represents the preset standard quality quantification parameter, n1, ..., n n Indicates the number of accidents of different levels, g 11 , …, g 1n represents the quality deduction parameter corresponding to the occurrence of different levels of accidents, k1 represents the weight coefficient corresponding to the first quality indicator data; m represents the number of online rollbacks, g2 represents the quality deduction parameter corresponding to the online rollback, k2 represents the weight coefficient corresponding to the second quality indicator data; l1,…,l n Indicates the effective index corresponding to different levels of stability, l1,…,l n It takes 0 or 1. When the stability is at a certain level, the effective index corresponding to the stability of that level takes 1, and the effective index corresponding to the stability of other levels takes 0. 31 , …, g 3n represents the quality deduction parameter corresponding to different levels of stability, k3 represents the weight coefficient corresponding to the third quality indicator data; h represents the number of slow SQLs, g4 represents the quality deduction parameter corresponding to the slow SQLs, and k4 represents the weight coefficient corresponding to the fourth quality indicator data. In this embodiment, generally speaking, k1+k2+k3+k4=1.
[0081] In this embodiment, it should be noted that the stability level may include very stable, relatively stable, generally stable, unstable, very unstable, etc. Generally speaking, l1 represents the effective index corresponding to when the stability is very stable, l2 represents the effective index corresponding to when the stability is relatively stable, l3 represents the effective index corresponding to when the stability is generally stable, etc. n Indicates the effective index corresponding to the severe stability. In this embodiment, l1, ..., l n It takes 0 or 1, that is, when the stability level is relatively stable, the effective index corresponding to relatively stable is 1, and when there is no stability level, the effective index corresponding to very stable is 0. For example, within a certain period of time, the stability data calculated by the preset stability formula are found to have two non-standard data. The two non-standard stability data correspond to relatively stable and generally stable situations, that is, l2 and l3 take 1, and the others (l1 and l 4~ l n) is 0, and l1, l2, l3, l4...l n Bring in the first relational model for calculation.
[0082] For a better understanding of this embodiment, for example:
[0083] The preset standard quality quantification parameter G is 100; 2 serious accidents and 3 general accidents occurred in a certain period of time; the quality deduction parameter corresponding to the serious accident is 10, the quality deduction parameter corresponding to the general accident is 5, and the weight coefficient corresponding to the first quality indicator data corresponding to the accident dimension is 0.5; 3 online rollbacks occurred in a certain period of time, the quality deduction parameter corresponding to the online rollback was 8, and the second quality indicator data corresponding to the online rollback dimension was 0.2; in a certain period of time, the stability data calculated by the preset stability formula was found to be two non-compliant, corresponding to the relatively stable and generally stable situations, that is, l2 and l3 are 1, and the rest (l1 and l 4~ l n ) is 0, the quality deduction parameter corresponding to very stable is 5, the quality deduction parameter corresponding to relatively stable is 10, the quality deduction parameter corresponding to generally stable is 15, and the weight coefficient corresponding to the third quality indicator data corresponding to the stability dimension is 0.2; the number of slow SQLs occurring in a certain period of time is 2, the quality deduction parameter corresponding to slow SQL is 0.6, and the weight coefficient corresponding to the fourth quality indicator data corresponding to the slow SQL dimension is 0.1. Substitute the above data into the first relationship model to calculate the quality quantitative parameters of the software:
[0084] Q=100-(2*10+3*5)*0.5-(3*8)*0.2-(0*5+1*10+1*15)*0.2-(2*0.6)*0.1=72.58
[0085] The method for determining quality parameters provided in the embodiment of the present invention brings the data corresponding to the first model into the first relationship model, and can calculate the quality quantification parameters of the software to be evaluated according to the first relationship model, thereby automatically determining the quality quantification parameters of the software. If the background data is updated, the method for determining quality parameters provided in the embodiment of the present invention can support one-click recalculation of the quality quantification parameters of the software.
[0086] On the basis of the above embodiment, in this embodiment, determining the quality quantification parameter of the software to be evaluated according to the quality indicator data includes:
[0087] Determine the quality quantitative parameters of the software to be evaluated in the corresponding time period according to the quality indicator data in different time periods;
[0088] The quality distribution trend of the software to be evaluated is determined according to the quality quantification parameters of the software to be evaluated in different time periods.
[0089] In the embodiment of the present invention, it can be understood that the cycle can be three days, one week, fifteen days, etc., and can be set according to actual needs. For example, 7 days is preset as a cycle; based on the quality indicator data within thirty days, that is, four cycles, the quality quantitative data of the software to be evaluated within these thirty days is determined. For example, a time point of a certain day from Monday to Sunday is set to obtain the quality indicator data within the previous cycle as the quality indicator data of the first cycle, such as the quality indicator data of the seven days from March 22 to March 29, and then the quality quantitative parameters of the software for these seven days are determined based on the quality indicator data of the first cycle; similarly, the quality indicator data of the second cycle (March 29 to April 5) is obtained to determine the quality quantitative parameters of the software in the second cycle; the quality indicator data of the third week is obtained. The quality index data of the third period (April 5 to April 12) are used to determine the quality quantitative parameters of the third period software; the quality index data of the fourth period (April 12 to April 19) are obtained to determine the quality quantitative parameters of the fourth period software; thus, the quality distribution trend of the software is determined according to the quality quantitative parameters of the first period software, the quality quantitative parameters of the second period software, the quality quantitative parameters of the third period software and the quality quantitative parameters of the fourth period software; for example, if the quality quantitative parameter of the first period software is 168, the quality quantitative parameter of the second period software is 145, the quality quantitative parameter of the third period software is 180, and the quality quantitative parameter of the fourth period software is 172, it is determined that the quality distribution trend of the software within thirty days is first decreasing, then increasing, and then decreasing.
[0090] The quality parameter determination method provided by the embodiment of the present invention can determine the software quality in a certain period of time, thereby obtaining the trend of the quality, and thus obtaining a set of dynamic quality parameter determination methods.
[0091] Based on the above embodiment, in this embodiment, it further includes:
[0092] According to the quality distribution trend of the software to be evaluated, a quality distribution trend graph of the software to be evaluated is drawn.
[0093] In this embodiment, the quality distribution trend diagram of the software is drawn as follows: Figure 2 As shown, the picture can more intuitively reflect the software quality and the quality distribution trend of the software. At the same time, it can also conveniently track the changing trend of software quality and intuitively reflect whether the software quality has been improved or deteriorated, so as to control the trend of software quality and follow up and adjust the R&D level of software developers.
[0094] On the basis of the above embodiment, in this embodiment, the quality indicator data reflecting the quality of the software to be evaluated in different dimensions is obtained from each upstream system connected to the software to be evaluated, including:
[0095] By calling the HTTP interface, quality indicator data reflecting the quality of the software to be evaluated in different dimensions is obtained from various upstream systems connected to the software to be evaluated.
[0096] In the embodiment of the present invention, it is understandable that data can be exchanged between various systems through the HTTP interface. For example, the system can query the R&D process management platform connected to the software by calling the HTTP interface to obtain quality indicator data that can reflect the quality of the software from the accident dimension; or the system can query the release platform connected to the software by calling the HTTP interface to obtain quality indicator data that can reflect the quality of the software from the online rollback dimension.
[0097] The quality parameter determination method provided in the embodiment of the present invention adopts the HTTP interface to obtain quality indicator data reflecting software quality. Since all language platforms have mature HTTP clients and libraries, the HTTP interface has wide applicability and is easy to use, so it can be easily connected to the terminal, thereby optimizing the interactivity of the data.
[0098] On the basis of the above embodiment, in this embodiment, each upstream system includes one or more of a research and development process management platform, a publishing platform, an application monitoring platform, and a database management platform;
[0099] Accordingly, the quality indicator data that can reflect the quality of the software to be evaluated from different dimensions is obtained from each upstream system connected to the software to be evaluated, including
[0100] Execute one or more of the following four processing steps: A, B, C, D:
[0101] A. Obtaining first quality indicator data reflecting the quality of the software to be evaluated in the accident dimension from a research and development process management platform connected to the software to be evaluated;
[0102] B. Obtaining second quality indicator data reflecting the quality of the software to be evaluated in the online rollback dimension from a publishing platform connected to the software to be evaluated;
[0103] C. Obtaining third quality indicator data reflecting the quality of the software to be evaluated in the stability dimension from an application monitoring platform connected to the software to be evaluated;
[0104] D. Obtain fourth quality indicator data reflecting the quality of the software to be evaluated in the slow SQL dimension from a database management platform connected to the software to be evaluated.
[0105] In the embodiment of the present invention, it should be noted that the R&D process management platform such as KeOnes system, the application monitoring platform such as FAST system (Function Analysis System), and the database management platform such as XMen system.
[0106] The method for determining quality parameters provided by the embodiment of the present invention can obtain first quality indicator data that can reflect software quality from the accident dimension from the R&D process management platform connected to the software to be evaluated; can obtain second quality indicator data that can reflect software quality from the online rollback dimension from the release platform connected to the software to be evaluated; can obtain third quality indicator data that can reflect software quality from the stability dimension from the application monitoring platform connected to the software to be evaluated; can obtain fourth quality indicator data that can reflect software quality from the slow SQL dimension from the database management platform connected to the software to be evaluated; thereby determining the quality quantitative parameters of the software based on the quality indicator data of different dimensions obtained from different platforms, providing sufficient data support, and providing accurate software quality determination results through quantified data.
[0107] Figure 3 A schematic diagram of the structure of a device for determining quality parameters according to an embodiment of the present invention is shown in FIG. Figure 3 As shown, the device includes: an acquisition module 201 and a determination module 202, wherein:
[0108] The acquisition module 201 is used to acquire quality indicator data reflecting the quality of the software to be evaluated in different dimensions from various upstream systems connected to the software to be evaluated; wherein the quality indicator data includes: one or more of the first quality indicator data corresponding to the accident dimension, the second quality indicator data corresponding to the online rollback dimension, the third quality indicator data corresponding to the stability dimension, and the fourth quality indicator data corresponding to the slow SQL dimension;
[0109] The determination module 202 is used to determine the quality quantification parameter of the software to be evaluated according to the quality indicator data.
[0110] Based on the above embodiment, the determining module is used to:
[0111] Determine the quality quantitative parameters of the software to be evaluated according to the first relational model based on one or more of the first quality indicator data corresponding to the accident dimension, the second quality indicator data corresponding to the online rollback dimension, the third quality indicator data corresponding to the stability dimension, and the fourth quality indicator data corresponding to the slow SQL dimension;
[0112] Wherein, the first relationship model is:
[0113] Q=G-(n1*g 11+n2*g 12 +…+n n *g 1n )*k1-(m*g2)*k2-(l1*g 31 +l2*g 32 +…+l n *g 3n )*k3-(h*g4)*k4
[0114] Wherein, Q represents the quality quantification parameter of the software to be evaluated, G represents the preset standard quality quantification parameter, n1, ..., n n Indicates the number of accidents of different levels, g 11 , …, g 1n represents the quality deduction parameter corresponding to the occurrence of different levels of accidents, k1 represents the weight coefficient corresponding to the first quality indicator data; m represents the number of online rollbacks, g2 represents the quality deduction parameter corresponding to the online rollback, k2 represents the weight coefficient corresponding to the second quality indicator data; l1,…,l n Indicates the effective index corresponding to different levels of stability, l1,…,l n It takes 0 or 1. When the stability is at a certain level, the effective index corresponding to the stability of that level takes 1, and the effective index corresponding to the stability of other levels takes 0. 31 , …, g 3n represents the quality deduction parameter corresponding to different levels of stability, k3 represents the weight coefficient corresponding to the third quality indicator data; h represents the number of slow SQLs, g4 represents the quality deduction parameter corresponding to the slow SQL, and k4 represents the weight coefficient corresponding to the fourth quality indicator data.
[0115] Based on the above embodiment, the determining module is used to:
[0116] Determine the quality quantitative parameters of the software to be evaluated in the corresponding time period according to the quality indicator data in different time periods;
[0117] The quality distribution trend of the software to be evaluated is determined according to the quality quantification parameters of the software to be evaluated in different time periods.
[0118] Based on the above embodiment, it also includes:
[0119] The drawing module is used to draw a quality distribution trend graph of the software to be evaluated according to the quality distribution trend of the software to be evaluated.
[0120] Based on the above embodiment, the acquisition module is used to:
[0121] By calling the HTTP interface, quality indicator data reflecting the quality of the software to be evaluated in different dimensions is obtained from various upstream systems connected to the software to be evaluated.
[0122] Based on the above embodiment, each upstream system includes one or more of a research and development process management platform, a publishing platform, an application monitoring platform, and a database management platform;
[0123] Accordingly, each upstream system in the acquisition module includes one or more of a research and development process management platform, a publishing platform, an application monitoring platform, and a database management platform;
[0124] Accordingly, the acquisition module is used to:
[0125] Acquire first quality indicator data reflecting the quality of the software to be evaluated in the accident dimension from a research and development process management platform connected to the software to be evaluated;
[0126] and / or,
[0127] Acquire second quality indicator data reflecting the quality of the software to be evaluated in the online rollback dimension from a publishing platform connected to the software to be evaluated;
[0128] and / or,
[0129] Acquire third quality indicator data reflecting the quality of the software to be evaluated in the stability dimension from an application monitoring platform connected to the software to be evaluated;
[0130] and / or,
[0131] Fourth quality indicator data reflecting the quality of the software to be evaluated in a slow SQL dimension is obtained from a database management platform connected to the software to be evaluated.
[0132] The quality parameter determination device provided in the embodiment of the present invention can be specifically used to execute the quality parameter determination method of the above embodiment. Its technical principles and beneficial effects are similar. Please refer to the above embodiment for details, which will not be repeated here.
[0133] Based on the same inventive concept, an embodiment of the present invention provides an electronic device, see Figure 4 , the electronic device specifically includes the following contents: a processor 301, a communication interface 303, a memory 302 and a communication bus 304;
[0134] Among them, the processor 301, the communication interface 303, and the memory 302 communicate with each other through the communication bus 304; the communication interface 303 is used to realize information transmission between various modeling software and intelligent manufacturing equipment module libraries and other related equipment; the processor 301 is used to call the computer program in the memory 302, and the processor implements the methods provided by the above-mentioned method embodiments when executing the computer program. For example, when the processor executes the computer program, it implements the following steps: obtaining quality indicator data reflecting the quality of the software to be evaluated in different dimensions from various upstream systems connected to the software to be evaluated; wherein the quality indicator data includes: one or more of the first quality indicator data corresponding to the accident dimension, the second quality indicator data corresponding to the online rollback dimension, the third quality indicator data corresponding to the stability dimension, and the fourth quality indicator data corresponding to the slow SQL dimension; the quality quantitative parameters of the software to be evaluated are determined according to the quality indicator data.
[0135] Based on the same inventive concept, another embodiment of the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the methods provided by the above-mentioned method embodiments, for example, obtaining quality indicator data of different dimensions reflecting the quality of the software to be evaluated from each upstream system connected to the software to be evaluated; wherein the quality indicator data includes: one or more of first quality indicator data corresponding to the accident dimension, second quality indicator data corresponding to the online rollback dimension, third quality indicator data corresponding to the stability dimension, and fourth quality indicator data corresponding to the slow SQL dimension; and determining the quality quantitative parameters of the software to be evaluated based on the quality indicator data.
[0136] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0137] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.
[0138] In addition, in the present invention, terms such as "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0139] In addition, in the present invention, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0140] In addition, in the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0141] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for determining a quality parameter, characterized in that: include: Acquire quality indicator data reflecting the quality of the software to be evaluated in different dimensions from various upstream systems connected to the software to be evaluated; wherein the quality indicator data includes: one or more of first quality indicator data corresponding to the accident dimension, second quality indicator data corresponding to the online rollback dimension, third quality indicator data corresponding to the stability dimension, and fourth quality indicator data corresponding to the slow SQL dimension; Determine the quality quantitative parameters of the software to be evaluated according to the quality indicator data; Determining the quality quantitative parameters of the software to be evaluated according to the quality indicator data includes: Determine the quality quantitative parameters of the software to be evaluated according to the first relational model based on one or more of the first quality indicator data corresponding to the accident dimension, the second quality indicator data corresponding to the online rollback dimension, the third quality indicator data corresponding to the stability dimension, and the fourth quality indicator data corresponding to the slow SQL dimension; Wherein, the first relationship model is: Q=G-(n1*g 11 +n2*g 12 +…+n n *g 1n )*k1-(m*g2)*k2-(l1*g 31 +l2*g 32 +…+ l n *g 3n )*k3-(h*g4)*k4 Wherein, Q represents the quality quantification parameter of the software to be evaluated, G represents the preset standard quality quantification parameter, n1, ..., n n Indicates the number of accidents of different levels, g 11 , …, g 1n represents the quality deduction parameter corresponding to the occurrence of different levels of accidents, k1 represents the weight coefficient corresponding to the first quality indicator data; m represents the number of online rollbacks, g2 represents the quality deduction parameter corresponding to the online rollback, k2 represents the weight coefficient corresponding to the second quality indicator data; l1,…,l n Indicates the effective index corresponding to different levels of stability, l1,…,l n It takes 0 or 1. When the stability is at a certain level, the effective index corresponding to the stability of that level takes 1, and the effective index corresponding to the stability of other levels takes 0. 31 , …, g 3n represents the quality deduction parameter corresponding to different levels of stability, k3 represents the weight coefficient corresponding to the third quality indicator data; h represents the number of slow SQLs, g4 represents the quality deduction parameter corresponding to the slow SQL, and k4 represents the weight coefficient corresponding to the fourth quality indicator data.
2. The method for determining quality parameters according to claim 1, characterized in that: Determining the quality quantitative parameters of the software to be evaluated according to the quality indicator data includes: Determine the quality quantitative parameters of the software to be evaluated in the corresponding time period according to the quality indicator data in different time periods; The quality distribution trend of the software to be evaluated is determined according to the quality quantification parameters of the software to be evaluated in different time periods.
3. The method for determining quality parameters according to claim 2, characterized in that: Also includes: According to the quality distribution trend of the software to be evaluated, a quality distribution trend graph of the software to be evaluated is drawn.
4. The method for determining quality parameters according to claim 1, characterized in that: The obtaining of quality indicator data reflecting the quality of the software to be evaluated in different dimensions from each upstream system connected to the software to be evaluated includes: By calling the HTTP interface, quality indicator data reflecting the quality of the software to be evaluated in different dimensions is obtained from various upstream systems connected to the software to be evaluated.
5. The method for determining quality parameters according to claim 1, characterized in that: The upstream systems include one or more of a research and development process management platform, a publishing platform, an application monitoring platform, and a database management platform; Accordingly, the quality indicator data reflecting the quality of the software to be evaluated in different dimensions is obtained from each upstream system connected to the software to be evaluated, including: Acquire first quality indicator data reflecting the quality of the software to be evaluated in the accident dimension from a research and development process management platform connected to the software to be evaluated; and / or, Acquire second quality indicator data reflecting the quality of the software to be evaluated in the online rollback dimension from a publishing platform connected to the software to be evaluated; and / or, Acquire third quality indicator data reflecting the quality of the software to be evaluated in the stability dimension from an application monitoring platform connected to the software to be evaluated; and / or, Fourth quality indicator data reflecting the quality of the software to be evaluated in a slow SQL dimension is obtained from a database management platform connected to the software to be evaluated.
6. A device for determining quality parameters, characterized in that: include: An acquisition module is used to acquire quality indicator data reflecting the quality of the software to be evaluated in different dimensions from various upstream systems connected to the software to be evaluated; wherein the quality indicator data includes: one or more of first quality indicator data corresponding to the accident dimension, second quality indicator data corresponding to the online rollback dimension, third quality indicator data corresponding to the stability dimension, and fourth quality indicator data corresponding to the slow SQL dimension; A determination module, used to determine the quality quantitative parameters of the software to be evaluated according to the quality indicator data; The determining module is used to: Determine the quality quantitative parameters of the software to be evaluated according to the first relational model based on one or more of the first quality indicator data corresponding to the accident dimension, the second quality indicator data corresponding to the online rollback dimension, the third quality indicator data corresponding to the stability dimension, and the fourth quality indicator data corresponding to the slow SQL dimension; Wherein, the first relationship model is: Q=G-(n1*g 11 +n2*g 12 +…+n n *g 1n )*k1-(m*g2)*k2-(l1*g 31 +l2*g 32 +…+ l n *g 3n )*k3-(h*g4)*k4 Wherein, Q represents the quality quantification parameter of the software to be evaluated, G represents the preset standard quality quantification parameter, n1, ..., n n Indicates the number of accidents of different levels, g 11 , …, g 1n represents the quality deduction parameter corresponding to the occurrence of different levels of accidents, k1 represents the weight coefficient corresponding to the first quality indicator data; m represents the number of online rollbacks, g2 represents the quality deduction parameter corresponding to the online rollback, k2 represents the weight coefficient corresponding to the second quality indicator data; l1,…,l n Indicates the effective index corresponding to different levels of stability, l1,…,l n It takes 0 or 1. When the stability is at a certain level, the effective index corresponding to the stability of that level takes 1, and the effective index corresponding to the stability of other levels takes 0. 31 , …, g 3n represents the quality deduction parameter corresponding to different levels of stability, k3 represents the weight coefficient corresponding to the third quality indicator data; h represents the number of slow SQLs, g4 represents the quality deduction parameter corresponding to the slow SQL, and k4 represents the weight coefficient corresponding to the fourth quality indicator data.
7. The device for determining quality parameters according to claim 6, characterized in that: The determining module is used to: Determine the quality quantitative parameters of the software to be evaluated in the corresponding time period according to the quality indicator data in different time periods; The quality distribution trend of the software to be evaluated is determined according to the quality quantification parameters of the software to be evaluated in different time periods.
8. The device for determining quality parameters according to claim 7, characterized in that: Also includes: The drawing module is used to draw a quality distribution trend graph of the software to be evaluated according to the quality distribution trend of the software to be evaluated.
9. The device for determining quality parameters according to claim 6, characterized in that: The acquisition module is used to: By calling the HTTP interface, quality indicator data reflecting the quality of the software to be evaluated in different dimensions is obtained from various upstream systems connected to the software to be evaluated.
10. The device for determining quality parameters according to claim 6, characterized in that: The upstream systems in the acquisition module include one or more of a research and development process management platform, a publishing platform, an application monitoring platform, and a database management platform; Accordingly, the acquisition module is used to: Acquire first quality indicator data reflecting the quality of the software to be evaluated in the accident dimension from a research and development process management platform connected to the software to be evaluated; and / or, Acquire second quality indicator data reflecting the quality of the software to be evaluated in the online rollback dimension from a publishing platform connected to the software to be evaluated; and / or, Acquire third quality indicator data reflecting the quality of the software to be evaluated in the stability dimension from an application monitoring platform connected to the software to be evaluated; and / or, Fourth quality indicator data reflecting the quality of the software to be evaluated in a slow SQL dimension is obtained from a database management platform connected to the software to be evaluated.
11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method for determining the quality parameter according to any one of claims 1 to 5 are implemented.
12. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for determining quality parameters according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Method and system for tracking software quality
CN105389250A
Method and system for evaluating and tracking software quality
CN105468510A
Method and system for evaluating software quality
CN105468512A
Method and device for assessing software development quality, computer equipment and storage medium
CN108268378A
Software quality evaluation module and method, and computer-readable recording medium having, recorded thereon, program for implementing software quality evaluation method
WO2015088066A1
