Automatic testing method and device, equipment, storage medium and program product

Through the automated testing method, CAN communication equipment is used to simulate the communication between the on-board electronic control unit and the on-board communication terminal, and test packets are generated and sent, solving the problems of low testing efficiency and human errors of the on-board communication terminal, and achieving efficient automated testing.

CN120455310APending Publication Date: 2025-08-08JIANGXI JIANGLING GRP NEW ENERGY AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510481479.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-17
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

In the prior art, the testing methods of in-vehicle communication terminals are inefficient and are prone to introduce human errors, making it difficult to meet actual testing needs.

Method used

An automated testing method is provided, by receiving test instructions from the client, using CAN communication equipment to simulate the communication between the on-board electronic control unit and the on-board communication terminal, generate test results, and send test messages to the TSP service platform to realize automated testing.

Benefits of technology

Automatic testing of on-board communication terminals can be completed without manual testing, shortening testing time, reducing labor costs, improving testing efficiency, and avoiding human errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120455310A_ABST
    Figure CN120455310A_ABST
Patent Text Reader

Abstract

The invention provides an automatic test method, device and equipment, a storage medium and a program product, and relates to the technical field of automobile equipment testing.The method comprises the steps that a test instruction sent by a client side is received; based on the test instruction, communicating with the CAN communication equipment, and receiving a test result returned by the CAN communication equipment; and generating a test message based on the test result, and sending the test message to the TSP service platform, so that the TSP service platform sends the test result to the client based on the test message. By means of the mode, manual testing is not needed, the vehicle-mounted communication terminal can complete automatic testing and generate the testing result according to the testing instruction, the testing time can be effectively shortened, the labor cost in the testing process is reduced, the testing efficiency is improved, human errors are prevented from being introduced, and the actual testing requirement can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobile equipment testing, and in particular to an automated testing method, device, equipment, storage medium and program product. Background Art

[0002] An in-vehicle communication terminal, or Telematics-Box (T-Box for short), is an in-vehicle electronic product. Due to its unique usage scenarios and user groups, its quality requirements are generally high. For example, when a user sends a control command through a terminal app, the TSP (Telematics Service Provider) platform (i.e., the automotive remote service platform) receives the control command from the terminal app and sends it to the in-vehicle communication terminal. Upon receiving the control command, the in-vehicle communication terminal sends a control message to the vehicle's electronic control unit (ECU) via the CAN bus to control the vehicle. Finally, the operation results are fed back to the user's terminal app, completing the user's remote control of the vehicle.

[0003] During the development of in-vehicle communication terminals, full-function testing is required at each key node to ensure their quality. However, currently, testing of in-vehicle communication terminals can only be done using traditional manual testing methods, without a supporting intelligent testing device. In real-world scenarios, in-vehicle communication terminals need to interact with the vehicle's onboard electronic control unit and TSP service platform, and many peripheral devices during the development process are implemented through simulation (such as the vehicle's CAN control signals). Therefore, most testing can only be completed through manual interaction with the in-vehicle communication terminal, and the test results must be confirmed by manually observing the serial port output information of the in-vehicle communication terminal. This is especially necessary when the in-vehicle communication terminal undergoes functional changes, requiring a large amount of manual testing operations.

[0004] Therefore, existing manual testing methods are inefficient, prone to human errors, and difficult to meet actual testing needs. Summary of the Invention

[0005] The present invention provides an automated testing method, apparatus, equipment, storage medium and program product to address the defects of the existing manual testing methods, which are low in efficiency, prone to human errors and difficult to meet actual testing needs.

[0006] The present invention provides an automated testing method, which is applied to a vehicle-mounted communication terminal, comprising: receiving a test instruction sent by a client; communicating with a CAN communication device based on the test instruction, and receiving a test result returned by the CAN communication device; generating a test message based on the test result, and sending the test message to a TSP service platform, so that the TSP service platform sends the test result to the client based on the test message.

[0007] According to an automated testing method provided by the present invention, based on test instructions, communicating with a CAN communication device and receiving test results returned by the CAN communication device, the method includes: based on the test instructions, communicating with the CAN communication device to simulate the communication between the vehicle-mounted electronic control unit and the vehicle-mounted communication terminal to generate test results; receiving the test results returned by the CAN communication device.

[0008] The present invention also provides an automated testing method, which is applied to a script executor of a client, and includes: generating a test instruction in response to a user instruction; sending the test instruction to a vehicle-mounted communication terminal so that the vehicle-mounted communication terminal communicates with a CAN communication device based on the test instruction, receives a test result returned by the CAN communication device, generates a test message based on the test result, and sends the test message to a TSP service platform; after the TSP service platform receives the test message, receives the test result sent by the TSP service platform.

[0009] According to an automated testing method provided by the present invention, a test instruction is generated in response to a user instruction, including: in response to the user instruction, based on the user instruction, executing an automated testing program and generating a test instruction; wherein the test instruction is used to control the vehicle-mounted communication terminal to perform an automated testing operation.

[0010] The present invention also provides an automated testing method, which is applied to a TSP service platform, including: receiving a test instruction sent by a client at a vehicle-mounted communication terminal, communicating with a CAN communication device based on the test instruction, receiving a test result returned by the CAN communication device, generating a test message based on the test result, and then receiving a test message sent by the vehicle-mounted communication terminal; and sending the test result to the client based on the test message.

[0011] According to an automated testing method provided by the present invention, a test result is sent to a client based on a test message, comprising: parsing the test message to obtain the test result; and sending the test result to the client.

[0012] The present invention also provides an automated testing device, comprising: an on-board communication terminal, a client and a TSP service platform, wherein the client is installed with a script executor; the client is used to generate test instructions in response to user instructions, and send the test instructions to the on-board communication terminal; the on-board communication terminal is used to receive the test instructions sent by the client, communicate with the CAN communication device based on the test instructions, receive the test results returned by the CAN communication device, generate a test message based on the test results, and send the test message to the TSP service platform; the TSP service platform is used to receive the test message sent by the on-board communication terminal, and send the test results to the client based on the test message.

[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned automated testing methods when executing the computer program.

[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which implements any of the above-mentioned automated testing methods when executed by a processor.

[0015] The present invention also provides a computer program product, comprising a computer program, which implements any of the above-mentioned automated testing methods when executed by a processor.

[0016] The automated testing method, apparatus, device, storage medium, and program product provided by the present invention enable, upon receiving a test instruction from a client, an on-board communication terminal to communicate with a CAN communication device based on the test instruction, receive the test results returned by the CAN communication device, generate a test message based on the test results, and send the test message to a TSP service platform, which then sends the test results to the client based on the test message. This approach eliminates the need for manual testing, allowing the on-board communication terminal to complete automated testing and generate test results based on the test instruction. This effectively shortens testing time, reduces the labor cost of the testing process, improves testing efficiency, avoids the introduction of human error, and can meet actual testing needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0018] Figure 1 This is one of the flow charts of the automated testing method provided by the present invention.

[0019] Figure 2 This is the second flow chart of the automated testing method provided by the present invention.

[0020] Figure 3 This is the third flow chart of the automated testing method provided by the present invention.

[0021] Figure 4 It is a structural schematic diagram of the automatic testing device provided by the present invention.

[0022] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0023] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0024] It should be noted that all actions of acquiring signals, information or data in the present invention are performed in compliance with the corresponding local data protection laws and policies and with authorization from the corresponding device owner.

[0025] The following combination Figures 1 to 5 The present invention describes the automated testing method, apparatus, device, storage medium, and program product provided by the present invention.

[0026] See also Figure 1 and Figure 4 , Figure 1 This is one of the flow charts of the automated testing method provided by the present invention. Figure 4 This is a schematic diagram of the structure of the automated testing device provided by the present invention. Figure 1 As shown, in this embodiment, the automated testing method is applied to the vehicle-mounted communication terminal of the automated testing device. The automated testing method includes steps S110 to S130, each of which is specifically as follows: S110: Receive a test instruction sent by the client.

[0027] like Figure 4 As shown, the automated testing device of the present invention includes a vehicle-mounted communication terminal, a client and a TSP service platform, and the client is installed with a script executor (ie, an automated testing script executor).

[0028] Specifically, users can write automated test programs on the client to replace manual testing: when the user needs to test the on-board communication terminal, the user can trigger the generation of user instructions through hardware devices such as the mouse or keyboard, and the user instructions are used to control the execution of the written automated test program; the script executor installed on the client responds to the user instructions, uses the automated test framework to execute the pre-written automated test program, generates test instructions, and sends the test instructions to the on-board communication terminal.

[0029] The test instructions are used to control the vehicle-mounted communication terminal to perform automated test operations.

[0030] Preferably, if Figure 4 As shown, the automated testing framework is Robot Framework.

[0031] Robot Framework is a functional automation testing framework written in Python. It has good scalability, supports keyword-driven testing, can test multiple types of clients or interfaces at the same time, and can perform distributed test execution. It is mainly used for acceptance testing with many rounds and acceptance test-driven development (ATDD).

[0032] Furthermore, the vehicle-mounted communication terminal may receive a test instruction sent by the client.

[0033] S120: Communicate with the CAN communication device based on the test instruction, and receive the test result returned by the CAN communication device.

[0034] Specifically, if Figure 4 As shown, after the vehicle communication terminal receives the test command sent by the client, it can communicate with the CAN communication device ( Figure 4 The device communicates with the USB CAN in the CAN communication and receives the test results returned by the CAN communication device.

[0035] S130: Generate a test message based on the test result, and send the test message to the TSP service platform, so that the TSP service platform sends the test result to the client based on the test message.

[0036] Specifically, if Figure 4 As shown, after the on-board communication terminal receives the test results returned by the CAN communication device, it can generate a test message based on the test results. The test message can carry the test results and report the generated test message to the TSP service platform in real time, so that the TSP service platform can parse the test results based on the test message. The TSP service platform interacts with the script executor of the client and returns the test results to the client to complete the automated testing of the on-board communication terminal.

[0037] The automated testing method provided in this embodiment allows the vehicle-mounted communication terminal to complete automated testing and generate test results based on the test instructions and test commands, after receiving a test command from a client. The terminal then communicates with the CAN communication device based on the test command, receives the test results returned by the CAN communication device, generates a test message based on the test results, and sends the test message to the TSP service platform, which then sends the test results to the client based on the test message. This approach eliminates the need for manual testing, allowing the vehicle-mounted communication terminal to complete automated testing and generate test results based on the test instructions. This effectively shortens testing time, reduces labor costs during the testing process, improves test efficiency, avoids human error, and meets actual testing needs.

[0038] In some embodiments, based on the test instructions, communication is performed with the CAN communication device, and the test results returned by the CAN communication device are received, including: based on the test instructions, communicating with the CAN communication device to simulate the communication between the vehicle-mounted electronic control unit and the vehicle-mounted communication terminal to generate test results; receiving the test results returned by the CAN communication device.

[0039] Specifically, if Figure 4 As shown, after the vehicle-mounted communication terminal receives the test instruction sent by the client, it can drive the CAN communication device to interact with it according to the test instruction, thereby simulating the CAN communication process between the vehicle-mounted electronic control unit (ECU) and the vehicle-mounted communication terminal and generating test results.

[0040] Furthermore, the vehicle-mounted communication terminal may receive the test results returned by the CAN communication device, and generate a test message based on the test results, and the test message may carry the test results.

[0041] Furthermore, the on-vehicle communication terminal can report the generated test message to the TSP service platform in real time, so that the TSP service platform can parse the test results based on the test message, and the TSP service platform interacts with the client's script executor to return the test results to the client, completing the automated testing of the on-vehicle communication terminal.

[0042] The present invention also provides an automated testing method. Figure 2 and Figure 4 , Figure 2 This is the second flow chart of the automated testing method provided by the present invention. Figure 2 As shown, in this embodiment, the automated testing method is applied to the script executor of the client of the automated testing device. The automated testing method includes steps S210 to S230, and each step is specifically as follows: S210: Generate a test instruction in response to a user instruction.

[0043] like Figure 4As shown, the automated testing device of the present invention includes a vehicle-mounted communication terminal, a client and a TSP service platform, and the client is installed with a script executor (ie, an automated testing script executor).

[0044] Specifically, users can write automated test programs on the client to replace manual testing: when the user needs to test the on-board communication terminal, the user can trigger the generation of user instructions through hardware devices such as the mouse or keyboard, and the user instructions are used to control the execution of the written automated test program; the script executor installed on the client responds to the user instructions, uses the automated test framework to execute the pre-written automated test program, generates test instructions, and sends the test instructions to the on-board communication terminal.

[0045] The test instructions are used to control the vehicle-mounted communication terminal to perform automated test operations.

[0046] Preferably, if Figure 4 As shown, the automated testing framework is Robot Framework.

[0047] Robot Framework is a functional automation testing framework written in Python. It has good scalability, supports keyword-driven testing, can test multiple types of clients or interfaces at the same time, and can perform distributed test execution. It is mainly used for acceptance testing with many rounds and acceptance test-driven development (ATDD).

[0048] In this embodiment, the automated testing framework implements automated testing of the operation of the in-vehicle communication terminal by executing the automated testing program, and can automatically record the test results and generate corresponding test reports.

[0049] S220: Send a test instruction to the vehicle communication terminal so that the vehicle communication terminal communicates with the CAN communication device based on the test instruction, receives the test result returned by the CAN communication device, generates a test message based on the test result, and sends the test message to the TSP service platform.

[0050] Specifically, after generating the test instruction, the client may send the test instruction to the in-vehicle communication terminal.

[0051] The vehicle-mounted communication terminal can receive the test instructions sent by the client, and drive the CAN communication device to interact with it according to the test instructions, thereby simulating the CAN communication process between the vehicle-mounted electronic control unit (ECU) and the vehicle-mounted communication terminal, generating test results, and receiving the test results returned by the CAN communication device.

[0052] Furthermore, the vehicle-mounted communication terminal may generate a test message based on the test result, the test message may carry the test result, and report the generated test message to the TSP service platform in real time.

[0053] S230: After the TSP service platform receives the test message, the test result sent by the TSP service platform is received.

[0054] After receiving the test message reported in real time by the vehicle communication terminal, the TSP service platform can parse the test message, parse the test result from the test message, interact with the client's script executor, and return the test result to the client.

[0055] The client can receive the test results sent by the TSP service platform, automatically record the test results, generate corresponding test reports, and complete the automated testing of the vehicle communication terminal.

[0056] The automated testing method provided in this embodiment pre-writes a general automated testing program on the client. When the user needs to test the vehicle-mounted communication terminal, the pre-written automated testing program is executed using the automated testing framework to generate test instructions. The test instructions are then sent to the vehicle-mounted communication terminal so that the vehicle-mounted communication terminal can complete the automated test according to the test instructions and return the test results through the TSP service platform. Without manual testing, the vehicle-mounted communication terminal can complete the automated test according to the test instructions and generate test results. This can effectively shorten the test time, reduce the labor cost of the test process, improve the test efficiency, avoid the introduction of human errors, and meet actual testing needs.

[0057] In some embodiments, generating a test instruction in response to a user instruction includes: executing an automated test program in response to the user instruction and generating a test instruction based on the user instruction; wherein the test instruction is used to control the vehicle-mounted communication terminal to perform an automated test operation.

[0058] Specifically, users can write automated test programs on the client to replace manual testing: when the user needs to test the on-board communication terminal, the user can trigger the generation of user instructions through hardware devices such as the mouse or keyboard, and the user instructions are used to control the execution of the written automated test program; the script executor installed on the client responds to the user instructions, uses the automated test framework to execute the pre-written automated test program, generates test instructions, and sends the test instructions to the on-board communication terminal.

[0059] The test instructions are used to control the vehicle-mounted communication terminal to perform automated test operations.

[0060] Preferably, the automated testing framework is Robot Framework.

[0061] Robot Framework is a functional automation testing framework written in Python. It has good scalability, supports keyword-driven testing, can test multiple types of clients or interfaces at the same time, and can perform distributed test execution. It is mainly used for acceptance testing with many rounds and acceptance test-driven development (ATDD).

[0062] In this embodiment, the automated testing framework implements automated testing of the operation of the in-vehicle communication terminal by executing the automated testing program, and can automatically record the test results and generate corresponding test reports.

[0063] The present invention also provides an automated testing method. Figure 3 and Figure 4 , Figure 3 This is the third flow chart of the automated testing method provided by the present invention. Figure 3 As shown, in this embodiment, the automated testing method is applied to the TSP service platform of the automated testing device. The automated testing method includes steps S310 to S330, and each step is specifically as follows: S310: The vehicle-mounted communication terminal receives a test instruction sent by the client, communicates with the CAN communication device based on the test instruction, receives a test result returned by the CAN communication device, generates a test message based on the test result, and then receives a test message sent by the vehicle-mounted communication terminal.

[0064] like Figure 4 As shown, the automated testing device of the present invention includes a vehicle-mounted communication terminal, a client and a TSP service platform, and the client is installed with a script executor (ie, an automated testing script executor).

[0065] Specifically, users can write automated test programs on the client to replace manual testing: when the user needs to test the on-board communication terminal, the user can trigger the generation of user instructions through hardware devices such as the mouse or keyboard, and the user instructions are used to control the execution of the written automated test program; the script executor installed on the client responds to the user instructions, uses the automated test framework to execute the pre-written automated test program, generates test instructions, and sends the test instructions to the on-board communication terminal.

[0066] The test instructions are used to control the vehicle-mounted communication terminal to perform automated test operations.

[0067] Furthermore, the vehicle communication terminal can receive the test instructions sent by the client, and communicate with the CAN communication device ( Figure 4 The device communicates with the USB CAN in the CAN communication and receives the test results returned by the CAN communication device.

[0068] After receiving the test results returned by the CAN communication device, the on-board communication terminal can generate a test message based on the test results. The test message can carry the test results and report the generated test message to the TSP service platform in real time.

[0069] Furthermore, the TSP service platform can receive test messages sent by the vehicle-mounted communication terminal.

[0070] S320: Send the test result to the client based on the test message.

[0071] Specifically, after receiving the test message reported in real time by the vehicle communication terminal, the TSP service platform can parse the test message, parse the test result from the test message, interact with the script executor of the client, and return the test result to the client.

[0072] Furthermore, the client can receive the test results sent by the TSP service platform, automatically record the test results, generate corresponding test reports, and complete the automated testing of the vehicle communication terminal.

[0073] The automated testing method provided in this embodiment pre-writes a general automated testing program on the client. When the user needs to test the vehicle-mounted communication terminal, the pre-written automated testing program is executed using the automated testing framework to generate test instructions. The test instructions are then sent to the vehicle-mounted communication terminal so that the vehicle-mounted communication terminal can complete the automated test according to the test instructions and return the test results through the TSP service platform. Without manual testing, the vehicle-mounted communication terminal can complete the automated test according to the test instructions and generate test results. This can effectively shorten the test time, reduce the labor cost of the test process, improve the test efficiency, avoid the introduction of human errors, and meet actual testing needs.

[0074] In some embodiments, sending a test result to a client based on a test message includes: parsing the test message to obtain a test result; and sending the test result to the client.

[0075] The present invention also provides an automated testing device. Figure 4 ,like Figure 4As shown, in this embodiment, the automated testing device includes: an on-board communication terminal, a client and a TSP service platform, and the client is installed with a script executor; the client is used to generate test instructions in response to user instructions, and send the test instructions to the on-board communication terminal; the on-board communication terminal is used to receive the test instructions sent by the client, communicate with the CAN communication device based on the test instructions, receive the test results returned by the CAN communication device, generate a test message based on the test results, and send the test message to the TSP service platform; the TSP service platform is used to receive the test message sent by the on-board communication terminal, and send the test result to the client based on the test message.

[0076] Specifically, users can write automated test programs on the client to replace manual testing: when the user needs to test the on-board communication terminal, the user can trigger the generation of user instructions through hardware devices such as the mouse or keyboard, and the user instructions are used to control the execution of the written automated test program; the script executor installed on the client responds to the user instructions, uses the automated test framework to execute the pre-written automated test program, generates test instructions, and sends the test instructions to the on-board communication terminal.

[0077] The test instructions are used to control the vehicle-mounted communication terminal to perform automated test operations.

[0078] Furthermore, the vehicle communication terminal can receive the test instructions sent by the client, and communicate with the CAN communication device ( Figure 4 The device communicates with the USB CAN in the CAN communication and receives the test results returned by the CAN communication device.

[0079] After receiving the test results returned by the CAN communication device, the on-board communication terminal can generate a test message based on the test results. The test message can carry the test results and report the generated test message to the TSP service platform in real time.

[0080] Furthermore, after receiving the test message reported in real time by the vehicle communication terminal, the TSP service platform can parse the test message, parse the test result from the test message, interact with the script executor of the client, and return the test result to the client.

[0081] Furthermore, the client can receive the test results sent by the TSP service platform, automatically record the test results, generate corresponding test reports, and complete the automated testing of the vehicle communication terminal.

[0082] The automated testing device provided in this embodiment consists of an on-vehicle communication terminal, a client, and a TSP service platform. The client is installed with a script executor, and a general automated testing program is pre-written on the client. When a user needs to test the on-vehicle communication terminal, the script executor on the client uses the automated testing framework to execute the pre-written automated testing program, generate test instructions, and send the test instructions to the on-vehicle communication terminal, so that the on-vehicle communication terminal can complete the automated test according to the test instructions and return the test results through the TSP service platform. Without manual testing, the on-vehicle communication terminal can complete the automated test according to the test instructions and generate test results. This can effectively shorten the test time, reduce the labor cost of the test process, improve the test efficiency, avoid the introduction of human errors, and meet actual testing needs.

[0083] The present invention also provides an electronic device. Figure 5 Schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 5 As shown, the electronic device may include: a processor 510, a communications interface 520, a memory 530, and a communication bus 540, wherein the processor 510, the communications interface 520, and the memory 530 communicate with each other via the communication bus 540. The processor 510 may call logic instructions in the memory 530 to execute the automated testing method.

[0084] Furthermore, the logic instructions in the aforementioned memory 530 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0085] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is used to execute the automated testing methods provided by the above methods when the computer program is executed by a processor.

[0086] The present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the automated testing methods provided by the above methods.

[0087] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

[0088] Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented using software plus a necessary general-purpose hardware platform, or of course, hardware. Based on this understanding, the essence of the above technical solution, or the portion that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, or an optical disk, and includes a number of instructions for causing a computer device (such as a personal computer, server, or network device) to execute the methods described in each embodiment or certain portions of the embodiments.

[0089] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. An automated testing method, characterized in that: Applied to vehicle communication terminals, including: Receive test instructions sent by the client; Communicate with the CAN communication device based on the test instruction, and receive the test result returned by the CAN communication device; Based on the test result, a test message is generated, and the test message is sent to the TSP service platform, so that the TSP service platform sends the test result to the client based on the test message.

2. The automated testing method according to claim 1, wherein: The communicating with the CAN communication device based on the test instruction and receiving the test result returned by the CAN communication device includes: Based on the test instruction, communicate with the CAN communication device to simulate the communication between the vehicle electronic control unit and the vehicle communication terminal to generate the test result; Receive the test result returned by the CAN communication device.

3. An automated testing method, characterized in that: Script executors for client-side scripts include: generating a test instruction in response to a user instruction; Sending the test instruction to the vehicle-mounted communication terminal, so that the vehicle-mounted communication terminal communicates with the CAN communication device based on the test instruction, receives the test result returned by the CAN communication device, generates a test message based on the test result, and sends the test message to the TSP service platform; After the TSP service platform receives the test message, the test result sent by the TSP service platform is received.

4. The automated testing method according to claim 3, wherein: The step of generating a test instruction in response to a user instruction includes: In response to a user instruction, executing an automated test program based on the user instruction and generating the test instruction; The test instruction is used to control the vehicle-mounted communication terminal to perform an automated test operation.

5. An automated testing method, characterized in that: Applied to TSP service platform, including: The in-vehicle communication terminal receives a test instruction sent by a client, communicates with a CAN communication device based on the test instruction, receives a test result returned by the CAN communication device, generates a test message based on the test result, and then receives the test message sent by the in-vehicle communication terminal; Based on the test message, the test result is sent to the client.

6. The automated testing method according to claim 5, wherein: The sending the test result to the client based on the test message includes: Parsing the test message to obtain the test result; Send the test result to the client.

7. An automated testing device, characterized in that: include: A vehicle-mounted communication terminal, a client and a TSP service platform, wherein the client is installed with a script executor; The client is configured to generate a test instruction in response to a user instruction and send the test instruction to the vehicle-mounted communication terminal; The vehicle-mounted communication terminal is configured to receive the test instruction sent by the client, communicate with the CAN communication device based on the test instruction, receive the test result returned by the CAN communication device, generate a test message based on the test result, and send the test message to the TSP service platform; The TSP service platform is configured to receive the test message sent by the vehicle-mounted communication terminal, and send the test result to the client based on the test message.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the automated testing method according to any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the automated testing method according to any one of claims 1 to 6 is implemented.

10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the automated testing method according to any one of claims 1 to 6 is implemented.