Software test report auditing method, device, equipment and storage medium
By constructing directed evidence graphs and large language models, the review process of in-vehicle software test reports is automated, solving the problems of low efficiency and difficulty in data traceability in manual review, and achieving efficient intelligent review.
Patent Information
- Application Number
- CN202611540536.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-30
- Publication Date
- 2026-11-27
AI Technical Summary
The review process for vehicle software test reports is labor-intensive, inefficient, and prone to issues such as data omissions, correlation errors, and difficulty in tracing.
By extracting the audit data set from the vehicle software test report, generating the evidence unit set, constructing the directed evidence graph, performing reverse verification and baseline difference comparison, determining the context budget of the audit block, constructing the hard evidence area, risk adaptive content area, and cross-chapter consistency area, and using a large language model to output the audit conclusion.
It has achieved automated and intelligent closed-loop review, ensuring the traceability of review conclusions, reducing data omissions and correlation errors, and improving review efficiency.
Smart Images

Figure CN123178279A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, device and storage medium for reviewing software test reports. Background Technology
[0002] With the increasing electrification and intelligence of automobiles, in-vehicle software versions are characterized by a large number of versions, rapid iterations, and complex relationships, making quality control during the software release process more challenging. Test reports are crucial for in-vehicle software quality assessment, typically including the test scope, software version, test results, and test conclusions. However, test execution records, defect flow information, and retest results are usually stored in the test management system. Therefore, auditors need to query and verify relevant data across systems based on information such as software version, test object, and test time to determine whether the test report conclusions are supported by complete, valid, and traceable evidence.
[0003] However, manual review is labor-intensive, inefficient, and prone to problems such as data omissions, incorrect associations, and difficulty in tracing. Summary of the Invention
[0004] This application provides a method, apparatus, device, and storage medium for reviewing software test reports, which can improve review efficiency and avoid problems such as large workload, easy data omissions and correlation errors, and difficulty in traceability in manual review.
[0005] In a first aspect, embodiments of this application provide a method for reviewing software test reports, including: Extract the audit data set from the vehicle software test report and generate an evidence unit set. Construct a directed evidence graph based on the evidence unit set and the preset release stage access control relationship. The directed evidence graph is used to characterize the support relationship between the test report conclusion and each verification link. The structured anomaly verification result is obtained by performing reverse verification based on the directed evidence graph. A baseline difference comparison is performed between the audit data set and the audit data set of the previous audit cycle. The resulting baseline difference set is then propagated along the directed evidence graph to obtain a change impact subgraph. The context budget for each audit block is determined based on the structured anomaly verification results and the change impact subgraph. A hard evidence area, a risk-adaptive content area, and a cross-chapter consistency area are constructed based on the context budget for each audit block. Each audit block is a report block in the vehicle software test report that corresponds to the conclusion of a single report. The hard evidence area, the risk adaptive content area, and the cross-chapter consistency area are input into the large language model to output the review conclusion of the vehicle software test report.
[0006] Secondly, embodiments of this application provide a software test report review device, comprising: The first processing module is used to extract the audit data set from the vehicle software test report and generate the evidence unit set. Based on the evidence unit set and the preset release stage access control relationship, a directed evidence graph is constructed. The directed evidence graph is used to characterize the support relationship between the test report conclusion and each verification link. The verification module is used to perform reverse verification based on the directed evidence graph to obtain structured anomaly verification results; The second processing module is used to compare the baseline differences between the audit data set and the audit data set of the previous audit cycle, and propagate the obtained baseline difference set along the directed evidence graph to obtain the change impact subgraph. The construction module is used to determine the context budget of each audit block based on the structured anomaly verification results and the change impact subgraph, and to construct a hard evidence area, a risk adaptive content area and a cross-chapter consistency area based on the context budget of each audit block. Each audit block is a report block in the vehicle software test report that corresponds to the conclusion of a single report. The second processing module is also used to: input the hard evidence area, the risk adaptive content area and the cross-chapter consistency area into the large language model, and output the review conclusion of the vehicle software test report.
[0007] In one embodiment, the first processing module is configured to: Extract the audit data set from the vehicle software test report. The audit data includes at least one of the following: requirement baseline, test report, software version identifier, test cases, test execution records, test defect information, and vehicle configuration information. For each piece of audited material in the audited material set, an evidence unit is generated based on the audited material to obtain the evidence unit set. The evidence unit includes at least one of the following: material type, material identifier, source platform identifier, test object identifier, requirement baseline identifier, software version identifier, generation time, effective time range, content summary, content fingerprint, and original citation location.
[0008] In one embodiment, the first processing module is configured to: Obtain the target evidence unit from the evidence unit set, the target evidence unit including requirement evidence unit, test case evidence unit, test execution evidence unit, defect evidence unit, defect verification evidence unit, and report conclusion evidence unit; Each target evidence unit is mapped to a graph node of the corresponding type. The release phase access control node is the top-level constraint node, and the requirement node, test case node, test execution node, defect node, defect verification node and report conclusion node are the child nodes. Directed edges are established according to the phase dependency relationship and verification support relationship between each node to generate the directed evidence graph.
[0009] In one embodiment, the verification module is used for: Starting from the report conclusion node, traverse backwards along the directed edges of the directed evidence graph to find the conclusion support path from the requirement node through the test case node, test execution node, defect node, and defect verification node to the report conclusion node. Consistency verification is performed on the evidence units corresponding to each node in the path supporting the conclusion to obtain the verification results; The structured anomaly verification result is generated based on the verification result.
[0010] In one embodiment, the consistency verification includes verifying at least one of the following: source platform, test object, software version, and valid time range; The structured anomaly verification results include at least one of the following: uncovered requirement gap component, missing execution evidence gap component, unclosed defect gap component, version inconsistency gap component, expired evidence gap component, and unsupported path gap component for conclusion, as well as target information for each gap component. The target information includes the anomaly location, type, release stage, and affected conclusion.
[0011] In one embodiment, the baseline difference set includes at least one of vehicle configuration differences, ECU hardware differences, requirement baseline differences, software version baseline differences, test case baseline differences, report structure baseline differences, and audit rule baseline differences, and the second processing module is used to: Map each baseline difference in the baseline difference set to the starting node in the directed evidence graph; Starting from the starting node, the state changes along the directed edges of the directed evidence graph, propagating from the starting node to the report conclusion node and the release phase access control node. The nodes, edges, and report blocks covered during the propagation process are constructed into the change impact subgraph.
[0012] In one embodiment, the building module is used for: For each audit block, obtain the degree of evidence gap of the audit block in the structured anomaly verification result, the rule anomaly density of the audit block in the vehicle software test report, and the release stage criticality of the current audit task to which the release stage belongs; The scope of the change's impact is determined based on the scope of the aforementioned sub-diagram of the change's impact. The degree of evidence gap, the density of rule anomalies, the criticality of the release stage, and the scope of impact of the change are normalized respectively. The normalized values are then weighted and summed according to preset weights to obtain the risk value of the review block. The context budget of the audit block is calculated based on the preset total context budget, minimum budget of the audit block, maximum budget of the audit block, and risk value of the audit block.
[0013] In one embodiment, the building module is specifically used for: For each review block, the hard evidence area is constructed based on the release access control evidence that meets the preset access control policy, version conflicts, unclosed loop defects, risk anomalies that meet preset conditions, and vehicle configuration information in the review block; Based on the risk value and context budget of the review block, content is selected from the report text, test details, anomaly summary and historical reviewed representation of the review block to construct the risk adaptive content area. In this case, the review block with a risk value greater than or equal to a preset threshold selects the original text and adjacent details, and the review block with a risk value less than the preset threshold and no change selects the summary or historical reviewed representation. Based on the information in the vehicle software test report that needs to be verified across chapters, stages, or versions, the cross-chapter consistency zone is constructed.
[0014] In one embodiment, the second processing module is further configured to: determine whether a first condition is met before inputting the hard evidence area, the risk adaptive content area, and the cross-chapter consistency area into the large language model. The first condition includes: complete access control evidence, the existence of interpretable evidence before and after the anomaly, and cross-chapter fields or cross-version fields entering the context simultaneously.
[0015] In one embodiment, the second processing module is further configured to: input the hard evidence area, the risk adaptive content area and the cross-chapter consistency area into the large language model, and then obtain the candidate review conclusion output by the large language model, wherein the candidate review conclusion includes the issue type, issue location, software version, associated evidence unit identifier and conclusion confidence information; Each candidate audit conclusion is verified, and the candidate audit conclusion that is consistent in version, valid in time, traceable in source, has complete evidence coverage and no hard conflicts is determined as the audit conclusion. The hard conflicts include version conflicts, missing required fields, unexecuted test cases and unclosed defects. If no candidate review conclusion passes the verification, a prompt message is output, indicating that the vehicle software test report needs to be partially re-reviewed.
[0016] In one embodiment, the second processing module is further configured to: Based on the aforementioned prompt information, starting from the position of the changed evidence unit in the directed evidence graph, the changed state is propagated again along the directed path of the directed evidence graph, and the affected report conclusions are identified as objects to be reviewed. The object to be reviewed is re-reviewed, a partial review result is generated, and the evidence content, review status and review record before and after rectification are saved.
[0017] In one embodiment, the second processing module is further configured to: An evidence coverage certificate is generated for each audit block. The evidence coverage certificate includes the identifier of the audit block, the identifier of the evidence unit to which the audit block is retained, the context budget, the reason for retention, the published access control coverage information, the abnormal node adjacency coverage information, and the cross-chapter consistency coverage information.
[0018] Thirdly, embodiments of this application provide a computer device, including: a processor and a memory, the memory being used to store a computer program, and the processor being used to call and run the computer program stored in the memory to perform the method of the first aspect.
[0019] Fourthly, embodiments of this application provide a computer-readable storage medium including instructions that, when executed on a computer program, cause the computer to perform the method as described in the first aspect.
[0020] In summary, in this embodiment, the review data set is extracted from the vehicle software test report and an evidence unit set is generated. A directed evidence graph is constructed based on the evidence unit set and the preset release stage access control relationship. Then, a reverse verification is performed based on the directed evidence graph to obtain the structured anomaly verification result. The baseline difference between the review data set and the review data set of the previous review cycle is compared. The obtained baseline difference set is propagated along the directed evidence graph to obtain the change impact subgraph. Then, the context budget of each review block is determined based on the structured anomaly verification result and the change impact subgraph. Based on the context budget of each review block, a hard evidence area, a risk-adaptive content area, and a cross-chapter consistency area are constructed. Each review block is the report block in the vehicle software test report corresponding to the conclusion of a single report. The hard evidence area, the risk-adaptive content area, and the cross-chapter consistency area are input into a large language model to output the review conclusion of the vehicle software test report. Thus, each audit conclusion can be traced back to the corresponding software version, test execution, and defect verification evidence through a directed evidence graph. When the context is limited, the three-zone arrangement prioritizes the retention of key evidence for release and verifies the completeness of key evidence coverage. It automates the completion of evidence association, anomaly identification, and change impact analysis, replacing manual cross-system query and verification. This solves the problems of large workload, easy data omission and association errors, and difficulty in traceability in manual audits. It realizes an intelligent closed-loop audit with traceable and verifiable audit conclusions, accurate calculation of the review scope, and effective control of model input, thereby improving audit efficiency. Attached Figure Description
[0021] Figure 1 A schematic diagram illustrating an implementation scenario of a software test report review method provided in this application embodiment; Figure 2 A flowchart illustrating a software test report review method provided in this application embodiment; Figure 3 A schematic diagram of a directed evidence graph provided in an embodiment of this application; Figure 4 A schematic diagram illustrating the processing flow of a software test report review method provided in this application embodiment; Figure 5 A schematic diagram of a software test report review device provided in this application embodiment; Figure 6 This is a schematic block diagram of a computer device provided in an embodiment of this application. Detailed Implementation
[0022] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the embodiments of this application.
[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of the embodiments of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the present application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or devices.
[0024] The software test report review method provided in this application can be applied to the entire lifecycle test report review scenario of in-vehicle software iterative development and compliance certification. Specifically, intelligent cockpit and ADAS / autonomous driving software OTA iterations are frequent, with multiple vehicle models, multiple ECUs, and multiple versions being developed in parallel, leading to a surge in the demand for test report review. Each software version update requires a re-review of the test report. This method enables partial review and traceability management of test reports or external defect evidence rectification, effectively solving problems such as high manual workload, difficulty in discovering version conflicts, difficulty in tracing cross-system evidence, and low efficiency of re-reviewing the entire report after changes in in-vehicle software test report review. It achieves intelligent review throughout the entire process, from closed-loop evidence verification and change impact propagation to rectification review.
[0025] It should be noted that the application scenarios described above are for illustrative purposes only and are not intended to limit the scope of this application. In specific implementations, the technical solutions provided in the embodiments of this application can be flexibly applied according to actual needs.
[0026] For example, Figure 1 This is a schematic diagram illustrating an implementation scenario of a software test report review method provided in an embodiment of this application, such as... Figure 1 As shown, the implementation scenario of this application involves server 1 and terminal device 2. Terminal device 2 can communicate with server 1 via a communication network. The communication network can be an intranet, the Internet, Global System for Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, voice communication network, or other wireless or wired networks.
[0027] In some possible implementations, terminal device 2 refers to a device with rich human-computer interaction methods, internet access capabilities, typically running various operating systems, and possessing strong processing power. Terminal devices can be smartphones, tablets, laptops, desktop computers, or smartwatches, but are not limited to these. Optionally, in this embodiment, terminal device 2 is equipped with various applications, such as video applications and news applications.
[0028] In some possible implementations, the terminal device 2 includes, but is not limited to, mobile phones, computers, smart voice interaction devices, smart home appliances, and vehicle terminals.
[0029] Figure 1Server 1 in this context can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server providing cloud computing services. This application embodiment does not impose any limitations on this. In this application embodiment, server 1 can be the backend server of an application installed on terminal device 2.
[0030] In one embodiment, the vehicle software test report can be uploaded via a client installed and running on the terminal device, and then sent to the server by the terminal device, whereby the server executes the software test report review method provided in this application embodiment.
[0031] In some possible ways, Figure 1 An exemplary terminal device and a server are shown, but in practice, other numbers of terminal devices and servers may be included, and this application does not limit this.
[0032] The technical solutions of the embodiments of this application will be described in detail below: Figure 2 This application provides a flowchart of a software test report review method. The execution entity of this application embodiment is a device with software test report review functionality, such as a server. Figure 2 As shown, the method may include: S101. Extract the audit data set from the vehicle software test report and generate an evidence unit set. Construct a directed evidence graph based on the evidence unit set and the preset release stage access control relationship. The directed evidence graph is used to characterize the support relationship between the test report conclusion and each verification link.
[0033] Specifically, for example, a car manufacturer is reviewing the test report for system software version V2.1.1 of a certain model. The test report can be uploaded to the terminal device by the user (such as a user), and then sent to the server by the terminal device. The test report can include: the test scope (such as covering the three major functional modules of central control entertainment, instrument display, and voice interaction), the test software version number (V2.1.1), and the test execution results of each module (for example, a total of 200 test cases were executed, with a pass rate of 96.5%). After receiving the test report, the server executes steps S101-S105.
[0034] Optionally, in one implementable manner, S101 extracts the audit data set from the vehicle software test report and generates an evidence unit set, specifically: S1011. Extract the audit data set from the vehicle software test report. The audit data includes at least one of the following: requirement baseline, test report, software version identifier, test cases, test execution records, test defect information, and vehicle configuration information.
[0035] Specifically, in automotive software development, the requirements baseline corresponds to a specific software version and serves as a benchmark, including definitions of the test scope, the starting point of the traceability chain, and the criteria for determining version conflicts. Vehicle configuration information includes details such as the vehicle model and its specifications.
[0036] S1012. For each audit document in the audit document set, generate an evidence unit based on the audit document to obtain an evidence unit set. The evidence unit includes at least one of the following: document type, document identifier, source platform identifier, test object identifier, requirement baseline identifier, software version identifier, generation time, effective time range, content summary, content fingerprint, and original reference location.
[0037] Specifically, each audit document corresponds to an evidence unit, resulting in an evidence unit set. The content fingerprint is used to determine whether the evidence has undergone substantial change, and the original citation location is used for audit review and rectification, such as item XX in the defect management system. For example, regarding an audit document... Generate evidence units Evidence units include: data types Data Identification Source platform identifier Test object identifier Demand baseline identification Software version identifier Generation time Valid time range Content Summary Content fingerprint and the original reference location For identifiers, versions, and time formats from different data sources, normalization is performed first, and then the association is established.
[0038] Next, a directed evidence graph is constructed based on the set of evidence units and the preset release stage access control relationships. The release stage access control relationships refer to a set of pre-configured constraints used to determine whether a report's conclusion meets the release conditions, used to control the software version's progression from the testing phase to the release phase during the vehicle software release process. The release stage access control relationships can consist of configurable stage nodes, stage input conditions, release conditions, and dependency order. Optionally, in one implementable method, the construction of the directed evidence graph in S101 based on the set of evidence units and the preset release stage access control relationships can specifically be: S11. Obtain the target evidence unit from the evidence unit set. The target evidence unit includes the requirement evidence unit, test case evidence unit, test execution evidence unit, defect evidence unit, defect verification evidence unit, and report conclusion evidence unit.
[0039] S12. Map each target evidence unit to a graph node of the corresponding type. Take the release phase access control node as the top-level constraint node, and the requirement node, test case node, test execution node, defect node, defect verification node and report conclusion node as child nodes. Establish directed edges according to the phase dependency relationship and verification support relationship between each node to generate a directed evidence graph.
[0040] In this context, stage dependency refers to the sequential progression constraint relationship formed between nodes in a directed evidence graph based on the gatekeeping relationship of the release stage. This means that the verification result of an upstream stage must meet the release conditions of the corresponding stage before it can be used as the input for a downstream stage. It determines the direction of the stage constraint edges in the directed evidence graph, as well as the path along which the changed state propagates.
[0041] The directed edges include at least one of the following: Phase constraint edges represent the phase access constraint relationships between the access control node and each child node during the release phase. Requirement coverage edges represent the coverage relationship between test case nodes and requirement nodes; Test case execution edges represent the execution relationship between test execution nodes and test case nodes; Defect discovery edges indicate the relationship between defect nodes and test execution nodes; Defect verification edges represent the verification relationship between defect verification nodes and defect nodes; A conclusion support edge indicates a relationship where the report conclusion node is supported by the results of the defect verification node or the test execution node.
[0042] For example, Figure 3 This application provides a schematic diagram of the structure of a directed evidence graph, as shown in the embodiments. Figure 3 As shown, the directed evidence graph includes a release phase access node 210, a requirement node 220, a test case node 230, a test execution node 240, a defect node 250, a defect verification node 260, and a report conclusion node 270; the edge set includes phase constraint edges, requirement coverage edges, test case execution edges, defect discovery edges, defect verification edges, and conclusion support edges. This directed evidence graph uses the release phase access node as the top-level constraint node, and the requirement node, test case node, test execution node, defect node, defect verification node, and report conclusion node as child nodes. Directed connections are established between nodes through requirement coverage edges, test case execution edges, defect discovery edges, defect verification edges, and conclusion support edges.
[0043] S102. Reverse verification based on directed evidence graph to obtain structured anomaly verification results.
[0044] Specifically, after obtaining the directed evidence graph, a reverse verification is performed based on the directed evidence graph to obtain the structured anomaly verification result.
[0045] Optionally, in one implementable manner, S102 may specifically be: S1021. Starting from the report conclusion node, traverse backwards along the directed edges of the directed evidence graph to find the conclusion support path from the requirement node through the test case node, test execution node, defect node, and defect verification node to the report conclusion node.
[0046] Specifically, the process involves tracing back from the report's conclusion node to external defect verification, defects, execution, use cases, and requirement nodes to form a support path for the conclusion. The source, test object, software version, batch, and time are then verified. If the path is missing, the association is unreliable, there are version conflicts, evidence is expired, or the event sequence is abnormal, the conclusion cannot be directly approved for release.
[0047] S1022. Perform consistency verification on the evidence units corresponding to each node in the conclusion support path to obtain the verification results.
[0048] S1023. Generate structured anomaly verification results based on the verification results.
[0049] Optionally, in one embodiment, the consistency verification includes verifying at least one of the following: source platform, test object, software version, and valid time range; The structured anomaly verification results include at least one of the following: uncovered requirement gap component, missing execution evidence gap component, unclosed defect gap component, version inconsistency gap component, expired evidence gap component, and unsupported path gap component for conclusion, as well as target information for each gap component. The target information includes the anomaly location, type, release stage, and affected conclusion.
[0050] Specifically, verifying the source platform involves checking whether the source platform identifier of each piece of evidence is traceable; verifying the test object involves checking whether the test object identifier of each piece of evidence is consistent with the test object in the report conclusion; verifying the software version involves checking whether the software version identifier of each piece of evidence is consistent with the software version in the report conclusion; and verifying the effective time range involves checking whether the effective time range of each piece of evidence meets the timeliness requirements. Based on the above verification results, a structured anomaly verification result is generated. This structured anomaly verification result is represented in the form of an evidence gap vector, which can be represented by D. The structured anomaly verification results consist of six components: unmet requirements, missing execution evidence, unclosed defect, version inconsistency, expired evidence, and no supporting path for the conclusion. These components can be represented by 0 / 1, the number of anomalies, or a normalized value. The same criteria must be used for the same audit task. The target information for each anomaly component includes the anomaly location, type, release stage, and affected conclusion, facilitating accurate location and handling during subsequent risk value calculation, context orchestration, and remediation review. For example, if the report states that software version B2 can be released, but the defect verification evidence in the external system belongs to B1, then a version inconsistency gap is recorded; if the external system has been fully queried but the current software version lacks valid verification evidence, then a defect closure gap is recorded; if the report lacks relevant information and cannot match external evidence, then a source or conclusion support path gap is recorded. In this embodiment, the structured anomaly verification results can comprehensively reflect the anomalies in the test report's conclusions regarding evidence support from multiple dimensions, providing accurate location basis for subsequent audit block risk value calculation, context orchestration, and remediation review.
[0051] S103. Compare the baseline differences between the audit data set and the audit data set of the previous audit cycle, and propagate the resulting baseline difference set along the directed evidence graph to obtain the change impact subgraph.
[0052] Optionally, in one embodiment, the baseline difference set includes at least one of the following: vehicle configuration differences, ECU hardware differences, requirement baseline differences, software version baseline differences, test case baseline differences, report structure baseline differences, and audit rule baseline differences. In S103, the obtained baseline difference set is propagated along the directed evidence graph to obtain a change impact subgraph, which can specifically be: S1031. Map each baseline difference in the baseline difference set to the starting node in the directed evidence graph.
[0053] Specifically, baseline difference comparison refers to the process of establishing baselines and comparing the audit data set of the current audit cycle with that of the previous audit cycle according to multiple predefined baseline dimensions, identifying objects that have been added, deleted, or modified, and obtaining a baseline difference set. For example, if the current audit cycle is the first audit of software version V2.3.1 and the previous audit cycle was the first audit of software version V2.3.0, seven baselines are established for the current and previous audit cycles, and differences are compared: Vehicle configuration baseline: The current cycle and the previous cycle both use the same model XX and ECU combination YY, with no difference; ECU hardware difference baseline: One new rear entertainment ECU has been added in the current cycle, resulting in hardware differences; Baseline Requirements: In the previous period, requirement XX was described as "voice interaction response time ≤ 2.0 seconds", while in the current period it has been changed to "voice interaction response time ≤ 1.5 seconds", resulting in a difference in the baseline requirements. Software version baseline: The previous cycle was V2.3.0, and the current cycle is V2.3.1, indicating a difference in software version baseline; Test case baseline: Test cases TC-1287 to TC-1290 have been added in the current cycle, resulting in differences in the test case baseline; Report Structure Baseline: The current report cycle has added a "Rear-seat Entertainment Function Test" section, resulting in a difference in the report structure baseline; Audit rule baseline: The current audit rule has changed the closure requirement for P1 level defects from "recommended closure" to "mandatory closure", resulting in a difference in the audit rule baseline.
[0054] Map each of the above baseline differences to the starting node in the directed evidence graph.
[0055] S1032. Starting from the starting node, propagate the changing state along the directed edges of the directed evidence graph, following the direction from the starting node to the report conclusion node and the access control node of the release stage.
[0056] S1033. Construct the nodes, edges, and report blocks covered during the propagation process into a change impact subgraph.
[0057] Specifically, the change impact sub-graph represents the scope of objects requiring re-review in this audit. Report conclusions unrelated to the change impact sub-graph continue to reuse the audit results from the previous audit cycle, while retaining their evidence fingerprints, previous audit status, and reasons for reuse. This avoids a complete re-audit and significantly improves audit efficiency. For example, when requirement R is modified, use cases, executions, defects, defect verification evidence, and report conclusions related to R are included in the change impact sub-graph and set to be reviewed. Conclusions unrelated to R continue to be reused, while retaining their evidence fingerprints, previous audit status, and reasons for reuse. If the software version changes, the search begins with the execution and defect verification evidence related to the old and new software versions to find conclusions still using evidence from the old version. In this embodiment, the change impact propagation mechanism can adapt to scenarios involving changes in report structure, accurately identify report conclusions affected by structural changes, and ensure the completeness and accuracy of the audit.
[0058] S104. Determine the context budget for each audit block based on the structured anomaly verification results and the change impact sub-graph, and construct the hard evidence area, risk adaptive content area, and cross-chapter consistency area based on the context budget for each audit block. Each audit block is a report block in the vehicle software test report that corresponds to the conclusion of a single report.
[0059] Specifically, for example, an in-vehicle software test report may contain three report conclusions, corresponding to three review blocks: Review Block A (corresponding to the report conclusion "Voice Interaction Function Test Conclusion"), Review Block B (corresponding to the report conclusion "Rear-seat Entertainment Function Test Conclusion"), and Review Block C (corresponding to the report conclusion "Instrument Display Function Test Conclusion"). For each review block, the context budget needs to be determined. The context budget refers to the amount of large language model input context resources allocated by the system for each review block, that is, the upper limit of the context space that the review block can occupy when inputting the large language model.
[0060] Optionally, in one implementable approach, S104 determines the context budget for each audit block based on the structured anomaly verification results and the change impact subgraph, specifically: S1041. For each audit block, obtain the degree of evidence gap in the structured anomaly verification results, the rule anomaly density in the vehicle software test report, and the release stage criticality of the current audit task.
[0061] Specifically, taking audit block A as an example, according to the structured anomaly verification results, there are two gaps in the conclusion support path corresponding to audit block A: a version inconsistency gap and an evidence expiration gap (test cases have exceeded the specified time limit). The evidence gap severity is, for example, 0.6. In the report block corresponding to audit block A, there is one rule anomaly: "Test environment software version number not filled in." This report block contains 20 fields, and the rule anomaly density is recorded as 0.05. The current audit task belongs to the "System Testing Phase" release stage. According to the project access control policy configuration, the criticality weight of the release stage in the System Testing Phase is 0.8 (range 0-1).
[0062] Optionally, the degree of evidence gap can be normalized by dividing the number of gap components appearing in the conclusion support path corresponding to the statistical review block by the total number of gap components.
[0063] Optionally, rule anomaly density = number of rule anomalies in the audit block / total number of fields in the audit block.
[0064] Optionally, the criticality of the release phase is pre-configured by the project access control policy, with a value range of 0 to 1, and is set by the project team according to the importance of the release phase.
[0065] S1042. Determine the scope of the change's impact based on the scope of the sub-map that affects the change.
[0066] Specifically, for example, the report conclusion node corresponding to audit block A is located in the change impact subgraph (affected by the difference in requirement baseline and software version baseline). The change impact subgraph covers 3 evidence nodes and 2 edges of audit block A, and the change impact range is recorded as 0.7.
[0067] S1043. Normalize the degree of evidence gap, rule anomaly density, criticality of the release stage, and scope of change impact respectively. Then, sum the normalized values according to preset weights to obtain the risk value of the review block.
[0068] Specifically, in one embodiment, the degree of evidence gap is... Regular abnormal density Keyness of the release phase and the scope of impact of the change Normalized to the same dimension, the risk value of the audit block can be calculated using the following formula (1):
[0069] in, , , , It is a configurable non-negative weight, and there is no fixed value when business verification is not obtained. It can be set according to the project access control policy.
[0070] S1044. Calculate the context budget of the audit block based on the preset total context budget, minimum budget of the audit block, maximum budget of the audit block, and risk value of the audit block.
[0071] Specifically, the total context budget is the total amount of context resources that the system can allocate to all the input large language models of all review blocks in a single review task. The minimum budget for a review block is the minimum amount of resources that each review block should receive in the context budget allocation. The maximum budget for a review block is the maximum amount of resources that each review block can receive in the context budget allocation. The risk value of a review block is a quantitative value of the risk level of the review block in this review task, which can be obtained by weighted summation of four dimensions: the degree of evidence gap, the density of rule anomalies, the criticality of the release stage, and the scope of impact of the change.
[0072] Specifically, in one embodiment, the context budget of the audit block can be calculated using the following formula (2):
[0073] The total context budget is The minimum budget for the review block is The maximum budget for the review block is The risk value of the audit block is .Exceed The allocated portion is truncated and redistributed among other review blocks. For review blocks containing hard conflicts or critical evidence, the hard evidence area budget is prioritized and not removed simply because plain text poses a lower risk.
[0074] After obtaining the context budget for each review block, a hard evidence area, a risk-adaptive content area, and a cross-chapter consistency area are constructed based on the context budget of each review block. The hard evidence area refers to the mandatory set of evidence that must be unconditionally retained and not included in any summary compression during the large language model context budget allocation. The evidence in this area is the hard criterion for determining whether the report conclusions can pass the release gate, and must be fully retained regardless of the overall risk value of the review block. The risk-adaptive content area is a compressible evidence area constructed by dynamically selecting content such as the report text, test details, anomaly summaries, or historically reviewed representations based on the risk value and context budget of the review block. The degree of content retention in this area varies with the risk level of the review block. The cross-chapter consistency area is an area that stores information that needs to be verified across chapters, stages, or versions. This area is used to avoid situations where some review blocks are correct but the overall results are contradictory after block-based review.
[0075] Optionally, in one embodiment, in S104, a hard evidence area, a risk-adaptive content area, and a cross-chapter consistency area are constructed based on the context budget of each review block. Specifically, this can be: S111. For each audit block, construct a hard evidence area based on the release access control evidence that meets the preset access control policy, version conflicts, unclosed defects, risk anomalies that meet preset conditions, and vehicle configuration information in the audit block.
[0076] Specifically, taking review block A as an example, the hard evidence area is constructed by obtaining the release access control evidence, version conflicts, unclosed defects, risk anomalies that meet preset conditions, and vehicle configuration information of the preset access control policy in review block A. Among them, the preset conditions include at least one of the following: the anomaly level is P0 or P1, the anomaly type is a version conflict or unclosed defect, the anomaly violates the release conditions of the current release stage, and whether the anomaly impact report conclusion meets the release access control requirements.
[0077] S112. Based on the risk value and context budget of the audit block, select content from the report text, test details, anomaly summary and historical audited representation of the audit block to construct a risk-adaptive content area. Audit blocks with risk values greater than or equal to a preset threshold select the original text and adjacent details. Audit blocks with risk values less than the preset threshold and no changes select the summary or historical audited representation.
[0078] Specifically, for example, if the risk value of review block B is 0.85, which is higher than the preset threshold of 0.7, within the context budget of review block B, content is selected from the report text, test details, anomaly summary and historical reviewed representations of review block B. The original text and adjacent details are retained first to construct a risk-adaptive content area.
[0079] The risk value of review block C is 0.15, which is lower than the preset threshold of 0.3 and has no impact from changes. The system selects the summary or historical reviewed representation of review block C to construct a risk-adaptive content area to reduce context usage.
[0080] S113. Based on the information in the vehicle software test report that needs to be verified across chapters, stages, or versions, construct a cross-chapter consistency zone.
[0081] Specifically, obtain information from the vehicle software test report that needs to be verified across chapters, stages, or versions, including the software version number on the report's homepage, the software version number of the test environment, the software version number of the defect retest, the test details for each chapter, and the final release conclusion. Construct a cross-chapter consistency zone to avoid partial correctness but overall inconsistencies after segmented review.
[0082] S105. Input the hard evidence area, risk-adaptive content area, and cross-chapter consistency area into the large language model, and output the review conclusion of the vehicle software test report.
[0083] Optionally, in one embodiment, before inputting the hard evidence area, risk-adaptive content area, and cross-chapter consistency area into the large language model in S105, the evidence coverage check in S106 may further include: S106. Determine that the first condition is met. The first condition includes: complete access control evidence, explanatory evidence before and after the anomaly, and cross-chapter or cross-version fields entering the context simultaneously.
[0084] Specifically, it is necessary to input the hard evidence area, risk adaptive content area, and cross-chapter consistency area into the large language model after ensuring that all three sub-conditions in the first condition are met. That is, it is necessary to determine that the release access control evidence is complete, there is interpretable evidence before and after the anomaly, and cross-chapter fields or cross-version fields are simultaneously included in the context.
[0085] If it is determined that any of the three sub-conditions in the first condition is not met, that is, if it is determined that the access control evidence is incomplete, there is no explanatory evidence before and after the anomaly, or the cross-chapter fields are not simultaneously included in the context, supplement the search for missing evidence or increase the context budget. If insufficient coverage still exists after supplementary searches or increased budget, the audit block is marked as pending further certification.
[0086] In this embodiment, the evidence coverage check mechanism can identify cases of insufficient evidence coverage before model review and handle them by supplementing retrieval, increasing budget, or marking evidence to be supplemented, so as to avoid the large language model outputting a definitive pass conclusion when there is insufficient evidence.
[0087] Optionally, in one embodiment, after inputting the hard evidence region, risk-adaptive content region, and cross-chapter consistency region into the large language model in S105, the following semantic result admission verification is performed: S107. Obtain the candidate audit conclusions output by the large language model. The candidate audit conclusions include the issue type, issue location, software version, associated evidence unit identifier, and conclusion confidence information.
[0088] S108. Verify each candidate audit conclusion and determine the candidate audit conclusion that is consistent in version, valid in time, traceable in source, has complete evidence coverage and no hard conflicts as the audit conclusion. Hard conflicts include version conflicts, missing required fields, unexecuted test cases and unclosed defects.
[0089] Specifically, each candidate audit conclusion undergoes five-dimensional verification: version consistency verification, time validity verification, source traceability verification, evidence coverage completeness verification, and hard conflict verification. For example, candidate audit conclusion 1 has version inconsistency and hard conflict, so the system marks it as an issue requiring supplementary verification or a rejection item, and it cannot be determined as a formal audit conclusion. Candidate audit conclusion 2 has an invalid time, so the system marks it as an issue requiring supplementary verification or a rejection item, and it cannot be determined as a formal audit conclusion. Candidate audit conclusion 3 passes all five-dimensional verifications, and the system determines it as a formal audit conclusion.
[0090] S109. If there are no candidate audit conclusions that pass the verification, output a prompt message. The prompt message is used to indicate that the vehicle software test report needs to be partially re-audited.
[0091] Specifically, only if the versions are consistent, the time is valid, the source is traceable, the evidence is complete and there are no contradictory or hard conflicts, can the review conclusion be determined and enter the formal review result; otherwise, it will enter the stage of pending supplementary evidence or be rejected.
[0092] Furthermore, the method in this embodiment may also include: S110. Based on the prompt information, starting from the position of the changed evidence unit in the directed evidence graph, propagate the changed state along the directed path of the directed evidence graph again, and identify the affected report conclusions as the objects to be reviewed.
[0093] S111. Perform a re-audit on the object to be reviewed, generate partial review results, and save the evidence content, audit status, and review records before and after rectification.
[0094] Specifically, based on the prompts from the system output, the auditors supplemented the retest records and test execution records in the external system for partial re-audit. Based on the prompts, the system used the position of the changed evidence unit in the directed evidence graph as the starting node, propagated the change status along the directed path of the directed evidence graph, identified the affected report conclusions as the objects to be reviewed, performed a re-audit on the objects to be reviewed, generated partial audit results, and saved the evidence content, audit status, and audit records before and after rectification. Other audit results continued to be reused without re-audit.
[0095] For example, in one embodiment, the test report only states "Software version B2 can be released" without attaching defect verification records. After querying the defect or test management system, the system finds that the relevant verification evidence belongs to B1. The system records the version consistency gap and places the B1 evidence, the B2 report conclusion, and their related paths into the hard evidence area. Even if the large model considers the report text complete, the conclusion cannot pass. During remediation, testers supplement the valid defect verification evidence corresponding to B2 in an external system, and the test report does not need to embed the original record. After obtaining new evidence, the system updates the evidence graph and recalculates the affected conclusions and access control nodes from the evidence, only reviewing the relevant conclusions; other unrelated review results continue to be reused. The system simultaneously saves the evidence and review results before and after remediation, forming a traceable record.
[0096] In this embodiment, the semantic result admission verification mechanism can impose deterministic constraints on the model output. Only candidate review conclusions that are consistent in version, valid in time, traceable in source, have complete evidence coverage, and do not have hard conflicts can enter the formal review results. When there are no candidate review conclusions that pass the verification, the system outputs prompt information to guide rectification, and performs partial re-review after rectification, forming a complete evidence closed loop and rectification review closed loop.
[0097] Furthermore, the method in this embodiment may also include: S112. Generate evidence coverage proof for each audit block. The evidence coverage proof includes the audit block identifier, the evidence unit identifier of the audit block that is retained, the context budget, the reason for retention, the published access control coverage information, the abnormal node adjacency coverage information, and the cross-chapter consistency coverage information.
[0098] Optionally, in one embodiment, for an audit block, evidence coverage proof as shown in formula (3) is generated: (3) in, Indicates the review block. This indicates the unit of evidence that has been retained. Indicates contextual budget, The last three fields indicate the reason for retention: access control coverage information, abnormal node adjacency coverage information, and cross-chapter consistency coverage information, respectively.
[0099] Minimum evidence requirements can be configured for each release phase. The system checks whether access control evidence is complete, whether there is explanatory evidence before and after the anomaly, and whether cross-chapter or cross-version fields are included in the context simultaneously. If coverage is insufficient, it first supplements the search or increases the budget; if it is still insufficient, it can only output uncertain or pending evidence results, and cannot give a definitive conclusion of approval.
[0100] In this embodiment, by generating an evidence coverage certificate for each audit block and recording the identifiers of retained evidence units, the reasons for retention, and the context budget usage, the evidentiary basis upon which the audit conclusions rely becomes completely transparent. Auditors or regulators, during review, can directly determine "which evidence was seen during the model audit" based on the evidence coverage certificate, solving the problem of disconnect between model output and evidence sources and the difficulty in reviewing and tracing in existing technologies. Furthermore, through the evidence coverage certificate, the system can quantify the context budget usage efficiency of each audit block, identifying audit blocks with sufficient budget but insufficient evidence coverage, providing data support for optimizing subsequent audit strategies. Simultaneously, the complete evidence coverage certificate constitutes an auditable record, meeting the standard's requirements for the traceability of the audit process.
[0101] The software test report review method provided in this embodiment extracts the review data set from the vehicle software test report and generates an evidence unit set. A directed evidence graph is constructed based on the evidence unit set and a preset release stage access control relationship. Then, a reverse verification is performed based on the directed evidence graph to obtain structured anomaly verification results. A baseline difference comparison is performed between the review data set and the review data set from the previous review cycle. The obtained baseline difference set is propagated along the directed evidence graph to obtain a change impact subgraph. Then, the context budget for each review block is determined based on the structured anomaly verification results and the change impact subgraph. A hard evidence area, a risk-adaptive content area, and a cross-chapter consistency area are constructed based on the context budget for each review block. Each review block is a report block in the vehicle software test report corresponding to a single report conclusion. The hard evidence area, risk-adaptive content area, and cross-chapter consistency area are input into a large language model to output the review conclusion of the vehicle software test report. Thus, each audit conclusion can be traced back to the corresponding software version, test execution, and defect verification evidence through a directed evidence graph. When the context is limited, the three-zone arrangement prioritizes the retention of key evidence and verifies the completeness of key evidence coverage. It automates the process of evidence association, anomaly identification, and change impact analysis, replacing manual cross-system queries and verification. This avoids problems such as large workload, data omissions and association errors, and difficulty in traceability in manual audits. It achieves an intelligent closed-loop audit with traceable and verifiable audit conclusions, accurately calculated review scope, and effectively controlled model input, thereby improving audit efficiency.
[0102] Figure 4 This is a schematic diagram of the processing flow of a software test report review method provided in an embodiment of this application, as shown below. Figure 4 As shown, the method may include: First, by executing S101-S103 above, the change impact subgraph 320 is obtained. Specifically, the audit data set is extracted from the vehicle software test report and an evidence unit set is generated. A directed evidence graph is constructed based on the evidence unit set and the preset release stage access control relationship. The structured anomaly verification result is obtained by reverse verification based on the directed evidence graph. Then, the baseline difference between the audit data set and the audit data set of the previous audit cycle is compared. The obtained baseline difference set is propagated along the directed evidence graph to obtain the change impact subgraph.
[0103] Next, the risk and budget of the audit block are calculated based on the degree of evidence gap, rule anomaly, and stage criticality. Specifically, for each audit block, the degree of evidence gap in the structured anomaly verification results, the rule anomaly density in the vehicle software test report, and the release stage criticality of the current audit task are obtained. The scope of change impact is determined according to the scope of the change impact subgraph. The degree of evidence gap, rule anomaly density, release stage criticality, and change impact scope are normalized respectively. The normalized values are weighted and summed according to preset weights to obtain the risk value of the audit block. The context budget of the audit block is calculated based on the preset total context budget, minimum budget of the audit block, maximum budget of the audit block, and risk value of the audit block.
[0104] Then, risk-adaptive context orchestration is performed. Specifically, based on the context budget of each review block, a hard evidence area 340, a risk-adaptive content area 350, and a cross-chapter consistency area 360 are constructed respectively. These three types of areas form the input of the large language model in parallel. The hard evidence area, the risk-adaptive content area, and the cross-chapter consistency area are input into the large language model, and the review conclusion of the vehicle software test report is output.
[0105] Next, a closed loop of evidence coverage, result admission, and rectification is implemented. Specifically, an evidence coverage certificate is generated for each audit block. This certificate includes the audit block identifier, the identifier of the evidence unit retained in the audit block, the context budget, the reason for retention, published access control coverage information, abnormal node adjacency coverage information, and cross-chapter consistency coverage information. The coverage is then assessed to determine if it meets the requirements: if it does, the semantic result admission process begins; if not, supplementary searches are conducted or the budget is increased; if still insufficient, the issue is moved to a supplementary verification issue or rejection item, and the feedback from the re-verification of coverage after supplementary verification is returned to the evidence coverage certificate. The semantic result is then assessed for admission: if approved, the formal audit result is output; if not approved, the issue is moved to a supplementary verification issue or rejection item. Issues requiring supplementary verification or rejection items undergo supplementary verification or rectification events and are then subject to local re-audit. After rectification, the scope of impact is redefined, only affected objects are processed, and feedback is fed back to the audit block risk and budget calculation process.
[0106] The software test report review method provided in this application extracts a set of review materials from the vehicle software test report, converts the review materials into evidence units, establishes a directed evidence graph connecting the report conclusions, various types of evidence, and release access control, and verifies the supporting path from the report conclusions. It identifies issues such as uncovered requirements, unexecuted tests, unclosed defects, version conflicts, expired evidence, and untraceable sources. It also identifies added, deleted, and modified items and propagates changes along the evidence graph to relevant evidence nodes, report conclusions, and release access control, thereby reducing duplicate reviews and preventing the erroneous reuse of historical conclusions. Each conclusion can be traced back to the corresponding software version, test execution, and defect evidence, ensuring the scope of impact after changes can be determined, avoiding complete re-reviews and unfounded reuse. When the context is limited, it prioritizes retaining key release evidence and verifies whether the key evidence is fully covered, making the input of the large language model controllable. The model output must pass deterministic rules and evidence admission checks, making the output constrained. This allows for the simultaneous review of the report's content's rationality and the accuracy of its conclusions. Furthermore, it enables the identification of the affected review scope after report modifications, allowing for a partial re-review of the relevant conclusions. This achieves a closed-loop process encompassing evidence verification, conclusion acceptance, change analysis, and rectification review.
[0107] Figure 5 This is a schematic diagram of the structure of a software test report review device provided in an embodiment of this application, as shown below. Figure 5 As shown, the device may include: a first processing module 11, a verification module 12, a second processing module 13, and a construction module 14.
[0108] The first processing module 11 is used to extract the audit data set from the vehicle software test report and generate the evidence unit set. Based on the evidence unit set and the preset release stage access control relationship, a directed evidence graph is constructed. The directed evidence graph is used to characterize the support relationship between the test report conclusion and each verification link. Verification module 12 is used to perform reverse verification based on the directed evidence graph to obtain structured anomaly verification results; The second processing module 13 is used to compare the baseline differences between the audit data set and the audit data set of the previous audit cycle, and propagate the obtained baseline difference set along the directed evidence graph to obtain the change impact subgraph. The construction module 14 is used to determine the context budget of each audit block based on the structured anomaly verification results and the change impact subgraph, and to construct the hard evidence area, risk adaptive content area and cross-chapter consistency area based on the context budget of each audit block. Each audit block is a report block in the vehicle software test report that corresponds to the conclusion of a single report. The second processing module 13 is also used to: input the hard evidence area, the risk adaptive content area, and the cross-chapter consistency area into the large language model, and output the review conclusion of the vehicle software test report.
[0109] In one embodiment, the first processing module 11 is used to: Extract the audit materials set from the vehicle software test report. The audit materials include at least one of the following: requirement baseline, test report, software version identifier, test cases, test execution records, test defect information, and vehicle configuration information. For each piece of audited material in the audited material set, an evidence unit is generated based on the audited material, resulting in an evidence unit set. The evidence unit includes at least one of the following: material type, material identifier, source platform identifier, test object identifier, requirement baseline identifier, software version identifier, generation time, effective time range, content summary, content fingerprint, and original citation location.
[0110] In one embodiment, the first processing module 11 is used to: Obtain the target evidence unit from the evidence unit set. The target evidence unit includes requirement evidence unit, test case evidence unit, test execution evidence unit, defect evidence unit, defect verification evidence unit, and report conclusion evidence unit. Each target evidence unit is mapped to a graph node of the corresponding type. The release phase access control node is the top-level constraint node, and the requirement node, test case node, test execution node, defect node, defect verification node and report conclusion node are the child nodes. Directed edges are established according to the phase dependency relationship and verification support relationship between each node to generate a directed evidence graph.
[0111] In one embodiment, the verification module 12 is used for: Starting from the report conclusion node, traverse backwards along the directed edges of the directed evidence graph to find the conclusion support path from the requirement node through the test case node, test execution node, defect node, and defect verification node to the report conclusion node. Consistency verification is performed on the evidence units corresponding to each node in the conclusion support path to obtain the verification results; Generate structured anomaly verification results based on the verification results.
[0112] In one embodiment, consistency verification includes verifying at least one of the following: source platform, test object, software version, and valid time range; The structured anomaly verification results include at least one of the following: uncovered requirement gap component, missing execution evidence gap component, unclosed defect gap component, version inconsistency gap component, expired evidence gap component, and unsupported path gap component for conclusion, as well as target information for each gap component. The target information includes the anomaly location, type, release stage, and affected conclusion.
[0113] In one embodiment, the baseline difference set includes at least one of vehicle configuration differences, ECU hardware differences, requirement baseline differences, software version baseline differences, test case baseline differences, report structure baseline differences, and audit rule baseline differences. The second processing module 13 is used to: Map each baseline difference in the baseline difference set to a starting node in the directed evidence graph; Starting from the initial node, the state changes along the directed edges of the directed evidence graph, propagating from the initial node to the report conclusion node and the access control node of the release stage. The nodes, edges, and report blocks covered during the propagation process are constructed into a change impact subgraph.
[0114] In one embodiment, the construction module 14 is used to: For each audit block, obtain the degree of evidence gap in the structured anomaly verification results, the rule anomaly density in the vehicle software test report, and the release stage criticality of the current audit task. Determine the scope of the change's impact based on the scope of the sub-map that affects the change; The degree of evidence gap, rule anomaly density, criticality of the release stage, and scope of change impact are normalized respectively. The normalized values are then weighted and summed according to preset weights to obtain the risk value of the review block. The context budget of an audit block is calculated based on the preset total context budget, minimum budget for an audit block, maximum budget for an audit block, and risk value of the audit block.
[0115] In one embodiment, the construction module 14 is specifically used for: For each review block, a hard evidence area is constructed based on the release access control evidence that meets the preset access control policy, version conflicts, unclosed defects, risk anomalies that meet preset conditions, and vehicle configuration information in the review block; Based on the risk value and context budget of the review block, content is selected from the report text, test details, anomaly summary and historical reviewed representation of the review block to construct a risk-adaptive content area. Among them, the original text and adjacent details are selected for review blocks with risk values greater than or equal to the preset threshold, and the summary or historical reviewed representation is selected for review blocks with risk values less than the preset threshold and no changes. Based on the information in the vehicle software test report that needs to be verified across chapters, stages, or versions, a cross-chapter consistency zone is constructed.
[0116] In one embodiment, the second processing module 13 is further configured to: determine whether a first condition is met before inputting the hard evidence area, the risk adaptive content area, and the cross-chapter consistency area into the large language model. The first condition includes: the release access control evidence is complete, there is interpretable evidence before and after the anomaly, and cross-chapter fields or cross-version fields are simultaneously entered into the context.
[0117] In one embodiment, the second processing module 13 is further configured to: input the hard evidence area, the risk adaptive content area, and the cross-chapter consistency area into the large language model, and then obtain the candidate review conclusions output by the large language model. The candidate review conclusions include the issue type, issue location, software version, associated evidence unit identifier, and conclusion confidence information. Each candidate audit conclusion is verified, and the candidate audit conclusions that are consistent in version, valid in time, traceable in source, have complete evidence coverage and no hard conflicts are determined as the audit conclusions. Hard conflicts include version conflicts, missing required fields, unexecuted test cases and unclosed defects. If no candidate review conclusion passes the verification, a prompt message will be output, indicating that the vehicle software test report needs to be partially re-reviewed.
[0118] In one embodiment, the second processing module 13 is further configured to: Based on the prompts, starting from the position of the changed evidence unit in the directed evidence graph, the changed state is propagated again along the directed path of the directed evidence graph, and the affected report conclusions are identified as objects to be reviewed. The system re-examines the objects to be reviewed, generates partial review results, and saves the evidence content before and after rectification, the review status, and the review records.
[0119] In one embodiment, the second processing module 13 is further configured to: For each audit block, an evidence coverage certificate is generated. The evidence coverage certificate includes the audit block identifier, the evidence unit identifier of the audit block that is retained, the context budget, the reason for retention, the published access control coverage information, the abnormal node adjacency coverage information, and the cross-chapter consistency coverage information.
[0120] It should be understood that the device embodiments and method embodiments can correspond to each other, and similar descriptions can be found in the method embodiments. To avoid repetition, further details are omitted here. Specifically, Figure 6 The software test report review device shown can execute the method embodiment corresponding to the computer device, and the foregoing and other operations and / or functions of each module in the device are respectively for implementing the method embodiment corresponding to the computer device. For the sake of brevity, they will not be described in detail here.
[0121] The software test report review device and information prediction device of this application embodiments have been described above from the perspective of functional modules, with reference to the accompanying drawings. It should be understood that these functional modules can be implemented in hardware, in software instructions, or in a combination of hardware and software modules. Specifically, the steps of the method embodiments in this application can be completed by the integrated logic circuits in the processor's hardware and / or by software instructions. The steps of the methods disclosed in this application embodiments can be directly manifested as execution by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. Optionally, the software module can be located in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps in the above method embodiments.
[0122] Figure 6 This is a schematic block diagram of a computer device provided in an embodiment of this application.
[0123] like Figure 6 As shown, the computer device 300 may include: The system includes a memory 310 and a processor 320. The memory 310 stores computer programs and transfers the program code to the processor 320. In other words, the processor 320 can retrieve and run the computer program from the memory 310 to implement the methods described in the embodiments of this application.
[0124] For example, the processor 320 can be used to execute the above-described method embodiments according to instructions in the computer program.
[0125] In some embodiments of this application, the processor 320 may include, but is not limited to: General-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0126] In some embodiments of this application, the memory 310 includes, but is not limited to: Volatile memory and / or non-volatile memory. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).
[0127] In some embodiments of this application, the computer program may be divided into one or more modules, which are stored in the memory 310 and executed by the processor 320 to complete the method provided in this application. The one or more modules may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the computer device.
[0128] like Figure 6 As shown, the computer device may further include: Transceiver 330, which can be connected to processor 320 or memory 310.
[0129] The processor 320 can control the transceiver 330 to communicate with other devices; specifically, it can send information or data to other devices or receive information or data sent by other devices. The transceiver 330 may include a transmitter and a receiver. The transceiver 330 may further include antennas, and the number of antennas may be one or more.
[0130] It should be understood that the various components in the computer device are connected through a bus system, which includes not only the data bus, but also the power bus, control bus, and status signal bus.
[0131] This application also provides a computer storage medium storing a computer program thereon, which, when executed by a computer, enables the computer to perform the methods of the above-described method embodiments. Alternatively, this application also provides a computer program product containing instructions that, when executed by a computer, cause the computer to perform the methods of the above-described method embodiments.
[0132] When implemented using software, it can be implemented entirely or partially as a computer program product. This computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (DVD)), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0133] Those skilled in the art will recognize that the modules and algorithm steps of the various examples 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 implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of the embodiments of this application.
[0134] In the embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or modules may be electrical, mechanical, or other forms.
[0135] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. For example, the functional modules in the various embodiments of this application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0136] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the embodiments of this application should be included within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the claims.
Claims
1. A method for reviewing software test reports, characterized in that, include: Extract the audit data set from the vehicle software test report and generate an evidence unit set. Construct a directed evidence graph based on the evidence unit set and the preset release stage access control relationship. The directed evidence graph is used to characterize the support relationship between the test report conclusion and each verification link. The structured anomaly verification result is obtained by performing reverse verification based on the directed evidence graph. A baseline difference comparison is performed between the audit data set and the audit data set of the previous audit cycle. The resulting baseline difference set is then propagated along the directed evidence graph to obtain a change impact subgraph. The context budget for each audit block is determined based on the structured anomaly verification results and the change impact subgraph. A hard evidence area, a risk-adaptive content area, and a cross-chapter consistency area are constructed based on the context budget for each audit block. Each audit block is a report block in the vehicle software test report that corresponds to the conclusion of a single report. The hard evidence area, the risk adaptive content area, and the cross-chapter consistency area are input into the large language model to output the review conclusion of the vehicle software test report.
2. The method according to claim 1, characterized in that, The step of extracting the audit data set from the vehicle software test report and generating the evidence unit set includes: Extract the audit data set from the vehicle software test report. The audit data includes at least one of the following: requirement baseline, test report, software version identifier, test cases, test execution records, test defect information, and vehicle configuration information. For each piece of audited material in the audited material set, an evidence unit is generated based on the audited material to obtain the evidence unit set. The evidence unit includes at least one of the following: material type, material identifier, source platform identifier, test object identifier, requirement baseline identifier, software version identifier, generation time, effective time range, content summary, content fingerprint, and original citation location.
3. The method according to claim 1, characterized in that, The construction of a directed evidence graph based on the set of evidence units and the preset access control relationship for the release phase includes: Obtain the target evidence unit from the evidence unit set, the target evidence unit including requirement evidence unit, test case evidence unit, test execution evidence unit, defect evidence unit, defect verification evidence unit, and report conclusion evidence unit; Each target evidence unit is mapped to a graph node of the corresponding type. The release phase access control node is the top-level constraint node, and the requirement node, test case node, test execution node, defect node, defect verification node and report conclusion node are the child nodes. Directed edges are established according to the phase dependency relationship and verification support relationship between each node to generate the directed evidence graph.
4. The method according to claim 3, characterized in that, The reverse verification based on the directed evidence graph to obtain the structured anomaly verification result includes: Starting from the report conclusion node, traverse backwards along the directed edges of the directed evidence graph to find the conclusion support path from the requirement node through the test case node, test execution node, defect node, and defect verification node to the report conclusion node. Consistency verification is performed on the evidence units corresponding to each node in the path supporting the conclusion to obtain the verification results; The structured anomaly verification result is generated based on the verification result.
5. The method according to claim 4, characterized in that, The consistency verification includes verifying at least one of the following: source platform, test object, software version, and valid time range; The structured anomaly verification results include at least one of the following: uncovered requirement gap component, missing execution evidence gap component, unclosed defect gap component, version inconsistency gap component, expired evidence gap component, and unsupported path gap component for conclusion, as well as target information for each gap component. The target information includes the anomaly location, type, release stage, and affected conclusion.
6. The method according to claim 1, characterized in that, The baseline difference set includes at least one of the following: vehicle configuration differences, ECU hardware differences, requirement baseline differences, software version baseline differences, test case baseline differences, report structure baseline differences, and audit rule baseline differences. The obtained baseline difference set is propagated along the directed evidence graph to obtain a change impact subgraph, including: Map each baseline difference in the baseline difference set to the starting node in the directed evidence graph; Starting from the starting node, the state changes along the directed edges of the directed evidence graph, propagating from the starting node to the report conclusion node and the release phase access control node. The nodes, edges, and report blocks covered during the propagation process are constructed into the change impact subgraph.
7. The method according to claim 1, characterized in that, The step of determining the context budget for each audit block based on the structured anomaly verification results and the change impact subgraph includes: For each audit block, obtain the degree of evidence gap of the audit block in the structured anomaly verification result, the rule anomaly density of the audit block in the vehicle software test report, and the release stage criticality of the current audit task to which the release stage belongs; The scope of the change's impact is determined based on the scope of the aforementioned sub-diagram of the change's impact. The degree of evidence gap, the density of rule anomalies, the criticality of the release stage, and the scope of impact of the change are normalized respectively. The normalized values are then weighted and summed according to preset weights to obtain the risk value of the review block. The context budget of the audit block is calculated based on the preset total context budget, minimum budget of the audit block, maximum budget of the audit block, and risk value of the audit block.
8. The method according to claim 7, characterized in that, The construction of a hard evidence zone, a risk-adaptive content zone, and a cross-chapter consistency zone based on the context budget of each review block includes: For each review block, the hard evidence area is constructed based on the release access control evidence that meets the preset access control policy, version conflicts, unclosed loop defects, risk anomalies that meet preset conditions, and vehicle configuration information in the review block; Based on the risk value and context budget of the review block, content is selected from the report text, test details, anomaly summary and historical reviewed representation of the review block to construct the risk adaptive content area. In this case, the review block with a risk value greater than or equal to a preset threshold selects the original text and adjacent details, and the review block with a risk value less than the preset threshold and no change selects the summary or historical reviewed representation. Based on the information in the vehicle software test report that needs to be verified across chapters, stages, or versions, the cross-chapter consistency zone is constructed.
9. The method according to claim 1, characterized in that, Before inputting the hard evidence region, the risk-adaptive content region, and the cross-chapter consistency region into the large language model, the method further includes: The first condition is determined to be met, which includes: complete access control evidence, explanable evidence before and after the anomaly, and cross-chapter or cross-version fields entering the context simultaneously.
10. The method according to claim 1, characterized in that, After inputting the hard evidence region, the risk-adaptive content region, and the cross-chapter consistency region into the large language model, the method further includes: Obtain the candidate review conclusions output by the large language model. The candidate review conclusions include the issue type, issue location, software version, associated evidence unit identifier, and conclusion confidence information. Each candidate audit conclusion is verified, and the candidate audit conclusion that is consistent in version, valid in time, traceable in source, has complete evidence coverage and no hard conflicts is determined as the audit conclusion. The hard conflicts include version conflicts, missing required fields, unexecuted test cases and unclosed defects. If no candidate review conclusion passes the verification, a prompt message is output, indicating that the vehicle software test report needs to be partially re-reviewed.
11. The method according to claim 10, characterized in that, The method further includes: Based on the aforementioned prompt information, starting from the position of the changed evidence unit in the directed evidence graph, the changed state is propagated again along the directed path of the directed evidence graph, and the affected report conclusions are identified as objects to be reviewed. The object to be reviewed is re-reviewed, a partial review result is generated, and the evidence content, review status and review record before and after rectification are saved.
12. The method according to claim 1, characterized in that, The method further includes: An evidence coverage certificate is generated for each audit block. The evidence coverage certificate includes the identifier of the audit block, the identifier of the evidence unit to which the audit block is retained, the context budget, the reason for retention, the published access control coverage information, the abnormal node adjacency coverage information, and the cross-chapter consistency coverage information.
13. A software test report review device, characterized in that, include: The first processing module is used to extract the audit data set from the vehicle software test report and generate the evidence unit set. Based on the evidence unit set and the preset release stage access control relationship, a directed evidence graph is constructed. The directed evidence graph is used to characterize the support relationship between the test report conclusion and each verification link. The verification module is used to perform reverse verification based on the directed evidence graph to obtain structured anomaly verification results; The second processing module is used to compare the baseline differences between the audit data set and the audit data set of the previous audit cycle, and propagate the obtained baseline difference set along the directed evidence graph to obtain the change impact subgraph. The construction module is used to determine the context budget of each audit block based on the structured anomaly verification results and the change impact subgraph, and to construct a hard evidence area, a risk adaptive content area and a cross-chapter consistency area based on the context budget of each audit block. Each audit block is a report block in the vehicle software test report that corresponds to the conclusion of a single report. The second processing module is also used to: input the hard evidence area, the risk adaptive content area and the cross-chapter consistency area into the large language model, and output the review conclusion of the vehicle software test report.
14. A computer device, characterized in that, include: A processor and a memory, the memory being used to store a computer program, the processor being used to invoke and run the computer program stored in the memory to perform the method of any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that, Includes instructions that, when executed on a computer program, cause the computer to perform the method as described in any one of claims 1 to 12.
