A software quality evaluation method and device, an electronic device, and a storage medium

By using an automated evaluation method covering the entire software lifecycle and preset control points, the problem of time-consuming, inconsistent, and labor-intensive manual evaluation is solved, enabling accurate and comprehensive evaluation of automotive software quality, which is applicable to practical engineering applications.

CN116860652BActive Publication Date: 2026-11-27CHINA FAW CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310941626.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-28
Publication Date
2026-11-27
Estimated Expiration
2043-07-28

AI Technical Summary

Technical Problem

In existing technologies, automotive software quality assessment relies on manual labor, which is time-consuming, costly, and difficult to standardize, resulting in assessment results that are not objective enough and cannot fully reflect software quality.

Method used

An automated software quality evaluation method is adopted. By determining the evaluation indicators for the entire software lifecycle and preset control points, the corresponding quality data is obtained, and the data is transformed into standard data using processing functions. The scores of the software process and control points are calculated, and finally a quality score is generated.

Benefits of technology

It enables accurate and comprehensive automated evaluation of automotive software quality, is applicable to practical engineering applications, and improves evaluation efficiency and consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116860652B_ABST
    Figure CN116860652B_ABST
Patent Text Reader

Abstract

The application discloses a kind of software quality evaluation method, device, electronic equipment and storage medium.Equipment field is related to the software technology of car, which comprises: determining the first index and the second index corresponding to target software, wherein the first index is the evaluation index involved in the whole life cycle of software, and the second index is the evaluation index involved in the preset control point of software;Respectively, the first quality data of target software corresponding to each first index and the second quality data of target software corresponding to each second index are obtained;According to the first quality data and the second quality data, the quality score of target software is calculated.The scheme provided by the application can accurately and comprehensively evaluate the software quality, so as to be widely applicable in practical engineering applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automotive software technology, and in particular to a method, apparatus, electronic device, and storage medium for evaluating software quality. Background Technology

[0002] The trend in automotive research and development is to make cars increasingly intelligent, providing drivers with more and more driver assistance functions, ultimately leading to fully autonomous driving. The provision of these additional functions largely requires the cooperation of software and hardware, with advancements in software being more significant than in hardware. Compared to ordinary software (such as software used on personal computers or smartphones), automotive software (hereinafter referred to as automotive software) obviously has much higher requirements in terms of safety, real-time performance, and reliability. Therefore, the automotive industry has established industry standards for automotive software.

[0003] Currently, the quality assessment of automotive software mainly relies on manual methods, which consumes a lot of time and costs. Furthermore, it is difficult to standardize the criteria for manual quality assessment, and the assessment results often only address a single indicator, failing to objectively reflect the quality of automotive software. Summary of the Invention

[0004] This invention provides a method, apparatus, electronic device, and storage medium for evaluating software quality, which can accurately and comprehensively evaluate software quality and is therefore widely applicable in practical engineering applications.

[0005] According to one aspect of the present invention, a method for evaluating software quality is provided, comprising:

[0006] Determine the first and second indicators corresponding to the target software. The first indicator is the evaluation indicator involved in the entire life cycle of the software, and the second indicator is the evaluation indicator involved in the software at the preset control points.

[0007] Obtain the first quality data of the target software corresponding to each first indicator and the second quality data of the target software corresponding to each second indicator;

[0008] Calculate the quality score of the target software based on the first quality data and the second quality data.

[0009] Optionally, determine the first and second indicators corresponding to the target software, including:

[0010] Obtain a first set of indicators and a second set of indicators, wherein the first set of indicators and the second set of indicators are constructed according to software evaluation criteria;

[0011] Based on the type of target software, the first indicator and the second indicator are selected from the first indicator set and the second indicator set, respectively.

[0012] Optionally, the software lifecycle includes the software requirements analysis phase, the software design phase, the software development phase, the software testing phase, and the software release phase.

[0013] The preset control points include a first control point, a second control point, and a third control point. The first control point is the time point from the software requirements analysis phase to the software design phase, the second control point is the time point from the software development phase to the software testing phase, and the third control point is the time point from the software testing phase to the software release phase.

[0014] Optional evaluation metrics involved in the software requirements analysis phase include: requirements decomposition rate, requirements stability rate, and requirements completion rate.

[0015] Evaluation metrics involved in the software design phase include: defect density in software requirements design document review, defect density in software architecture design document review, and defect density in software detailed design document review.

[0016] Evaluation metrics involved in the software development phase include: code review defect density, unit test coverage, total number of static analysis errors, code commenting rate, maximum cyclomatic complexity, and average cyclomatic complexity.

[0017] Evaluation metrics involved in the software testing phase include: test design document review defect density, test case density, test case review defect density, and test defect density.

[0018] Evaluation metrics involved in the software release phase include: Defect Index (DI), number of security redline issues, and functional delivery maturity.

[0019] The evaluation indicators for software at the first control point include: project plan, risk plan, release plan, and product requirements document;

[0020] The evaluation metrics for the software at the second control point include: version compatibility table, smoke test report, version description, static code inspection report, code review report, unit test report, software requirements design document review record, software architecture design document review record, software detailed design review record, test design document review record, test case review record, functional completion rate, and problem resolution rate.

[0021] The evaluation metrics for software at the third control point include: version compatibility table, smoke test report, version description, static code inspection report, code review report, unit test report, software requirements design document review record, software architecture design document review record, software detailed design review record, test design document review record, test case review record, test report review record, functional completion rate, and problem resolution rate.

[0022] Optionally, based on the first quality data and the second quality data, a quality score for the target software is calculated, including:

[0023] Based on the processing function corresponding to each first indicator, the first quality data corresponding to each first indicator is transformed into first standard data, and based on the processing function corresponding to each second indicator, the second quality data corresponding to each second indicator is transformed into second standard data.

[0024] Calculate the software process score based on all the first standard data, and calculate the software control point score based on all the second standard data;

[0025] The quality score of the target software is calculated based on the software process score and the software control point score.

[0026] Optional, software process score Where K is the number of the first indicators, f(x) i ) represents the first standard data corresponding to the i-th first indicator, w i Let be the weight of the i-th first indicator;

[0027] Software control point score Q CP =W1*Q CP1 +W2*Q CP2 +W3*Q CP3 , where Q CP1 Q CP2 Q CP3 These are the scores for the first, second, and third control points, respectively. W1, W2, and W3 are Q's. CP1 Q CP2 Q CP3 The weight, M is the number of iterations of the target software, p j For the weight of the j-th iteration version, each iteration version has K1, K2, and K3 second indicators for the first, second, and third control points, respectively. i The second standard data corresponding to the second indicator in the j-th iteration is M. jki , kth i The weight of the second indicator in the j-th iteration is q. jki i = 1, 2, 3;

[0028] Quality rating Q = W P *Q P +W CP *Q CP Among them, W P W CP These are the weights for the software process score and the software control point score, respectively.

[0029] Optionally, after calculating the quality score of the target software, the following may also be included:

[0030] The quality of the target software is evaluated based on the quality score.

[0031] According to another aspect of the present invention, a software quality evaluation apparatus is provided, comprising: an index determination module, a data acquisition module, and a quality evaluation module; wherein,

[0032] The indicator determination module is used to determine the first indicator and the second indicator corresponding to the target software. The first indicator is the evaluation indicator involved in the entire life cycle of the software, and the second indicator is the evaluation indicator involved in the software at the preset control point.

[0033] The data acquisition module is used to acquire the first quality data of the target software corresponding to each first indicator and the second quality data of the target software corresponding to each second indicator.

[0034] The quality evaluation module is used to calculate the quality score of the target software based on the first quality data and the second quality data.

[0035] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0036] At least one processor; and

[0037] A memory that is communicatively connected to at least one processor; wherein,

[0038] The memory stores a computer program that can be executed by at least one processor, such that the at least one processor is able to perform the software quality evaluation method of any embodiment of the present invention.

[0039] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions for causing a processor to execute a software quality evaluation method according to any embodiment of the present invention.

[0040] The technical solution of this invention first determines the first and second indicators corresponding to the target software, then obtains the first quality data of the target software corresponding to each first indicator and the second quality data of the target software corresponding to each second indicator, and calculates the quality score of the target software based on the first and second quality data. Since the first indicator is an evaluation indicator involved throughout the software's entire lifecycle and the second indicator is an evaluation indicator involved at preset control points, it can comprehensively consider the entire software lifecycle and specific control points, enabling accurate, comprehensive, and automated evaluation of software quality, thus making it widely applicable in practical engineering applications.

[0041] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0042] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0043] Figure 1 This is a flowchart illustrating a software quality evaluation method provided in Embodiment 1 of the present invention;

[0044] Figure 2 This is a schematic diagram of a software lifecycle, preset control points, and toolchain provided in Embodiment 1 of the present invention;

[0045] Figure 3 This is an example diagram of evaluation indicators involved in the entire software lifecycle provided in Embodiment 1 of the present invention;

[0046] Figure 4 This is an example diagram of the evaluation indicators involved in the software at the preset control point provided in Embodiment 1 of the present invention;

[0047] Figure 5 This is a flowchart illustrating another software quality evaluation method provided in Embodiment 1 of the present invention.

[0048] Figure 6 This is a schematic diagram of the structure of a software quality evaluation device provided in Embodiment 2 of the present invention;

[0049] Figure 7 This is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. Detailed Implementation

[0050] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0051] It should be noted that the terms "first," "second," "third," "target," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0052] Example 1

[0053] Figure 1 This is a flowchart illustrating a software quality evaluation method provided in Embodiment 1 of the present invention. This embodiment is applicable to situations involving the evaluation of software quality. The method can be executed by a software quality evaluation device, which can be implemented in hardware and / or software and can be configured in an electronic device (such as a computer). Figure 1 As shown, the method includes:

[0054] S110. Determine the first indicator and the second indicator corresponding to the target software, wherein the first indicator is the evaluation indicator involved in the entire life cycle of the software, and the second indicator is the evaluation indicator involved in the software at the preset control point.

[0055] The target software can be any software to be evaluated, such as automotive software, mobile phone software, computer software, etc. A single target software typically has multiple primary metrics and multiple secondary metrics. Different target software may have different primary and / or secondary metrics.

[0056] The first indicator is the evaluation indicator involved throughout the entire software lifecycle, and the second indicator is the evaluation indicator involved in the software at the preset control points. Figure 2 This is a schematic diagram of a software lifecycle, preset control points, and toolchain provided in Embodiment 1 of the present invention. Figure 2As shown, the software lifecycle includes the software requirements analysis phase, software design phase, software development phase, software testing phase, and software release phase. Pre-defined control points include the first control point CP1, the second control point CP2, and the third control point CP3. The first control point CP1 is the point in time from the software requirements analysis phase to the software design phase; the second control point CP2 is the point in time from the software development phase to the software testing phase; and the third control point CP3 is the point in time from the software testing phase to the software release phase. The toolchain involved in the software lifecycle can include: requirements management tools, static analysis tools, code review tools, software testing tools, test management tools, and defect management tools.

[0057] For example, Figure 3 This is an example diagram illustrating evaluation metrics involved in the entire software lifecycle, as provided in Embodiment 1 of the present invention. Figure 3 As shown, the evaluation metrics involved in the software requirements analysis phase include: requirement decomposition rate, requirement stability rate, and requirement completion rate; the evaluation metrics involved in the software design phase include: software requirements design document review defect density, software architecture design document review defect density, and software detailed design document review defect density; the evaluation metrics involved in the software development phase include: code review defect density, unit test coverage, total number of static analysis errors, code commenting rate, maximum cyclomatic complexity, and average cyclomatic complexity; the evaluation metrics involved in the software testing phase include: test design document review defect density, test case density, test case review defect density, and test defect density; the evaluation metrics involved in the software release phase include: Defect Index (DI), number of security redline issues, and functional delivery maturity.

[0058] Table 1. Examples of Calculation of Evaluation Indicators Involved in the Software Lifecycle

[0059]

[0060] For example, Figure 4 This is an example diagram illustrating the evaluation indicators related to preset control points in a software system provided in Embodiment 1 of the present invention. For example... Figure 4As shown, the evaluation indicators for the software at the first control point include: project plan, risk plan, release plan, and product requirements document; the evaluation indicators for the software at the second control point include: version compatibility table, smoke test report, release notes, static code inspection report, code review report, unit test report, software requirements design document review record, software architecture design document review record, software detailed design review record, test design document review record, test case review record, functional completion, and problem resolution rate; the evaluation indicators for the software at the third control point include: version compatibility table, smoke test report, version notes, static code inspection report, code review report, unit test report, software requirements design document review record, software architecture design document review record, software detailed design review record, test design document review record, test case review record, test report review record, functional completion, and problem resolution rate.

[0061] The first and second indicators corresponding to the target software can be as described above. Figure 3 and Figure 4 All of the indicators shown can also be those mentioned above. Figure 3 and Figure 4 Some of the indicators shown are not specifically limited in this embodiment of the invention.

[0062] Specifically, the method for "determining the first and second indicators corresponding to the target software" in step S110 may include the following two steps:

[0063] Step a1: Obtain the first indicator set and the second indicator set, wherein the first indicator set and the second indicator set are constructed according to the software evaluation criteria.

[0064] In one embodiment, the electronic device can pre-build a first set of indicators and a second set of indicators, and store the first set of indicators and the second set of indicators in the electronic device. When it is necessary to evaluate the software quality, the first set of indicators and the second set of indicators stored in the electronic device can be read directly, thereby improving the evaluation efficiency.

[0065] Specifically, the first and second indicator sets are constructed based on software evaluation standards. These standards can be general software evaluation standards or standards corresponding to specific software types. When the software evaluation standard is a general standard, the first and second indicator sets can be applied to scenarios where the quality of various types of target software is evaluated. When the software evaluation standard is a standard corresponding to a specific software type, such as automotive software evaluation standards, the first and second indicator sets can be applied to scenarios where the quality of target software of the automotive type is evaluated.

[0066] Step a2: Based on the type of the target software, select the first indicator and the second indicator from the first indicator set and the second indicator set respectively.

[0067] In one embodiment, the first and / or second indicators may differ for different target software. Optionally, when evaluating the quality of the target software, the first and second indicators can be selected from the first and second indicator sets based on the actual evaluation accuracy requirements.

[0068] S120. Obtain the first quality data of the target software corresponding to each first indicator and the second quality data of the target software corresponding to each second indicator.

[0069] Specifically, the first quality data of the target software corresponding to each first indicator can be determined according to the data of the corresponding stage of the first indicator in the entire software life cycle; and the second quality data of the target software corresponding to each second indicator can be determined according to the data of the preset control point where the second indicator is located.

[0070] S130. Calculate the quality score of the target software based on the first quality data and the second quality data.

[0071] Specifically, the method for "calculating the quality score of the target software based on the first quality data and the second quality data" in step S130 may include the following three steps:

[0072] Step b1: Based on the processing function corresponding to each first indicator, convert the first quality data corresponding to each first indicator into first standard data, and based on the processing function corresponding to each second indicator, convert the second quality data corresponding to each second indicator into second standard data.

[0073] Because the data from different stages / preset control points have different formats, it is necessary to process the first quality data and the second quality data into normalized first standard data and second standard data. In this invention, different indicators correspond to different processing functions.

[0074] The transformation process can follow these principles:

[0075] Principle 1: The range of the processing function is [0,1];

[0076] Principle 2: The processing function should fully consider and benchmark against the evaluation target; the closer the data value is to the target standard, the larger it should be.

[0077] Principle 3: The processing function is a monotonic function, but it does not have to be a strictly monotonic function;

[0078] Principle 4: The monotonicity of the processing function results in higher quality target software and larger standard data values.

[0079] Table 2 Examples of Processing Functions

[0080]

[0081]

[0082]

[0083] Step b2: Calculate the software process score based on all the first standard data, and calculate the software control point score based on all the second standard data.

[0084] Specifically, software process score

[0085] Where K is the number of the first indicators, f(x) i ) represents the first standard data corresponding to the i-th first indicator, w i Let be the weight of the i-th first indicator.

[0086] Software control point score Q CP =W1*Q CP1 +W2*Q CP2 +W3*Q CP3 ;

[0087] Among them, Q CP1 Q CP2 Q CP3 These are the scores for the first, second, and third control points, respectively. W1, W2, and W3 are Q's. CP1 Q CP2 Q CP3 The weight, M is the number of iterations of the target software, p j For the weight of the j-th iteration version, each iteration version has K1, K2, and K3 second indicators for the first, second, and third control points, respectively. i The second standard data corresponding to the second indicator in the j-th iteration is M. jki , the kth i The weight of the second indicator in the j-th iteration is q. jki , i = 1, 2, 3.

[0088] Step b3: Calculate the quality score of the target software based on the software process score and the software control point score.

[0089] Quality rating Q = W P *Q P +W CP *Q CP ;

[0090] Among them, WP W CP These are the weights for the software process score and the software control point score, respectively.

[0091] Optionally, based on the above embodiments, Figure 5 This is a flowchart illustrating another software quality evaluation method provided in Embodiment 1 of the present invention. Figure 5 As shown, after step S130 is completed, step S140 can also be executed.

[0092] S140. Evaluate the quality of the target software based on the quality score.

[0093] In one embodiment, the quality of the target software can be divided into five levels: Perfect, Good, Not bad, Bad, and Very bad, and four thresholds are set accordingly: Q... perfect Q good Q notbad Q bad Based on the quality score, combined with the formula Evaluate the quality of the target software.

[0094] This invention provides a method for evaluating software quality, comprising: determining a first indicator and a second indicator corresponding to the target software, wherein the first indicator is an evaluation indicator involved throughout the software's entire lifecycle, and the second indicator is an evaluation indicator involved at preset control points; acquiring first quality data of the target software corresponding to each first indicator and second quality data of the target software corresponding to each second indicator; and calculating a quality score for the target software based on the first quality data and the second quality data. The technical solution of this invention first determines the first and second indicators corresponding to the target software, then acquires the first quality data of the target software corresponding to each first indicator and the second quality data of the target software corresponding to each second indicator, thereby calculating a quality score for the target software based on the first and second quality data. Since the first indicator is an evaluation indicator involved throughout the software's entire lifecycle and the second indicator is an evaluation indicator involved at preset control points, it can comprehensively consider the entire software lifecycle and specific control points, enabling accurate, comprehensive, and automated evaluation of software quality, thus making it widely applicable in practical engineering applications.

[0095] Example 2

[0096] Figure 6 This is a schematic diagram of the structure of a software quality evaluation device provided in Embodiment 2 of the present invention. Figure 6 As shown, the device includes: an index determination module 601, a data acquisition module 602, and a quality evaluation module 603.

[0097] The indicator determination module 601 is used to determine the first indicator and the second indicator corresponding to the target software. The first indicator is the evaluation indicator involved in the entire life cycle of the software, and the second indicator is the evaluation indicator involved in the software at the preset control point.

[0098] The data acquisition module 602 is used to acquire the first quality data of the target software corresponding to each first indicator and the second quality data of the target software corresponding to each second indicator, respectively.

[0099] The quality evaluation module 603 is used to calculate the quality score of the target software based on the first quality data and the second quality data.

[0100] Optionally, the indicator determination module 601 is specifically used to obtain a first indicator set and a second indicator set, wherein the first indicator set and the second indicator set are constructed according to software evaluation criteria; and to select the first indicator and the second indicator from the first indicator set and the second indicator set respectively according to the type of the target software.

[0101] Optionally, the software lifecycle includes the software requirements analysis phase, the software design phase, the software development phase, the software testing phase, and the software release phase.

[0102] The preset control points include a first control point, a second control point, and a third control point. The first control point is the time point from the software requirements analysis phase to the software design phase, the second control point is the time point from the software development phase to the software testing phase, and the third control point is the time point from the software testing phase to the software release phase.

[0103] Optional evaluation metrics involved in the software requirements analysis phase include: requirements decomposition rate, requirements stability rate, and requirements completion rate.

[0104] Evaluation metrics involved in the software design phase include: defect density in software requirements design document review, defect density in software architecture design document review, and defect density in software detailed design document review.

[0105] Evaluation metrics involved in the software development phase include: code review defect density, unit test coverage, total number of static analysis errors, code commenting rate, maximum cyclomatic complexity, and average cyclomatic complexity.

[0106] Evaluation metrics involved in the software testing phase include: test design document review defect density, test case density, test case review defect density, and test defect density.

[0107] Evaluation metrics involved in the software release phase include: Defect Index (DI), number of security redline issues, and functional delivery maturity.

[0108] The evaluation indicators for software at the first control point include: project plan, risk plan, release plan, and product requirements document;

[0109] The evaluation metrics for the software at the second control point include: version compatibility table, smoke test report, version description, static code inspection report, code review report, unit test report, software requirements design document review record, software architecture design document review record, software detailed design review record, test design document review record, test case review record, functional completion rate, and problem resolution rate.

[0110] The evaluation metrics for software at the third control point include: version compatibility table, smoke test report, version description, static code inspection report, code review report, unit test report, software requirements design document review record, software architecture design document review record, software detailed design review record, test design document review record, test case review record, test report review record, functional completion rate, and problem resolution rate.

[0111] Optionally, the quality evaluation module 603 is specifically used to convert the first quality data corresponding to each first indicator into first standard data according to the processing function corresponding to each first indicator, and to convert the second quality data corresponding to each second indicator into second standard data according to the processing function corresponding to each second indicator; to calculate the software process score based on all the first standard data, and to calculate the software control point score based on all the second standard data; and to calculate the quality score of the target software based on the software process score and the software control point score.

[0112] Optional, software process score Where K is the number of the first indicators, f(x) i ) represents the first standard data corresponding to the i-th first indicator, w i Let be the weight of the i-th first indicator;

[0113] Software control point score Q CP =W1*Q CP1 +W2*Q CP2 +W3*Q CP3 , where Q CP1 Q CP2 Q CP3 These are the scores for the first, second, and third control points, respectively. W1, W2, and W3 are Q's. CP1 Q CP2 Q CP3 The weight, M is the number of iterations of the target software, p jFor the weight of the j-th iteration version, each iteration version has K1, K2, and K3 second indicators for the first, second, and third control points, respectively. i The second standard data corresponding to the second indicator in the j-th iteration is M. jki , the kth i The weight of the second indicator in the j-th iteration is q. jki i = 1, 2, 3;

[0114] Quality rating Q = W P *Q P +W CP *Q CP Among them, W P W CP These are the weights for the software process score and the software control point score, respectively.

[0115] Optionally, the quality evaluation module 603 is also used to evaluate the quality of the target software based on the quality score after calculating the quality score of the target software.

[0116] The software quality evaluation device provided in this embodiment of the invention can execute the software quality evaluation method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.

[0117] Example 3

[0118] Figure 7 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0119] like Figure 7As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0120] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0121] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as software quality evaluation methods.

[0122] In some embodiments, the software quality evaluation method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the software quality evaluation method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the software quality evaluation method by any other suitable means (e.g., by means of firmware).

[0123] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0124] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0125] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0126] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0127] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0128] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0129] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0130] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for evaluating software quality, characterized in that, include: The first and second indicators corresponding to the target software are determined. The first indicator is an evaluation indicator involved throughout the software's entire lifecycle, and the second indicator is an evaluation indicator involved at preset control points. The software lifecycle includes the software requirements analysis phase, software design phase, software development phase, software testing phase, and software release phase. The evaluation indicators involved in the software requirements analysis phase include: requirement decomposition rate, requirement stability rate, and requirement completion rate. The evaluation indicators involved in the software design phase include: software requirements design document review defect density, software architecture design document review defect density, and software detailed design document review defect density. The evaluation indicators involved in the software development phase include: code review defect density, unit test coverage, total number of static analysis errors, code commenting rate, maximum cyclomatic complexity, and average cyclomatic complexity. The evaluation indicators involved in the software testing phase include: test design document review defect density, test case density, test case review defect density, and test defect density. The evaluation indicators involved in the software release phase include: legacy defect index (DI), number of security redline issues, and functional delivery maturity. The preset control points include a first control point, a second control point, and a third control point. The first control point is the time point from the software requirements analysis phase to the software design phase; the second control point is the time point from the software development phase to the software testing phase; and the third control point is the time point from the software testing phase to the software release phase. Evaluation indicators for the software at the first control point include: project plan, risk plan, release plan, and product requirements document. Evaluation indicators for the software at the second control point include: version compatibility table, smoke test report, version description, static code analysis report, code review report, unit test report, software requirements design document review record, software architecture design document review record, software detailed design review record, test design document review record, test case review record, functional completion rate, and problem resolution rate. Evaluation indicators for the software at the third control point include: version compatibility table, smoke test report, version description, static code analysis report, code review report, unit test report, software requirements design document review record, software architecture design document review record, software detailed design review record, test design document review record, test case review record, test report review record, functional completion rate, and problem resolution rate. Obtain the first quality data of the target software corresponding to each of the first indicators and the second quality data of the target software corresponding to each of the second indicators; The quality score of the target software is calculated based on the first quality data and the second quality data.

2. The software quality evaluation method according to claim 1, characterized in that, The determination of the first and second indicators corresponding to the target software includes: Obtain a first set of indicators and a second set of indicators, wherein the first set of indicators and the second set of indicators are constructed according to software evaluation criteria; Based on the type of the target software, the first indicator and the second indicator are selected from the first indicator set and the second indicator set, respectively.

3. The software quality evaluation method according to claim 1, characterized in that, The step of calculating the quality score of the target software based on the first quality data and the second quality data includes: Based on the processing function corresponding to each first indicator, the first quality data corresponding to each first indicator is converted into first standard data, and based on the processing function corresponding to each second indicator, the second quality data corresponding to each second indicator is converted into second standard data. Calculate the software process score based on all the first standard data, and calculate the software control point score based on all the second standard data; The quality score of the target software is calculated based on the software process score and the software control point score.

4. The software quality evaluation method according to claim 3, characterized in that, The software process score ,in, The number of the first indicator. For the first standard data corresponding to the i-th first indicator, The weight of the i-th first indicator; The software control point score ,in, , , The scores are for the first control point, the second control point, and the third control point, respectively. , , They are respectively , , The weight, , The number of iterations of the target software. For the weights of the j-th iteration version, the first control point, the second control point, and the third control point in each iteration version have respectively , , The second indicator, the first The second standard data corresponding to the second indicator in the j-th iteration version is: , No. The weight of the second indicator in the j-th iteration version is: , ; The quality score ,in, , These are the weights of the software process score and the software control point score, respectively.

5. The software quality evaluation method according to claim 1, characterized in that, After calculating the quality score of the target software, the method further includes: The quality of the target software is evaluated based on the quality score.

6. A software quality evaluation device, characterized in that, include: The module comprises three parts: indicator determination module, data acquisition module, and quality evaluation module. The indicator determination module is used to determine the first and second indicators corresponding to the target software. The first indicator is an evaluation indicator involved throughout the software's entire lifecycle, and the second indicator is an evaluation indicator involved at preset control points. The software lifecycle includes the software requirements analysis phase, software design phase, software development phase, software testing phase, and software release phase. Evaluation indicators involved in the software requirements analysis phase include: requirement decomposition rate, requirement stability rate, and requirement completion rate. Evaluation indicators involved in the software design phase include: software requirements design document review defect density, software architecture design document review defect density, and software detailed design document review defect density. Evaluation indicators involved in the software development phase include: code review defect density, unit test coverage, total number of static analysis errors, code commenting rate, maximum cyclomatic complexity, and average cyclomatic complexity. Evaluation indicators involved in the software testing phase include: test design document review defect density, test case density, test case review defect density, and test defect density. Evaluation indicators involved in the software release phase include: legacy defect index (DI), number of security redline issues, and functional delivery maturity. The preset control points include a first control point, a second control point, and... The third control point is the point in time from the software requirements analysis phase to the software design phase, the second control point is the point in time from the software development phase to the software testing phase, and the third control point is the point in time from the software testing phase to the software release phase. The evaluation indicators for the software at the first control point include: project plan, risk plan, release plan, and product requirements document. The evaluation indicators for the software at the second control point include: version compatibility table, smoke test report, version description, static code inspection report, code review report, unit test report, software requirements design document review record, software architecture design document review record, software detailed design review record, test design document review record, test case review record, functional completion rate, and problem resolution rate. The evaluation indicators for the software at the third control point include: version compatibility table, smoke test report, version description, static code inspection report, code review report, unit test report, software requirements design document review record, software architecture design document review record, software detailed design review record, test design document review record, test case review record, test report review record, functional completion rate, and problem resolution rate. The data acquisition module is used to acquire the first quality data of the target software corresponding to each of the first indicators and the second quality data of the target software corresponding to each of the second indicators. The quality evaluation module is used to calculate the quality score of the target software based on the first quality data and the second quality data.

7. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the software quality evaluation method according to any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the software quality evaluation method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Method and system for automatically measuring software quality

    CN111221720A