Methods, apparatus, electronic devices and storage media of assisting testing
Patent Information
- Application Number
- CN202610945331.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-29
- Publication Date
- 2026-08-28
- Estimated Expiration
- 2046-06-29
AI Technical Summary
[0003]本申请提供了一种辅助测试的方法、装置、电子设备和存储介质,以至少解决相关技术中缺乏针对项目不同阶段细粒度测试和并行测试场景下的资源争用问题
[0009]通过本申请,由于构建了包含测试任务包与资源需求关系及使用时段的需求关系图谱,满足了项目各阶段任务包级风险点的定位;通过将需求关系图谱划分至多个时间窗得到子图并在子图中检测资源需求冲突,生成包含冲突涉及的测试任务包、资源、冲突类型及对应时间窗的风险标识,实现了风险的前置防控;通过匹配预存的资源调整案例生成针对风险任务包的资源调整方案,提供了任务包级针对性的补救方案,同时覆盖多测试任务包与多资源的交互关系,可应对多项目并行场景下的资源竞争冲突,提升了资源调度方案的适应性。
Smart Images

Figure CN122489367B_ABST
Abstract
Claims
1. A method for auxiliary testing, characterized in that, include: Construct a requirement relationship graph, which represents the requirement relationship between multiple test task packages and multiple resources, as well as the usage period of the resources required by each test task package; Based on the usage period, the demand relationship graph is divided into multiple time windows, resulting in multiple sub-graphs; Detect resource requirement conflicts of test task packages in the subgraph and generate risk labels based on the detected conflicts. The risk labels include: the test task package and resources involved in the conflict, the type of conflict, and the time window in which the subgraph is located. From a number of pre-built resource adjustment cases, a resource adjustment case that matches the risk identifier is selected as a reference case. Based on the reference case, a resource adjustment plan for the risk task package is generated. The risk task package is a test task package contained in the risk identifier. The resource adjustment plan is used to adjust the resource allocation of the risk task package.
2. The method according to claim 1, characterized in that, The demand relationship graph includes multiple first nodes, multiple second nodes, and multiple edges. The first node represents a test task package, the second node represents a resource, and the edge between the first node and the second node indicates that the test task package of the first node needs the resource of the second node. The edge has a time label, which indicates the period during which the test task package uses the required resource.
3. The method according to claim 2, characterized in that, Based on the usage period, the demand relationship graph is divided into multiple time windows, resulting in multiple sub-graphs, including: For each time window in multiple time windows, determine the edge whose time label falls into the time window from the multiple edges of the demand relationship graph, and use it as the edge in the subgraph; In the demand relationship graph, the first and second nodes connected by the edge where the time tag falls into the time window are used as the first and second nodes in the subgraph.
4. The method according to claim 3, characterized in that, Risk identifiers are generated based on the detected conflicts, including: The edges involved in the conflict are identified as conflict edges; For conflict edges, risk identifiers are generated. The risk identifiers include: the test task package corresponding to the first node connected to the conflict edge, the resource corresponding to the second node connected to the conflict edge, the type of conflict corresponding to the conflict edge, and the time window in which the conflict edge falls. Specifically, the test task package corresponding to the first node connected to the conflict edge is used as the risk task package, and the risk identifier generated for the conflict edge is used as the risk identifier of the risk task package.
5. The method according to claim 4, characterized in that, Resource adjustment cases include risk feature vectors and the atomic operations corresponding to the risk feature vectors; From a pool of pre-built resource adjustment cases, resource adjustment cases that match the risk indicators are selected as reference cases, including: Based on the risk identifier of the risk task package, generate the risk feature vector of the risk task package; Among the risk feature vectors of multiple resource adjustment cases, the risk feature vectors that have a similarity to the risk feature vectors of the risk task package that meet the predetermined conditions are identified as the target feature vectors. The resource adjustment case that includes the target feature vector is used as a reference case.
6. The method according to claim 5, characterized in that, The reference cases include atomic operation templates and operation values. Based on these reference cases, resource adjustment plans for risk task packages are generated, including: Generate the target atomic operation template based on the atomic operation template of the reference case; Using the operation value of the reference case as the initial feasible solution, the target operation value is calculated by solving mixed integer programming. The target operation value is mapped to the target atomic operation template to obtain the resource adjustment scheme.
7. The method according to claim 1, characterized in that, Detect resource requirement conflicts for test task packages in the subgraph, including: If different test task packages in a subgraph are detected to require the same exclusive human resources, then a conflict is detected, and the type of conflict is determined to be a human resources conflict. If different test task packages in a subgraph are detected to require the same exclusive device resource, it is determined that a conflict has been detected, and the type of conflict is determined to be a device conflict. If the sum of the material resource requirements of the test task packages in the subgraph is greater than the available material resource quantity in the corresponding time window of the subgraph, then a material conflict is detected and the type of conflict is determined to be a material conflict.
8. The method according to claim 1, characterized in that, Also includes: For each test task package within multiple test task packages, The metrics involved in the test task package are divided into multiple metric clusters according to multiple preset dimensions; The indicators in the indicator cluster are normalized, and the normalized indicators are weighted and summed to obtain the risk index of the indicator cluster. The risk indices of multiple indicator clusters are fused to obtain the comprehensive risk index of the test task package.
9. The method according to claim 8, characterized in that, The risk indices of multiple indicator clusters are fused to obtain the comprehensive risk index of the test task package, including: For each indicator cluster within multiple indicator clusters, the weight of each indicator cluster is determined based on the historical risk data associated with that cluster. Based on the weights of multiple indicator clusters, the risk indices of the multiple indicator clusters are weighted and summed to obtain the comprehensive risk index of the test task package.
10. The method according to claim 9, characterized in that, Also includes: For the current test task package among multiple test task packages, After obtaining the comprehensive risk index of the current test task package, a coupling coefficient is generated based on the similarity between the resource requirements of the current test task package and the resource requirements of other test task packages in multiple test task packages. The coupling coefficient is used to adjust the overall risk index of the current test task package.
11. The method according to claim 8, characterized in that, Also includes: The risk level of the test task package is determined based on its comprehensive risk index. Based on the risk level of the test task package, determine the risk warning method, the target audience for the risk warning, and the content of the risk warning for the test task package; For each test task package, the determined risk warning content is sent to the designated risk warning recipients according to the determined risk warning method.
12. The method according to any one of claims 1 to 11, characterized in that, Also includes: Periodically acquire ongoing test task packages as the multiple test task packages; and / or In response to the detection of a preset trigger event, the test task package related to the trigger event is used as one of the multiple test task packages.
13. A device for auxiliary testing, characterized in that, include: The risk identification module is used to build a demand relationship graph, which represents the demand relationship between multiple test task packages and multiple resources, as well as the usage period of the resources required by each test task package. Based on the usage period, the demand relationship graph is divided into multiple time windows, resulting in multiple sub-graphs; Detect resource requirement conflicts of test task packages in the subgraph and generate risk labels based on the detected conflicts. The risk labels include: the test task packages and resources involved in the conflict, the type of conflict, and the time window in which the subgraph is located. The solution generation module is used to identify the resource adjustment case that matches the risk identifier from a number of pre-built resource adjustment cases as a reference case, and generate a resource adjustment solution for the risk task package based on the reference case. The risk task package is a test task package contained in the risk identifier, and the resource adjustment solution is used to adjust the resource allocation of the risk task package.
14. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the method as described in any one of claims 1 to 11.
15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the auxiliary testing method as described in any one of claims 1 to 11.
Citation Information
Patent Citations
Intelligent identification and early warning method for scientific and technological consultation project risk factors
CN120611974A
Comprehensive plan management information system and method
CN122114839A