Test document generation system and method thereof
By introducing management software modules, document fragment library modules and document template library modules into the software test document generation system, the software and manual collaboration and automated template fragment generation are solved, and the problems of low document generation efficiency, inconsistent style and difficult cross-department collaboration in the existing technology are solved, and efficient, accurate and consistent document generation is achieved.
Patent Information
- Application Number
- CN202411806949.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-05-06
AI Technical Summary
The existing technology has problems such as data coverage, difficulty in manual review, low work efficiency, time-consuming and labor-consuming in document generation, inconsistent document styles and cross-departmental collaboration difficulties in software test documents generation.
It provides a test document generation system, which realizes software and manual collaborative work, automates template fragment generation, supports repeated modification, integrated proofreading and review systems, and ensures document quality and consistency.
Improves the efficiency and accuracy of document generation, reduces manual intervention and error rates, ensures document consistency and integrity, and is suitable for large software testing projects and cross-departmental collaboration.
Smart Images

Figure CN119938516A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of software development and software testing, and in particular to a test document generation system and method thereof. Background Art
[0002] In order to ensure the adequacy and effectiveness of the test, the requirements for the test documents must be manually determined and reviewed. Therefore, there will be data coverage problems. When the software tool repeatedly enters structured data, it will overwrite the results of the previous manual editing, which will easily lead to the loss of previous work results. In addition, on the timeline, the manual cannot accurately identify whether the result document has been modified or not, which may lose the adequacy of the test process document. Secondly, it is difficult to accurately control the granularity of structured data import, so that manual adjustments to some structured data content are easily overwritten by the next import result, and manual perception is not possible. Furthermore, in order to ensure the reliability of the generated documents, the existing document writing scheme may have cumbersome operating procedures and technical means, resulting in high work repetitiveness and low work efficiency. The use of structured data entry software and document writing tools cannot be coordinated and cannot perceive each other, resulting in poor process compatibility, which limits more flexible scenario applications. The manually edited data and structured data are highly correlated, and the overall test document writing and generation scalability is also low, which also increases the probability of errors. The generation of existing technical documents is highly dependent on manual labor, which consumes a lot of manpower and time, and also leads to information lag when manual work is not done. Everyone has different writing ideas, and there may be a lack of unified format standards, resulting in inconsistent document styles, and document sharing and communication are restricted in team collaboration. Document files are used in multiple places, which may lead to data loss and make document review and management more difficult. Summary of the invention
[0003] In view of the problems existing in the prior art, the present invention provides a test document generation system and method thereof, which is used to manage the structured data required for the software testing process recorded in the software database and the test process data set information manually edited by the disk storage, and automatically generates office documents with certain format requirements in a human-computer collaborative manner. It can achieve the following purposes:
[0004] (1) Collaborative work without interference: The collaborative work between software-generated structured data and manual document modification is realized to ensure that the content and layout do not interfere with each other;
[0005] (2) Improved work efficiency: Through non-interference in collaborative work, support for repeated modifications, and automatic templated fragments, the efficiency of document editing and generation can be greatly improved, and repetitive work can be reduced;
[0006] (3) Support for repeated modifications: software tools and manual modification of the same document are supported, and the modifications of the two will not overwrite each other;
[0007] (4) Document-specific areas: The software tool can flexibly switch the modification permissions of the document area at any time, and the automated permissions of the document area can be manually controlled;
[0008] (5) Automatic templated fragments: Document fragments make it possible to modify permission tags without affecting the document layout or occupying the document content. There is no need for manual deletion, which helps to simplify the document editing process and reduce the tediousness of manual document editing operations.
[0009] (6) Automatic proofreading and review: Integrated proofreading and review system, automatically checks and prompts document area and field errors, improving document quality and accuracy;
[0010] (7) Data completion: When the data required in the template does not exist in the corresponding field in the database, it can be quickly completed through document fragments to avoid missing fields in the template document without changing the input software and database design;
[0011] (8) Diversified document generation: Different document template libraries can be used to generate test documents that meet multiple different requirements at one time.
[0012] The technical solution of the present invention is: a test document generation system, including a management software module, a document fragment library module and a document template library module;
[0013] The document fragment library module includes a basic document fragment template, and provides a series of data models and fragment templates required for generating document fragments; the document fragment is a certain part of a document, and is used to partially or completely replace a document area in the document template library module in the document template library module;
[0014] The document template library module is a document template that instructs software tools on how to edit. The document template is used to generate the final document. When generating the final document, after selecting the document template that meets the adaptation project, the management software module will scan the document areas in the document template one by one; the document area contains its own attributes and name, and the management software module will insert or replace the document fragment according to the read-only attribute of the document area. If the read-only attribute of the area is in the editing state, the automation program will search the document fragment with the same name or identifier in the document fragment library module according to the area name and identifier, and the matched document fragment will be copied into the document area; if the document fragment library module does not have the document fragment required for the document area, the management software module will record and give a visual prompt, and continue to process the next area; if the read-only attribute of the document area is manually adjusted to be non-editable, the next document area will continue to be processed; when there is no matching document fragment in the document area, the user can manually add a fragment or use a basic fragment in the document fragment library, and the document generation will be re-examined to ensure that the content of the final generated document is not defaulted;
[0015] If there are multiple field identifiers in the document area in the document template library module, the management software module will scan the field identifiers in the document area one by one, fill the structured field data content in the database into the field identifier position, and delete the field identifier; if the field identifier does not exist in the database, the management software module will record the information in the generation log and visually prompt the user to continue processing the remaining field content in the document area;
[0016] During the final document generation process, the management software module will retain the document area and replace the field identifiers within and outside the area; and during the final document generation process, the management software module will proofread and review the generated document, and enter the key process information of field search and replacement and fragment matching in the entire process into the document review record for manual review and confirmation.
[0017] The database of the management software module is used to store structured data, and provides structured data entry and automatic import functions in process management, as well as structured data required for replacing field identifiers in document areas in document templates during document generation; the database stores field data in a standardized manner, and the management software module associates all structured information of the test items in a tree-like directory; the user only needs to enter the information during the test, and the system will automatically organize and store it;
[0018] In the process of generating documents, the management software module will search the database according to the field identifier or name, and replace the field identifier in the area with the searched field data;
[0019] In the process of generating documents, each document area may contain multiple identifiers, and the names of these identifiers correspond to the field names in the database; the software tool will copy the content of the field in the database to the location of the corresponding identifier; a region may contain multiple such identifiers, and each identifier will be correctly replaced with the content of the corresponding database field, which can reduce the time and error rate of manual data entry;
[0020] The final document is a document edited by software tools and humans in collaboration. The software system will record the process of each document generation, including multiple final generated documents.
[0021] Furthermore, in the document fragment library module, users can manually modify the basic document fragment template to generate a set of common document fragments; users can also edit document fragments according to different project requirements to generate customized document fragments.
[0022] Furthermore, the document fragments can be automatically generated from basic document fragments, or can be added or edited by users, making them highly customizable or extensible.
[0023] Furthermore, the document template library module also includes multiple template contents, and different templates for different documents can be customized to facilitate the generation of final documents for different projects.
[0024] Furthermore, in the document template library module, multiple document areas are defined, each of which has two attributes: a name attribute and a read-only attribute; if the read-only attribute is in an editable state, the software tool can modify the content in the area; and if the read-only attribute is in an uneditable state, the software tool will not be able to modify the content in the area at the stage of generating a document according to the template; at this stage, the software tool also cannot modify the content outside the area, and a document template may contain multiple such areas; the software tool searches for document fragments with the same attribute in the document fragment library based on the name attribute of the area, and copies the searched content to the corresponding area; in this way, the user can flexibly choose whether to allow the software tool to modify the content in a specific area according to their own needs. This mechanism provides more flexibility and precision, making the document generation process more efficient and controllable.
[0025] The present invention also provides a test document generation method, the specific steps are as follows:
[0026] Step 1: The tester enters the management software module page through the web system, creates a project in the management software module, and quickly enters the tested device, design requirements, test requirements, test process data, and test result information through the software. All of this data will be entered into the database; the software system has many quick entry functions, and the test data generated by the test activities of the tester is more efficient and faster than directly writing in the document;
[0027] Step 2: Testers can write document snippets on the management software module web system or edit document snippets in the document snippet library module. Using the management software module can better manage the document snippet library module, which is more controllable and easier to operate than manually writing documents.
[0028] Step 3: When the document fragment library module generates the test product document, you can select document fragments with the same fragment but different contents, and you can also write the document fragments directly on the hard disk. The management software module can correctly identify the manually written part and the software management part, so that they are not related to each other. This is more flexible than pure manual writing and prevents the confusion of manual writing after there are too many documents.
[0029] Step 4. The management software module has a separate test product document generation process. The document fragments can be generated into a document template library module by merging document areas according to the set strategy. The document area can be adjusted manually in the word software. The adjustment strategy is divided into the use of basic document fragments, the combination of word editing and web management software, and the overall use of word software editing;
[0030] Step 5. The document template library module is divided into two layers. The first layer is the final document template, which includes document fragments and document fields. The second layer is the document fragment template, which includes the fields required for the text segment and the user-defined template content. Testers can use structured data to fill in test data, or they can directly modify the template document. This reduces the error rate when combining and segmenting documents compared to manual writing.
[0031] Step 6: Generate the final document through the document template library module. Users can freely choose the document template library module or manually write the document to achieve the effect of human-computer collaborative generation of the final document. Fully avoid the problem of inconsistency between the document and the actual document.
[0032] The beneficial effects of the present invention are:
[0033] (1) Collaboration and non-interference: By separating the structured data generated by the software from the manually modified documents, the content and layout of the two are ensured to not interfere with each other. This design improves the flexibility and accuracy of document generation.
[0034] (2) Improve work efficiency: Through automated templated snippets and repeated modification support, repetitive work is reduced and the efficiency of document editing and generation is improved. Testers can quickly enter test data through the quick entry function, which is more efficient than writing directly in the document.
[0035] (3) Flexible document fragment management: The document fragment library allows users to select and edit document fragments according to project requirements, providing higher controllability and operability. The management software can identify the manually written and software managed parts to prevent document confusion.
[0036] (4) Automatic proofreading and review: The integrated proofreading and review system automatically checks document area and field errors, improving document quality and accuracy.
[0037] (5) Data completion and diversified document generation: When the data required in the template does not exist in the database, the system can quickly complete it through document fragments to avoid missing fields. Users can use different document template libraries to generate test documents that meet multiple different requirements.
[0038] (6) Human-machine collaborative generation: Through the combination of document templates and management software, users can freely choose document templates or manually write documents to ensure that the generated document content is consistent and accurate.
[0039] These advantages significantly improve the efficiency, flexibility and accuracy of document generation by optimizing software structure and functions, and reduce the necessity and error rate of manual intervention.
[0040] The present invention can be applied to large-scale software testing projects, where the testing team needs to generate a large number of test documents to record the testing process and results. Using the system, testers can quickly enter test data and requirements through the management software and automatically generate structured test documents. The document fragment library allows the team to select appropriate fragments according to project requirements to ensure the consistency and integrity of the document. The automatic proofreading function helps identify and correct errors in the document and improve the quality of the document.
[0041] The present invention is also applicable to cross-departmental collaborative projects. A project requires the collaboration of multiple departments, and each department is responsible for different test modules. Each department can use different templates in the document template library to generate its own test documents. The collaborative function of the management software ensures that the documents of each department are consistent in format and content. Through automated document generation and proofreading, the time and errors of cross-departmental communication are reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A flowchart of the test document generation system of the present invention. DETAILED DESCRIPTION
[0043] The present invention will be further described below in conjunction with the accompanying drawings.
[0044] like Figure 1 As shown, the software system includes a management software module, a document fragment library module, and a document template library module.
[0045] like Figure 1 As shown in the figure 1, the document fragment library module contains basic document fragment templates and provides a series of models required to generate document fragments. Users can manually modify the basic templates to generate a set of common document fragments. At the same time, users can also edit document fragments according to different project requirements to generate customized document fragments.
[0046] like Figure 1 As shown in the number 2, a document fragment is a part of a document, which is used to partially or completely replace a document area in a document template library module in the document template library module. It can be automatically generated by a basic fragment or can be added or edited by a user, and is highly customizable and extensible.
[0047] like Figure 1As shown in the number 3, the document template library module is a document template that guides the software tool on how to edit. The document template is used to generate the final document. When generating the final document, after selecting the document template that meets the project requirements, the management software module will scan the "document area" in the document template one by one. The "document area" contains its own properties and names. The management software module will insert or replace document fragments according to the "read-only" attribute of the "document area". If the read-only attribute of the area is in the "edit" state, the automation program will search for document fragments with the same name or identifier in the document fragment library according to the area name and identifier, and the matched document fragments will be copied to the "document area". If the document fragment library does not exist in the document fragment library, the management software module will record and give a visual prompt, and continue to process the next area. If the read-only attribute of the "document area" is manually adjusted to "non-editable", the next "document area" will continue to be processed. When there is no matching document fragment in the area, the user can manually add fragments or use basic fragments in the document fragment library, and the document generation will be reviewed and started to ensure that the content of the final generated document is not default.
[0048] There are multiple field tags in the "document area" in the document template library module. The management software module will scan the field tags in the "document area" one by one, fill the structured field data content in the database into the field tag position, and delete the field tag. If the field tag does not exist in the database, the management software module will record the information in the generation log and visually prompt the user to continue processing the remaining field content in the "document area".
[0049] The document template library module also contains multiple template contents, which can customize different templates for different documents to facilitate the generation of final documents for different projects.
[0050] like Figure 1 As shown in the number 4, during the final document generation process, the management software module will retain the "document area" and replace the field identifiers in and outside the area. In the process of generating the final document, the management software module will proofread and review the generated document, and enter key process information such as field search and replacement, fragment matching, etc. in the entire process into the document review record for manual review and confirmation.
[0051] like Figure 1 As shown in the figure 5, the database is used to store structured data and provide structured data entry and automatic import functions in process management. It stores field data in a standardized manner and associates all structured information of the test items in a tree-like directory. Users only need to enter the information during the test, and the system will automatically organize and store it.
[0052] like Figure 1As shown in the reference numeral 6, in the process of generating the document, the management software module will perform a database search on the fields in each "document area" and replace the field identifier in the area with the searched field data.
[0053] like Figure 1 As shown in the number 7, during the document generation process, each "document area" may contain multiple identifiers (i.e. placeholders in the template), and the names of these identifiers correspond to the field names in the database. The software tool will copy the content of the field in the database to the location of the corresponding identifier. A region may contain multiple such identifiers, and each identifier will be correctly replaced with the content of the corresponding database field, which can reduce the time and error rate of manual data entry.
[0054] like Figure 1 The number 8 shown in the figure is the "document area" of the document template library module. In the document template library module, multiple areas are defined, and each area has two attributes: a name attribute and a read-only attribute. If the read-only attribute is in the "edit" state, the software tool can modify the content in the area; if the read-only attribute is in the "uneditable" state, the software tool will not be able to modify the content in the area at this stage of generating documents according to the template. At this stage, the software tool cannot modify the content outside the area. A document template can contain multiple such areas. According to the name attribute of the area, the software tool searches the document fragment library for the document fragment with the same attribute, and copies the searched content into the corresponding area. In this way, users can flexibly choose whether to allow software tools to modify the content in a specific area according to their own needs. This mechanism provides more flexibility and precision, making the document generation process more efficient and controllable.
[0055] like Figure 1 The reference numeral 9 shown in the figure is a document edited by software tools and humans. The software system will record the process of generating each document, including multiple final generated documents.
[0056] like Figure 1 As shown in the reference numeral 10, the database is used to store structured data and is used to replace the field identifier in the "document area" in the document template during the document generation process. The tester uses the management software module to enter and store the structured test data into the database.
[0057] like Figure 1 The reference numeral 11 shown in the figure is a management software module, which includes not only document template management, structured data entry, automatic proofreading and review, document generation process processing and other document generation related functions, but also other conventional functions such as visual project management.
[0058] The test document generation method is as follows:
[0059] (1) The tester enters the management software module 11 page through the web system, creates a project in the management software module 11, and quickly enters the tested device, design requirements, test requirements, test process data, and test result information through the software. All of this data will be entered into the database 5. The software system has many quick entry functions. The test data generated by the test activities of the tester is more efficient and faster than directly writing in the document.
[0060] (2) Testers can write document snippets on the management software module web system or edit document snippets in the document snippet library module. Using the management software module can better manage the document snippet library module, which is more controllable and easier to operate than manually writing documents;
[0061] (3) When the document fragment library module 1 generates the test product document, it can select document fragments with the same fragment but different contents, and can also directly write the document fragments on the hard disk. The management software module can correctly identify the manually written part and the software management part, so that they are not related to each other. This is more flexible than pure manual writing and prevents the confusion of manual writing when there are too many documents.
[0062] (4) The management software module 11 has a separate test product document generation process, which can generate the document template library module 3 by merging the document area 8 according to the set strategy. The document area 8 can be adjusted manually in the word software. The adjustment strategy is divided into the use of basic document fragments, the combination of word editing and web management software, and the overall use of word software editing;
[0063] (5) Document template library module 3 is divided into two layers. The first layer is the final document template, which includes document fragments and document fields. The second layer is the document fragment template, which includes the fields required for the text segment and the user-defined template content. Testers can use structured data to fill in test data, or they can directly modify the template document. This reduces the error rate when combining and segmenting documents compared to manual writing.
[0064] (6) The final document 4 is generated through the document template library module. Users can freely choose the document template library module or manually write documents to combine them, so as to achieve the effect of human-computer collaborative generation of the final document 9, and fully avoid the problems of inconsistency between documents and facts, and inconsistency between documents.
[0065] The present invention can be applied to large-scale software testing projects, where the testing team needs to generate a large number of test documents to record the testing process and results. Using the system, testers can quickly enter test data and requirements through the management software and automatically generate structured test documents. The document fragment library allows the team to select appropriate fragments according to project requirements to ensure the consistency and integrity of the document. The automatic proofreading function helps identify and correct errors in the document and improve the quality of the document.
[0066] The present invention is also applicable to cross-departmental collaborative projects. A project requires the collaboration of multiple departments, and each department is responsible for different test modules. Each department can use different templates in the document template library to generate its own test documents. The collaborative function of the management software ensures that the documents of each department are consistent in format and content. Through automated document generation and proofreading, the time and errors of cross-departmental communication are reduced.
[0067] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A test document generation system, characterized in that: It includes management software module, document fragment library module and document template library module; The document fragment library module includes a basic document fragment template, and provides a series of data models and fragment templates required for generating document fragments; the document fragment is a certain part of a document, and is used to partially or completely replace a document area in the document template library module in the document template library module; The document template library module is a document template that instructs software tools on how to edit. The document template is used to generate the final document. When generating the final document, after selecting the document template that meets the adaptation project, the management software module will scan the document areas in the document template one by one; the document area contains its own attributes and name, and the management software module will insert or replace the document fragment according to the read-only attribute of the document area. If the read-only attribute of the area is in the editing state, the automation program will search the document fragment with the same name or identifier in the document fragment library module according to the area name and identifier, and the matched document fragment will be copied into the document area; if the document fragment library module does not have the document fragment required for the document area, the management software module will record and give a visual prompt, and continue to process the next area; if the read-only attribute of the document area is manually adjusted to be non-editable, the next document area will continue to be processed; when there is no matching document fragment in the document area, the user can manually add a fragment or use a basic fragment in the document fragment library, and the document generation will be re-examined to ensure that the content of the final generated document is not defaulted; There are multiple field identifiers in the document area of the document template library module. The management software module scans the field identifiers in the document area one by one, fills the structured field data content in the database into the field identifier position, and deletes the field identifier; If the field identifier does not exist in the database, the management software module will record the information in the generation log and visually prompt the user to continue processing the remaining field contents in the document area; During the final document generation process, the management software module will retain the document area and replace the field identifiers within and outside the area; and during the final document generation process, the management software module will proofread and review the generated document, and enter the key process information of field search and replacement and fragment matching in the entire process into the document review record; The database of the management software module is used to store structured data and provide structured data entry and automatic import functions in process management and structured data required for replacing field identifiers in document areas in document templates during document generation; The database stores field data in a standardized manner, and the management software module associates all structured information of the test items in a tree-like directory; users only need to enter the information during the test, and the system will automatically organize and store it; In the process of generating documents, the management software module will search the database according to the field identifier or name, and replace the field identifier in the area with the searched field data; In the process of generating documents, each document area may contain multiple identifiers, and the names of these identifiers correspond to the field names in the database; the software tool will copy the content of the field in the database to the location of the corresponding identifier; a region may contain multiple such identifiers, and each identifier will be correctly replaced with the content of the corresponding database field, which can reduce the time and error rate of manual data entry; The final document is a document edited by software tools and humans in collaboration. The software system will record the process of each document generation, including multiple final generated documents.
2. A test document generation system according to claim 1, characterized in that: In the document fragment library module, users can manually modify the basic document fragment template to generate a set of common document fragments; users can also edit document fragments according to different project requirements to generate customized document fragments.
3. A test document generation system according to claim 1, characterized in that: The document fragment may be automatically generated from a basic document fragment, or may be added or edited by a user.
4. A test document generation system according to claim 1, characterized in that: The document template library module also includes multiple template contents, and different templates for different documents can be customized to facilitate the generation of final documents for different projects.
5. A test document generation system according to claim 1, characterized in that: In the document template library module, multiple document areas are defined, each of which has two attributes: a name attribute and a read-only attribute; if the read-only attribute is in an editable state, the software tool can modify the content in the area; and if the read-only attribute is in a non-editable state, the software tool will not be able to modify the content in the area at the stage of generating a document according to the template; At this stage, the software tool cannot modify the content outside the area. A document template can contain multiple such areas. The software tool searches the document fragment library for document fragments with the same attributes based on the name attribute of the area, and copies the searched content into the corresponding area. In this way, users can flexibly choose whether to allow the software tool to modify the content in a specific area according to their own needs.
6. A test document generation method implemented by a test document generation system according to any one of claims 1 to 5, characterized in that: The specific steps are as follows: Step 1: The tester enters the management software module page through the web system, creates a project in the management software module, and quickly enters the tested device, design requirements, test requirements, test process data, and test result information through the software. All of this data will be entered into the database; Step 2: The tester can write the document snippet on the management software module web system or edit the document snippet in the document snippet library module; Step 3: When the document fragment library module generates the test product document, it can select document fragments with the same fragment but different contents, and can also directly write document fragments on the hard disk. The management software module can correctly identify the manually written part and the software management part, so that they are not related to each other; Step 4. The management software module has a separate test product document generation process. The document fragments can be generated into a document template library module by merging document areas according to the set strategy. The document area can be adjusted manually in the word software. The adjustment strategy is divided into the use of basic document fragments, the combination of word editing and web management software, and the overall use of word software editing; Step 5. The document template library module is divided into two layers. The first layer is the final document template, which includes document fragments and document fields. The second layer is the document fragment template, which includes the fields required for the text and user-defined template content. Testers can use structured data to fill in test data, or they can directly modify the template document. Step 6: Generate the final document through the document template library module. Users can freely choose the document template library module or manually write the document to achieve the effect of human-computer collaborative generation of the final document.