CN-121997907-A - Signal test report generation method, device, equipment, medium and program product
Abstract
The application provides a signal test report generation method, a signal test report generation device, a signal test report generation equipment, a signal test report generation medium and a signal test report generation program product. In the method, parameter extraction processing is carried out on signal waveform data according to a waveform parameter extraction strategy to obtain parameter data, and then matching processing is carried out on each parameter data and a signal test report template to obtain parameter data corresponding to each placeholder in the signal test report template. According to a preset data conversion rule corresponding to the placeholder, processing an initial parameter value in parameter data corresponding to the placeholder to obtain a target data value corresponding to the placeholder; and finally, replacing each placeholder in the signal test report template with a corresponding target data value to obtain a signal test report. According to the scheme, the parameter data are extracted, the target data value corresponding to each placeholder is further determined, the placeholders in the signal test report template are replaced by the target data values, the signal test report is obtained, and the generation efficiency of the signal test report is improved.
Inventors
- SUN YONGQI
Assignees
- 上海远图未来信息技术有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20251224
Claims (11)
- 1. A signal test report generating method, comprising: acquiring a waveform parameter extraction strategy, signal waveform data and a signal test report template, wherein the signal test report template comprises a placeholder; Performing parameter extraction processing on the signal waveform data according to the waveform parameter extraction strategy to obtain parameter data, wherein each parameter data comprises a parameter name and an initial parameter value; Matching each parameter data with the signal test report template to obtain the parameter data corresponding to each placeholder; For each placeholder, processing an initial parameter value in parameter data corresponding to the placeholder according to a preset data conversion rule corresponding to the placeholder to obtain a target data value corresponding to the placeholder; And for each placeholder, replacing the placeholder in the signal test report template with a target data value corresponding to the placeholder to obtain a signal test report.
- 2. The method of claim 1, wherein the acquiring a waveform parameter extraction strategy comprises: acquiring waveform parameter extraction strategy input by tester, or And acquiring waveform parameter extraction strategies corresponding to the test item identifier and the equipment identifier to be tested from a database according to the acquired test item identifier and the equipment identifier to be tested.
- 3. The method of claim 1, wherein the matching the parameter data with the signal test report template to obtain the parameter data corresponding to each placeholder comprises: determining a target parameter name corresponding to each placeholder in the signal test report template according to the corresponding relation between the preset placeholder and the parameter name; If all the parameter data comprise each target parameter name, for each placeholder, the parameter data comprising the target parameter name corresponding to the placeholder are used as the parameter data corresponding to the placeholder.
- 4. The method of claim 1, wherein the matching the parameter data with the signal test report template to obtain the parameter data corresponding to each placeholder comprises: inputting each parameter data, the signal test report template and a preset prompt word into a preset large language model to obtain parameter data corresponding to each placeholder, wherein the preset large language model and the pre-trained report template are used for obtaining a neural network model of the parameter data corresponding to each placeholder.
- 5. The method of claim 1, wherein the preset data conversion rules include a unit conversion rule and a decimal point number conversion rule.
- 6. The method according to any one of claims 1 to 5, further comprising: For each placeholder, generating a test result corresponding to the placeholder according to a target data value corresponding to the placeholder and a preset threshold range, wherein the test result is used for indicating whether the target data value corresponding to the placeholder is abnormal or not; and filling the test result corresponding to each placeholder into the signal test report.
- 7. The method according to any one of claims 1 to 5, wherein for each placeholder, according to a preset data conversion rule corresponding to the placeholder, processing an initial parameter value in parameter data corresponding to the placeholder, and before obtaining a target data value corresponding to the placeholder, the method further comprises: For each placeholder, generating a verification result corresponding to the placeholder according to an initial parameter value in parameter data corresponding to the placeholder and a unit range corresponding to the placeholder, wherein the verification result is used for indicating whether matching is correct or not; for each placeholder, according to a preset data conversion rule corresponding to the placeholder, processing an initial parameter value in parameter data corresponding to the placeholder to obtain a target data value corresponding to the placeholder, including: And if the verification result corresponding to each placeholder indicates that the matching is correct, processing the initial parameter value in the parameter data corresponding to the placeholder according to the preset data conversion rule corresponding to the placeholder for each placeholder to obtain the target data value corresponding to the placeholder.
- 8. A signal test report generating apparatus, comprising: The acquisition module is used for acquiring a waveform parameter extraction strategy, signal waveform data and a signal test report template, wherein the signal test report template comprises placeholders; The processing module is used for carrying out parameter extraction processing on the signal waveform data according to the waveform parameter extraction strategy to obtain parameter data, and each parameter data comprises a parameter name and an initial parameter value; the processing module is further used for carrying out matching processing on each parameter data and the signal test report template to obtain parameter data corresponding to each placeholder; The processing module is further configured to, for each placeholder, process an initial parameter value in parameter data corresponding to the placeholder according to a preset data conversion rule corresponding to the placeholder, so as to obtain a target data value corresponding to the placeholder; And the generating module is used for replacing each placeholder in the signal test report template with a target data value corresponding to the placeholder to obtain a signal test report.
- 9. An electronic device, comprising: a processor, a memory, a communication interface; the memory is used for storing executable instructions of the processor; Wherein the processor is configured to perform the signal test report generating method of any of claims 1 to 7 via execution of the executable instructions.
- 10. A readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the signal test report generating method of any of claims 1 to 7.
- 11. A computer program product comprising a computer program for implementing the signal test report generating method of any one of claims 1 to 7 when executed by a processor.
Description
Signal test report generation method, device, equipment, medium and program product Technical Field The present application relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, a medium, and a program product for generating a signal test report. Background With the continuous development of technology, various electronic devices need to be subjected to signal testing after development to determine whether the electronic devices are abnormal. In the prior art, for a signal testing mode, an oscilloscope is generally used to be connected with an electronic device, and a tester determines corresponding parameters according to own experience by observing the waveform of a signal on the oscilloscope, so as to write a test report. In summary, the existing signal test report needs to manually determine parameters and write, resulting in low generation efficiency. Disclosure of Invention The signal test report generation method, device, equipment, medium and program product provided by the embodiment of the application are used for solving the problem of low generation efficiency caused by the fact that the existing signal test report needs to manually determine parameters and write. In a first aspect, an embodiment of the present application provides a signal test report generating method, including: acquiring a waveform parameter extraction strategy, signal waveform data and a signal test report template, wherein the signal test report template comprises a placeholder; Performing parameter extraction processing on the signal waveform data according to the waveform parameter extraction strategy to obtain parameter data, wherein each parameter data comprises a parameter name and an initial parameter value; Matching each parameter data with the signal test report template to obtain the parameter data corresponding to each placeholder; For each placeholder, processing an initial parameter value in parameter data corresponding to the placeholder according to a preset data conversion rule corresponding to the placeholder to obtain a target data value corresponding to the placeholder; And for each placeholder, replacing the placeholder in the signal test report template with a target data value corresponding to the placeholder to obtain a signal test report. In one possible implementation manner, the acquiring a waveform parameter extraction strategy includes: acquiring waveform parameter extraction strategy input by tester, or And acquiring waveform parameter extraction strategies corresponding to the test item identifier and the equipment identifier to be tested from a database according to the acquired test item identifier and the equipment identifier to be tested. In a possible implementation manner, the matching processing is performed on each parameter data and the signal test report template to obtain parameter data corresponding to each placeholder, including: determining a target parameter name corresponding to each placeholder in the signal test report template according to the corresponding relation between the preset placeholder and the parameter name; If all the parameter data comprise each target parameter name, for each placeholder, the parameter data comprising the target parameter name corresponding to the placeholder are used as the parameter data corresponding to the placeholder. In a possible implementation manner, the matching processing is performed on each parameter data and the signal test report template to obtain parameter data corresponding to each placeholder, including: inputting each parameter data, the signal test report template and a preset prompt word into a preset large language model to obtain parameter data corresponding to each placeholder, wherein the preset large language model and the pre-trained report template are used for obtaining a neural network model of the parameter data corresponding to each placeholder. In one possible implementation, the preset data conversion rule includes a unit conversion rule and a decimal point number conversion rule. In one possible embodiment, the method further comprises: For each placeholder, generating a test result corresponding to the placeholder according to a target data value corresponding to the placeholder and a preset threshold range, wherein the test result is used for indicating whether the target data value corresponding to the placeholder is abnormal or not; and filling the test result corresponding to each placeholder into the signal test report. In a possible implementation manner, for each placeholder, according to a preset data conversion rule corresponding to the placeholder, the method further includes, before processing an initial parameter value in the parameter data corresponding to the placeholder to obtain the target data value corresponding to the placeholder: For each placeholder, generating a verification result corresponding to the placeholder according to an i