CN115129605A - Data closed-loop automatic testing method and device, electronic equipment and storage medium - Google Patents

Data closed-loop automatic testing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115129605A
CN115129605A CN202210829243.0A CN202210829243A CN115129605A CN 115129605 A CN115129605 A CN 115129605A CN 202210829243 A CN202210829243 A CN 202210829243A CN 115129605 A CN115129605 A CN 115129605A
Authority
CN
China
Prior art keywords
event
command
data
model file
loop
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210829243.0A
Other languages
Chinese (zh)
Inventor
李直旬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202210829243.0A priority Critical patent/CN115129605A/en
Publication of CN115129605A publication Critical patent/CN115129605A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Traffic Control Systems (AREA)

Abstract

The application provides a data closed-loop automatic testing method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: under the condition that the automatic test environment is built, starting a camera, wherein the camera is used for collecting video data; the method comprises the steps of performing frame extraction on video data to obtain at least one image data, identifying at least one event included in the at least one image data, and sending the at least one event to a server through a vehicle-machine system; storing 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 a server through a vehicle-mounted computer system, and counting the number of the at least one command; and determining whether the data closed loop has an abnormality according to the comparison result of the number of the at least one event and the number of the at least one command. By the method, the accuracy and the efficiency of the data closed-loop automatic test can be improved.

Description

Data closed-loop automatic testing method and device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of electronic communication, in particular to a method and a device for automatically testing data closed loop, electronic equipment and a storage medium.
Background
The data closed loop is applied to the field of automobile automatic driving, and the range of data related to an electric platform (SDA) project is wide and the quantity of the data is large. The data closed loop has a high requirement on the accuracy of data transmission, so that the data closed loop needs to be tested to determine whether the data closed loop is abnormal.
The manual testing of data changes in closed loop hardware links is not only difficult, but also may not discover problems in the link due to low manual efficiency. Therefore, an automated testing tool capable of automatically testing a closed-loop hardware link of data is needed.
Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, the present application provides a method and apparatus for closed-loop automated testing of data, an electronic device and a storage medium, so as to solve the above-mentioned technical problems.
In a first aspect, the present application provides a method for closed-loop automated testing of data, including:
under the condition that the automatic test environment is built, starting a camera, wherein the camera is used for collecting video data;
the method comprises the steps of performing frame extraction on video data to obtain at least one image data, identifying at least one event included in the at least one image data, and sending the at least one event to a server through a vehicle-machine system;
storing 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 a server through a vehicle machine 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;
and determining whether the data closed loop has an abnormality according to the comparison result of the number of the at least one event and the number of the at least one command.
In an embodiment of the application, under the condition that the automatic test environment is built, before a camera is started, a model file address input by a user is obtained, wherein the model file address corresponds to a model file; and if the compiling folder corresponding to the model file exists in the directory corresponding to the model file address, determining that the automatic test environment is built, and starting the camera.
In an embodiment of the application, after a model file address input by a user is obtained, if a compiling folder corresponding to the model file does not exist in a directory corresponding to the model file address, a compiling module is called to compile the model file; if the model file is compiled to obtain a compiling folder, the automatic test environment is determined to be built completely, and a camera is started; and if the compiling folder is not obtained after the model file is compiled, outputting first prompt information, wherein the first prompt information is used for indicating the completeness of the model file to be checked.
In an embodiment of the application, before the model file address input by the user is obtained, it is determined whether the C2 controller and the car machine system are in the same subnet; if so, acquiring a model file address input by a user; if not, at least one of the following steps is executed: mounting a preset network card driver; adding a virtual local area network port; configuring a virtual local area network port; adding a preset route; the configuration file is changed.
In an embodiment of the present application, after performing at least one of the following steps, checking whether the network of the C2 controller and the car machine system is connected; if so, acquiring a model file address input by a user; if not, outputting second prompt information, wherein the second prompt information is used for indicating to check the connection of the hardware equipment.
In an embodiment of the present application, comparing the number of the at least one event with the number of the at least one command to obtain a comparison result; if the comparison result shows that the number of the at least one event is larger than the number of the at least one command, outputting third prompt information, wherein the third prompt information is used for indicating that the event information uploading channel is lost, and the event information uploading channel is a channel for connecting the vehicle machine system and the server; and if the comparison result is that the number of the at least one event is smaller than that of the at least one command, outputting fourth prompt information, wherein the fourth prompt information is used for indicating that the process of sending the at least one event by the data acquisition module is abnormal.
In an embodiment of the application, comparing the number of the at least one event with the number of the at least one command, and after obtaining a comparison result, 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 an interrupt test instruction input by a user is not obtained, continuously performing the step of obtaining the number of the at least one event and the number of the at least one command; and 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 interrupt test instruction is obtained, outputting a test report, wherein the test report is used for indicating that the data closed loop does not generate the abnormal event.
In a second aspect, the present application provides a data closed-loop automatic testing apparatus, including:
the starting unit is used for starting the camera under the condition that the automatic test environment is built, and the camera is used for collecting video data;
the processing unit is used for calling the abstract module to perform frame extraction on the video data to obtain at least one image data, identifying at least one event included in the at least one image data, and sending the at least one event to the server through the vehicle-machine system;
the storage unit is used for calling the data acquisition module to store at least one event and the at least one image data into a preset memory and counting the number of the at least one event;
the receiving and sending unit is used for receiving at least one command sent by the server through the vehicle-mounted machine 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;
and the processing unit is also used for determining whether the data closed loop has an abnormality according to the comparison result of the number of the at least one event and the number of the at least one command.
In a third aspect, the present application provides an electronic device, comprising:
one or more processors;
a storage device for storing one or more programs which, when executed by the one or more processors, cause the electronic device to implement the data closed-loop automated testing method described in the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the closed-loop automated testing method of data described in the first aspect.
The beneficial effect of this application: the accuracy and efficiency of the data closed-loop automatic test can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 is a block diagram of an automated test system shown in an exemplary embodiment of the present application;
FIG. 2 is a flow chart of a data closed loop automated testing method shown in an exemplary embodiment of the present application;
FIG. 3 is a flow chart illustrating the configuration of a C2 controller and EDC under the same subnet in an exemplary embodiment of the application;
FIG. 4 is a block diagram of a data closed loop automated test equipment shown in an exemplary embodiment of the present application;
FIG. 5 illustrates a schematic structural diagram of a computer system suitable for use to implement the electronic device of the embodiments of the subject application.
Detailed Description
Other advantages and effects of the present application will become apparent to those skilled in the art from the disclosure herein, wherein the embodiments of the present application will be described in detail with reference to the accompanying drawings and preferred embodiments. The application is capable of other and different embodiments and its several details are capable of modifications and various changes in detail without departing from the spirit of the application. It should be understood that the preferred embodiments are for purposes of illustration only and are not intended to limit the scope of the present disclosure.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present application, and the drawings only show the components related to the present application and are not drawn according to the number, shape and size of the components in actual implementation, and the type, number and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
In the following description, numerous details are set forth to provide a more thorough explanation of the embodiments of the present application, however, it will be apparent to one skilled in the art that the embodiments of the present application may be practiced without these specific details, and in other embodiments, well-known structures and devices are shown in block diagram form rather than in detail in order to avoid obscuring the embodiments of the present application.
It should be noted that a Virtual Local Area Network (VLAN) is a group of logical devices and users, which are not limited by physical locations and can be organized according to factors such as functions, departments and applications, and the communication between them is as if they were in each otherSame network segmentThe same as in (1).
Referring to fig. 1, fig. 1 is a block diagram of an automated test system according to an exemplary embodiment of the present disclosure. As shown in fig. 1, the framework of the automated testing system includes a server device and a car, wherein the car may include a C2 controller, an EDC, a data collection module, an abstraction module, and a camera. Wherein, the C2 controller can control the data acquisition module and the abstraction module; the EDC can be a vehicle-mounted system on the automobile and can communicate with the server-side equipment; the abstract module can extract frames from video data output by the camera, identify at least one image data extracted by the frames, and store the at least one image data through the data acquisition module.
The in-vehicle device system (EDC) shown in fig. 1 may be a vehicle-mounted terminal, and the vehicle-mounted terminal may include a user interface and a communication interface, and may implement interaction with a user and interaction with a server device. The server device shown in fig. 1 may be a navigation server, for example, an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), a big data and artificial intelligence platform, and is not limited herein. The car-in-vehicle system may communicate with the server device through a wireless network, such as 3G (third generation mobile information technology), 4G (fourth generation mobile information technology), and 5G (fifth generation mobile information technology), which is not limited herein.
In order to improve the accuracy and efficiency of the closed-loop data automation test, embodiments of the present application respectively provide a method and an apparatus for closed-loop data automation test, an electronic device, and a storage medium, and the embodiments will be described in detail below.
Referring to fig. 2, fig. 2 is a flowchart illustrating a data closed-loop automated testing method according to an exemplary embodiment of the present application. The method may be applied to the implementation environment shown in fig. 1 and is specifically performed by the C2 controller in the implementation environment. It should be understood that the method may be applied to other exemplary implementation environments and is specifically executed by devices in other implementation environments, and the embodiment does not limit the implementation environment to which the method is applied.
As shown in fig. 2, in an exemplary embodiment, the data closed-loop automated testing method at least includes steps S210 to S250, which are described in detail as follows:
and step S210, under the condition that the automatic test environment is built, starting a camera, wherein the camera is used for collecting video data.
In an embodiment of the application, when the automated testing environment is built, before the camera is turned on, the C2 controller may obtain a model file address input by the user, where the model file address corresponds to the model file; and if the compiling folder corresponding to the model file exists in the directory corresponding to the address of the model file, determining that the automatic test environment is built, and starting the camera. The model file may be a model file for data collection, and the name of the compilation folder may be "built". If the model file is successfully compiled, the compiling folder exists in the directory where the model file is located, and if the compiling folder exists, the environment of the automated testing is successfully established.
In an embodiment of the application, if the compiling folder corresponding to the model file does not exist in the directory corresponding to the model file address, the compiling module is called to compile the model file. And if the model file is compiled to obtain a compiling folder, determining that the automatic test environment is built, and starting the camera. And if the compiling folder is not obtained after the model file is compiled, outputting first prompt information, wherein the first prompt information is used for indicating the completeness of the model file to be checked.
In an embodiment of the present application, before obtaining the model file address input by the user, the C2 controller may determine whether the C2 controller and the EDC are under the same subnet. Since the embodiment of the present application requires the C2 controller and the EDC for data transmission, both are required to be located under the same subnet. If the model files are in the same subnet, the step of obtaining the address of the model file input by the user can be executed; if not under the same subnet, C2 may perform at least one of the following steps to bring both under the same subnet. In addition, the following steps S211 to S215 can be shown in fig. 3, specifically:
step S211, a preset network card driver is mounted.
The default network card driver may be an 8021 network card driver. After the mounting is finished, whether the preset network card drive is successfully mounted can be judged. If the mount is successful, step S212 may be executed; if the mounting fails, prompting the user that the mounting of the preset network card drive fails, and retrying or checking whether the preset network card drive is abnormal or not.
Step S212, adding a local area network port.
The local area network port may be a VLAN port. After the addition is finished, whether the addition of the network port is successful can be judged. If successful, step S213 may be executed; if the mount fails, the user is prompted to fail to add the LAN port, and retry or check whether the LAN port is abnormal or not is required.
Step S213, configuring the lan port.
The lan port may be a VLAN port in step S212. After the configuration is finished, whether the configuration of the LAN port is successful can be judged. If the configuration is successful, step S214 may be executed; if the configuration fails, prompting the user that the configuration of the LAN port fails, and retrying or checking whether the LAN port is abnormal or not.
Step S214, adding a preset route.
The predetermined route may be any route that enables the C2 controller and the EDC to establish a connection. After the preset route is added, whether the preset route is added successfully can be judged. If the addition is successful, step S215 may be performed; if the addition fails, the user is prompted that the preset route configuration fails, and the user needs to retry or check whether the preset route is abnormal or not.
Step S215, change the configuration file.
After the configuration file is changed, whether the configuration file is configured successfully or not can be judged. If successful, the network of the C2 controller and EDC may be checked for connectivity; if the configuration fails, prompting the user that the configuration of the configuration file fails, and retrying or checking whether the configuration file is abnormal or not is required.
After the matching file is updated successfully, checking whether the network of the C2 controller and the EDC is communicated or not, and if so, acquiring a model file address input by a user; if not, outputting second prompt information, wherein the second prompt information is used for indicating a user to check the connection of the hardware equipment.
Step S220, performing frame extraction on the video data to obtain at least one image data, identifying at least one event included in the at least one image data, and sending the at least one event to the server through the in-vehicle system.
The C2 controller may invoke an abstraction module that may identify at least one image data resulting from the framing, and may identify at least one event included in the at least one image. The at least one event may include a variety of types of events, such as a pedestrian, a status of a set of traffic lights, a movement of a vehicle, a width of a road, a direction of a road, a weather condition, and the like. The abstraction module may send the identified at least one event to the EDC, and upload the at least one event EDC to the server. The EDC may upload the at least one event to the server via an event information upload channel, which may be an upload link channel.
Step S230, storing 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.
The C2 controller may invoke the data collection module, and the abstraction module may transmit the at least one event to the data collection module, so that the data collection module saves the at least one event and the at least one image data to a preset memory, and may count the number of the at least one event. Wherein the C2 controller can invoke a forward looking camera main routine that can monitor changes in the data acquisition module output information, can direct the data acquisition module output information to a text file, and extract a quantity related to at least one event.
Step S240, receiving at least one command sent by the server through the in-vehicle machine system, and counting the number of the at least one command, where the at least one command is generated by the server according to the at least one event.
After the service end receives at least one event sent by the EDC, a command may be generated for each event, and the command may inform the C2 controller to invoke the data acquisition module, so that the data acquisition module sends the event and the image data corresponding to the event to the EDC, and the EDC sends the event and the image data to the service end.
And step S250, determining whether the data closed loop has an abnormality according to the comparison result of the number of the at least one event and the number of the at least one command.
The C2 controller compares the number of the at least one event with the number of the at least one command to obtain a comparison. If the comparison result shows that the number of the at least one event is larger than that of the at least one command, outputting third prompt information, wherein the third prompt information is used for indicating that the event information uploading channel is lost, and the event information uploading channel is a channel for connecting the vehicle machine system and the server side; and if the comparison result shows that the number of the at least one event is smaller than the number of the at least one command, outputting fourth prompt information, wherein the fourth prompt information is used for indicating that the process of sending the at least one event by the data acquisition module is abnormal.
In an embodiment of the application, if the comparison result indicates that the number of the at least one event is equal to the number of the at least one command and the interrupt test instruction input by the user is not obtained, the step of obtaining the number of the at least one event and the number of the at least one command is continuously performed; the interrupt test command may be obtained by monitoring the input of the keyboard, and the command may be generated when the user inputs "Q + Enter" on the keyboard.
In an embodiment of the application, if the comparison result indicates that the number of the at least one event is equal to the number of the at least one command and the interrupt test instruction is obtained, a test report is output, where the test report is used to indicate that no abnormal event occurs in the data closed loop.
According to the embodiment of the application, the C2 controller can start the camera under the condition that the automatic test environment is built, and the camera is used for collecting video data; the method comprises the steps of performing frame extraction on video data to obtain at least one image data, identifying at least one event included in the at least one image data, and sending the at least one event to a server through a vehicle-machine system; storing 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 a server through a vehicle machine 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; and determining whether the data closed loop has an abnormality according to the comparison result of the number of the at least one event and the number of the at least one command. By the method, the accuracy and the efficiency of the closed-loop automatic data testing can be improved.
FIG. 4 is a block diagram of a data closed loop automated testing apparatus shown in an exemplary embodiment of the present application. The device may be applied to the implementation environment shown in fig. 1 and is specifically configured in an automobile. The apparatus may also be applied to other exemplary implementation environments, and is specifically configured in other devices, and the embodiment does not limit the implementation environment to which the apparatus is applied.
As shown in fig. 4, the exemplary closed-loop data automated testing apparatus includes:
the starting unit 410 is used for starting a camera under the condition that the automatic test environment is built, and the camera is used for collecting video data;
the processing unit 420 is configured to invoke the abstraction module to perform frame extraction on 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 in-vehicle system;
the storage unit 430 is configured to invoke the data acquisition module to store the at least one event and the at least one image data in a preset memory, and count the number of the at least one event;
the transceiving unit 440 is configured to receive at least one command sent by the server through the in-vehicle machine 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;
the processing unit 420 is further configured to determine whether the data closed loop has an abnormality according to a comparison result of the number of the at least one event and the number of the at least one command.
In an embodiment of the application, when the automated testing environment is built and before the camera is turned on, the obtaining unit 450 is configured to obtain a model file address input by a user, where the model file address corresponds to a model file; if the compiling folder corresponding to the model file exists in the directory corresponding to the address of the model file, the processing unit 420 is further configured to determine that the building of the automated testing environment is completed, and start the camera.
In an embodiment of the application, after the model file address input by the user is obtained, if there is no compiling folder corresponding to the model file in the directory corresponding to the model file address, the processing unit 420 is further configured to invoke the compiling module to compile the model file; if the model file is compiled to obtain a compiling folder, the automatic test environment is determined to be built completely, and a camera is started; and if the compiling folder is not obtained after the model file is compiled, outputting first prompt information, wherein the first prompt information is used for indicating the completeness of the model file to be checked.
In an embodiment of the present application, before obtaining the model file address input by the user, the processing unit 420 is further configured to determine whether the C2 controller and the car machine system are located in the same subnet; if so, acquiring a model file address input by a user; if not, at least one of the following steps is executed: mounting a preset network card driver; adding a virtual local area network port; configuring a virtual local area network port; adding a preset route; the configuration file is changed.
In an embodiment of the application, after performing at least one of the following steps, the processing unit 420 is further configured to check whether the network of the C2 controller and the in-vehicle system is connected; if yes, the obtaining unit 450 is further configured to obtain a model file address input by the user; if not, outputting second prompt information, wherein the second prompt information is used for indicating to check the connection of the hardware equipment.
In an embodiment of the application, the processing unit 420 is further configured to compare the number of the at least one event with the number of the at least one command to obtain a comparison result; if the comparison result shows that the number of the at least one event is larger than the number of the at least one command, outputting third prompt information, wherein the third prompt information is used for indicating that the event information uploading channel is lost, and the event information uploading channel is a channel for connecting the vehicle machine system and the server; and if the comparison result shows that the number of the at least one event is smaller than the number of the at least one command, outputting fourth prompt information, wherein the fourth prompt information is used for indicating that the process of sending the at least one event by the data acquisition module is abnormal.
In an embodiment of the application, the processing unit 420 is further configured to compare the number of the at least one event with the number of the at least one command, and after the comparison result is obtained, if the comparison result indicates that the number of the at least one event is equal to the number of the at least one command and an interrupt test instruction input by the user is not obtained, continuously perform the step of obtaining the number of the at least one event and the number of the at least one command; and 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 interrupt test instruction is obtained, outputting a test report, wherein the test report is used for indicating that the data closed loop does not generate the abnormal event.
It should be noted that the data closed-loop automatic testing apparatus provided in the foregoing embodiment and the data closed-loop automatic testing method provided in the foregoing embodiment belong to the same concept, and specific ways of performing operations by the respective modules and units have been described in detail in the method embodiment, and are not described again here. In practical applications, the data closed-loop automatic testing apparatus provided in the above embodiment may distribute the functions to different functional modules according to needs, that is, divide the internal structure of the apparatus into different functional modules to complete all or part of the functions described above, which is not limited herein.
An embodiment of the present application further provides an electronic device, including: one or more processors; a storage device for storing one or more programs, which when executed by the one or more processors, cause the electronic device to implement the data closed-loop automated testing method provided in the above-described embodiments.
FIG. 5 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application. It should be noted that the computer system 500 of the electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501, which can perform various suitable actions and processes, such as executing the method described in the above embodiments, according to a program stored in a Read-Only Memory (ROM) 502 or a program loaded from a storage portion 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for system operation are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An Input/Output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output section 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage portion 508 including a hard disk and the like; and a communication section 509 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program executes various functions defined in the system of the present application when executed by a Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer-readable signal medium may include a propagated data signal with a computer program embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
Yet another aspect of the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to execute the closed-loop automated testing method of data as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist separately without being incorporated in the electronic device.
Another aspect of the application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the data closed-loop automatic testing method provided in the above embodiments.
The above-described embodiments are merely illustrative of the principles and utilities of the present application and are not intended to limit the application. Any person skilled in the art can modify or change the above-described embodiments without departing from the spirit and scope of the present application. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical concepts disclosed in the present application shall be covered by the claims of the present application.

Claims (10)

1. A closed-loop automatic data testing method is characterized by comprising the following steps:
under the condition that the automatic test environment is built, a camera is started and used for collecting video data;
performing frame extraction on the video data to obtain at least one image data, identifying at least one event included in the at least one image data, and sending the at least one event to a server through a vehicle-machine system;
storing 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-mounted machine 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;
and determining whether the data closed loop has an abnormality according to the comparison result of the number of the at least one event and the number of the at least one command.
2. The method of claim 1, wherein before turning on a camera in the event of completion of the automated test environment setup, the method further comprises:
obtaining a model file address input by a user, wherein the model file address corresponds to the model file;
and if the compiling folder corresponding to the model file exists in the directory corresponding to the model file address, determining that the automatic test environment is built, and starting the camera.
3. The method of claim 2, wherein after obtaining the model file address entered by the user, the method further comprises:
if the compiling folder corresponding to the model file does not exist in the directory corresponding to the model file address, calling a compiling module to compile the model file;
if the compiling folder is obtained after the model file is compiled, the automatic test environment is determined to be built completely, and the camera is started;
and if the compiling folder is not obtained after the model file is compiled, outputting first prompt information, wherein the first prompt information is used for indicating the completeness of the model file to be checked.
4. The method of claim 2, wherein prior to obtaining the model file address entered by the user, the method further comprises:
judging whether the C2 controller and the vehicle machine system are under the same subnet;
if so, acquiring a model file address input by a user;
if not, at least one of the following steps is executed:
mounting a preset network card drive;
adding a virtual local area network port;
configuring the virtual local area network port;
adding a preset route;
the configuration file is changed.
5. The method of claim 4, wherein after performing at least one of the following steps, the method further comprises:
checking whether the network of the C2 controller and the vehicle machine system is connected;
if so, acquiring the address of the model file input by the user;
and if not, outputting second prompt information, wherein the second prompt information is used for indicating to check the connection of the hardware equipment.
6. The method of claim 1, wherein determining whether an anomaly exists in the closed data loop based on the comparison of the number of the at least one event and the number of the at least one command comprises:
comparing the number of the at least one event with the number of the at least one command to obtain a comparison result;
if the comparison result shows that the number of the at least one event is larger than the number of the at least one command, outputting third prompt information, wherein the third prompt information is used for indicating that an event information uploading channel is lost, and the event information uploading channel is a channel for connecting the vehicle machine system and the server;
and if the comparison result shows that the number of the at least one event is smaller than the number of the at least one command, outputting fourth prompt information, wherein the fourth prompt information is used for indicating that the process of the data acquisition module for sending the at least one event is abnormal.
7. The method of claim 6, wherein after comparing the number of the at least one event with the number of the at least one command to obtain the comparison result, the method further comprises:
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 interrupt test instruction input by the user is not acquired, continuously executing the step of acquiring the number of the at least one event and the number of the at least one command;
and 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 interrupt test instruction is obtained, outputting a test report, wherein the test report is used for indicating that the data closed loop does not generate abnormal events.
8. An automatic test device for closed-loop data, the device comprising:
the starting unit is used for starting the camera under the condition that the automatic test environment is built, and the camera is used for collecting video data;
the processing unit is used for calling the abstraction module to perform frame extraction on the video data to obtain at least one image data, identifying at least one event included in the at least one image data, and sending the at least one event to a server through the vehicle-machine system;
the storage unit is used for calling a data acquisition module to store 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;
the receiving and sending unit is used for receiving at least one command sent by the server through the vehicle-machine 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;
the processing unit is further used for determining whether the data closed loop has an abnormality according to the comparison result of the number of the at least one event and the number of the at least one command.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs that, when executed by the one or more processors, cause the electronic device to implement the closed-loop automated testing method of data of any of claims 1-7.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the closed-loop automated testing method of data of any one of claims 1 to 7.
CN202210829243.0A 2022-06-28 2022-06-28 Data closed-loop automatic testing method and device, electronic equipment and storage medium Pending CN115129605A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210829243.0A CN115129605A (en) 2022-06-28 2022-06-28 Data closed-loop automatic testing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210829243.0A CN115129605A (en) 2022-06-28 2022-06-28 Data closed-loop automatic testing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115129605A true CN115129605A (en) 2022-09-30

Family

ID=83383955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210829243.0A Pending CN115129605A (en) 2022-06-28 2022-06-28 Data closed-loop automatic testing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115129605A (en)

Similar Documents

Publication Publication Date Title
CN110377462B (en) Interface testing method and device and terminal equipment
CN112015489A (en) Management method, device, storage medium and system for vehicle-mounted software
US20230384750A1 (en) Efficient controller data generation and extraction
CN115268964A (en) Data reinjection method and system, electronic device and readable storage medium
CN116257438A (en) Updating method of interface test case and related equipment
CN112953994B (en) Data acquisition method, acquisition device, terminal equipment and readable storage medium
CN116483693A (en) Vehicle-mounted controller software debugging method and system, electronic equipment and storage medium
CN115129605A (en) Data closed-loop automatic testing method and device, electronic equipment and storage medium
CN116366275A (en) Safety verification method, device, equipment and storage medium based on vehicle controller
CN115877819A (en) Vehicle remote diagnosis management method, device, equipment and medium
CN112099814B (en) System and method for managing vehicle-mounted machine application software installation environment
CN115795845A (en) Construction method, device, equipment and storage medium of integrated test simulation platform
CN116126710A (en) Vehicle-mounted software simulation method, device, equipment and medium
CN115145630A (en) Cabin software version management method, device, equipment and medium
CN114879630A (en) Vehicle fault diagnosis method, device, equipment and readable storage medium
CN115032971B (en) Updating method and device of vehicle diagnosis equipment and server
CN115866073B (en) Data difference fusion method, device, equipment and medium
CN116016239B (en) Service interface testing method, device, equipment and storage medium
CN115114164A (en) Test method, test device, electronic equipment and storage medium
CN113271320B (en) Terminal authentication method, device, system, medium and equipment
CN115220432A (en) Parking performance testing method and system, electronic device and storage medium
CN115757044A (en) Method, device, equipment and medium for processing abnormal state of vehicle controller
CN116339807A (en) Management method and device of vehicle configuration data, electronic equipment and storage medium
CN115202919A (en) Processing method, device, equipment and medium for recording fault log
CN115617772A (en) Change processing method and device and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination