Automatic test platform and method adaptive to multi-protocol vehicle-mounted information interconnection terminal

By designing an automated test platform that adapts to multiple protocols, we solve the problem that in-vehicle information interconnection terminal equipment needs to be tested separately for different car company protocols, achieve rapid integration of business function testing and multi-protocol support, and improve testing efficiency and software delivery quality. .

CN118659995APending Publication Date: 2024-09-17CHIPSET SECURITY WE THINGS (SHANGHAI)MICROELECTRONICS TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410821227.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In the existing technology, the vehicle-mounted information interconnection terminal (TBOX) equipment needs to be independently developed and tested for verification according to the communication protocols of different car companies, resulting in testers needing to frequently rebuild the test platform and unable to get started quickly, and each time they connect with a new car company, they need to build A new testing platform is time-consuming and labor-intensive.

Method used

Design an automated test platform adapted to multi-protocol vehicle information interconnection terminals, including a test management module, a protocol adaptation management module and a protocol parser. It supports multiple communication protocols (such as MQTT, TCP, UDP) and creates test function items through a visual interface. , use cases and plans, the automated testing platform can quickly integrate business functions and output test reports.

Benefits of technology

It realizes rapid integrated business function testing of multi-protocol in-vehicle information interconnection terminals, supports multiple data message protocol structure conversions, completes flexible and efficient test scenario use case output, saves testing costs and time, and improves the quality of software delivery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118659995A
    Figure CN118659995A
Patent Text Reader

Abstract

The invention relates to the field, in particular to an automatic test platform and method adaptive to a multi-protocol vehicle-mounted information interconnection terminal, and the platform comprises a test management module which is used for issuing a test instruction and receiving an instruction execution result; the test management module comprises a test function management unit and a test process management unit; the protocol adaptation management module is used for establishing test connection between the automatic test platform and the vehicle-mounted information interconnection terminal according to the matched communication protocol; and the protocol analyzer is connected with the protocol adaptation management module and is used for packaging the test instruction according to the protocol structure of the matched communication protocol, receiving an instruction execution result reported by the vehicle-mounted information interconnection terminal and analyzing the instruction execution result according to the communication protocol. According to the invention, various communication protocols can be supported, rapid integrated service function testing of the multi-protocol vehicle-mounted information interconnection terminal is realized, various data message protocol structure conversion is supported, and flexible and efficient test scene case output is completed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle networking, and in particular to an automated testing platform and method for adapting a multi-protocol vehicle information interconnection terminal. Background Art

[0002] With the rapid development of the new energy vehicle market, the vehicle-mounted information interconnection terminal (TBOX) equipment provides essential functions for vehicle connection, such as network, vehicle remote control, and vehicle condition data reporting. It also supports national standard landmark data monitoring, BCALL road rescue, and ECALL emergency rescue. TBOX equipment software is frequently updated and iterated. In order to better verify the functions related to TBOX equipment, a corresponding test platform needs to be provided to meet the needs of rapid iteration and verification.

[0003] The communication protocols between TBOX equipment and the cloud mainly include network communication protocols such as Message Queuing Telemetry Transport Protocol (MQTT), Transmission Control Protocol (TCP), and User Datagram Protocol (UDP). Each car company will formulate communication protocols that suit its own business needs. The data packet protocol can choose JSON, ProtoBuf, and hexadecimal byte messages for data transmission, thereby realizing the business functions of vehicle network end-cloud interaction, making the vehicle more intelligent.

[0004] Each car company currently develops a communication protocol that suits its business needs. For TBOX equipment suppliers, they need to connect to the business needs of multiple car companies with different communication protocols. In the verification phase, they need to develop test cases for each car company's business function. Testers need to rebuild the test scenario for different communication protocols each time. Testers also need to learn the communication protocol and cannot get started quickly. Every time they connect with a new car company, they need to rebuild a new test platform, which is very time-consuming and labor-intensive. Summary of the invention

[0005] The purpose of the present invention is to provide an automated testing platform adapted to a multi-protocol vehicle information interconnection terminal to solve the above technical problems;

[0006] The present invention also aims to provide an automated testing method for a multi-protocol vehicle information interconnection terminal to solve the above technical problems.

[0007] The technical problem solved by the present invention can be achieved by adopting the following technical solutions:

[0008] An automated test platform for multi-protocol in-vehicle information interconnection terminals, including:

[0009] A test management module is used to send test instructions to the vehicle information interconnection terminal and receive the instruction execution results generated by the vehicle information interconnection terminal executing the test instructions; the test management module includes:

[0010] A test function management unit is used to create test function items;

[0011] A test process management unit, connected to the test function management unit, for creating test cases, test scenarios and test plans;

[0012] A protocol adaptation management module, used to match the communication protocol adapted to the device software version of the in-vehicle information interconnection terminal under test, and establish a test connection between the automated test platform and the in-vehicle information interconnection terminal;

[0013] A protocol parser is connected to the protocol adaptation management module, and is used to encapsulate the test instruction according to the protocol structure of the matched communication protocol, and is used to receive the instruction execution result reported by the vehicle-mounted information interconnection terminal and parse it according to the communication protocol.

[0014] Preferably, the test function management unit is provided with a test function library for maintaining and managing the test function items, and the test function items are stored in the test function library in the form of the smallest atomic unit.

[0015] Preferably, the test management module has a visual interface for creating the test function items, the test cases, the test scenarios and the test plan; the test cases are created based on the test function library and configured with a variety of information, the test scenarios have multiple test cases, and the test plan executes the test scenarios according to the set time; the test management module also generates a test report based on the instruction execution results.

[0016] Preferably, the communication protocols supported by the protocol adaptation management module include at least the message queue telemetry transmission protocol, the user datagram protocol and the transmission control protocol, and the message conversion formats supported by the protocol parser include at least the JSON format, the ProtoBuf format and the hexadecimal message format.

[0017] Preferably, it also includes,

[0018] A device connection management module is used to establish a connection between the automated test platform and the in-vehicle information interconnection terminal. The device connection management module can controllably enable the agent or server of the matched communication protocol and monitor the connection status between the automated test platform and the in-vehicle information interconnection terminal; the server of the user datagram protocol or the transmission control protocol adopts the Netty framework, and the agent of the message queue telemetry transmission protocol adopts the Moquette framework;

[0019] The basic information management module is used to maintain and manage basic information, which at least includes basic vehicle information, vehicle model information, device software version, and protocol information.

[0020] The automated testing method for adapting a multi-protocol vehicle information interconnection terminal is applied to the automated testing platform, including:

[0021] Step S1, creating the test function item, the test case, the test scenario and the test plan in the test management module;

[0022] Step S2, the protocol adaptation management module matches the communication protocol adapted to the device software version of the in-vehicle information interconnection terminal under test, and the protocol parser encapsulates the test instruction according to the protocol structure of the matched communication protocol and is ready to be issued;

[0023] Step S3, after the vehicle information interconnection terminal is powered on, a test connection is established with the automated test platform, and the test instruction is issued using the test connection channel between the vehicle information interconnection terminal and the automated test platform;

[0024] Step S4, the vehicle-mounted information interconnection terminal receives and executes the test instruction, and reports the instruction execution result;

[0025] Step S5, after receiving the instruction execution result, the protocol parser parses it according to the version and type of the communication protocol, and adapts the protocol according to the business type of the test instruction. The parsed instruction execution result is stored in the test management module, and a corresponding test report is generated.

[0026] Preferably, step S1 comprises:

[0027] Step S11, maintaining the parameter field definition, parameter enumeration value definition and parameter range value definition of each test function item through the visual interface of the test management module to form a test function library;

[0028] Step S12, entering the test case management interface through the visual interface, creating the test case or selecting the test function item to form the test case, and arranging the input parameters, output parameters, assertions and expected results of the test case;

[0029] Step S13, entering the test scenario management interface through the visual interface, and completing the links involved in the business scenario through configuration;

[0030] Step S14, enter the test plan management interface through the visual interface, formulate the test plan according to the instruction document of the automated testing platform, select the corresponding test scenario or the test case to arrange the test plan, and set the execution time of the test plan.

[0031] Preferably, in step S3, after the in-vehicle information interconnection terminal is powered on, it requests the automated test platform to obtain the server connection information of the matched communication protocol in a secure manner through the hypertext transfer protocol according to the vehicle manufacturer, vehicle model, device unique identification code and protocol version.

[0032] Preferably, in step S3, the matched communication protocol is a message queue telemetry transmission protocol, and the test instruction is issued after identifying the corresponding downlink topic; or, the matched communication protocol is a user datagram protocol or a transmission control protocol, and the test instruction is issued directly through the test connection channel.

[0033] Preferably, in step S4, the matched communication protocol is a message queue telemetry transmission protocol, and the instruction execution result is received after identifying the corresponding downlink topic; or, the matched communication protocol is a user datagram protocol or a transmission control protocol, and the instruction execution result is received directly through a test connection channel.

[0034] The beneficial effects of the present invention are as follows: Due to the adoption of the above technical scheme, the present invention can support multiple communication protocols, realize rapid integration of business function testing of multi-protocol vehicle-mounted information interconnection terminals, support multiple data message protocol structure conversions, and complete flexible and efficient test scenario use case output. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 This is an architecture diagram of an automated testing platform in an embodiment of the present invention;

[0036] Figure 2 A schematic diagram of the steps of the automated testing method in an embodiment of the present invention;

[0037] Figure 3 A flowchart of an automated testing method in an embodiment of the present invention;

[0038] Figure 4 This is a schematic diagram of step S1 in an embodiment of the present invention;

[0039] In the attached figure: 1. Automated testing platform; 2. Test management module; 21. Test function management unit; 22. Test process management unit; 3. Protocol adaptation management module; 4. Protocol parser; 5. Equipment connection management module; 6. Basic information management module; 7. Vehicle information interconnection terminal. DETAILED DESCRIPTION

[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.

[0042] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but they are not intended to limit the present invention.

[0043] An automated test platform for multi-protocol in-vehicle information interconnection terminals, such as Figure 1 As shown, including

[0044] The test management module 2 is used to send test instructions to the vehicle information interconnection terminal 7 and receive the instruction execution results generated by the vehicle information interconnection terminal 7 executing the test instructions; the test management module 2 includes:

[0045] A test function management unit 21, used to create a test function item;

[0046] The test process management unit 22 is connected to the test function management unit 21 and is used to create test cases, test scenarios and test plans;

[0047] The protocol adaptation management module 3 is used to match the communication protocol adapted to the device software version of the in-vehicle information interconnection terminal 7 under test, and establish a test connection between the automated test platform 1 and the in-vehicle information interconnection terminal 7;

[0048] The protocol analyzer 4 is connected to the protocol adaptation management module 3 and is used to encapsulate the test instructions according to the protocol structure of the matched communication protocol, and to receive the instruction execution results reported by the vehicle information interconnection terminal 7 and analyze them according to the communication protocol.

[0049] Specifically, the purpose of the present invention is to design an automated testing platform 1 that is adaptable to multiple protocols, so that the entire testing platform is more universal. Testers only need to focus on test cases and test scenarios, formulate test plans, and leave all of them to the test platform to automatically complete and output execution test reports. At the same time, some common test business scenarios can also be designed to save testing costs and complete software testing and verification work more efficiently. At the same time, a comprehensive analysis of the test report can be performed, and multi-dimensional analysis can be performed, such as car companies, models, functions, test cases, and test scenarios, which can more efficiently ensure the quality of software delivery.

[0050] Specifically, the communication between the vehicle-mounted information interconnection terminal 7 and the cloud can support multiple communication protocols such as MQTT, UDP, TCP, etc., and can be dynamically customized and integrated through the interface to achieve rapid integration of business function testing of different vehicle-mounted information interconnection terminals 7.

[0051] The automated testing platform 1 implemented by the present invention can support multiple data message protocol structure conversions, can customize the data message structure according to business function testing requirements, and complete flexible and efficient test scenario use case output.

[0052] In a preferred embodiment, the test function management unit 21 is provided with a test function library for maintaining and managing test function items, and the test function items are stored in the test function library in the form of the smallest atomic unit.

[0053] Specifically, the test function management unit 21 is used to manage test function items, mainly for each car company to propose vehicle information interconnection terminal 7 (TBOX) related business demand function items, unified maintenance management, maintenance with the smallest atomic unit, and finally form a test function library. For example: remote control commands include doors, windows, air conditioning, charging, etc., it is necessary to maintain the parameters issued by each remote control command, establish the basic ability to issue remote control commands, and dynamically expand new demand functions through the visual interface, so as to continuously enrich the test function library capabilities in the future.

[0054] In a preferred embodiment, the test management module 2 has a visual interface for creating test function items, test cases, test scenarios and test plans; the test cases are created based on the test function library and configured with various information, the test scenarios have multiple test cases, and the test plans execute the test scenarios according to the set time; the test management module 2 also generates a test report based on the instruction execution results.

[0055] Specifically, testers can maintain test cases through the visual interface of the automated testing platform 1. Test cases are created based on the test function library. Test cases need to configure the vehicle model, protocol, message type, expected value, and test assertion configuration corresponding to the function library. The test scenario needs to be completed in combination with multiple test cases to achieve a closed loop of the business scenario. The test plan can automatically execute the test scenario at the specified time, and can maintain the test plan according to the software version release cycle to quickly verify the software function and provide efficient and reliable protection. Finally, the entire test execution will generate a corresponding test report. The test report can be used to analyze the software quality report in multiple dimensions, and can also provide developers with a basis for optimizing the software version to improve the overall software delivery quality.

[0056] Specifically, the present invention can quickly convert the required functions proposed by various automobile companies into a test function library, which is convenient for unified collaboration among demand, R&D and testing, and efficiently realizes the closed loop of business functions and completes the verification and launch of software functions.

[0057] All test cases and test scenarios are completed through a visual interface, which is easy to operate and saves learning costs. At the same time, the final test report is generated online, which can quickly support multi-dimensional test result query and statistical analysis.

[0058] In a preferred embodiment, the communication protocols supported by the protocol adaptation management module 3 include at least the message queue telemetry transmission protocol, the user datagram protocol and the transmission control protocol, and the message conversion formats supported by the protocol parser 4 include at least the JSON format, the ProtoBuf format and the hexadecimal message format.

[0059] Specifically, since the communication protocols of the software versions of various automobile companies are different, the automated testing platform 1 of the present invention centrally manages the communication protocols of all automobile companies, maintains the protocol versions corresponding to each software version, and intelligently selects the appropriate protocol according to the software version for adaptation and analysis during the testing process to complete the functions of downlink and uplink instructions.

[0060] The automated testing platform 1 of the present invention simultaneously supports three common communication protocols: Message Queue Telemetry Transport Protocol (MQTT), User Datagram Protocol (UDP) and Transmission Control Protocol (TCP), which can provide testers with flexible and free switching options, while also supporting protocol scalability. For the message data format of cloud-terminal communication, JSON, ProtoBuf, and hexadecimal messages are also provided. A visual interface is used to allow testers to perform simple configuration, and finally the message structure is converted into the corresponding format according to different software versions to achieve complete business function testing.

[0061] Preferably, the cloud communication between the TBOX terminal of the present invention and the automated testing platform 1 can support multiple communication protocols such as MQTT, UDP, TCP, etc., and can be dynamically customized and integrated through the interface to achieve fast integrated business function testing of different TBOX terminals.

[0062] The automated testing platform 1 implemented by the present invention can support multiple data message protocol structure conversions, can customize the data message structure according to business function testing requirements, and complete flexible and efficient test scenario use case output.

[0063] In a preferred embodiment, it also includes:

[0064] The device connection management module 5 is used to establish a connection between the automated test platform 1 and the vehicle information interconnection terminal 7. The device connection management module 5 can controllably enable the agent or server of the matched communication protocol and monitor the connection status between the automated test platform 1 and the vehicle information interconnection terminal 7; the server of the user datagram protocol or the transmission control protocol adopts the Netty framework, and the agent of the message queue telemetry transmission protocol adopts the Moquette framework;

[0065] The basic information management module 6 is used to maintain and manage basic information, which at least includes basic vehicle information, vehicle model information, device software version, and protocol information.

[0066] Specifically, the basic information management module is used for vehicle information interconnection terminal 7 (TBOX) information management and connection information management, TBOX information management such as basic vehicle information, vehicle model information, device software version; connection information management such as protocol information.

[0067] The Netty framework is a high-performance, asynchronous event-driven network application framework that is mainly used to quickly develop maintainable, high-performance and high-reliability network servers and client programs. Moquette is an open source MQTT (Message Queuing Telemetry Transport) proxy server that is written in Java and uses Netty as the underlying network communication framework to implement MQTT protocol encoding and decoding.

[0068] Specifically, the basic information management module 6 maintains and manages basic information such as vehicle basic information, vehicle model information, device software version, protocol information, etc., and provides a basis for device connection and protocol adaptation.

[0069] Through the device connection management module 5, the entire automated test platform 1 will dynamically start the message queue telemetry transport protocol agent (MQTT Broker), the user datagram protocol server (UDP Server) and the transmission control protocol server (TCP Server), so that the TBOX device can establish a good connection. The automated test platform 1 will monitor the overall connection status. UDP / TCP uses the Netty framework to implement the abnormal, non-blocking I / O model. The MQTT Broker uses the Moquette framework to implement the production / subscription interaction mode. It is necessary to manage the subscribed topics, formulate the upstream topic and downstream topic rules for each car model, and then bridge the data to Kafka to provide the flow of subsequent business services. At the same time, it guarantees high concurrency and high availability of services, and supports the connection test of TBOX device terminals of different car companies and models.

[0070] The automated testing method adapted to the multi-protocol vehicle information interconnection terminal 7 is applied to the automated testing platform 1, such as Figure 2 , Figure 3 As shown, including

[0071] Step S1, creating test function items, test cases, test scenarios and test plans in the test management module 2;

[0072] Step S2, the protocol adaptation management module 3 matches the communication protocol adapted to the device software version of the in-vehicle information interconnection terminal 7 to be tested, and the protocol parser 4 encapsulates the test instruction according to the protocol structure of the matched communication protocol and is ready to be issued;

[0073] Step S3, after the vehicle information interconnection terminal 7 is powered on, a test connection is established with the automated test platform 1, and a test instruction is issued using the test connection channel between the vehicle information interconnection terminal 7 and the automated test platform 1;

[0074] Step S4, the vehicle information interconnection terminal 7 receives and executes the test command, and reports the command execution result;

[0075] Step S5, after receiving the instruction execution result, the protocol parser 4 parses it according to the version and type of the communication protocol, and adapts the protocol according to the business type of the test instruction. The parsed instruction execution result is stored in the test management module 2, and a corresponding test report is generated.

[0076] In a preferred embodiment, Figure 4 As shown, step S1 includes,

[0077] Step S11, maintaining the parameter field definition, parameter enumeration value definition and parameter range value definition of each test function item through the visual interface of the test management module 2 to form a test function library;

[0078] Step S12, enter the test case management interface through the visual interface, create a test case or select a test function item to form a test case, and arrange the input parameters, output parameters, assertions and expected results of the test case;

[0079] Step S13, entering the test scenario management interface through the visual interface, and completing the links involved in the business scenario through configuration;

[0080] Step S14, enter the test plan management interface through the visual interface, formulate a test plan according to the instruction document of the automated test platform 1, select the corresponding test scenario or test case to arrange the test plan, and set the execution time of the test plan.

[0081] Specifically, the present invention maintains test function items (function items with the latest granularity) through the platform visualization interface, and needs to maintain the parameter field definition of each function item, such as remote control of window opening, and needs to maintain the parameters of window opening and closing, the percentage of window opening, such as half-open, fully open, one-key ventilation, as well as the definition of parameter enumeration values ​​and the definition of parameter range values, and finally forms the entire test function atomic library. The functional reusability related to the remote control of current car companies is relatively high, and the versatility of subsequent test function atomic libraries can be achieved.

[0082] Specifically, by entering the test case management interface through the platform visual interface, you can create test cases according to your needs, and you can select the test function atomic library to form test cases, arrange the test case input parameters, output parameters, assertions, and expected results, and quickly complete the writing of test cases. Functional unit test verification can be achieved.

[0083] Specifically, through the platform visual interface, the test scenario management interface is entered. The scenario test needs to be completed by combining multiple test cases to realize the closed loop of the business scenario. For example, the vehicle remote control business requires multiple test cases such as TBOX terminal equipment to establish connection, user APP login, command encapsulation, command issuance, SMS wake-up, receiving command results, storing command status, returning command status, disconnection, etc. to complete the business scenario integration test. The business scenario involves many links, all of which are completed through configuration, which makes it convenient for testers to quickly and automatically complete the test of the entire business scenario and efficiently output the corresponding test report.

[0084] To be more specific, by entering the test plan management interface through the platform's visual interface, testers can formulate test plans based on the platform software version description document (Release Note), select corresponding test scenarios or test cases to complete the arrangement of the test plan, and set the execution time. At the specified time, the test platform will automatically execute all test plans and complete the output of test results, so as to quickly complete the verification of the software version.

[0085] Preferably, the present invention can quickly convert the required functions proposed by various automobile companies into a test function atomic library, which is convenient for unified collaboration among demand, R&D and testing, and efficiently realizes the closed loop of business functions and completes the verification and launch of software functions.

[0086] All test cases and scenarios are completed through a visual interface, which is easy to operate and saves learning costs. At the same time, the final test report is generated online, which can quickly support multi-dimensional test result query and statistical analysis.

[0087] In a preferred embodiment, in step S3, after the vehicle information interconnection terminal 7 is powered on, it requests the automated test platform 1 to obtain the server connection information of the matched communication protocol in a secure manner through the hypertext transfer protocol according to the vehicle manufacturer, vehicle model, device unique identification code and protocol version.

[0088] Specifically, the communication protocols supported by the protocol adaptation management module 3 of the present invention include at least the message queue telemetry transmission protocol, the user datagram protocol and the transmission control protocol, and the message conversion formats supported by the protocol parser 4 include at least the JSON format, the ProtoBuf format and the hexadecimal message format.

[0089] Specifically, since the communication protocols of the software versions of various automobile companies are different, the automated testing platform 1 of the present invention centrally manages the communication protocols of all automobile companies, maintains the protocol versions corresponding to each software version, and intelligently selects the appropriate protocol according to the software version for adaptation and analysis during the testing process to complete the functions of downlink and uplink instructions.

[0090] The protocol parser 4 is mainly divided into two parts. One part is for command downlink. It needs to dynamically match the appropriate protocol according to the car manufacturer, model, and device terminal software protocol version, and then encapsulate it according to the specified protocol rules. The instructions configured in the visual interface are stored in the JSON protocol, so it is necessary to parse JSON. If the ProtoBuf protocol used by the terminal is recognized, it is encapsulated according to the protocol structure of ProtoBuf. If it is a hexadecimal message, it needs to be processed according to the bytecode and bit operation function to complete the protocol encapsulation, so that the protocol analysis is ready for issuance.

[0091] The automated test platform 1 is connected to the vehicle information interconnection terminal 7. After the TBOX terminal device is powered on, it will request the test platform to obtain the specified communication protocol mode server address, port and other connection information through the hypertext transfer protocol (https) security method according to the vehicle manufacturer, model, device unique identification code, and protocol version. In this way, the terminal matches the appropriate communication protocol to establish a connection with the test platform, maintains the heartbeat to complete the maintenance of the communication connection, so as to meet the cross-terminal business function test.

[0092] In a preferred embodiment, in step S3, the matched communication protocol is a message queue telemetry transmission protocol, and the test instruction is issued after identifying the corresponding downlink topic; or, the matched communication protocol is a user datagram protocol or a transmission control protocol, and the test instruction is issued directly through the test connection channel.

[0093] Specifically, the present invention utilizes the connection channel between the TBOX terminal and the automated test platform 1 to complete the corresponding instruction issuance. The MQTT protocol needs to identify the corresponding downstream Topic and issue the message. UDP / TCP belongs to the network transmission protocol and can directly send the message through the corresponding channel.

[0094] In a preferred embodiment, in step S4, the matched communication protocol is the message queue telemetry transmission protocol, and the instruction execution result is received after identifying the corresponding downlink topic; or, the matched communication protocol is the user datagram protocol or the transmission control protocol, and the instruction execution result is received directly through the test connection channel.

[0095] Specifically, when the terminal TBOX receives a message, the MQTT protocol needs to subscribe to the corresponding Topic to realize the reception of asynchronous messages. UDP / TCP can directly receive messages through the long connection channel. After receiving the message, the terminal will perform internal logical processing and then use the downlink instruction link to report the instruction execution result.

[0096] More specifically, the test platform will receive the instruction execution result message, parse it according to the protocol version and protocol type, and adapt the protocol according to the instruction business type to complete the update and storage of the instruction result status.

[0097] In the first specific embodiment, an application scenario is given as an example.

[0098] The vehicle remote control business test scenario is described in detail for the implementation scenario case of the present invention. The vehicle remote control business scenario mainly remotely controls vehicle ECU control units such as doors, windows, and air conditioners through communication interaction between the cloud and the vehicle (TBOX). Currently, vehicle communications are mainly integrated in the TBOX terminal. The cloud and terminal are linked using a VPN dedicated line network to provide communication security.

[0099] First, the tester can use the test platform to assemble the door control instruction set and configure it according to the definition specifications of the vehicle control instructions of different car companies. It can issue multiple instruction combinations or a simple single instruction. The test platform completes the encapsulation of instruction parameters and protocols, and then implements the test plan according to the test requirements of the tester. In addition, the test platform will automatically adapt to the communication protocols used by different car companies to complete the link connection between the test platform and the TBOX terminal equipment, thereby realizing a complete business test process for vehicle remote control instructions.

[0100] Currently, all major automobile companies already have their own TSP Internet of Vehicles platforms. In order to ensure TBOX delivery without relying on the TSP platforms of various automobile companies, the automated testing platform 1 of the present invention can greatly facilitate TBOX suppliers to complete the testing and verification of Internet of Vehicles services.

[0101] The above description is only a preferred embodiment of the present invention, and does not limit the implementation mode and protection scope of the present invention. For those skilled in the art, it should be aware that all solutions obtained by equivalent substitutions and obvious changes made using the description and illustrations of the present invention should be included in the protection scope of the present invention.

Claims

1. An automated test platform adapted to multi-protocol vehicle information interconnection terminals, characterized in that: include, A test management module (2) is used to send a test instruction to the vehicle information interconnection terminal (7) and receive an instruction execution result generated by the vehicle information interconnection terminal (7) executing the test instruction; the test management module (2) includes: A test function management unit (21), used for creating test function items; A test process management unit (22), connected to the test function management unit (21), for creating test cases, test scenarios and test plans; A protocol adaptation management module (3) is used to match a communication protocol adapted to a device software version of an on-board information interconnection terminal (7) to be tested, and to establish a test connection between the automated test platform (1) and the on-board information interconnection terminal (7); A protocol parser (4) is connected to the protocol adaptation management module (3) and is used to encapsulate the test instruction according to the protocol structure of the matched communication protocol, and is used to receive the instruction execution result reported by the vehicle-mounted information interconnection terminal (7) and parse it according to the communication protocol.

2. The automated testing platform according to claim 1, characterized in that: The test function management unit (21) is provided with a test function library for maintaining and managing the test function items, and the test function items are stored in the test function library in the form of the smallest atomic unit.

3. The automated testing platform according to claim 2, characterized in that: The test management module (2) has a visual interface for creating the test function items, the test cases, the test scenarios and the test plan; the test cases are created based on the test function library and configured with a variety of information, the test scenarios have a plurality of the test cases, and the test plan executes the test scenarios according to a set time; the test management module (2) also generates a test report according to the execution result of the instructions.

4. The automated testing platform according to claim 1, characterized in that: The communication protocols supported by the protocol adaptation management module (3) include at least a message queue telemetry transmission protocol, a user datagram protocol and a transmission control protocol, and the message conversion formats supported by the protocol parser (4) include at least a JSON format, a ProtoBuf format and a hexadecimal message format.

5. The automated testing platform according to claim 4, characterized in that: Also includes, A device connection management module (5) is used to establish a connection between the automated test platform (1) and the in-vehicle information interconnection terminal (7); the device connection management module (5) can controllably enable the agent or server of the matched communication protocol and monitor the connection status of the automated test platform (1) and the in-vehicle information interconnection terminal (7); the server of the user datagram protocol or the transmission control protocol adopts the Netty framework, and the agent of the message queue telemetry transmission protocol adopts the Moquette framework; The basic information management module (6) is used to maintain and manage basic information, wherein the basic information at least includes basic vehicle information, vehicle model information, device software version, and protocol information.

6. An automated testing method for adapting a multi-protocol vehicle information interconnection terminal, characterized in that: An automated testing platform as claimed in any one of claims 1 to 5, comprising: Step S1, creating the test function item, the test case, the test scenario and the test plan in the test management module (2); Step S2, the protocol adaptation management module (3) matches the communication protocol adapted to the device software version of the vehicle-mounted information interconnection terminal (7) to be tested, and the protocol parser (4) encapsulates the test instruction according to the protocol structure of the matched communication protocol and is ready to be issued; Step S3, after the vehicle-mounted information interconnection terminal (7) is powered on, a test connection is established with the automated test platform (1), and the test instruction is issued using the test connection channel between the vehicle-mounted information interconnection terminal (7) and the automated test platform (1); Step S4, the vehicle-mounted information interconnection terminal (7) receives and executes the test instruction, and reports the instruction execution result; Step S5, after receiving the instruction execution result, the protocol parser (4) parses it according to the version and type of the communication protocol, and adapts the protocol according to the business type of the test instruction. The parsed instruction execution result is stored in the test management module (2) and a corresponding test report is generated.

7. The automated testing method according to claim 6, characterized in that: Step S1 comprises, Step S11, maintaining the parameter field definition, parameter enumeration value definition and parameter range value definition of each test function item through the visual interface of the test management module (2) to form a test function library; Step S12, entering the test case management interface through the visual interface, creating the test case or selecting the test function item to form the test case, and arranging the input parameters, output parameters, assertions and expected results of the test case; Step S13, entering the test scenario management interface through the visual interface, and completing the links involved in the business scenario through configuration; Step S14, entering the test plan management interface through the visual interface, formulating the test plan according to the instruction document of the automated test platform (1), selecting the corresponding test scenario or the test case to arrange the test plan, and setting the execution time of the test plan.

8. The automated testing method according to claim 6, characterized in that: In step S3, after the vehicle information interconnection terminal (7) is powered on, it requests the automated test platform (1) to obtain the server connection information of the matched communication protocol in a secure manner through the hypertext transfer protocol according to the vehicle manufacturer, vehicle model, device unique identification code and protocol version.

9. The automated testing method according to claim 6, characterized in that: In step S3, the matched communication protocol is the message queue telemetry transmission protocol, and the test instruction is issued after identifying the corresponding downlink topic; or, the matched communication protocol is the user datagram protocol or the transmission control protocol, and the test instruction is issued directly through the test connection channel.

10. The automated testing method according to claim 6, characterized in that: In step S4, the matched communication protocol is the message queue telemetry transmission protocol, and the instruction execution result is received after identifying the corresponding downlink topic; or, the matched communication protocol is the user datagram protocol or the transmission control protocol, and the instruction execution result is received directly through the test connection channel.

Citation Information

Cited By

  • 5G-based vehicle-mounted TBOX protocol test method, equipment and medium

    CN120692205A

  • A 5G-based vehicle TBOX protocol testing method, device and medium

    CN120692205B