A software quality assessment method and system based on machine learning
By combining static and dynamic testing in software quality assessment, the quality coefficient of software code is generated and optimized, which solves the problems of low efficiency of software quality assessment and long development cycle in the existing technology, achieves early optimization and quality improvement, and improves software quality. reliability and user experience.
Patent Information
- Application Number
- CN202410883272.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-03
AI Technical Summary
Although existing machine learning-based software quality assessment methods improve assessment efficiency, they are difficult to quickly improve software quality and shorten the development cycle, and they lack early optimization methods for software codes.
Using a pre-set running time threshold, combined with static testing and dynamic testing, the software code is optimized by generating the first quality coefficient and the second quality coefficient, and the associated formula and optimization solution library are used to optimize the code until the preset threshold is reached, forming Amended Software Product.
It achieves the improvement of early software quality, quickly improves software quality, shortens the development cycle, discovers and corrects code errors and performance bottlenecks, and improves software reliability, maintainability and user experience.
Smart Images

Figure CN118409976B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of software quality assessment, and in particular to a software quality assessment method and system based on machine learning. Background Art
[0002] Software quality is the combination of characteristics and features related to the software product's ability to meet specified or implicit capability requirements; ensuring software quality is an important issue throughout the entire software life cycle, and effective software quality assessment is increasingly becoming an important means of ensuring software quality.
[0003] Machine learning methods can automatically evaluate and analyze large amounts of software data, thereby improving the efficiency and speed of evaluation. Compared with traditional manual evaluation methods, machine learning can process more data and generate evaluation results in a shorter time. Machine learning methods use a data-driven approach to evaluate, reducing the influence of subjective factors. It can provide objective and consistent evaluation results, avoiding human bias and errors.
[0004] Although the software quality assessment method based on machine learning has many advantages over the traditional software quality assessment method, it is of little help in quickly improving software quality and shortening the software development cycle. Therefore, a software quality assessment method and system based on machine learning is needed. Summary of the invention
[0005] In view of the deficiencies in the prior art, the present invention provides a software quality assessment method and system based on machine learning, which can effectively and quickly improve software quality and shorten the software development cycle.
[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions: a software quality assessment method based on machine learning, presetting a running time threshold, and evaluating the software quality after the software continues to run for more than the time threshold, and the software quality assessment includes static testing and dynamic testing;
[0007] When performing static testing on the software code, obtain and summarize the complexity Cr, repetition rate Dm and coupling degree Cd, establish a code static data set, and generate the first quality coefficient ; If the first quality coefficient is generated If the quality coefficient is less than the first quality threshold, the software code is optimized for the first time, and the optimized code is statically tested again. When the value is not less than the first quality threshold, the static test passes; if the static test result still fails, repeat the above steps several times. If it is still difficult to pass, obtain the first quality coefficient in the current state. ;
[0008] Generate the first quality coefficient The establishment method is as follows: the first quality coefficient is generated by the code static data set The specific method is as follows: associate the complexity Cr, repetition rate Dm and coupling degree Cd. The association formula is as follows:
[0009] ;
[0010] Among them, the parameter meaning is: complexity factor , , repetition rate factor , , coupling factor , , is the constant correction factor;
[0011] When dynamically testing the software code, obtain and summarize the defect density Qd, response time Xt and resource utilization Zv, establish a code dynamic data set, and generate a second quality coefficient ; Second quality coefficient The generation method is as follows: the second quality coefficient is generated by the code dynamic data set The specific method is as follows: Correlate the defect density Qd, response time Xt and resource utilization Zv. The correlation formula is as follows:
[0012] ;
[0013] Among them, the parameter meaning is: density factor , , response factor , , utilization factor , , is a constant correction factor; if the second quality coefficient is generated If the value is less than the second quality threshold, the software code is optimized again, and the second quality coefficient If the value is not less than the second quality threshold, the dynamic test passes; if it is still difficult to pass, the second quality coefficient in the current state is obtained. ;
[0014] If the software code fails both static and dynamic tests, the first quality coefficient based on the current state and the second quality coefficient Generate software quality value Rj; respectively obtain the first quality coefficient of the corresponding current state and the second quality coefficient , the software quality value Rj is obtained by association as follows: ;
[0015] in, , are weight coefficients, , , is a constant correction coefficient; the software quality value Rj is compared with the preset threshold value, and a software quality assessment result is generated; based on the software quality assessment result, an alarm message is issued to the outside, and the software is corrected.
[0016] Furthermore, the code static data set is established as follows: when performing static testing on software quality, perform complexity analysis on the software code to obtain the code complexity Cr, divide the software code into several detection segments in equal amounts according to the different functions of each group of codes, obtain the number of repeated codes in each detection segment, and then generate the code repetition rate in the detection segment, calculate the average value of the code repetition rate of each detection segment, and obtain the code repetition rate Dm; test and identify the coupling degree between each detection segment, and after averaging, obtain the code coupling degree Cd; obtain and summarize the complexity Cr, repetition rate Dm and coupling degree Cd to establish the code static data set.
[0017] Furthermore, a first quality threshold is preset, and the first quality coefficient Compared with the first quality threshold, there are two comparison results, as follows: First quality coefficient When the quality is less than the first quality threshold, retrieve, collect and formulate code optimization solutions related to the current code, and establish a code optimization solution library after summarizing; if the current code needs further optimization, obtain the optimization features of the current code;
[0018] Use the trained matching model to match the optimization solution from the code optimization solution library according to the optimization characteristics of the current software code, and perform static testing on the software code again. If the static test result still fails, repeat the above steps several times. If it is still difficult to pass, obtain the first quality coefficient in the current state. ; First quality coefficient When it is not less than the first quality threshold, the static test passes.
[0019] Furthermore, when the software is in operation, the software code is dynamically tested, a code dynamic data set is established based on the test results, and a second quality coefficient is generated. ; Among them, the code dynamic data set is established as follows: perform performance testing on the software to obtain the defect density Qd of the software code, the response time Xt of the software code and the resource utilization Zv; obtain and summarize the defect density Qd, response time Xt and resource utilization Zv to establish the code dynamic data set.
[0020] Furthermore, a second quality threshold is preset, and the second quality coefficient Compared with the second quality threshold, there are two comparison results, as follows: the second quality coefficient When the quality is less than the second quality threshold, retrieve, collect and formulate code optimization solutions related to the current code, and establish a code optimization solution library after summarizing; if the current code needs to be further optimized, obtain the optimization features of the current code; use the trained matching model to match the optimization solution from the code optimization solution library according to the optimization features of the current software code, and execute the optimization solution to optimize the software code;
[0021] Perform dynamic test on the software code again. If the dynamic test result still fails, repeat the above steps several times. If it still fails, obtain the second quality coefficient in the current state. ; Second quality coefficient When it is not less than the second quality threshold, the dynamic test passes.
[0022] Furthermore, a third quality threshold and a fourth quality threshold are pre-set, wherein the third quality threshold is less than the fourth quality threshold; when the software quality value Rj is less than or equal to the third quality threshold, the software is determined to be an unqualified product; when the software quality value Rj is between the third quality threshold and the fourth quality threshold, the software is marked as a defective product; when the software quality value Rj is greater than or equal to the fourth quality threshold, the software is marked as a slightly defective product.
[0023] Further, the software code after two optimizations is obtained, and the software code is divided into several functional areas according to the functions, and the software function test is performed on each functional area. For unqualified products, the functional areas that fail the test are determined as unqualified areas; the code modules corresponding to the functions are selected from the existing code library to replace the defective areas, so as to form a corrected software product;
[0024] For defective products, the functional areas that failed the test are identified as defective areas, the defects in each defective area and the corresponding location information are identified, and the defective code in the defective area is replaced to form a corrected software product;
[0025] For products with minor defects, functional areas that fail the test are identified as minor defect areas, defect areas within each minor defect area are identified and marked, and the marked defective codes are corrected to form a corrected software product.
[0026] A software quality assessment system based on machine learning, comprising a static testing unit, a dynamic testing unit, a first optimization unit, a second optimization unit, a processing unit and a software correction unit;
[0027] The static test unit is used to establish a code static data set and generate the first quality coefficient ; The dynamic test unit is used to establish a code dynamic data set and generate a second quality coefficient The first optimization unit is used to optimize the software code that has not passed the static test, and obtain the first quality coefficient in the current state when the software code has failed multiple times. The second optimization unit is used to optimize the software code that has not passed the dynamic test, and obtain the second quality coefficient in the current state when the software code has failed multiple times. ;
[0028] If the software code of the processing unit fails to pass both the static test and the dynamic test, the first quality coefficient under the corresponding current state is obtained respectively. and the second quality coefficient , and forms a software quality value Rj, and determines the software quality according to the comparison result between the software quality value Rj and the threshold value; the software correction unit performs software correction according to the determination result of the software quality by the processing unit.
[0029] The present invention provides a method and system for software quality assessment based on machine learning, which has the following beneficial effects:
[0030] (1) The present invention utilizes static test units and dynamic test units, and each step is optimized and perfected before the next step of testing is performed, so that the software quality can be effectively improved in the early stage of software quality assessment, effectively and quickly improving the software quality and shortening the software development cycle;
[0031] (2) The present invention can help discover problems and defects in the software through comprehensive testing, including code errors, missing functions, performance bottlenecks, etc. By discovering and correcting these problems early, the reliability and stability of the software can be improved and the cost of subsequent repairs can be reduced. Through testing, improvement areas in the software can be identified. Through targeted improvement measures, the maintainability, usability, performance and security of the software can be improved, thereby enhancing user experience and user satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 The following is a workflow diagram of the software quality assessment method based on machine learning of the present invention;
[0033] Figure 2 It is a structural diagram of the software quality assessment system based on machine learning of the present invention. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.
[0035] See also Figure 1 ,This embodiment provides a software quality assessment method based on machine learning, including the following contents;
[0036] A continuous running time is preset, for example, one week, as a running time threshold. When the software continuous running time exceeds the time threshold, the software quality needs to be evaluated, where the software quality evaluation includes static testing and dynamic testing;
[0037] When performing static testing on the software code, obtain and summarize the complexity Cr, repetition rate Dm and coupling degree Cd, establish a code static data set, and generate the first quality coefficient ; If the first quality coefficient is generated If the quality of the software code is less than the first quality threshold, the software code is optimized for the first time. After the optimization, the code is statically tested again. If the static test result still fails, the above steps are repeated several times. If it is still difficult to pass, the first quality coefficient in the current state is obtained. ;
[0038] When dynamically testing the software code, obtain and summarize the defect density Qd, response time Xt and resource utilization Zv, establish a code dynamic data set, and generate a second quality coefficient ; If the second quality coefficient is generated If the dynamic test result is still not passed, the above steps are repeated several times. If it is still difficult to pass, the second quality coefficient of the current state is obtained. ;
[0039] If the software code fails both static and dynamic tests, the first quality coefficient based on the current state and the second quality coefficient Generate a software quality value Rj; compare the software quality value Rj with a preset threshold and generate a software quality assessment result; based on the software quality assessment result, issue an alarm message to the outside and correct the software.
[0040] Furthermore, the code static data set is established as follows:
[0041] When performing static testing on software quality, perform complexity analysis on the software code to obtain the code complexity Cr, divide the software code into several detection segments in equal amounts according to the different functions of each group of codes, obtain the number of repeated codes in each detection segment, and then generate the code repetition rate in the detection segment, calculate the average value of the code repetition rate of each detection segment, and obtain the code repetition rate Dm; test and identify the coupling degree between each detection segment, and obtain the code coupling degree Cd after averaging;
[0042] Obtain and summarize the complexity Cr, repetition rate Dm and coupling degree Cd to establish a static data set of code; when the complexity of the code increases, the logic of the code will be more difficult to track and the possibility of errors will increase; the code repetition rate refers to the proportion of similar or identical code fragments that appear repeatedly in a code base or project;
[0043] Code coupling refers to the degree of association, perception and dependence between a module (class) and other modules (classes). It is an indicator to measure code independence and a standard for software engineering design and coding quality evaluation. The looser the code coupling, the more independent the modules are from each other and almost independent of other modules. Changes in one module will not or only slightly affect other modules. Loosely coupled code is easier to test, easier to reuse, and easier to understand and maintain. Static code analysis tools can perform static scanning on the code, identify the dependencies between code modules, understand the call frequency and correlation between code modules, and thus calculate the code coupling.
[0044] Among them, the first quality coefficient is generated The establishment method is as follows: the first quality coefficient is generated by the code static data set The specific method is as follows: associate the complexity Cr, repetition rate Dm and coupling degree Cd. The association formula is as follows:
[0045] ;
[0046] Among them, the parameter meaning is: complexity factor , , repetition rate factor , , coupling factor , , is a constant correction factor.
[0047] A first quality threshold is set in advance, and the first quality coefficient is compared with the first quality threshold. There are two comparison results, as follows: when the first quality coefficient is less than the first quality threshold, it indicates that the static test result of the current software is not ideal, and static testing needs to be performed again after optimization. At this time, code optimization plans related to the current code are retrieved, collected and formulated, and a code optimization plan library is established after aggregation; if the current code needs to be further optimized, the optimization features of the current code are obtained, such as reducing the number of loops and iterations, avoiding unnecessary calculations, etc.;
[0048] Use the similarity algorithm, according to the correspondence between the optimization features and the optimization scheme, after training and testing, generate and output the matching model, use the trained matching model, according to the optimization features of the current software code, match the optimization scheme from the code optimization scheme library, and perform static testing on the software code again. If the static test result still fails, repeat the above steps several times. If it is still difficult to pass, obtain the first quality coefficient in the current state ; First quality coefficient When it is not less than the first quality threshold, the static test passes.
[0049] Furthermore, when the software is in operation, the software code is dynamically tested, a code dynamic data set is established based on the test results, and a second quality coefficient is generated. ; Among them, the code dynamic data set is established as follows:
[0050] Perform performance testing on the software to obtain the defect density Qd of the software code, the response time Xt of the software code, and the resource utilization rate Zv; obtain and summarize the defect density Qd, response time Xt, and resource utilization rate Zv to establish a code dynamic data set;
[0051] Code defect density refers to the ratio between the number of defects (bugs) in the code and the total amount of code (usually the number of code lines or code files); the response time of software code refers to the time from the user sending a request to the system returning the result; resource utilization refers to the use of various resources by the code at runtime, such as CPU usage, memory usage, network bandwidth, etc.; use performance analysis tools or system-level resource monitoring tools to monitor resource utilization at code runtime, such as Windows Task Manager.
[0052] Second quality factor The generation method is as follows: the second quality coefficient is generated by the code dynamic data set The specific method is as follows: Correlate the defect density Qd, response time Xt and resource utilization Zv. The correlation formula is as follows:
[0053] ;
[0054] Among them, the parameter meaning is: density factor , , response factor , , utilization factor , , is a constant correction factor.
[0055] Preset the second quality threshold and set the second quality coefficient Compared with the second quality threshold, there are two comparison results, as follows:
[0056] Second quality factor When it is less than the second quality threshold, it indicates that the dynamic test result of the current software is not ideal and needs to be optimized before dynamic testing again. At this time, retrieve, collect and formulate code optimization plans related to the current code, and establish a code optimization plan library after summarizing; if the current code needs further optimization, obtain the optimization features of the current code, such as optimization algorithm selection, memory management, etc.;
[0057] Use the trained matching model to match the optimization solution from the code optimization solution library according to the optimization characteristics of the current software code, and perform dynamic testing on the software code again. If the dynamic test result still fails, repeat the above steps several times. If it is still difficult to pass, obtain the second quality coefficient in the current state. ; Second quality coefficient When it is not less than the second quality threshold, the dynamic test passes.
[0058] Furthermore, if the software code fails both the static test and the dynamic test, the first quality coefficients in the corresponding current state are obtained respectively. and the second quality coefficient , the software quality value Rj is obtained by association as follows: ;
[0059] in, , are weight coefficients, , , is a constant correction factor.
[0060] A third quality threshold and a fourth quality threshold are set in advance, wherein the third quality threshold is less than the fourth quality threshold; when the software quality value Rj is less than or equal to the third quality threshold, the software is determined as an unqualified product; when the software quality value Rj is between the third quality threshold and the fourth quality threshold, the software is marked as a defective product; when the software quality value Rj is greater than or equal to the fourth quality threshold, the software is marked as a slightly defective product.
[0061] Obtain the software code after two optimizations, divide the software code into several functional areas according to the function, perform software function tests on each functional area, and for unqualified products, determine the functional area that fails the test as an unqualified area; select the code module corresponding to the function from the existing code library to replace the defective area to form a corrected software product;
[0062] For defective products, the functional areas that failed the test are identified as defective areas, the defects in each defective area and the corresponding location information are identified, and the defective code in the defective area is replaced to form a corrected software product;
[0063] For products with minor defects, functional areas that fail the test are identified as minor defect areas, defect areas within each minor defect area are identified and marked, and the marked defective codes are corrected to form a corrected software product.
[0064] See also Figure 2 ,This embodiment provides a software quality assessment system based on machine learning, including a static testing unit, a dynamic testing unit, a first optimization unit, a second optimization unit, a processing unit and a software correction unit;
[0065] The static test unit is used to establish a code static data set and generate the first quality coefficient ;
[0066] The dynamic test unit is used to establish a dynamic data set of the code and generate a second quality coefficient ;
[0067] The first optimization unit is used to optimize the software code that fails the static test, and obtain the first quality coefficient in the current state when the software code fails the static test for multiple times. ;
[0068] The second optimization unit is used to optimize the software code that fails the dynamic test, and obtain the second quality coefficient in the current state when the software code fails multiple times. ;
[0069] If the software code of the processing unit fails to pass both the static test and the dynamic test, the first quality coefficient under the corresponding current state is obtained respectively. and the second quality coefficient , and form a software quality value Rj, and determine the software quality based on the comparison result between the software quality value Rj and the threshold;
[0070] The software correction unit corrects the software according to the determination result of the software quality by the processing unit.
[0071] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0072] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A software quality assessment method based on machine learning, characterized in that: Pre-set the running time threshold. When the software runs continuously for more than the time threshold, the software quality is evaluated. The software quality evaluation includes static testing and dynamic testing. When performing static testing on the software code, obtain and summarize the complexity Cr, repetition rate Dm and coupling degree Cd, establish a code static data set, and generate the first quality coefficient ; If the first quality coefficient is generated If the quality coefficient is less than the first quality threshold, the software code is optimized for the first time, and the optimized code is statically tested again. When the value is not less than the first quality threshold, the static test passes; if the static test result still fails, repeat the above steps several times. If it is still difficult to pass, obtain the first quality coefficient in the current state. ; Generate the first quality coefficient The establishment method is as follows: the first quality coefficient is generated by the code static data set The specific method is as follows: associate the complexity Cr, repetition rate Dm and coupling degree Cd. The association formula is as follows: ; Among them, the parameter meaning is: complexity factor , , repetition rate factor , , coupling factor , , is the constant correction factor; Use the trained matching model to match the optimization scheme from the code optimization scheme library according to the optimization characteristics of the current software code. After executing the optimization scheme to optimize the software code, perform dynamic testing on the software code again. When performing dynamic testing on the software code, obtain and summarize the defect density Qd, response time Xt and resource utilization Zv, establish a code dynamic data set, and generate a second quality coefficient ; Second quality coefficient The generation method is as follows: A second quality coefficient is generated from the code dynamic data set The specific method is as follows: Correlate the defect density Qd, response time Xt and resource utilization Zv. The correlation formula is as follows: ; Among them, the parameter meaning is: density factor , , response factor , , utilization factor , , is the constant correction factor; If the second quality coefficient is generated Less than the second quality threshold, the software code is optimized, the second quality coefficient If the value is not less than the second quality threshold, the dynamic test passes; if it is still difficult to pass, the second quality coefficient in the current state is obtained. ; If the software code fails both static and dynamic tests, the first quality coefficient based on the current state and the second quality coefficient Generate software quality value Rj; respectively obtain the first quality coefficient of the corresponding current state and the second quality coefficient , the software quality value Rj is obtained by association as follows: ; in, , are weight coefficients, , , is a constant correction coefficient; the software quality value Rj is compared with the preset threshold value, and a software quality assessment result is generated; based on the software quality assessment result, an alarm message is issued to the outside, and the software is corrected; A third quality threshold and a fourth quality threshold are set in advance, wherein the third quality threshold is less than the fourth quality threshold; when the software quality value Rj is compared with the preset threshold, when the software quality value Rj is less than or equal to the third quality threshold, the software is determined as an unqualified product; when the software quality value Rj is between the third quality threshold and the fourth quality threshold, the software is marked as a defective product; when the software quality value Rj is greater than or equal to the fourth quality threshold, the software is marked as a slightly defective product.
2. The method for software quality assessment based on machine learning according to claim 1, characterized in that: The code static data set is established as follows: when performing static testing on software quality, perform complexity analysis on the software code to obtain the code complexity Cr, divide the software code into several detection segments in equal amounts according to the different functions of each group of codes, obtain the number of repeated codes in each detection segment, and then generate the code repetition rate in the detection segment, calculate the average value of the code repetition rate of each detection segment, and obtain the code repetition rate Dm; test and identify the coupling degree between each detection segment, and obtain the code coupling degree Cd after averaging; Obtain and summarize the complexity Cr, repetition rate Dm and coupling degree Cd, and establish a code static data set.
3. The method for software quality assessment based on machine learning according to claim 1, characterized in that: Preset the first quality threshold and set the first quality coefficient Compared with the first quality threshold, there are two comparison results, as follows: First quality coefficient When the quality is less than the first quality threshold, retrieve, collect and formulate code optimization solutions related to the current code, and establish a code optimization solution library after summarizing; if the current code needs further optimization, obtain the optimization features of the current code; Use the trained matching model to match the optimization solution from the code optimization solution library according to the optimization characteristics of the current software code, and perform static testing on the software code again. If the static test result still fails, repeat the above steps several times. If it is still difficult to pass, obtain the first quality coefficient in the current state. ; First quality coefficient When it is not less than the first quality threshold, the static test passes.
4. The method for software quality assessment based on machine learning according to claim 1, characterized in that: When the software is in operation, the software code is dynamically tested, a code dynamic data set is established based on the test results, and a second quality coefficient is generated. ; Among them, the code dynamic data set is established as follows: perform performance testing on the software to obtain the defect density Qd of the software code, the response time Xt of the software code and the resource utilization Zv; obtain and summarize the defect density Qd, response time Xt and resource utilization Zv to establish the code dynamic data set.
5. The method for software quality assessment based on machine learning according to claim 4, characterized in that: Preset the second quality threshold and set the second quality coefficient Compared with the second quality threshold, there are two comparison results, as follows: the second quality coefficient When the quality is less than the second quality threshold, retrieve, collect and formulate code optimization solutions related to the current code, and establish a code optimization solution library after summarizing; if the current code needs further optimization, obtain the optimization features of the current code; If the dynamic test result still fails, repeat the above steps several times. If it is still difficult to pass, obtain the second quality coefficient in the current state. ; Second quality coefficient When it is not less than the second quality threshold, the dynamic test passes.
6. The method for software quality assessment based on machine learning according to claim 5, characterized in that: Obtain the software code optimized in the static test and dynamic test process, divide the software code into several functional areas according to the function, perform software function test on each functional area, and for unqualified products; Identify the functional areas that fail the test as unqualified areas; From the existing code base, select the code module corresponding to the function to replace the defective area to form a corrected software product; For defective products; Determine the functional areas that fail the test as defective areas, identify the defects in each defective area and the corresponding location information, and replace the defective code in the defective area to form a corrected software product; For products with minor defects; The functional areas that failed the test are determined as minor defect areas, the defect areas in each minor defect area are identified and marked, and the marked defective codes are corrected to form a corrected software product.
7. A software quality assessment system based on machine learning, applying the method described in any one of claims 1 to 6, characterized in that: It includes a static test unit, a dynamic test unit, a first optimization unit, a second optimization unit, a processing unit and a software correction unit; The static test unit is used to establish a code static data set and generate the first quality coefficient ; The dynamic test unit is used to establish a dynamic data set of the code and generate a second quality coefficient ; The first optimization unit is used to optimize the software code that fails the static test, and obtain the first quality coefficient in the current state when the software code fails the static test for multiple times. ; The second optimization unit is used to optimize the software code that fails the dynamic test, and obtain the second quality coefficient in the current state when the software code fails multiple times. ; If the software code of the processing unit fails to pass both the static test and the dynamic test, the first quality coefficient under the corresponding current state is obtained respectively. and the second quality coefficient , and form a software quality value Rj, and determine the software quality based on the comparison result between the software quality value Rj and the threshold; The software correction unit corrects the software according to the determination result of the software quality by the processing unit.
