An integrated method and apparatus for simulation model testing
By integrating simulation model test information and the first simulation model information, the test operation information is generated, and the problem of resource management difficulties in the existing technology is solved, and the testing efficiency and product quality are improved.
Patent Information
- Application Number
- CN202410506046.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-25
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-04-25
AI Technical Summary
The existing simulation model test operation requires a large number of dispersed resource management and scheduling difficulties, resulting in cumbersome and inefficient testing operations.
By obtaining the simulation model test information and the first simulation model information, the fusion process is carried out to generate the simulation model test operation information, determine the test result information, simplify the test process and improve efficiency.
It improves testing efficiency, reduces testing costs, accelerates product research and development cycle, and improves product quality and competitiveness.
Smart Images

Figure CN118377712B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of simulation, and in particular to a simulation model test integrated method and device. Background Art
[0002] With the continuous advancement of science and technology and the increasing requirements of various industries for testing efficiency and accuracy, the demand for simplified model testing operations is also gradually increasing. The development of this technology will provide model testers with a more efficient and convenient testing environment and tools, thereby accelerating the product development cycle and improving product quality.
[0003] At present, simulation model testing operations usually require a large number of test resources, including the operating environment of the running model, simulation scenarios, model dynamic libraries, accompanying test models, etc. However, these resources are usually scattered in different locations, and even multiple versions are generated due to version iteration during project implementation, which makes management and scheduling difficult, resulting in cumbersome test operations and low efficiency.
[0004] Therefore, providing an integrated simulation model testing method and device is beneficial to improving testing efficiency, reducing testing costs, accelerating product development cycle, and improving product quality and competitiveness. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a simulation model testing integrated method and device, which is conducive to improving testing efficiency, reducing testing costs, accelerating product development cycle, and improving product quality and competitiveness.
[0006] In order to solve the above technical problems, the first aspect of the embodiment of the present invention discloses a simulation model test integration method, the method comprising:
[0007] S1, obtaining simulation model test information and first simulation model information; the simulation model test information includes simulation model test selection information, simulation model test name information, simulation model test assumption information, simulation model test parameter information, simulation model test model information and simulation model test running environment information; the first simulation model information includes a first test set, a first test parameter set, a first test model set and a first test running environment set;
[0008] S2, fusing the simulation model test information and the first simulation model information to obtain simulation model test operation information;
[0009] S3: Determine simulation model test result information based on the simulation model test operation information.
[0010] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the fusion processing of the simulation model test information and the first simulation model information to obtain the simulation model test operation information includes:
[0011] S21, performing an extraction operation on the simulation model test selection information to obtain a first extraction result;
[0012] When the first extraction result is new creation or editing, executing S22;
[0013] When the first extraction result is displayed, executing S23;
[0014] When the first extraction result is deletion, executing S24;
[0015] 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;
[0016] S23, extracting and processing all first test name information in the first test set to obtain first test name display information, determining that the first test name display information is simulation model test running information, and executing S3;
[0017] S24, performing full 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 represents a set of the first test name information that is completely consistent with the simulation model test name information;
[0018] S25, deleting all the first test name information in the first matching result set in the first test set to obtain an updated first test set;
[0019] S26, determining that the deletion operation is completed is the simulation model test running information.
[0020] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the determining of the simulation model test operation information based on the simulation model test information, the first extraction result and the first simulation model information includes:
[0021] S221, determining whether the first extraction result is newly created, and obtaining a first determination result;
[0022] When the first judgment result is yes, executing S222;
[0023] When the first judgment result is no, executing S223;
[0024] S222, determining first test information based on the simulation model test information, and executing S224;
[0025] S223, determining first test information based on the simulation model test name information and the first test set;
[0026] S224, fusing the simulation model test information, the first test information and the first simulation model information to obtain simulation model test operation information.
[0027] As an optional implementation manner, in the first aspect of the embodiment of the present invention, determining the first test information based on the simulation model test name information and the first test set includes:
[0028] S2231, matching the simulation model test name information with 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 that is completely consistent with the simulation model test name information and the first test name information in the first test set;
[0029] S2232, normalizing first test assumption value sequences corresponding to all first test name information in the first matching information to obtain a first normalized sequence set; the first normalized sequence set includes a plurality of first normalized sequences; the first normalized sequences correspond one-to-one to the first test name information in the first matching information;
[0030] S2233, using a first simulation model test calculation model, performing matching calculation processing on the simulation model test assumption value sequence in the simulation model test assumption information and the first normalized sequence set to obtain a first simulation model test assumption value sequence;
[0031] Wherein, the first simulation model test calculation model is:
[0032]
[0033] Wherein, XDZ is the first simulation model test assumption value sequence, XX is the first normalized sequence set, A is the simulation model test assumption value sequence in the simulation model test assumption information, is the i-th sequence in the first normalized sequence set a the first normalized sequence, for The standard deviation of for skewness threshold, α3 is the third weight parameter, N a is the number of the first normalized sequences in the first normalized sequence set;
[0034] S2234, determining that the first test name information corresponding to the first simulation model test assumption value sequence is the first test information.
[0035] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the fusion processing of the simulation model test information, the first test information and the first simulation model information to obtain the simulation model test operation information includes:
[0036] S2241, determining whether the simulation model test parameter information exists in the first test parameter set, and obtaining a second determination result;
[0037] When the second judgment result is yes, determine that the simulation model test parameter file information corresponding to the simulation model test parameter information in the first test parameter set is the first test parameter information, and execute S2243;
[0038] When the second judgment result is no, executing S2242;
[0039] S2242, performing calculation processing on the simulation model test parameter information and the first test parameter set to obtain first test parameter information;
[0040] S2243, determining whether the simulation model test model information exists in the first test model set, and obtaining a third determination result;
[0041] 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;
[0042] When the third judgment result is no, executing S2244;
[0043] S2244, performing calculation processing on the simulation model test model information and the first simulation model information to obtain first test model information;
[0044] S2245, determining whether the simulation model test running environment information exists in the first test running environment set, and obtaining a fourth determination result;
[0045] When the fourth judgment result is yes, it is determined that the simulation model test running environment file information corresponding to the simulation model test running environment information in the first test running environment set is the first test running information, and S2247 is executed;
[0046] When the third judgment result is no, executing S2246;
[0047] S2246, performing calculation processing on the simulation model test running environment information to obtain first test running environment information;
[0048] S2247, determine that the first test information, the first test parameter information, the first test model information and the first test running environment information are simulation model test running information.
[0049] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the calculating and processing the simulation model test parameter information and the first test parameter set to obtain the first test parameter information includes:
[0050] S22421, using a second simulation model test calculation model, performing matching calculation processing on the simulation model test parameter information and the first test parameter set to obtain first preprocessing test parameter information;
[0051] Wherein, the second simulation model test calculation model is:
[0052]
[0053] Wherein, CS is the first preprocessing test parameter information, SS is the 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 the parameter value corresponding to the parameter name, α4 is the fourth weight parameter; [(x, y)∈SS] is an indicator logic function, when (x, y) is in SS, the value is 1, otherwise it is 0; params(CSX) represents the set of all parameter names in CSX, and params(SS) identifies the set of all parameter names in SS; Used to indicate that all parameter names in CSX exist in SS;
[0054] S24422. Determine first test parameter information based on the simulation model test parameter information and the first preprocessing test parameter information.
[0055] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the calculating and processing the simulation model test model information and the first simulation model information to obtain the first test model information includes:
[0056] S22441, calculating and processing the executable file information in the simulation model test model information to obtain executable file marking information;
[0057] S22442, performing calculation processing on the executable data information in the simulation model test model information to obtain executable data tag information;
[0058] S22443, adding the executable file information, the executable file mark information, the executable data information and the executable data mark information to the first simulation model information to obtain updated first simulation model information;
[0059] S22444: Determine that the executable file information and the executable data information are first test model information.
[0060] A second aspect of an embodiment of the present invention discloses a simulation model test integrated device, characterized in that the device comprises:
[0061] An acquisition module is used to acquire simulation model test information and first simulation model information; the simulation model test information includes simulation model test selection information, simulation model test name information, simulation model test assumption information, simulation model test parameter information, simulation model test model information and simulation model test running environment information; the first simulation model information includes a first test set, a first test parameter set, a first test model set and a first test running environment set;
[0062] A first calculation module, used for fusing the simulation model test information and the first simulation model information to obtain simulation model test operation information;
[0063] The second calculation module is used to determine the simulation model test result information based on the simulation model test operation information.
[0064] A third aspect of an embodiment of the present invention discloses another integrated simulation model test device, characterized in that the device comprises:
[0065] processor;
[0066] a memory coupled to the processor and storing executable program code;
[0067] The processor calls the executable program code stored in the memory to execute part or all of the steps of the simulation model testing integration method disclosed in the first aspect of the embodiment of the present invention.
[0068] The fourth aspect of an embodiment of the present invention discloses a computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, and when the computer instructions are called, they are used to execute part or all of the steps of the simulation model testing integrated method disclosed in the first aspect of the embodiment of the present invention.
[0069] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0070] In an embodiment of the present invention, simulation model test information and first simulation model information are obtained; the simulation model test information includes simulation model test selection information, simulation model test name information, simulation model test assumption information, simulation model test parameter information, simulation model test model information and simulation model test running environment information; the first simulation model information includes 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 running information; based on the simulation model test running information, the simulation model test result information is determined. It can be seen that the present application is conducive to improving test efficiency, reducing test costs, accelerating product development cycles, and improving product quality and competitiveness. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0072] Figure 1 A schematic diagram of a flow chart of a simulation model test integration method disclosed in an embodiment of the present invention;
[0073] Figure 2 A schematic diagram of the structure of a simulation model test integrated device disclosed in an embodiment of the present invention;
[0074] Figure 3 It is a structural schematic diagram of another simulation model test integrated device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0075] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0076] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or equipment.
[0077] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0078] The present invention discloses a simulation model test integrated method and device, which is beneficial to improving test efficiency, reducing test costs, accelerating product development cycle, and improving product quality and competitiveness. Detailed descriptions are given below.
[0079] Embodiment 1
[0080] See also Figure 1 , Figure 1 1 is a flow chart of a simulation model test integration method disclosed in an embodiment of the present invention. Figure 1 The described simulation model test integration method is applied to a simulation model test integration device, such as a local server or cloud server for optimizing management of simulation model test integration, which is not limited in the embodiments of the present invention. Figure 1 As shown, the simulation model test integration method may include the following operations:
[0081] S1, obtaining simulation model test information and first simulation model information; the simulation model test information includes simulation model test selection information, simulation model test name information, simulation model test assumption information, simulation model test parameter information, simulation model test model information and simulation model test running environment information; the first simulation model information includes a first test set, a first test parameter set, a first test model set and a first test running environment set;
[0082] S2, fusing the simulation model test information and the first simulation model information to obtain simulation model test operation information;
[0083] S3: Determine simulation model test result information based on the simulation model test operation information.
[0084] It should be noted that the simulation model test information is data information used for simulation model testing; the first simulation model information is the simulation model test data information already existing in the historical data, including test case information that has been conducted, simulation model test parameter information used, simulation model information, simulation model operating environment information, etc.
[0085] It should be noted that the simulation model test result information is determined based on the simulation model test operation information, including:
[0086] When the simulation model test running information is first test name display information, determining that the first test name display information is simulation model test result information, which is used to display the result of the existing simulation model test case information;
[0087] When the simulation model test running information is a completion of the deletion operation, determining that the deletion is successful is simulation model test result information, which is used to perform a deletion operation on an existing simulation model test case;
[0088] When the simulation model test running information is not the first test name display information or the deletion operation is completed, the first test information, the first test parameter information, the first test model information and the first test running environment information are determined to be the simulation model test result information; the simulation model test result information is used to characterize the input information of the simulation model test, and the next step of the simulation model test can be directly performed through the simulation model test result information. The next step of the simulation model test step includes:
[0089] The simulation model test running environment is loaded through the first test running environment information, the first test model information is imported into the simulation model test running environment, and the simulation model test parameters are configured through the first test parameter information, and finally the first test information to be tested is imported to perform the simulation model test. For example, Multisim software is used as the running environment of the simulation model, and a 4-bit binary adder is selected as the model, and the parameters are set to set the input port and connect two 4-bit binary numbers, and the test information is selected as the binary addition circuit test, and the binary addition circuit test is tested 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; the input port is set, and the connection of two 4-bit binary numbers is the first test parameter information; the binary addition circuit test is the first test information.
[0090] It can be seen that implementing the simulation model test integration method described in the embodiment of the present invention is conducive to improving test efficiency, reducing test costs, accelerating product development cycle, and improving product quality and competitiveness.
[0091] In an optional embodiment, the fusing the simulation model test information and the first simulation model information to obtain the simulation model test operation information includes:
[0092] S21, performing an extraction operation on the simulation model test selection information to obtain a first extraction result;
[0093] When the first extraction result is new creation or editing, executing S22;
[0094] When the first extraction result is displayed, executing S23;
[0095] When the first extraction result is deletion, executing S24;
[0096] It should be noted that the simulation model test selection information presets one of four test selections, including new, edit, display or delete. When extracted, only one of the four test selections will be obtained.
[0097] 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;
[0098] S23, extracting and processing all first test name information in the first test set to obtain first test name display information, determining that the first test name display information is simulation model test running information, and executing S3;
[0099] S24, performing full 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 represents a set of the first test name information that is completely consistent with the simulation model test name information;
[0100] It should be noted that the above matching is a separate matching, that is, the simulation model test name information and all the first test name information in the first test set are matched separately.
[0101] S25, deleting all the first test name information in the first matching result set in the first test set to obtain an updated first test set;
[0102] S26, determining that the deletion operation is completed is the simulation model test running information.
[0103] It can be seen that implementing the simulation model test integration method described in the embodiment of the present invention is conducive to improving test efficiency, reducing test costs, accelerating product development cycle, and improving product quality and competitiveness.
[0104] In another optional embodiment, determining the simulation model test running information based on the simulation model test information, the first extraction result and the first simulation model information includes:
[0105] S221, determining whether the first extraction result is newly created, and obtaining a first determination result;
[0106] When the first judgment result is yes, executing S222;
[0107] When the first judgment result is no, executing S223;
[0108] S222, determining first test information based on the simulation model test information, and executing S224;
[0109] S223, determining first test information based on the simulation model test name information and the first test set;
[0110] S224, fusing the simulation model test information, the first test information and the first simulation model information to obtain simulation model test operation information.
[0111] It should be noted that, based on the simulation model test information, determining the first test information is to calculate the simulation model test information through an algorithm to obtain the simulation model test identification information, and add the simulation model test information and the simulation model test identification information to the first test set to obtain the updated first test set, and determine that the simulation model test information is the first test information. If the MD5 algorithm is used for calculation, a unique identification of the simulation model test information, i.e., the simulation model test identification information, will be obtained, so that when testing is performed later, the simulation model test information already in the first test set can be directly used for testing, and the uniqueness of the version can be guaranteed, so that the test information version can be solidified.
[0112] It can be seen that implementing the simulation model test integration method described in the embodiment of the present invention is conducive to improving test efficiency, reducing test costs, accelerating product development cycle, and improving product quality and competitiveness.
[0113] In yet another optional embodiment, determining the first test information based on the simulation model test name information and the first test set includes:
[0114] S2231, matching the simulation model test name information with 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 that is completely consistent with the simulation model test name information and the first test name information in the first test set;
[0115] S2232, normalizing first test assumption value sequences corresponding to all first test name information in the first matching information to obtain a first normalized sequence set; the first normalized sequence set includes a plurality of first normalized sequences; the first normalized sequences correspond one-to-one to the first test name information in the first matching information;
[0116] It should be noted that the above normalization processing is calculated by simulating a normalization model;
[0117] Wherein, the simulation normalization model is:
[0118]
[0119] In the formula, XX i,j is the jth first normalized sequence value in the i-th first normalized sequence in the first normalized sequence set, XD i,j is the jth first test assumption value in the first test assumption value sequence corresponding to the i-th first test name information in the first matching information, μ i is the mean of the first test assumption value sequence corresponding to the i-th first test name information in the first matching information, σ i is the standard deviation of the first test assumption value sequence corresponding to the i-th first test name information in the first matching information, S i is the i-th skewness threshold, α1 and α2 are the first weight parameter and the second weight parameter, N is the number of the first test name information in the first matching information, and M is the number of the first test assumed values in the first test assumed value sequence corresponding to the i-th first test name information in the first matching information.
[0120] It should be noted that the skewness threshold S1-S N It is preset;
[0121] It should be noted that the first weight parameter and the second weight parameter may be defined by a user or acquired according to a system, and the embodiment of the present invention does not specifically limit this.
[0122] It should be noted that the first normalized sequence in the first normalized sequence set corresponds one-to-one to the first test name information in the first matching information;
[0123] S2233, using a first simulation model test calculation model, performing matching calculation processing on the simulation model test assumption value sequence in the simulation model test assumption information and the first normalized sequence set to obtain a first simulation model test assumption value sequence;
[0124] Wherein, the first simulation model test calculation model is:
[0125]
[0126] Wherein, XDZ is the first simulation model test assumption value sequence, XX is the first normalized sequence set, A is the simulation model test assumption value sequence in the simulation model test assumption information, is the i-th sequence in the first normalized sequence set a the first normalized sequence, for The standard deviation of for skewness threshold, α3 is the third weight parameter, N a is the number of the first normalized sequences in the first normalized sequence set;
[0127] It should be noted that the simulation model test assumption value sequence in the simulation model test assumption information and the first normalized sequence set are matched and calculated to obtain the first simulation model test assumption value sequence, which is to match all elements in the simulation model test assumption value sequence with all elements of all first normalized sequences in the first normalized sequence set, and select the first normalized sequence with the smallest element difference in the matched first normalized sequence as the first simulation model test assumption value sequence.
[0128] It should be noted that the skewness threshold is preset.
[0129] It should be noted that the third weight parameter may be set by a user or obtained based on historical data, and the embodiment of the present invention does not make any specific limitation thereto.
[0130] It should be noted that the first simulation model test assumption value sequence is the first normalized sequence having the smallest difference between all first normalized sequences in the first normalized sequence set and the simulation model test assumption value sequence.
[0131] S2234, determining that the first test name information corresponding to the first simulation model test assumption value sequence is the first test information.
[0132] It should be noted that the first test name information corresponding to the first simulation model test assumption value sequence is determined to be the first test information, which is to calculate the first test name information corresponding to the first simulation model test assumption value sequence through an algorithm to obtain simulation model test identification information, and add the first test name information and simulation model test identification information corresponding to the first simulation model test assumption value sequence to the first test set to obtain an updated first test set, and determine that the first test name information corresponding to the first simulation model test assumption value sequence is the first test information. If the MD5 algorithm is used for calculation, a unique identifier of the first test name information, i.e., the simulation model test identification information, will be obtained, so that when testing is performed later, the test information already in the first test set can be directly used for testing, and the uniqueness of the version can be guaranteed, so that the test information version can be solidified.
[0133] It can be seen that implementing the simulation model test integration method described in the embodiment of the present invention is conducive to improving test efficiency, reducing test costs, accelerating product development cycle, and improving product quality and competitiveness.
[0134] In yet another optional embodiment, the fusing the simulation model test information, the first test information and the first simulation model information to obtain the simulation model test operation information includes:
[0135] S2241, determining whether the simulation model test parameter information exists in the first test parameter set, and obtaining a second determination result;
[0136] When the second judgment result is yes, determine that the simulation model test parameter file information corresponding to the simulation model test parameter information in the first test parameter set is the first test parameter information, and execute S2243;
[0137] When the second judgment result is no, executing S2242;
[0138] S2242, performing calculation processing on the simulation model test parameter information and the first test parameter set to obtain first test parameter information;
[0139] S2243, determining whether the simulation model test model information exists in the first test model set, and obtaining a third determination result;
[0140] 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;
[0141] When the third judgment result is no, executing S2244;
[0142] S2244, performing calculation processing on the simulation model test model information and the first simulation model information to obtain first test model information;
[0143] S2245, determining whether the simulation model test running environment information exists in the first test running environment set, and obtaining a fourth determination result;
[0144] When the fourth judgment result is yes, it is determined that the simulation model test running environment file information corresponding to the simulation model test running environment information in the first test running environment set is the first test running information, and S2247 is executed;
[0145] When the third judgment result is no, executing S2246;
[0146] S2246, performing calculation processing on the simulation model test running environment information to obtain first test running environment information;
[0147] S2247, determine that the first test information, the first test parameter information, the first test model information and the first test running environment information are simulation model test running information.
[0148] It should be noted that the simulation model test parameter information, simulation model test model information and simulation model test operating environment information are used as input information for the simulation model test, including parameter input, model input and operating environment input.
[0149] It can be seen that implementing the simulation model test integration method described in the embodiment of the present invention is conducive to improving test efficiency, reducing test costs, accelerating product development cycle, and improving product quality and competitiveness.
[0150] In an optional embodiment, the calculating and processing the simulation model test parameter information and the first test parameter set to obtain the first test parameter information includes:
[0151] S22421, using a second simulation model test calculation model, performing matching calculation processing on the simulation model test parameter information and the first test parameter set to obtain first preprocessing test parameter information;
[0152] Wherein, the second simulation model test calculation model is:
[0153]
[0154] Wherein, CS is the first preprocessing test parameter information, SS is the 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 the parameter value corresponding to the parameter name, α4 is the fourth weight parameter; [(x, y)∈SS] is an indicator logic function, when (x, y) is in SS, the value is 1, otherwise it is 0; params(CSX) represents the set of all parameter names in CSX, and params(SS) identifies the set of all parameter names in SS; Used to indicate that all parameter names in CSX exist in SS;
[0155] It should be noted that the matching calculation process of the simulation model test parameter information and the first test parameter set to obtain the first preprocessing test parameter information is to match all key values in the simulation model test parameter information with key values in all first test parameter sequences in the first test parameter set to obtain the sequence with the highest similarity to the simulation model test parameter information in the first test parameter set as the first preprocessing test parameter information. For example, if the first preprocessing test parameter information is [(a,1),(b,2),(c,3),(d,4),(e,5)], and 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)], it is found through matching calculation that the sequence with the highest similarity to the simulation model test parameter information in the first test parameter set is [(a,1),(b,2),(c,3),(d,1),(e,5)], and [(a,3),(b,4),(c,5),(d,4),(e,5),(f,2)]. The sequence with the highest similarity is [(a,1),(b,2),(c,3),(d,1),(e,5)], where the values corresponding to the four keys a, b, c, and e in the first preprocessing test parameter information are consistent with those in the sequence [(a,1),(b,2),(c,3),(d,4),(e,5)]. Finally, [(a,1),(b,2),(c,3),(d,1),(e,5)] is confirmed to be the first preprocessing test parameter information.
[0156] It should be noted that the fourth weight parameter may be set by a user or obtained based on historical data, and the embodiment of the present invention does not make any specific limitation thereto.
[0157] S24422. Determine first test parameter information based on the simulation model test parameter information and the first preprocessing test parameter information.
[0158] It should be noted that determining the first test parameter information based on the simulation model test parameter information and the first preprocessing test parameter information includes: obtaining parameter configuration file information corresponding to the first preprocessing test parameter information in the first test parameter set; replacing the parameter value corresponding to the parameter configuration file information with the parameter value corresponding to the parameter key in the simulation model test parameter information to obtain the first test parameter information;
[0159] At the same time, the first test parameter information is calculated to obtain the first test parameter identification information, and the first test parameter information and the first test parameter identification information are added to the first test parameter set to obtain the updated first test parameter set. For example, the first test parameter identification information is obtained by using the MD5 algorithm, so that when the test is performed later, the first test parameter information already in the first test parameter set can be directly used for testing, and the uniqueness of the version can be guaranteed, so that the test parameter information version can be solidified.
[0160] It can be seen that implementing the simulation model test integration method described in the embodiment of the present invention is conducive to improving test efficiency, reducing test costs, accelerating product development cycle, and improving product quality and competitiveness.
[0161] In another optional embodiment, the calculating and processing the simulation model test model information and the first simulation model information to obtain the first test model information includes:
[0162] S22441, calculating and processing the executable file information in the simulation model test model information to obtain executable file marking information;
[0163] It should be noted that the above executable file information is a model file, and the above calculation process is performed using the MD5 algorithm.
[0164] S22442, performing calculation processing on the executable data information in the simulation model test model information to obtain executable data tag information;
[0165] It should be noted that the above executable data information is the data file when the model is running, such as the dependent library, etc. The above calculation processing is performed using the MD5 algorithm.
[0166] S22443, adding the executable file information, the executable file mark information, the executable data information and the executable data mark information to the first simulation model information to obtain updated first simulation model information;
[0167] S22444: Determine that the executable file information and the executable data information are first test model information.
[0168] It can be seen that implementing the simulation model test integration method described in the embodiment of the present invention is conducive to improving test efficiency, reducing test costs, accelerating product development cycle, and improving product quality and competitiveness.
[0169] In yet another optional embodiment, the calculating and processing the simulation model test running environment information to obtain the first test running environment information includes:
[0170] S22461, obtaining first operating environment information;
[0171] S22462, using a third simulation model test calculation model, calculating and processing the simulation model test operating environment information and the first operating environment information to obtain second operating environment information;
[0172] Wherein, the third simulation model test calculation model is:
[0173]
[0174] Wherein, PC is the second operating environment information, HJ is the simulation model test operating environment information, YX is the first operating environment information, KE is the set of simulation model test operating environment parameters in HJ, i c The operating environment parameters for the simulation model test in HJ, PC (i c ) is the parameter i in PC c The corresponding value, HJ(i c ) is the parameter i in HJ c The corresponding value, YX(i c ) is the parameter i in YX c The corresponding value;
[0175] S22463: Determine first test running environment information based on the second running environment information.
[0176] It should be noted that, based on the second operating environment information, the first test operating environment information is determined, and the operating code information of the test operating environment is obtained from a preset code library such as gitlab, and the operating code information is updated and compiled through the second operating environment information to obtain the operating environment file information, and the operating environment file identification information is obtained through algorithm calculation, and the operating environment file information and the operating environment file identification information are added to the first test operating environment set. For example, the second operating environment information includes a=5, b=6, env=linux, and these parameters are updated to the parameters a, b, env in the operating code information, and the operating code information is compiled through general compilation tools such as C++ and golang to obtain the compiled file, that is, the operating environment file information, and then the operating environment file information is calculated through the MD5 algorithm to obtain the operating environment file identification information. By using the MD5 algorithm and adding the operating environment file information and the operating environment file identification information to the first test operating environment set, when testing in the future, the operating environment file information already in the first test operating environment set can be directly used for testing, and the uniqueness of the version can be guaranteed, so that the operating environment version can be solidified.
[0177] It can be seen that implementing the simulation model test integration method described in the embodiment of the present invention is conducive to improving test efficiency, reducing test costs, accelerating product development cycle, and improving product quality and competitiveness.
[0178] Embodiment 2
[0179] See also Figure 2 , Figure 2 : is a structural diagram of a simulation model test integrated device disclosed in an embodiment of the present invention. Figure 2 The described simulation model test integration device is applied to the simulation model test integration system, such as a local server or cloud server for simulation model test integration, etc., which is not limited in the embodiments of the present invention. Figure 2 As shown, the simulation model test integrated device includes:
[0180] Acquisition module 201, used to acquire simulation model test information and first simulation model information; the simulation model test information includes simulation model test selection information, simulation model test name information, simulation model test assumption information, simulation model test parameter information, simulation model test model information and simulation model test running environment information; the first simulation model information includes a first test set, a first test parameter set, a first test model set and a first test running environment set;
[0181] A first calculation module 202 is used to fuse the simulation model test information and the first simulation model information to obtain simulation model test operation information;
[0182] The second calculation module 203 is used to determine the simulation model test result information based on the simulation model test operation information.
[0183] It can be seen that the implementation of the simulation model test integrated device described in the embodiment of the present invention is conducive to improving test efficiency, reducing test costs, accelerating product development cycle, and improving product quality and competitiveness.
[0184] Embodiment 3
[0185] See also Figure 3 , Figure 3 is a schematic diagram of the structure of another integrated simulation model test device disclosed in an embodiment of the present invention. Figure 3 The described simulation model test integration device is applied to the simulation model test integration system, such as a local server or cloud server for simulation model test integration, etc., which is not limited in the embodiments of the present invention. Figure 3 As shown, the simulation model test integrated device includes:
[0186] Processor 301;
[0187] A memory 302 coupled to the processor 301 and storing executable program codes;
[0188] The processor 301 calls the executable program code stored in the memory 302 to execute part or all of the steps of the simulation model test integration method described in the first embodiment.
[0189] It can be seen that the implementation of the simulation model test integrated device described in the embodiment of the present invention is conducive to improving test efficiency, reducing test costs, accelerating product development cycle, and improving product quality and competitiveness.
[0190] Embodiment 4
[0191] An embodiment of the present invention discloses a computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, and when the computer instructions are called, they are used to execute part or all of the steps of the simulation model test integration method described in Example 1.
[0192] Embodiment 5
[0193] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute part or all of the steps in the simulation model test integration method described in Example 1.
[0194] The system embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative labor.
[0195] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0196] Finally, it should be noted that the integrated simulation model testing method and device disclosed in the embodiment of the present invention discloses only the preferred embodiment of the present invention, which is only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A simulation model testing integrated method, characterized in that: The method comprises: S1, obtaining simulation model test information and first simulation model information; the simulation model test information includes simulation model test selection information, simulation model test name information, simulation model test assumption information, simulation model test parameter information, simulation model test model information and simulation model test running environment information; the first simulation model information includes a first test set, a first test parameter set, a first test model set and a first test running environment set; S2, fusing the simulation model test information and the first simulation model information to obtain simulation model test operation information, including: S21, performing an extraction operation on the simulation model test selection information to obtain a first extraction result; When the first extraction result is new creation or editing, executing S22; When the first extraction result is displayed, executing S23; 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 and processing all first test name information in the first test set to obtain first test name display information, determining that the first test name display information is simulation model test running information, and executing S3; S24, performing full 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 represents a set of the first test name information that is completely consistent with the simulation model test name information; S25, deleting all the first test name information 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 for the simulation model test operation information; S3: Determine simulation model test result information based on the simulation model test operation information.
2. The simulation model test integration method according to claim 1, characterized in that: The determining of simulation model test operation information based on the simulation model test information, the first extraction result and the first simulation model information includes: S221, determining whether the first extraction result is newly created, and obtaining a first determination result; When the first judgment result is yes, executing S222; When the first judgment result is no, executing S223; 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, fusing the simulation model test information, the first test information and the first simulation model information to obtain simulation model test operation information.
3. The simulation model test integration method according to claim 2, characterized in that: The determining of first test information based on the simulation model test name information and the first test set includes: S2231, matching the simulation model test name information with 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 that is completely consistent with the simulation model test name information and the first test name information in the first test set; S2232, normalizing first test assumption value sequences corresponding to all first test name information in the first matching information to obtain a first normalized sequence set; the first normalized sequence set includes a plurality of first normalized sequences; the first normalized sequences correspond one-to-one to the first test name information in the first matching information; S2233, using a first simulation model test calculation model, performing matching calculation processing on the simulation model test assumption value sequence in the simulation model test assumption information and the first normalized sequence set to obtain a first simulation model test assumption value sequence; Wherein, the first simulation model test calculation model is: Wherein, XDZ is the first simulation model test assumption value sequence, XX is the first normalized sequence set, A is the simulation model test assumption value sequence in the simulation model test assumption information, is the i-th sequence in the first normalized sequence set a the first normalized sequence, for The standard deviation of for skewness threshold, α3 is the third weight parameter, N a is the number of the first normalized sequences in the first normalized sequence set; S2234, determining that the first test name information corresponding to the first simulation model test assumption value sequence is the first test information.
4. The simulation model test integration method according to claim 2, characterized in that: The fusing the simulation model test information, the first test information and the first simulation model information to obtain the simulation model test operation information includes: S2241, determining whether the simulation model test parameter information exists in the first test parameter set, and obtaining a second determination result; When the second judgment result is yes, determine that the simulation model test parameter file information corresponding to the simulation model test parameter information in the first test parameter set is the first test parameter information, and execute S2243; When the second judgment result is no, executing S2242; S2242, performing calculation processing on the simulation model test parameter information and the first test parameter set to obtain first test parameter information; S2243, determining whether the simulation model test model information exists in the first test model set, and obtaining a third determination 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 judgment result is no, executing S2244; S2244, performing calculation processing on the simulation model test model information and the first simulation model information to obtain first test model information; S2245, determining whether the simulation model test running environment information exists in the first test running environment set, and obtaining a fourth determination result; When the fourth judgment result is yes, it is determined that the simulation model test running environment file information corresponding to the simulation model test running environment information in the first test running environment set is the first test running information, and S2247 is executed; When the third judgment result is no, executing S2246; S2246, performing calculation processing on the simulation model test running environment information to obtain first test running environment information; S2247, determine that the first test information, the first test parameter information, the first test model information and the first test running environment information are simulation model test running information.
5. The simulation model test integration method according to claim 4, characterized in that: The calculating and processing the simulation model test parameter information and the first test parameter set to obtain the first test parameter information includes: S22421, using a second simulation model test calculation model, performing matching calculation processing on the simulation model test parameter information and the first test parameter set to obtain first preprocessing test parameter information; Wherein, the second simulation model test calculation model is: Wherein, CS is the first preprocessing test parameter information, SS is the 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 the parameter value corresponding to the parameter name, α4 is the fourth weight parameter; [(x, y)∈SS] is an indicator logic function, when (x, y) is in SS, the value is 1, otherwise it is 0; params(CSX) represents the set of all parameter names in CSX, and params(SS) identifies the set of all parameter names in SS; Used to indicate that all parameter names in CSX exist in SS; S24422. Determine first test parameter information based on the simulation model test parameter information and the first preprocessing test parameter information.
6. The simulation model test integration method according to claim 4, characterized in that: The step of calculating and processing the simulation model test model information and the first simulation model information to obtain the first test model information includes: S22441, calculating and processing the executable file information in the simulation model test model information to obtain executable file marking information; S22442, performing calculation processing on the executable data information in the simulation model test model information to obtain executable data tag information; S22443, adding the executable file information, the executable file mark information, the executable data information and the executable data mark information to the first simulation model information to obtain updated first simulation model information; S22444: Determine that the executable file information and the executable data information are first test model information.
7. A simulation model test integrated device, characterized in that: The device comprises: processor; a memory coupled to the processor and storing executable program code; The processor calls the executable program code stored in the memory to execute the simulation model testing integrated method as described in any one of claims 1-6.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the simulation model test integration method according to any one of claims 1-6.
