CN118377712A - Simulation model test integrated method and device - Google Patents
Simulation model test integrated method and device Download PDFInfo
- Publication number
- CN118377712A CN118377712A CN202410506046.4A CN202410506046A CN118377712A CN 118377712 A CN118377712 A CN 118377712A CN 202410506046 A CN202410506046 A CN 202410506046A CN 118377712 A CN118377712 A CN 118377712A
- Authority
- CN
- China
- Prior art keywords
- information
- test
- simulation model
- model test
- parameter
- 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.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 695
- 238000004088 simulation Methods 0.000 title claims abstract description 423
- 238000000034 method Methods 0.000 title claims abstract description 38
- 230000010354 integration Effects 0.000 claims abstract description 15
- 238000013461 design Methods 0.000 claims abstract description 9
- 238000004364 calculation method Methods 0.000 claims description 33
- 238000010606 normalization Methods 0.000 claims description 23
- 238000000605 extraction Methods 0.000 claims description 22
- 238000012545 processing Methods 0.000 claims description 20
- 238000007781 pre-processing Methods 0.000 claims description 14
- 238000012217 deletion Methods 0.000 claims description 10
- 230000037430 deletion Effects 0.000 claims description 10
- 238000007499 fusion processing Methods 0.000 claims description 9
- 238000010998 test method Methods 0.000 claims description 4
- 230000006870 function Effects 0.000 claims description 3
- 230000009286 beneficial effect Effects 0.000 abstract description 16
- 238000012827 research and development Methods 0.000 abstract description 16
- 238000004422 calculation algorithm Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application discloses a simulation model test integration method and a device, wherein the method comprises the following steps: acquiring simulation model test information and first simulation model information; the simulation model test information comprises simulation model test selection information, simulation model test name information, simulation model test design information, simulation model test parameter information, simulation model test model information and simulation model test operation environment information; the first simulation model information comprises a first test set, a first test parameter set, a first test model set and a first test running environment set; the simulation model test information and the first simulation model information are fused to obtain simulation model test operation information; and determining simulation model test result information based on the simulation model test operation information. Therefore, the application is beneficial to improving the testing efficiency, reducing the testing cost, accelerating the product research and development period and improving the product quality and the competitiveness.
Description
Technical Field
The invention relates to the field of simulation, in particular to a simulation model test integrated method and device.
Background
With the continuous progress of technology and the continuous increase in the demands of various industries for test efficiency and accuracy, the demands for simplifying model test operations are also increasing. The development of the technology provides a more efficient and convenient testing environment and tool for model testers, so that the product research and development period is shortened, and the product quality is improved.
At present, simulation model test operation generally requires a large amount of test resources, including a running environment for running a model, simulation design, a model dynamic library, a coside model and the like. However, these resources are often scattered in different locations, and even multiple versions are generated due to version iteration in the project implementation process, so that management and scheduling are difficult, which results in complicated test operation and low efficiency.
Therefore, the integrated simulation model test method and device are beneficial to improving the test efficiency, reducing the test cost, accelerating the product research and development period and improving the product quality and the competitiveness.
Disclosure of Invention
The invention aims to solve the technical problem of providing a simulation model test integrated method and device, which are beneficial to improving the test efficiency, reducing the test cost, accelerating the product research and development period and improving the product quality and competitiveness.
In order to solve the above technical problems, a first aspect of the present invention discloses a simulation model test integration method, which includes:
S1, acquiring simulation model test information and first simulation model information; the simulation model test information comprises simulation model test selection information, simulation model test name information, simulation model test design information, simulation model test parameter information, simulation model test model information and simulation model test operation environment information; the first simulation model information comprises a first test set, a first test parameter set, a first test model set and a first test running environment set;
S2, carrying out fusion processing on the simulation model test information and the first simulation model information to obtain simulation model test operation information;
and S3, determining simulation model test result information based on the simulation model test operation information.
In a first aspect of the embodiment of the present invention, the fusing the simulation model test information and the first simulation model information to obtain simulation model test operation information includes:
s21, extracting the simulation model test selection information to obtain a first extraction result;
when the first extraction result is new or edited, executing S22;
When the first extraction result is display, S23 is performed;
when the first extraction result is deletion, executing S24;
S22, determining simulation model test operation information based on the simulation model test information, the first extraction result and the first simulation model information, and executing S3;
S23, extracting all first test name information in the first test set to obtain first test name display information, determining the first test name display information as simulation model test operation information, and executing S3;
s24, performing complete matching processing on the simulation model test name information and all the first test name information in the first test set respectively to obtain a first matching result set; the first matching result set characterizes a set of the first test name information which is completely consistent with the test name information of the simulation model;
S25, deleting all the first test name information contained in the first matching result set in the first test set to obtain an updated first test set;
S26, determining that the deletion operation is completed as simulation model test operation information.
In a first aspect of the embodiment of the present invention, determining simulation model test operation information based on the simulation model test information, the first extraction result, and the first simulation model information includes;
s221, judging whether the first extraction result is newly established or not to obtain a first judgment result;
When the first determination result is yes, S222 is executed;
When the first judgment result is no, S223 is executed;
s222, determining first test information based on the simulation model test information, and executing S224;
S223, determining first test information based on the simulation model test name information and the first test set;
S224, fusion processing is carried out on the simulation model test information, the first test information and the first simulation model information, so that simulation model test operation information is obtained.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the determining, based on the simulation model test name information and the first test set, first test information includes:
S2231, performing matching processing on the simulation model test name information and all the first test name information in the first test set to obtain first matching information; the first matching information is all the first test name information of which the test name information of the simulation model is completely consistent with the first test name information in the first test set;
S2232, respectively carrying out normalization processing on first test expected value sequences corresponding to all the first test name information in the first matching information to obtain a first normalized sequence set; the first normalization sequence set comprises a plurality of first normalization sequences; the first normalization sequences are in one-to-one correspondence with the first test name information in the first matching information;
S2233, performing matching calculation processing on the simulation model test expected value sequence and the first normalization sequence set in the simulation model test expected value information by using a first simulation model test calculation model to obtain a first simulation model test expected value sequence;
the first simulation model test calculation model is as follows:
Wherein XDZ is a first simulation model test expected value sequence, XX is the first normalization sequence set, A is a simulation model test expected value sequence in the simulation model test expected information, For the i a th one of the first normalized sequence set,Is thatIs set in the standard deviation of (2),Is thatAlpha 3 is a third weight parameter, N a is the number of the first normalized sequences in the first normalized sequence set;
S2234, determining the first test name information corresponding to the first simulation model test expected value sequence as first test information.
In a first aspect of the embodiment of the present invention, the fusing the simulation model test information, the first test information, and the first simulation model information to obtain simulation model test operation information includes:
s2241, judging whether the simulation model test parameter information exists in the first test parameter set, and obtaining a second judgment result;
When the second judgment result is yes, determining simulation model test parameter file information corresponding to the simulation model test parameter information in the first test parameter set as first test parameter information, and executing S2243;
When the second judgment result is no, executing S2242;
S2242, calculating the simulation model test parameter information and the first test parameter set to obtain first test parameter information;
S2243, judging whether the simulation model test model information exists in the first test model set or not, and obtaining a third judgment result;
When the third judgment result is yes, determining that the simulation model test model file information corresponding to the simulation model test model information in the first test model set is the first test model information, and executing S2245;
When the third determination result is no, S2244 is executed;
s2244, calculating the simulation model test model information and the first simulation model information to obtain first test model information;
s2245, judging whether the simulation model test operation environment information exists in the first test operation environment set, and obtaining a fourth judgment result;
When the fourth judgment result is yes, determining that the simulation model test operation environment file information corresponding to the simulation model test operation environment information in the first test operation environment set is the first test operation information, and executing S2247;
when the third determination result is no, S2246 is executed;
S2246, calculating the simulation model test operation environment information to obtain first test operation environment information;
S2247, determining the first test information, the first test parameter information, the first test model information and the first test operation environment information as simulation model test operation information.
In a first aspect of the embodiment of the present invention, the calculating the test parameter information of the simulation model and the first test parameter set to obtain first test parameter information includes:
S22421, a second simulation model is utilized to test a calculation model, and matching calculation processing is carried out on the simulation model test parameter information and the first test parameter set to obtain first preprocessing test parameter information;
the second simulation model test calculation model is as follows:
Wherein CS is first pre-processing test parameter information, SS is a first test parameter sequence in the first test parameter set, CSJ is the first test parameter set, CSX is the simulation model test parameter information, x and y are any parameter name in the simulation model test parameter information and a parameter value corresponding to the parameter name, and α 4 is a fourth weight parameter; [ (x, y) ∈SS ] is an indication logic function, when (x, y) is in SS, the value is 1, otherwise it is 0; params (CSX) represents a set of all parameter names in CSX, params (SS) identifies a set of all parameter names in SS; All parameter names used to represent CSX exist in SS;
S24422, determining first test parameter information based on the simulation model test parameter information and the first preprocessing test parameter information.
In a first aspect of the embodiment of the present invention, the calculating the test model information of the simulation model and the first simulation model information to obtain first test model information includes:
S22441, calculating executable file information in the simulation model test model information to obtain executable file mark information;
S22442, calculating executable data information in the simulation model test model information to obtain executable data mark information;
s22443, adding the executable file information, the executable file mark information, the executable data information and the executable data mark information into the first simulation model information to obtain updated first simulation model information;
s22444, determining the executable file information and the executable data information as first test model information.
The second aspect of the embodiment of the invention discloses a simulation model test integrated device, which is characterized in that the device comprises:
The acquisition module is used for acquiring simulation model test information and first simulation model information; the simulation model test information comprises simulation model test selection information, simulation model test name information, simulation model test design information, simulation model test parameter information, simulation model test model information and simulation model test operation environment information; the first simulation model information comprises a first test set, a first test parameter set, a first test model set and a first test running environment set;
the first calculation module is used for carrying out fusion processing on the simulation model test information and the first simulation model information to obtain simulation model test operation information;
And the second calculation module is used for determining simulation model test result information based on the simulation model test operation information.
A third aspect of the embodiment of the present invention discloses another simulation model test integrated apparatus, which is characterized in that the apparatus includes:
a processor;
a memory coupled to the processor storing executable program code;
The processor invokes the executable program code stored in the memory to execute part or all of the steps of the simulation model test integrated method disclosed in the first aspect of the embodiment of the present invention.
A fourth aspect of the embodiment of the present invention discloses a computer readable storage medium, where the computer readable storage medium stores computer instructions for executing part or all of the steps of the simulation model test integration method disclosed in the first aspect of the embodiment of the present invention when the computer instructions are called.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
In the embodiment of the application, simulation model test information and first simulation model information are obtained; the simulation model test information comprises simulation model test selection information, simulation model test name information, simulation model test design information, simulation model test parameter information, simulation model test model information and simulation model test operation environment information; the first simulation model information comprises a first test set, a first test parameter set, a first test model set and a first test running environment set; the simulation model test information and the first simulation model information are fused to obtain simulation model test operation information; and determining simulation model test result information based on the simulation model test operation information. Therefore, the application is beneficial to improving the testing efficiency, reducing the testing cost, accelerating the product research and development period and improving the product quality and the competitiveness.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of an integrated simulation model test method disclosed in an embodiment of the invention;
FIG. 2 is a schematic structural diagram of an integrated simulation model test device according to an embodiment of the present invention;
Fig. 3 is a schematic structural diagram of another simulation model test integrated device according to an embodiment of the present invention.
Detailed Description
In order to make the present invention better understood by those skilled in the art, the following description will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, apparatus, article, or device that comprises a list of steps or elements is not limited to the list of steps or elements but may, in the alternative, include other steps or elements not expressly listed or inherent to such process, method, article, or device.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The invention discloses a simulation model test integrated method and device, which are beneficial to improving the test efficiency, reducing the test cost, accelerating the product research and development period and improving the product quality and the competitiveness. The following will describe in detail.
Example 1
Referring to fig. 1, fig. 1 is a flow chart of a simulation model test integrated method according to an embodiment of the invention. The simulation model test integration method described in fig. 1 is applied to a simulation model test integration device, such as a local server or a cloud server for optimization management of simulation model test integration, and the embodiment of the invention is not limited. As shown in fig. 1, the simulation model test integration method may include the following operations:
S1, acquiring simulation model test information and first simulation model information; the simulation model test information comprises simulation model test selection information, simulation model test name information, simulation model test design information, simulation model test parameter information, simulation model test model information and simulation model test operation environment information; the first simulation model information comprises a first test set, a first test parameter set, a first test model set and a first test running environment set;
S2, carrying out fusion processing on the simulation model test information and the first simulation model information to obtain simulation model test operation information;
and S3, determining simulation model test result information based on the simulation model test operation information.
It should be noted that the simulation model test information is data information for a simulation model test; the first simulation model information is the existing simulation model test data information in the historical data, and comprises the conducted test case information, the used simulation model test parameter information, the simulation model running environment information and the like.
It should be noted that, based on the simulation model test operation information, determining simulation model test result information includes:
When the simulation model test operation information is first test name display information, determining that the first test name display information is simulation model test result information, and displaying results of the existing simulation model test case information;
When the simulation model test operation information is the deletion operation completion, determining that the deletion success is simulation model test result information, and performing the deletion operation on the existing simulation model test cases;
When the simulation model test operation information is not the first test name display information or the deletion operation is completed, determining first test information, first test parameter information, first test model information and first test operation environment information as simulation model test result information; the simulation model test result information is used for representing input information of the simulation model test, and the simulation model test of the next step can be directly carried out through the simulation model test result information. The next simulation model testing step comprises:
Loading a simulation model test operation environment through first test operation environment information, importing first test model information into the simulation model test operation environment, configuring simulation model test parameters through first test parameter information, and finally importing first test information to be tested to perform simulation model test. For example, using Multisim software as the running environment of the simulation model, selecting a 4-bit binary adder as the model, setting parameters to set an input port and connecting two 4-bit binary numbers, selecting test information as a binary addition circuit test, and testing the binary addition circuit test by running the 4-bit binary adder in the Multisim software, wherein the Multisim software is the first test running environment information; the 4-bit binary adder is the first test model information; setting an input port, and connecting two 4-bit binary numbers as first test parameter information; the binary adder circuit tests as first test information.
Therefore, the simulation model test integrated method described by the embodiment of the invention is beneficial to improving the test efficiency, reducing the test cost, accelerating the product research and development period and improving the product quality and the competitiveness.
In an optional embodiment, the fusing the simulation model test information and the first simulation model information to obtain simulation model test operation information includes:
s21, extracting the simulation model test selection information to obtain a first extraction result;
when the first extraction result is new or edited, executing S22;
When the first extraction result is display, S23 is performed;
when the first extraction result is deletion, executing S24;
It should be noted that the simulation model test selection information presets one of 4 test selections, including creating, editing, displaying or deleting, and only one of the 4 test selections is obtained after extraction.
S22, determining simulation model test operation information based on the simulation model test information, the first extraction result and the first simulation model information, and executing S3;
S23, extracting all first test name information in the first test set to obtain first test name display information, determining the first test name display information as simulation model test operation information, and executing S3;
s24, performing complete matching processing on the simulation model test name information and all the first test name information in the first test set respectively to obtain a first matching result set; the first matching result set characterizes a set of the first test name information which is completely consistent with the test name information of the simulation model;
the matching is performed separately. And the simulation model test name information and all the first test name information in the first test set are respectively matched.
S25, deleting all the first test name information contained in the first matching result set in the first test set to obtain an updated first test set;
S26, determining that the deletion operation is completed as simulation model test operation information.
Therefore, the simulation model test integrated method described by the embodiment of the invention is beneficial to improving the test efficiency, reducing the test cost, accelerating the product research and development period and improving the product quality and the competitiveness.
In another optional embodiment, the determining simulation model test operation information based on the simulation model test information, the first extraction result and the first simulation model information includes;
s221, judging whether the first extraction result is newly established or not to obtain a first judgment result;
When the first determination result is yes, S222 is executed;
When the first judgment result is no, S223 is executed;
s222, determining first test information based on the simulation model test information, and executing S224;
S223, determining first test information based on the simulation model test name information and the first test set;
S224, fusion processing is carried out on the simulation model test information, the first test information and the first simulation model information, so that simulation model test operation information is obtained.
It should be noted that, based on the simulation model test information, it is determined that the first test information is obtained by calculating the simulation model test information through an algorithm, so as to obtain simulation model test identification information, and the simulation model test information and the simulation model test identification information are added into the first test set, so as to obtain an updated first test set, and it is determined that the simulation model test information is the first test information. If MD5 algorithm is used for calculation, unique identification of simulation model test information, namely simulation model test identification information, can be obtained, so that when the test is carried out later, the simulation model test information existing in the first test set can be directly used for testing, the uniqueness of the version can be ensured, and the version of the test information can be solidified.
Therefore, the simulation model test integrated method described by the embodiment of the invention is beneficial to improving the test efficiency, reducing the test cost, accelerating the product research and development period and improving the product quality and the competitiveness.
In yet another alternative embodiment, the determining the first test information based on the simulation model test name information and the first test set includes:
S2231, performing matching processing on the simulation model test name information and all the first test name information in the first test set to obtain first matching information; the first matching information is all the first test name information of which the test name information of the simulation model is completely consistent with the first test name information in the first test set;
S2232, respectively carrying out normalization processing on first test expected value sequences corresponding to all the first test name information in the first matching information to obtain a first normalized sequence set; the first normalization sequence set comprises a plurality of first normalization sequences; the first normalization sequences are in one-to-one correspondence with the first test name information in the first matching information;
It should be noted that, the normalization processing is obtained by calculating a simulated normalization model;
wherein, the simulation normalization model is:
Wherein XX i,j is a j-th first normalized sequence value in an i-th first normalized sequence in the first normalized sequence set, XD i,j is a j-th first test expected value in a first test expected value sequence corresponding to i-th first test name information in the first matching information, mu i is a mean value of the first test expected value sequence corresponding to i-th first test name information in the first matching information, sigma i is a standard deviation of the first test expected value sequence corresponding to i-th first test name information in the first matching information, S i is an i-th bias threshold, alpha 1 and alpha 2 are first weight parameters and second weight parameters, N is the number of the first test expected values in the first test expected value sequence corresponding to i-th first test name information in the first matching information, and M is the number of the first test expected values in the first test expected value sequence corresponding to i-th first test name information in the first matching information.
It should be noted that, the bias threshold S 1-SN is preset;
it should be noted that, the first weight parameter and the second weight parameter may be defined by a user, or may be obtained according to a system, and the embodiment of the present invention is not specifically limited;
It should be noted that the first normalized sequences in the first normalized sequence set are in one-to-one correspondence with the first test name information in the first matching information;
S2233, performing matching calculation processing on the simulation model test expected value sequence and the first normalization sequence set in the simulation model test expected value information by using a first simulation model test calculation model to obtain a first simulation model test expected value sequence;
the first simulation model test calculation model is as follows:
Wherein XDZ is a first simulation model test expected value sequence, XX is the first normalization sequence set, A is a simulation model test expected value sequence in the simulation model test expected information, For the i a th one of the first normalized sequence set,Is thatIs set in the standard deviation of (2),Is thatAlpha 3 is a third weight parameter, N a is the number of the first normalized sequences in the first normalized sequence set;
The first normalization sequence with the smallest element difference in the first normalization sequence obtained by matching is selected as the first simulation model test expected value sequence.
The skewness threshold valueIs preset.
It should be noted that, the third weight parameter may be set by the user, or may be obtained according to historical data, and the embodiment of the present invention is not limited specifically.
It should be noted that, the first simulation model test expected value sequence is a first normalized sequence with the smallest difference between all the first normalized sequences in the first normalized sequence set and the simulation model test expected value sequence.
S2234, determining the first test name information corresponding to the first simulation model test expected value sequence as first test information.
It should be noted that, the first test name information corresponding to the first simulation model test expected value sequence is determined to be first test information, the first test name information corresponding to the first simulation model test expected value sequence is calculated through an algorithm to obtain simulation model test identification information, the first test name information corresponding to the first simulation model test expected value sequence and the simulation model test identification information are added into the first test set to obtain an updated first test set, and the first test name information corresponding to the first simulation model test expected value sequence is determined to be first test information. If the MD5 algorithm is used for calculation, the unique identification of the first test name information, namely the simulation model test identification information, can be obtained, so that when the test is carried out later, the test information of the first test set can be directly used for testing, the uniqueness of the version can be ensured, and the test information version can be solidified.
Therefore, the simulation model test integrated method described by the embodiment of the invention is beneficial to improving the test efficiency, reducing the test cost, accelerating the product research and development period and improving the product quality and the competitiveness.
In yet another optional embodiment, the fusing the simulation model test information, the first test information and the first simulation model information to obtain simulation model test operation information includes:
s2241, judging whether the simulation model test parameter information exists in the first test parameter set, and obtaining a second judgment result;
When the second judgment result is yes, determining simulation model test parameter file information corresponding to the simulation model test parameter information in the first test parameter set as first test parameter information, and executing S2243;
When the second judgment result is no, executing S2242;
S2242, calculating the simulation model test parameter information and the first test parameter set to obtain first test parameter information;
S2243, judging whether the simulation model test model information exists in the first test model set or not, and obtaining a third judgment result;
When the third judgment result is yes, determining that the simulation model test model file information corresponding to the simulation model test model information in the first test model set is the first test model information, and executing S2245;
When the third determination result is no, S2244 is executed;
s2244, calculating the simulation model test model information and the first simulation model information to obtain first test model information;
s2245, judging whether the simulation model test operation environment information exists in the first test operation environment set, and obtaining a fourth judgment result;
When the fourth judgment result is yes, determining that the simulation model test operation environment file information corresponding to the simulation model test operation environment information in the first test operation environment set is the first test operation information, and executing S2247;
when the third determination result is no, S2246 is executed;
S2246, calculating the simulation model test operation environment information to obtain first test operation environment information;
S2247, determining the first test information, the first test parameter information, the first test model information and the first test operation environment information as simulation model test operation information.
It should be noted that, the simulation model test parameter information, the simulation model test model information, and the simulation model test operation environment information are used for inputting information for the simulation model test, including parameter input, model input, and operation environment input.
Therefore, the simulation model test integrated method described by the embodiment of the invention is beneficial to improving the test efficiency, reducing the test cost, accelerating the product research and development period and improving the product quality and the competitiveness.
In an optional embodiment, the calculating the simulation model test parameter information and the first test parameter set to obtain first test parameter information includes:
S22421, a second simulation model is utilized to test a calculation model, and matching calculation processing is carried out on the simulation model test parameter information and the first test parameter set to obtain first preprocessing test parameter information;
the second simulation model test calculation model is as follows:
Wherein CS is first pre-processing test parameter information, SS is a first test parameter sequence in the first test parameter set, CSJ is the first test parameter set, CSX is the simulation model test parameter information, x and y are any parameter name in the simulation model test parameter information and a parameter value corresponding to the parameter name, and α 4 is a fourth weight parameter; [ (x, y) ∈SS ] is an indication logic function, when (x, y) is in SS, the value is 1, otherwise it is 0; params (CSX) represents a set of all parameter names in CSX, params (SS) identifies a set of all parameter names in SS; All parameter names used to represent CSX exist in SS;
It should be noted that, performing matching calculation processing on the simulation model test parameter information and the first test parameter set to obtain first preprocessed test parameter information, that is, performing matching processing on all key values in the simulation model test parameter information and key values in all first test parameter sequences in the first test parameter set to obtain a sequence with highest similarity between the first test parameter set and the simulation model test parameter information, as the first preprocessed test parameter information. If the first pre-processing test parameter information is [ (a, 1), (b, 2), (c, 3), (d, 4), (e, 5) ], the first test parameter sequence in the first test parameter set is [ (a, 1), (b, 2), (c, 3), (d, 1), (e, 5) ], [ (a, 1), (b, 1), (d, 3), (e, 5) ] and [ (a, 3), (b, 4), (c, 5), (d, 4), (e, 5), (f, 2) ] and the sequence having the highest similarity with [ (a, 1), (b, 2), (c, 3), (d, 4), (e, 5) ] is found by the matching calculation to be [ (a, 1), (b, 2), (c, 3), (d, 1), (e, 5) ], wherein the key in the first pre-processing test parameter information is the correspondence of the values corresponding to the four keys to [ (a, b, c, e, 5) ] with [ (a, 1), (b, 2), (c, 3), (d, 4), (e, 5) ] and finally confirming that the key corresponds to the sequence of [ (a, 1), (b, 2), (c, 3), (e, 5), 5) And is the first preprocessing test parameter information.
It should be noted that, the fourth weight parameter may be set by the user, or may be obtained according to historical data, and the embodiment of the present invention is not limited specifically.
S24422, determining first test parameter information based on the simulation model test parameter information and the first preprocessing test parameter information.
It should be noted that, based on the simulation model test parameter information and the first preprocessing test parameter information, determining first test parameter information includes: acquiring parameter configuration file information corresponding to first preprocessing test parameter information in the first test parameter set; replacing the parameter values corresponding to the parameter configuration file information with the parameter values corresponding to the parameter keys in the simulation model test parameter information to obtain first test parameter information;
And meanwhile, calculating the first test parameter information to obtain first test parameter identification information, and adding the first test parameter information and the first test parameter identification information into a first test parameter set to obtain an updated first test parameter set. The first test parameter identification information is obtained through an MD5 algorithm, so that the first test parameter information existing in the first test parameter set can be directly used for testing when the testing is carried out later, the uniqueness of the version can be ensured, and the test parameter information version can be solidified.
Therefore, the simulation model test integrated method described by the embodiment of the invention is beneficial to improving the test efficiency, reducing the test cost, accelerating the product research and development period and improving the product quality and the competitiveness.
In another optional embodiment, the calculating the simulation model test model information and the first simulation model information to obtain first test model information includes:
S22441, calculating executable file information in the simulation model test model information to obtain executable file mark information;
the executable file information is a model file, and the calculation processing is performed by using an MD5 algorithm.
S22442, calculating executable data information in the simulation model test model information to obtain executable data mark information;
it should be noted that the executable data information is a data file during model running, such as a dependency library, and the calculation processing is performed by using MD5 algorithm.
S22443, adding the executable file information, the executable file mark information, the executable data information and the executable data mark information into the first simulation model information to obtain updated first simulation model information;
s22444, determining the executable file information and the executable data information as first test model information.
Therefore, the simulation model test integrated method described by the embodiment of the invention is beneficial to improving the test efficiency, reducing the test cost, accelerating the product research and development period and improving the product quality and the competitiveness.
In yet another optional embodiment, the calculating the simulation model test running environment information to obtain first test running environment information includes:
S22461, first operation environment information is acquired;
s22462, testing a calculation model by using a third simulation model, and calculating the simulation model test operation environment information and the first operation environment information to obtain second operation environment information;
the third simulation model test calculation model is as follows:
Wherein, PC is second operation environment information, HJ is the simulation model test operation environment information, YX is the first operation environment information, KE is a set of simulation model test operation environment parameters in HJ, i c is a simulation model test operation environment parameter in HJ, PC (i c) is a value corresponding to a parameter i c in PC, HJ (i c) is a value corresponding to a parameter i c in HJ, and YX (i c) is a value corresponding to a parameter i c in YX;
s22463, determining first test operation environment information based on the second operation environment information.
It should be noted that, based on the second operation environment information, the first test operation environment information is determined, the operation code information of the test operation environment is obtained from a preset code library such as gitlab, the operation code information is updated and compiled through the second operation environment information, the operation environment file information is obtained, the operation environment file identification information is obtained through calculation by an algorithm, and the operation environment file information and the operation environment file identification information are added to the first test operation environment set. For example, the second running environment information includes a=5, b=6, env=linux, these parameters are updated to parameters a, b, env in the running code information, and the running code information is compiled by a universal compiling tool such as c++, golang, etc., so as to obtain a compiled file, i.e. the running environment file information, and then the running environment file information is calculated by an MD5 algorithm, so as to obtain the running environment file identification information. By using the MD5 algorithm and adding the running environment file information and the running environment file identification information into the first test running environment set, when the test is performed later, the running environment file information existing in the first test running environment set can be directly used for the test, the uniqueness of the version can be ensured, and the running environment version can be solidified.
Therefore, the simulation model test integrated method described by the embodiment of the invention is beneficial to improving the test efficiency, reducing the test cost, accelerating the product research and development period and improving the product quality and the competitiveness.
Example two
Referring to fig. 2, fig. 2 is a schematic structural diagram of a simulation model test integrated device according to an embodiment of the invention. The simulation model test integrated device described in fig. 2 is applied to a simulation model test integrated system, such as a local server or a cloud server for simulation model test integration, which is not limited in the embodiment of the present invention. As shown in fig. 2, the simulation model test integrated apparatus includes:
an acquisition module 201, configured to acquire simulation model test information and first simulation model information; the simulation model test information comprises simulation model test selection information, simulation model test name information, simulation model test design information, simulation model test parameter information, simulation model test model information and simulation model test operation environment information; the first simulation model information comprises a first test set, a first test parameter set, a first test model set and a first test running environment set;
The first calculation module 202 is configured to perform fusion processing on the simulation model test information and the first simulation model information to obtain simulation model test operation information;
And the second calculation module 203 is configured to determine simulation model test result information based on the simulation model test operation information.
Therefore, the simulation model test integrated device described by the embodiment of the invention is beneficial to improving the test efficiency, reducing the test cost, accelerating the product research and development period and improving the product quality and the competitiveness.
Example III
Referring to fig. 3, fig. 3 is a schematic structural diagram of another simulation model test integrated device according to an embodiment of the present invention. The simulation model test integrated device described in fig. 3 is applied to a simulation model test integrated system, such as a local server or a cloud server for simulation model test integration, which is not limited in the embodiment of the present invention. As shown in fig. 3, the simulation model test integrated apparatus includes:
a processor 301;
a memory 302 coupled to the processor 301 storing executable program code;
The processor 301 invokes the executable program code stored in the memory 302 to perform some or all of the steps of the simulation model test integration method described in embodiment one.
Therefore, the simulation model test integrated device described by the embodiment of the invention is beneficial to improving the test efficiency, reducing the test cost, accelerating the product research and development period and improving the product quality and the competitiveness.
Example IV
The embodiment of the invention discloses a computer readable storage medium, which is characterized in that the computer readable storage medium stores computer instructions, and the computer instructions are used for executing part or all of the steps of the simulation model test integrated method in the embodiment one when being called.
Example five
The embodiment of the invention discloses a computer program product, which comprises a non-transitory computer readable storage medium storing a computer program, and the computer program is operable to make a computer execute some or all of the steps in the simulation model test integration method described in the embodiment.
The system embodiments described above are merely illustrative, in which the modules illustrated as separate components may or may not be physically separate, and the components shown as modules may or may not be physical, i.e., may be located in one place, or may be distributed over multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above detailed description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course by means of hardware. Based on such understanding, the foregoing technical solutions may be embodied essentially or in part in the form of a software product that may be stored in a computer-readable storage medium including Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), one-time programmable Read-Only Memory (OTPROM), electrically erasable programmable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disc Memory, magnetic disc Memory, tape Memory, or any other medium that can be used for computer-readable carrying or storing data.
Finally, it should be noted that: the embodiment of the invention discloses a simulation model test integrated method and device, which are disclosed as preferred embodiments of the invention, and are only used for illustrating the technical scheme of the invention, but not limiting the technical scheme; although the invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that; the technical scheme recorded in the various embodiments can be modified or part of technical features in the technical scheme can be replaced equivalently; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.
Claims (10)
1. An integrated simulation model test method, the method comprising:
S1, acquiring simulation model test information and first simulation model information; the simulation model test information comprises simulation model test selection information, simulation model test name information, simulation model test design information, simulation model test parameter information, simulation model test model information and simulation model test operation environment information; the first simulation model information comprises a first test set, a first test parameter set, a first test model set and a first test running environment set;
S2, carrying out fusion processing on the simulation model test information and the first simulation model information to obtain simulation model test operation information;
and S3, determining simulation model test result information based on the simulation model test operation information.
2. The method of claim 1, wherein the fusing the simulation model test information and the first simulation model information to obtain simulation model test operation information includes:
s21, extracting the simulation model test selection information to obtain a first extraction result;
when the first extraction result is new or edited, executing S22;
When the first extraction result is display, S23 is performed;
when the first extraction result is deletion, executing S24;
S22, determining simulation model test operation information based on the simulation model test information, the first extraction result and the first simulation model information, and executing S3;
S23, extracting all first test name information in the first test set to obtain first test name display information, determining the first test name display information as simulation model test operation information, and executing S3;
s24, performing complete matching processing on the simulation model test name information and all the first test name information in the first test set respectively to obtain a first matching result set; the first matching result set characterizes a set of the first test name information which is completely consistent with the test name information of the simulation model;
S25, deleting all the first test name information contained in the first matching result set in the first test set to obtain an updated first test set;
S26, determining that the deletion operation is completed as simulation model test operation information.
3. The simulation model test integration method according to claim 2, wherein determining simulation model test operation information based on the simulation model test information, the first extraction result, and the first simulation model information includes;
s221, judging whether the first extraction result is newly established or not to obtain a first judgment result;
When the first determination result is yes, S222 is executed;
When the first judgment result is no, S223 is executed;
s222, determining first test information based on the simulation model test information, and executing S224;
S223, determining first test information based on the simulation model test name information and the first test set;
S224, fusion processing is carried out on the simulation model test information, the first test information and the first simulation model information, so that simulation model test operation information is obtained.
4. A simulation model test integration method according to claim 3, wherein the determining first test information based on the simulation model test name information and the first test set includes:
S2231, performing matching processing on the simulation model test name information and all the first test name information in the first test set to obtain first matching information; the first matching information is all the first test name information of which the test name information of the simulation model is completely consistent with the first test name information in the first test set;
S2232, respectively carrying out normalization processing on first test expected value sequences corresponding to all the first test name information in the first matching information to obtain a first normalized sequence set; the first normalization sequence set comprises a plurality of first normalization sequences; the first normalization sequences are in one-to-one correspondence with the first test name information in the first matching information;
S2233, performing matching calculation processing on the simulation model test expected value sequence and the first normalization sequence set in the simulation model test expected value information by using a first simulation model test calculation model to obtain a first simulation model test expected value sequence;
the first simulation model test calculation model is as follows:
Wherein XDZ is a first simulation model test expected value sequence, XX is the first normalization sequence set, A is a simulation model test expected value sequence in the simulation model test expected information, For the i a th one of the first normalized sequence set,Is thatIs set in the standard deviation of (2),Is thatAlpha 3 is a third weight parameter, N a is the number of the first normalized sequences in the first normalized sequence set;
S2234, determining the first test name information corresponding to the first simulation model test expected value sequence as first test information.
5. The integrated simulation model test method according to claim 3, wherein the fusing the simulation model test information, the first test information and the first simulation model information to obtain simulation model test operation information includes:
s2241, judging whether the simulation model test parameter information exists in the first test parameter set, and obtaining a second judgment result;
When the second judgment result is yes, determining simulation model test parameter file information corresponding to the simulation model test parameter information in the first test parameter set as first test parameter information, and executing S2243;
When the second judgment result is no, executing S2242;
S2242, calculating the simulation model test parameter information and the first test parameter set to obtain first test parameter information;
S2243, judging whether the simulation model test model information exists in the first test model set or not, and obtaining a third judgment result;
When the third judgment result is yes, determining that the simulation model test model file information corresponding to the simulation model test model information in the first test model set is the first test model information, and executing S2245;
When the third determination result is no, S2244 is executed;
s2244, calculating the simulation model test model information and the first simulation model information to obtain first test model information;
s2245, judging whether the simulation model test operation environment information exists in the first test operation environment set, and obtaining a fourth judgment result;
When the fourth judgment result is yes, determining that the simulation model test operation environment file information corresponding to the simulation model test operation environment information in the first test operation environment set is the first test operation information, and executing S2247;
when the third determination result is no, S2246 is executed;
S2246, calculating the simulation model test operation environment information to obtain first test operation environment information;
S2247, determining the first test information, the first test parameter information, the first test model information and the first test operation environment information as simulation model test operation information.
6. The method of claim 5, wherein the calculating the simulation model test parameter information and the first test parameter set to obtain first test parameter information includes:
S22421, a second simulation model is utilized to test a calculation model, and matching calculation processing is carried out on the simulation model test parameter information and the first test parameter set to obtain first preprocessing test parameter information;
the second simulation model test calculation model is as follows:
Wherein CS is first pre-processing test parameter information, SS is a first test parameter sequence in the first test parameter set, CSJ is the first test parameter set, CSX is the simulation model test parameter information, x and y are any parameter name in the simulation model test parameter information and a parameter value corresponding to the parameter name, and α 4 is a fourth weight parameter; [ (x, y) ∈SS ] is an indication logic function, when (x, y) is in SS, the value is 1, otherwise it is 0; params (CSX) represents a set of all parameter names in CSX, params (SS) identifies a set of all parameter names in SS; All parameter names used to represent CSX exist in SS;
S24422, determining first test parameter information based on the simulation model test parameter information and the first preprocessing test parameter information.
7. The method for integrating simulation model testing according to claim 5, wherein the calculating the simulation model testing model information and the first simulation model information to obtain first testing model information comprises:
S22441, calculating executable file information in the simulation model test model information to obtain executable file mark information;
S22442, calculating executable data information in the simulation model test model information to obtain executable data mark information;
s22443, adding the executable file information, the executable file mark information, the executable data information and the executable data mark information into the first simulation model information to obtain updated first simulation model information;
s22444, determining the executable file information and the executable data information as first test model information.
8. A simulation model test integrated apparatus, the apparatus comprising:
The acquisition module is used for acquiring simulation model test information and first simulation model information; the simulation model test information comprises simulation model test selection information, simulation model test name information, simulation model test design information, simulation model test parameter information, simulation model test model information and simulation model test operation environment information; the first simulation model information comprises a first test set, a first test parameter set, a first test model set and a first test running environment set;
the first calculation module is used for carrying out fusion processing on the simulation model test information and the first simulation model information to obtain simulation model test operation information;
And the second calculation module is used for determining simulation model test result information based on the simulation model test operation information.
9. A simulation model test integrated apparatus, the apparatus comprising:
a processor;
a memory coupled to the processor storing executable program code;
The processor invokes the executable program code stored in the memory to perform the simulation model test integration method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions which, when invoked, are operable to perform the simulation model test integration method of any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410506046.4A CN118377712B (en) | 2024-04-25 | Simulation model test integrated method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410506046.4A CN118377712B (en) | 2024-04-25 | Simulation model test integrated method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118377712A true CN118377712A (en) | 2024-07-23 |
CN118377712B CN118377712B (en) | 2024-11-19 |
Family
ID=
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20200079763A (en) * | 2018-12-26 | 2020-07-06 | 한국전자통신연구원 | Method and apparatus for testing simulation model |
CN112668181A (en) * | 2020-12-28 | 2021-04-16 | 上海科梁信息工程股份有限公司 | Simulation test method, simulation test device, electronic equipment and storage medium |
CN115685781A (en) * | 2022-10-13 | 2023-02-03 | 交控科技股份有限公司 | Online simulation test method and device |
CN117724982A (en) * | 2024-01-12 | 2024-03-19 | 大卓智能科技有限公司 | Simulation evaluation method and device, electronic equipment and storage medium |
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20200079763A (en) * | 2018-12-26 | 2020-07-06 | 한국전자통신연구원 | Method and apparatus for testing simulation model |
CN112668181A (en) * | 2020-12-28 | 2021-04-16 | 上海科梁信息工程股份有限公司 | Simulation test method, simulation test device, electronic equipment and storage medium |
CN115685781A (en) * | 2022-10-13 | 2023-02-03 | 交控科技股份有限公司 | Online simulation test method and device |
CN117724982A (en) * | 2024-01-12 | 2024-03-19 | 大卓智能科技有限公司 | Simulation evaluation method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110275861B (en) | Data storage method and device, storage medium and electronic device | |
US20070006128A1 (en) | Method for evaluating dynamic expressions | |
CN108268373A (en) | Automatic test cases management method, device, equipment and storage medium | |
CN112100359B (en) | Test case searching method, device, equipment and storage medium | |
CN109614325B (en) | Method and device for determining control attribute, electronic equipment and storage medium | |
CN112905451A (en) | Automatic testing method and device for application program | |
CN112527676A (en) | Model automation test method, device and storage medium | |
CN118377712B (en) | Simulation model test integrated method and device | |
CN110287182B (en) | Big data comparison method, device, equipment and terminal | |
CN118113271A (en) | Code generation method, system, terminal and medium based on large model | |
CN118377712A (en) | Simulation model test integrated method and device | |
CN115345600B (en) | RPA flow generation method and device | |
CN115659700B (en) | Waveform automatic contrast analysis method, apparatus and medium based on signal dependency relationship | |
CN117724980A (en) | Method and device for testing software framework performance, electronic equipment and storage medium | |
CN113805861B (en) | Code generation method based on machine learning, code editing system and storage medium | |
CN115328736A (en) | Probe deployment method, device, equipment and storage medium | |
CN115757186A (en) | Performance test method, device, equipment and medium of software interface | |
CN115033434A (en) | Kernel performance theoretical value calculation method and device and storage medium | |
CN114443493A (en) | Test case generation method and device, electronic equipment and storage medium | |
CN112559331A (en) | Test method and device | |
CN114066452A (en) | Generation method and device of path logic view of transaction | |
CN113515465B (en) | Software compatibility testing method and system based on block chain technology | |
CN110045985B (en) | Targetlink model calibration parameter setting method, device, equipment and medium | |
CN113568662B (en) | Code change influence range analysis method and system based on calling relation | |
CN116028034A (en) | Big data preprocessing method, system, storage medium and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |