Vehicle atomic service testing method, device, equipment and storage medium
By acquiring and analyzing functional service data, the atomic services in the vehicle are determined and tested, which solves the problem of the inability of existing technology to accurately locate the cause of the fault and achieves high coverage and targeted testing effects.
Patent Information
- Application Number
- CN202210770379.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-06-30
AI Technical Summary
Existing vehicle atomic service testing methods cannot perform smaller-granularity testing, resulting in the inability to accurately determine the cause of the failure when a general service fails.
By obtaining the functional service data of the current target functional service, determine the atomic services provided by the domain controller as the server, and test these atomic services by setting atomic test items to obtain the test results of the atomic services.
It realizes the testing of the smallest granular atomic service and the basic logic of the service layer, improves the test coverage, can detect problems as early as possible in the early stage of development, and sets different test items for different atomic services to ensure the test effect.
Smart Images

Figure CN115167350B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of vehicles, and in particular to a vehicle atomic service testing method, device, equipment and storage medium. Background Art
[0002] The existing vehicle atomic service test methods are mainly aimed at traditional controllers, such as BCM body control module, PEPS intelligent entry and start module function test system; the test system includes test host computer, programmable power supply, load and IO simulation board and other resources. Test case development is mainly based on functional specifications and is oriented to the functional implementation level.
[0003] During the process of implementing the embodiments of the present invention, the applicant discovered that the existing vehicle atomic service testing method can only test in units of general services and cannot perform testing at a smaller granularity. Therefore, when a general service fails, the specific cause of the failure cannot be accurately determined. Summary of the invention
[0004] The embodiments of the present invention provide a vehicle atomic service testing method, device, equipment and storage medium, which solve the problem of the existing vehicle atomic service testing method in accurately determining the cause of a general service failure.
[0005] In a first aspect, an embodiment of the present invention provides a vehicle atomic service testing method, the method comprising:
[0006] Get the function service data corresponding to the current target function service;
[0007] Determine, according to the functional service data, one or more atomic services provided by the domain controller as a server in the current target service;
[0008] Atomic test items are set for the one or more atomic services to obtain test results of the one or more atomic services.
[0009] In a second aspect, an embodiment of the present invention further provides a vehicle atomic service test device, the device comprising:
[0010] A data acquisition module is used to acquire the functional service data corresponding to the current target functional service;
[0011] An atomic service determination module, used to determine one or more atomic services provided by the domain controller as a server in the current target service according to the functional service data;
[0012] The test result determination module is used to perform a test of set test items on the one or more atomic services to obtain the test results of the one or more atomic services.
[0013] In a third aspect, an embodiment of the present invention further provides a testing device, the testing device comprising:
[0014] one or more processors;
[0015] A storage device for storing one or more programs;
[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the vehicle atomic service testing method described in any embodiment of the present invention.
[0017] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the vehicle atomic service test method as described in any embodiment of the present invention.
[0018] The vehicle atomic service testing method provided by the embodiment of the present invention obtains the functional service data corresponding to the current target functional service; determines one or more atomic services provided by the domain controller as the server in the current target service according to the functional service data; and sets atomic test items for one or more atomic services to obtain the test results of one or more atomic services. The above-mentioned vehicle atomic service testing method realizes the testing of the atomic service with the smallest granularity and the basic logic of the service layer, improves the test coverage, so as to find problems as early as possible in the early stage of development; in addition, different test items are set for different atomic services, which realizes the targeted testing of atomic services and ensures the test effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 is a flow chart of a vehicle atomic service testing method provided in Embodiment 1 of the present invention;
[0021] Figure 2A This is a flow chart of the vehicle atomic service testing method provided by the second embodiment of the present invention.
[0022] Figure 2B This is a flow chart for a vehicle interior lighting control test provided by Embodiment 2 of the present invention;
[0023] Figure 3 is a structural block diagram of a vehicle atomic service testing device provided by Embodiment 3 of the present invention;
[0024] Figure 4 It is a structural schematic diagram of a testing device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described through implementation methods with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0026] Embodiment 1
[0027] Figure 1 : is a flow chart of a vehicle atomic service testing method provided in the first embodiment of the present invention. The technical solution of this embodiment is applicable to the case of testing vehicle atomic services. The method can be executed by a vehicle atomic service testing device provided in the embodiment of the present invention, and the device can be implemented in software and / or hardware and configured in a test equipment processor for application. The method specifically includes the following steps:
[0028] S110: Acquire functional service data corresponding to the current target functional service.
[0029] Among them, the current target function service is an APP function implementation service or a platform general service. Currently, most vehicles on the market can be remotely controlled using an APP. The APP function implementation service may include the APP's control of doors, windows, air conditioning, and engines. Platform general services may include diagnostic management, equipment management, energy management, storage management, logging, and software upgrades.
[0030] Functional service data includes service matrix and communication matrix. The service matrix defines the correspondence between the target functional service and the atomic service provided by the domain controller. The communication matrix is used to define the signals that each node on the network interacts with through the network.
[0031] S120. Determine one or more atomic services provided by the domain controller as a server in the current target service according to the functional service data.
[0032] The domain controller is the various sensor / actuator acquisition and drive center and regional data center of the physical area of the vehicle. It undertakes the physical interface of the vehicle, such as regional power distribution, regional input and output control, etc., and performs service conversion on the basic data of the vehicle. It is mainly responsible for sensor acquisition, actuator drive, regional data routing and regional power distribution. Exemplarily, the domain controller can be a body domain controller, a chassis domain controller, and an autonomous driving domain controller.
[0033] Atomic services are a series of operations with the smallest granularity in business. Atomic services are characterized by loose coupling, relative independence, and no impact on other atomic services within a foreseeable range. Each item defines its own business scope; they do not need to care about how non-business scopes are implemented. For calling other atomic services, they only need to consider the calling scenario and how to handle the returned results.
[0034] In one embodiment, one or more atomic services include one or more of the positioning function and key authentication function service, brake light hardwire logic control service, tailgate anti-pinch service, tailgate anti-collision service, tailgate position detection and memory service, strut and lock coordination control service, suction and lock control service, steering column position detection and memory service, motor protection service, input detection and output control service, interior light output control service, tailgate motor control service, and steering column motor control service.
[0035] The domain controller is architecturally divided into two parts: software and hardware. The hardware part includes sensors and actuators; the software part is divided into three parts, including platform-type general services, atomic services, and APP function implementation. Atomic services are the basis for function implementation, and each complex function is composed of a combination of atomic services.
[0036] For example, the communication matrix defines that a certain controller will turn on / off the warning light when it receives a warning light control message, and the service matrix defines that the warning light lighting / off function is implemented by the warning light logic control service provided by the body domain controller. Therefore, it can be determined based on the functional service data that the atomic service corresponding to the warning light function is the warning light logic control.
[0037] S130, performing tests on one or more atomic services by setting atomic test items to obtain test results of one or more atomic services.
[0038] In one embodiment, a boundary value test case development method is adopted to perform function trigger testing and value range coverage testing on one or more atomic services to obtain test results of one or more atomic services.
[0039] Among them, the test cases of boundary values need to first determine the boundary values at the dividing point between valid data and invalid data of the test object, write test cases for the boundary values and perform tests.
[0040] The boundary value test method is described with an example. The fuel tank warning light usually lights up when there are 10L of gasoline left in the tank. When testing the fuel tank warning light, follow the steps below:
[0041] 1. Identify the test object. In this case, the test object is the fuel tank warning light.
[0042] 2. Find the boundary value data, the boundary value data are 8, 10, and 12.
[0043] 3. Write test cases. For test case 1, when the remaining fuel tank volume is 8L, the expected effect is that the fuel tank warning light is on; for test case 2, when the remaining fuel tank volume is 10L, the expected effect is that the fuel tank warning light is on; for test case 3, when the remaining fuel tank volume is 12L, the expected effect is that the fuel tank warning light is off.
[0044] 4. Test: perform tests on different test cases and compile statistics on the test results.
[0045] Functional testing and range coverage testing of atomic services can be performed to test the functions and logic of atomic services, ensuring the stability of the system.
[0046] In a specific embodiment, a service start request of the one or more atomic services is sent to a domain controller through test software, and a response result of the domain controller to the service start request of the one or more atomic services is obtained. When a positive response is included in the response result, the status of the one or more atomic services is turned on. A service close request of the one or more atomic services corresponding to the positive response is sent to the domain controller through test software, and a response result of the domain controller to the service close request of the one or more atomic services corresponding to the positive response is obtained. If the status of one or more atomic services is turned off, the test passes; if the status of one or more atomic services is turned on, the test fails. The negative response in the response result corresponding to the service start request and the response result corresponding to the service close request are used as the test result of the one or more atomic services.
[0047] Optionally, after obtaining the test results of one or more atomic services, a test report is generated based on the test results, and the test data is transmitted back to the management platform.
[0048] The vehicle atomic service testing method provided by the embodiment of the present invention obtains the functional service data corresponding to the current target functional service; determines one or more atomic services provided by the domain controller as the server in the current target service according to the functional service data; and sets atomic test items for testing one or more atomic services to obtain test results of one or more atomic services. The above-mentioned vehicle atomic service testing method tests atomic services to achieve testing of the smallest granularity of atomic services in the business and the basic logic of the service layer, thereby improving test coverage so that problems can be discovered as early as possible in the early stages of development; in addition, different test items are set for different atomic services to achieve targeted testing of atomic services and ensure test results.
[0049] Embodiment 2
[0050] Figure 2A : is a flow chart of a vehicle atomic service testing method provided by Embodiment 2 of the present invention. The embodiment of the present invention optimizes the "testing of setting atomic test items for one or more atomic services to obtain test results of one or more atomic services" in the aforementioned embodiment. Accordingly, the method of this embodiment includes:
[0051] S210: Acquire functional service data corresponding to the current target functional service.
[0052] S220. Determine one or more atomic services provided by the domain controller as a server in the current target service according to the functional service data.
[0053] In one embodiment, the one or more atomic services include an in-vehicle light control atomic service. The in-vehicle light control atomic service is used to control the in-vehicle light to be turned on according to a received turn-on signal, and to control the in-vehicle light to be turned off according to a received turn-off signal.
[0054] S231. Send a service start request for the one or more atomic services to the domain controller through the test software.
[0055] S232: Obtain the domain controller's response result to the service start request for the one or more atomic services.
[0056] S233. When the response result includes a positive response, a service closing request for one or more atomic services corresponding to the positive response is sent to the domain controller through the test software.
[0057] S234. Obtain a response result of the domain controller to the close service request of the one or more atomic service requests corresponding to the positive response.
[0058] S235. Use the negative response in the response result corresponding to the opening service request and the response result corresponding to the closing service request as the test result of one or more atomic services.
[0059] The vehicle atomic service testing method provided by the embodiment of the present invention realizes fine-grained testing of the functions and logic of the vehicle atomic services, improves the test coverage, and facilitates rapid location of specific causes when general service failures occur.
[0060] In one embodiment, the test process of atomic service is described in detail by taking the in-car lighting control as an example, as follows:
[0061] S2001. Initialize the test equipment.
[0062] Specifically, arrange the test bench system and power on the test equipment normally.
[0063] S2002. Test configuration.
[0064] Specifically, configure test parameters on the management platform, select test cases, and call the test software to perform case testing.
[0065] S2003, program-controlled power supply.
[0066] Control the programmable power supply to supply power to the domain controller under test, and control the operation of the communication board light test equipment according to the selected test case.
[0067] S2004, IO and load board simulation module initialization and simulation.
[0068] This step is used to simulate the peripheral working environment of the domain controller.
[0069] S2005. Control the test software to send a service request for turning on the interior lights of the vehicle to the test device.
[0070] S2006. Determine whether the service response of the test device is a positive response. If so, execute S2009; if not, execute S2007.
[0071] S2007, output a test failure flag, and execute S2008.
[0072] S2008. Output corresponding test results.
[0073] S2009, read the output data of the load end of the test equipment, and determine whether the output data is correct, if so, execute S2010, if not, execute S2007.
[0074] S2010. Control the test software to send a service request for turning off the interior lights of the vehicle to the test device.
[0075] S2011. Determine whether the test device responds positively. If so, execute S2012; if not, execute S2007.
[0076] S2012, read the output data of the load end of the test equipment to determine whether the output data is correct, if so, execute S2013, if not, execute S2007.
[0077] S2013. Output the test pass mark and execute S2008.
[0078] In the embodiment of the present invention, a management platform, a programmable control device, and IO and load boards are added to the full-process test of the atomic service, thereby realizing the automated testing of the atomic service and improving the testing efficiency; in addition, simulation data is added during the testing process to make the testing environment closer to the real working environment, thereby improving the accuracy and credibility of the test results.
[0079] Embodiment 3
[0080] Figure 3 This is a structural block diagram of a vehicle atomic service test device in Embodiment 3 of the present invention. The device is used to execute the vehicle atomic service test method provided in any of the above embodiments, and the device can be implemented as a processor of a test device. The device includes:
[0081] The data acquisition module 310 is used to acquire the functional service data corresponding to the current target functional service.
[0082] The atomic service determination module 320 is used to determine one or more atomic services provided by the domain controller as a server in the current target service according to the functional service data.
[0083] The test result determination module 330 is used to perform a test of set test items on one or more atomic services to obtain the test results of the one or more atomic services.
[0084] Optionally, the test result determination module 330 is specifically used to adopt a boundary value test case development method to perform function trigger testing and value range coverage testing on one or more atomic services to obtain test results of one or more atomic services.
[0085] Optionally, the test result determination module 330 is specifically used to send a service request to start the one or more atomic services to the domain controller through the test software; obtain the response result of the domain controller to the service request to start the one or more atomic services; when the response result includes a positive response, send a service request to close the one or more atomic services corresponding to the positive response to the domain controller through the test software; obtain the response result of the domain controller to the service request to close the one or more atomic service requests corresponding to the positive response; and use the negative response in the response result corresponding to the service request to start and the response result corresponding to the service request to close as the test result of the one or more atomic services.
[0086] Optionally, the functional service data includes a service matrix and a communication matrix.
[0087] Optionally, one or more atomic services include one or more of the positioning function and key authentication function service, brake light hard-wire logic control service, tailgate anti-pinch service, tailgate anti-collision service, tailgate position detection and memory service, strut and lock coordination control service, suction and lock control service, steering column position detection and memory service, motor protection service, input detection and output control service, interior light output control service, tailgate motor control service, and steering column motor control service.
[0088] Optionally, the current target function service is an APP function implementation service or a platform general service.
[0089] The vehicle atomic service testing device provided in the third embodiment of the present invention has a test result determination module that tests the atomic service to achieve testing of the atomic service with the smallest granularity in the business and the basic logic of the service layer, thereby improving the test coverage so as to discover problems as early as possible in the early stages of development; in addition, different test items are set for different atomic services to achieve targeted testing of the atomic service and ensure the consistency of the test.
[0090] The vehicle atomic service testing device provided in the embodiment of the present invention can execute a vehicle atomic service testing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0091] Embodiment 4
[0092] Figure 4 A schematic diagram of the structure of the test equipment provided in the fourth embodiment of the present invention, as shown in FIG. Figure 4 As shown, the device includes a processor 401, a memory 402, an input device 403, and an output device 404; the number of processors 401 in the device can be one or more. Figure 4A processor 401 is taken as an example; the processor 401, memory 402, input device 403 and output device 404 in the device can be connected by a bus or other means. Figure 4 The example of connecting through bus is taken in the following.
[0093] The memory 402 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as the modules corresponding to the test device in the embodiment of the present invention (for example, the data acquisition module 310, the atomic service determination module 320 and the test result determination module 330). The processor 401 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 402, that is, implements the above-mentioned vehicle atomic service test method.
[0094] The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 402 may further include a memory remotely arranged relative to the processor 401, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0095] The input device 403 may be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the device.
[0096] The output device 404 may include a display device such as a display screen, for example, a display screen of a user terminal.
[0097] Embodiment 5
[0098] An embodiment of the present invention further provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute a vehicle atomic service test method when executed by a computer processor, the method comprising:
[0099] Get the function service data corresponding to the current target function service;
[0100] Determine one or more atomic services provided by the domain controller as a server in the current target service according to the functional service data;
[0101] Atomic test items are set for one or more atomic services to obtain test results of the one or more atomic services.
[0102] Of course, the storage medium containing computer executable instructions provided in an embodiment of the present invention, whose computer executable instructions are not limited to the above method operations, can also execute related operations in the vehicle atomic service testing method provided in any embodiment of the present invention.
[0103] Through the above description of the implementation methods, technicians in the relevant field can clearly understand that the present invention can be implemented with the help of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the vehicle atomic service test method described in each embodiment of the present invention.
[0104] It is worth noting that in the embodiment of the above-mentioned vehicle atomic service testing method, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0105] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A vehicle atomic service testing method, It is characterized in that include: Get the function service data corresponding to the current target function service; Determine, according to the functional service data, one or more atomic services provided by the domain controller as a server in the current target functional service; Performing tests of set atomic test items on the one or more atomic services to obtain test results of the one or more atomic services; The step of performing a test of setting atomic test items on the one or more atomic services to obtain test results of the one or more atomic services includes: Sending a service start request for the one or more atomic services to the domain controller through the test software; Obtaining a response result of the domain controller to the service start request of the one or more atomic services; When the response result includes a positive response, one or more atomic services are in an open state, and a service closing request for the one or more atomic services corresponding to the positive response is sent to the domain controller through the test software; Obtaining a response result of the domain controller to a close service request of one or more atomic service requests corresponding to the positive response; If one or more atomic services are in the closed state, the test passes; if one or more atomic services are in the open state, the test fails; A negative response in the response result corresponding to the start service request and a response result corresponding to the close service request are used as test results of the one or more atomic services.
2. The method according to claim 1, It is characterized in that The step of testing the one or more atomic services by setting atomic test items to obtain test results of the one or more atomic services includes: A boundary value test case development method is adopted to perform function trigger testing and value range coverage testing on the one or more atomic services to obtain test results of the one or more atomic services.
3. The method according to claim 1, It is characterized in that The functional service data includes a service matrix and a communication matrix.
4. The method according to claim 1, It is characterized in that The one or more atomic services include positioning function and key authentication function service, brake light hard-wire logic control service, tailgate anti-pinch service, tailgate anti-collision service, tailgate position detection and memory service, support rod and lock coordination control service, suction and lock control service, steering column position detection and memory service, motor protection service, input detection and output control service, interior light output control service, tailgate motor control service, steering column motor control service.
5. The method according to any one of claims 1 to 4, It is characterized in that The current target function service is an APP function implementation service or a platform general service.
6. A vehicle atomic service test device, It is characterized in that include: A data acquisition module is used to acquire the functional service data corresponding to the current target functional service; An atomic service determination module, used to determine one or more atomic services provided by the domain controller as a server in the current target functional service according to the functional service data; A test result determination module, used for performing a test of set test items on the one or more atomic services to obtain a test result of the one or more atomic services; Among them, the test result determination module is specifically used to send a service request to start the one or more atomic services to the domain controller through the test software; obtain the response result of the domain controller to the service request to start the one or more atomic services; when the response result includes a positive response, the status of one or more atomic services is in the open state, send a service request to close the one or more atomic services corresponding to the positive response to the domain controller through the test software; obtain the response result of the domain controller to the service request to close the one or more atomic service requests corresponding to the positive response; if the status of one or more atomic services is in the closed state, the test passes; if the status of one or more atomic services is in the open state, the test fails; The negative response in the response result corresponding to the opening service request and the response result corresponding to the closing service request are used as the test results of one or more atomic services.
7. The device according to claim 6, It is characterized in that The test result determination module is specifically used to adopt a boundary value test case development method to perform function trigger testing and value range coverage testing on the one or more atomic services to obtain the test results of the one or more atomic services.
8. A test device, It is characterized in that The test equipment includes: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the vehicle atomic service testing method as described in any one of claims 1-5.
9. A storage medium containing computer executable instructions, It is characterized in that The computer executable instructions are used to perform the vehicle atomic service test method as described in any one of claims 1-5 when executed by a computer processor.
Citation Information
Patent Citations
Integrated system for assessing integrity of wheels and RIMS of off the road vehicles
CA3042657A1
Vehicle diagnosis method, vehicle diagnosis device and diagnosis equipment
CN112034819A
Software automation test verification method
CN112631918A
Software testing method and device, storage medium and program product
CN113448873A
Service-oriented intelligent driving system design method
CN114115879A
