Risk analysis method and system for software project management
By analyzing test record data and system architecture data in software project management, building a module correlation map and generating resource allocation impact index, the problem of traditional test resource allocation dependence on historical experience is solved, resource allocation optimization and risk identification are realized, and testing efficiency and project success rate are improved.
Patent Information
- Application Number
- CN202510570559.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-06
- Publication Date
- 2025-06-03
- Estimated Expiration
- 2045-05-06
AI Technical Summary
Traditional test resource allocation schemes rely on historical experience, resulting in uneven resource allocation in the case of limited test resources, increasing the risk of project failure.
A risk analysis method and system for software project management is proposed. By collecting test record data, extracting defect density and test coverage characteristics of functional modules, combining system architecture data to build a module association map, generating resource allocation impact index, and using resource allocation correlation analysis model to generate reference allocation strategies and conduct risk analysis.
It realizes resource allocation risk identification in the testing stage of software projects, provides optimization suggestions for the reasonable allocation of test resources, improves testing efficiency, and reduces the risk of project failure.
Smart Images

Figure CN120087769A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of software project management, and in particular, to a risk analysis method and system for software project management. Background Art
[0002] Project management in the software development process is a key factor to ensure the success of the project. As the scale of software projects continues to expand and the development cycle becomes increasingly tight, the importance of the testing phase becomes more prominent. Software testing, as a key link affecting software quality, the limited nature of testing resources often becomes a bottleneck restricting project progress and quality assurance. If the testing resources are not properly allocated, there is a risk of project delay.
[0003] Some traditional testing resource allocation schemes rely on historical experience-driven. This experience-based allocation method has certain defects. In the case of limited testing resources, it is easy to lead to unbalanced resource allocation, thus increasing the risk of project failure. It is manifested that during the testing process, there may be risks such as the testing of some function modules being ignored due to improper resource allocation, and the defects of important modules not being repaired in time due to insufficient resource allocation. Conducting risk analysis on the allocation strategy of testing resources under limited testing resources can provide good suggestions for the reasonable allocation of testing resources, thereby improving testing efficiency. Summary of the Invention
[0004] To solve the above technical problems, the present invention proposes a risk analysis method and system for software project management, which can identify the risks of resource allocation in the testing phase of software projects and provide optimization suggestions for the reasonable allocation of testing resources.
[0005] To achieve the above object, the first aspect of the present invention provides a risk analysis method for software project management, including: Collecting test record data of a target software project regarding a target testing phase, and a target testing resource allocation strategy associated with the test record data; Extracting defect density characteristics and test coverage characteristics respectively corresponding to multiple function modules in the target software project from the test record data; Obtaining system architecture data of the target software project, and performing module association analysis on multiple function modules of the target software through the test record data and the system architecture data of the target software project to construct a module association graph of the target software project regarding multiple function modules; Generate multiple resource allocation impact indices for each functional module by means of a module association graph and the defect density characteristics and test coverage characteristics of multiple functional modules, and perform resource allocation processing on the resource allocation impact indices through a resource allocation association analysis model to generate a reference allocation strategy for the target software project, where the resource allocation association analysis model is constructed based on multiple sets of historical reference test record data; Perform resource allocation risk analysis on the target test resource allocation strategy through the reference allocation strategy to generate a risk analysis result of the target software project regarding the target test resource allocation strategy.
[0006] Preferably, extract the defect density characteristics and test coverage characteristics corresponding to multiple functional modules in the target software project from the test record data, including: Determine the attribute data of each functional module, including code size record data and function point record data, extract the defect quantity characteristics of each functional module from the test record data, perform defect distribution analysis on the code size record data through the defect quantity characteristics to generate the defect density characteristics of the functional module, extract the test coverage function point quantity characteristics of each functional module from the test record data, and perform test coverage analysis on the function point record data through the test coverage function point quantity characteristics to generate the test coverage characteristics of the functional module.
[0007] Preferably, perform module association analysis on multiple functional modules of the target software through the test record data and system architecture data of the target software project to construct a module association graph of the target software project regarding multiple functional modules, including: Construct a module association graph of the target software project regarding multiple functional modules through the system architecture data, including using multiple functional modules as nodes of the module association graph and determining the directed edges between functional modules according to the system architecture data; Separate the dependency record data between any two functional modules from the test record data, including data transmission record data and function call record data, extract the function call parameters and data transmission parameters of each directed edge in the module association graph from multiple sets of dependency record data, and calculate the module dependency parameters of each directed edge according to the function call parameters and data transmission parameters and add them to the module association graph.
[0008] Preferably, generate multiple resource allocation impact indices for each functional module by means of a module association graph and the defect density characteristics and test coverage characteristics of multiple functional modules, including: The module association influence index of each functional module is calculated based on multiple module dependency parameters in the module association graph. The defect density characteristics and test coverage characteristics of multiple functional modules are statistically analyzed respectively to generate the defect distribution influence index and test coverage influence index of each functional module, and the module scale influence index of the functional module is extracted from the attribute data of the functional module, so as to obtain multiple resource allocation influence indexes of the functional module.
[0009] Preferably, a resource allocation risk analysis is performed on the target test resource allocation strategy through a reference allocation strategy, and a risk analysis result of the target software project regarding the target test resource allocation strategy is generated, including: The resource allocation deviation parameter of each functional module is calculated through the reference allocation strategy and the target test resource allocation strategy, and a test resource allocation risk analysis is performed on the target software project according to multiple resource allocation deviation parameters, and the resource allocation risk score of the target software project is calculated; For the reference allocation strategy and the target test resource allocation strategy, each includes a resource allocation reference ratio parameter and a resource allocation target ratio parameter of each functional module.
[0010] Preferably, for the resource allocation association analysis model, it further includes: A training data set including multiple groups of sub-sample data is constructed through multiple groups of historical reference test record data. Each group of sub-sample data includes the historical resource allocation ratio parameter and multiple historical resource allocation influence indexes respectively corresponding to each functional module in one group of the historical reference test record data; The multiple historical resource allocation influence indexes in each group of sub-sample data are used as the training input of the resource allocation association analysis model, and the historical resource allocation ratio parameters corresponding to each group of sub-sample data are used as the training target of the resource allocation association analysis model. The resource allocation association analysis model is iteratively trained based on residual feature optimization through the sample data set, where the resource allocation association analysis model is a random forest model; The iterative training of the resource allocation association analysis model based on residual feature optimization includes calculating the residual value of each group of sub-sample data after each round of iteration, performing convergence feature analysis according to the multiple residual values of each group of sub-sample data to calculate the convergence parameter of the sub-sample data after meeting the preset number of iterations, performing sample pruning processing on the sample data set based on the preset pruning parameter and the convergence parameter of the sub-sample data, and completing the training of the resource allocation association analysis model after reaching the preset convergence threshold.
[0011] The second aspect of the present invention provides a risk analysis system for software project management, which is used to execute the above-mentioned risk analysis method for software project management, including: A software project data collection module for collecting test record data of a target software project regarding a target test phase, as well as a target test resource allocation strategy associated with the test record data; A test feature extraction module for extracting defect density features and test coverage features corresponding to multiple functional modules in the target software project from the test record data; A function association analysis module for obtaining system architecture data of the target software project, performing module association analysis on multiple functional modules of the target software through the test record data and system architecture data of the target software project, and constructing a module association graph of the target software project regarding multiple functional modules; A test resource allocation analysis module for generating multiple resource allocation impact indices for each functional module through the module association graph and the defect density features and test coverage features of multiple functional modules, and performing resource allocation processing on the resource allocation impact indices through a resource allocation association analysis model to generate a reference allocation strategy for the target software project, where the resource allocation association analysis model is constructed based on multiple groups of historical reference test record data; A test risk analysis module for performing resource allocation risk analysis on the target test resource allocation strategy through the reference allocation strategy, and generating a risk analysis result of the target software project regarding the target test resource allocation strategy.
[0012] The present invention has the following beneficial effects: By analyzing the test record data of the target software project, the present invention extracts features such as defect distribution and test coverage of different functional modules, constructs a module association graph in combination with system architecture data, analyzes the allocation impact relationship between functional modules and test resources from multiple dimensions, constructs a multi-dimensional resource allocation impact index, uses a model trained based on historical reference data to intelligently generate a resource allocation reference strategy, accurately identifies high-risk modules and evaluates the overall resource allocation risk by quantitatively comparing the resource allocation deviation between the target strategy and the reference strategy, realizes the dynamic matching of test resource allocation with module relevance, defect distribution, and test coverage characteristics, can provide an evaluation basis for the project team on whether the test resource allocation is reasonable, helps to discover potential resource allocation problems, and provides guidance for subsequent resource optimization. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 It is a schematic flowchart of a risk analysis method for software project management according to an exemplary embodiment of the present invention.
[0014] Figure 2 It is a schematic structural diagram of a risk analysis system for software project management according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0015] To enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0016] Please refer to Figure 1 , the embodiments of the present invention provide a risk analysis method for software project management, including the following steps: Step S1, collect the test record data of the target software project regarding the target test phase, and the target test resource allocation strategy associated with the test record data.
[0017] Specifically, for the test record data of the target software project in the target test phase, it can specifically be the relevant record data in a certain test phase where the software project was not comprehensively tested in the initial stage. In the initial stage of the overall test phase, generally, the basic functions of each module in the software system will be initially verified to see if they work as expected, and whether the basic interactions between modules are normal, so as to verify the initial reliability after system integration. Relevant testers will formulate relevant target test resource allocation strategies based on the corresponding test record data, which are used to guide the subsequent process of optimizing or repairing different functional modules of the system. In this process, if the test resources are limited, including human resources such as testers and time resources such as test duration, if the allocation is unreasonable, it may lead to risks such as incomplete test coverage, insufficient testing of important modules, and lagging test progress, thereby affecting the quality and delivery cycle of the project. Conducting a comprehensive analysis of the collected test record data to perform risk analysis on the target test resource allocation strategy can well discover potential risks in resource allocation in advance, facilitate optimizing resource utilization and test efficiency to improve the success rate of the entire project.
[0018] The test record data includes but is not limited to test-related information such as test cases used for different functional modules and corresponding test results. A functional module refers to a component in the software system that is responsible for a specific function or task. The test resource allocation strategy associated with these test records can specifically be formulated by the project team based on empirical knowledge. The subsequent test resource allocation-related data for further in-depth analysis and repair of different functional modules based on these results constitutes the data basis for the subsequent resource allocation risk analysis process.
[0019] Step S2, extract the defect density characteristics and test coverage characteristics corresponding to multiple functional modules in the target software project from the test record data.
[0020] Specifically, for the collected test record data, defect density features regarding the defect distribution characteristics of different functional modules and test coverage features regarding the comprehensiveness of the test process are extracted from the test records. In this process, the attribute data of each functional module is first determined, including information such as code size record data and function point record data, which are used to reflect the number of lines of code, the number of classes, etc. included in different functional modules, and to reflect the number of function points that different functional modules need to implement, that is, the number of business functions completed by the module.
[0021] Furthermore, the defect quantity features of each functional module are extracted from the test record data. Specifically, the defect reports of the functional modules regarding the test process can be extracted from the test record data, so as to obtain the defect quantity features corresponding to each module. By combining the defect quantity features of the functional modules and the code size record data, defect distribution analysis is carried out on the functional modules. For example, the ratio of the defect quantity feature to the code size feature corresponding to the functional module, such as the number of lines of code, is used as the defect density feature of the functional module to characterize the defect distribution characteristics of different functional modules. At the same time, the number of test-covered function points features of each functional module is also extracted from the test record data, such as the number of tested function point data, which is used to evaluate the comprehensiveness of the test of different functional modules in the target test phase. Then, test coverage analysis is carried out on the function point record data through the number of test-covered function points features, and the ratio between the number of test-covered function points features and the total number of function points is used as the test coverage feature of the functional module to represent the overall coverage degree of the test process regarding different functional modules.
[0022] Step S3: Obtain the system architecture data of the target software project, and conduct module association analysis on multiple functional modules of the target software through the test record data and the system architecture data of the target software project, and construct a module association graph of the target software project regarding multiple functional modules.
[0023] Specifically, in order to deeply mine the characteristics of the aforementioned extracted test-related features, comprehensive analysis is carried out in combination with the functional association or dependency features between different functional modules in the target software project. In this process, first, based on the system architecture data of the target software project and the information recorded in the test record data during the test process, a module association graph of the target software project regarding multiple functional modules is constructed. The system architecture data usually includes information such as interface dependencies, data flows, and call relationships between different functional modules. Through these information, the association nature and influence scope between different modules can be understood. And the test record data collected during the test process also contains the module dependency characteristics of some key functions during the test process. Constructing a module association graph based on these data can help identify which functional module defects may cause chain reactions and affect the normal test or operation of other modules.
[0024] For the construction process of the module association graph, first, multiple functional modules are used as the nodes of the module association graph, and the directed edges between the functional modules are determined according to the system architecture data. Among them, the functional modules that are used as multiple nodes of the module association graph in the software system may involve independent modules, sub-modules, or service units in the software system. In the module association graph, the association between functional modules is represented by directed edges, which reflects the dependency relationship or interaction between modules. The directed edges between each functional module can be determined using the system architecture data. For example, if module A calls a certain function of module B, or module A transfers data to module B, these can be represented by directed edges, and the direction of the arrow indicates the direction of the dependency relationship, thus completing the preliminary construction of the module association graph.
[0025] Furthermore, the module association graph is further improved by combining the test record data, and the actual quantitative dependency relationship is extracted. First, the dependency record data between any two functional modules is separated from the test record data, which at least includes information such as data transmission record data and function call record data, describing the data flow relationship and function call relationship between functional modules during the test process. Quantitative indicators such as the call frequency and data transmission volume between functional modules can be extracted from it. The call frequency indicates, for example, the number of times module A calls the relevant function in module B during the test process, which can reflect the direct dependency relationship between the two modules. The higher the call frequency, the stronger the dependency between the modules. Specifically, the function call parameters between functional modules can be statistically generated by analyzing the function call record data. The data transmission volume indicates, for example, how much data module A transfers to module B, reflecting the data dependency relationship between the two modules. If a module sends data to another module with a high frequency or a large amount of data, it indicates a strong dependency relationship between them. By analyzing the data transmission record data of the modules, the data transmission parameters regarding the data transmission characteristics between different functional modules can be statistically generated.
[0026] Finally, extract the function call parameters and data transmission parameters of each directed edge in the module association graph from multiple groups of dependency record data. Then, the module dependency parameters of each directed edge can be calculated based on the function call parameters and data transmission parameters. For example, for the directed edge between module A and module B, the module dependency parameter of the directed edge is obtained by performing weighted calculation on the corresponding function call parameters and data transmission parameters of the directed edge. Different weight parameters are used to adjust the importance of the call frequency and data transmission volume. If it is considered that the call frequency and data transmission volume have equal influence, the same weight parameter such as 0.5 can be adopted. Those skilled in the art can reasonably set it according to actual test needs. Finally, the calculated module dependency parameters are added to the module association graph. Each directed edge not only represents the relationship between modules, but also can reflect the interaction importance between modules through the dependency strength. By combining the system architecture data and test record data, a complete module association graph is finally constructed, where each node represents a functional module, each directed edge represents the dependency relationship between modules, and this dependency strength is quantified by the module dependency parameter.
[0027] Step S4: Generate multiple resource allocation impact indexes for each functional module through the module association graph, the defect density characteristics, and the test coverage characteristics of multiple functional modules, and perform resource allocation processing on the resource allocation impact indexes through the resource allocation association analysis model to generate a reference allocation strategy for the target software project.
[0028] Specifically, determine multiple resource allocation impact indexes of different functional modules regarding the strategies for influencing the defect repair and optimization of subsequent modules, or rather, measure the requirements of different modules for the overall test resources, based on the association and dependency characteristics between functional modules represented by the module association graph and the problems existing in different functional modules during the preliminary test process.
[0029] In this process, for the module association graph, based on multiple module dependency parameters in the module association graph, module association impact analysis is performed on each functional module. Specifically, according to the degree characteristics involved in the functional modules in the module association graph, including in-degree and out-degree, which reflect the dependencies received by the functional module and the dependencies generated by itself, the in-degree and out-degree of the functional module can be summarized to obtain the overall degree characteristics between the functional module and the other modules. And based on the degree characteristics of multiple functional modules, the module association impact index of each functional module is calculated. For example, the proportion of the degree characteristics of the functional module in the overall is used as the module association impact index. The larger the module association impact index, that is, the more strongly associated modules, may require more resources to ensure that their defects are repaired as soon as possible or relevant optimizations are carried out on the modules, and the impact on the other modules is reduced as much as possible. Similarly, statistical analysis is respectively performed on the defect density characteristics and test coverage characteristics of multiple functional modules to generate the defect distribution impact index and test coverage impact index of each functional module. Functional modules with high defect density or low test coverage may require more resources for defect repair or supplementary test work, etc. By quantifying the proportion of the defect density characteristics and test coverage characteristics of the functional module in the overall, the defect distribution impact index and test coverage impact index of the functional module are calculated. At the same time, the scale characteristics of different functional modules also need to be considered. The module scale impact index of the functional module can be extracted from the attribute data of the functional module. The module scale reflects the complexity of the module and the relative size of the required test resources. The larger the module scale, the greater the impact on resource allocation. The module scale impact index is obtained by quantifying the ratio of the regular scale of different functional modules to the scale of the entire software system, which is used to represent the impact of the module scale on the test resource requirements. In this way, multiple resource allocation impact indexes of the functional module are generated from different levels to quantitatively evaluate the possible impact of the functional module on resource allocation.
[0030] After that, through the resource allocation association analysis model constructed based on multiple groups of historical reference test record data, these multi-dimensional impact indexes can be optimized, and the impact of these impact characteristics of the module on resource allocation is analyzed to generate the reference allocation strategy of the target software project.
[0031] The resource allocation correlation analysis model is obtained by training with a training dataset constructed based on multiple groups of historical reference data. Specifically, a training dataset including multiple groups of subsample data is constructed from multiple groups of historical reference test record data. The historical reference test record data can be reference cases that performed well in terms of relevant resource allocation effects and the next-stage tests in the same test stage as the target test stage in different historical software projects. Specifically, it can be evaluated by an expert team. For example, comprehensively analyze whether the defect repair progress or module optimization progress of each functional module is consistent, whether the key functional modules have achieved good repair effects, and whether there is a phenomenon of waste of test resources. Sample data that performed well in the target test stage in historical projects are selected as references through multi-angle analysis.
[0032] Each group of subsample data in the training dataset includes the historical resource allocation ratio parameters and multiple historical resource allocation impact indices corresponding to each functional module in one group of the historical reference test record data. Similar to the aforementioned multiple resource allocation impact indices, the historical resource allocation ratio parameters can specifically be the historical test resource allocation strategies for the historical reference test record data formulated by the project team based on the historical reference test record data and empirical knowledge, which are used to indicate the test resources allocated to different functional modules, including human resources, equipment resources, etc. For example, the number of members and equipment responsible for defect repair and further functional analysis of different functional modules. The proportion of different test resources in the overall resources is analyzed and quantified.
[0033] After the training dataset is constructed, the multiple historical resource allocation impact indices in each group of subsample data are used as the training input of the resource allocation correlation analysis model. The model can learn the impacts of characteristics such as defect distribution, test coverage, and module association among functional modules in a software project on test resource allocation through these impact indices, and use the historical resource allocation ratio parameters corresponding to each group of subsample data as the training target of the resource allocation correlation analysis model, enabling the model to learn how to analyze the resource allocation ratio based on multiple impact indices and optimize resource allocation given the impact indices.
[0034] In this embodiment, a random forest model is selected as the resource allocation correlation analysis model. To further improve the accuracy and convergence of the model, optimization based on residual features is used for iterative training of the model. During the training process, after each round of iteration, the residual values are calculated, and the prediction ability of the model is improved by analyzing these residual values.
[0035] Specifically, after each round of iteration, the residual value of each group of subsample data is calculated. The residual value refers to the difference between the actual value in the dataset and the predicted value output by the model, representing the error of the model in each round of training. Since it is considered that there are differences in modules in different historical software projects, and this solution uses the characteristics of different dimensions of functional modules as samples in the analysis process, there may be a situation where it is not easy to converge during the model training process. Therefore, the training process is optimized by combining residual analysis. Specifically, after meeting the preset number of iterations, convergence feature analysis is performed based on the multiple residual values of each group of subsample data to calculate the convergence parameters of the subsample data. In this process, the convergence trend of multiple residuals of the subsample data in different window periods can be analyzed through a sliding window. For example, if it conforms to the overall trend of gradually decreasing, it is recorded as 1, otherwise it is marked as 0, so as to extract multiple convergence trend values. Through the time distribution analysis of multiple convergence trend values, for example, the later the window, the higher the trend value score, an exponential decay function is constructed based on the change of the time window to determine the scoring weights of different convergence trend values, and the multiple convergence trend values are weighted to calculate the convergence parameters of the subsample data, which are used to evaluate the fit degree between the subsample data and the current model. The larger the convergence parameter, the higher the fit degree. And based on the preset pruning parameter and the convergence parameter of the subsample data, sample pruning is performed on the sample dataset. The preset pruning parameter can be based on the percentile of the number of subsamples, such as 90%, that is, 90% of the sample data is retained to prune the sample dataset, and part of the data with lower fit degree is subtracted according to the convergence parameter, and training is continued based on the remaining sample data. After reaching the preset convergence threshold, the training of the resource allocation association analysis model is completed. For example, after the overall residual standard deviation of the pruned sample dataset is less than the preset convergence threshold, it indicates that the error fluctuation of the model becomes very small, and the model has converged, and the training process ends.
[0036] Through the above method, the training of the model is completed, avoiding the difficulty of convergence caused by the project differences existing in the sample data. The core objective of model training is to infer the rationality of resource allocation through macro data features such as defect density, test coverage, module relevance, and module scale features, and then optimize the allocation strategy of test resources. However, due to the differences between different software projects, such as project scale, complexity, business requirements, etc., the resource allocation patterns in historical reference data may not be completely consistent, and these minor differences may affect the convergence and generalization ability of the model. To solve this problem, the present invention adopts residual analysis and pruning techniques to optimize the training process, helping the model better cope with these minor differences, so as to more accurately capture the macro laws in the data and ensure that the model has strong adaptability and stability among different projects. The trained resource allocation correlation analysis model is mainly used to analyze the influence of various characteristic parameters on resource allocation from a macro perspective, analyze the corresponding resource allocation reference data according to the input characteristic parameters, so as to conduct risk analysis on the resource allocation strategy formulated by team members and evaluate whether there is a risk of unbalanced resource allocation.
[0037] Step S5: Conduct resource allocation risk analysis on the target test resource allocation strategy through the reference allocation strategy, and generate a risk analysis result of the target software project regarding the target test resource allocation strategy.
[0038] Specifically, through the reference allocation strategy generated by the resource allocation correlation analysis model, conduct risk analysis on the target test resource allocation strategy. For the reference allocation strategy and the target test resource allocation strategy, they respectively include the resource allocation reference proportion parameter and the resource allocation target proportion parameter of each functional module. The resource allocation deviation parameter of each functional module can be calculated through the reference allocation strategy and the target test resource allocation strategy, that is, the difference between the relevant proportion parameters of the functional module in the two strategies. Then, based on multiple resource allocation deviation parameters, conduct test resource allocation risk analysis on the target software project. It can be for multiple functional modules to calculate the overall resource allocation deviation, for example, characterized by the weighted average or sum of the resource allocation deviation parameters of all functional modules. Exemplarily, after normalizing multiple resource allocation deviation parameters, calculate the sum to obtain the resource allocation risk score of the target software project, which is used to evaluate whether the current target test resource allocation strategy has significant irrationality. If the score is high, it indicates that the gap between the current allocation strategy and the reference strategy is large, and there may be a risk of uneven test resource allocation. Taking the calculated resource allocation risk score as the risk analysis result of the target test resource allocation strategy can provide an evaluation basis for the project team on whether the test resource allocation is reasonable, help discover potential resource allocation problems, and provide guidance for subsequent resource optimization, ultimately improving the test efficiency and quality of the project.
[0039] Please refer toFigure 2 , based on the same concept of the above-mentioned risk analysis method for software project management, the present invention also provides a risk analysis system for software project management, including: A software project data collection module, configured to collect test record data of a target software project regarding a target test phase, as well as a target test resource allocation strategy associated with the test record data; A test feature extraction module, configured to extract defect density features and test coverage features respectively corresponding to multiple functional modules in the target software project from the test record data; A function association analysis module, configured to obtain system architecture data of the target software project, perform module association analysis on multiple functional modules of the target software through the test record data and system architecture data of the target software project, and construct a module association map of the target software project regarding multiple functional modules; A test resource allocation analysis module, configured to generate multiple resource allocation impact indexes for each functional module through the module association map, as well as the defect density features and test coverage features of multiple functional modules, perform resource allocation processing on the resource allocation impact indexes through a resource allocation association analysis model, and generate a reference allocation strategy for the target software project, where the resource allocation association analysis model is constructed based on multiple groups of historical reference test record data; A test risk analysis module, configured to perform resource allocation risk analysis on the target test resource allocation strategy through the reference allocation strategy, and generate a risk analysis result of the target software project regarding the target test resource allocation strategy.
[0040] The above are only specific implementation manners of the present invention, enabling those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be obvious to those skilled in the art. The parts not described in detail in this specification belong to the prior art well-known to those skilled in the art.
Claims
1. A risk analysis method for software project management, characterized in that: include: Collecting test record data of the target software project regarding the target test phase, and the target test resource allocation strategy associated with the test record data; Extract the defect density features and test coverage features corresponding to multiple functional modules in the target software project from the test record data; Obtaining system architecture data of the target software project, performing module association analysis on multiple functional modules of the target software through test record data and system architecture data of the target software project, and constructing a module association map of multiple functional modules of the target software project; Generate multiple resource allocation impact indexes for each functional module through the module association graph and the defect density characteristics and test coverage characteristics of multiple functional modules, perform resource allocation processing on the resource allocation impact indexes through the resource allocation association analysis model, and generate a reference allocation strategy for the target software project, wherein the resource allocation association analysis model is constructed based on multiple groups of historical reference test record data; By referring to the allocation strategy, a resource allocation risk analysis is performed on the target test resource allocation strategy, and a risk analysis result of the target software project on the target test resource allocation strategy is generated.
2. A risk analysis method for software project management according to claim 1, characterized in that: Extract the defect density characteristics and test coverage characteristics corresponding to multiple functional modules in the target software project from the test record data, including: Determine the attribute data of each functional module, including code size record data and function point record data, extract the defect quantity characteristics of each functional module from the test record data, perform defect distribution analysis on the code size record data through the defect quantity characteristics, generate the defect density characteristics of the functional module, extract the test coverage function point quantity characteristics of each functional module from the test record data, perform test coverage analysis on the function point record data through the test coverage function point quantity characteristics, and generate the test coverage characteristics of the functional module.
3. A risk analysis method for software project management according to claim 2, characterized in that: Perform module association analysis on multiple functional modules of the target software through the test record data and system architecture data of the target software project, and build a module association map of multiple functional modules of the target software project, including: Building a module association graph of multiple functional modules of a target software project through the system architecture data, including using the multiple functional modules as nodes of the module association graph and determining directed edges between the functional modules according to the system architecture data; The dependency record data between any two functional modules are separated from the test record data, including data transmission record data and function call record data. The function call parameters and data transmission parameters of each directed edge in the module association graph are extracted from multiple sets of dependency record data. The module dependency parameters of each directed edge are calculated according to the function call parameters and data transmission parameters and added to the module association graph.
4. A risk analysis method for software project management according to claim 3, characterized in that: Through the module association graph and the defect density characteristics and test coverage characteristics of multiple functional modules, multiple resource allocation impact indexes for each functional module are generated, including: The module association impact index of each functional module is calculated according to multiple module dependency parameters in the module association map, and the defect density characteristics and test coverage characteristics of multiple functional modules are statistically analyzed to generate the defect distribution impact index and test coverage impact index of each functional module. The module scale impact index of the functional module is extracted from the attribute data of the functional module to obtain multiple resource allocation impact indices of the functional module.
5. A risk analysis method for software project management according to claim 4, characterized in that: By referring to the allocation strategy, the resource allocation risk analysis of the target test resource allocation strategy is performed to generate the risk analysis results of the target software project on the target test resource allocation strategy, including: The resource allocation deviation parameter of each functional module is calculated by reference allocation strategy and target test resource allocation strategy, and the test resource allocation risk analysis of the target software project is performed according to the multiple resource allocation deviation parameters to calculate the resource allocation risk score of the target software project; The reference allocation strategy and the target test resource allocation strategy include resource allocation reference ratio parameters and resource allocation target ratio parameters of each functional module respectively.
6. A risk analysis method for software project management according to claim 5, characterized in that: For the resource allocation association analysis model, it also includes: Constructing a training data set including multiple groups of sub-sample data through multiple groups of historical reference test record data, each group of sub-sample data includes the historical resource allocation proportion parameter and multiple historical resource allocation impact indexes corresponding to each functional module in one group of historical reference test record data; The multiple historical resource allocation impact indexes in each group of sub-sample data are used as the training input of the resource allocation association analysis model, and the historical resource allocation ratio parameters corresponding to the multiple groups of sub-sample data are used as the training targets of the resource allocation association analysis model. The resource allocation association analysis model is iteratively trained based on residual feature optimization through the sample data set, where the resource allocation association analysis model is a random forest model; The iterative training of the resource allocation association analysis model based on residual feature optimization includes calculating the residual value of each group of sub-sample data after each round of iteration, performing convergence feature analysis based on multiple residual values of each group of sub-sample data after meeting a preset number of iterations to calculate the convergence parameters of the sub-sample data, performing sample pruning processing on the sample data set based on preset pruning parameters and the convergence parameters of the sub-sample data, and completing the training of the resource allocation association analysis model after reaching a preset convergence threshold.
7. A risk analysis system for software project management, characterized in that: A method for performing a risk analysis for software project management as claimed in any one of claims 1 to 6, comprising: A software project data collection module is used to collect test record data of a target software project in a target test phase, and a target test resource allocation strategy associated with the test record data; A test feature extraction module is used to extract defect density features and test coverage features corresponding to multiple functional modules in the target software project from the test record data; A functional association analysis module is used to obtain the system architecture data of the target software project, perform module association analysis on multiple functional modules of the target software through the test record data and system architecture data of the target software project, and construct a module association map of multiple functional modules of the target software project; A test resource allocation analysis module is used to generate multiple resource allocation impact indexes for each functional module through a module association graph and defect density characteristics and test coverage characteristics of multiple functional modules, and to perform resource allocation processing on the resource allocation impact indexes through a resource allocation association analysis model to generate a reference allocation strategy for a target software project, wherein the resource allocation association analysis model is constructed based on multiple groups of historical reference test record data; The test risk analysis module is used to perform resource allocation risk analysis on the target test resource allocation strategy by referring to the allocation strategy, and generate risk analysis results of the target software project on the target test resource allocation strategy.
Citation Information
Patent Citations
Test task allocation method and device, storage medium and electronic equipment
CN113836019A
Project management system based on software development
CN114327378A
Service risk test method and system for association weight adjustment
CN116431490A
Software project data processing method and device, equipment and storage medium
CN118014451A
Software testing method, system and device based on AIGC model
CN119003375A
Cited By
Software research and development resource dynamic allocation optimization method and visual analysis tool
CN120255873A
A software development resource dynamic allocation optimization method and visualization analysis tool
CN120255873B