A data closed-loop automated testing method, device, electronic device, and storage medium
By collecting and comparing video data in an automated test environment, identifying events and commands, the problem of inefficient data closed-loop testing in the existing technology is solved, and more efficient data closed-loop automated testing is achieved.
Patent Information
- Application Number
- CN202210829243.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-28
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-06-28
AI Technical Summary
The prior art is difficult to automate the closed-loop hardware link for test data, resulting in inefficient testing and may miss problems in the link.
By using the camera in an automated test environment to collect video data, extract frame image data, identify events, and compare data through the vehicle computer system with the server, count the number of events and commands, determine whether there is an abnormality in the data closed loop.
It improves the accuracy and efficiency of data closed-loop automated testing, can automatically detect abnormalities in data closed-loop, and reduce manual errors.
Smart Images

Figure CN115129605B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic communication technology, and in particular to a data closed-loop automated testing method, device, electronic equipment and storage medium. Background Art
[0002] The data closed loop is applied in the field of autonomous driving. The data involved in the electric platform (SDA) project is wide-ranging and large in quantity. The data closed loop has high requirements for the accuracy of data transmission, so it is necessary to test the data closed loop to determine whether there are any abnormalities in the data closed loop.
[0003] Manual testing of data closed-loop hardware link changes is not only difficult, but also likely to fail to discover problems in the link due to low manual efficiency. Therefore, an automated testing tool that can automatically test data closed-loop hardware links is very necessary. Summary of the invention
[0004] In view of the above-mentioned shortcomings of the prior art, the present application provides a data closed-loop automated testing method, device, electronic device and storage medium to solve the above-mentioned technical problems.
[0005] In a first aspect, the present application provides a data closed-loop automated testing method, comprising:
[0006] After the automated test environment is set up, turn on the camera, which is used to collect video data;
[0007] Extract frames from the video data to obtain at least one image data, identify at least one event included in the at least one image data, and send the at least one event to the server through the vehicle system;
[0008] saving at least one event and the at least one image data to a preset memory, and counting the number of at least one event;
[0009] receiving at least one command sent by the server through the vehicle computer system, and counting the number of the at least one command, wherein the at least one command is generated by the server according to the at least one event;
[0010] Whether there is an abnormality in the data closed loop is determined according to a comparison result between the number of at least one event and the number of at least one command.
[0011] In one embodiment of the present application, when the automated testing environment is set up, before turning on the camera, the model file address input by the user is obtained, and the model file address corresponds to the model file; if a compilation folder corresponding to the model file exists in the directory corresponding to the model file address, it is determined that the automated testing environment is set up and the camera is turned on.
[0012] In one embodiment of the present application, after obtaining the model file address input by the user, if the compilation folder corresponding to the model file does not exist in the directory corresponding to the model file address, the compilation module is called to compile the model file; if a compilation folder is obtained after compiling the model file, it is determined that the automated testing environment is set up and the camera is turned on; if a compilation folder is not obtained after compiling the model file, a first prompt message is output, and the first prompt message is used to indicate that the integrity of the model file needs to be checked.
[0013] In one embodiment of the present application, before obtaining the model file address input by the user, determine whether the C2 controller and the vehicle system are in the same subnet; if so, obtain the model file address input by the user; if not, execute at least one of the following steps: mount the preset network card driver; add a virtual LAN port; configure the virtual LAN port; add a preset route; change the configuration file.
[0014] In one embodiment of the present application, after executing at least one of the following steps, check whether the network of the C2 controller and the vehicle system is connected; if so, obtain the model file address input by the user; if not, output a second prompt message, and the second prompt message is used to indicate to check the hardware device connection.
[0015] In one embodiment of the present application, the number of at least one event and the number of at least one command are compared to obtain a comparison result; if the comparison result is that the number of at least one event is greater than the number of at least one command, a third prompt message is output, and the third prompt message is used to indicate that information loss has occurred in the event information upload channel, and the event information upload channel is a channel connecting the vehicle system and the server; if the comparison result is that the number of at least one event is less than the number of at least one command, a fourth prompt message is output, and the fourth prompt message is used to indicate that an abnormality has occurred in the process of the data acquisition module sending at least one event.
[0016] In one embodiment of the present application, the number of at least one event and the number of at least one command are compared. After obtaining the comparison result, if the comparison result is that the number of at least one event is equal to the number of at least one command, and the interrupt test instruction input by the user is not obtained, the step of obtaining the number of at least one event and the number of at least one command is continuously executed; if the comparison result is that the number of at least one event is equal to the number of at least one command, and the interrupt test instruction is obtained, a test report is output, and the test report is used to indicate that no abnormal event has occurred in the data closed loop.
[0017] In a second aspect, the present application provides a data closed-loop automated testing device, comprising:
[0018] The start unit is used to start the camera when the automated test environment is set up. The camera is used to collect video data.
[0019] A processing unit, configured to call the abstract module to extract frames of the video data, obtain at least one image data, identify at least one event included in the at least one image data, and send the at least one event to the server through the vehicle system;
[0020] A storage unit, used for calling the data acquisition module to save at least one event and the at least one image data to a preset memory, and counting the number of at least one event;
[0021] a transceiver unit, configured to receive at least one command sent by the server through the vehicle computer system, and count the number of the at least one command, wherein the at least one command is generated by the server according to at least one event;
[0022] The processing unit is further used to determine whether there is an abnormality in the data closed loop based on a comparison result of the number of at least one event and the number of at least one command.
[0023] In a third aspect, the present application provides an electronic device, including:
[0024] one or more processors;
[0025] A storage device is used to store one or more programs. When the one or more programs are executed by one or more processors, the electronic device implements the data closed-loop automated testing method described in the first aspect.
[0026] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor of a computer, the computer executes the data closed-loop automated testing method described in the first aspect.
[0027] The beneficial effects of this application are: it can improve the accuracy and efficiency of data closed-loop automated testing.
[0028] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0030] Figure 1is a schematic diagram of a framework of an automated testing system shown in an exemplary embodiment of the present application;
[0031] Figure 2 is a flow chart of a data closed-loop automated testing method shown in an exemplary embodiment of the present application;
[0032] Figure 3 is a flowchart showing an exemplary embodiment of the present application for configuring the C2 controller and the EDC to the same subnet;
[0033] Figure 4 is a block diagram of a data closed-loop automated testing device shown in an exemplary embodiment of the present application;
[0034] Figure 5 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0035] The following will describe the implementation methods of the present application with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, not for limiting the scope of protection of the present application.
[0036] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.
[0037] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.
[0038] It should be noted that VLAN (Virtual Local Area Network) is a group of logical devices and users. These devices and users are not restricted by physical location and can be organized according to functions, departments, applications and other factors. The communication between them is like they are in The same network segment Same as in.
[0039] See also Figure 1 , Figure 1 FIG. 1 is a schematic diagram of a framework of an automated testing system shown in an exemplary embodiment of the present application. Figure 1 As shown, the framework of the automated test system includes a server device and a car, wherein the car may include a C2 controller, an EDC, a data acquisition module, an abstract module, and a camera. The C2 controller may control the data acquisition module and the abstract module; the EDC may be a vehicle computer system on the car, which may communicate with the server device; the abstract module may extract frames of the video data output by the camera, and recognize at least one image data extracted from the frame, and save the at least one image data through the data acquisition module.
[0040] in, Figure 1 The vehicle-mounted system (EDC) shown may be a vehicle-mounted terminal, which may include a user interface and a communication interface, and may implement interaction with a user and interaction with a server-side device. Figure 1 The server device shown can be a navigation server, for example, an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms, which are not limited here. The vehicle system can communicate with the server device through wireless networks such as 3G (third generation mobile information technology), 4G (fourth generation mobile information technology), and 5G (fifth generation mobile information technology), which are not limited here.
[0041] In order to improve the accuracy and efficiency of data closed-loop automated testing, the embodiments of the present application respectively propose a data closed-loop automated testing method, device, electronic device and storage medium, which will be described in detail below.
[0042] See also Figure 2 , Figure 2 is a flow chart of a data closed-loop automated testing method shown in an exemplary embodiment of the present application. The method can be applied to Figure 1 It should be understood that the method can also be applied to other exemplary implementation environments and be specifically executed by devices in other implementation environments, and this embodiment does not limit the implementation environment to which the method is applicable.
[0043] like Figure 2As shown, in an exemplary embodiment, the data closed-loop automated testing method includes at least steps S210 to S250, which are described in detail as follows:
[0044] Step S210, when the automated test environment is set up, turn on the camera, which is used to collect video data.
[0045] In one embodiment of the present application, when the automated test environment is built, before the camera is turned on, the C2 controller can obtain the model file address input by the user, and the model file address corresponds to the model file; if a compilation folder corresponding to the model file exists in the directory corresponding to the model file address, it is determined that the automated test environment is built and the camera is turned on. The model file can be a model file for data collection, and the name of the compilation folder can be "build". If the model file has been successfully compiled, the compilation folder will exist in the directory where the model file is located, and the existence of the compilation folder indicates that the automated test environment has been successfully built.
[0046] In one embodiment of the present application, if the compilation folder corresponding to the model file does not exist in the directory corresponding to the model file address, the compilation module is called to compile the model file. If a compilation folder is obtained after the model file is compiled, it is determined that the automated test environment is built and the camera is turned on. If a compilation folder is not obtained after the model file is compiled, a first prompt message is output, and the first prompt message is used to indicate that the integrity of the model file is to be checked.
[0047] In one embodiment of the present application, before obtaining the model file address input by the user, the C2 controller can determine whether the C2 controller and the EDC are in the same subnet. Since the embodiment of the present application requires the C2 controller and the EDC to perform data transmission, the two need to be in the same subnet. If they are in the same subnet, the step of obtaining the model file address input by the user can be executed; if they are not in the same subnet, C2 can execute at least one of the following steps to make the two in the same subnet. Among them, the following steps S211 to S215 can be performed by Figure 3 As shown, specifically:
[0048] Step S211, mounting the preset network card driver.
[0049] The preset network card driver may be an 8021 network card driver. After the mounting is completed, it can be determined whether the preset network card driver is mounted successfully. If the mounting is successful, step S212 can be executed; if the mounting fails, the user is prompted that the mounting of the preset network card driver fails and needs to be retried or the preset network card driver is checked for abnormality.
[0050] Step S212, adding a LAN port.
[0051] The LAN port may be a VLAN port. After adding, it can be determined whether the port is added successfully. If successful, step S213 can be executed; if mounting fails, the user is prompted that adding the LAN port fails and needs to retry or check whether the LAN port is abnormal.
[0052] Step S213, configure the LAN port.
[0053] The LAN port may be the VLAN port in step S212. After configuration is completed, it can be determined whether the LAN port is successfully configured. If the configuration is successful, step S214 can be executed; if the configuration fails, the user is prompted that the LAN port configuration fails and needs to be retried or the LAN port is checked for abnormality.
[0054] Step S214, adding a preset route.
[0055] The preset route can be any route that enables the C2 controller and the EDC to establish a connection. After the preset route is added, it can be determined whether the preset route is added successfully. If the addition is successful, step S215 can be executed; if the addition fails, the user is prompted that the preset route configuration failed and needs to be retried or checked whether the preset route is abnormal.
[0056] Step S215, changing the configuration file.
[0057] After changing the configuration file, you can determine whether the configuration file is successfully configured. If successful, you can check whether the network between the C2 controller and the EDC is connected; if the configuration fails, it will prompt the user that the configuration file configuration failed and needs to be retried or checked whether the configuration file is abnormal.
[0058] After the matching file is updated successfully, check whether the network of C2 controller and EDC is connected. If so, the model file address input by the user can be obtained; if not, the second prompt information is output, and the second prompt information is used to instruct the user to check the hardware device connection.
[0059] Step S220, extract frames from the video data to obtain at least one image data, identify at least one event included in the at least one image data, and send the at least one event to the server through the vehicle system.
[0060] The C2 controller can call the abstract module, and the abstract module can identify at least one image data obtained by frame extraction, and can identify at least one event included in the at least one image. The at least one event can include multiple types of events, such as a pedestrian, the status of a set of traffic lights, the movement of a car, the width of a road, the direction of the road and weather conditions, etc. A series of information that can be captured can become an event. The abstract module can send the at least one identified event to the EDC, and the EDC uploads the at least one event to the server. EDC uploads at least one event to the server through an event information upload channel, and the event information upload channel can be an upload link channel.
[0061] Step S230: save at least one event and at least one image data to a preset memory, and count the number of at least one event.
[0062] The C2 controller can call the data acquisition module, and the abstract module can transmit the at least one event to the data acquisition module, so that the data acquisition module saves the at least one event and at least one image data to a preset memory, and can count the number of the at least one event. Among them, the C2 controller can call the front-view camera main program, and the front-view camera main program can monitor the changes in the output information of the data acquisition module, can direct the output information of the data acquisition module to a text file, and extract the number of at least one event.
[0063] Step S240, receiving at least one command sent by the server through the vehicle system, and counting the number of the at least one command, wherein the at least one command is generated by the server according to at least one event.
[0064] After receiving at least one event sent by EDC, the server can generate a command for each event, which can inform the C2 controller to call the data acquisition module, so that the data acquisition module sends the event and the image data corresponding to the event to EDC, and then the EDC sends it to the server.
[0065] Step S250: determining whether there is an abnormality in the data closed loop based on a comparison result of the number of at least one event and the number of at least one command.
[0066] The C2 controller compares the number of at least one event and the number of at least one command to obtain a comparison result. If the comparison result is that the number of at least one event is greater than the number of at least one command, a third prompt message is output, and the third prompt message is used to indicate that information loss occurs in the event information upload channel, and the event information upload channel is a channel connecting the vehicle system and the service end; if the comparison result is that the number of at least one event is less than the number of at least one command, a fourth prompt message is output, and the fourth prompt message is used to indicate that an abnormality occurs in the process of the data acquisition module sending at least one event.
[0067] In one embodiment of the present application, if the above comparison result is that the number of at least one event is equal to the number of at least one command, and the interrupt test instruction input by the user is not obtained, the step of obtaining the number of at least one event and the number of at least one command is continuously executed; wherein, the interrupt test command can be obtained by monitoring the input of the keyboard, and the command can be generated when the user enters "Q+Enter" on the keyboard.
[0068] In one embodiment of the present application, if the comparison result is that the number of at least one event is equal to the number of at least one command, and an interrupt test instruction is obtained, a test report is output, which is used to indicate that no abnormal event occurs in the data closed loop.
[0069] Through the embodiment of the present application, the C2 controller can turn on the camera when the automated test environment is set up, and the camera is used to collect video data; extract frames of the video data to obtain at least one image data, and identify at least one event included in the at least one image data, and send at least one event to the server through the vehicle system; save at least one event and the at least one image data to a preset memory, and count the number of at least one event; receive at least one command sent by the server through the vehicle system, and count the number of at least one command, at least one command is generated by the server according to at least one event; determine whether there is an abnormality in the data closed loop based on the comparison result of the number of at least one event and the number of at least one command. Through this method, the accuracy and efficiency of the data closed loop automated test can be improved.
[0070] Figure 4 is a block diagram of a data closed-loop automated testing device shown in an exemplary embodiment of the present application. The device can be applied to Figure 1 The device can also be applied to other exemplary implementation environments and be specifically configured in other devices. This embodiment does not limit the implementation environment to which the device is applied.
[0071] like Figure 4 As shown, the exemplary data closed-loop automated testing device includes:
[0072] The start unit 410 is used to start the camera when the automated test environment is set up, and the camera is used to collect video data;
[0073] The processing unit 420 is used to call the abstract module to extract frames of the video data to obtain at least one image data, identify at least one event included in the at least one image data, and send the at least one event to the server through the vehicle system;
[0074] The storage unit 430 is used to call the data acquisition module to save at least one event and the at least one image data to a preset memory, and count the number of at least one event;
[0075] The transceiver unit 440 is used to receive at least one command sent by the server through the vehicle system and count the number of the at least one command, where the at least one command is generated by the server according to at least one event;
[0076] The processing unit 420 is further configured to determine whether there is an abnormality in the data closed loop according to a comparison result between the number of at least one event and the number of at least one command.
[0077] In one embodiment of the present application, when the automated testing environment is set up, before the camera is turned on, the acquisition unit 450 is used to obtain the model file address input by the user, and the model file address corresponds to the model file; if a compilation folder corresponding to the model file exists in the directory corresponding to the model file address, the processing unit 420 is also used to determine that the automated testing environment is set up and turn on the camera.
[0078] In one embodiment of the present application, after obtaining the model file address input by the user, if the compilation folder corresponding to the model file does not exist in the directory corresponding to the model file address, the processing unit 420 is also used to call the compilation module to compile the model file; if a compilation folder is obtained after compiling the model file, it is determined that the automated testing environment is set up and the camera is turned on; if a compilation folder is not obtained after compiling the model file, a first prompt message is output, and the first prompt message is used to indicate that the integrity of the model file needs to be checked.
[0079] In one embodiment of the present application, before obtaining the model file address input by the user, the processing unit 420 is also used to determine whether the C2 controller and the vehicle system are in the same subnet; if so, obtain the model file address input by the user; if not, execute at least one of the following steps: mount the preset network card driver; add a virtual LAN port; configure the virtual LAN port; add a preset route; change the configuration file.
[0080] In one embodiment of the present application, after executing at least one of the following steps, the processing unit 420 is also used to check whether the network of the C2 controller and the vehicle system is connected; if so, the acquisition unit 450 is also used to obtain the model file address input by the user; if not, a second prompt message is output, and the second prompt message is used to indicate to check the hardware device connection.
[0081] In one embodiment of the present application, the processing unit 420 is also used to compare the number of at least one event and the number of at least one command to obtain a comparison result; if the comparison result is that the number of at least one event is greater than the number of at least one command, a third prompt message is output, and the third prompt message is used to indicate that information loss has occurred in the event information upload channel, and the event information upload channel is a channel connecting the vehicle system and the server; if the comparison result is that the number of at least one event is less than the number of at least one command, a fourth prompt message is output, and the fourth prompt message is used to indicate that an abnormality has occurred in the process of the data acquisition module sending at least one event.
[0082] In one embodiment of the present application, the processing unit 420 is also used to compare the number of at least one event and the number of at least one command. After obtaining the comparison result, if the comparison result is that the number of at least one event is equal to the number of at least one command, and the interrupt test instruction input by the user is not obtained, then the step of obtaining the number of at least one event and the number of at least one command is continuously executed; if the comparison result is that the number of at least one event is equal to the number of at least one command, and the interrupt test instruction is obtained, then a test report is output, and the test report is used to indicate that no abnormal event has occurred in the data loop.
[0083] It should be noted that the data closed-loop automated testing device provided in the above embodiment and the data closed-loop automated testing method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here. In actual applications, the data closed-loop automated testing device provided in the above embodiment can distribute the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0084] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device implements the data closed-loop automated testing method provided in the above-mentioned embodiments.
[0085] Figure 5The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 5 The computer system 500 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0086] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503, such as executing the method described in the above embodiment. In the RAM 503, various programs and data required for system operation are also stored. The CPU 501, the ROM 502 and the RAM 503 are connected to each other through the bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.
[0087] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.
[0088] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 509, and / or installed from a removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, various functions defined in the system of the present application are executed.
[0089] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0090] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0091] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0092] Another aspect of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor of a computer, the computer executes the data closed-loop automated testing method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0093] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the data closed-loop automated testing method provided in each of the above embodiments.
[0094] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A data closed-loop automated testing method, characterized in that: The method comprises: When the automated test environment is set up, turn on the camera, which is used to collect video data; Extract frames from the video data to obtain at least one image data, identify at least one event included in the at least one image data, and send the at least one event to a server through a vehicle computer system; saving the at least one event and the at least one image data to a preset memory, and counting the number of the at least one event; receiving at least one command sent by the server through the vehicle system, and counting the number of the at least one command, wherein the at least one command is generated by the server according to the at least one event; Determining whether there is an abnormality in the data closed loop according to a comparison result of the number of the at least one event and the number of the at least one command, including: The number of the at least one event and the number of the at least one command are compared to obtain the comparison result; if the comparison result is that the number of the at least one event is greater than the number of the at least one command, a third prompt message is output, and the third prompt message is used to indicate that information loss occurs in the event information upload channel, and the event information upload channel is a channel connecting the vehicle system and the server; if the comparison result is that the number of the at least one event is less than the number of the at least one command, a fourth prompt message is output, and the fourth prompt message is used to indicate that an abnormality occurs in the process of the data acquisition module sending the at least one event.
2. The method according to claim 1, characterized in that When the automated test environment is set up, before the camera is turned on, the method further includes: Obtaining a model file address input by a user, wherein the model file address corresponds to the model file; If a compilation folder corresponding to the model file exists in the directory corresponding to the model file address, it is determined that the automated test environment is built and the camera is turned on.
3. The method according to claim 2, characterized in that After obtaining the model file address input by the user, the method further includes: If the compilation folder corresponding to the model file does not exist in the directory corresponding to the model file address, calling the compilation module to compile the model file; If the compiled folder is obtained after compiling the model file, it is determined that the automated test environment is built and the camera is turned on; If the compiled folder is not obtained after compiling the model file, a first prompt message is output, where the first prompt message is used to indicate that the integrity of the model file needs to be checked.
4. The method according to claim 2, characterized in that: Before obtaining the model file address input by the user, the method further includes: Determine whether the C2 controller and the vehicle system are in the same subnet; If yes, get the model file address input by the user; If not, perform at least one of the following steps: Mount the default network card driver; Add a virtual LAN port; Configuring the virtual LAN network port; Add preset routes; Change the configuration file.
5. The method according to claim 4, characterized in that After performing at least one of the following steps, the method further comprises: Check whether the network of the C2 controller and the vehicle system is connected; If yes, then obtain the model file address input by the user; If not, a second prompt message is output, where the second prompt message is used to instruct to check the connection of the hardware device.
6. The method according to claim 1, characterized in that After comparing the number of the at least one event and the number of the at least one command to obtain the comparison result, the method further includes: If the comparison result is that the number of the at least one event is equal to the number of the at least one command, and the interruption test instruction input by the user is not obtained, then the step of obtaining the number of the at least one event and the number of the at least one command is continuously executed; If the comparison result is that the number of the at least one event is equal to the number of the at least one command, and the interruption test instruction is obtained, a test report is output, and the test report is used to indicate that no abnormal event occurs in the data closed loop.
7. A data closed-loop automated testing device, characterized in that: The device is used to implement the data closed-loop automated testing method as described in claim 1.
8. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the data closed-loop automated testing method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is enabled to execute the data closed-loop automated testing method according to any one of claims 1 to 6.
