CN113971111A - Test report generation method, device, equipment and storage medium - Google Patents

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

Info

Publication number
CN113971111A
CN113971111A CN202010722904.0A CN202010722904A CN113971111A CN 113971111 A CN113971111 A CN 113971111A CN 202010722904 A CN202010722904 A CN 202010722904A CN 113971111 A CN113971111 A CN 113971111A
Authority
CN
China
Prior art keywords
test
image
oscilloscope
test report
data
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
CN202010722904.0A
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.)
Huizhou BYD Electronic Co Ltd
Original Assignee
Huizhou BYD Electronic 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 Huizhou BYD Electronic Co Ltd filed Critical Huizhou BYD Electronic Co Ltd
Priority to CN202010722904.0A priority Critical patent/CN113971111A/en
Publication of CN113971111A publication Critical patent/CN113971111A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
    • G06F11/2635Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers using a storage for the test inputs, e.g. test ROM, script files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested

Abstract

The application discloses a test report generation method, a device, equipment and a storage medium, wherein the method comprises the following steps: receiving at least one oscilloscope image from an oscilloscope; calling a pre-made test report template to analyze and process each oscilloscope image in at least one oscilloscope image to obtain test data contained in each oscilloscope image; and writing the oscilloscope image and the test data into a test report template to generate a test report. According to the technical scheme, the oscilloscope images are analyzed through the pre-manufactured unified test report template, the problem that test data are wrong or formats are not uniform due to human factors is solved, the test report generation time is saved, and the test report generation efficiency is improved.

Description

Test report generation method, device, equipment and storage medium
Technical Field
The present invention relates generally to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating a test report.
Background
With the rapid development of information technology, more and more electronic products have been widely applied to people's daily life, such as notebook computers, tablet computers, smart phones, etc., and these electronic products must pass through strict tests in the design, development and trial production stage to be shipped from the factory, and especially, it is very important for the test of Signal Integrity (SI) and Power Integrity (PI) of the hardware part to generate corresponding test reports.
At present, in the related art, a test report can be generated through oscilloscope automation software processing, but because different customers have different requirements on the format of the test report, the test report generated through automation software cannot be directly reported, and needs to be manually filled and sorted by testers, so that the problems of filling errors or non-uniform formats are caused, the time cost is high, and the working efficiency is low.
Disclosure of Invention
In view of the above-mentioned drawbacks and deficiencies of the prior art, it is desirable to provide a test report generation method, apparatus, device, and storage medium.
In a first aspect, the present application provides a test report generation method, including:
receiving at least one oscilloscope image from an oscilloscope;
calling a pre-made test report template to analyze and process each oscilloscope image in at least one oscilloscope image to obtain test data contained in each oscilloscope image;
and writing the oscilloscope image and the test data into a test report template to generate a test report.
In one embodiment, calling a pre-made test report template to perform analysis processing on each oscilloscope image in at least one oscilloscope image to obtain test data included in each oscilloscope image, including:
acquiring an image name of each oscilloscope image and a test name corresponding to data to be written in a test report template;
when the image name is consistent with the test name, identifying at least one test item corresponding to the test name;
test data corresponding to each of the at least one test item is read from the oscilloscope image.
In one embodiment, writing the oscilloscope image and the test data into a test report template to generate a test report comprises:
determining an image to-be-written position corresponding to the image name in a test report template based on the image name of the oscilloscope image;
determining a data writing position corresponding to the test name based on the test name corresponding to the data to be written corresponding to the image name;
writing test data into the data writing position, and writing an oscilloscope image into the image to-be-written position of the test report template;
and determining a test result based on the test data to obtain a test report.
In one embodiment, determining the test result based on the test data and obtaining the test report includes:
reading test data from the data writing position of the test report template;
analyzing the test data and a preset specification standard associated with the data writing position to obtain a test result;
and writing the test result into the test result to-be-written position of the test report template to generate a test report.
In one embodiment, when the test result indicates that the test result is not satisfactory, the method further comprises:
determining a position area of test data corresponding to the test item which does not meet the requirement and an image position area related to the test data in the oscilloscope image;
highlighting the location area and the image location area.
In one embodiment, after generating the test report, the method further comprises:
acquiring a user communication identifier corresponding to the test report template;
and taking the user communication identification as a target address, and sending a test report to the target address.
In one embodiment, the test report includes at least one of: the test method comprises the following steps of (1) carrying out a signal integrity test report and a power integrity test report, wherein the signal integrity test report comprises an integrated circuit bus i2c test item, a serial peripheral interface spi test item, a serial interface uart test item and a system management bus smbus test item; the power integrity test report comprises a power diploma test item, a dynamic load value test item, a power-on and power-off time test item, an overcurrent protection value test item and a current and voltage signal waveform test item.
In a second aspect, the present application provides a test report generation apparatus, including:
the receiving module is used for receiving at least one oscilloscope image from the oscilloscope;
the analysis module is used for calling a pre-made test report template to analyze each oscilloscope image in at least one oscilloscope image to obtain test data contained in each oscilloscope image;
and the generating module is used for writing the oscilloscope image and the test data into the test report template to generate a test report.
In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor executes the program to implement the test report generation method according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, the computer program being used to implement the test report generation method according to the first aspect.
According to the test report generation method, the test report generation device, the test report generation equipment and the storage medium, at least one oscilloscope image is received from the oscilloscope, a pre-made test report template is called to analyze and process each oscilloscope image in the at least one oscilloscope image, test data corresponding to each oscilloscope image are obtained, the oscilloscope image and the test data are written into the test report template, and the test report is generated. According to the technical scheme, the unified test report template is used, the problem that test data are wrong or formats are not uniform due to human factors is solved, the pre-manufactured test report template can be called to analyze each oscilloscope image in at least one oscilloscope image, so that the test data are automatically identified, the oscilloscope images and the test data are written into the test report template, the test report is generated, the generation time of the test report is saved, and the working efficiency is improved to a great extent.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a schematic diagram of an application architecture of a test report generation method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a test report generation method according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of a test report template provided in an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a test report template provided in an embodiment of the present application;
fig. 5 is a schematic flowchart of a test report generation method according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of a generated test report provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a test report generation apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a test report generation apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
It is understood that in the rapid development of electronic products, many electronic products must undergo rigorous testing, such as SI testing or PI testing, in the final product application. The SI test refers to the quality of a signal on a transmission path, and the transmission path may be a common metal wire, an optical device, or other coal quality. A signal having good signal integrity means that it has the voltage level value that it must achieve when it is needed. Power integrity is the determination of whether the source and destination voltages and currents meet the requirements. Oscilloscopes are used in many tests, many waveform diagrams are generated in the test process, and test data needs to be extracted from the waveform diagrams to generate test reports.
At present, in the related art, an oscilloscope automation software is used for processing and generating a test report, however, the automation software needs to be purchased at a high cost, and different customers have different format requirements for the test report, the test report generated by the oscilloscope automation software cannot be directly suitable for reporting, and testers need to manually fill and sort the data and format of the test report, so that a lot of time is consumed, the problems of filling errors and non-uniform format are easily caused, and the testers need to additionally inform research and development personnel aiming at test items which fail to pass the test, so that information lag is caused, and the work efficiency is low.
Based on the defects, the application provides a test report generation method, compared with the prior art, the scheme uses a unified test report template, the problem that test data is wrong or formats are not unified due to human factors is solved, the pre-manufactured test report template can be called to analyze and process each oscilloscope image in at least one received oscilloscope image, so that the test data is automatically identified, the oscilloscope images and the test data are written into the test report template, a test report is generated, the generation time of the test report is saved, and the working efficiency is improved to a great extent.
Fig. 1 is an architecture diagram of an implementation environment of a test report generation method according to an embodiment of the present disclosure. As shown in fig. 1, the implementation environment architecture includes: a terminal 100 and an oscilloscope 200.
The type of the terminal 100 includes, but is not limited to, a smart phone, a desktop computer, a laptop tablet computer, a television, and the like, which is not particularly limited in the embodiments of the present application. The terminal can independently realize the generation of the test report and can also be matched with the server to realize the generation of the test report.
When the terminal 100 independently implements the generation of the test report, the test report template is stored in the terminal 100. The terminal 100 calls a pre-made test report template to analyze each oscilloscope image in the received at least one oscilloscope image to obtain test data, and writes the oscilloscope image and the test data into the test report template to generate a test report.
When the terminal 100 is matched with a server to generate a test report, the test report template is stored in the server, when the terminal 100 receives at least one oscilloscope image, the terminal sends the at least one oscilloscope image to the server, the test report template is obtained from the server, the test report template is called to analyze each oscilloscope image in the at least one oscilloscope image to obtain test data, the test data is sent to the terminal 100, and the terminal 100 writes the oscilloscope image and the test data into the test report template to generate the test report.
In addition, the terminal 100 may be displayed with an application interface for interacting with a user.
The oscilloscope 200 may include one or more interfaces, which may be USB interfaces, serial interfaces, etc., and may also include probes, which may be BNC probes, for connecting and transmitting signals, including analog or digital signals. The interface can support storage and file management of the USB flash disk, and can establish communication connection with the terminal 100 through an interface connection data line.
Optionally, the oscilloscope 200 may be a digital oscilloscope or an analog oscilloscope. For converting the voltage signal into an image signal, the voltage, current, peak value, frequency, phase difference, amplitude modulation, etc. of the direct current signal or the alternating current signal may be measured.
For convenience of understanding and explanation, the method, apparatus, device and storage medium for generating a test report according to the embodiments of the present application are described in detail below with reference to fig. 2 to 9.
Fig. 2 is a schematic flowchart of a test report generation method provided in an embodiment of the present application, where the method is applied to a test report generation apparatus, where the apparatus may be a server or a terminal, and as shown in fig. 2, the method includes:
s101, receiving at least one oscilloscope image from an oscilloscope.
Specifically, when the electronic product needs to be tested, direct or indirect measurement can be performed through the oscilloscope, the test point of the electronic product to be tested can be determined first, the oscilloscope probe is connected with the corresponding test point in the electronic product to be tested according to a preset wiring mode, then the oscilloscope switch is turned on, the corresponding test image is output, and the obtained test image is called the oscilloscope image. The oscilloscope image may be one or more. Optionally, the oscilloscope image may be a waveform curve of different signal amplitudes changing with time, and is used to represent various variables, such as voltage, current, frequency, phase difference, amplitude modulation, and the like.
After the electronic product to be tested is tested through the oscilloscope, naming the oscilloscope image according to a preset naming rule to obtain a test item name, wherein the preset naming rule can be as follows: test signal name + specific test item, such as TBS _ I2C _ SCL _ Freq, which is the designation of the saved oscilloscope image. Each oscilloscope image may contain test data corresponding to one test item, or may contain test data corresponding to a plurality of test items.
Furthermore, the data line can be connected through a serial interface of the oscilloscope, the other end of the data line is connected with the terminal equipment, and the named oscilloscope images are sent to the terminal equipment through the data line, so that the terminal equipment receives at least one oscilloscope image from the oscilloscope.
And S102, calling a pre-made test report template to analyze and process each oscilloscope image in at least one oscilloscope image to obtain test data contained in each oscilloscope image.
Specifically, before generating a test report, a test report template needs to be customized according to a user requirement in advance, and the test report template may include: a standard test data format, a test data writing position, a standard test image name and a corresponding position, a formula for judging whether the test data passes or not, and the like.
The test report template may adopt an EXCEL format, and the first page of the test report template may be named as a cover page, and the template content of the first page may include the item name, the item stage, the test date, the firmware version, and the related software version, and the content of the first page of the test report template may be as shown in fig. 3.
It should be noted that the firmware version is an official release firmware version number, which includes an update of an application part and an update of a baseband part, and generally refers to a version number or a level of firmware of an electronic device itself, such as a digital product, e.g., a mobile phone, mp3, mp4, a scanner, and the like, and is usually represented in a combination of numbers and letters.
The contents of the second page and subsequent pages of the test report template can be named according to specific test items, the format can be an EXCEL table, and the test names, the test items, the test positions, the test data, the test standards, the test results, the test standard images, the oscilloscope images and the like can be sequentially arranged from left to right. As shown in FIG. 4, the test name is TBT _ I2C _ SCL, and the test items include Freq (KHZ), Tlow (us), thigh (us), Tr (us), Tf (us), Vmax (v), and Vmin (v). The test position and the test standard corresponding to each test item are predefined, for example, the test position corresponding to the test item freq (KHZ) is at C1.1 in the electronic product to be tested, the test standard corresponding to the test item freq (KHZ) is 10-400KHZ, the test position corresponding to the test item tlow (us) is at R1.2 in the electronic product to be tested, the test standard is >1.3us, and the test position corresponding to the test item thigh (us) is at C11.1 in the electronic product to be tested, the test standard is >0.6 us.
After receiving at least one oscilloscope image from the oscilloscope, calling a pre-made test report template to analyze each oscilloscope image in the at least one oscilloscope image to obtain test data contained in each oscilloscope image, firstly obtaining an image name of each oscilloscope image and a test name corresponding to data to be written in the test report template, judging whether the image name is consistent with the test name, identifying at least one test item corresponding to the test name when the image name is consistent with the test name, and reading the test data corresponding to each test item in the at least one test item from the oscilloscope image.
When the test data corresponding to the test item is read from the oscilloscope image, an image recognition algorithm can be adopted to recognize and process each oscilloscope image, image filtering is firstly carried out, then key points in the oscilloscope image are extracted through a key point detection algorithm, analysis processing is carried out on the key points to determine test data, and the test data comprises a test value corresponding to each test point in the plurality of test points.
Optionally, the test items may include: the signal rise time, the highest voltage value of the signal, the signal ripple size, the overshoot value overshot of the signal, the undershoot value undershot of the signal and the like. The overshoot value overshoot of the signal means that the first peak or valley exceeds the set voltage, the highest voltage is used for the rising edge, the lowest voltage is used for the falling edge, and the undershoot value undershoot means the next valley or peak.
And S103, writing the oscilloscope image and the test data into a test report template to generate a test report.
Specifically, after test data corresponding to each oscilloscope image corresponding to at least one oscilloscope image is obtained, the test data is written into a position corresponding to a test item in a test report template, and the oscilloscope images are written into an image writing position in the test report template, so that a test report is generated.
It should be noted that the test report template may be maintained in real time according to the upgrade of the bus protocol and the difference of the power supply parameters, so as to periodically update the test standard, and customize the test report template according to the requirements of different clients.
In the test report generation method provided by this embodiment, at least one oscilloscope image is received from an oscilloscope, a pre-made test report template is called to analyze and process each oscilloscope image in the at least one oscilloscope image, so as to obtain test data corresponding to each oscilloscope image, and the oscilloscope image and the test data are written into the test report template, so as to generate a test report. According to the technical scheme, the unified test report template is used, the problem that test data are wrong or formats are not uniform due to human factors is solved, the pre-manufactured test report template can be called to analyze each oscilloscope image in at least one oscilloscope image, so that the test data are automatically identified, the oscilloscope images and the test data are written into the test report template, the test report is generated, the generation time of the test report is saved, and the working efficiency is improved to a great extent.
Optionally, as an implementation manner of the step S103, fig. 5 is a schematic structural diagram of a method for generating a test report according to an embodiment of the present application. As shown in fig. 5, the method includes:
s201, determining an image to-be-written position corresponding to the image name in a test report template based on the image name of the oscilloscope image.
S202, determining a data writing position corresponding to the test name based on the test name corresponding to the data to be written corresponding to the image name.
And S203, writing the test data into the data writing position, and writing the oscilloscope image into the image writing position of the test report template.
And S204, determining a test result based on the test data to obtain a test report.
Specifically, test contents such as a test name, a test stage, a test date, a firmware version, a software version, and the like may be obtained, a corresponding writing position of the test contents may be determined, and the test contents such as the test name, the test stage, the test date, the firmware version, the software version, and the like may be automatically written into the writing position corresponding to the test contents in the first page of the test report template.
In the second page and the subsequent page of the test report template, each test name may correspondingly include at least one test item, each test item has a corresponding data writing position, and includes an image to-be-written position corresponding to the oscilloscope image.
After the test data corresponding to each test item in the at least one test item is read in each oscilloscope image, an image writing position corresponding to the image name can be determined in the test report template based on the image name of the oscilloscope image, a data writing position corresponding to the test name is determined based on the test name corresponding to the data to be written corresponding to the image name, then the test data is written into the data writing position, and the oscilloscope image is written into the image writing position of the test report template.
And reading the test data from the data writing position of the test report template, analyzing the test data and the preset specification standard associated with the data writing position to obtain a test result, writing the test result into the test result to-be-written position of the test report template, and generating the test report. The test data and the associated preset specification standard can be analyzed and compared through a preset judgment formula, so that a test result is obtained. The test results include a test pass and a test result unsatisfactory.
Further, when the test result shows that the test item does not meet the requirement, determining a position area of the test data corresponding to the test item which does not meet the requirement and an image position area which is in the oscilloscope image and is associated with the test data, and highlighting the position area and the image position area.
Optionally, the position area corresponding to the unsatisfactory test data may be highlighted, and the image position area associated with the test data in the oscilloscope image may be marked and displayed in different colors.
For example, as shown in fig. 6, after receiving at least one oscilloscope image from an oscilloscope, an image name of each oscilloscope image may be obtained, for example, the obtained image names of the oscilloscope images are TBT _ I2C _ SCL and TBT-I2C _ SDA, and a test name corresponding to data to be written is obtained from a test report template, and TBT _ I2C _ SCL, TBT-I2C _ SDA and TBT _ SPI _ SCL may be included, and when the image name is consistent with the test name, at least one test item corresponding to the test name is identified, that is, when the image name and the test name are both TBT _ I2C _ SCL, the corresponding test item in the test report template includes freq (khz), tlow (us), thigh (us), tr(s), tf (us), vmax (v), and vmin (v). Then, reading test data corresponding to each test item in at least one test item from an oscilloscope image with an image name of TBT _ I2C _ SCL, wherein the obtained test data of the test item Freq is 359.4(KHZ), the test data of the test item Tlow is 1.582(us), the test data of the test item Thigh is 1.174(us), the test data of the test item rising time Tr is 25.49ns, the test data of the test item falling time Tf is 0.3117(us), the test data of the test item Vmax is 3.32(v), and the test data of the test item Vmin is-0.2 (v).
Determining the position to be written of the image corresponding to the image name in the test report template as the rightmost area of the row where the test name TBT _ I2C _ SCL is located based on the image name TBT _ I2C _ SCL of the oscilloscope image, and determines the data writing position corresponding to the test name as the horizontal line test name TBT _ I2C _ SCL and the vertical line as the area where the test data corresponds based on the test name TBT _ I2C _ SCL corresponding to the data to be written corresponding to the image name, then the obtained plurality of test data 359.4(KHZ), 1.582(us), 1.174(us), 25.49ns, 0.3117(us), 3.32(v), -0.2(v) are written in turn into the data writing position corresponding to each test item, and writing an oscilloscope image with an image name of TBT _ I2C _ SCL into the image to be written area of the test report template, wherein the oscilloscope image written in fig. 6 is not shown.
After the data writing position and the image to-be-written position corresponding to the test name in the test report template are respectively written in the corresponding test data and the oscilloscope image, the preset specification standard associated with the test data and the data writing position can be analyzed to obtain a test result, namely the test data 359.4(KHZ) of the test item Freq and the preset specification standard Sqec: 10-400KHZ, wherein 359.4(KHZ) is within the preset rule standard range, the test result is that the test is passed, and similarly, the test data 1.582(us) corresponding to the test item Tlow, the test data 1.174(us) corresponding to the test item Thigh, the test data 25.49ns corresponding to the test item Tr, the test data 0.3117(us) corresponding to the test item Tf, the test data 3.32(v) corresponding to the test item Vmax, the test number-0.2 (v) corresponding to the test item Vmin and the associated preset specification standard are sequentially analyzed to obtain the test result corresponding to each test item, the test results are all PASS PASS, and the test results passing PASS are written into the test result writing position of the test report template. Similarly, according to the image name TBT _ I2C _ SDA of the oscilloscope image, writing the test data of the test item in the test name corresponding to the image name and the oscilloscope image into the corresponding position, and determining the test result according to the preset specification standard, where it is determined that the test data-0.6 corresponding to the test item Vmin does not meet the preset specification standard, and the obtained test result is FAIL, the position area corresponding to the test data-0.6 is highlighted, and the image position area associated with the test data-0.6 in the oscilloscope image can also be highlighted, so as to generate the test report.
It should be noted that the test report may at least include: signal integrity test reports and power integrity test reports. The signal integrity test report comprises an integrated circuit BUS (INTER IC BUS, IC2) test item, a Serial Peripheral Interface (SPI) test item, a UART test item, and a System Management BUS (smbus) test item; the power integrity test report comprises a power diploma test item, a dynamic load value test item, a power-on and power-off time test item, an overcurrent protection value test item and a current and voltage signal waveform test item.
Optionally, each test item in the integrated circuit bus test item, the serial peripheral interface test item, the serial interface test item, and the system management bus test item may include a plurality of sub-test items, for example, the i2c test item includes sub-test items Freq, Tlow, Thigh, Tr, Tf, Vmax, and Vmin, and the spi test item includes sub-test items setup time, hold time, RT, FT, overtboot, undershot, Vmax, and Vmin.
Further, after the test report is generated, the user communication identifier corresponding to the test report template may be obtained based on a mapping relationship between the test report template and the user communication identifier, which is entered in advance, and the user communication identifier is used as a target address, and then the test report is sent to the target address. Optionally, the user communication identifier may be a user mail address, or identifiers such as a micro signal, a QQ number, and a fax address, for example, the generated test report may be sent to the user mail address through related mailbox software, or the generated test report may be sent to a micro signal and a QQ of a corresponding user through instant messaging software, so that the user may receive the test report. Wherein the user may be a developer of the product.
In this embodiment, the user communication identifier corresponding to the test report template is obtained and used as the target address, and the generated test report can be sent to the target address, so that the related research and development personnel of the product can obtain the test report in real time, the test problem can be solved in time, the working efficiency is further improved, and the time cost is saved.
It should be noted that while the operations of the method of the present invention are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Rather, the steps depicted in the flowcharts may change the order of execution. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
On the other hand, fig. 7 is a schematic structural diagram of a test report generation apparatus according to an embodiment of the present application. The apparatus may be an apparatus in a terminal device, as shown in fig. 7, where the apparatus 700 includes:
a receiving module 710 for receiving at least one oscilloscope image from an oscilloscope;
the analysis module 720 is used for calling a pre-made test report template to analyze each oscilloscope image in the at least one oscilloscope image to obtain test data contained in each oscilloscope image;
and the generating module 730 is configured to write the oscilloscope image and the test data into the test report template to generate a test report.
Optionally, referring to fig. 8, the parsing module 720 includes:
an obtaining unit 721, configured to obtain an image name of each oscilloscope image and a test name corresponding to data to be written in the test report template;
an identifying unit 722 for identifying at least one test item corresponding to the test name when the image name coincides with the test name;
a reading unit 723, configured to read test data corresponding to each test item in the at least one test item from the oscilloscope image.
Optionally, the generating module 730 includes:
a first determining unit 731, configured to determine, based on an image name of the oscilloscope image, an image to-be-written position corresponding to the image name in the test report template;
a second determining unit 732 for determining a data writing position corresponding to the test name based on the test name corresponding to the data to be written corresponding to the image name;
a writing unit 733, configured to write test data into the data writing position, and write an oscilloscope image into the image to-be-written position of the test report template;
the third determining unit 734 is configured to determine a test result based on the test data, and obtain a test report.
Optionally, the third determining unit 734 is specifically configured to:
reading test data from the data writing position of the test report template;
analyzing the test data and a preset specification standard associated with the data writing position to obtain a test result;
and writing the test result into the test result to-be-written position of the test report template to generate a test report.
Optionally, the third determining unit 734 is further configured to:
determining a position area of test data corresponding to the test item which does not meet the requirement and an image position area related to the test data in the oscilloscope image;
highlighting the location area and the image location area.
Optionally, the apparatus further comprises:
an obtaining module 740, configured to obtain a user communication identifier corresponding to the test report template;
and a sending module 750, configured to send the test report to the target address by using the user communication identifier as the target address.
Optionally, the test report includes at least one of: the method comprises the following steps of (1) reporting a signal integrity test and a power integrity test, wherein the signal integrity test comprises an integrated circuit bus i2c test item, a serial peripheral interface spi test item, a serial interface uart test item and a system management bus smbus test item; the power integrity test report comprises a power diploma test item, a dynamic load value test item, a power-on and power-off time test item, an overcurrent protection value test item and a current and voltage signal waveform test item.
The test report generation device provided by the embodiment of the application receives at least one oscilloscope image from an oscilloscope through the receiving module, analyzes each oscilloscope image in the at least one oscilloscope image by calling a pre-manufactured test report template through the analyzing module to obtain test data corresponding to each oscilloscope image, and writes the oscilloscope image and the test data into the test report template through the generation module to generate a test report. The device uses the uniform test report template, overcomes the problem of test data errors or non-uniform formats caused by human factors, can call the pre-made test report template to analyze and process each oscilloscope image in at least one oscilloscope image, thereby automatically identifying the test data, writing the oscilloscope images and the test data into the test report template to further generate the test report, saving the generation time of the test report and improving the working efficiency to a great extent.
In another aspect, an apparatus provided in this embodiment of the present application includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the test report generating method as described above.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a computer system of a terminal device or a server according to an embodiment of the present application.
As shown in fig. 9, the computer system 900 includes a Central Processing Unit (CPU)901 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)902 or a program loaded from a storage section 908 into a Random Access Memory (RAM) 903. In the RAM903, various programs and data necessary for the operation of the system 900 are also stored. The CPU901, ROM902, and RAM903 are connected to each other via a bus 904. An input/output (I/O) interface 906 is also connected to bus 904.
The following components are connected to the I/O interface 905: an input portion 906 including a keyboard, a mouse, and the like; an output section 907 including components such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. A drive 910 is also connected to the I/O interface 906 as needed. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 910 as necessary, so that a computer program read out therefrom is mounted into the storage section 908 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication part 903, and/or installed from the removable medium 911. The above-described functions defined in the system of the present application are executed when the computer program is executed by a Central Processing Unit (CPU) 901.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having 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 portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, and may be described as: a processor, comprising: the device comprises a receiving module, an analysis module and a generation module. Where the names of these units or modules do not in some way constitute a limitation on the units or modules themselves, for example, the receiving module may also be described as "for receiving at least one oscilloscope image from an oscilloscope".
As another aspect, the present application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or may be separate and not incorporated into the electronic device. The computer-readable storage medium stores one or more programs that, when executed by one or more processors, perform the test report generation method described in the present application:
receiving at least one oscilloscope image from an oscilloscope;
calling a pre-made test report template to analyze and process each oscilloscope image in the at least one oscilloscope image to obtain test data contained in each oscilloscope image;
and writing the oscilloscope image and the test data into the test report template to generate a test report.
To sum up, according to the test report generation method, the device, the apparatus, and the storage medium provided in the embodiments of the present application, at least one oscilloscope image is received from an oscilloscope, a pre-made test report template is called to analyze each oscilloscope image in the at least one oscilloscope image, so as to obtain test data corresponding to each oscilloscope image, and the oscilloscope image and the test data are written into the test report template, so as to generate a test report. According to the technical scheme, the unified test report template is used, the problem that test data are wrong or formats are not uniform due to human factors is solved, the pre-manufactured test report template can be called to analyze each oscilloscope image in at least one oscilloscope image, so that the test data are automatically identified, the oscilloscope images and the test data are written into the test report template, the test report is generated, the generation time of the test report is saved, and the working efficiency is improved to a great extent.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention as referred to in the present application is not limited to the embodiments with a specific combination of the above-mentioned features, but also covers other embodiments with any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. A method for generating a test report, comprising:
receiving at least one oscilloscope image from an oscilloscope;
calling a pre-made test report template to analyze and process each oscilloscope image in the at least one oscilloscope image to obtain test data contained in each oscilloscope image;
and writing the oscilloscope image and the test data into the test report template to generate a test report.
2. The method of claim 1, wherein calling a pre-made test report template to perform parsing on each oscilloscope image in the at least one oscilloscope image to obtain test data included in each oscilloscope image comprises:
acquiring an image name of each oscilloscope image and a test name corresponding to data to be written in the test report template;
when the image name is consistent with the test name, identifying at least one test item corresponding to the test name;
and reading test data corresponding to each test item in the at least one test item from the oscilloscope image.
3. The method of claim 1, wherein writing the oscilloscope image and the test data to the test report template to generate a test report comprises:
determining an image to-be-written position corresponding to the image name in the test report template based on the image name of the oscilloscope image;
determining a data writing position corresponding to the test name based on the test name corresponding to the data to be written corresponding to the image name;
writing the test data into the data writing position, and writing the oscilloscope image into the image to-be-written position of the test report template;
and determining a test result based on the test data to obtain a test report.
4. The method of claim 3, wherein determining a test result based on the test data, resulting in a test report, comprises:
reading the test data from the data write location of the test report template;
analyzing the test data and a preset specification standard associated with the data writing position to obtain a test result;
and writing the test result into the test result to-be-written position of the test report template to generate a test report.
5. The method of claim 4, wherein when the test result indicates that the test result is unsatisfactory, the method further comprises:
determining a position area of test data corresponding to the test item which does not meet the requirement and an image position area related to the test data in the oscilloscope image;
highlighting the location area and the image location area.
6. The method of claim 1, wherein after generating the test report, the method further comprises:
acquiring a user communication identifier corresponding to the test report template;
and taking the user communication identification as a target address, and sending the test report to the target address.
7. The method of claim 1, wherein the test report comprises at least one of: the method comprises the following steps of (1) carrying out a signal integrity test report and a power integrity test report, wherein the signal integrity test report comprises an integrated circuit bus i2c test item, a serial peripheral interface spi test item, a serial interface uart test item and a system management bus smbus test item; the power integrity test report comprises a power diplave size test item, a dynamic load value test item, a power-on and power-off time test item, an overcurrent protection value test item and a current and voltage signal waveform test item.
8. A test report generation apparatus, the apparatus comprising:
the receiving module is used for receiving at least one oscilloscope image from the oscilloscope;
the analysis module is used for calling a pre-made test report template to analyze each oscilloscope image in at least one oscilloscope image to obtain test data contained in each oscilloscope image;
and the generating module is used for writing the oscilloscope image and the test data into the test report template to generate a test report.
9. A computer device, characterized in that the computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, the processor being adapted to implement the method according to any of claims 1-7 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, the computer program being for implementing the method of any one of claims 1-7.
CN202010722904.0A 2020-07-24 2020-07-24 Test report generation method, device, equipment and storage medium Pending CN113971111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010722904.0A CN113971111A (en) 2020-07-24 2020-07-24 Test report generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010722904.0A CN113971111A (en) 2020-07-24 2020-07-24 Test report generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113971111A true CN113971111A (en) 2022-01-25

Family

ID=79585571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010722904.0A Pending CN113971111A (en) 2020-07-24 2020-07-24 Test report generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113971111A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114610004A (en) * 2022-05-10 2022-06-10 深圳市星卡软件技术开发有限公司 Method and device for testing circuit fault of automobile and computer equipment
CN116298932A (en) * 2023-05-18 2023-06-23 江苏时代新能源科技有限公司 Battery test data processing method, system, device, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114610004A (en) * 2022-05-10 2022-06-10 深圳市星卡软件技术开发有限公司 Method and device for testing circuit fault of automobile and computer equipment
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

Similar Documents

Publication Publication Date Title
CN110347587B (en) APP compatibility testing method and device, computer equipment and storage medium
CN113971111A (en) Test report generation method, device, equipment and storage medium
CN103823758A (en) Browser testing method and device
CN103698686A (en) Signal testing method and signal testing equipment
CN110262979B (en) Simulated third-party data source testing method based on MOCK platform
CN109684188A (en) Test method and device
CN105138463A (en) Testing method and system for mobile terminal software
CN103913672B (en) A kind of satellite low frequency interface automatization test system
CN110647523B (en) Data quality analysis method and device, storage medium and electronic equipment
CN103905817A (en) Automatic video measuring system based on LabVIEW and VideoMASTER
CN113342692A (en) Test case automatic generation method and device, electronic equipment and storage medium
CN109143111A (en) A kind of power supply changes test method, device and equipment
CN107315670A (en) A kind of intelligent terminal method of testing, apparatus and system
CN110990259A (en) Test method of keyboard-free and screen-free equipment
CN103546342A (en) Terminal consistency testing method and API (application program interface) interface general adapter for terminal consistency testing method
CN111127223A (en) Insurance product testing method and device and storage medium
CN110991150A (en) Data format conversion method and device and account reporting system
CN114896175A (en) Automatic test method, device, equipment and medium for report export function
CN111079185B (en) Database information processing method and device, storage medium and electronic equipment
CN114061646A (en) Automatic verification equipment for universal instrument and meter
CN108595153B (en) Radar equipment parameter testing development model based on general instrument
CN218788073U (en) Circuit equipment testing device
CN112101000A (en) Information consistency test method, device, equipment and computer readable storage medium
CN113626301A (en) Method and device for generating test script
CN111211848B (en) Automatic test method and system for antenna electric tuning unit and related components

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