Software testing method, device, storage medium and electronic device
By receiving the test request, determining the simulation circuit diagram and parameters, and using the characteristic value matching judgment of the benchmark and reference simulation data, the problem of low simulation software testing efficiency in the existing technology is solved, and more efficient and accurate test results are achieved.
Patent Information
- Application Number
- CN202411007716.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-25
AI Technical Summary
In the existing technology, the testing efficiency of simulation software is low. R&D personnel need to observe a large number of simulation results to determine whether there are abnormalities in the new version of the software, which can easily lead to data omissions and incorrect result judgments.
By receiving test requests, the simulation circuit diagram and parameters are determined, the benchmark simulation software and the simulation software under test are used to generate benchmark and reference simulation data, and feature values are extracted for matching judgment to improve test efficiency and accuracy.
It improves the accuracy and efficiency of simulation software testing, reduces testing costs, and reduces manual verification time and errors.
Smart Images

Figure CN118536452B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a software testing method, device, storage medium and electronic device. Background Art
[0002] Nowadays, it is very common to use various simulation methods to assist circuit design in industrial design. The use of simulation software can detect defects and faults in the design in advance, and then quickly adjust the parameters and connection methods of components. This not only saves the designer's time cost, but also greatly reduces the economic costs of purchasing and replacing actual equipment.
[0003] In this context, simulation software must be constantly updated and iterated to meet the increasingly diverse simulation needs. While developing new functional requirements, some errors are bound to occur, which will affect the original simulation results.
[0004] However, currently, R&D personnel often need to observe the simulation results of hundreds of schematics to determine whether there are any anomalies in the new version of software. Usually, the simulation results of a schematic contain tens of thousands or even hundreds of thousands of simulation result data. If R&D personnel verify all simulation results manually, it will not only take a lot of time and experience, but also easily cause data omissions and lead to misjudgment of results.
[0005] Therefore, how to accurately test simulation software and improve testing efficiency is an urgent problem to be solved. Summary of the invention
[0006] This specification provides a software testing method, device, storage medium and electronic device to partially solve the above problems existing in the prior art.
[0007] This manual adopts the following technical solutions:
[0008] This specification provides a software testing method, including:
[0009] Receiving a test request for simulation software to be tested, and determining a simulation circuit diagram and simulation parameters according to the test request, wherein the simulation software to be tested is electrical simulation software;
[0010] Input the simulation circuit diagram and the simulation parameters into the published benchmark simulation software to determine simulation data as benchmark simulation data through the benchmark simulation software, and input the simulation circuit diagram and the simulation parameters into the simulation software to be tested to determine simulation data as reference simulation data through the simulation software to be tested;
[0011] Extracting the eigenvalue corresponding to the benchmark simulation data as the benchmark eigenvalue;
[0012] Based on the benchmark eigenvalue, determining an eigenvalue corresponding to the reference simulation data as a reference eigenvalue;
[0013] The simulation software to be tested is tested according to the benchmark characteristic value and the reference characteristic value.
[0014] Optionally, the benchmark simulation data and the reference simulation data include: waveform data of the electrical signal in the time domain;
[0015] Extracting the characteristic value corresponding to the benchmark simulation data as the benchmark characteristic value specifically includes:
[0016] Determine a characteristic value of the benchmark simulation data in the time domain as a benchmark time domain characteristic value;
[0017] Converting the reference simulation data into spectrum data as reference spectrum data;
[0018] Determine, according to the reference frequency spectrum data, a characteristic value of the reference simulation data in the frequency domain as a reference frequency domain characteristic value;
[0019] The reference eigenvalue is determined according to the reference time domain eigenvalue and the reference frequency domain eigenvalue.
[0020] Optionally, based on the benchmark eigenvalue, determining an eigenvalue corresponding to the reference simulation data as a reference eigenvalue specifically includes:
[0021] Determine, according to the benchmark time-domain characteristic value, the characteristic value of the reference simulation data in the time domain as the reference time-domain characteristic value;
[0022] Converting the reference simulation data into spectrum data as reference spectrum data;
[0023] Determine, according to the reference frequency domain eigenvalue and the reference spectrum data, an eigenvalue of the reference simulation data in the frequency domain as a reference frequency domain eigenvalue;
[0024] The reference eigenvalue is determined according to the reference time domain eigenvalue and the reference frequency domain eigenvalue.
[0025] Optionally, determining a characteristic value of the benchmark simulation data in the time domain as a benchmark time domain characteristic value specifically includes:
[0026] Determine the maximum value of the electrical signal and the minimum value of the electrical signal in the reference simulation data, and use the sampling point corresponding to the maximum value of the electrical signal as the first sampling point, and use the sampling point corresponding to the minimum value of the electrical signal as the second sampling point;
[0027] The reference time-domain characteristic value is determined according to the maximum value of the electrical signal and the minimum value of the electrical signal.
[0028] Optionally, determining, according to the reference spectrum data, a characteristic value of the reference simulation data in the frequency domain as a reference frequency domain characteristic value specifically includes:
[0029] The energy values corresponding to the frequency points in the reference spectrum data are sorted in descending order, and the frequency points whose energy values are before the preset positions are taken as the target frequency points, and the energy values corresponding to the target frequency points are taken as the target energy values;
[0030] The reference frequency domain eigenvalue is determined according to the target energy value corresponding to each target frequency point.
[0031] Optionally, based on the benchmark eigenvalue, determining an eigenvalue corresponding to the reference simulation data as a reference eigenvalue specifically includes:
[0032] determining an electrical signal corresponding to the first sampling point in the reference simulation data and an electrical signal corresponding to the second sampling point in the reference simulation data as reference electrical signals, and determining a reference time domain eigenvalue based on the reference electrical signals, and
[0033] Converting the reference simulation data into spectrum data as reference spectrum data, determining the energy value corresponding to each target frequency point in the reference spectrum data as a reference energy value, and determining a reference frequency domain eigenvalue according to the reference energy value corresponding to each target frequency point;
[0034] The reference eigenvalue is determined according to the reference time domain eigenvalue and the reference frequency domain eigenvalue.
[0035] Optionally, testing the simulation software to be tested according to the benchmark characteristic value and the reference characteristic value specifically includes:
[0036] Determining whether the benchmark time domain eigenvalue matches the reference time domain eigenvalue, and whether the benchmark frequency domain eigenvalue matches the reference frequency domain eigenvalue;
[0037] If the benchmark time domain eigenvalue matches the reference time domain eigenvalue, and the benchmark frequency domain eigenvalue matches the reference frequency domain eigenvalue, it is determined that the simulation software to be tested passes the test.
[0038] Optionally, determining whether the benchmark time domain eigenvalue matches the reference time domain eigenvalue, and determining whether the benchmark frequency domain eigenvalue matches the reference frequency domain eigenvalue specifically includes:
[0039] determining a deviation between the benchmark time domain feature value and the reference time domain feature value as a first deviation, and if the first deviation is less than a preset time domain comparison error, determining that the benchmark time domain feature matches the reference time domain feature, and
[0040] A deviation between the benchmark frequency domain eigenvalue and the reference frequency domain eigenvalue is determined as a second deviation, and if the second deviation is less than a preset frequency domain comparison error, it is determined that the benchmark frequency domain eigenvalue and the reference frequency domain eigenvalue match.
[0041] Optionally, testing the simulation software to be tested according to the benchmark characteristic value and the reference characteristic value specifically includes: the method further includes:
[0042] According to the simulation parameters, the benchmark simulation data and the reference simulation data are respectively divided into a plurality of data intervals;
[0043] If the benchmark time domain eigenvalue matches the reference time domain eigenvalue, and the benchmark frequency domain eigenvalue matches the reference frequency domain eigenvalue, then determining that the simulation software to be tested passes the test specifically includes:
[0044] For each data interval, determining a baseline time domain feature value corresponding to the data interval and a reference time domain feature value corresponding to the data interval;
[0045] If the benchmark frequency domain eigenvalue matches the reference frequency domain eigenvalue, and the number of data intervals in which the benchmark time domain eigenvalue matches the reference time domain eigenvalue is greater than a preset number of intervals, it is determined that the simulation software to be tested passes the test.
[0046] This specification provides a software testing device, including:
[0047] A receiving module, used for receiving a test request for the simulation software to be tested, and determining a simulation circuit diagram and simulation parameters according to the test request, wherein the simulation software to be tested is electrical simulation software;
[0048] An input module, used for inputting the simulation circuit diagram and the simulation parameters into the published benchmark simulation software, so as to determine the simulation data through the benchmark simulation software as the benchmark simulation data, and inputting the simulation circuit diagram and the simulation parameters into the simulation software to be tested, so as to determine the simulation data through the simulation software to be tested as the reference simulation data;
[0049] An extraction module, used for determining a characteristic value corresponding to the benchmark simulation data as a benchmark characteristic value;
[0050] A determination module, configured to determine, based on the benchmark eigenvalue, an eigenvalue corresponding to the reference simulation data as a reference eigenvalue;
[0051] A testing module is used to test the simulation software to be tested according to the benchmark characteristic value and the reference characteristic value.
[0052] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned software testing method is implemented.
[0053] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned software testing method when executing the program.
[0054] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:
[0055] In the software testing method provided in the present specification, a test request for the simulation software to be tested is received, and according to the test request, a simulation circuit diagram and simulation parameters are determined; the simulation circuit diagram and the simulation parameters are input into the published benchmark simulation software to determine simulation data as benchmark simulation data through the benchmark simulation software, and the simulation circuit diagram and the simulation parameters are input into the simulation software to be tested to determine simulation data as reference simulation data through the simulation software to be tested; feature extraction is performed on the benchmark simulation data to obtain a benchmark feature value; based on the benchmark feature value, feature extraction is performed on the reference simulation data to obtain a reference feature value; and the test result of the simulation software to be tested is determined according to the benchmark feature value and the reference feature value.
[0056] It can be seen from the above method that in the process of testing the simulation software to be tested, this scheme can use the output results of the published simulation software as a benchmark and perform feature extraction, then extract features from the reference simulation data based on the extracted features, and determine the final test results based on the reference feature values and the benchmark feature values. Compared with the current method of judging whether there are abnormalities in the new version of the software by observing the simulation results of the schematic diagram by R&D personnel, this scheme improves the accuracy of the test results, further improves the efficiency of testing the simulation software, and reduces the testing cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:
[0058] Figure 1 A flowchart of a software testing method provided in this specification;
[0059] Figure 2 A schematic diagram of simulation data provided in this specification;
[0060] Figure 3 A schematic diagram of spectrum data provided in this specification;
[0061] Figure 4 A schematic diagram of the overall process of testing the simulation software provided in this specification;
[0062] Figure 5 A schematic diagram of a software testing device provided in this specification;
[0063] Figure 6 A method corresponding to the Figure 1 Schematic diagram of electronic equipment. DETAILED DESCRIPTION
[0064] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0065] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.
[0066] Figure 1 A flowchart of a software testing method provided in this specification includes the following steps:
[0067] S101: receiving a test request for simulation software to be tested, and determining a simulation circuit diagram and simulation parameters according to the test request, wherein the simulation software to be tested is electrical simulation software.
[0068] In traditional automated testing methods, the simulation results of the software to be tested are usually compared directly with the correct results. The disadvantage of this method is that the simulation results not only have a huge amount of data, but also have large fluctuations in data accuracy. Comparing one by one is not only time-consuming but also has a high probability of differences.
[0069] Based on this, this specification provides a software testing method, which can significantly reduce the complexity of comparison while maintaining test accuracy by extracting characteristic values to obtain key information of simulation results.
[0070] In this specification, the execution entity used to implement a software testing method can be a terminal device such as a laptop computer, a desktop computer, or, of course, a server. For the sake of ease of description, the following will only take the terminal device as an example of the execution entity to illustrate a software testing method provided in this specification.
[0071] The terminal device may receive a test request for the simulation software to be tested, and then obtain an electrical diagram file and pre-set simulation parameters according to the test request. The terminal device may then parse the electrical diagram file to obtain a simulation circuit diagram.
[0072] It should be noted that the simulation software mentioned in this specification may refer to electrical simulation software. In practical applications, electrical simulation software is a type of software tool specifically used to simulate electrical systems, circuits, equipment and their operating behaviors. These software help users understand the principles, design, debugging and troubleshooting of electrical systems by simulating real electrical environments, and are widely used in education, scientific research, industry and other fields.
[0073] On this basis, the above simulation parameters can refer to the solution parameters of the electrical simulation software, including the start time of the electrical signal waveform window , End time , waveform sampling rate , Waveform segmentation step 、Number of high energy frequency points selected , time domain comparison error threshold and frequency domain comparison error threshold wait.
[0074] S102: Input the simulation circuit diagram and the simulation parameters into the published benchmark simulation software to determine the simulation data as the benchmark simulation data through the benchmark simulation software, and input the simulation circuit diagram and the simulation parameters into the simulation software to be tested to determine the simulation data as the reference simulation data through the simulation software to be tested.
[0075] The terminal device can input the simulation circuit diagram and simulation parameters into the published benchmark simulation software, and then run the benchmark simulation software to obtain the simulation data output by the benchmark simulation software as the benchmark simulation data. At the same time, the terminal device can input the simulation circuit diagram and simulation parameters into the simulation software to be tested, and then run the simulation software to be tested to obtain the simulation data output by the simulation software to be tested as the reference simulation data.
[0076] It should be noted that since the benchmark simulation software is already released, it can be considered that the test has been completed before its release and the output simulation data is relatively accurate. Therefore, the data output by the benchmark simulation software can be used as a benchmark to test the simulation software under test.
[0077] In this specification, the simulation data output by the simulation software may be waveform data of electrical signals such as voltage, current and power in the time domain. Taking the above simulation data as waveform data of voltage as an example, this specification provides a simulation data schematic diagram, such as Figure 2 shown.
[0078] Figure 2 This is a schematic diagram of simulation data provided in this specification.
[0079] The simulation data includes several sampling points, each sampling point corresponds to a moment, and the figure shows the change of the voltage value output by the simulation software over time.
[0080] It should be noted that, since the benchmark simulation software and the reference simulation software use the same simulation parameters, the time length of the waveform data output by the two is the same, and each sampling point in the benchmark simulation data and the reference simulation data corresponds one to one.
[0081] The terminal device can start the time according to the waveform window and waveform window end time , intercept a section of waveform data output by the benchmark simulation software. For the benchmark simulation software, the waveform data output by the benchmark simulation software can be expressed as:
[0082]
[0083] in, Benchmark Simulation Software Output waveform data (simulation data), Indicates the signal value, Indicates the sampling point number.
[0084] Correspondingly, the waveform data output by the simulation software to be tested can be expressed as:
[0085]
[0086] in, Indicates the simulation software to be tested Output waveform data.
[0087] Furthermore, the terminal device can process the above waveform data according to the waveform segmentation step size. Perform interval division to obtain N data intervals, where:
[0088]
[0089] For the benchmark simulation data output by the benchmark simulation software, the waveform data corresponding to each interval can be expressed as:
[0090]
[0091] in, represents the benchmark simulation data corresponding to each interval, n=0...N-1, represents the interval number, k=0,...,K-1, K=M×N.
[0092] For the reference simulation data output by the reference simulation software, the waveform data corresponding to each interval can be expressed as:
[0093]
[0094] in, Represents the reference simulation data corresponding to each interval.
[0095] S103: Extracting eigenvalues corresponding to the benchmark simulation data as benchmark eigenvalues.
[0096] The terminal device may extract the eigenvalue corresponding to the benchmark simulation data as the benchmark eigenvalue.
[0097] The terminal device can determine the characteristic value of the reference simulation data in the time domain as the reference time domain characteristic value, and then perform Fourier transform on the reference simulation data to convert the waveform data in the time domain into spectrum data in the frequency domain as the reference spectrum data. The reference spectrum data can be expressed as:
[0098]
[0099] in, Indicates energy value, f indicates frequency point. For ease of understanding, this specification provides a schematic diagram of spectrum data, such as Figure 3 shown.
[0100] Figure 3 This is a spectrum data diagram provided in this specification, which reflects the change of the energy value of the electrical signal with the frequency.
[0101] The terminal device can then determine the eigenvalues of the benchmark simulation data in the frequency domain based on the benchmark spectrum data as benchmark frequency domain eigenvalues, and further determine the benchmark eigenvalues based on the benchmark time domain eigenvalues and the benchmark frequency domain eigenvalues.
[0102] Specifically, in the process of extracting the reference time domain characteristic value, for each data interval of the reference simulation data, the terminal device can determine the maximum value of the electrical signal in the data interval. and the minimum value of the electrical signal , and the sampling point corresponding to the maximum value of the electrical signal is taken as the first sampling point , the sampling point corresponding to the minimum value of the electrical signal is taken as the second sampling point , then add these four values of each interval to the feature value set to obtain the benchmark time domain feature , the benchmark time domain feature can be expressed as:
[0103]
[0104] It should be noted that the terminal device may not divide the reference simulation data into data intervals, or may treat the simulation data as a whole as a data interval. In this case, the reference time domain feature may only include a first sampling point and a second sampling point.
[0105] In the process of extracting the reference frequency domain features, the terminal device can sort the energy values corresponding to each frequency point in the reference spectrum data in order from large to small, and take the frequency point with an energy value before a preset position as the target frequency point, and then take the energy value corresponding to each target frequency point as the target energy value.
[0106] The reference frequency domain eigenvalue is determined according to the target energy value corresponding to each target frequency point.
[0107] It should be pointed out that the process of determining the reference frequency domain eigenvalue does not require distinguishing the data interval. In other words, the reference frequency domain eigenvalue is obtained by extracting the eigenvalue of the spectrum data corresponding to the entire reference simulation data.
[0108] Among them, the terminal device can select Q frequency points with the highest energy value as the target frequency points, and add these target frequency points and the eigenvalues corresponding to each target frequency point to the eigenvalue set to obtain the reference frequency domain eigenvalue, which can be expressed as:
[0109]
[0110] in, Indicates the target frequency with the maximum energy value. represents the maximum energy value, Indicates the target frequency point whose energy value is ranked as Q, Indicates the energy value of the ranking Q.
[0111] In addition, in some embodiments, the benchmark simulation data output by the benchmark simulation software may also include waveform data and spectrum data. In this case, the terminal device may not perform Fourier transform on the waveform data, but directly determine the benchmark spectrum characteristics based on the spectrum data contained in the benchmark simulation data. The same is true for the simulation software to be tested.
[0112] S104: Based on the benchmark eigenvalue, determine an eigenvalue corresponding to the reference simulation data as a reference eigenvalue.
[0113] The terminal device can determine the characteristic value of the reference simulation data in the time domain according to the reference time domain characteristic value, and convert the reference simulation data into spectrum data as the reference spectrum data. , the reference spectrum data can be expressed as:
[0114]
[0115] The terminal device can then determine the eigenvalue of the reference simulation data in the frequency domain based on the benchmark frequency domain eigenvalue and the reference spectrum data as the reference frequency domain eigenvalue, and then determine the reference eigenvalue based on the reference time domain eigenvalue and the reference frequency domain eigenvalue.
[0116] Specifically, the terminal device can determine the time domain eigenvalue corresponding to the reference simulation data as the reference time domain eigenvalue based on the first sampling point corresponding to the maximum value of the electrical signal in the benchmark time domain eigenvalue and the second sampling point corresponding to the minimum value of the electrical signal.
[0117] Among them, the terminal device can determine the electrical signal corresponding to the first sampling point in the reference simulation data and the electrical signal corresponding to the second sampling point in the reference simulation data as reference electrical signals, and determine the reference time domain eigenvalue based on the reference electrical signals.
[0118] In each data interval of the reference simulation data, the terminal device can determine the first sampling point The corresponding electrical signal in each data interval , and the second sampling point The corresponding electrical signal in each data interval , then add the above eigenvalues of each interval to the eigenvalue set to obtain the reference time domain feature , the reference time domain feature can be expressed as:
[0119]
[0120] Of course, in actual applications, the terminal device may not determine the first sampling point and the second sampling point based on the maximum and minimum values of the electrical signal, but directly select a number of designated sampling points in the reference simulation data, and determine the reference time domain features based on these designated sampling points and their corresponding signal values. Then, the signal values corresponding to these designated sampling points are further determined in the reference simulation data, and then the reference time domain features are determined based on these designated sampling points and their corresponding signal values in the reference simulation data.
[0121] At the same time, the terminal device can determine the frequency domain eigenvalues corresponding to the benchmark simulation data based on each target frequency point in the benchmark spectrum data as reference frequency domain eigenvalues.
[0122] Among them, the terminal device can determine Q target frequency points ( ) The energy value corresponding to the reference spectrum data is used as the reference energy value. Each reference energy value can be expressed as:
[0123]
[0124] Afterwards, the terminal device can add the above target frequency points and energy values to the eigenvalue set to obtain the reference frequency domain eigenvalue , the reference frequency domain eigenvalue can be expressed as:
[0125] S105: Testing the simulation software to be tested according to the benchmark characteristic value and the reference characteristic value.
[0126] The terminal device can determine whether the baseline time domain eigenvalue and the reference time domain eigenvalue match, and whether the baseline frequency domain eigenvalue and the reference frequency domain eigenvalue match. If the baseline time domain eigenvalue and the reference time domain eigenvalue match, and the baseline frequency domain eigenvalue and the reference frequency domain eigenvalue match, then it is determined that the simulation software to be tested has passed the test. If the baseline time domain eigenvalue and the reference time domain eigenvalue do not match, and / or the baseline frequency domain eigenvalue and the reference frequency domain eigenvalue do not match, then the simulation software to be tested has failed the test. At this time, the terminal device can display the test results to the developer so that the developer can modify the simulation software to be tested.
[0127] Among them, the terminal device can determine the deviation between the baseline time domain feature value and the reference time domain feature value as the first deviation. If the first deviation is less than the preset time domain comparison error in the time domain, it is determined that the baseline time domain feature matches the reference time domain feature, and determine the deviation between the baseline frequency domain feature value and the reference frequency domain feature value as the second deviation. If the second deviation is less than the preset frequency domain comparison error in the frequency domain, it is determined that the baseline frequency domain feature value matches the reference frequency domain feature value. The above-mentioned time domain comparison error and frequency domain comparison error can be set according to actual conditions, and this specification does not make specific restrictions on this.
[0128] Furthermore, when the benchmark simulation data and the reference simulation data are divided into multiple data intervals, for each data interval, the terminal device can determine whether the benchmark eigenvalue corresponding to the data interval and the reference eigenvalue corresponding to the data interval match; if the number of data intervals in which both the benchmark eigenvalue and the reference eigenvalue match is higher than the preset number of intervals, and the benchmark frequency domain eigenvalue and the reference frequency domain eigenvalue match, then it is determined that the simulation data to be tested has passed the test.
[0129] In practical applications, the above preset number can be equal to the total number of data intervals, that is, when the baseline frequency domain eigenvalue matches the reference frequency domain eigenvalue, and the baseline eigenvalues and reference eigenvalues corresponding to all data intervals match, it is determined that the simulation data to be tested passes the test. Of course, the above preset number can also be set according to actual conditions, and this specification does not make specific limitations on this.
[0130] Specifically, for each data interval, the terminal device can and Subtract the reference time domain features In and , the obtained differences are expressed as:
[0131]
[0132]
[0133] The reference frequency domain eigenvalue In , , …, Subtract the reference frequency domain features in sequence In , ,……, , the difference can be expressed as:
[0134] If each and each The elements of the time domain are all smaller than the preset time domain comparison error , and each The elements are all smaller than the preset frequency domain comparison error in the frequency domain , it means that the reference characteristic value matches the benchmark characteristic value, and the simulation software to be tested passes the test. For ease of understanding, this manual provides a schematic diagram of the overall process of testing simulation software, such as Figure 4 shown.
[0135] Figure 4 This is a schematic diagram of the overall process of testing simulation software provided in this specification.
[0136] Among them, first, the simulation circuit diagram, simulation parameters and other input data are generated according to the electrical diagram file, and then under the same input parameters, the released version of the simulation software (benchmark simulation software) and the simulation software to be tested (tested simulation software) are run respectively, and the time-frequency two-dimensional eigenvalues of the output results of the two versions are extracted. Finally, by comparing the eigenvalues of the output results of the two versions, it is determined whether the time-frequency two-dimensional eigenvalues of the two versions match each other, and then according to the judgment result, it is determined whether the tested simulation software passes the test.
[0137] In an embodiment provided in this specification, the simulation parameters can be set to: the start time of the waveform window , End time , waveform sampling rate , Waveform segmentation step 、Number of high energy frequency points selected =3. Time domain comparison error threshold and frequency domain comparison error threshold .
[0138] After inputting the circuit diagram and simulation parameters into the benchmark simulation software, the output waveform can be obtained as a voltage waveform of a mixed 50 Hz sine wave and a 1000 Hz sine wave with a DC bias.
[0139] The terminal device can start the time according to the waveform window Seconds and waveform window end time , intercept 0.5 seconds of waveform data as benchmark simulation data.
[0140] After that, the terminal device can use the benchmark simulation data according to the waveform segmentation step size Divide the intervals, each interval has M=200 sampling points, and a total of N=25 intervals. After that, the terminal device can further extract the benchmark time domain features corresponding to the benchmark simulation data. The benchmark time domain features corresponding to some data intervals (1-10) of the benchmark simulation data are shown in Table 1:
[0141] Table 1
[0142]
[0143] The terminal device can perform fast Fourier transform on the intercepted 0.5 second benchmark simulation data to obtain the spectrum data of the waveform, and then sort the energy of each frequency point in descending order, select the number Q=3 according to the high energy frequency points, select the top 3 frequency points in the energy sorting and their corresponding energy values, and thus obtain the benchmark frequency domain eigenvalues. The benchmark frequency domain eigenvalues are shown in Table 2:
[0144] Table 2
[0145]
[0146] The terminal device can input the same circuit diagram and simulation parameters into the simulation software to be tested, and divide the output results of the simulation software to be tested into 25 data intervals in the same way, and then determine the signal amplitude corresponding to each sampling point in Table 1 in the reference simulation data, and obtain the reference time domain characteristics corresponding to each data interval. The reference time domain characteristics corresponding to some data intervals (1~10) of the reference simulation data are shown in Table 3:
[0147] Table 3
[0148]
[0149] The terminal device can perform a fast Fourier transform on the intercepted 0.5 second reference simulation data to obtain the spectrum data of the waveform, and then determine the energy value corresponding to each frequency point shown in Table 2, thereby obtaining the reference frequency domain eigenvalue, which is shown in Table 4:
[0150] Table 4
[0151]
[0152] After that, the terminal device can further determine the difference between the reference time domain feature and the corresponding value of each sampling point in the benchmark time domain feature, and determine whether the difference in each interval is less than the time domain comparison error threshold. The time domain difference comparison results of some intervals (1~10) are shown in Table 5:
[0153] Table 5
[0154]
[0155] At the same time, the terminal device can determine the difference between the energy values corresponding to each target frequency point in the reference frequency domain eigenvalue and the reference frequency domain eigenvalue, and determine whether the difference between the energy values corresponding to each target frequency point is less than the frequency domain comparison error threshold. The comparison results of the frequency domain differences of each target frequency point are shown in Table 6:
[0156] Table 6
[0157]
[0158] From Table 5 and Table 6, we can see that and Greater than the time domain comparison error threshold ,at the same time There are elements greater than , therefore, it is determined that the reference characteristic value corresponding to the output result of the simulation software under test does not match the benchmark characteristic value corresponding to the output result of the benchmark simulation software.
[0159] According to the test results, the developer needs to modify the simulation software to be tested, and then repeat the above steps until the characteristic value comparison of the output results of the benchmark simulation software and the software to be simulated is completed under the input conditions of all electrical diagram files, and all the characteristic values of the two match, then the simulation software to be tested is judged to have passed the test.
[0160] It can be seen from the above method that in the process of testing the simulation software to be tested, this scheme can use the output results of the published simulation software as a benchmark and perform feature extraction, then extract features from the reference simulation data based on the extracted features, and determine the final test results based on the reference feature values and the benchmark feature values. Compared with the current method of judging whether there are abnormalities in the new version of the software by observing the simulation results of the schematic diagram by R&D personnel, this scheme improves the accuracy of the test results, further improves the efficiency of testing the simulation software, and reduces the testing cost.
[0161] The above are one or more software testing methods implemented in this specification. Based on the same idea, this specification also provides corresponding software testing devices, such as Figure 5 shown.
[0162] Figure 5 A schematic diagram of a software testing device provided for this specification includes:
[0163] The receiving module 501 is used to receive a test request for the simulation software to be tested, and determine a simulation circuit diagram and simulation parameters according to the test request, wherein the simulation software to be tested is electrical simulation software;
[0164] An input module 502 is used to input the simulation circuit diagram and the simulation parameters into the published benchmark simulation software, so as to determine the simulation data through the benchmark simulation software as the benchmark simulation data, and to input the simulation circuit diagram and the simulation parameters into the simulation software to be tested, so as to determine the simulation data through the simulation software to be tested as the reference simulation data;
[0165] An extraction module 503 is used to extract the characteristic value corresponding to the reference simulation data as the reference characteristic value;
[0166] A determination module 504 is used to determine, based on the benchmark eigenvalue, an eigenvalue corresponding to the reference simulation data as a reference eigenvalue;
[0167] The testing module 505 is used to test the simulation software to be tested according to the benchmark characteristic value and the reference characteristic value.
[0168] Optionally, the benchmark simulation data and the reference simulation data include: waveform data of the electrical signal in the time domain;
[0169] The extraction module 503 is specifically used to determine the characteristic value of the benchmark simulation data in the time domain as the benchmark time domain characteristic value; convert the benchmark simulation data into spectrum data as the benchmark spectrum data; determine the characteristic value of the benchmark simulation data in the frequency domain according to the benchmark spectrum data as the benchmark frequency domain characteristic value; determine the benchmark characteristic value according to the benchmark time domain characteristic value and the benchmark frequency domain characteristic value.
[0170] Optionally, the determination module 504 is specifically used to determine the characteristic value of the reference simulation data in the time domain as a reference time domain characteristic value according to the benchmark time domain characteristic value; convert the reference simulation data into spectrum data as reference spectrum data; determine the characteristic value of the reference simulation data in the frequency domain as a reference frequency domain characteristic value according to the benchmark frequency domain characteristic value and the reference spectrum data; determine the reference characteristic value according to the reference time domain characteristic value and the reference frequency domain characteristic value.
[0171] Optionally, the extraction module 503 is specifically used to determine the maximum value of the electrical signal and the minimum value of the electrical signal in the benchmark simulation data, and use the sampling point corresponding to the maximum value of the electrical signal as the first sampling point, and use the sampling point corresponding to the minimum value of the electrical signal as the second sampling point; determine the benchmark time domain feature value according to the maximum value of the electrical signal and the minimum value of the electrical signal.
[0172] Optionally, the extraction module 503 is specifically used to sort the energy values corresponding to each frequency point in the benchmark spectrum data in descending order, and take the frequency point whose energy value is before a preset position as the target frequency point, and take the energy value corresponding to each target frequency point as the target energy value; determine the benchmark frequency domain eigenvalue according to the target energy value corresponding to each target frequency point.
[0173] Optionally, the determination module 504 is specifically used to determine the electrical signal corresponding to the first sampling point in the reference simulation data and the electrical signal corresponding to the second sampling point in the reference simulation data as reference electrical signals, and determine the reference time domain eigenvalue based on the reference electrical signals, and determine the energy value corresponding to each target frequency point in the reference spectrum data as a reference energy value, and determine the reference frequency domain eigenvalue based on the reference energy value corresponding to each target frequency point; determine the reference eigenvalue based on the reference time domain eigenvalue and the reference frequency domain eigenvalue.
[0174] Optionally, the test module 505 is specifically used to determine whether the baseline time domain eigenvalue and the reference time domain eigenvalue match, and whether the baseline frequency domain eigenvalue and the reference frequency domain eigenvalue match; if the baseline time domain eigenvalue and the reference time domain eigenvalue match, and the baseline frequency domain eigenvalue and the reference frequency domain eigenvalue match, it is determined that the simulation software to be tested has passed the test.
[0175] Optionally, the test module 505 is specifically used to determine the deviation between the baseline time domain eigenvalue and the reference time domain eigenvalue as a first deviation. If the first deviation is smaller than a preset time domain comparison error, it is determined that the baseline time domain feature and the reference time domain feature match each other. The test module 505 is also used to determine the deviation between the baseline frequency domain eigenvalue and the reference frequency domain eigenvalue as a second deviation. If the second deviation is smaller than a preset frequency domain comparison error, it is determined that the baseline frequency domain eigenvalue and the reference frequency domain eigenvalue match each other.
[0176] Optionally, before testing the simulation software to be tested according to the benchmark characteristic value and the reference characteristic value, the input module 502 is further used to divide the benchmark simulation data and the reference simulation data into a plurality of data intervals according to the simulation parameters;
[0177] The test module 505 is specifically used to determine, for each data interval, a benchmark time domain eigenvalue corresponding to the data interval and a reference time domain eigenvalue corresponding to the data interval; if the benchmark frequency domain eigenvalue matches the reference frequency domain eigenvalue, and the number of data intervals in which the benchmark time domain eigenvalue matches the reference time domain eigenvalue is higher than a preset number of intervals, it is determined that the simulation software to be tested has passed the test.
[0178] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 A software testing method is provided.
[0179] This manual also provides Figure 6 The one shown corresponds to Figure 1 A schematic diagram of the electronic device. Figure 6 As mentioned above, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1Of course, in addition to the software implementation, this specification does not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0180] For the improvement of a technology, it can be clearly distinguished whether it is a hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or a software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0181] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.
[0182] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0183] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0184] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0185] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0186] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0187] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0188] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0189] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0190] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0191] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0192] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0193] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0194] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0195] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A software testing method, characterized in that: include: Receiving a test request for simulation software to be tested, and determining a simulation circuit diagram and simulation parameters according to the test request, wherein the simulation software to be tested is electrical simulation software; Input the simulation circuit diagram and the simulation parameters into the published benchmark simulation software to determine simulation data as benchmark simulation data through the benchmark simulation software, and input the simulation circuit diagram and the simulation parameters into the simulation software to be tested to determine simulation data as reference simulation data through the simulation software to be tested; Determine a benchmark time domain eigenvalue according to the sampling points of the benchmark simulation data in the time domain and their corresponding signal values, determine a benchmark frequency domain eigenvalue according to the frequency points of the benchmark simulation data in the frequency domain and their corresponding energy values, and use the benchmark time domain eigenvalue and the benchmark frequency domain eigenvalue as benchmark eigenvalues; Based on the benchmark eigenvalue, determining an eigenvalue corresponding to the reference simulation data as a reference eigenvalue; The simulation software to be tested is tested according to the benchmark characteristic value and the reference characteristic value.
2. The method according to claim 1, characterized in that The benchmark simulation data and the reference simulation data include: waveform data of the electrical signal in the time domain; Determining a reference frequency domain characteristic value according to the frequency points of the reference simulation data in the frequency domain and their corresponding energy values, specifically includes: Converting the reference simulation data into spectrum data as reference spectrum data; According to the reference frequency spectrum data, characteristic values of the reference simulation data in the frequency domain are determined as reference frequency domain characteristic values.
3. The method according to claim 2, characterized in that Based on the benchmark eigenvalue, determining the eigenvalue corresponding to the reference simulation data as the reference eigenvalue specifically includes: Determine, according to the benchmark time-domain characteristic value, the characteristic value of the reference simulation data in the time domain as the reference time-domain characteristic value; Converting the reference simulation data into spectrum data as reference spectrum data; Determine, according to the reference frequency domain eigenvalue and the reference spectrum data, an eigenvalue of the reference simulation data in the frequency domain as a reference frequency domain eigenvalue; The reference eigenvalue is determined according to the reference time domain eigenvalue and the reference frequency domain eigenvalue.
4. The method according to claim 2, characterized in that Determining a benchmark time domain feature value according to the sampling points of the benchmark simulation data in the time domain and their corresponding signal values, specifically includes: Determine the maximum value of the electrical signal and the minimum value of the electrical signal in the reference simulation data, and use the sampling point corresponding to the maximum value of the electrical signal as the first sampling point, and use the sampling point corresponding to the minimum value of the electrical signal as the second sampling point; The reference time-domain characteristic value is determined according to the maximum value of the electrical signal and the minimum value of the electrical signal.
5. The method according to claim 4, characterized in that Determining a reference frequency domain characteristic value according to the frequency points of the reference simulation data in the frequency domain and their corresponding energy values, specifically includes: The energy values corresponding to the frequency points in the reference spectrum data are sorted in descending order, and the frequency points whose energy values are before the preset positions are taken as the target frequency points, and the energy values corresponding to the target frequency points are taken as the target energy values; The reference frequency domain eigenvalue is determined according to the target energy value corresponding to each target frequency point.
6. The method according to claim 5, characterized in that Based on the benchmark eigenvalue, determining the eigenvalue corresponding to the reference simulation data as the reference eigenvalue specifically includes: determining an electrical signal corresponding to the first sampling point in the reference simulation data and an electrical signal corresponding to the second sampling point in the reference simulation data as reference electrical signals, and determining a reference time domain eigenvalue based on the reference electrical signals, and Converting the reference simulation data into spectrum data as reference spectrum data, determining the energy value corresponding to each target frequency point in the reference spectrum data as a reference energy value, and determining a reference frequency domain eigenvalue according to the reference energy value corresponding to each target frequency point; The reference eigenvalue is determined according to the reference time domain eigenvalue and the reference frequency domain eigenvalue.
7. The method according to claim 3, characterized in that Testing the simulation software to be tested according to the benchmark characteristic value and the reference characteristic value specifically includes: Determining whether the benchmark time domain eigenvalue matches the reference time domain eigenvalue, and whether the benchmark frequency domain eigenvalue matches the reference frequency domain eigenvalue; If the benchmark time domain eigenvalue matches the reference time domain eigenvalue, and the benchmark frequency domain eigenvalue matches the reference frequency domain eigenvalue, it is determined that the simulation software to be tested passes the test.
8. The method according to claim 7, characterized in that Determining whether the benchmark time domain eigenvalue matches the reference time domain eigenvalue, and whether the benchmark frequency domain eigenvalue matches the reference frequency domain eigenvalue, specifically includes: determining a deviation between the benchmark time domain feature value and the reference time domain feature value as a first deviation, and if the first deviation is less than a preset time domain comparison error, determining that the benchmark time domain feature matches the reference time domain feature, and A deviation between the benchmark frequency domain eigenvalue and the reference frequency domain eigenvalue is determined as a second deviation, and if the second deviation is less than a preset frequency domain comparison error, it is determined that the benchmark frequency domain eigenvalue and the reference frequency domain eigenvalue match.
9. The method according to claim 7, characterized in that Before testing the simulation software to be tested according to the benchmark characteristic value and the reference characteristic value, the method further includes: According to the simulation parameters, the benchmark simulation data and the reference simulation data are respectively divided into a plurality of data intervals; If the benchmark time domain eigenvalue matches the reference time domain eigenvalue, and the benchmark frequency domain eigenvalue matches the reference frequency domain eigenvalue, then determining that the simulation software to be tested passes the test specifically includes: For each data interval, determining a baseline time domain feature value corresponding to the data interval and a reference time domain feature value corresponding to the data interval; If the benchmark frequency domain eigenvalue matches the reference frequency domain eigenvalue, and the number of data intervals in which the benchmark time domain eigenvalue matches the reference time domain eigenvalue is greater than a preset number of intervals, it is determined that the simulation software to be tested passes the test.
10. A software testing device, characterized in that: include: A receiving module, used for receiving a test request for the simulation software to be tested, and determining a simulation circuit diagram and simulation parameters according to the test request, wherein the simulation software to be tested is electrical simulation software; An input module, used for inputting the simulation circuit diagram and the simulation parameters into the published benchmark simulation software, so as to determine the simulation data through the benchmark simulation software as the benchmark simulation data, and inputting the simulation circuit diagram and the simulation parameters into the simulation software to be tested, so as to determine the simulation data through the simulation software to be tested as the reference simulation data; An extraction module, used to determine a benchmark time domain eigenvalue according to the sampling points of the benchmark simulation data in the time domain and their corresponding signal values, determine a benchmark frequency domain eigenvalue according to the frequency points of the benchmark simulation data in the frequency domain and their corresponding energy values, and use the benchmark time domain eigenvalue and the benchmark frequency domain eigenvalue as benchmark eigenvalues; A determination module, configured to determine, based on the benchmark eigenvalue, an eigenvalue corresponding to the reference simulation data as a reference eigenvalue; A testing module is used to test the simulation software to be tested according to the benchmark characteristic value and the reference characteristic value.
11. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of claims 1 to 9 is implemented.
12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method according to any one of claims 1 to 9 is implemented.
