CN115358203A - Test report method, test report device, electronic equipment and storage medium - Google Patents

Test report method, test report device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115358203A
CN115358203A CN202211013619.7A CN202211013619A CN115358203A CN 115358203 A CN115358203 A CN 115358203A CN 202211013619 A CN202211013619 A CN 202211013619A CN 115358203 A CN115358203 A CN 115358203A
Authority
CN
China
Prior art keywords
test
report
test data
data
original
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.)
Pending
Application number
CN202211013619.7A
Other languages
Chinese (zh)
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.)
Hubei Eve Power Co Ltd
Original Assignee
Hubei Eve Power 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 Hubei Eve Power Co Ltd filed Critical Hubei Eve Power Co Ltd
Priority to CN202211013619.7A priority Critical patent/CN115358203A/en
Publication of CN115358203A publication Critical patent/CN115358203A/en
Pending legal-status Critical Current

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/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging
    • 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/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Automatic Analysis And Handling Materials Therefor (AREA)

Abstract

The invention discloses a test report generation method, a test report generation device, electronic equipment and a storage medium, wherein the test report generation method comprises the following steps: determining a test item and test data corresponding to the test item from an original test report; generating a test data table according to the test items and the test data; imaging the test data to obtain a test data graph; and importing the test data table and the test data graph into a preset report template to generate a test report. The test report is generated by extracting the test items from the original test report and using the test data as basic data, so that a uniform test report can be generated even if the formats of the original test report are different, and the test result is visualized by graphing the test data, thereby improving the readability of the report. The test report generation process does not need manual operation, so that the labor cost is reduced, and the comprehensive test report can be accurately and efficiently generated.

Description

Test report method, test report device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data statistics, and in particular, to a test report method, an apparatus, an electronic device, and a storage medium.
Background
In the production process of products in various industries, the testing of products or samples is an essential link for ensuring the quality of the products. Generally, after the product or sample test is completed, a uniform test report needs to be generated, but the sample test usually includes many test items, different test devices are required, so that data of different test items are stored in memories of different test devices, and the format of the test report generated by different test devices may be different, which brings difficulty for generating the uniform test report.
At present, data of various test reports are mainly and uniformly recorded into documents by manpower to generate a total test report, but the manual data processing is long in time consumption, high in labor cost and prone to errors.
Disclosure of Invention
The invention provides a test report generation method and device, electronic equipment and a storage medium, and aims to solve the problems of long time consumption, high labor cost and easiness in error in the process of manually inputting data to generate a test report.
In a first aspect, the present invention provides a test report generating method, including:
determining a test item and test data corresponding to the test item from an original test report;
generating a test data table according to the test items and the test data;
imaging the test data to obtain a test data graph;
and importing the test data sheet and the test data graph into a preset report template to generate a comprehensive test report.
In a second aspect, the present invention provides a test report generating apparatus, including:
the test information determining module is used for determining test items and test data corresponding to the test items from an original test report;
the test data table generating module is used for generating a test data table according to the test items and the test data;
the test data graph generating module is used for imaging the test data to obtain a test data graph;
and the test report generating module is used for importing the test data sheet and the test data graph into a preset report template so as to generate a comprehensive test report.
In a third aspect, the present invention provides an electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the test report generation method of the first aspect of the invention.
In a fourth aspect, the present invention provides a computer-readable storage medium storing computer instructions for causing a processor to implement the test report generation method according to the first aspect of the present invention when executed.
According to the test report generation method, the test items and the test data corresponding to the test items are determined from the original test report; generating a test data table according to the test items and the test data; imaging the test data to obtain a test data graph; and importing the test data table and the test data graph into a preset report template to generate a comprehensive test report. The comprehensive test report is generated by extracting the test items from the original test report and using the test data as basic data, so that the comprehensive test report with a uniform format can be generated even if the formats of the original test report are different, and the test result is visualized by graphing the test data, thereby improving the readability of the report. The test report generation process does not need manual operation, so that the labor cost is reduced, and the comprehensive test report can be accurately and efficiently generated.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a test report generation method according to an embodiment of the present invention;
fig. 2 is a flowchart of a test report generation method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a test report generation apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Fig. 1 is a flowchart of a test report generation method according to an embodiment of the present invention, where the method is applicable to a test report generation situation, and the method may be executed by a test report generation apparatus, where the test report generation apparatus may be implemented in a form of hardware and/or software, and the test report generation apparatus may be configured in an electronic device, for example, a computer that processes a test report. As shown in fig. 1, the test report generation method includes:
s101, determining test items and test data corresponding to the test items from the original test report.
Product inspection is the process of evaluating the performance, composition, product characteristics, etc. of a product to verify that the product is in compliance with a standard or expectation. Product testing is a comprehensive assessment and therefore typically involves many test items, with different products having different test items that may require testing on different test devices. For example, for an LED lamp, the test items may include current, voltage, brightness, paste thickness, gold wire length, etc., wherein the current, voltage, brightness can be measured on a spectrometer, and the paste thickness, gold wire length, etc. needs to be measured under an electron microscope. The data measured by each test item is the test data. The format of the different test original test reports may be different, for example, the format may be EXCEL, json, XML, HTML, etc., and the type of test data may include at least one of numbers and words.
And S102, generating a test data table according to the test items and the test data.
Specifically, for the same original test report, the test items and the test data are associated, then the test items are sequentially filled into a preset table in a row or column form, a data association position is set for each test item in the preset table, and then the test data associated with the test items are filled into the data association positions of the test items, so that a comprehensive test data table is obtained. Of course, the test items and their associated test data may be sequentially filled into the preset table, which is not limited by the present invention.
And S103, imaging the test data to obtain a test data graph.
The test data imaging may be to display the characteristics of each item of test data, or to display the characteristic complete picture of the test data. Therefore, the test data is imaged, and the display mode of the test data can be determined first. If the characteristics of each item of test data are displayed, importing each item of test data and data corresponding to the test item into a graph drawing tool to obtain a test data graph; if the feature complete picture of the test data is displayed, classifying the features of the test data of each test item, and then importing the classification result into a graph drawing tool to obtain a test data graph.
In addition, a chart conversion tool can be adopted to directly image the test data table to obtain a test data chart on the basis of the test data table.
And S104, importing the test data sheet and the test data graph into a preset report template to generate a comprehensive test report.
The preset report template is a template which is provided with corresponding positions for characters, diagrams, icons and the like which need to be imported in advance, and the typesetting, the content, the format and the like of the preset report template can also be set according to actual requirements. The user can copy the test data table and the test data chart into a preset report template according to a preset sequence, or store the test data table and the test data chart into a target folder, and generate links in the preset report template, wherein the links respectively point to the test data table and the test data chart in the target folder to be corresponding.
According to the test report generation method, the test items and the test data corresponding to the test items are determined from the original test report; generating a test data table according to the test items and the test data; imaging the test data to obtain a test data graph; and importing the test data table and the test data chart into a preset report template to generate a comprehensive test report. The comprehensive test report is generated by extracting the test items from the original test report and using the test data as basic data, so that the comprehensive test report with a uniform format can be generated even if the formats of the original test report are different, and the test result is visualized by graphing the test data, thereby improving the readability of the report. The test report generation process does not need manual operation, so that the labor cost is reduced, and the comprehensive test report can be accurately and efficiently generated.
Example two
Fig. 2 is a flowchart of a test report generation method provided in the second embodiment of the present invention, and the first embodiment of the present invention is optimized based on the first embodiment, as shown in fig. 2, the test report generation method includes:
s201, acquiring an original test report from the test device.
After a sample is tested for different test items in different test devices, the obtained test data (original test report) is generally stored in a memory of the test device, and usually, the original test reports are copied to a removable hard disk from different test devices by a human, and then the original test reports are uniformly transmitted to the same host computer for data processing. In this embodiment, the host for processing data may be connected to different testing devices, and may read the original test report in the memory of each testing device at the host end, and may also synchronize with the data in the memory of the testing device.
Specifically, the file name of the test report includes the sample name, so when a test report of a certain sample needs to be generated, the original test report whose file name includes the sample name of the sample may be obtained first.
S202, determining test items from the original test report.
The test items may be presented in the name of the original test report or in the specific content of the original test report. Therefore, the test items can be determined according to the display mode and format of the original test report. For example, if "test item — SOC" is described in the name or specific content of the original test report, it can be determined that the test item of the original test report is SOC after the "test item" is retrieved.
S203, searching the original test report for the value corresponding to the test item, and taking the value corresponding to the test item as the test data corresponding to the test item.
Firstly, the original test report can be subjected to data cleaning, and character strings, list slicing functions and the like in the original test reports with different formats can be cleaned, so that the situation that the original test reports with different formats have unnecessary format elements to influence the extraction of test data is avoided. Wherein the value corresponding to the test item may be an alphanumeric or numeric character. After the data cleaning is finished, file operation can be performed through an OS (operating system) to obtain test data of different original reports.
And S204, generating a test data table according to the test items and the test data.
After the test item and the test data are obtained, the test item and the test data can be related and imported into the same table to generate a test data table, for example, the test data table can be drawn through a matplotlib library.
And S205, converting the test data into state information according to a preset test standard corresponding to the test data.
The state information is a characteristic profile of the sample in the test item, and the present step is mainly explained by a specific example, and the corresponding conversion relationship between the test data and the state information is shown in the following table:
test item Test data Test standard Status information
SOC 71 >60 Pass
Dischange 50 <55 Fail
Cell
45 >35 Pass
Temp 63 <70 Pass
Speed 100 >80 Pass
As shown in the above table, the test items include SOC, change, cell, temp and Speed, the test data are 71, 50, 45, 63 and 100 (data units are not labeled), and comparing the test data of each test item with the test standard shows that the test items SOC, cell, temp and Speed all meet the test standard, the status information is Pass, the test item change does not meet the test standard, and the status information is Fail. Of course, the above table is only an example, and the status information may also be Error (data Error), TBD (pending), and the like, and may be specifically set according to actual requirements.
It should be noted that when the test data is invalid (data loss or data error is judged as invalid data), a value is filled by default. This results in that through analysis of a large amount of data, it can be concluded that the Error data has certain characteristics, and based on this experience, the Error data can be accurately identified, for example, when Temp data is lost, if "0" is filled by default, it can be confirmed that the data is Error data, and the corresponding status information should be Error.
Of course, the test data may also be text information, for example, negative, positive, etc., and the corresponding test standard may also be changed correspondingly, which is not limited by the present invention.
And S206, carrying out state classification statistics on the state information to obtain state statistical data.
When a plurality of test items are tested on a sample, the tester is concerned with the overall state of the sample, namely the characteristic profile, rather than the specific numerical value of a certain test item, so that the state information of the test items can be counted to obtain state statistical data. For example, the status information may be counted by a pandas library, a numpy library, or the like.
And S207, generating a test data graph according to the state statistical data.
After the state statistical data is obtained, the overall state of the sample can be determined from the state statistical data, that is, a test data graph is generated according to the state statistical data, for example, a visual graph can be drawn through a matplotlib library and a plot bag function. Specifically, the test data graph may be a bar chart, a pie chart, a graph, etc., and may be set according to actual requirements. After the test data map is generated, the test data map may be stored in a preset memory in a preset format, where the preset format may be jpg, png, gif, and the like.
In addition, whether the sample meets the test standard can also be judged by counting the ratio of each state information separately, for example, when the ratio of "Pass" is greater than 70%, the sample can be determined to meet the test standard, or when the ratio of "Pass" is greater than 70% and the ratio of "Fail" is less than 20%, the sample can be determined to meet the test standard.
And S208, importing the test data sheet and the test data graph into a preset report template to generate a comprehensive test report.
Firstly, determining the diagram positions corresponding to the test data table and the test data graph in a preset report template, and then importing the test data table and the test data graph into the corresponding diagram positions respectively, namely generating a comprehensive test report. For example, the test data table, the test data graph and the preset report template may be used to generate the PDF through the FPDF library.
In an optional embodiment of the present invention, after importing the test data table and the test data graph into a preset report template to generate a comprehensive test report, the method further includes: determining a report position corresponding to the original test report in the comprehensive test report; a link is inserted at the report location, the link pointing to the original test report. That is, the original test report corresponding to each test item is inserted into the comprehensive test report, so that the user can browse the detailed test data of the test item of interest while viewing the overall state of the sample.
In an optional embodiment of the present invention, after importing the test data table and the test data graph into a preset report template to generate a comprehensive test report, the method further includes: screening additional item information from an original test report; for each additional item of information, determining an additional item information position corresponding to the additional item of information in the comprehensive test report; and filling the additional item information into the corresponding additional item information position. Additional items of information may include sample information, test device information, test racks, etc., and may also represent useful information relating to the testing of the sample, for example, when multiple samples are tested simultaneously on different test racks of the same test device, the test data for a particular test rack is always erroneous or fails, which may be problematic for that test rack. In addition, the additional item information can also comprise company icons, addresses, test standard citations and the like, and the user can add different additional item information to the test report according to actual requirements.
According to the test report generation method, the overall state characteristics of the sample are obtained by carrying out state information statistics on each test item in different original test reports, and a user can quickly evaluate the characteristics of the sample according to the overall state characteristics of the sample, so that the test results can be efficiently and intensively displayed in the comprehensive test report, the readability of the report is further improved, and the time for evaluating the characteristics of the sample by the user is also saved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a test report generation apparatus according to a third embodiment of the present invention. As shown in fig. 3, the test report generating apparatus includes:
a test information determining module 301, configured to determine a test item and test data corresponding to the test item from an original test report;
a test data table generating module 302, configured to generate a test data table according to the test item and the test data;
a test data map generation module 303, configured to visualize the test data to obtain a test data map;
a test report generating module 304, configured to import the test data table and the test data graph into a preset report template, so as to generate a comprehensive test report.
In an optional embodiment of the present invention, the test report generating apparatus further comprises:
the original test report acquisition module is used for acquiring an original test report from the test device;
in an optional embodiment of the present invention, the test information determining module 301 includes:
the test item determining submodule is used for determining a test item from the original test report;
and the test data determining sub-module is used for searching the original test report for the value corresponding to the test item and taking the value corresponding to the test item as the test data corresponding to the test item.
In an optional embodiment of the present invention, the test data graph generating module 303 includes:
the state information conversion module is used for converting the test data into state information according to a preset test standard corresponding to the test data;
the state statistical data acquisition submodule is used for carrying out state classification statistics on the state information to obtain state statistical data;
and the test data graph generation submodule is used for generating a test data graph according to the state statistical data.
In an optional embodiment of the present invention, the test report generating module 304 comprises:
the chart position determining submodule is used for respectively determining the chart positions corresponding to the test data table and the test data graph in a preset report template so as to generate a comprehensive test report;
and the chart importing submodule is used for respectively importing the test data table and the test data chart to corresponding chart positions.
In an optional embodiment of the present invention, the test report generating apparatus further comprises:
a report position determining submodule for determining a report position corresponding to the original test report in the comprehensive test report;
a report insertion determination submodule for inserting a link at the report position, the link pointing to the original test report.
In an optional embodiment of the present invention, the test report generating apparatus further comprises:
the additional item information screening module is used for screening additional item information from the original test report;
an additional item information position determining module, configured to determine, for each of the additional item information, an additional item information position corresponding to the additional item information in the comprehensive test report;
and the additional item information filling module is used for filling the additional item information into the corresponding additional item information position.
The test report generation device provided by the embodiment of the invention can execute the test report generation method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example four
FIG. 4 shows a schematic block diagram of an electronic device 40 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 40 includes at least one processor 41, and a memory communicatively connected to the at least one processor 41, such as a Read Only Memory (ROM) 42, a Random Access Memory (RAM) 43, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 41 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 42 or the computer program loaded from a storage unit 48 into the Random Access Memory (RAM) 43. In the RAM 43, various programs and data necessary for the operation of the electronic apparatus 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other via a bus 44. An input/output (I/O) interface 45 is also connected to bus 44.
A number of components in the electronic device 40 are connected to the I/O interface 45, including: an input unit 46 such as a keyboard, a mouse, or the like; an output unit 47 such as various types of displays, speakers, and the like; a storage unit 48 such as a magnetic disk, an optical disk, or the like; and a communication unit 49 such as a network card, modem, wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Processor 41 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of processor 41 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. Processor 41 performs the various methods and processes described above, such as the test report generation method.
In some embodiments, the test report generation method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 48. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 40 via the ROM 42 and/or the communication unit 49. When the computer program is loaded into RAM 43 and executed by processor 41, one or more steps of the test report generation method described above may be performed. Alternatively, in other embodiments, processor 41 may be configured to perform the test report generation method by any other suitable means (e.g., by way of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Computer programs for implementing the methods of the present invention can be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired result of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for generating a test report, comprising:
determining a test item and test data corresponding to the test item from an original test report;
generating a test data table according to the test items and the test data;
imaging the test data to obtain a test data graph;
and importing the test data sheet and the test data graph into a preset report template to generate a comprehensive test report.
2. The method of claim 1, wherein prior to said screening out test items and test data corresponding to said test items from the original test report, the method further comprises:
an original test report is obtained from a test device.
3. The method of claim 1, wherein said determining test items and test data corresponding to said test items from an original test report comprises:
determining test items from the original test report;
and searching the original test report for a value corresponding to the test item, and taking the value corresponding to the test item as test data corresponding to the test item.
4. The method of claim 1, wherein the imaging the test data to obtain a test data map comprises:
converting the test data into state information according to a preset test standard corresponding to the test data;
carrying out state classification statistics on the state information to obtain state statistical data;
and generating a test data graph according to the state statistical data.
5. The method of claim 1, wherein said importing said test data table and said test data graph into a predetermined report template to generate a comprehensive test report comprises:
determining chart positions corresponding to the test data table and the test data graph in a preset report template respectively;
and respectively importing the test data table and the test data graph into corresponding graph positions to generate a comprehensive test report.
6. The method of any of claims 1-5, wherein after said importing said test data table and said test data graph into a predetermined report template to generate a consolidated test report, said method further comprises:
determining a report position corresponding to the original test report in the comprehensive test report;
inserting a link at the report location, the link pointing to the original test report.
7. The method of any of claims 1-5, wherein after said importing said test data table and said test data graph into a predetermined report template to generate a consolidated test report, said method further comprises:
screening additional item information from the original test report;
for each additional item of information, determining an additional item information position corresponding to the additional item of information in the comprehensive test report;
and filling the additional item information into the corresponding additional item information position.
8. A test report generation apparatus, comprising:
the test information determining module is used for determining a test item and test data corresponding to the test item from an original test report;
the test data table generating module is used for generating a test data table according to the test items and the test data;
the test data graph generating module is used for imaging the test data to obtain a test data graph;
and the test report generating module is used for importing the test data sheet and the test data graph into a preset report template so as to generate a comprehensive test report.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the test report generation method of any one of claims 1-7.
10. A computer-readable storage medium having stored thereon computer instructions for causing a processor, when executed, to implement the test report generation method of any of claims 1-7.
CN202211013619.7A 2022-08-23 2022-08-23 Test report method, test report device, electronic equipment and storage medium Pending CN115358203A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211013619.7A CN115358203A (en) 2022-08-23 2022-08-23 Test report method, test report device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211013619.7A CN115358203A (en) 2022-08-23 2022-08-23 Test report method, test report device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115358203A true CN115358203A (en) 2022-11-18

Family

ID=84003196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211013619.7A Pending CN115358203A (en) 2022-08-23 2022-08-23 Test report method, test report device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115358203A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116298932A (en) * 2023-05-18 2023-06-23 江苏时代新能源科技有限公司 Battery test data processing method, system, device, equipment and storage medium
CN116467223A (en) * 2023-06-20 2023-07-21 建信金融科技有限责任公司 Method, device, system, equipment and medium for generating test report

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116298932A (en) * 2023-05-18 2023-06-23 江苏时代新能源科技有限公司 Battery test data processing method, system, device, equipment and storage medium
CN116298932B (en) * 2023-05-18 2024-04-09 江苏时代新能源科技有限公司 Battery test data processing method, system, device, equipment and storage medium
CN116467223A (en) * 2023-06-20 2023-07-21 建信金融科技有限责任公司 Method, device, system, equipment and medium for generating test report
CN116467223B (en) * 2023-06-20 2023-09-19 建信金融科技有限责任公司 Method, device, system, equipment and medium for generating test report

Similar Documents

Publication Publication Date Title
CN115358203A (en) Test report method, test report device, electronic equipment and storage medium
CN113409284A (en) Circuit board fault detection method, device, equipment and storage medium
CN115422617A (en) Frame image size measuring method, device and medium based on CAD
CN115576828A (en) Test case generation method, device, equipment and storage medium
CN113342692B (en) Automatic test case generation method and device, electronic equipment and storage medium
CN110826306B (en) Data acquisition method and device, computer readable storage medium and electronic equipment
CN117593115A (en) Feature value determining method, device, equipment and medium of credit risk assessment model
CN116414814A (en) Data checking method, device, equipment, storage medium and program product
CN115563773A (en) Interface signal adjusting method, device, equipment and storage medium
CN115292202A (en) Product test analysis method and device, electronic equipment and storage medium
CN115794744A (en) Log display method, device, equipment and storage medium
CN115344495A (en) Data analysis method and device for batch task test, computer equipment and medium
CN110852077B (en) Method, device, medium and electronic equipment for dynamically adjusting Word2Vec model dictionary
CN111079185B (en) Database information processing method and device, storage medium and electronic equipment
CN113052325A (en) Method, device, equipment, storage medium and program product for optimizing online model
CN112434103A (en) Data display method and server
CN115098405B (en) Software product evaluation method and device, electronic equipment and storage medium
CN116127326B (en) Composite insulator detection method and device, electronic equipment and storage medium
CN117271373B (en) Automatic construction method and device for test cases, electronic equipment and storage medium
CN115495380A (en) Test case generation method and device, electronic equipment and storage medium
CN117493785A (en) Data processing method and device and electronic equipment
CN115658510A (en) Test data generation method and device, electronic equipment and storage medium
CN117540718A (en) Intelligent inspection result statistical method based on document object model
CN116594827A (en) Automatic test method and device for hardware equipment, workbench, equipment and medium
CN115543749A (en) Hard disk backboard monitoring method, device, equipment and storage medium

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