Automatic test method and device of vehicle, electronic equipment and storage medium
Through the vehicle automation testing method, the communication between the vehicle-side system and the cloud server is used to automatically execute and analyze test cases, and the problems of inefficient testing and low accuracy in Ethernet testing are solved, and the stability and safety testing of the vehicle are achieved , improves testing efficiency and accuracy.
Patent Information
- Application Number
- CN202410928803.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-11-08
AI Technical Summary
In the Ethernet test of vehicles, the existing technology relies on manual testing, which leads to inefficient testing and is susceptible to human factors, and the accuracy of the test results is not high.
Using vehicle automation testing methods, through communication between the vehicle end system and the cloud server, it receives and executes test cases, controls the test unit to perform automated tests, acquires and analyzes test data, generates test results, and ensures data through encrypted communication and security verification. security and reliability.
It realizes the stability and safety test of the vehicle in various environments, improves the testing efficiency and accuracy, reduces human resource requirements, and provides optimization support for vehicle network communication.
Smart Images

Figure CN118915684A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automated testing of vehicles, and in particular to an automated testing method for a vehicle, an automated testing device for a vehicle, an electronic device, and a computer-readable storage medium. Background Art
[0002] When testing a vehicle, the actual vehicle test environment involves many factors, such as vehicle status, network environment, sensor data, etc. Changes in these factors may affect the accuracy of the test results. Since the automated test system has limited adaptability to the environment and is difficult to fully adapt to the complex test environment, testers often need to intervene manually to ensure the smooth progress of the test. With the rapid development of automotive technology, Ethernet technology has gradually been introduced into internal automotive communications to achieve high-speed data transmission between various modules inside the vehicle. The introduction of Ethernet technology not only improves the efficiency and reliability of internal automotive communications, but also provides strong support for vehicle intelligence and networking. However, the complexity of Ethernet technology also brings challenges in testing. The application of Ethernet technology in the automotive field is relatively late, and the research and development and application of automated testing technology have not yet reached a mature stage. Therefore, in the process of real vehicle testing, the stability and reliability of the automated test system are difficult to guarantee, which makes testers more inclined to adopt manual testing methods.
[0003] In the prior art, the testing of real vehicle Ethernet usually relies on manual testing methods. However, manual testing requires a lot of human resources, has low testing efficiency, and is easily affected by human factors, resulting in low accuracy of test results. Summary of the invention
[0004] The embodiment of the present invention provides a vehicle automated testing method, device, electronic device and computer-readable storage medium to solve the problem that the actual vehicle has low testing efficiency when tested through Ethernet and is easily affected by human factors, resulting in low accuracy of test results.
[0005] An embodiment of the present invention discloses an automated vehicle testing method, which is applied to a vehicle-side system, wherein the vehicle-side system includes a plurality of testing units. The method includes:
[0006] Receiving a test case for the vehicle sent by a cloud server;
[0007] Parsing the test case to obtain a parsing result, and determining a target test unit for the test case and a test instruction for the target test unit according to the parsing result;
[0008] Controlling the target test unit to execute the test instruction to perform an automated test on the vehicle, and obtaining test data corresponding to the automated test;
[0009] The test data is sent to the cloud server.
[0010] Optionally, the vehicle-side system further includes a network controller, and before receiving a test case for the vehicle sent by a cloud server, the method includes:
[0011] receiving a connection request sent by the cloud server, wherein the connection request includes identity information of the cloud server;
[0012] Verifying the identity information according to a preset security algorithm, and determining that the connection request that passes the verification is a trusted connection request;
[0013] Generate response information for the trusted connection request, and encrypt the response information;
[0014] The encrypted response information is sent to the cloud server.
[0015] The embodiment of the present invention also discloses an automatic vehicle testing method, which is applied to a cloud server. The method includes:
[0016] Creating a test case for a vehicle, wherein the test case is used to indicate test conditions and test tasks when the vehicle is subjected to an automated test;
[0017] Sending the test case to the vehicle-side system so that the test task is allocated to the target test unit of the vehicle-side system;
[0018] Receiving test data obtained by the target test unit through the automated test;
[0019] The test data is collated to generate a test result for the vehicle.
[0020] Optionally, before creating a test case for a vehicle, the method includes:
[0021] Obtaining a vehicle frame number, where the vehicle frame number is used to identify a unique corresponding vehicle;
[0022] Querying a preset database for the vehicle corresponding to the vehicle frame number and the address of the network controller corresponding to the vehicle;
[0023] generating a connection request for the networked controller and encrypting the connection request;
[0024] Sending the encrypted connection request to the address of the network controller, and receiving response information fed back by the network controller;
[0025] Performing security verification on the response information and generating a verification result for the networked controller;
[0026] Create a test case corresponding to the vehicle with a passed verification result.
[0027] Optionally, arranging the test data includes:
[0028] Downloading the test data to a local computer and performing normalization processing on the test data to obtain preprocessed test data;
[0029] Parsing the preprocessed test data to obtain a first service identifier carried in the preprocessed test data, wherein the first service identifier is used to determine whether the test case is executed successfully;
[0030] Parsing the test case to obtain a second service identifier corresponding to the test case;
[0031] Compare the first service identifier with the second service identifier, determine that a test case having the same first service identifier as the second service identifier is a target test case that is successfully executed, and generate a test result for the target test case;
[0032] The test results are analyzed to generate a test report for the vehicle.
[0033] Optionally, analyzing the test results includes:
[0034] Comparing the test result with a preset expected result, determining that a vehicle whose test result is inconsistent with the expected result is a faulty vehicle with a safety risk, wherein the expected result is used to represent an expected test value of the vehicle;
[0035] The pre-processed test data corresponding to the faulty vehicle is analyzed to generate a test report for the faulty vehicle.
[0036] The embodiment of the present invention further discloses an automatic testing device for a vehicle, which is applied to a vehicle-side system. The vehicle-side system includes a plurality of testing units. The device includes:
[0037] A test case receiving module, used for receiving a test case for the vehicle sent by a cloud server;
[0038] A test case parsing module, used to parse the test case to obtain a parsing result, and determine a target test unit for the test case and a test instruction for the target test unit according to the parsing result;
[0039] A vehicle automated testing module, used to control the target testing unit to execute the test instruction to perform automated testing on the vehicle, and obtain test data corresponding to the automated testing;
[0040] The test data sending module is used to send the test data to the cloud server.
[0041] The embodiment of the present invention further discloses an automatic testing device for a vehicle, which is applied to a cloud server, and the device comprises:
[0042] A test case creation module, used to create a test case for a vehicle, wherein the test case is used to indicate the test conditions and test tasks when the vehicle is subjected to an automated test;
[0043] A test case sending module, used for sending the test case to the vehicle-side system, so that the test task is allocated to the target test unit of the vehicle-side system;
[0044] A test data receiving module, used for receiving the test data obtained by the target test unit through the automated test;
[0045] The test data collating module is used to collate the test data to generate a test result for the vehicle.
[0046] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0047] The memory is used to store computer programs;
[0048] The processor is used to implement the automatic vehicle testing method as described in the embodiment of the present invention when executing the program stored in the memory.
[0049] The embodiment of the present invention further discloses a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, enables the processors to execute the automatic vehicle testing method as described in the embodiment of the present invention.
[0050] The embodiments of the present invention include the following advantages:
[0051] When the embodiment of the present invention is applied to the vehicle-side system, it receives the test case for the vehicle sent by the cloud server, parses the test case to obtain the parsing result, determines the target test unit for the test case and the test instruction for the target test unit according to the parsing result, controls the target test unit to execute the test instruction to perform an automated test on the vehicle, obtains the test data corresponding to the automated test, and sends the test data to the cloud server; when applied to the cloud server, it creates a test case for the vehicle, the test case is used to indicate the test conditions and test tasks when the vehicle performs an automated test, sends the test case to the vehicle-side system, allocates the test task to the target test unit of the vehicle-side system, receives the test data obtained by the automated test of the target test unit, and organizes the test data to generate the test result for the vehicle. In the embodiment of the present invention, the vehicle is comprehensively and deeply tested by automated testing means to ensure its stability and safety in various environments. At the same time, the test results are monitored and warned in real time through the data analysis and processing capabilities of the cloud server, providing strong support for the optimization of vehicle network communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 is a schematic diagram of a test platform for an automated vehicle testing method provided in an embodiment of the present invention;
[0053] Figure 2 is a flowchart of the steps of an automated vehicle testing method provided in an embodiment of the present invention;
[0054] Figure 3 is a flowchart of the steps of an automated vehicle testing method provided in an embodiment of the present invention;
[0055] Figure 4 is a structural block diagram of an automatic vehicle testing device provided in an embodiment of the present invention;
[0056] Figure 5 is a structural block diagram of an automatic vehicle testing device provided in an embodiment of the present invention;
[0057] Figure 6 It is a block diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0058] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0059] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0060] When conducting automated vehicle testing based on Ethernet, you first need to build a test platform that includes the vehicle-side system and cloud services, such as Figure 1 As shown, the test platform includes at least a vehicle-side system and a cloud server. The vehicle-side system includes several test units that support Ethernet communication, and determines the communication protocols (such as TCP / IP, UDP, etc.) that these test units can support, and configures the Ethernet interface for the test unit. The Ethernet interface includes an IP address, a subnet mask, and a gateway setting.
[0061] In an optional embodiment, it is necessary to install an operating system (such as Linux or RTOS) for the vehicle-side system and ensure that it supports Ethernet communication. After the installation is complete, it is necessary to configure network services for the vehicle-side system, such as DHCP, DNS, etc., so that the device can automatically obtain the network configuration. Finally, it is necessary to install necessary communication libraries and drivers to ensure that the vehicle-side system can transmit data via Ethernet. The present invention does not impose specific restrictions on the specific installed operating system type and network service type.
[0062] In an optional embodiment, when building a cloud server in the test platform, developing or integrating a cloud platform interface is a key step to achieve seamless communication between the vehicle-side system and the cloud server. This process involves designing a stable, efficient and secure communication protocol that can process data collected from the vehicle and execute remote control commands. The cloud platform interface usually uses the Representational State Transfer Application Programming Interface (RESTful API) or WebSocket (WebSocket Protocol) technology, which supports real-time two-way communication, ensuring that data can be quickly and accurately transmitted from the vehicle to the cloud, and feedback control instructions from the cloud to the vehicle. The design of the cloud platform interface also needs to consider the consistency of the data format, such as JSON or XML, to facilitate data parsing and processing. In addition, the cloud platform interface must have a strong security mechanism, such as Open Authorization (OAuth) authentication and Secure Sockets Layer / Transport Layer Security (SSL / TLS) encryption to protect the security of data during transmission and prevent unauthorized access and data leakage. Through these cloud platform interfaces, the cloud server can achieve efficient and secure communication with the vehicle-side system, providing strong data support and technical guarantee for vehicle automated testing.
[0063] At the same time, configuring data synchronization and remote control functions is the core of achieving real-time monitoring and control of the vehicle. This process involves establishing an efficient and reliable communication link between the cloud server and the vehicle-side system to ensure that the vehicle status data can be uploaded to the cloud in real time, and the control instructions from the cloud can be sent to the vehicle immediately. The data synchronization function is usually implemented through a regular data upload and download mechanism to ensure that the vehicle data in the cloud database is always kept up to date. The remote control function allows the cloud server to operate the vehicle by sending specific control instructions, such as starting, stopping or adjusting vehicle parameters. In order to ensure the stability and security of these functions, encrypted communication and strict access control mechanisms must be used in the system design to prevent data leakage and unauthorized operations. Through the configuration of these functions, the cloud platform can monitor and accurately control the vehicle in real time, providing a powerful technical support platform for vehicle automation testing.
[0064] Reference Figure 2 , shows a flowchart of the steps of an automated vehicle testing method provided in an embodiment of the present invention, which is applied to a vehicle-side system, and the vehicle-side system includes several testing units. The specific method may include the following steps:
[0065] Step 201, receiving a test case for a vehicle sent by a cloud server.
[0066] In an optional embodiment, the vehicle-side system is equipped with a corresponding communication module, which can receive encrypted data packets from the cloud. After receiving the data, the vehicle-side system uses a pre-configured key to decrypt the data and restore the original test case.
[0067] Step 202: parse the test case to obtain a parsing result, and determine a target test unit for the test case and a test instruction for the target test unit according to the parsing result.
[0068] The decrypted test case will be parsed by the test execution engine of the vehicle-side system to extract specific test tasks, test instructions and test parameters. Based on the test tasks, the test execution engine determines the target test unit in the vehicle-side system that can execute the corresponding test tasks, and then sends the test instructions and test parameters corresponding to the test tasks to the corresponding test units. The test units perform the corresponding test operations based on the test tasks and test instructions assigned to them.
[0069] Step 203: Control the target test unit to execute the test instruction to perform an automated test on the vehicle, and obtain test data corresponding to the automated test.
[0070] Step 204, sending the test data to the cloud server.
[0071] During the test execution, the vehicle-side system will collect relevant data in real time, such as sensor readings, system status, etc. After the test is completed, the data will be packaged and uploaded back to the cloud server through the same communication channel for further analysis and evaluation.
[0072] Through this series of steps, the vehicle-side system can accurately receive and execute test cases sent by the cloud server, ensuring the smooth progress of vehicle automation testing and providing reliable data support for the analysis of test results.
[0073] In an optional embodiment of the present invention, the vehicle-side system further includes a network controller. Before step 201, the method includes:
[0074] A connection request sent by a cloud server is received, where the connection request includes identity information of the cloud server.
[0075] Optionally, the vehicle-side system listens to a specific network port and waits for a connection request from the cloud server. Once a connection request is detected, the vehicle-side system captures and parses the request to extract key information. The connection request contains the identity information of the cloud server, which is usually in the form of a digital certificate. The digital certificate contains the server's public key, identity (such as a domain name or organization name), and a digital signature issued by a trusted certificate authority (CA).
[0076] The identity information is verified according to a preset security algorithm to determine that the connection request that passes the verification is a trusted connection request.
[0077] Optionally, the vehicle-side system verifies the extracted identity information using a preset security algorithm. This typically involves verifying that the signature of the digital certificate is valid, checking that the certificate is issued by a trusted CA, and confirming that the identity in the certificate matches the expected cloud server. If the identity authentication is successful, the vehicle-side system will treat the connection request as a trusted connection request and prepare to establish a secure communication channel. If the verification fails, the vehicle-side system will reject the connection request and may record relevant information for subsequent analysis.
[0078] Generate response information for the trusted connection request and encrypt the response information.
[0079] Optionally, for a connection request that passes verification, the vehicle-side system generates a response message, which may include the identity confirmation, current status, or other necessary data of the vehicle-side system. To protect data security, the response message will be encrypted before being sent, usually using the SSL / TLS protocol or other strong encryption algorithms.
[0080] Send the encrypted response information to the cloud server.
[0081] Optionally, the encrypted response information is sent back to the cloud server through a secure communication channel, ensuring the confidentiality and integrity of the data during transmission. The above method steps build a secure and reliable communication link, laying a solid foundation for subsequent data exchange and remote control.
[0082] Reference Figure 3 , shows a flowchart of the steps of an automated vehicle testing method provided in an embodiment of the present invention, which is applied to a cloud server. The specific method may include the following steps:
[0083] Step 301 , creating a test case for a vehicle, where the test case is used to indicate the test conditions and test tasks when the vehicle is subjected to automated testing.
[0084] Optionally, the test tasks in the embodiment of the present invention may include functional testing, performance testing and safety testing for Ethernet. The functional testing of Ethernet in the vehicle is a comprehensive evaluation process, which aims to verify whether the various functions of the Ethernet communication system inside the vehicle meet the design requirements. The test content includes network connection testing, which is used to verify the physical integrity of the Ethernet connection, including checking the correctness and reliability of cables, connectors and ports, and testing the connectivity of network devices to ensure that all nodes can communicate with each other. Functional testing also includes communication protocol testing, which is used to confirm whether the communication protocols (such as TCP / IP, UDP, SOME / IP, etc.) supported by the vehicle Ethernet system are correctly implemented, and to test each layer of the protocol stack, including the data link layer, network layer, transport layer and application layer. Functional testing also includes data transmission testing, which is used to evaluate the rate and delay of data transmission to ensure that the requirements of the vehicle system are met, and to test the stability of data transmission under different load conditions, including high traffic and congestion. The present invention does not limit the specific content of the functional test. Performance testing can refer to testing the performance of the system under high load conditions, including the ability to handle a large number of concurrent connections and data streams, and evaluating the stability and response time of the system under extreme conditions. Security testing can refer to checking the security of Ethernet communications, including encryption, authentication and access control, or testing measures to prevent unauthorized access and data leakage.
[0085] The present invention may also include Ethernet fault recovery and fault tolerance testing, which may specifically include checking the security of Ethernet communications, including encryption, authentication and access control, and testing measures to prevent unauthorized access and data leakage.
[0086] Optionally, you also need to pre-set the test conditions and test steps required for this test when creating a test case. Test conditions refer to the data or operations provided to the vehicle-side system when executing the test. They are the initial conditions that trigger the response of the vehicle-side system. Test conditions can include user-entered data, system configuration, environmental settings, etc. Test steps are sequences of instructions that describe in detail how to execute a test case. They guide the target test unit to operate in a specific order to achieve the purpose of verifying the vehicle function. Test steps usually include starting the system, inputting data, performing operations, and checking results.
[0087] In an optional embodiment of the present invention, before step 301, the method includes:
[0088] Get the vehicle frame number, which is used to identify the unique corresponding vehicle. Query the vehicle corresponding to the frame number and the address of the network controller corresponding to the vehicle in the preset database.
[0089] Optionally, before the cloud server establishes a connection with the vehicle-side system, it is necessary to obtain the vehicle identification number (VIN) of the vehicle to be tested. The vehicle identification number (VIN) is a unique identification code of the vehicle, which is used to identify each specific vehicle. The user enters the VIN into the cloud server through a secure user interface or API interface. Once the cloud server receives the VIN, it will query it in a preset database. This database may contain detailed information about the vehicle, including the model, production date, configuration options, and the address of the network controller associated with the vehicle. The network controller address is the network identifier of a specific device or node used for communication in the vehicle's internal network, which allows the cloud server to interact directly with the vehicle's network controller. By querying the VIN, the cloud server can obtain the correct network controller address and use this address to establish a secure communication connection with the vehicle-side system. This process ensures that the cloud server can accurately locate the target vehicle and conduct effective data exchange and remote control operations with it. The entire process is carried out under strict security protocols to protect the privacy and security of vehicle data and communications.
[0090] Generates a connection request to a networked controller and encrypts the connection request.
[0091] Optionally, after the cloud server establishes a communication connection with the networked controller of the vehicle-side system, the server generates a connection request for the controller. The connection request contains the operation that the server wishes to perform or the information to be obtained, such as requesting vehicle status data, sending software updates, or performing diagnostic tests. In an embodiment of the present invention, the connection request is used to establish a communication connection between the cloud server and the vehicle-side system. In order to ensure the security of communication, the cloud server will encrypt the connection request. Encryption usually uses a public key infrastructure or a symmetric key encryption algorithm, such as the Advanced Encryption Standard (AES), to protect the request content from being intercepted or tampered with by unauthorized third parties.
[0092] The encrypted connection request is then sent to the address of the networked controller, which was obtained by the vehicle chassis number query in the previous step, ensuring that the request can be delivered to the target device accurately.
[0093] Send an encrypted connection request to the address of the networked controller and receive the response information fed back by the networked controller.
[0094] Optionally, after receiving the encrypted connection request, the network controller will decrypt it using the corresponding decryption key and perform corresponding operations according to the request content. After the execution is completed, the network controller will generate a response message, which also needs to be encrypted to protect the security of the data in the process of returning to the cloud server.
[0095] After receiving the encrypted response information, the cloud server will use the decryption key to decrypt it and perform further processing or analysis based on the response content. This process ensures that the communication between the cloud server and the vehicle-side system is secure, reliable and private, providing a solid foundation for remote vehicle management and services.
[0096] Perform security verification on the response information and generate verification results for the networked controller.
[0097] Optionally, after the cloud server receives the response information fed back by the vehicle-side system, in order to ensure the integrity of the information and the reliability of the source, the cloud server will perform security verification. The security algorithm used for the security verification of the present invention may include mechanisms such as message authentication code (MAC), digital signature or hash function, which are used to verify the integrity of the data and confirm that the data does come from a legal and correct networked controller. The cloud server will check the security identifier in the response information, such as verifying whether the digital signature carried by the response information matches the pre-stored public key, or recalculating the hash value of the response information and comparing it with the hash value carried in the response information itself. If the verification is successful, it means that the response information has not been tampered with and is indeed from the specified networked controller. The server will generate a verification result to confirm the validity of the response.
[0098] This verification result is then used in subsequent data processing or decision-making processes. For example, if the verification result indicates that the response information is valid, the cloud server may continue to perform predetermined operations, such as instructing the vehicle to perform automated testing, updating vehicle software, analyzing vehicle data, or providing remote support. If the verification fails, the server may interrupt the operation and log error information for further investigation and processing. Through this security algorithm verification, the cloud server can ensure that the communication with the vehicle-side system is secure and trustworthy, thereby protecting the integrity of vehicle data and operations and preventing potential security threats.
[0099] Create test cases corresponding to vehicles with passed verification results.
[0100] After establishing a secure communication connection with the vehicle, the cloud server creates the test cases required for this test for the vehicle.
[0101] Step 302, sending the test case to the vehicle-side system so that the test task is allocated to the target test unit of the vehicle-side system.
[0102] Optionally, the present invention assigns a unique case number to each test case for tracking and managing the test case throughout the test life cycle. This number is usually systematic and may include information such as project identification, module code, test type and serial number to ensure that each test case has a unique identification. At the same time, each test case has its corresponding case description, which is used to briefly describe the purpose and background of the test case, which helps testers quickly understand the focus and context of the test. The case description usually includes the function being tested, the expected goals of the test, related business scenarios, and any specific preconditions or dependencies. These two processes together ensure the clarity and traceability of the test case, laying the foundation for effective test execution and result analysis.
[0103] The cloud server formats the test cases into specific data packets, usually in JSON or XML format, to facilitate data parsing and transmission. These data packets contain the specific test tasks, test instructions, and test parameters for this test.
[0104] Optionally, to ensure data security, test cases are encrypted before transmission, usually using SSL / TLS protocol, and the cloud server sends the encrypted test cases to the vehicle-side system through a secure communication channel. Test cases are encrypted to protect sensitive information and ensure the security of test data. This process usually involves encoding key data in the test case using an encryption algorithm. First, a strong encryption algorithm, such as the Advanced Encryption Standard, is selected and a secure key is generated. This key is then used to encrypt the sensitive fields in the test case to generate unreadable ciphertext. During test execution, decryption keys are provided through a secure key management system to ensure that only authorized testers or systems can access and use these sensitive data. In addition, an audit log should be generated to monitor and record access and operations to encrypted test cases, thereby enhancing the security of the entire testing process.
[0105] Step 303: receiving test data obtained by performing automated testing on the target test unit.
[0106] Optionally, when the target test unit completes the automated test, the generated test data (such as logs, performance indicators, error messages, etc.) will first be encrypted to protect the sensitive information therein. These encrypted data are then transmitted to the cloud server through a secure communication channel. On the cloud server, there is a specific security module responsible for processing these encrypted data. The security module uses the pre-configured encryption key and decryption algorithm to decrypt the received data. The decryption process is carried out under strict security control to ensure that only authorized systems and personnel can access the decrypted data. After decryption is completed, the data is converted into a readable format and stored in a secure database for further analysis, report generation, and decision support. The entire process ensures the security and integrity of the test data during transmission and storage, while supporting efficient test result analysis and processing.
[0107] Step 304: organize the test data to generate a test result for the vehicle.
[0108] In an optional embodiment of the present invention, step 304 specifically includes:
[0109] The test data is downloaded to the local computer and normalized to obtain preprocessed test data.
[0110] Optionally, a test data set containing sensor data, performance indicators and fault logs is downloaded from a cloud server to a local computer through a secure network connection. This process involves identity authentication and data encryption to ensure the security of the data during transmission. After the download is completed, a special data processing tool or script is used to perform preliminary cleaning of the data, remove irrelevant or damaged records, and check the consistency and integrity of the data. Subsequently, normalization processing is performed, including unified timestamp format, standardized measurement units, filling in missing data parts, and possible data type conversion, such as discretizing continuous variables or encoding categorical data. This process may also involve data normalization to eliminate the impact of different dimensions on the analysis results. Finally, the preprocessed test data set that has been normalized is saved in a structured format, such as a database table, to provide reliable data support for subsequent performance analysis, fault diagnosis and optimization decisions of vehicle Ethernet. The present invention does not specifically limit the normalization process of test data.
[0111] The preprocessed test data is parsed to obtain a first service identifier carried in the preprocessed test data, where the first service identifier is used to determine whether the test case is successfully executed.
[0112] Optionally, the compressed data downloaded locally is parsed to extract a Scalable service-oriented MiddlewarE / IP (SOME / IP) data stream based on Ethernet. In the SOME / IP data, each message contains a unique first service identifier (Service ID), which is used to identify a specific service or function.
[0113] The test case is parsed to obtain a second service identifier corresponding to the test case.
[0114] Since each test case is associated with a specific Service ID, the cloud server usually automatically performs search and filtering operations by writing scripts or using specialized data processing tools to parse the data packets of the test case and extract the second service identifier corresponding to the test case.
[0115] The first service identifier is compared with the second service identifier, a test case having the same first service identifier as the second service identifier is determined to be a target test case that is successfully executed, and a test result for the target test case is generated.
[0116] The cloud server will compare the first service identifier of the test data with the second service identifier of the test case. If the two are consistent, the corresponding test case is judged to be executed successfully; if the two are inconsistent, it may indicate that there is an error in the test process or the system function does not work as expected. In this way, the cloud server can automatically evaluate the results of the test case, provide immediate feedback, and support subsequent troubleshooting and system optimization.
[0117] Analyze the test results and generate a test report for the vehicle.
[0118] The analysis of the test results may specifically include the following methods:
[0119] The test results are compared with the preset expected results to determine that the vehicle whose test results are inconsistent with the expected results is a faulty vehicle with a safety risk. The expected results are used to represent the Ethernet expected test value of the vehicle.
[0120] Optionally, the present invention presets an expected result for each test, and the expected result is an expected test value to help testers determine whether the vehicle's Ethernet works as expected. For example, in a specific Ethernet environment, the expected result specifies how the vehicle should respond under these conditions.
[0121] Analyze the pre-processed test data corresponding to the faulty vehicle to generate a test report for the faulty vehicle.
[0122] Optionally, in-depth analysis of the pre-processed test data can be performed to focus on data points related to the failure, such as abnormal sensor readings, performance degradation indicators, or error logs. With this data, testers can identify failure modes, locate the root cause of the problem, and assess the impact of the failure on vehicle performance.
[0123] The analysis results are organized into a structured report format, including fault description, impact scope, possible cause analysis, and recommended repair measures. The report will also include charts and visualization tools to intuitively display data trends and fault characteristics, helping technicians and decision makers to quickly understand the problem. The above process ensures that the problem of the faulty vehicle is effectively diagnosed and solved, while improving the reliability and safety of the entire vehicle system.
[0124] In an optional embodiment of the present invention, after step 304, the method further includes:
[0125] The cloud server disconnects the communication connection with the vehicle-side system.
[0126] Optionally, after completing the automated testing of the vehicle, the cloud server sends a command to the vehicle-side system, instructing it to close or disconnect the communication connection with the cloud. This process usually involves operations such as terminating the data transmission session, closing the network socket, or disconnecting the virtual private network (VPN) connection. The disconnection process needs to ensure that all ongoing data exchanges have been completed and any sensitive information has been securely stored in the cloud or vehicle-side system. After disconnection, the cloud server will perform a final system check, including confirming that all test data has been correctly received and stored, and performing any necessary logging and audit trails. In addition, the server may update its status, mark the test task as completed, and release related resources to prepare for the next test task or service request. In this way, the cloud server not only ensures the integrity and security of the test data, but also maintains the stable operation of the vehicle-side system, ensuring the efficiency and reliability of the entire testing process.
[0127] In another feasible embodiment of the present invention, a high-precision vehicle Ethernet simulator can also be preset. The vehicle Ethernet simulator can accurately simulate Ethernet communications in a real vehicle environment, including various network topologies, communication protocols and data traffic. At the same time, the vehicle Ethernet simulator can also support the generation of complex network conditions and error conditions, such as delays, packet loss, network congestion, protocol anomalies, etc.
[0128] The vehicle Ethernet simulator establishes a connection with the cloud server and continuously adjusts the simulated Ethernet communication environment according to the test requirements by presetting various configurable parameters, thereby effectively testing the performance and reliability of the Ethernet system in the vehicle and ensuring that the Ethernet communication link can reliably support the data exchange requirements of the vehicle system.
[0129] Reference Figure 4 , shows a structural block diagram of a vehicle automatic test device provided in an embodiment of the present invention, which is applied to a vehicle-side system. The vehicle-side system includes several test units, which may specifically include the following modules:
[0130] The test case receiving module 401 is used to receive the test cases for the vehicle sent by the cloud server.
[0131] The test case parsing module 402 is used to parse the test case to obtain a parsing result, and determine a target test unit for the test case and a test instruction for the target test unit according to the parsing result.
[0132] The vehicle automated testing module 403 is used to control the target testing unit to execute the testing instructions to perform automated testing on the vehicle and obtain test data corresponding to the automated testing.
[0133] The test data sending module 404 is used to send the test data to the cloud server.
[0134] Optionally, the vehicle-side system further includes a network controller, and before the test case receiving module 401, the device further includes:
[0135] The connection request receiving module is used to receive a connection request sent by a cloud server, where the connection request includes the identity information of the cloud server.
[0136] The connection request verification module is used to verify the identity information according to a preset security algorithm and determine that the connection request that passes the verification is a credible connection request.
[0137] The response information encryption module is used to generate response information for the trusted connection request and encrypt the response information.
[0138] The response information sending module is used to send the encrypted response information to the cloud server.
[0139] Reference Figure 5 , shows a structural block diagram of a vehicle automated testing device provided in an embodiment of the present invention, which is applied to a cloud server and may specifically include the following modules:
[0140] The test case creation module 501 is used to create a test case for a vehicle. The test case is used to indicate the test conditions and test tasks when the vehicle is subjected to an automated test.
[0141] The test case sending module 502 is used to send the test case to the vehicle-side system so that the test task is allocated to the target test unit of the vehicle-side system.
[0142] The test data receiving module 503 is used to receive the test data obtained by the target test unit through automated testing.
[0143] The test data sorting module 504 is used to sort the test data to generate a test result for the vehicle.
[0144] Optionally, before the test case creation module 501, the device further includes:
[0145] The vehicle frame number input module is used to obtain the vehicle frame number, which is used to identify the unique corresponding vehicle;
[0146] The vehicle frame number query module is used to query the vehicle corresponding to the vehicle frame number and the address of the network controller corresponding to the vehicle in a preset database.
[0147] The connection request generation module is used to generate a connection request for the networked controller and encrypt the connection request.
[0148] The response information receiving module is used to send an encrypted connection request to the address of the network controller and receive the response information fed back by the network controller.
[0149] The response information verification module is used to perform security verification on the response information and generate a verification result for the networked controller.
[0150] The test case creation submodule is used to create test cases corresponding to vehicles with passed verification results.
[0151] Optionally, the test data collating module 504 further includes:
[0152] The preprocessing unit is used to download the test data to the local computer and perform normalization processing on the test data to obtain preprocessed test data.
[0153] The first parsing unit is used to parse the preprocessed test data to obtain a first service identifier carried in the preprocessed test data, where the first service identifier is used to determine whether the test case is executed successfully.
[0154] The second parsing unit is used to parse the test case to obtain a second service identifier corresponding to the test case.
[0155] The test result generating unit is used to compare the first service identifier with the second service identifier, determine that the test case with the same first service identifier as the second service identifier is a target test case that is successfully executed, and generate a test result for the target test case.
[0156] The test report generation unit is used to analyze the test results and generate a test report for the vehicle.
[0157] Optionally, the test report generating unit specifically includes:
[0158] A comparison subunit, used to compare the test result with a preset expected result, and determine that the vehicle whose test result is inconsistent with the expected result is a faulty vehicle with a safety risk, and the expected result is used to represent the expected test value of the vehicle;
[0159] The analysis subunit is used to analyze the pre-processed test data corresponding to the faulty vehicle to generate a test report for the faulty vehicle.
[0160] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0161] In addition, an embodiment of the present invention further provides an electronic device, such as Figure 6 As shown, it includes a processor 601, a device interface 602, a memory 603 and a bus 604;
[0162] Memory 603, used for storing computer programs;
[0163] The processor 601 is used to execute the program stored in the memory 603 to implement the following steps in the vehicle-side system:
[0164] Receive vehicle-specific test cases sent by the cloud server;
[0165] Parsing the test case to obtain a parsing result, and determining a target test unit for the test case and a test instruction for the target test unit according to the parsing result;
[0166] Controlling the target test unit to execute the test instructions to perform automated testing on the vehicle, and obtaining test data corresponding to the automated testing;
[0167] Send test data to the cloud server.
[0168] In another embodiment of the present invention, the processor 601 is further configured to implement the following steps on the cloud server:
[0169] Create test cases for vehicles. Test cases are used to indicate the test conditions and test tasks for vehicles during automated testing.
[0170] Send the test case to the vehicle-side system so that the test task is assigned to the target test unit of the vehicle-side system;
[0171] Receive test data obtained by automated testing of the target test unit;
[0172] Collate test data to generate vehicle-specific test results.
[0173] The bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0174] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0175] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0176] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned vehicle automated testing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0177] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0178] The algorithm and display provided herein are not inherently related to any particular computer, virtual device or other equipment. According to the above description, it is obvious that the structure required for constructing this type of device is. In addition, the present invention is not directed to any specific programming language. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description of the above specific language is to disclose the best mode of the present invention.
[0179] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0180] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than those expressly recited in each claim. Rather, as reflected in the claims below, inventive aspects lie in less than all of the features of the individual embodiments disclosed above. Therefore, the claims that follow the detailed description are hereby expressly incorporated into the detailed description, with each claim itself serving as a separate embodiment of the present invention.
[0181] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0182] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the sorting device according to the present invention. The present invention may also be implemented as a device or apparatus program for executing part or all of the methods described herein. Such a program for implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0183] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.
[0184] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, apparatuses and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0185] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
[0186] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0187] It should be noted that the various data-related processes in the embodiments of the present invention are all carried out in compliance with the corresponding data protection laws and policies of the country where the device is located and with the authorization given by the corresponding device owner.
Claims
1. A vehicle automated testing method, It is characterized in that Applied to a vehicle-side system, the vehicle-side system includes a plurality of test units, and the method includes: Receiving a test case for the vehicle sent by a cloud server; Parsing the test case to obtain a parsing result, and determining a target test unit for the test case and a test instruction for the target test unit according to the parsing result; Controlling the target test unit to execute the test instruction to perform an automated test on the vehicle, and obtaining test data corresponding to the automated test; The test data is sent to the cloud server.
2. The method according to claim 1, It is characterized in that The vehicle-side system further includes a network controller. Before receiving the test case for the vehicle sent by the cloud server, the method includes: receiving a connection request sent by the cloud server, wherein the connection request includes identity information of the cloud server; Verifying the identity information according to a preset security algorithm, and determining that the connection request that passes the verification is a trusted connection request; Generate response information for the trusted connection request, and encrypt the response information; The encrypted response information is sent to the cloud server.
3. A vehicle automated testing method, It is characterized in that Applied to a cloud server, the method includes: Creating a test case for a vehicle, wherein the test case is used to indicate test conditions and test tasks when the vehicle is subjected to an automated test; Sending the test case to the vehicle-side system so that the test task is allocated to the target test unit of the vehicle-side system; Receiving test data obtained by the target test unit through the automated test; The test data is collated to generate a test result for the vehicle.
4. The method according to claim 3, It is characterized in that Before creating a test case for a vehicle, the method includes: Obtaining a vehicle frame number, where the vehicle frame number is used to identify a unique corresponding vehicle; Querying a preset database for the vehicle corresponding to the vehicle frame number and the address of the network controller corresponding to the vehicle; generating a connection request for the networked controller and encrypting the connection request; Sending the encrypted connection request to the address of the network controller, and receiving response information fed back by the network controller; Performing security verification on the response information and generating a verification result for the networked controller; Create a test case corresponding to the vehicle with a passed verification result.
5. The method according to claim 3, It is characterized in that The arranging of the test data comprises: Downloading the test data to a local computer and performing normalization processing on the test data to obtain preprocessed test data; Parsing the preprocessed test data to obtain a first service identifier carried in the preprocessed test data, wherein the first service identifier is used to determine whether the test case is executed successfully; Parsing the test case to obtain a second service identifier corresponding to the test case; Compare the first service identifier with the second service identifier, determine that a test case having the same first service identifier as the second service identifier is a target test case that is successfully executed, and generate a test result for the target test case; The test results are analyzed to generate a test report for the vehicle.
6. The method according to claim 5, It is characterized in that The analyzing the test results comprises: Comparing the test result with a preset expected result, determining that a vehicle whose test result is inconsistent with the expected result is a faulty vehicle with a safety risk, wherein the expected result is used to represent an expected test value of the vehicle; The pre-processed test data corresponding to the faulty vehicle is analyzed to generate a test report for the faulty vehicle.
7. An automatic testing device for a vehicle, It is characterized in that Applied to a vehicle-side system, the vehicle-side system includes several test units, and the device includes: A test case receiving module, used for receiving a test case for the vehicle sent by a cloud server; A test case parsing module, used to parse the test case to obtain a parsing result, and determine a target test unit for the test case and a test instruction for the target test unit according to the parsing result; A vehicle automated testing module, used to control the target testing unit to execute the test instruction to perform automated testing on the vehicle, and obtain test data corresponding to the automated testing; The test data sending module is used to send the test data to the cloud server.
8. An automatic testing device for a vehicle, It is characterized in that Applied to a cloud server, the device comprises: A test case creation module, used to create a test case for a vehicle, wherein the test case is used to indicate the test conditions and test tasks when the vehicle is subjected to an automated test; A test case sending module, used for sending the test case to the vehicle-side system, so that the test task is allocated to the target test unit of the vehicle-side system; A test data receiving module, used for receiving the test data obtained by the target test unit through the automated test; The test data collating module is used to collate the test data to generate a test result for the vehicle.
9. An electronic device, It is characterized in that It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the automatic vehicle testing method described in any one of claims 1-2 or 3-6 when executing the program stored in the memory.
10. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, causes the processors to execute the automated vehicle testing method according to any one of claims 1-2 or 3-6.
