CN111581101A - Software model testing method, device, equipment and medium - Google Patents
Software model testing method, device, equipment and medium Download PDFInfo
- Publication number
- CN111581101A CN111581101A CN202010391819.0A CN202010391819A CN111581101A CN 111581101 A CN111581101 A CN 111581101A CN 202010391819 A CN202010391819 A CN 202010391819A CN 111581101 A CN111581101 A CN 111581101A
- Authority
- CN
- China
- Prior art keywords
- test
- software model
- target
- testing
- scheme
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 350
- 238000000034 method Methods 0.000 claims abstract description 28
- 238000013515 script Methods 0.000 claims abstract description 19
- 125000004122 cyclic group Chemical group 0.000 claims description 12
- 238000004422 calculation algorithm Methods 0.000 claims description 9
- 230000003044 adaptive effect Effects 0.000 claims description 7
- 238000010998 test method Methods 0.000 claims description 7
- 239000012085 test solution Substances 0.000 claims description 7
- 238000006073 displacement reaction Methods 0.000 claims description 5
- 238000004590 computer program Methods 0.000 claims description 2
- 230000006870 function Effects 0.000 description 21
- 238000010586 diagram Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002068 genetic effect Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000003032 molecular docking Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000013522 software testing Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 239000000243 solution Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
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/3688—Test management for test execution, e.g. scheduling of test suites
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses a method, a device, equipment and a medium for testing a vehicle software model. Wherein, the method comprises the following steps: selecting a target test scheme from the candidate test schemes; wherein the candidate test scenario comprises: automatic test of scripts, automatic test of circulating working conditions and manual test; determining target parameters output by the software model according to the target test scheme; and determining the test result of the software model according to the target parameters of the software model. The embodiment of the invention can flexibly select the test scheme according to different test working conditions, and solves the problem of higher test complexity caused by adopting a fixed test case when a test kit is used for testing, thereby greatly improving the test efficiency.
Description
Technical Field
The embodiment of the invention relates to an automobile software testing technology, in particular to a testing method, a testing device, testing equipment and a testing medium of a software model.
Background
With the rapid development of the automobile industry, the role of the E/E system of the automobile electronic appliance in the automobile is continuously improved, and the time and cost occupied by the development of the VCU (Vehicle Control Unit) are higher and higher. Meanwhile, more and more electronic control systems on the whole vehicle have safety-related functions, so that the safety requirements on the VCU are higher and higher; software qualification testing in automotive software development has become a significant part of the quality of the software development process. The currently common Test method is mainly to Test a software model through a Simulink Test kit carried by MATLAB.
The defects of the scheme are as follows: the test cases in the tool kit are fixed, and the test cannot be flexibly changed according to the actual working condition requirements; when testing is carried out under different working conditions, a large amount of complex changes need to be made on test cases, and the testing efficiency is greatly reduced.
Disclosure of Invention
The embodiment of the application provides a test method, a test device, equipment and a medium for a vehicle software model, and a test scheme can be flexibly selected according to actual requirements, so that the test efficiency is effectively improved.
In a first aspect, an embodiment of the present invention provides a method for testing a vehicle software model, including:
selecting a target test scheme from the candidate test schemes; wherein the candidate test scenario comprises: automatic test of scripts, automatic test of circulating working conditions and manual test;
determining target parameters output by a software model according to the target test scheme;
and determining the test result of the software model according to the target parameters of the software model.
Optionally, the selecting a target test solution from the candidate test solutions includes:
determining a test condition of the software model;
selecting a target test scheme from candidate test schemes according to the test conditions of the software model and preset conditions of the test working conditions; the preset conditions of the test working conditions comprise at least one of the following conditions: and testing the speed, the opening degree of an accelerator pedal, the opening degree of a brake pedal and the cycle period.
Optionally, the software model is determined based on at least one of a constant speed cruise function, an adaptive cruise function and an accelerator pedal function of the vehicle.
Optionally, the determining a target parameter output by the software model according to the target test scheme includes:
if the target test scheme is script automatic test, configuring a test environment according to test environment parameters; wherein the test environment parameters include: step length, solver algorithm and test stop time;
under the test environment, testing the software model according to the test case to obtain target parameters output by the software model; wherein the target parameters include at least one of: displacement, accelerator pedal opening, and brake pedal opening.
Optionally, the determining a target parameter output by the software model according to the target test scheme includes:
if the target test scheme is a cyclic working condition automatic test, taking an initial preset parameter of the vehicle in the test process as the input of a cyclic working condition model to obtain a first parameter;
taking the first parameter as an input of the driver model, and taking an output result of the driver model as a second parameter;
and inputting the second parameter into the software model, and taking an output result of the software model as a target parameter of the software model.
In a second aspect, an embodiment of the present invention provides a testing apparatus for a vehicle software model, including:
a selection module for selecting a target test scheme from the candidate test schemes; wherein the candidate test scenario comprises: automatic test of scripts, automatic test of circulating working conditions and manual test;
the determining module is used for determining target parameters output by the software model according to the target test scheme;
and the determining module is also used for determining the test result of the software model according to the target parameters of the software model.
Optionally, the selecting module is specifically configured to:
determining a test condition of the software model;
selecting a target test scheme from candidate test schemes according to the test conditions of the software model and preset conditions of the test working conditions; the preset conditions of the test working conditions comprise at least one of the following conditions: and testing the speed, the opening degree of an accelerator pedal, the opening degree of a brake pedal and the cycle period.
Optionally, the software model is determined based on at least one of a constant speed cruise function, an adaptive cruise function and an accelerator pedal function of the vehicle.
Optionally, the determining module is specifically configured to:
if the target test scheme is script automatic test, configuring a test environment according to test environment parameters; wherein the test environment parameters include: step length, solver algorithm and test stop time;
under the test environment, testing the software model according to the test case to obtain target parameters output by the software model; wherein the target parameters include at least one of: displacement, accelerator pedal opening, and brake pedal opening.
Optionally, the determining module is further specifically configured to:
if the target test scheme is a cyclic working condition automatic test, taking an initial preset parameter of the vehicle in the test process as the input of a cyclic working condition model to obtain a first parameter;
taking the first parameter as an input of the driver model, and taking an output result of the driver model as a second parameter;
and inputting the second parameter into the software model, and taking an output result of the software model as a target parameter of the software model.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method for testing a vehicle software model according to any one of the embodiments of the present invention.
In a fourth aspect, the embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the method for testing the vehicle software model according to any one of the embodiments of the present invention.
The embodiment of the invention selects the target test scheme from the candidate test schemes, determines the target parameters output by the software model according to the target test scheme, and determines the test result of the software model according to the target parameters of the software model. The embodiment of the invention can flexibly select the test scheme according to different test working conditions, solves the problem of higher test complexity caused by adopting a fixed test case when a test kit is used for testing, and greatly improves the test efficiency.
Drawings
FIG. 1 is a schematic flow chart illustrating a testing method of a vehicle software model according to a first embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a testing method of a vehicle software model according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a testing device for a vehicle software model according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device in a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flow chart of a testing method of a vehicle software model according to a first embodiment of the present invention. The embodiment can be applied to the situation of flexibly testing the vehicle software model. The method of the embodiment may be executed by a testing apparatus for a vehicle software model, where the apparatus may be implemented in a hardware/software manner, and may be configured in an electronic device, so as to implement the testing method for the vehicle software model according to any embodiment of the present application. As shown in fig. 1, the method specifically includes the following steps:
s110, selecting a target test scheme from the candidate test schemes; wherein the candidate test scenario comprises: automatic test of scripts, automatic test of circulating working conditions and manual test.
In this embodiment, the candidate test solutions are classified and determined according to different test conditions; different software models adopt different testing schemes, which may cause great difference in testing effect, so that the testing result is inaccurate; therefore, for different software models, a test scheme most matched with the software model needs to be selected, and then more accurate test efficiency can be achieved.
Specifically, the script automatic test and the cycle condition automatic test are carried out, in the test process, the test needs to be carried out based on a pre-compiled test case, for example, the test case can be manually compiled, and then a test environment is configured based on the test case through a software development tool MATLAB to test a software model; and the manual test can support the test without test cases, namely, the instruction simulation is carried out by using specific simulation software so as to realize the effective test of the software model. According to the embodiment, the test scheme can be flexibly selected according to different test working conditions, the problem that the test complexity is high due to the fact that a fixed test case is adopted during test of the test kit is solved, and the test efficiency is greatly improved.
And S120, determining target parameters output by the software model according to the target test scheme.
In the embodiment, on the basis of determining a target test scheme, target parameters of a software model are determined through different test methods; and the target parameter is a test value output by the software model to be tested. For example, when the target test scheme is script automatic test or cycle condition automatic test, the target parameter is a test value output by testing the software model according to a test case in the script automatic test or a test case in the cycle condition automatic test; when the target test scheme is manual test, the target parameters are test values which are output by the software model through simulating the instructions according to the preset instructions.
Optionally, the software model is determined based on at least one of a constant speed cruise function, an adaptive cruise function and an accelerator pedal function of the vehicle.
In the embodiment, the software model is a model constructed according to the running function of the vehicle, wherein the software to be tested is on the whole vehicle; wherein the driving function of the vehicle comprises at least one of: a constant speed cruise function, an adaptive cruise function, and an accelerator pedal function. Specifically, the software model in this embodiment is built through MATLAB/Simulink/platform, so that both writing of the test case and the software model to be tested are based on MATLAB, and the problem that in the software model test, when third-party test software (non-MATLAB) is used to test the software model, seamless docking with MATLAB is not possible, effective analysis of the test result is difficult to realize, and thus the test efficiency is reduced is solved.
And S130, determining a test result of the software model according to the target parameters of the software model.
In this embodiment, while the target parameters of the software model are determined, the test environment of the software model may be determined according to the target test scheme, and then the test result of the software model is determined according to the target parameters of the software model and the test environment of the software model. Specifically, the rationality of the target parameters output by the software model needs to be judged, so that the test qualification of the software model is determined. For example, a specific target parameter threshold value can be set according to different test schemes, and then a target parameter threshold value range is determined according to actual error limitation; if a plurality of test cases can exist for the script automatic test and the circulating working condition automatic test, a plurality of target test thresholds are corresponding, and the target test thresholds are expected values calculated through the test case logic; for manual testing, the target parameters are preset by the tester according to actual testing requirements.
Specifically, taking a test case as an example, judgment and explanation of target parameters of the software model are performed. If a plurality of test cases exist, corresponding to a plurality of target parameters and a plurality of target parameter threshold ranges; in this embodiment, one test case outputs one or more target parameters and a logically calculated target parameter threshold range, and the target parameter output by each test case is associated with the corresponding target parameter threshold range. When the software model is tested by using the test case, if the target parameter output by each software model is in the target parameter threshold range associated with the software model, the software model is judged to be reasonably tested.
The embodiment of the invention selects the target test scheme from the candidate test schemes, determines the target parameters output by the software model according to the target test scheme, and determines the test result of the software model according to the target parameters of the software model. The embodiment of the invention can flexibly select the test scheme according to different test working conditions, solves the problem of higher test complexity caused by adopting a fixed test case when a test kit is used for testing, and greatly improves the test efficiency.
Example two
Fig. 2 is a schematic flow chart of a testing method of a vehicle software model according to a second embodiment of the present invention. The embodiment is further expanded and optimized on the basis of the embodiment, and can be combined with any optional alternative in the technical scheme. As shown in fig. 2, the method includes:
and S210, determining the test conditions of the software model.
In the embodiment, the software model is a model constructed according to software to be tested on the whole vehicle, so that the software model has specific test conditions; the test conditions of the software model may include an accelerator pedal opening, a brake pedal opening, power-on, power-off, a cycle period, and the like. The test conditions of the software model determined in the embodiment can further reflect the test requirements of the software model, so that the matching degree of the selected test scheme and the software model is higher.
S220, selecting a target test scheme from the candidate test schemes according to the test conditions of the software model and the preset conditions of the test working conditions; the preset conditions of the test working condition comprise at least one of the following conditions: and testing the speed, the opening degree of an accelerator pedal, the opening degree of a brake pedal and the cycle period.
In the embodiment, a target test scheme is determined from candidate test schemes according to a matching result of the test conditions of the software model and the preset conditions of the test working conditions; for example, the test conditions of the software model to be tested are identified, and if a test period exists, the target test scheme of the software model can be determined to be a cycle condition automatic test; or if the test conditions of the software model specify the test accelerator pedal voltage, the script automatic test can be selected as a target test scheme, so that the subsequent accelerator pedal opening output by the software model is used as a target parameter for testing whether the software model is qualified; if the test conditions of the software model are simple, the software model can be executed and simulated by adopting a target instruction mode, and then the manual test can be used as a target test scheme.
And S230, determining target parameters output by the software model according to the target test scheme.
And S240, determining the test result of the software model according to the target parameters of the software model.
Optionally, S230 includes: if the target test scheme is script automatic test, configuring a test environment according to the test environment parameters; wherein the testing environment parameters include: step length, solver algorithm and test stop time;
testing the software model under a test environment according to the test case to obtain target parameters output by the software model; wherein the target parameter comprises at least one of: displacement, accelerator pedal opening, and brake pedal opening.
In this embodiment, when the test scheme of the software model is selected as the script automatic test, the software model may be tested according to the following steps.
Step A: opening MATLAB software, and importing a software automatic test script in a Command window;
and B: selecting a test case document to be executed in a popped up dialog box; the test case document is stored in an excel file form;
and C: selecting a software model to be tested, wherein the software model is represented by a Simulink model packaged with a specified algorithm;
step D: configuring a test environment according to the test environment parameters; wherein the testing environment parameters include: step length, solver algorithm and test stop time; for example, the step size may be selected to be 10 ms; the solver algorithm selects a Runge Kutta method or a genetic algorithm; the test stop time may be set to 50s or 100 s; in this embodiment, the selection of the configuration environment parameters is not limited at all, and may be specifically selected according to actual situations.
Step E: and reading each test case, and testing the software model to obtain the output result of the software model aiming at each test case.
Optionally, S230 includes:
if the target test scheme is a cyclic working condition automatic test, taking an initial preset parameter of the vehicle in the test process as the input of a cyclic working condition model to obtain a first parameter;
taking the first parameter as the input of a driver model, and taking the output result of the driver model as a second parameter;
and inputting the second parameter into the software model, and taking an output result of the software model as a target parameter of the software model.
In this embodiment, the initial preset parameters are that a tester manually inputs the parameters into the cyclic working condition model according to the test requirements of the software model to be tested, and then combines the output result of the cyclic working condition model with the driver model to obtain the output result of the software model. Wherein, the Cycle condition model can be but is not limited to a NEDC (New European Driving Cycle) model, a WLTC (light vehicle testing Cycle) model or a CLTC (chinese light vehicle testing) model; the Driver model may be a Longitudinal Driver model.
Specifically, after the second parameter output by the driver model is input into the software model, the output result of the software model needs to be corrected in real time, so that the test result is inaccurate due to the large error in the test process. For example, the output result can be optimized by adopting anti-saturation PI plus feedforward control (linear regulator), adjusting the error direction in the test process in real time, and controlling the execution time of the saturation region.
According to the embodiment of the invention, the target test scheme is selected from the candidate test schemes through the determined test conditions of the software model and the preset conditions of the test working conditions, so that the software model is effectively tested. The test conditions of the software model determined in the embodiment can further reflect the test requirements of the software model, so that the matching degree of the selected test scheme and the software model is higher, and the accuracy of the test scheme selection is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a testing apparatus for a vehicle software model according to a third embodiment of the present invention, which is applicable to a flexible test of the vehicle software model. The device is configured in the electronic equipment, and can realize the test method of the vehicle software model in any embodiment of the application. The device specifically comprises the following steps:
a selection module 310 for selecting a target test solution from the candidate test solutions; wherein the candidate test scenario comprises: automatic test of scripts, automatic test of circulating working conditions and manual test;
a determining module 320, configured to determine a target parameter output by the software model according to the target test scenario;
the determining module 320 is further configured to determine a test result of the software model according to the target parameter of the software model.
Optionally, the selecting module 310 is specifically configured to:
determining a test condition of the software model;
selecting a target test scheme from candidate test schemes according to the test conditions of the software model and preset conditions of the test working conditions; the preset conditions of the test working conditions comprise at least one of the following conditions: and testing the speed, the opening degree of an accelerator pedal, the opening degree of a brake pedal and the cycle period.
Optionally, the software model is determined based on at least one of a constant speed cruise function, an adaptive cruise function and an accelerator pedal function of the vehicle.
Optionally, the determining module 320 is specifically configured to:
if the target test scheme is script automatic test, configuring a test environment according to test environment parameters; wherein the test environment parameters include: step length, solver algorithm and test stop time;
under the test environment, testing the software model according to the test case to obtain target parameters output by the software model; wherein the target parameters include at least one of: displacement, accelerator pedal opening, and brake pedal opening.
Optionally, the determining module 320 is further specifically configured to:
if the target test scheme is a cyclic working condition automatic test, taking an initial preset parameter of the vehicle in the test process as the input of a cyclic working condition model to obtain a first parameter;
taking the first parameter as an input of the driver model, and taking an output result of the driver model as a second parameter;
and inputting the second parameter into the software model, and taking an output result of the software model as a target parameter of the software model.
By the testing device of the vehicle software model, the testing scheme can be flexibly selected according to different testing conditions, the problem of high testing complexity caused by adopting a fixed testing case when a testing kit is used for testing is solved, and the testing efficiency is greatly improved.
The testing device for the vehicle software model provided by the embodiment of the invention can execute the testing method for the vehicle software model provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention, as shown in fig. 4, the electronic device includes a processor 410, a memory 420, an input device 430, and an output device 440; the number of the processors 410 in the electronic device may be one or more, and one processor 410 is taken as an example in fig. 4; the processor 410, the memory 420, the input device 430 and the output device 440 in the electronic apparatus may be connected by a bus or other means, and the bus connection is exemplified in fig. 4.
The memory 420 serves as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the testing method of the vehicle software model in the embodiment of the present invention. The processor 410 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 420, so as to implement the testing method of the vehicle software model provided by the embodiment of the invention.
The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 420 may further include memory located remotely from processor 410, which may be connected to an electronic device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus, and may include a keyboard, a mouse, and the like. The output device 440 may include a display device such as a display screen.
EXAMPLE five
The present embodiments provide a storage medium containing computer-executable instructions for implementing a method for testing a vehicle software model provided by embodiments of the present invention when executed by a computer processor.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the method for testing the vehicle software model provided by any embodiments of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the above search apparatus, each included unit and module are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A method of testing a vehicle software model, the method comprising:
selecting a target test scheme from the candidate test schemes; wherein the candidate test scenario comprises: automatic test of scripts, automatic test of circulating working conditions and manual test;
determining target parameters output by a software model according to the target test scheme;
and determining the test result of the software model according to the target parameters of the software model.
2. The method of claim 1, wherein selecting the target test solution from the candidate test solutions comprises:
determining a test condition of the software model;
selecting a target test scheme from candidate test schemes according to the test conditions of the software model and preset conditions of the test working conditions; the preset conditions of the test working conditions comprise at least one of the following conditions: and testing the speed, the opening degree of an accelerator pedal, the opening degree of a brake pedal and the cycle period.
3. The method of claim 1, wherein the software model is determined based on at least one of a constant speed cruise function, an adaptive cruise function, and an accelerator pedal function of the vehicle.
4. The method of claim 1, wherein determining target parameters of software model outputs according to the target test scenario comprises:
if the target test scheme is script automatic test, configuring a test environment according to test environment parameters; wherein the test environment parameters include: step length, solver algorithm, test stop time, and the like;
under the test environment, testing the software model according to the test case to obtain target parameters output by the software model; wherein the target parameters include at least one of: displacement, accelerator pedal opening, and brake pedal opening.
5. The method of claim 1, wherein determining target parameters of software model outputs according to the target test scenario comprises:
if the target test scheme is a cyclic working condition automatic test, taking an initial preset parameter of the vehicle in the test process as the input of a cyclic working condition model to obtain a first parameter;
taking the first parameter as an input of the driver model, and taking an output result of the driver model as a second parameter;
and inputting the second parameter into the software model, and taking an output result of the software model as a target parameter of the software model.
6. An apparatus for testing a vehicle software model, the apparatus comprising:
a selection module for selecting a target test scheme from the candidate test schemes; wherein the candidate test scenario comprises: automatic test of scripts, automatic test of circulating working conditions and manual test;
the determining module is used for determining target parameters output by the software model according to the target test scheme;
and the determining module is also used for determining the test result of the software model according to the target parameters of the software model.
7. The apparatus according to claim 6, wherein the selection module is specifically configured to:
determining a test condition of the software model;
selecting a target test scheme from candidate test schemes according to the test conditions of the software model and preset conditions of the test working conditions; the preset conditions of the test working conditions comprise at least one of the following conditions: and testing the speed, the opening degree of an accelerator pedal, the opening degree of a brake pedal and the cycle period.
8. The apparatus of claim 6, wherein the software model is determined based on at least one of a constant speed cruise function, an adaptive cruise function, and an accelerator pedal function of the vehicle.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of testing a vehicle software model as claimed in any one of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of testing a vehicle software model according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010391819.0A CN111581101A (en) | 2020-05-11 | 2020-05-11 | Software model testing method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010391819.0A CN111581101A (en) | 2020-05-11 | 2020-05-11 | Software model testing method, device, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111581101A true CN111581101A (en) | 2020-08-25 |
Family
ID=72122917
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010391819.0A Pending CN111581101A (en) | 2020-05-11 | 2020-05-11 | Software model testing method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111581101A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112232530A (en) * | 2020-09-11 | 2021-01-15 | 上海远度汽车科技有限公司 | Automobile maintenance cycle operation method and vehicle-mounted intelligent operation system |
CN112305938A (en) * | 2020-09-23 | 2021-02-02 | 东风汽车集团有限公司 | Control model open-loop simulation verification method, device, equipment and medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6242873B1 (en) * | 2000-01-31 | 2001-06-05 | Azure Dynamics Inc. | Method and apparatus for adaptive hybrid vehicle control |
CN103034227A (en) * | 2012-09-20 | 2013-04-10 | 北京智行鸿远汽车技术有限公司 | Testing method in circuit of battery electric vehicle vehicle-control unit model |
CN104865947A (en) * | 2014-12-08 | 2015-08-26 | 北汽福田汽车股份有限公司 | Whole vehicle controller environmental model generation method and system |
CN105446316A (en) * | 2015-11-12 | 2016-03-30 | 东方电气(乐山)新能源设备有限公司 | Pure electric vehicle control unit model in-loop test device and test method thereof |
US20160283361A1 (en) * | 2015-03-26 | 2016-09-29 | Ford Global Technologies, Llc | Method and apparatus for in-vehicle hardware and software testing |
CN109491360A (en) * | 2018-09-30 | 2019-03-19 | 北京车和家信息技术有限公司 | Emulation test method, device, system and the electronic equipment of entire car controller |
CN110442522A (en) * | 2019-08-05 | 2019-11-12 | 广州小鹏汽车科技有限公司 | The method for generating test case and test method of functional requirement based on electric car |
-
2020
- 2020-05-11 CN CN202010391819.0A patent/CN111581101A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6242873B1 (en) * | 2000-01-31 | 2001-06-05 | Azure Dynamics Inc. | Method and apparatus for adaptive hybrid vehicle control |
CN103034227A (en) * | 2012-09-20 | 2013-04-10 | 北京智行鸿远汽车技术有限公司 | Testing method in circuit of battery electric vehicle vehicle-control unit model |
CN104865947A (en) * | 2014-12-08 | 2015-08-26 | 北汽福田汽车股份有限公司 | Whole vehicle controller environmental model generation method and system |
US20160283361A1 (en) * | 2015-03-26 | 2016-09-29 | Ford Global Technologies, Llc | Method and apparatus for in-vehicle hardware and software testing |
CN105446316A (en) * | 2015-11-12 | 2016-03-30 | 东方电气(乐山)新能源设备有限公司 | Pure electric vehicle control unit model in-loop test device and test method thereof |
CN109491360A (en) * | 2018-09-30 | 2019-03-19 | 北京车和家信息技术有限公司 | Emulation test method, device, system and the electronic equipment of entire car controller |
CN110442522A (en) * | 2019-08-05 | 2019-11-12 | 广州小鹏汽车科技有限公司 | The method for generating test case and test method of functional requirement based on electric car |
Non-Patent Citations (1)
Title |
---|
周荣宽: "电动汽车电驱动系统建模仿真及硬件在环测试", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112232530A (en) * | 2020-09-11 | 2021-01-15 | 上海远度汽车科技有限公司 | Automobile maintenance cycle operation method and vehicle-mounted intelligent operation system |
CN112305938A (en) * | 2020-09-23 | 2021-02-02 | 东风汽车集团有限公司 | Control model open-loop simulation verification method, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7895575B2 (en) | Apparatus and method for generating test driver | |
CN107480327A (en) | A kind of emulation verification method, device and electronic equipment | |
US20090172643A1 (en) | Program verification apparatus, program verification method, and program storage medium | |
CN111581101A (en) | Software model testing method, device, equipment and medium | |
CN111624475B (en) | Method and system for testing large-scale integrated circuit | |
CN116933015B (en) | Preprocessing method for input signal of constraint solver, electronic equipment and storage medium | |
US11663113B2 (en) | Real time fault localization using combinatorial test design techniques and test case priority selection | |
CN112732565A (en) | Software continuous integration evaluation method, computer equipment and medium | |
CN111796578A (en) | Vehicle controller testing method, device and system and storage medium | |
JP6723483B2 (en) | Test case generation device, test case generation method, and test case generation program | |
CN110322587B (en) | Evaluation recording method, device and equipment in driving process and storage medium | |
CN114676035A (en) | Test case generation method and device and electronic equipment | |
CN112990461B (en) | Method, device, computer equipment and storage medium for constructing neural network model | |
CN117194230A (en) | FCT matching test method, device, equipment and medium for different versions of board cards | |
CN115328772A (en) | Learning method for excitation combination and module correlation and test script generation method | |
CN115562931A (en) | Processor debugging module verification method and device, electronic equipment and storage medium | |
CN115062571A (en) | Dynamic selection method, system, equipment and computer readable storage medium for data area of integrated circuit device | |
CN114218666A (en) | Simulation preprocessing method and device | |
US7277840B2 (en) | Method for detecting bus contention from RTL description | |
CN116991706B (en) | Vehicle automatic test method, device, equipment and storage medium | |
KR20160077902A (en) | The method for generating interface of simulation and the realtime simulation apparatus | |
CN114090454B (en) | Interface automation test method, device, equipment and storage medium | |
JP2020144509A (en) | Automatic code generation method and automatic code generating program | |
CN113343659B (en) | Analysis report generation method, device, equipment and storage medium | |
CN116662179A (en) | Test method, test device, electronic equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200825 |
|
RJ01 | Rejection of invention patent application after publication |