A test report audit management method and device

By automatically pulling and managing standard documents on the server, determining the need for updating the test report template and generating revision record text, the problem of manual operation in the existing technology for updating the test report template is solved, and efficient and accurate template update management is achieved.

CN119378516BActive Publication Date: 2025-09-16SINOSTEEL WUHAN SAFEY&ENVIRONMENT PROTECTION RES
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411351039.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-09-16
Estimated Expiration
2044-09-26

AI Technical Summary

Technical Problem

In existing technologies, updating product inspection report templates relies on manual operations, which causes process delays and makes it difficult to ensure accuracy and compliance.

Method used

The server regularly pulls standard documents from third-party websites, establishes a document directory, and determines whether there are newly released standard documents based on the update time tag of the test report template, and generates revision record text so that users can update the template.

Benefits of technology

Automated test report template update management is achieved, reducing delays in manual operations and improving the accuracy and compliance of updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119378516B_ABST
    Figure CN119378516B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of detection technology, and provides a method and device for managing the review of a detection report. The method comprises: regularly pulling a standard document of an object to be detected, wherein the standard document carries a time tag; according to the object to be detected of the first detection report template, determining the applicable standard documents, and judging whether there is a newly released standard document after the first detection report template is updated according to the update time tag of the first detection report template and the time tag of each applicable standard document; if it is judged that there is a newly released standard document after the first detection report template is updated, the user is reminded to update the first detection report template. The present invention manages the standard document by using a time tag, and matches the time tag with the update time tag of the detection report template to confirm whether a new standard document has been released after the detection report template is updated, thereby being able to remind the user to update the detection report template according to the latest standard.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of detection technology, and in particular to a detection report review management method and device. Background Art

[0002] The core objective of product quality standards and their test method standards is to ensure that products meet established quality levels and to define a series of performance requirements that products must meet. With the rapid advancement of technology, consumer expectations for product performance continue to rise, and technical specifications are becoming more stringent, prompting the continuous updating of relevant standards to adapt to new requirements. Regarding product technical indicators, certain mandatory national standards and laws and regulations stipulate mandatory indicators that must be complied with. These are the guidelines that companies must follow when producing and selling products.

[0003] Product performance indicators are often detailed in officially published standard documents. Therefore, product testing is often conducted based on these documents to verify compliance with the standards set forth. Accordingly, report templates used for product testing must also be designed based on these standards to ensure standardized testing processes and accurate reporting. Once a new version of a standard document is implemented, the older version becomes inapplicable. Similarly, test report templates designed based on the older version are no longer fully applicable to the newer version.

[0004] Currently, standard document novelty searches and test report template updates rely primarily on manual labor, which delays the process to a certain extent and makes it difficult to fully guarantee accuracy and compliance. Therefore, overcoming the shortcomings of this existing technology is an urgent problem to be solved in this technical field. Summary of the Invention

[0005] The technical problem to be solved by the present invention is to provide a test report review management method.

[0006] The present invention adopts the following technical solutions:

[0007] In a first aspect, the present invention provides a test report review management method, comprising:

[0008] The server periodically pulls standard documents of the object to be inspected from a third-party website and stores the standard documents in a first folder. The standard documents carry time stamps, and a document directory is established in the first file based on the time stamps of each standard document. The standard documents include basic standard documents released at one or more time points and partial revision announcements of the corresponding basic standard documents.

[0009] storing each test report template in a second folder, and upon receiving a test request from a user to perform a test using the first test report template, determining applicable standard documents based on the object to be tested of the first test report template, and determining whether there is a newly released standard document after the first test report template is updated based on the update time tag of the first test report template and the time tags of the applicable standard documents;

[0010] If it is determined that there is a newly released standard document after the first test report template is updated, the latest standard document is used as the basis for updating the first test report template, and the user is reminded to update the first test report template; and, the first historical standard document matched by the first test report template is obtained, and the first historical standard document and the latest standard document are compared to obtain the update items of the latest standard document relative to the first historical standard document, and the relevant information of the first test report template, the relevant information of the first historical standard document, the relevant information of the latest standard document and the update items are written into the revision record text, and the revision record text is stored in a third folder so that the user can update the first test report template based on the revision record text.

[0011] Preferably, the step of establishing a document directory in the first file according to the time tags of each standard document specifically includes:

[0012] Create an XML file, and generate a first-level node, a second-level node, and a third-level node in the XML file; wherein the second-level node is a child node of the first-level node, and the third-level node is a child node of the second-level node;

[0013] The name of the object to be detected is stored in the first-level node, the time label and file name of the basic standard document applicable to the object to be detected is stored in the second-level node, and the time label and file name of the local revision announcement corresponding to the basic standard document is stored in the third-level node to obtain the document directory.

[0014] Preferably, the determining of applicable standard documents based on the object to be tested of the first test report template, and judging whether there is a newly released standard document after the first test report template is updated based on the update time tag of the first test report template and the time tags of the applicable standard documents, specifically includes:

[0015] Match the object to be tested of the first test report template with each first-level node in the document directory, and traverse and access each second-level node and third-level node under the successfully matched first-level node to obtain the time tags of each standard document applicable to the first test report template;

[0016] Compare the time tags of each standard document applicable to the first test report template with the update time tags of the first test report. If the comparison shows that the time tag of the corresponding standard document is later than the update time tag of the first test report template, it is determined that there is a newly released standard document after the first test report template is updated.

[0017] Preferably, obtaining the first historical standard document matched by the first test report template and comparing the first historical standard document with the latest standard document to obtain updated items of the latest standard document relative to the first historical standard document specifically includes:

[0018] Perform semantic understanding on the first historical standard document using the semantic understanding model to output various test items and corresponding standard requirements of the first historical standard document; perform semantic understanding on the latest standard document using the semantic understanding model to output various test items and corresponding standard requirements of the latest standard document;

[0019] Comparing each test item in the first historical standard document with each test item in the latest standard document to determine which test items are newly added or deleted in the latest standard document relative to the first historical standard document;

[0020] For the test items newly added to the latest standard document relative to the first historical standard document, the test items, the corresponding standard requirements in the latest standard document, and the newly added labels are taken as update items;

[0021] For the test items deleted from the latest standard document relative to the first historical standard document, the test items, the corresponding standard requirements in the first historical standard document, and the deletion labels are taken as update items;

[0022] For the test items that have not been deleted or added to the latest standard document compared with the first historical standard document, the standard requirements of the test items in the first historical standard document are compared with the standard requirements of the test items in the latest standard document. If the comparison shows any differences, the test item, the corresponding standard requirements in the latest standard document, and the revision label are treated as updated items.

[0023] Among them, the various test items and corresponding standard requirements of the first historical standard document are obtained by combining the first basic standard document and the first partial revision announcement matched by the first test report template, and the various test items and corresponding standard requirements of the latest standard document are obtained by combining the latest basic standard document and the local revision announcements corresponding to the latest standard basic document; the first local revision announcement is a local revision announcement whose time tag corresponding to the first basic standard document is earlier than the update time tag of the first test report template.

[0024] Preferably, the semantic understanding model is used to perform semantic understanding on the first historical standard document to output each test item and corresponding standard requirement of the first historical standard document, specifically including:

[0025] Each sub-chapter in the requirements chapter of the first basic standard document is regarded as an identification section, and a semantic understanding model is used to perform semantic understanding on each identification section to output a first test item and a corresponding first standard requirement for each identification section;

[0026] Use the semantic understanding model to perform semantic understanding on the first partial revision announcement to output the test items and standard requirements that are newly added, deleted, or revised in the first partial revision announcement relative to the first basic standard document;

[0027] According to the chronological order of the time labels of each first partial revision announcement, and taking into account the test items and standard requirements that have been newly added, deleted or revised in each first partial revision announcement relative to the first basic standard document, corresponding additions, deletions or revisions are made to each first test item and first standard requirement to obtain the test items and corresponding standard requirements of the first historical standard document.

[0028] Preferably, the method further comprises:

[0029] Reading each test item in the first test report template, and comparing each test item in the first test report template with each test item in the first historical standard document to determine the test items that are not adopted by the first test report template relative to the first historical standard document;

[0030] The update items corresponding to the unadopted inspection items are marked with reference labels, and the reference labels are updated into the revision record text along with the update items, so that users can determine whether it is necessary to update the inspection items with discarded labels into the new inspection report template based on the reference items in the revision record text.

[0031] Preferably, the method further comprises: upon receiving a test report template generation request from a user, generating a new test report template according to the first object to be detected carried in the test report template generation request, specifically comprising:

[0032] Searching a third-party website for a corresponding applicable standard document based on the name of the first object to be tested, and if a corresponding standard document applicable to the first object to be tested exists, generating a new test report template based on the standard document;

[0033] If there is no standard document applicable to the first object to be detected, convert the name of the first object to be detected into a word vector, and use the word vector to match the second folder, the third-party website, and the network in order of priority until a match is found to generate a new test report template;

[0034] The new test report template is allowed to be used as the test report template for the first object to be tested after being confirmed or modified by the user.

[0035] Preferably, the step of sequentially matching the second folder, the third-party website, and the network using the word vectors according to the priority order of the second folder, the third-party website, and the network until a new test report template is generated is specifically performed, including:

[0036] Calculate the distance between the word vector and the object to be detected of each test report template in the second folder, and use the object to be detected that is closest to the word vector as the second object to be detected. If the distance between the second object to be detected and the word vector is less than a preset distance, use the test report template of the second object to be detected as the new test report template for the object to be detected;

[0037] If the distance between the second object to be detected and the word vector is greater than or equal to the preset distance, then the distance between the word vector and the object to be detected in each standard document on the third-party website is calculated, and the object to be detected that is closest to the word vector is used as the third object to be detected. If the distance between the third object to be detected and the word vector is less than the preset distance, a new test report template is generated according to the standard document of the third object to be detected;

[0038] If the distance between the third object to be detected and the word vector is greater than or equal to the preset distance, the name of the first object to be detected is used as a search keyword to crawl a new detection report template from the network.

[0039] In a second aspect, the present invention further provides a test report review management device for implementing the test report review management method described in the first aspect, the device comprising:

[0040] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the processor to execute the test report review management method described in the first aspect.

[0041] In a third aspect, the present invention further provides a non-volatile computer storage medium, wherein the computer storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors to complete the method described in the first aspect.

[0042] In a fourth aspect, a chip is provided, comprising: a processor and an interface, for calling and running a computer program stored in a memory to execute the method of the first aspect.

[0043] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer or a processor, causes the computer or the processor to execute the method of the first aspect.

[0044] The present invention manages standard documents by using time tags and matches the time tags with the update time tags of the test report template to confirm whether a new standard document has been released after the test report template is updated, thereby reminding the user to update the test report template according to the latest standard. In addition, this embodiment also generates a revision record text so that the user can directly confirm the updated items of the standard content through the revision record text, thereby updating the template according to the updated items. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] To more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. Those skilled in the art can also derive other drawings based on these drawings without inventive effort.

[0046] Figure 1 This is a flow chart of a test report review management method provided by an embodiment of the present invention;

[0047] Figure 2 Schematic diagram of a test report review management method provided by an embodiment of the present invention;

[0048] Figure 3 Schematic diagram of a test report review management method provided by an embodiment of the present invention;

[0049] Figure 4 This is a flow chart of a test report review management method provided by an embodiment of the present invention;

[0050] Figure 5 This is a schematic diagram of a document directory in a test report review management method provided by an embodiment of the present invention;

[0051] Figure 6 This is a schematic diagram of a document directory in a test report review management method provided by an embodiment of the present invention;

[0052] Figure 7 This is a flow chart of a test report review management method provided by an embodiment of the present invention;

[0053] Figure 8 This is a flow chart of a test report review management method provided by an embodiment of the present invention;

[0054] Figure 9This is a schematic diagram of a revision record text in a test report review management method provided by an embodiment of the present invention;

[0055] Figure 10 Schematic diagram of a test report review management method provided by an embodiment of the present invention;

[0056] Figure 11 This is a flow chart of a test report review management method provided by an embodiment of the present invention;

[0057] Figure 12 This is a flow chart of a test report review management method provided by an embodiment of the present invention;

[0058] Figure 13 This is a schematic diagram of a revision record text in a test report review management method provided by an embodiment of the present invention;

[0059] Figure 14 This is a flow chart of a test report review management method provided by an embodiment of the present invention;

[0060] Figure 15 Schematic diagram of a test report review management method provided by an embodiment of the present invention;

[0061] Figure 16 Schematic diagram of a test report review management method provided by an embodiment of the present invention;

[0062] Figure 17 It is a schematic diagram of the architecture of a test report review management device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0063] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0064] Unless the context requires otherwise, throughout the specification and claims, the term "including" is to be interpreted as meaning open inclusion, that is, "including, but not limited to". In the description of the specification, the terms "one embodiment", "some embodiments", "exemplary embodiments", "example", "specific example" or "some examples" and the like are intended to indicate that the specific features, structures, materials or characteristics associated with the embodiment or example are included in at least one embodiment or example of the present disclosure. The schematic representation of the above terms does not necessarily refer to the same embodiment or example. In addition, the specific features, structures, materials or characteristics may be included in any one or more embodiments or examples in any appropriate manner, that is, although they may be carried in the embodiments or examples of the above terms due to reasons such as the order and position of appearance, it is not limited to that they can be carried in combination by one embodiment or example.

[0065] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "multiple" means two or more. In addition, for example, the description may also use the method of adding "A" and "B" at the end to describe the same type of nouns as two independent individuals. In this case, the corresponding features defined as "A" and "B" are only used to distinguish the description purposes of the same type of individuals, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.

[0066] In the description of the present invention, the expression "A and / or B" (where A and B are used to formally represent specific characteristic contents) is involved, and the corresponding expressions include the following three combinations: only A, only B, and a combination of A and B.

[0067] As used herein, "about," "substantially," or "approximately" includes the stated value and an average value that is within an acceptable range of deviation from the particular value as determined by one of ordinary skill in the art taking into account the measurements in question and errors associated with measurement of the particular quantity (i.e., limitations of the measurement system).

[0068] In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0069] Embodiment 1:

[0070] Embodiment 1 of the present invention provides a test report review management method, such as Figure 1 Shown, including:

[0071] In step 201, the server regularly pulls the standard documents of the object to be detected from the third-party website and stores the standard documents in the first folder. The standard documents carry time tags, and a document directory is established in the first file according to the time tags of each standard document; wherein, the standard documents include basic standard documents released at one or more time points and local revision announcements of the corresponding basic standard documents; wherein, the server regularly pulls the standard documents of the object to be detected from the third-party website, which can be set by a technician in this field, and pulls the standard documents from the third-party website once every preset period, and the preset period can be a few days, weeks or months, etc.; it can also be triggered by user action, such as executing the pulling action every time the user opens the test report review management application, and the pulling action can actually be understood as updating the first folder according to the third-party website to obtain the standard documents updated by the third-party website into the first folder. The third-party website can be managed by the publisher of the standard document.

[0072] Typically, standard documents don't take effect immediately after publication. Instead, they undergo a transition period for relevant parties to adjust and prepare before formal implementation. Therefore, standard documents typically have a clear publication date and a subsequent implementation date. The time stamp typically indicates the date of publication, and the document directory is used to manage each standard document.

[0073] The basic standard document can be understood as a comprehensive provision for each standard, and the partial revision announcement can be understood as a revision or modification of the partial content in the corresponding basic standard document. Since the scope of modification is relatively small, it is announced in the form of a partial revision announcement.

[0074] In step 202, each test report template is stored in the second folder. When a test request is received from the user to use the first test report template for testing, the applicable standard documents are determined according to the object to be tested of the first test report template. According to the update time tag of the first test report template and the time tags of the applicable standard documents, it is judged whether there is a newly released standard document after the first test report template is updated, that is, it is judged whether there is a standard document with a time tag later than the update time tag of the first test report template in the applicable standard documents; the user uses the client to test the object to be tested. Before starting the test, the user operates the client to request the test report template from the server, such as Figure 2 As shown, the user clicks "Detect", a detection box pops up, and after selecting the corresponding detection report template in the detection box, the client generates a detection request carrying the detection report template name and sends the detection request to the server.

[0075] The object to be detected according to the first detection report template is used to determine applicable standard documents, that is, to determine the standard documents that specify the object to be detected.

[0076] In step 203, if it is determined that there is a newly released standard document after the first test report template is updated, the latest standard document is used as the basis for updating the first test report template, and the user is reminded to update the first test report template; the latest standard document is the standard document with the latest time label applicable to the object to be tested of the first test report template.

[0077] In step 204, the first historical standard document matched by the first test report template is obtained, and the first historical standard document and the latest standard document are compared to obtain the update items of the latest standard document relative to the first historical standard document. The relevant information of the first test report template, the relevant information of the first historical standard document, the relevant information of the latest standard document and the update items are written into the revision record text, and the revision record text is stored in a third folder so that the user can update the first test report template based on the revision record text.

[0078] The relevant information of the first test report template includes the name and update time of the first test report template, the relevant information of the first historical standard document includes the name and release time of the first historical standard document, and the relevant information of the latest standard document includes the name and release time of the latest standard document. The first historical standard document matched by the first test report template is the standard document of the standard currently applied by the first test report template.

[0079] If it is determined that there is no newly released standard document after the first test report template is updated, the first test report template is sent to the client, and the client uses the first test report template to perform the test, such as Figure 3 As shown, the first test report template is loaded into the client, and the client allows the user to fill in the inspection and detection result column, conclusion column and remarks column in the template. In addition, the client also displays the test data of each test device connected to the terminal where the client is located in the device column on the right, wherein each test device is pre-connected to the corresponding port of the terminal by a person skilled in the art, and a first thread is provided for receiving and processing the test data output by each test device, and storing the processed test data in a preset memory address, each preset memory address corresponds to a test data of a test device, when the user double-clicks the inspection and detection result column in the template on the client to enter the binding mode, the test data of the test device in the device column on the right is selected, and the test data of the test device is bound to the inspection and detection result column, as shown. Figure 3 As shown, the test data name of the test device is displayed in the test result column after binding, such as Figure 3In {$WK5412}, after the user clicks elsewhere, the inspection and testing result bar returns to input mode. For the inspection and testing result bar that has been bound, the bound icon is displayed on the right side of the inspection and testing result bar.

[0080] The binding relationship is expressed as a mapping relationship between the preset memory address corresponding to the test data of the test device and the inspection and testing result column. The second thread traverses each preset memory address. If data exists in the corresponding preset memory address, the latest data in the preset memory address is inserted into the inspection and testing result column corresponding to the mapping relationship. The binding relationship is released after the user double-clicks the inspection and testing result column and deletes the bound device.

[0081] This embodiment manages standard documents by using time tags and matches the time tags with the update time tags of the test report template to confirm whether a new standard document has been released after the test report template is updated, thereby reminding the user to update the test report template according to the latest standard. In addition, this embodiment also generates a revision record text so that the user can directly confirm the updated items of the standard through the revision record text, and thus update the template according to the updated items.

[0082] In actual use, the document directory is established in the first file according to the time label of each standard document, such as Figure 4 As shown, specifically including:

[0083] In step 301, an XML file is created, and a first-level node, a second-level node, and a third-level node are generated in the XML file; wherein the second-level node is a child node of the first-level node, and the third-level node is a child node of the second-level node.

[0084] In step 302, the name of the object to be detected is stored in the first-level node, the time label and file name of the basic standard document applicable to the object to be detected are stored in the second-level node, and the time label and file name of the local revision announcement corresponding to the basic standard document are stored in the third-level node to obtain the document directory.

[0085] Among them, the local part in the document directory is as follows Figure 5 As shown, the name of the object to be detected is stored in <testobject>Under the element <name>element; the time tag of the basic standard document applicable to the object to be detected is stored in <standard>Under the element <time>In the element, the file name of the basic standard document applicable to the object to be detected is stored in <standard>Under the element <path>element; the time stamp of the local revision announcement is stored in the <revision>Under the element <time>The file name of the local revision announcement is stored in the <revision>Under the element <path>In the element, the document directory uses a tree structure and can be represented as follows Figure 6 This document directory can be used to quickly manage various standard documents and facilitate the calling and comparison of standard documents.

[0086] Wherein, the object to be tested according to the first test report template is determined to be applicable to each standard document, and the update time tag of the first test report template and the time tags of each applicable standard document are used to determine whether there is a newly released standard document after the first test report template is updated, such as Figure 7 As shown, specifically including:

[0087] In step 401, the object to be detected of the first detection report template is matched with each first-level node in the document directory, and the second-level nodes and third-level nodes under the successfully matched first-level nodes are traversed to obtain the time tags of each standard document applicable to the first detection report template.

[0088] In step 402, the time tags of each standard document applicable to the first test report template are compared with the update time tags of the first test report. If the comparison shows that the time tag of the corresponding standard document is later than the update time tag of the first test report template, it is determined that there is a newly released standard document after the first test report template is updated.

[0089] In actual application scenarios, since the test report template is often used, and for a certain product, the frequency of publishing its standard documents on third-party websites is low. Therefore, if it is detected that there is a newly released standard document after the first test report template is updated, the number of newly released standard documents detected is usually only 1. When the newly released standard document is a partial revision announcement, the content of the partial revision announcement can be extracted to obtain the update items of the latest standard document relative to the first historical standard document. When the newly released standard document is a basic standard document, it is necessary to compare the contents to obtain the update items. There are also some situations: the test report template has not been used and updated for a long time, resulting in multiple standard documents being released after the test report template is updated. At this time, it is also necessary to compare the contents, that is, obtain the first historical standard document matched by the first test report template, compare the first historical standard document with the latest standard document, and obtain the update items of the latest standard document relative to the first historical standard document, such as Figure 8 As shown, specifically including:

[0090] In step 501, a semantic understanding model is used to perform semantic understanding on the first historical standard document to output the various detection items and corresponding standard requirements of the first historical standard document; a semantic understanding model is used to perform semantic understanding on the latest standard document to output the various detection items and corresponding standard requirements of the latest standard document.

[0091] In actual use, the semantic understanding of the first historical standard document actually involves inputting each sub-section of the requirements section (i.e., the section titled "Requirements") in the first historical standard document into the semantic understanding model, so that the semantic understanding model outputs the corresponding test items and standard requirements. In some embodiments, the semantic understanding model also outputs information such as the test requirements, levels, and superior test items of the test items. The semantic understanding of the latest standard document and the semantic understanding process of the first historical standard document are based on the same concept and will not be repeated here. The semantic understanding model is obtained by those skilled in the art using a data set generated in advance using various standard items in some standard documents, and using the data set to train a basic semantic understanding model. The basic semantic understanding model can be a Bert model, which includes an input layer, multiple Embedding layers, multiple Transformer Encoders, and an output layer.

[0092] In step 502, each detection item in the first historical standard document is compared with each detection item in the latest standard document to determine detection items that are newly added or deleted in the latest standard document relative to the first historical standard document.

[0093] In step 503, for the test items newly added to the latest standard document relative to the first historical standard document, the test items, the corresponding standard requirements in the latest standard document, and the newly added labels are taken as update items.

[0094] In step 504, for the test items deleted from the latest standard document relative to the first historical standard document, the test items, the corresponding standard requirements in the first historical standard document, and the deletion labels are taken as update items.

[0095] In step 505, for the test items in the latest standard document that have not been deleted or newly added compared to the first historical standard document, the standard requirements of the test items in the first historical standard document are compared with the standard requirements of the test items in the latest standard document. If the comparison shows a difference, the test item, the corresponding standard requirements in the first historical standard document, the corresponding standard requirements in the latest standard document, and the revision label are taken as update items; the revision record text can be recorded in the form of a csv file, such as Figure 9 As shown, the first two lines of the file store the relevant information of the first test report template, the relevant information of the first historical standard document, and the relevant information of the latest standard document. The updated items are stored in the subsequent content, wherein the first item of each updated item stores the corresponding tag, i.e., the newly added tag (in Figure 9 "New" in the Figure 9 "delete" in the Figure 9 (represented as "Revision" in the .

[0096] Among them, the various test items and corresponding standard requirements of the first historical standard document are obtained by combining the first basic standard document matched by the first test report template (that is, the basic standard document whose release time is earlier than the update time of the first test report template and is closest to the update time of the first test report template) and the first local revision announcement output, and the various test items and corresponding standard requirements of the latest standard document are obtained by combining the latest basic standard document and the local revision announcement output corresponding to the latest standard basic document; the first local revision announcement is a local revision announcement whose time tag corresponding to the first basic standard document is earlier than the update time tag of the first test report template.

[0097] by Figure 10 For example, if the update time of the first test report template is 2009.10.01, the first historical standard document includes the content of GB 8965.1-2009 (i.e., the first basic standard document), and the latest standard document includes the content of GB8965.1-2020 and the first revision announcement of GB 8965.1-2020; if the update time of the first test report template is 2015.01.01, the first historical standard document includes the content of GB 8965.1-2009 (i.e., the first basic standard document) and the first revision announcement of GB8965.1-2009 (i.e., the first partial revision announcement), and the latest standard document includes the content of GB8965.1-2020 and the first revision announcement of GB 8965.1-2020; and so on. If the update time of the first test report template is 2016.11.01, the first historical standard document includes GB 8965.1-2009, GB 8965.1-2009 first revision announcement and GB 8965.1-2009 second revision announcement. The latest standard document includes the contents of GB 8965.1-2020 and GB 8965.1-2020 first revision announcement. If the update time of the first test report template is 2021.11.01, the first historical standard document includes the content of GB 8965.1-2020, and the latest standard document is directly the content of the first revision announcement of GB8965.1-2020. At this time, there is no need to compare, and the updated items can be obtained by extracting the first revision announcement of GB 8965.1-2020. If the second revision announcement of GB8965.1-2020 is released after the first revision announcement of GB 8965.1-2020 is released on 2023.11.14, the latest standard document is GB Extract the contents of the first revision announcement of GB8965.1-2020 and the second revision announcement of GB8965.1-2020, merge and remove duplicates, and obtain the updated items.

[0098] In an optional embodiment, the semantic understanding model is used to perform semantic understanding on the first historical standard document to output each detection item and the corresponding standard requirement of the first historical standard document, such as Figure 11 As shown, specifically including:

[0099] In step 601, each sub-chapter (specifically, the smallest sub-chapter, i.e., the smallest chapter carrying specific text content) in the requirements chapter (i.e., the chapter titled "Requirements") of the first basic standard document is used as an identification block, and a semantic understanding model is used to perform semantic understanding on each identification block to output the first test item and the corresponding first standard requirement of each identification block; in actual use, each identification block also carries the names of the parent chapters of the corresponding sub-chapter. For example, if there is a "Materials" chapter in the requirements chapter, and under the "Materials" chapter there is a "Fabrics" chapter, and under the "Fabrics" chapter there is a "Flame Retardancy" chapter, and the "Flame Retardancy" chapter carries specific text, then the "Flame Retardancy" chapter is used as the identification block, and the names of its parent chapters, including "Fabrics" and "Materials", are carried in the identification block and input into the semantic understanding model.

[0100] In step 602, a semantic understanding model is used to perform semantic understanding on the first partial revision announcement to output the newly added, deleted or revised inspection items and standard requirements of the first partial revision announcement relative to the first basic standard document.

[0101] In step 603, according to the chronological order of the time tags of each first partial revision announcement, the test items and standard requirements that are newly added, deleted or revised in each first partial revision announcement relative to the first basic standard document are comprehensively analyzed, and corresponding additions, deletions or revisions are made to each first test item and first standard requirement to obtain each test item and corresponding standard requirement of the first historical standard document.

[0102] In some embodiments, the user is only responsible for testing some of the test items specified in the standard document. For test items that do not need to be tested by the user, the test report template does not need to include them. For this situation, this embodiment also provides a preferred implementation method, such as Figure 12 As shown, the method further includes:

[0103] In step 701, each test item in the first test report template is read, and each test item in the first test report template is compared with each test item in the first historical standard document to determine the test items that are not adopted by the first test report template relative to the first historical standard document.

[0104] In step 702, the update items corresponding to the unused test items are marked with reference tags, and the reference tags are updated into the revision record text along with the update items, so that the user can determine whether to update the test items with discarded tags into the new test report template based on the reference items in the revision record text. Figure 13 As shown, the reference label is Figure 13 It is expressed as "whether the template is ignored". If the first test report template does not adopt the corresponding test item, "Ignore" will be added to the beginning of the line of the update item corresponding to the test item. Among them, for the test item that is not adopted but there is no corresponding update item, it can be considered that the standard has not changed the test item and the original non-adopted status can be maintained, so it will not be displayed in the revision record text.

[0105] The client supports the user to display the first test report template and the revision record text side by side, such as Figure 15 As shown, when the user Figure 2 After clicking the "OK" button in the detection box shown, the server executes step 202. If it is detected that the first detection report template is updated and there is a newly released standard document, step 203 is executed, that is, a pop-up window is displayed. Figure 15 The prompt box shown, the user clicks Figure 15 Click the "View Details" button to jump to the following Figure 16 The interface shown displays the first test report template and the revision record text side by side on the interface, and the first test report template supports user modification. After the user clicks "Confirm Template", the user-modified first test report template is sent to the second folder of the server, and the update time label of the first test report template is set to the time when the user updated it, so that the user can use the updated first test report template for testing in the future.

[0106] In some embodiments, the method further includes: upon receiving a user's request to generate a test report template, generating a new test report template according to the first object to be detected carried in the test report template generation request, specifically including:

[0107] According to the name of the first object to be detected, a search is performed on a third-party website to determine whether a corresponding applicable standard document exists. If a standard document applicable to the first object to be detected exists, a new test report template is generated based on the standard document. When the user clicks "Test" on the client, a pop-up window is displayed. Figure 2 After clicking the detection box shown, if the detection report template of the first object to be detected required by the user is not found in the selected detection report template column, click the "New Template" button on the right side of the selected detection report template column. The client responds to the button action, generates a detection report template generation request, and sends the detection report template generation request to the server. The detection report template options that can be selected in the selected detection report template column are generated based on the detection report templates stored in the document directory.

[0108] The process of generating a new test report template based on the standard document is a process of semantically understanding the standard document, extracting test items and standard requirements therefrom, and generating a test report template based on the test items and standard requirements. The process of searching from a third-party website for a corresponding applicable standard document based on the name of the first object to be tested is to search the document directory for a first-level node corresponding to the first object to be tested. If so, the applicable standard document is obtained by integrating the contents of the basic standard documents and local revision announcements corresponding to the latest second-level node under the first-level node and each third-level node under the latest second-level node.

[0109] If there is no standard document applicable to the first object to be detected, the name of the first object to be detected is converted into a word vector, and the second folder, the third-party website and the network are matched in sequence using the word vector in the order of priority of the second folder, the third-party website and the network until a new detection report template is generated by matching; that is, the detection report template in the server is matched first, and if the match fails, the third-party website is matched again, and finally the network is matched. The matching here can be understood as a similar match, not a complete match. The conversion of the name of the first object to be detected into a word vector can be obtained using a natural language processing model, such as a Word2Vec model and a GloVe model, which are still pre-trained for converting input sentences or words into dense vectors.

[0110] The new test report template is allowed to be used as the test report template for the first object to be tested after being confirmed or modified by the user. That is, after the corresponding test report template is generated or captured, it is first displayed to the user. After the user confirms that it can be used, it is added to the second folder and the relevant information is added to the document directory.

[0111] According to the priority order of the second folder, the third-party website and the network, the word vector is used to match the second folder, the third-party website and the network in sequence until a new detection report template is generated, such as Figure 14 As shown, specifically including:

[0112] In step 801, the distance between the word vector and the object to be detected of each detection report template in the second folder is calculated, and the object to be detected that is closest to the word vector is used as the second object to be detected. If the distance between the second object to be detected and the word vector is less than the preset distance, the detection report template of the second object to be detected is used as the new detection report template of the object to be detected; the distance between the second object to be detected and the word vector can be understood as the vector distance between the word vector corresponding to the name of the second object to be detected and the word vector corresponding to the name of the first object to be detected. The preset distance is obtained by those skilled in the art based on empirical analysis. When the distance between the word vector and the second object to be detected is less than the preset distance, it is considered that the name of the second object to be detected is similar to the name of the first object to be detected, so the detection report template of the second object to be detected can be applied as the template of the first object to be detected.

[0113] In step 802, if the distance between the second object to be detected and the word vector is greater than or equal to the preset distance, the distance between the word vector and the object to be detected in each standard document in the third-party website is calculated, and the object to be detected that is closest to the word vector is used as the third object to be detected. If the distance between the third object to be detected and the word vector is less than the preset distance, a new detection report template is generated based on the standard document of the third object to be detected.

[0114] In step 803, if the distance between the third object to be detected and the word vector is greater than or equal to the preset distance, the name of the first object to be detected is used as a search keyword to crawl a new detection report template from the network.

[0115] The client also supports reviewing historically generated test reports, specifically:

[0116] Integrate data from different sources (such as internal databases, public datasets, industry reports, etc.), summarize report audit issues, and form a fine-tuning training dataset to solve the problem of insufficient training data. Input the training dataset into the large language model for learning and training, and use preset prompt word rules for error correction in the early stage; whenever the accumulated data increase value exceeds the threshold (300 items), fine-tuning training is triggered. After fine-tuning, use the test set to test the model accuracy effect. When the accuracy of the new model increases, the new model is adopted; otherwise, the old model is still used. Structure the test report content into Json data, provide relevant APIs to the trained large model, and let the trained large model parse the report content by autonomously calling the API interface to output the audit results of the test report.

[0117] The process of integrating data from different sources, summarizing report review issues, and forming a fine-tuning training data set specifically includes two parts: data collection and data preprocessing.

[0118] During the data collection process, identify the required data types, such as text data (text descriptions in test reports), numerical data (measurement results), and categorical data (test item categories). Also determine the data source, which may be an internal database, file system, or external data provider. Data may come from digitized reports, scanned documents, or online forms. Finally, determine the data storage format. Common formats include PDF, Word documents, Excel spreadsheets, CSV files, or structured data in a database, allowing data to be collected and stored as needed.

[0119] The data preprocessing process specifically includes:

[0120] Data import: Use appropriate tools and techniques to import data, such as the Pandas library in Python for reading CSV and Excel files, or PDFPlumber or Tika for processing PDF documents.

[0121] Data cleaning: Remove invalid or erroneous data records. Handle missing values, perhaps by filling in missing values, deleting records, or using a model to predict missing values. Identify and correct abnormal values ​​or outliers.

[0122] Text data cleaning: For text data, natural language processing steps such as word segmentation, stop word removal, stemming or lemmatization are performed.

[0123] Data transformation: Convert non-numeric data into a format that the model can process, such as converting categorical data using One-Hot Encoding.

[0124] Normalization / Standardization: Normalize or standardize numerical data to eliminate the effects of different dimensions and speed up the model training process. Normalization usually scales the data to the interval [0,1], while standardization converts the data to have a mean of 0 and a standard deviation of 1.

[0125] Feature extraction: Extract useful features from raw data. For text data, methods such as Bag of Words, TF-IDF, or Word2Vec can be used. For numerical data, statistical features such as mean, median, and standard deviation may need to be calculated.

[0126] Feature selection: Reduce the number of features using statistical tests, model-based feature selection methods, or using dimensionality reduction techniques such as principal component analysis (PCA).

[0127] Data encoding: Encoding categorical features, such as converting non-numeric labels into numeric IDs or using encoding techniques such as label encoding or one-hot encoding.

[0128] Dataset partitioning: Divide the data into training, validation, and test sets to evaluate model performance and prevent overfitting.

[0129] Data balancing: If the number of samples for some classes in the dataset is insufficient, consider using oversampling or undersampling techniques to balance the dataset.

[0130] Data augmentation: For certain types of data (such as images or text), data augmentation techniques may be needed to increase the diversity of the data. Through these steps, the raw inspection report data is transformed into a clean, standardized, and characterized dataset suitable for machine learning model training, which helps improve the performance and generalization ability of the model.

[0131] Example 2:

[0132] like Figure 17 FIG. 1 is a schematic diagram of the structure of the test report audit management device according to an embodiment of the present invention. The test report audit management device according to this embodiment includes one or more processors 21 and a memory 22. Figure 17 A processor 21 is taken as an example.

[0133] The processor 21 and the memory 22 may be connected via a bus or other means. Figure 17 The bus connection is taken as an example.

[0134] The memory 22 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs and non-volatile computer executable programs, such as the test report review management method in Example 1. The processor 21 executes the test report review management method by running the non-volatile software programs and instructions stored in the memory 22.

[0135] The memory 22 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state memory device. In some embodiments, the memory 22 may optionally include a memory remotely located relative to the processor 21, and such remote memory may be connected to the processor 21 via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0136] The program instructions / modules are stored in the memory 22 and, when executed by the one or more processors 21 , execute the test report review management method in the above-mentioned embodiment 1.

[0137] It is worth noting that the information interaction, execution process, etc. between the modules and units within the above-mentioned devices and systems are based on the same concept as the processing method embodiment of the present invention. The specific content can be found in the description of the method embodiment of the present invention and will not be repeated here.

[0138] Those skilled in the art will understand that all or part of the steps in the various methods of the embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, which may include: read-only memory (ROM), random access memory (RAM), a disk or an optical disk, etc.

[0139] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.< / path> < / revision> < / time> < / revision> < / path> < / standard> < / time> < / standard> < / name> < / testobject>

Claims

1. A test report review management method, characterized in that: include: The server periodically pulls standard documents of the object to be inspected from a third-party website and stores the standard documents in a first folder. The standard documents carry time stamps, and a document directory is established in the first file based on the time stamps of each standard document. The standard documents include basic standard documents released at one or more time points and partial revision announcements of the corresponding basic standard documents. storing each test report template in a second folder, and upon receiving a test request from a user to perform a test using the first test report template, determining applicable standard documents based on the object to be tested of the first test report template, and determining whether there is a newly released standard document after the first test report template is updated based on the update time tag of the first test report template and the time tags of the applicable standard documents; If it is determined that there is a newly released standard document after the first test report template is updated, the latest standard document is used as the basis for updating the first test report template, and the user is reminded to update the first test report template; and, the first historical standard document matched by the first test report template is obtained, the first historical standard document and the latest standard document are compared to obtain the update items of the latest standard document relative to the first historical standard document, the relevant information of the first test report template, the relevant information of the first historical standard document, the relevant information of the latest standard document and the update items are written into a revision record text, and the revision record text is stored in a third folder, so that the user can update the first test report template based on the revision record text; The method further includes: upon receiving a user's request to generate a test report template, generating a new test report template according to the first object to be detected carried in the test report template generation request, specifically including: Searching a third-party website for a corresponding applicable standard document based on the name of the first object to be tested, and if a corresponding standard document applicable to the first object to be tested exists, generating a new test report template based on the standard document; If there is no standard document applicable to the first object to be detected, convert the name of the first object to be detected into a word vector, and use the word vector to match the second folder, the third-party website, and the network in order of priority until a match is found to generate a new test report template; The new test report template is allowed to be used as the test report template for the first object to be tested after being confirmed or modified by the user.

2. The test report review management method according to claim 1, characterized in that: The step of creating a document directory in the first file according to the time tags of each standard document specifically includes: Create an XML file, and generate a first-level node, a second-level node, and a third-level node in the XML file; wherein the second-level node is a child node of the first-level node, and the third-level node is a child node of the second-level node; The name of the object to be detected is stored in the first-level node, the time label and file name of the basic standard document applicable to the object to be detected is stored in the second-level node, and the time label and file name of the local revision announcement corresponding to the basic standard document is stored in the third-level node to obtain the document directory.

3. The test report review management method according to claim 2, characterized in that: The determining of applicable standard documents based on the object to be tested of the first test report template, and judging whether there is a newly released standard document after the first test report template is updated based on the update time tag of the first test report template and the time tags of the applicable standard documents, specifically includes: Match the object to be tested of the first test report template with each first-level node in the document directory, and traverse and access each second-level node and third-level node under the successfully matched first-level node to obtain the time tags of each standard document applicable to the first test report template; Compare the time tags of each standard document applicable to the first test report template with the update time tags of the first test report. If the comparison shows that the time tag of the corresponding standard document is later than the update time tag of the first test report template, it is determined that there is a newly released standard document after the first test report template is updated.

4. The test report review management method according to claim 1, characterized in that: The obtaining of the first historical standard document matched by the first test report template and comparing the first historical standard document with the latest standard document to obtain updated items of the latest standard document relative to the first historical standard document specifically includes: Perform semantic understanding on the first historical standard document using the semantic understanding model to output various test items and corresponding standard requirements of the first historical standard document; perform semantic understanding on the latest standard document using the semantic understanding model to output various test items and corresponding standard requirements of the latest standard document; Comparing each test item in the first historical standard document with each test item in the latest standard document to determine which test items are newly added or deleted in the latest standard document relative to the first historical standard document; For the test items newly added to the latest standard document relative to the first historical standard document, the test items, the corresponding standard requirements in the latest standard document, and the newly added labels are taken as update items; For the test items deleted from the latest standard document relative to the first historical standard document, the test items, the corresponding standard requirements in the first historical standard document, and the deletion labels are taken as update items; For the test items that have not been deleted or added to the latest standard document compared with the first historical standard document, the standard requirements of the test items in the first historical standard document are compared with the standard requirements of the test items in the latest standard document. If the comparison shows any differences, the test item, the corresponding standard requirements in the latest standard document, and the revision label are treated as updated items. Among them, the various test items and corresponding standard requirements of the first historical standard document are obtained by combining the first basic standard document and the first partial revision announcement matched by the first test report template, and the various test items and corresponding standard requirements of the latest standard document are obtained by combining the latest basic standard document and the local revision announcements corresponding to the latest standard basic document; the first local revision announcement is a local revision announcement whose time tag corresponding to the first basic standard document is earlier than the update time tag of the first test report template.

5. The test report review management method according to claim 4, characterized in that: The semantic understanding model is used to perform semantic understanding on the first historical standard document to output various detection items and corresponding standard requirements of the first historical standard document, specifically including: Each sub-chapter in the requirements chapter of the first basic standard document is regarded as an identification section, and a semantic understanding model is used to perform semantic understanding on each identification section to output a first test item and a corresponding first standard requirement for each identification section; Use the semantic understanding model to perform semantic understanding on the first partial revision announcement to output the test items and standard requirements that are newly added, deleted, or revised in the first partial revision announcement relative to the first basic standard document; According to the chronological order of the time labels of each first partial revision announcement, and taking into account the test items and standard requirements that have been newly added, deleted or revised in each first partial revision announcement relative to the first basic standard document, corresponding additions, deletions or revisions are made to each first test item and first standard requirement to obtain the test items and corresponding standard requirements of the first historical standard document.

6. The test report review management method according to claim 4, characterized in that: The method also includes: Reading each test item in the first test report template, and comparing each test item in the first test report template with each test item in the first historical standard document to determine the test items that are not adopted by the first test report template relative to the first historical standard document; The update items corresponding to the unadopted inspection items are marked with reference labels, and the reference labels are updated into the revision record text along with the update items, so that users can determine whether it is necessary to update the inspection items with discarded labels into the new inspection report template based on the reference items in the revision record text.

7. The test report review management method according to claim 1, characterized in that: The method of sequentially matching the second folder, the third-party website, and the network using the word vector according to the priority order of the second folder, the third-party website, and the network until a new detection report template is generated by matching the second folder, the third-party website, and the network specifically includes: Calculate the distance between the word vector and the object to be detected of each test report template in the second folder, and use the object to be detected that is closest to the word vector as the second object to be detected. If the distance between the second object to be detected and the word vector is less than a preset distance, use the test report template of the second object to be detected as the new test report template for the object to be detected; If the distance between the second object to be detected and the word vector is greater than or equal to the preset distance, then the distance between the word vector and the object to be detected in each standard document on the third-party website is calculated, and the object to be detected that is closest to the word vector is used as the third object to be detected. If the distance between the third object to be detected and the word vector is less than the preset distance, a new test report template is generated according to the standard document of the third object to be detected; If the distance between the third object to be detected and the word vector is greater than or equal to the preset distance, the name of the first object to be detected is used as a search keyword to crawl a new detection report template from the network.

8. A non-volatile computer storage medium, characterized in that The computer storage medium stores computer-executable instructions, which are executed by one or more processors to complete the test report review management method described in any one of claims 1-7.

9. A test report review management device, characterized in that: The device comprises: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the processor to execute the test report review management method described in any one of claims 1-7.

Citation Information

Patent Citations

  • Synchronization method based on nuclear power plant document template management

    CN117851360A

  • Discovering and Updating Templates

    US20090172005A1