CN113343659B - Analysis report generation method, device, equipment and storage medium - Google Patents

Analysis report generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN113343659B
CN113343659B CN202110563724.7A CN202110563724A CN113343659B CN 113343659 B CN113343659 B CN 113343659B CN 202110563724 A CN202110563724 A CN 202110563724A CN 113343659 B CN113343659 B CN 113343659B
Authority
CN
China
Prior art keywords
report
parameter table
file
parameterized
header file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110563724.7A
Other languages
Chinese (zh)
Other versions
CN113343659A (en
Inventor
李云
石登仁
廖礼平
林伟雄
丘明敏
张健
欧阳晨晖
龙祖荣
覃振宗
张霖
段珊珊
江佳峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongfeng Liuzhou Motor Co Ltd
Original Assignee
Dongfeng Liuzhou Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongfeng Liuzhou Motor Co Ltd filed Critical Dongfeng Liuzhou Motor Co Ltd
Priority to CN202110563724.7A priority Critical patent/CN113343659B/en
Publication of CN113343659A publication Critical patent/CN113343659A/en
Application granted granted Critical
Publication of CN113343659B publication Critical patent/CN113343659B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing

Abstract

The invention relates to the field of computers, and discloses an analysis report generation method, a device, equipment and a storage medium, wherein a report parameter table is obtained and analyzed to generate a header file; calculating the report parameter table according to the header file to obtain a result file; assigning values to the report parameter table according to the result file; the method comprises the steps of obtaining a parameterized report template, generating an output report according to the parameterized report template and an assigned report parameter table, improving the speed of generating an analysis report by analyzing a header file and mechanically applying the parameterized report template, and solving the technical problem that the report cannot be continuously and quickly generated in the process of virtual verification in the prior art.

Description

Analysis report generation method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating an analysis report.
Background
With the increasing competition, the research and development period of new vehicles is continuously compressed, the virtual verification technology is more and more emphasized, and partial whole vehicle prototype tests and part tests are replaced. At present, the virtual verification process mainly based on manual operation faces a bottleneck in the aspect of efficiency improvement, domestic and foreign enterprises start secondary development in the aspects of automatic modeling, automatic loading and automatic report generation aiming at professional software in order to further improve the virtual verification efficiency, and gradually the virtual verification process completely mainly based on manual operation is changed into a semi-automatic process combining manual operation and secondary development plug-in. At present, the work of home and abroad on the aspect of virtual verification automation mainly focuses on secondary development of virtual verification professional software, some focuses on simplification of an analysis process, some focuses on acceleration of a modeling process, and some focuses on automatic report processing. Most of research on the automation direction of virtual validation focuses on single nodes in the aspects of modeling, analysis or post-processing, and the automation aspect of virtual validation lacks coherence, so how to increase the calculation speed and the generation speed of virtual validation reports becomes a technical problem to be solved urgently.
The above is only for the purpose of assisting understanding of the technical solution of the present invention, and does not represent an admission that the above is the prior art.
Disclosure of Invention
The invention mainly aims to provide an analysis report generation method, an analysis report generation device, analysis report generation equipment and a storage medium, and aims to solve the technical problem that the prior art cannot continuously and quickly generate a report in a virtual verification process.
To achieve the above object, the present invention provides an analysis report generation method, comprising the steps of;
acquiring a report parameter table, and analyzing the report parameter table to generate a header file;
calculating the report parameter table according to the header file to obtain a result file;
assigning values to the report parameter table according to the result file;
and acquiring a parameterized report template, and generating an output report according to the parameterized report template and the assigned report parameter table.
Optionally, the step of obtaining the report parameter table, and parsing the report parameter table to generate a header file includes:
acquiring a report parameter table, and reading a header file setting and a boundary value condition prestored in the report parameter table;
analyzing the header file setting to obtain a corresponding item type and a solver type;
and generating a header file according to the project type, the solver type and the boundary value condition.
Optionally, the step of calculating the report parameter table according to the header file to obtain a result file includes:
determining a file format in the report parameter table according to the type of a solver in the header file;
calculating according to the boundary value condition and the project file corresponding to the project type to obtain a project calculation result;
and generating a result file according to the project calculation result and the file format.
Optionally, before the step of calculating the report parameter table according to the header file to obtain a result file, the method further includes:
detecting whether an execution completion state instruction is received;
when the execution completion state instruction is received, traversing the worksheet in the report parameter table, and judging whether the header file is valid according to a traversal result;
optionally, the step of calculating the report parameter table according to the header file to obtain a result file includes:
and when the header file is valid, calculating a report parameter table according to the header file to obtain a result file.
Optionally, the step of assigning values to the report parameter table according to the result file includes:
matching a corresponding file type in the report parameter table according to a header file name in the result file;
and when the file types are matched, adding the calculation results in the result file into the report parameter table one by one so as to realize the effect of assigning values to the report parameter table.
Optionally, the step of obtaining a parameterized report template and generating an output report according to the parameterized report template and the report parameter table includes:
obtaining a parameterized report template, and analyzing the header file to match corresponding variables in the report parameter table;
when the variables in the parameterized report template are matched with the variables in the report parameter table, the variables in the parameterized report are transmitted to the corresponding variables in the parameterized template to update the parameterized report template, and the updated parameterized report template is displayed as an output report;
and when the variables in the parameterized report template are not matched with the variables in the report parameter table, setting the variables in the parameterized report template as initial default values to update the parameterized report template, and showing the current parameterized report template as an output report.
Optionally, the step of obtaining a parameterized report template and parsing the header file to match corresponding variables in the report parameter table further includes:
acquiring a parameterized report template, and detecting whether a parameterized picture exists in the parameterized report template;
and when a parameterized picture exists in the parameterized report template, executing a picture acquisition script to determine a variable corresponding to the parameterized picture.
In order to achieve the above object, the present invention also provides an analysis report generation device, including:
a table acquisition module: the report parameter table is used for acquiring and analyzing the report parameter table to generate a header file;
a parameter calculation module: the report parameter table is used for calculating according to the header file to obtain a result file;
a parameter assignment module: the report parameter table is used for assigning values according to the result file;
a report output module: and the report generation module is used for acquiring a parameterized report template and generating an output report according to the parameterized report template and the assigned report parameter table.
Further, to achieve the above object, the present invention also provides an analysis report generation apparatus, including: a memory, a processor and an analysis report generation program stored on the memory and executable on the processor, the analysis report generation program configured to implement the steps of the analysis report generation method as described above.
Furthermore, in order to achieve the above object, the present invention also provides a storage medium having an analysis report generation program stored thereon, wherein the analysis report generation program, when executed by a processor, implements the steps of the analysis report generation method as described above.
The method comprises the steps of analyzing a report parameter table to generate a header file by acquiring the report parameter table; calculating the report parameter table according to the header file to obtain a result file; assigning values to the report parameter table according to the result file; the method comprises the steps of obtaining a parameterized report template, generating an output report according to the parameterized report template and an assigned report parameter table, improving the speed of generating an analysis report by analyzing a header file and mechanically applying the parameterized report template, and solving the technical problem that the report cannot be continuously and quickly generated in the process of virtual verification in the prior art.
Drawings
Fig. 1 is a schematic structural diagram of an analysis report generation device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of an analysis report generation method according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of an analysis report generation method according to the present invention;
fig. 4 is a block diagram showing the structure of an analysis report generation apparatus according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an analysis report generation device of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the analysis report generation device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to implement connection communication among these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in FIG. 1 does not constitute a limitation of the analysis report generation apparatus and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, the memory 1005, which is a storage medium, may include therein an operating system, a data storage module, a network communication module, a user interface module, and an analysis report generation program.
In the analysis report generation apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the analysis report generation device of the present invention may be provided in an analysis report generation device that calls an analysis report generation program stored in the memory 1005 through the processor 1001 and executes an analysis report generation method provided by an embodiment of the present invention.
An embodiment of the present invention provides an analysis report generation method, and referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of the analysis report generation method according to the present invention.
In this embodiment, the method for generating an analysis report includes the following steps:
step S10: and acquiring a report parameter table, and analyzing the report parameter table to generate a header file.
It should be noted that, in this embodiment, the execution main body is a computer device or other intelligent devices having the same function, which is not limited herein, and the embodiment takes a computer as an example for description.
It is understood that in the present embodiment, the report parameter table is obtained by reading the report parameter table from the interactive device.
It should be noted that, the boundary condition information and solver setting information required for calculating the header file definition are controlled by an Excel table.
It can be understood that, for the boundary condition information and the solver setting information defined in the Excel table, rows in the table are accessed row by using the tcl programming language and are parsed into a calculation file in a solver format.
It should be noted that the TCL is originally called "Tool Command Language" (Tool Command Language), a Command-based scripting Language, and each Command is separated by a line break or break.
It is understood that the header file includes: project number, solver type, and base grid file.
In specific implementation, a report parameter table is obtained, and the report parameter table is analyzed to generate a header file, wherein boundary condition information and solver setting information defined in the Excel table of the header file are analyzed line by line; and analyzing the useful information of each line in the Excel table of the header file into the calculation header file according to the calculation file format of the corresponding solver.
In a specific implementation, the analysis of the report parameter table is actually performed line by line according to predefined analysis items on the line where the corresponding analysis item in the report parameter table is located. For example: the report parameter table includes information of items XXX01 and XXX02, and the header file obtained by analyzing the report parameter table includes information of two items XXX01 and XXX02 and corresponding solver types.
Step S20: and calculating the report parameter table according to the header file to obtain a result file.
It should be noted that the result file includes the item name and the result after the variable calculation.
In a specific implementation, when the header file is generated, the report parameter table is calculated according to the header file to obtain a result file.
It should be noted that, before calculating the report parameter table according to the header file to obtain the result file, detecting whether a calculation header file has been generated, and if detecting that a calculation header file has been generated, automatically starting a batch calculation command to submit the calculation.
Further, before the step of calculating the report parameter table according to the header file to obtain a result file, the method further includes: detecting whether an execution completion state instruction is received; when the execution completion state instruction is received, traversing the worksheet in the report parameter table, and judging whether the header file is valid according to the traversing result;
it should be noted that the execution completion status instruction is a completion notification instruction generated by a corresponding module responsible for header file generation.
It is understood that Traversal (Traversal) refers to making one access to each node in the tree (or graph) in turn along a search route. The operation performed by the access node depends on the specific application problem, and the specific access operation may be to check the value of the node, update the value of the node, and the like. Different traversal methods have different access node orders. Traversal is one of the most important operations in the binary tree, and is the basis for performing other operations in the binary tree.
In specific implementation, whether an execution completion state instruction is received or not is detected, when the execution completion state instruction is received, a worksheet in the report parameter table is traversed, whether the header file is valid or not is judged according to a traversal result, whether the execution completion state instruction is received or not is detected, after the execution state judgment instruction is judged to be completed, the worksheet in the report parameter table is traversed, and whether a project directory corresponding to the header file exists in the worksheet or not is checked.
Further, the step of calculating the report parameter table according to the header file to obtain a result file comprises: and when the header file is valid, calculating a report parameter table according to the header file to obtain a result file.
In specific implementation, when the header file is valid, the report parameter table is calculated according to the header file to obtain a result file, and when the result file is a project directory corresponding to the header file in the worksheet, the corresponding file is calculated according to the solver type Nastran in the header file and information such as boundary adjustment and solution parameters in the header file.
Step S30: and assigning values to the report parameter table according to the result file.
It should be noted that: the process of assigning a value to a variable is called assigning. The statement that assigns the determined value to the variable is called an assignment statement. Each programming language has its own assignment statements, which are also of different types. The assigned "value" may be a number, or may be a character string and an expression.
In a specific implementation, the assigning of the report parameter table according to the result file is performed by matching a variable name corresponding to the result file in the report parameter table and assigning a corresponding variable in the report parameter table with a corresponding calculation result under the variable name, for example: the calculation result includes an emergency brake distance, the corresponding result is 2.1 meters, and then after the emergency brake distance in the report parameter table is matched, the value is assigned corresponding to the emergency brake distance in the report parameter table, and the emergency brake distance in the report parameter table after the value is assigned is 2.1 meters.
Further, the step of assigning values to the report parameter table according to the result file includes: matching a corresponding file type in the report parameter table according to a header file name in the result file; and when the file types are matched, adding the calculation results in the result file into the report parameter table one by one so as to realize the effect of assigning values to the report parameter table.
In specific implementation, the corresponding file types are matched in the report parameter table according to the header file names in the result file, when the file types are matched, the calculation results in the result file are added to the report parameter table one by one, so that the effect of assigning the report parameter table is that the calculation results in the result file are respectively assigned corresponding to the items in the report parameter table by matching the header file names in the result file with the corresponding file types in the report parameter table when the file types are matched.
Step S40: and acquiring a parameterized report template, and generating an output report according to the parameterized report template and the assigned report parameter table.
It is understood that a template refers to a fixed format of a mapping or design scheme, and sometimes also to a nucleotide sequence used to generate a complementary strand when DNA is replicated or transcribed. The template is a result of fixing and standardizing the structural rule of an object, and the template embodies the standardization of the structural form.
The parameterized report template refers to a template with a fixed format, and includes various information parameters in the middle.
In particular implementations, obtaining the parameterized report template is performed after detecting that the computation result file has been generated.
In a specific implementation, all pages of the parameterized report template begin parsing in a front-to-back order.
In the parameterized report template, variables whose variable values change frequently are transferred by a report parameter Excel table as a whole.
In specific implementation, when variables (including text variables and numerical variables) are analyzed in the parameterized report template, the variable names are compared with the variable names analyzed in the report parameter table, and variable values acquired in the report parameter table are transmitted to the variables in the parameterized report template.
In specific implementation, when the parameterized report template analyzes the expression or the tcl script, the variable related to the expression and the variable related to the expression are compared with the analyzed variable name in the report parameter table, and the variable value acquired in the report parameter table is transferred to the variable in the parameterized report template.
Further, the step of obtaining a parameterized report template and generating an output report according to the parameterized report template and the report parameter table includes: obtaining a parameterized report template, and analyzing the header file to match corresponding variables in the report parameter table; when the variables in the parameterized report template are matched with the variables in the report parameter table, the variables in the parameterized report are transmitted to the corresponding variables in the parameterized template so as to update the parameterized report template, and the updated parameterized report template is displayed as an output report; and when the variables in the parameterized report template are not matched with the variables in the report parameter table, setting the variables in the parameterized report template as initial default values to update the parameterized report template, and showing the current parameterized report template as an output report.
Further, the step of obtaining a parameterized report template and parsing the header file to match corresponding variables in the report parameter table further comprises: acquiring a parameterized report template, and detecting whether a parameterized picture exists in the parameterized report template; and when a parameterized picture exists in the parameterized report template, executing a picture acquisition script to determine a variable corresponding to the parameterized picture.
In the embodiment, a report parameter table is acquired and analyzed to generate a header file; calculating the report parameter table according to the header file to obtain a result file; assigning values to the report parameter table according to the result file; the method comprises the steps of obtaining a parameterized report template, generating an output report according to the parameterized report template and an assigned report parameter table, improving the speed of generating an analysis report by analyzing a header file and mechanically applying the parameterized report template, and solving the technical problem that the report cannot be continuously and quickly generated in the process of virtual verification in the prior art.
Referring to fig. 3, fig. 3 is a flowchart illustrating an analysis report generating method according to a second embodiment of the present invention.
Based on the first embodiment described above, in the present embodiment, the step S10 includes:
step S101: and acquiring a report parameter table, and reading the header file setting and the boundary value condition prestored in the report parameter table.
It should be noted that the header setting refers to setting of the header file, which includes a corresponding item type and a solver type in the header file parsing process.
Step S102: and analyzing the header file setting to obtain a corresponding item type and a solver type.
It is understood that item types refer to different items developed for different automotive computing needs, such as: the test system comprises an automobile structural strength test, an automobile structural rigidity test, an automobile collision test, an NVH test and the like.
Step S103: and generating a header file according to the project type, the solver type and the boundary value condition.
In a specific implementation, a header file is generated according to the item type, the solver type and the boundary value condition. Analyzing the item type, the solver type and the boundary value condition to analyze the information into a header file, and carrying out format matching according to a corresponding solver in the analyzing process.
Further, the step of calculating the report parameter table according to the header file to obtain a result file comprises: determining a file format in the report parameter table according to a solver type in the header file; calculating according to the boundary value condition and the project file corresponding to the project type to obtain a project calculation result; and generating a result file according to the project calculation result and the file format.
The file format (or file type) refers to a special encoding method for information used by a computer to store information, and is used to identify data stored inside. For example, some store pictures, some store programs, and some store text messages. Each type of information may be stored in one or more file formats in computer storage. Each file format typically has one or more extensions that can be identified, but may not have extensions. The extension can help the application program to identify the file format, and the effective information for the hard disk drive or any computer storage is only 0 and 1. Therefore, the computer must be designed with a corresponding method for information-bit conversion. There are different storage formats for different information. The file format also means the use of the file.
In specific implementation, determining a file format in the report parameter table according to a solver type in the header file; calculating according to the boundary value condition and the project file corresponding to the project type to obtain a project calculation result; and generating a result file according to the project calculation result and the file format, namely determining the file format in the report parameter table by a solver in the header file, determining the project to be calculated in the report parameter table according to the boundary value condition and the project type in the header file after the file format is determined, outputting the calculation result according to the file format, and outputting the corresponding output file as a result file after the calculation result meets the file format generation condition.
In the embodiment, a report parameter table is obtained, and header file settings and boundary value conditions prestored in the report parameter table are read; analyzing the header file setting to obtain a corresponding item type and a solver type; and generating a header file according to the project type, the solver type and the boundary value condition, and generating a corresponding header file before calculating a specific project, so that the rapidness and the accuracy of project retrieval are ensured, the normalization of a corresponding output format after the project calculation is realized, and the accuracy in the automatic generation process of the simulation analysis report is solved.
Furthermore, an embodiment of the present invention further provides a storage medium, on which an analysis report generation program is stored, and the analysis report generation program, when executed by a processor, implements the steps of the analysis report generation method as described above.
Referring to fig. 4, fig. 4 is a block diagram showing a first embodiment of an analysis report generation apparatus according to the present invention.
As shown in fig. 4, an analysis report generation apparatus according to an embodiment of the present invention includes:
the table acquisition module 401: and acquiring a report parameter table, and analyzing the report parameter table to generate a header file.
The parameter calculation module 402: and calculating the report parameter table according to the header file to obtain a result file.
Parameter assignment module 403: and assigning values to the report parameter table according to the result file.
The report output module 404: and acquiring a parameterized report template, and generating an output report according to the parameterized report template and the assigned report parameter table.
In the embodiment, a report parameter table is acquired and analyzed to generate a header file; calculating the report parameter table according to the header file to obtain a result file; assigning values to the report parameter table according to the result file; the method comprises the steps of obtaining a parameterized report template, generating an output report according to the parameterized report template and an assigned report parameter table, improving the speed of generating an analysis report by analyzing a header file and mechanically applying the parameterized report template, and solving the technical problem that the report cannot be continuously and quickly generated in the process of virtual verification in the prior art.
In an embodiment, the table obtaining module 401 is further configured to obtain a report parameter table, and read a header file setting and a boundary value condition pre-stored in the report parameter table; analyzing the header file setting to obtain a corresponding item type and a solver type; and generating a header file according to the item type, the solver type and the boundary value condition.
In an embodiment, the table obtaining module 401 is further configured to determine a file format in the report parameter table according to a solver type in the header file; calculating according to the boundary value condition and the project file corresponding to the project type to obtain a project calculation result; and generating a result file according to the project calculation result and the file format.
In an embodiment, the parameter calculating module 402 is further configured to detect whether an execution completion status instruction is received; and traversing the worksheet in the report parameter table when the execution completion state instruction is received, and judging whether the header file is valid according to a traversal result.
In an embodiment, the parameter calculating module 402 is further configured to calculate the report parameter table according to the header file to obtain a result file when the header file is valid.
In an embodiment, the parameter assignment module 403 is further configured to match a corresponding file type in the report parameter table according to a header file name in the result file; and when the file types are matched, adding the calculation results in the result file into the report parameter table one by one so as to realize the effect of assigning values to the report parameter table.
In an embodiment, the report output module 404 is further configured to obtain a parameterized report template, and parse the header file to match a corresponding variable in the report parameter table; when the variables in the parameterized report template are matched with the variables in the report parameter table, the variables in the parameterized report are transmitted to the corresponding variables in the parameterized template to update the parameterized report template, and the updated parameterized report template is displayed as an output report; when the variables in the parameterized report template are not matched with the variables in the report parameter table, the variables in the parameterized report template are set as initial default values to update the parameterized report template, and the current parameterized report template is displayed as an output report.
In an embodiment, the report output module 404 is further configured to obtain a parameterized report template, and detect whether a parameterized picture exists in the parameterized report template; and when a parameterized picture exists in the parameterized report template, executing a picture acquisition script to determine a variable corresponding to the parameterized picture.
Other embodiments or specific implementation manners of the analysis report generation apparatus of the present invention may refer to the above method embodiments, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (such as a rom/ram, a magnetic disk, and an optical disk), and includes several instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the methods according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (8)

1. An analysis report generation method, the method comprising:
acquiring a report parameter table, and analyzing the report parameter table to generate a header file;
calculating the report parameter table according to the header file to obtain a result file;
assigning values to the report parameter table according to the result file;
acquiring a parameterized report template, and generating an output report according to the parameterized report template and an assigned report parameter table;
the step of obtaining the report parameter table and analyzing the report parameter table to generate a header file comprises the following steps:
acquiring a report parameter table, and reading a header file setting and a boundary value condition prestored in the report parameter table;
analyzing the header file setting to obtain a corresponding item type and a solver type;
generating a header file according to the project type, the solver type and the boundary value condition;
the step of calculating the report parameter table according to the header file to obtain a result file comprises:
determining a file format in the report parameter table according to a solver type in the header file;
calculating according to the boundary value condition and the project file corresponding to the project type to obtain a project calculation result;
and generating a result file according to the project calculation result and the file format.
2. The method of claim 1, wherein said step of calculating said report parameter table from said header file to obtain a result file is preceded by the step of:
detecting whether an execution completion state instruction is received;
when the execution completion state instruction is received, traversing the worksheet in the report parameter table, and judging whether the header file is valid according to a traversal result;
the step of calculating the report parameter table according to the header file to obtain a result file comprises the following steps:
and when the header file is valid, calculating a report parameter table according to the header file to obtain a result file.
3. The method of claim 1, wherein said step of assigning values to said report parameter table based on said result file comprises:
matching a corresponding file type in the report parameter table according to a header file name in the result file;
and when the file types are matched, adding the calculation results in the result file into the report parameter table one by one so as to realize the effect of assigning values to the report parameter table.
4. The method of claim 1, wherein said step of obtaining a parameterized report template and generating an output report based on the parameterized report template and an assigned report parameter table comprises:
obtaining a parameterized report template, and analyzing the header file to match corresponding variables in the report parameter table;
when the variables in the parameterized report template are matched with the variables in the report parameter table, the variables in the parameterized report are transmitted to the corresponding variables in the parameterized template to update the parameterized report template, and the updated parameterized report template is displayed as an output report;
when the variables in the parameterized report template are not matched with the variables in the report parameter table, the variables in the parameterized report template are set as initial default values to update the parameterized report template, and the current parameterized report template is displayed as an output report.
5. The method of claim 4, wherein the step of obtaining a parameterized report template, parsing the header file to match corresponding variables in the report parameter table, further comprises:
acquiring a parameterized report template, and detecting whether a parameterized picture exists in the parameterized report template;
and when a parameterized picture exists in the parameterized report template, executing a picture acquisition script to determine a variable corresponding to the parameterized picture.
6. An analysis report generation apparatus, characterized in that the apparatus comprises:
a table acquisition module: the report parameter table is used for acquiring and analyzing the report parameter table to generate a header file;
a parameter calculation module: the report parameter table is used for calculating according to the header file to obtain a result file;
a parameter assignment module: the report parameter table is used for assigning values according to the result file;
a report output module: the report generation module is used for acquiring a parameterized report template and generating an output report according to the parameterized report template and an assigned report parameter table;
the table acquisition module is also used for acquiring a report parameter table and reading the header file setting and the boundary value condition prestored in the report parameter table; analyzing the header file setting to obtain a corresponding item type and a solver type; generating a header file according to the project type, the solver type and the boundary value condition;
the parameter calculation module is also used for determining a file format in the report parameter table according to the type of a solver in the header file; calculating according to the boundary value condition and the project file corresponding to the project type to obtain a project calculation result; and generating a result file according to the project calculation result and the file format.
7. An analysis report generation apparatus, characterized in that the apparatus comprises: a memory, a processor and an analysis report generation program stored on the memory and executable on the processor, the analysis report generation program configured to implement the steps of the analysis report generation method of any of claims 1 to 5.
8. A storage medium having an analysis report generation program stored thereon, the analysis report generation program, when executed by a processor, implementing the steps of the analysis report generation method according to any one of claims 1 to 5.
CN202110563724.7A 2021-05-24 2021-05-24 Analysis report generation method, device, equipment and storage medium Active CN113343659B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110563724.7A CN113343659B (en) 2021-05-24 2021-05-24 Analysis report generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110563724.7A CN113343659B (en) 2021-05-24 2021-05-24 Analysis report generation method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113343659A CN113343659A (en) 2021-09-03
CN113343659B true CN113343659B (en) 2023-03-31

Family

ID=77471026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110563724.7A Active CN113343659B (en) 2021-05-24 2021-05-24 Analysis report generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113343659B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5680622A (en) * 1994-06-30 1997-10-21 Borland International, Inc. System and methods for quickly detecting shareability of symbol and type information in header files
US8522196B1 (en) * 2001-10-25 2013-08-27 The Mathworks, Inc. Traceability in a modeling environment
CN105468571A (en) * 2015-11-19 2016-04-06 中国地质大学(武汉) Method and device used for automatically generating report
CN105868956A (en) * 2015-12-18 2016-08-17 乐视致新电子科技(天津)有限公司 Data processing method and device
CN112131837A (en) * 2020-09-22 2020-12-25 平安证券股份有限公司 Service report configuration method, device, computer equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070169021A1 (en) * 2005-11-01 2007-07-19 Siemens Medical Solutions Health Services Corporation Report Generation System
CN106528513B (en) * 2016-10-18 2021-04-06 广州极飞科技有限公司 Operation report generation method and device based on unmanned aerial vehicle operation
CN110807043A (en) * 2019-10-28 2020-02-18 中冶赛迪重庆信息技术有限公司 Diagnostic report generation method, system, device and medium
CN112035376B (en) * 2020-11-05 2021-04-09 四川科道芯国智能技术股份有限公司 Method, device, equipment and storage medium for generating coverage rate report

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5680622A (en) * 1994-06-30 1997-10-21 Borland International, Inc. System and methods for quickly detecting shareability of symbol and type information in header files
US8522196B1 (en) * 2001-10-25 2013-08-27 The Mathworks, Inc. Traceability in a modeling environment
CN105468571A (en) * 2015-11-19 2016-04-06 中国地质大学(武汉) Method and device used for automatically generating report
CN105868956A (en) * 2015-12-18 2016-08-17 乐视致新电子科技(天津)有限公司 Data processing method and device
CN112131837A (en) * 2020-09-22 2020-12-25 平安证券股份有限公司 Service report configuration method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN113343659A (en) 2021-09-03

Similar Documents

Publication Publication Date Title
CN108446190B (en) Interface test method and device
CN109343857B (en) Method, apparatus and storage medium for deploying machine learning model on line
CN109840206B (en) Data testing method, device, terminal and storage medium
US9747190B2 (en) Analysis system, analysis method, and computer program product
CN111382070B (en) Compatibility testing method and device, storage medium and computer equipment
CN111475390A (en) Log collection system deployment method, device, equipment and storage medium
CN112052172A (en) Rapid testing method and device for third-party channel and electronic equipment
CN115167831A (en) Software integration method and device based on AUTOSAR and use method
CN110955409B (en) Method and device for creating resources on cloud platform
CN113704110A (en) Automatic testing method and device for user interface
CN112433940A (en) Software development kit SDK testing method and related equipment
CN110347588B (en) Software verification method, device, computer equipment and storage medium
CN115543781A (en) Method and interactive system for automatically verifying automobile software model
JP6310527B1 (en) Object analysis apparatus, object analysis method, and program
CN112231197A (en) Page testing method and device and storage medium
CN114201397A (en) Interface test modeling method and device, electronic equipment and storage medium
CN110413518B (en) Control object library generation method and device and computer readable storage medium
CN113343659B (en) Analysis report generation method, device, equipment and storage medium
JP2012181666A (en) Information processing device, information processing method and information processing program
CN117493188A (en) Interface testing method and device, electronic equipment and storage medium
WO2023160402A1 (en) Data modeling method and apparatus, and device and storage medium
CN115470152A (en) Test code generation method, test code generation device, and storage medium
CN114756183A (en) Data printing method, device, equipment and storage medium
CN114356783A (en) Method and device for automatically generating unit test code, storage medium and equipment
CN114297088A (en) Method, device, equipment and medium for testing front end vue frame assembly

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant