Disclosure of Invention
The invention provides a vehicle function test case development method, which aims to solve the problems that the development of the existing vehicle function test case is carried out by depending on the function specifications of all subsystems of a whole vehicle, so that the generated function link is single, the whole function test case subjected to the update needs to be manually modified under the condition of signal or logic update, the workload of inspection and modification is increased, the cost of personnel is increased, the development and modification period time is long, and the development efficiency is low.
In a first aspect, the present invention provides a method for developing a vehicle function test case, including:
Acquiring basic function test description information of at least one basic function of the vehicle based on the FIP function implementation plan of the vehicle;
Acquiring corresponding basic function test link information based on the basic function test description information, wherein the basic function test link information is used for indicating a signal transmission path when the related basic function of the vehicle is executed;
determining the target function link information of the target function based on the association relation between the target function and the basic function of the vehicle;
and acquiring a corresponding function interface signal mapping list according to the target function link information to generate a function test case of the target function.
Optionally, the method further comprises:
Acquiring change information of a function interface signal mapping list of a function test case of the vehicle basic function under the condition that the function interface signal mapping of the vehicle basic function is changed;
and acquiring a function interface signal mapping update list of the function test case of the vehicle basic function based on the change information.
Optionally, the function description information comprises an overview of the function test case, a precondition of the function test case, a test step of the function test case and an expected result of the function test case.
Optionally, the obtaining corresponding basic function test link information based on the basic function test description information includes:
Acquiring a network topology structure of the vehicle;
And acquiring the function link information of the basic function of the vehicle based on the network topology structure of the vehicle and the function description information of the basic function of the vehicle.
Optionally, the network topology of the vehicle is obtained based on the SOA architecture of the vehicle.
Optionally, the acquiring the network topology of the vehicle includes:
A network topology of the vehicle is determined based on the type of the vehicle.
Optionally, the network topology of the vehicle is determined based on a loading phase of the vehicle.
In a second aspect, the present invention also provides a vehicle function test case development device, including:
the first acquisition module is used for acquiring basic function test description information of at least one basic function of the vehicle based on the FIP function implementation plan of the vehicle;
The second acquisition module is used for acquiring corresponding basic function test link information based on the basic function test description information, wherein the basic function test link information is used for indicating a signal transmission path when the related basic function of the vehicle is executed;
The determining module is used for determining the target function link information of the target function based on the association relation between the target function and the basic function of the vehicle;
And the third acquisition module is used for acquiring a corresponding function interface signal mapping list according to the target function link information so as to generate a function test case of the target function.
In a third aspect, the present invention further provides an electronic device, including a memory, and a processor, where the processor is configured to implement the steps of the vehicle function test case development method according to any one of the first aspect when executing the computer program stored in the memory.
In a fourth aspect, the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the vehicle function test case development method according to any one of the first aspects.
According to the technical scheme, the vehicle function test case development method comprises the steps of obtaining basic function test description information of at least one vehicle basic function based on a FIP function implementation plan of a vehicle, obtaining corresponding basic function test link information based on the basic function test description information, wherein the basic function test link information is used for indicating a signal transmission path when an associated vehicle basic function is executed, determining target function link information based on an association relation between a target function and the vehicle basic function, and obtaining a corresponding function interface signal mapping list according to the target function link information to generate a function test case of the target function. Because the development of the existing vehicle function test cases needs to be carried out by depending on the function specifications of all subsystems of the whole vehicle, the generated function links are single, and therefore, under the condition of signal or logic update, the whole function test cases subjected to the update need to be manually modified, so that the workload of inspection and modification is increased, further, the cost of personnel is increased, the period time of development and modification is long, and the development efficiency is low. The embodiment of the application provides a vehicle function test case development method, which is characterized in that basic function test description information and basic function test link information are input in advance, and a function interface signal mapping list is obtained to generate a function test case, so that the development process can be advanced, the development time is saved, and the workload of staff is reduced.
Detailed Description
Reference will now be made in detail to the embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The embodiments described in the examples below do not represent all embodiments consistent with the application. Merely exemplary of systems and methods consistent with aspects of the application as set forth in the claims. In the several embodiments provided in the present embodiments, it should be understood that the disclosed apparatus and method may be implemented in other manners, and the apparatus embodiments described below are merely exemplary.
As shown in fig. 1, an embodiment of the present application provides a method for developing a vehicle function test case, where an execution body of the method may be a server, and fig. 1 is a schematic flowchart of the method for developing a vehicle function test case provided by the embodiment of the present application, where the method includes:
step S110, acquiring basic function test description information of at least one basic function of the vehicle based on the FIP function implementation plan of the vehicle.
The basic functions of the vehicle may be functions commonly used by different types and models of the vehicle, for example, a switching function of a left and right turn signal lamp of the vehicle, a switching function of a wiper, a switching function of an air conditioner, a temperature adjusting function, and the like, and in a development stage of a functional test case of the vehicle, a function required to generate the functional test case may be actively selected by a worker from basic functions included in a FIP function implementation plan of the vehicle, or a function required to generate the functional test case may be automatically selected by a preset program from the basic functions included in the FIP function implementation plan of the vehicle.
The FIP function implementation plan of the vehicle may include not only a basic function but also a function specific to a part of the vehicle, for example, a function of starting a trunk, a function of switching a light of the trunk, and the like in the case of a vehicle having a trunk. Moreover, the FIP function implementation plan of the vehicle can be updated at any time, and when a new function not belonging to the FIP function implementation plan appears, the staff can supplement the function test description information of the function into the FIP function implementation plan.
Step S120, based on the basic function test description information, obtaining corresponding basic function test link information, where the basic function test link information is used to indicate a signal transmission path when the associated basic function of the vehicle is executed.
The link information is related to the type and model of the vehicle, and includes a connection relationship between hardware of the vehicle and a communication connection relationship between each domain controller of the vehicle and the central controller.
Illustratively, the above-described link information may be obtained directly during the development phase.
Step S130, determining the target function link information based on the association relation between the target function and the basic function of the vehicle.
The target function may be the vehicle basic function, or may be a combination of the vehicle basic functions.
The method includes the steps of obtaining basic function test description information of each basic function in a combination and a combination relation between each function in the combination, and obtaining function link information of the target function based on the basic function test description information and the combination relation.
For example, in the case where the target function is left turn light on, the above target function may be determined to be a vehicle base function, and the determined target function includes a 5-item target function link between the steering controller and the first domain controller, the first domain controller and the center controller, the center controller and the vehicle dashboard, the center controller and the second domain controller, and the second domain controller and the light controller.
Step S140, according to the target function link information, a corresponding function interface signal mapping list is obtained to generate a function test case of the target function.
The function interface signal mapping list includes a mapping of the entire link from the trigger signal to the execution signal.
According to some embodiments, the above method further comprises:
Acquiring change information of a function interface signal mapping list of a function test case of the vehicle basic function under the condition that the function interface signal mapping of the vehicle basic function is changed;
And acquiring a function interface signal mapping update list of the function test case of the basic function of the vehicle based on the change information.
Because the basic function test description information and the basic function test link information are preset, the development process can be advanced, the function interface signal mapping list is updated under the condition that the function interface signal mapping of the basic function of the vehicle is changed, the function interface signal mapping update list can be obtained, the function test case of the target function can be directly generated based on the update list, the modification speed and efficiency are improved, the labor cost is saved, and the development period is shortened.
According to some embodiments, the function description information includes an overview of the function test case, a precondition of the function test case, a test step of the function test case, and an expected result of the function test case.
The function description information does not directly refer to the function description in the subsystem function specification, the function description defined by the FIP function implementation plan is adopted, development work is not required to be carried out after hardware installation is completed, the development process can be advanced, meanwhile, the FIP function implementation plan is usually only required to be subjected to function supplementation under the condition that new function test requirements appear, the workload of modification is small, the universality is high, and the development period can be greatly shortened.
According to some embodiments, the obtaining corresponding basic function test link information based on the basic function test description information includes:
Acquiring a network topology structure of the vehicle;
And acquiring the function link information of the basic function of the vehicle based on the network topology structure of the vehicle and the function description information of the basic function of the vehicle.
For example, the hardware device involved in implementing the basic function of the vehicle may be determined by acquiring at least one of an overview of the functional test case and a test procedure of the functional test case, and the functional link information of the basic function of the vehicle may be acquired based on the hardware device and a network topology of the vehicle.
Through the network topology structure of the vehicle and the function description information of the basic functions of the vehicle, the automatic grabbing of the function link information can be realized, the development time is shortened, and the workload of developers is reduced.
According to some embodiments, the network topology of the vehicle is obtained based on the SOA architecture of the vehicle.
For example, the network topology of the vehicle may be directly entered by a worker during the development phase.
The SOA architecture of the vehicle can improve the multiplexing degree of software, shorten the development period, reduce the workload of developers, decouple the realization paths of the functional logic and the network topology of the vehicle, improve the flexibility of the development of the functional test case of the vehicle when the signal change or the logic change occurs, simplify the modified operation steps and improve the development efficiency of the update iteration stage of the functional test case of the vehicle.
According to some embodiments, the obtaining the network topology of the vehicle includes:
and determining the network topology structure of the vehicle based on the type of the vehicle.
The network topology structure of the vehicle is related to the type of the vehicle, and by classifying the vehicles, the acquisition time of the network topology structure of the vehicle can be reduced, the development period is shortened, and the workload of developers is reduced.
According to some embodiments, the network topology of the vehicle is determined based on a loading phase of the vehicle.
In the development process of the function test cases of the vehicle, the function test cases are generally required to be updated in different loading stages, and the network topology structures of the vehicle are also different in different loading stages, so that the network topology structures of the vehicle are obtained in different loading stages, the working efficiency in the development process can be improved, and the development period is shortened.
As shown in fig. 2, fig. 2 is a schematic structural diagram of a vehicle function test case development device according to an embodiment of the present application.
The embodiment of the application provides a vehicle function test case development device 200, which comprises:
a first obtaining module 201, configured to obtain basic function test description information of at least one basic function of a vehicle based on a FIP function implementation plan of the vehicle;
a second obtaining module 202, configured to obtain corresponding basic function test link information based on the basic function test description information, where the basic function test link information is used to indicate a signal transmission path when the associated vehicle basic function is executed;
A determining module 203, configured to determine the target function link information based on an association relationship between a target function and the basic function of the vehicle;
And a third obtaining module 204, configured to obtain a corresponding function interface signal mapping list according to the target function link information, so as to generate a function test case of the target function.
The vehicle function test case development device 200 can implement each process implemented in the method embodiment of fig. 1, and in order to avoid repetition, a description thereof will be omitted.
As shown in fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
The embodiment of the application provides an electronic device 300, which comprises a memory 310, a processor 320 and a computer program 311 stored in the memory 310 and capable of running on the processor 320, wherein the processor 320 executes the computer program 311 to realize the following steps:
Acquiring basic function test description information of at least one basic function of the vehicle based on the FIP function implementation plan of the vehicle;
acquiring corresponding basic function test link information based on the basic function test description information, wherein the basic function test link information is used for indicating a signal transmission path when the related basic function of the vehicle is executed;
determining the target function link information of the target function based on the association relation between the target function and the basic function of the vehicle;
and acquiring a corresponding function interface signal mapping list according to the target function link information to generate a function test case of the target function.
In a specific implementation, when the processor 320 executes the computer program 311, any implementation manner of the embodiment corresponding to fig. 1 may be implemented.
Since the electronic device described in this embodiment is a device for implementing an apparatus in this embodiment of the present application, based on the method described in this embodiment of the present application, those skilled in the art can understand the specific implementation of the electronic device in this embodiment and various modifications thereof, so how the electronic device implements the method in this embodiment of the present application will not be described in detail herein, and as long as those skilled in the art implement the device for implementing the method in this embodiment of the present application, all devices are within the scope of the application to be protected.
As shown in fig. 4, fig. 4 is a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present application.
The present embodiment provides a computer readable storage medium 400 having stored thereon a computer program 411, which computer program 411 when executed by a processor realizes the steps of:
Acquiring basic function test description information of at least one basic function of the vehicle based on the FIP function implementation plan of the vehicle;
acquiring corresponding basic function test link information based on the basic function test description information, wherein the basic function test link information is used for indicating a signal transmission path when the related basic function of the vehicle is executed;
determining the target function link information of the target function based on the association relation between the target function and the basic function of the vehicle;
and acquiring a corresponding function interface signal mapping list according to the target function link information to generate a function test case of the target function.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and for those portions of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Embodiments of the present application also provide a computer program product comprising computer software instructions that, when run on a processing device, cause the processing device to execute a flow in a vehicle function test case development method as in the corresponding embodiment of fig. 1.
The computer program product described above includes one or more computer instructions. When the above-described computer program instructions are loaded and executed on a computer, the processes or functions described above according to embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, from one website, computer, server, or data center by wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the above-described division of units is merely a logical function division, and there may be another division manner in actual implementation, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the above-described method of the various embodiments of the present application. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
In summary, the foregoing embodiments are merely for illustrating the technical solution of the present application, and not for limiting the same, and although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those skilled in the art that the technical solution described in the foregoing embodiments may be modified or some of the technical features may be substituted for those described in detail, and that these modifications or substitutions do not depart from the spirit and scope of the technical solution of the embodiments of the present application.