Detection report auditing management method and device

Through regularly pulling standard documents from a third -party website and using time label management, the problem of renewal of standard documents and test report templates in existing technologies rely on manual operation, realizing automated management, and improving process efficiency and accuracy.

CN119378516AActive Publication Date: 2025-01-28SINOSTEEL WUHAN SAFEY&ENVIRONMENT PROTECTION RES
View PDF 6 Cites 0 Cited by

Patent Information

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

Smart Images

  • Figure CN119378516A_ABST
    Figure CN119378516A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of detection, and provides a detection report auditing management method and device. The method comprises the following steps: regularly pulling a standard document of a to-be-detected object, wherein the standard document carries a time label; according to the to-be-detected object of the first detection report template, determining each applicable standard document, and according to the update time label of the first detection report template and the time label of each applicable standard document, judging whether a newly published standard document exists after the first detection report template is updated; and if it is judged that a newly published standard document exists after the first detection report template is updated, reminding a user to update the first detection report template. According to the method and the device, the standard document is managed by using the time label, and the time label is matched with the update time label of the detection report template to confirm whether a new standard document is released after the detection report template is updated, so that a user can be reminded 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 testing technology, and in particular to a testing report review management method and device. Background Art

[0002] The core goal of product quality standards and their test method standards is to ensure that products meet the established quality level and to clarify a series of performance requirements that products must meet. With the rapid development of science and technology, consumers' expectations for product performance are constantly increasing, and technical specifications have become more stringent, which has prompted the relevant standards to be continuously updated to adapt to new requirements. In terms of product technical indicators, some mandatory national standards and laws and regulations stipulate mandatory indicators that must be followed. These are the guidelines that companies must follow when producing and selling products.

[0003] The performance indicators of products are usually recorded in detail in officially released standard documents. Therefore, product testing is usually carried out based on these documents to verify whether the product meets the standards specified in the documents. Accordingly, the report templates used for product testing also need to be designed based on these standard documents to ensure the standardization of the testing process and the accuracy of the report. Once the new version of the standard document is implemented, the old version of the standard document will no longer apply. Similarly, the test report template designed according to the old version of the standard document will no longer be fully applicable to the new version of the standard document.

[0004] At present, standard document search and test report template update mainly rely on manual operation, which leads to delays in the process to a certain extent, and its accuracy and compliance are difficult to fully guarantee. In view of this, overcoming the defects of the prior art is an urgent problem to be solved in the field of this technology. 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 solution: In a first aspect, the present invention provides a test report review management method, comprising: The server periodically pulls standard documents of the object to be detected from a third-party website, stores the standard documents in a first folder, the standard documents carry a time tag, and establishes a document directory in the first file according to the time tag of each standard document; wherein 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 use the first test report template for testing, determining applicable standard documents according to 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 according to 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, 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 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.

[0007] Preferably, the step of establishing 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 first-level node is a child node of the second-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.

[0008] Preferably, the determining of applicable standard documents according to 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 according to the update time label of the first test report template and the time labels of the applicable standard documents, specifically includes: Match the object to be detected of the first detection 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 label of each standard document to which the first detection report template is applicable; 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.

[0009] Preferably, 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: Using the semantic understanding model to perform semantic understanding on the first historical standard document, so as to output various detection items and corresponding standard requirements of the first historical standard document; using the semantic understanding model to perform semantic understanding on the latest standard document, so as to output various detection items and corresponding standard requirements of the latest standard document; Compare each test item in the first historical standard document with each test item in the latest standard document to determine the test items that are added or deleted in the latest standard document relative to the first historical standard document; For the test items newly added in 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 that there are differences, the test items, the corresponding standard requirements in the latest standard document, and the revision label are taken as update 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 matched by the first test report template and the first partial 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 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.

[0010] Preferably, the semantic understanding of the first historical standard document using a semantic understanding model to output various test items and corresponding standard requirements of the first historical standard document specifically includes: Each sub-chapter in the requirement chapter of the first basic standard document is taken as an identification section, and a semantic understanding model is used to perform semantic understanding on each identification section to output a first detection 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, so as 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 the first partial revision announcements, and based on the newly added, deleted or revised test items and standard requirements in the first partial revision announcements relative to the first basic standard document, corresponding additions, deletions or revisions are made to the first test items and first standard requirements to obtain the test items and corresponding standard requirements of the first historical standard document.

[0011] Preferably, the method further comprises: Read each test item in the first test report template, and compare 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 tags, and the reference tags 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 tags into the new inspection report template based on the reference items in the revision record text.

[0012] 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: According to the name of the first object to be tested, searching from a third-party website whether there is a corresponding applicable standard document, and if there is a standard document applicable to the first object to be tested, generating a new test report template according to 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 new test report template is generated by matching; Among them, after the new test report template is confirmed or modified by the user, it is allowed to be used as the test report template of the first object to be tested.

[0013] Preferably, the second folder, the third-party website, and the network are matched in sequence using the word vector according to the priority order of the second folder, the third-party website, and the network until a new test report template is generated by matching, specifically including: Calculate the distance between the word vector and the object to be detected of each detection 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 detection report template of the second object to be detected as a new detection 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, 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 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 the search keyword to fetch a new detection report template from the network.

[0014] In a second aspect, the present invention further provides a test report review management device, which is used to implement the test report review management method described in the first aspect, and the device includes: 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.

[0015] 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.

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

[0017] 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.

[0018] The present invention manages standard documents by using time tags and matches the time tags with the update time tags of the test report templates to confirm whether a new standard document is 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

[0019] In order 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, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 It is a flow chart of a test report review management method provided by an embodiment of the present invention; Figure 2 It is a schematic diagram of a test report review management method provided by an embodiment of the present invention; Figure 3 It is a schematic diagram of a test report review management method provided by an embodiment of the present invention; Figure 4 It is a flow chart of a test report review management method provided by an embodiment of the present invention; Figure 5 It is a schematic diagram of a document directory in a test report review management method provided by an embodiment of the present invention; Figure 6 It is a schematic diagram of a document directory in a test report review management method provided by an embodiment of the present invention; Figure 7 It is a flow chart of a test report review management method provided by an embodiment of the present invention; Figure 8 It is a flow chart of a test report review management method provided by an embodiment of the present invention; Fig. 9 It is a schematic diagram of a revision record text in a test report review management method provided by an embodiment of the present invention; Fig.10 It is a schematic diagram of a test report review management method provided by an embodiment of the present invention; Fig.11 It is a flow chart of a test report review management method provided by an embodiment of the present invention; Fig.12 It is a flow chart of a test report review management method provided by an embodiment of the present invention; Fig.13 It is a schematic diagram of a revision record text in a test report review management method provided by an embodiment of the present invention; Fig.14 It is a flow chart of a test report review management method provided by an embodiment of the present invention; Fig.15It is a schematic diagram of a test report review management method provided by an embodiment of the present invention; Fig.16 It is a schematic diagram of a test report review management method provided by an embodiment of the present invention; Fig.17 It is a schematic diagram of the architecture of a test report review management device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with 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.

[0022] Unless the context requires otherwise, throughout the specification and claims, the term "including" is to be interpreted as open inclusion, that is, "including, but not limited to". In the description of the specification, the terms "one embodiment", "some embodiments", "exemplary embodiments", "examples", "specific examples" or "some examples" and the like are intended to indicate that 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.

[0023] In the description of the present invention, the terms "first" and "second" are used only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. 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, the meaning of "multiple" is two or more. In addition, for example, the same type of nouns may be described as two independent individuals by adding "A" and "B" at the end. In this case, the corresponding features defined as "A" and "B" are only used to distinguish the same type of individuals for description purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features.

[0024] 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.

[0025] 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 the errors associated with the measurement of the particular quantity (i.e., the limitations of the measurement system).

[0026] 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.

[0027] Embodiment 1: Embodiment 1 of the present invention provides a test report review management method, such as Figure 1 As shown, including: In step 201, the server periodically pulls the standard document of the object to be detected from the third-party website, stores the standard document in the first folder, carries a time tag in the standard document, and establishes a document directory in the first file according to the time tag of each standard document; wherein the standard document includes a basic standard document released at one or more time points and a partial revision announcement of the corresponding basic standard document; wherein the server periodically pulls the standard document of the object to be detected from the third-party website can be set by a technician in this field, and pulls the standard document 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 a pull action whenever a user opens the test report review management application, and the pull action can actually be understood as updating the first folder according to the third-party website, so as to obtain the standard document updated by the third-party website into the first folder. The third-party website can be managed by the publisher of the standard document.

[0028] Normally, standard documents do not take effect immediately after being released, but require a transition period for relevant parties to make adjustments and preparations before they are officially implemented. Therefore, for standard documents, there is a clear release date and a subsequent implementation date. The time tag is usually a tag that represents the release time, and the document directory is used to manage various standard documents.

[0029] The basic standard document can be understood as the comprehensive provisions for each standard, and the partial revision announcement can be understood as the 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.

[0030] In step 202, each test report template is stored in the second folder. When a test request from a user to use the first test report template for testing is received, the applicable standard documents are determined according to the object to be tested of the first test report template, and according to the update time tag of the first test report template and the time tags of the applicable standard documents, it is determined whether there is a newly released standard document after the first test report template is updated, that is, it is determined 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, and 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.

[0031] The applicable standard documents are determined according to the object to be detected in the first detection report template, that is, the standard document that specifies the object to be detected is determined.

[0032] 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.

[0033] 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, 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 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.

[0034] 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.

[0035] 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 for testing. 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, and the client also displays the test data of each test device connected to the terminal where the client is located in the right device column, wherein each test device is pre-connected to the corresponding port of the terminal by a technician in this field, 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 in the client to enter the binding mode, the test data of the test device in the right device column is selected, and the test data of the test device is bound to the inspection and detection result column, as shown in FIG. Figure 3 As shown, the test data name of the test device is displayed in the test result column after binding, such as Figure 3 In {$WK5412}, after the user clicks other positions, the inspection and testing result bar returns to the 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.

[0036] 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.

[0037] This embodiment manages standard documents by using time tags and matches the time tags with the update time tags of the test report templates to confirm whether new standard documents are released after the test report templates are updated, thereby reminding users to update the test report templates according to the latest standards. In addition, this embodiment also generates revision record text so that users can directly confirm the updated items of the standards through the revision record text, thereby updating the template according to the updated items.

[0038] In actual use, the document directory is established in the first file according to the time tags of each standard document, such as Figure 4 As shown, specifically including: 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 first-level node is a child node of the second-level node, and the third-level node is a child node of the second-level node.

[0039] In step 302, the name of the object to be detected is stored in the first-level node, the time tag 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 tag 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.

[0040] 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 stamp 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, making it easier to call and compare standard documents.

[0041] Wherein, the applicable standard documents are determined according to the object to be tested of the first test report template, and whether there is a newly released standard document after the first test report template is updated is judged according to the update time label of the first test report template and the time label of each applicable standard document, such as Figure 7 As shown, specifically including: 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 and accessed to obtain the time tags of each standard document to which the first detection report template applies.

[0042] 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.

[0043] 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 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 the release of multiple standard documents 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, to obtain the update items of the latest standard document relative to the first historical standard document, such as Figure 8 As shown, specifically including: 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.

[0044] Among them, in actual use, the semantic understanding of the first historical standard document is actually to input each sub-chapter in the requirement chapter (i.e., the chapter 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 test requirements, levels, and superior test items of the test items are also output. 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 a technician in this field 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.

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

[0046] In step 503, for the newly added test items in 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.

[0047] 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 together as update items.

[0048] In step 505, for the test items in the latest standard document that have not been deleted or 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 differences, 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 Fig. 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, and the update items are stored in the subsequent content, wherein the first item of each update item stores the corresponding tag, that is, the newly added tag (in Fig. 9 "Added" in ), deleting tags (in Fig. 9 "delete" in the Fig. 9 "Revision" in the .

[0049] 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 (i.e., 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 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.

[0050] by Fig.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 The latest standard document includes the contents of the first revision announcement of GB 8965.1-2009 and the second revision announcement of GB 8965.1-2009. The latest standard document includes the contents of GB 8965.1-2020 and the first revision announcement of GB 8965.1-2020; if the update time of the first test report template is 2021.11.01, the first historical standard document includes the contents of GB 8965.1-2020, and the latest standard document is directly the contents of the first revision announcement of GB8965.1-2020. At this time, there is no need to compare, and the update 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.

[0051] In an optional implementation, the semantic understanding model is used to perform semantic understanding on the first historical standard document to output each test item and the corresponding standard requirements of the first historical standard document, such as Fig.11 As shown, specifically including: In step 601, each sub-chapter (specifically, the smallest sub-chapter, i.e., the smallest chapter carrying specific text content) in the requirement chapter (i.e., the chapter titled "Requirements") of the first basic standard document is taken as an identification block, and a semantic understanding model is used to perform semantic understanding on each identification block to output the first detection 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 "material" chapter in the requirement chapter, and there is a "fabric" chapter under the "material" chapter, and there is a "flame retardant" chapter under the "fabric" chapter, and the "flame retardant" chapter carries specific text, then the "flame retardant" chapter is taken as the identification block, and the names of its parent chapters, including "fabric" and "material", are carried in the identification block and input into the semantic understanding model.

[0052] 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 in the first partial revision announcement relative to the first basic standard document.

[0053] 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 considered, 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.

[0054] 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 cover them. In view of this situation, this embodiment also provides a preferred implementation method, such as Fig.12 As shown, the method further includes: 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.

[0055] 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 according to the reference items in the revision record text. Fig.13 As shown, the reference label is Fig.13 It is expressed as "whether the template is ignored". If the first test report template does not adopt the corresponding test item, "Ignore" is 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 is not displayed in the revision record text.

[0056] The client supports the user to display the first test report template and the revision record text side by side, such as Fig.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 there is a newly released standard document after the first detection report template is updated, step 203 is executed, that is, a pop-up window is displayed as shown in FIG. Fig.15 The prompt box shown, the user clicks Fig.15 Click the "View Details" button to jump to the following Fig.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's 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 later.

[0057] In some embodiments, the method further includes: upon receiving a user's request for generating 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: According to the name of the first object to be detected, a search is performed on a third-party website to determine whether there is a corresponding applicable standard document. If there is a standard document applicable to the first object to be detected, a new test report template is generated according to the standard document; wherein, the user clicks "Detection" on the client to pop up a pop-up window such as Figure 2 After 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 column for selecting detection report templates, click the "New Template" button on the right side of the column for selecting detection report templates. 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 column for selecting detection report templates are generated based on the detection report templates stored in the document directory.

[0058] The process of generating a new test report template based on the standard document is to understand the semantics of the standard document, extract the test items and standard requirements therefrom, and generate the test report template based on the test items and standard requirements. The process of searching from a third-party website whether there is a corresponding applicable standard document based on the name of the first object to be detected is to search whether there is a first-level node corresponding to the first object to be detected in the document directory. If so, the applicable standard document is obtained by integrating the basic standard documents and the contents of the local revision announcement corresponding to the latest second-level node under the first-level node and each third-level node under the latest second-level node.

[0059] 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 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; 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, where the matching 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, etc. These models are still pre-trained and used to convert input sentences or words into dense vectors.

[0060] Wherein, after the new test report template is confirmed or modified by the user, it is allowed to be used as the test report template of the first object to be detected. That is, after the corresponding test report template is generated or captured, it is first displayed to the user, and 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.

[0061] 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 by matching, such as Fig.14 As shown, specifically including: In step 801, the distance between the word vector and the objects to be detected in 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.

[0062] 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 objects 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 according to the standard document of the third object to be detected.

[0063] 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 fetch a new detection report template from the network.

[0064] The client also supports reviewing historically generated test reports, specifically: Integrate data from different sources (such as internal databases, public data sets, industry reports, etc.), summarize report audit issues, form a fine-tuning training data set, and solve the problem of insufficient training data. Input the training data set into the large language model for learning and training, and use the preset prompt word rules for error correction in the initial stage; whenever the accumulated data increase value exceeds the threshold (300 items), trigger fine-tuning training. After fine-tuning, use the test set to test the model accuracy effect. When the accuracy of the new model increases, use the new model, otherwise use the old model. Structure the content of the test report 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.

[0065] Among them, the integration of data from different sources, summarizing report audit issues, and forming a fine-tuning training data set specifically includes two parts: data collection and data preprocessing.

[0066] In the data collection process, identify the required data types, such as text data (text description of the test report), numerical data (measurement results), categorical data (test item categories), etc. And determine the source of the data, which may be an internal database, file system, or external data provider. The data may come from digitized reports, scanned documents, or online forms. Finally, determine the storage format of the data. Common formats include PDF, Word documents, Excel spreadsheets, CSV files, or structured data in databases, so as to collect and store data as needed.

[0067] The data preprocessing process specifically includes: Data import: Import data using appropriate tools and techniques, such as the Pandas library in Python for reading CSV and Excel files, or PDFPlumber or Tika for processing PDF documents; Data cleaning: Remove invalid or erroneous data records. Handle missing values, perhaps by filling in missing values, deleting records, or using models to predict missing values. Identify and correct abnormal values ​​or outliers.

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

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

[0070] 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 [0,1] interval, while standardization converts the data to a mean of 0 and a standard deviation of 1.

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

[0072] 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).

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

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

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

[0076] Data augmentation: For some 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 original 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.

[0077] Embodiment 2: like Fig.17 , which is a schematic diagram of the structure of the test report review management device according to an embodiment of the present invention. The test report review management device according to this embodiment includes one or more processors 21 and a memory 22. Fig.17 A processor 21 is taken as an example.

[0078] The processor 21 and the memory 22 may be connected via a bus or other means. Fig.17 The example of connecting through bus is taken in the following.

[0079] 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.

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

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

[0082] 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 contents can be found in the description of the method embodiment of the present invention and will not be repeated here.

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

[0084] 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 principle of the present invention should be included in the protection scope 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 detected from a third-party website, stores the standard documents in a first folder, the standard documents carry a time tag, and establishes a document directory in the first file according to the time tag of each standard document; wherein 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 use the first test report template for testing, determining applicable standard documents according to 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 according to 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, 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 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.

2. The test report review management method according to claim 1, characterized in that: The step of establishing 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 first-level node is a child node of the second-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 according to the object to be detected of the first test report template, and judging whether there is a newly released standard document after the first test report template is updated according to 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 label of each standard document to which the first test report template is applicable; 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.

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: Using the semantic understanding model to perform semantic understanding on the first historical standard document, so as to output various detection items and corresponding standard requirements of the first historical standard document; using the semantic understanding model to perform semantic understanding on the latest standard document, so as to output various detection items and corresponding standard requirements of the latest standard document; Compare each test item in the first historical standard document with each test item in the latest standard document to determine the test items that are added or deleted in the latest standard document relative to the first historical standard document; For the test items newly added in 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 that there are differences, the test items, the corresponding standard requirements in the latest standard document, and the revision label are taken as update 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 matched by the first test report template and the first partial 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 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 requirement chapter of the first basic standard document is taken as an identification section, and a semantic understanding model is used to perform semantic understanding on each identification section to output a first detection 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, so as 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 the first partial revision announcements, and based on the newly added, deleted or revised test items and standard requirements in the first partial revision announcements relative to the first basic standard document, corresponding additions, deletions or revisions are made to the first test items and first standard requirements 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: Read each test item in the first test report template, and compare 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 tags, and the reference tags 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 tags 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 further includes: 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 including: According to the name of the first object to be tested, searching from a third-party website whether there is a corresponding applicable standard document, and if there is a standard document applicable to the first object to be tested, generating a new test report template according to 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 new test report template is generated by matching; Among them, after the new test report template is confirmed or modified by the user, it is allowed to be used as the test report template of the first object to be tested.

8. The test report review management method according to claim 7, 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, specifically includes: Calculate the distance between the word vector and the object to be detected of each detection 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 detection report template of the second object to be detected as a new detection 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, 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 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 the search keyword to fetch a new detection report template from the network.

9. 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-8.

10. 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-8.

Citation Information

Patent Citations

  • Express sheet template management and use method, device and system

    CN111610943A

  • Knowledge graph-based oil and gas reserve report generation method, device and equipment

    CN117172228A

  • Synchronization method based on nuclear power plant document template management

    CN117851360A

  • Method for generating different building carbon emission reports for different objects

    CN117951539A

  • Data analysis report generation method based on large language model

    CN118626523A