Automated testing method, device, server and storage medium for vehicle

By comparing vehicle service information data using automated testing methods, the problems of low efficiency, low accuracy, and long time consumption during manual verification are solved, and efficient and accurate test results are generated.

CN117250940BActive Publication Date: 2026-08-04CHERY AUTOMOBILE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHERY AUTOMOBILE CO LTD
Filing Date
2023-10-17
Publication Date
2026-08-04

AI Technical Summary

Technical Problem

In existing technologies, manually verifying the pushed service information data results in low testing efficiency, low accuracy, and long testing time, leading to high testing costs.

Method used

By employing automated testing methods, test messages are generated and sent to the cloud platform. After obtaining push information, the system compares dialogue configuration information and alarm information to generate test reports, thereby improving testing efficiency and accuracy.

Benefits of technology

By using proactive service automated testing tools to perform one-click testing and generate test results, testing efficiency is improved and test quality is guaranteed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117250940B_ABST
    Figure CN117250940B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of cloud platform testing, in particular to a vehicle automatic testing method and device, a server and a storage medium, which comprises the following steps: generating a test message according to a current testing scene and a current testing parameter, sending the test message to a cloud platform, and obtaining push information generated by the cloud platform based on the test message; obtaining dialogue configuration information corresponding to the current testing scene and alarm information of the cloud platform, comparing the push information and the dialogue configuration information to obtain a first comparison result, comparing the alarm information and the push information to obtain a second comparison result, and then generating a test report of the current testing scene according to the first comparison result and the second comparison result. Therefore, the problems of low testing efficiency and accuracy, long time consumption and the like caused by manually checking the pushed service information data are solved, one-key testing is performed through an active service automatic testing tool, and corresponding test results are generated, so that the testing efficiency is improved and the testing quality is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cloud platform testing technology, and in particular to an automated testing method, apparatus, server and storage medium for vehicles. Background Technology

[0002] With the development of intelligent vehicle technology, proactive services have become the main trend in vehicle after-sales service, catering to user needs. It is particularly important to conduct refined testing of the relevant service information data pushed to users in different scenarios.

[0003] In related technologies, the service information data pushed to users in different scenarios is mostly verified manually.

[0004] However, due to the large number of test scenario samples and the complexity of the tests, manual verification of service information data cannot be used to test correctly in some scenarios. This also increases test time, resulting in high test costs and low test efficiency, which urgently needs to be addressed. Summary of the Invention

[0005] This application provides an automated testing method, apparatus, server, and storage medium for vehicles to solve the problems of low testing efficiency and accuracy, and long testing time caused by manually verifying the pushed service information data.

[0006] The first aspect of this application provides an automated testing method for vehicles, comprising the following steps:

[0007] Get the current test scenario and current test parameters;

[0008] A test message is generated based on the current test scenario and the current test parameters, and the test message is sent to the cloud platform. The push information generated by the cloud platform based on the test message is then obtained.

[0009] Obtain the script configuration information corresponding to the current test scenario and the alarm information from the cloud platform; compare the push information and the script configuration information to obtain a first comparison result; compare the alarm information and the push information to obtain a second comparison result; and

[0010] A test report for the current test scenario is generated based on the first comparison result and the second comparison result.

[0011] According to one embodiment of this application, obtaining the script configuration information corresponding to the current test scenario and comparing the push information and the script configuration information to obtain a first comparison result includes:

[0012] Compare whether the push notification information and the message configuration information are consistent;

[0013] If the push information and the script configuration information match, then first matching information is generated; otherwise, first difference information is generated based on the difference annotation results between the push information and the script configuration information.

[0014] The first comparison result is obtained based on the first comparison consistency information or the first difference information.

[0015] According to one embodiment of this application, obtaining the alarm information from the cloud platform and comparing the alarm information with the push information to obtain a second comparison result includes:

[0016] Compare whether the push notification information and the alarm information are consistent;

[0017] If the push information and the alarm information match, a second matching information is generated; otherwise, a second difference information is generated based on the difference annotation results between the push information and the alarm information.

[0018] The second comparison result is obtained based on the second comparison consistency information or the second difference information.

[0019] According to one embodiment of this application, after generating a test report for the current test scenario based on the first comparison result and the second comparison result, the method further includes:

[0020] Obtain the test time for the current scenario to be tested;

[0021] The test report is written into a preset database based on the current test scenario and test time, and the test report for the current test scenario is displayed on a preset test page.

[0022] According to one embodiment of this application, the above-described automated vehicle testing method further includes:

[0023] Receive user query instructions, wherein the query instructions include test scenario query information and / or test time query information;

[0024] Based on the test scenario query information and / or the test time query information, export the test report corresponding to the query instruction.

[0025] The automated vehicle testing method according to embodiments of this application generates a test message based on the acquired current test scenario and current test parameters, sends the test message to a cloud platform, and obtains push information generated by the cloud platform based on the test message; it also obtains the script configuration information corresponding to the current test scenario and the alarm information from the cloud platform, compares the push information and script configuration information to obtain a first comparison result, compares the alarm information and push information to obtain a second comparison result, and then generates a test report for the current test scenario based on the first and second comparison results. This solves the problems of low testing efficiency and accuracy, and long testing time caused by manually verifying pushed service information data. By using an automated proactive service testing tool for one-click testing, corresponding test results are generated, thereby improving testing efficiency and ensuring test quality.

[0026] A second aspect of this application provides an automated testing apparatus for vehicles, comprising:

[0027] The first acquisition module is used to acquire the current test scenario and the current test parameters;

[0028] The second acquisition module is used to generate a test message based on the current test scenario and the current test parameters, send the test message to the cloud platform, and acquire push information generated by the cloud platform based on the test message;

[0029] The comparison module is used to obtain the script configuration information corresponding to the current test scenario and the alarm information of the cloud platform, compare the push information and the script configuration information to obtain a first comparison result, and compare the alarm information and the push information to obtain a second comparison result; and

[0030] The generation module is used to generate a test report for the current test scenario based on the first comparison result and the second comparison result.

[0031] According to one embodiment of this application, the comparison module is specifically used for:

[0032] Compare whether the push notification information and the message configuration information are consistent;

[0033] If the push information and the script configuration information match, then first matching information is generated; otherwise, first difference information is generated based on the difference annotation results between the push information and the script configuration information.

[0034] The first comparison result is obtained based on the first comparison consistency information or the first difference information.

[0035] According to one embodiment of this application, the comparison module is specifically used for:

[0036] Compare whether the push notification information and the alarm information are consistent;

[0037] If the push information and the alarm information match, a second matching information is generated; otherwise, a second difference information is generated based on the difference annotation results between the push information and the alarm information.

[0038] The second comparison result is obtained based on the second comparison consistency information or the second difference information.

[0039] According to one embodiment of this application, after generating a test report for the current test scenario based on the first comparison result and the second comparison result, the generation module further includes:

[0040] Obtain the test time for the current scenario to be tested;

[0041] The test report is written into a preset database based on the current test scenario and test time, and the test report for the current test scenario is displayed on a preset test page.

[0042] According to one embodiment of this application, the above-mentioned automated testing device for vehicles further includes:

[0043] Receive user query instructions, wherein the query instructions include test scenario query information and / or test time query information;

[0044] Based on the test scenario query information and / or the test time query information, export the test report corresponding to the query instruction.

[0045] The automated vehicle testing device according to an embodiment of this application generates a test message based on the acquired current test scenario and current test parameters, sends the test message to a cloud platform, and obtains push information generated by the cloud platform based on the test message; it also obtains the script configuration information corresponding to the current test scenario and the alarm information from the cloud platform, compares the push information and script configuration information to obtain a first comparison result, compares the alarm information and push information to obtain a second comparison result, and then generates a test report for the current test scenario based on the first and second comparison results. This solves the problems of low testing efficiency and accuracy, and long testing time caused by manually verifying pushed service information data. By using an automated testing tool for proactive services to perform one-click testing, corresponding test results are generated, thereby improving testing efficiency and ensuring test quality.

[0046] A third aspect of this application provides a server, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the automated vehicle testing method as described in the above embodiments.

[0047] A fourth aspect of this application provides a computer-readable storage medium storing computer instructions for causing the computer to perform an automated testing method for a vehicle as described in the above embodiments.

[0048] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0049] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:

[0050] Figure 1 This is a flowchart of an automated vehicle testing method provided according to an embodiment of this application;

[0051] Figure 2 This is a schematic diagram of a system flow according to an embodiment of this application;

[0052] Figure 3 This is an example diagram of an automated testing apparatus for a vehicle according to an embodiment of this application;

[0053] Figure 4 This is a schematic diagram of the server structure according to an embodiment of this application. Detailed Implementation

[0054] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.

[0055] The following describes an automated vehicle testing method, apparatus, server, and storage medium according to embodiments of this application, with reference to the accompanying drawings. Addressing the issues of low testing efficiency and accuracy, and long testing time caused by manually verifying pushed service information data, as mentioned in the background art, this application provides an automated vehicle testing method. In this method, a test message is generated based on the acquired current test scenario and current test parameters; the test message is sent to a cloud platform, and push information generated by the cloud platform based on the test message is obtained; the corresponding script configuration information and alarm information from the cloud platform are obtained; the push information and script configuration information are compared to obtain a first comparison result; the alarm information and push information are compared to obtain a second comparison result; and a test report for the current test scenario is generated based on the first and second comparison results. This solves the problems of low testing efficiency and accuracy, and long testing time caused by manually verifying pushed service information data. One-click testing using an automated service testing tool generates corresponding test results, thereby improving testing efficiency and ensuring test quality.

[0056] Specifically, Figure 1 This is a flowchart illustrating an automated vehicle testing method provided in an embodiment of this application.

[0057] like Figure 1 As shown, the automated testing method for this vehicle includes the following steps:

[0058] In step S101, the current test scenario and the current test parameters are obtained.

[0059] Specifically, to address the problems of low testing efficiency, low accuracy, and long testing time caused by manually verifying push service information data, this application provides an automated proactive service testing tool to meet the requirements for accurate testing of push service information data. Therefore, as... Figure 2 As shown, in this embodiment of the application, the testing process first uses Python, HTML, CSS, and jQuery to develop a test website page. This test website page includes cascading filtering of test scenarios, that is, obtaining the current test scenario and the current test parameters, such as fault light, vehicle maintenance light, maintenance light failure, maintenance mileage <= 500km, and other test scenario push messages. Secondly, after obtaining the current test scenario and the current test parameters, the active service automated testing tool is used to verify the current test parameters under the current test scenario, thereby generating the test information required by the user.

[0060] The test website includes displays of App (Application) push notification information, verification results of App push notification information, displays of information reported by the Tsp (Telematics Service Provider) platform, and parsing and verification of information reported by the Tsp platform.

[0061] In step S102, a test message is generated based on the current test scenario and the current test parameters, and the test message is sent to the cloud platform. Push information generated by the cloud platform based on the test message is then obtained.

[0062] Specifically, in this embodiment of the application, when verifying the current test parameters in the current test scenario, the corresponding proto assembly of the simulated vehicle is generated using Python language and protocol list to generate test messages. The test messages are sent to the cloud platform using Python language and paho-mqtt, and push information generated by the cloud platform based on the test messages is obtained using Python language and psutil.

[0063] In step S103, the script configuration information and alarm information of the cloud platform corresponding to the current test scenario are obtained. The push information and script configuration information are compared to obtain the first comparison result, and the alarm information and push information are compared to obtain the second comparison result.

[0064] According to one embodiment of this application, the script configuration information corresponding to the current test scenario is obtained, and the push information and the script configuration information are compared to obtain a first comparison result, including: comparing whether the push information and the script configuration information are consistent; if the push information and the script configuration information are consistent, a first comparison consistency information is generated; otherwise, a first difference information is generated based on the difference annotation result between the push information and the script configuration information; and a first comparison result is obtained based on the first comparison consistency information or the first difference information.

[0065] Specifically, such as Figure 2 As shown in the embodiment of this application, after obtaining the push information generated by the test message, firstly, the corresponding script configuration information of the current test scenario is obtained through Python and Selenium, and the push information and script configuration information are compared to see if they are consistent. If the push information and script configuration information are consistent, first comparison consistency information is generated. If the push information and script configuration information are inconsistent, the inconsistent parts are marked, for example, the inconsistent parts are marked in red. Thus, first difference information is generated based on the difference marking results between the push information and script configuration information. Secondly, a first comparison result is obtained based on the first comparison consistency information or the first difference information, and the first comparison result is displayed on the test website page for user convenience.

[0066] According to one embodiment of this application, obtaining alarm information from a cloud platform and comparing the alarm information with push information to obtain a second comparison result includes: comparing whether the push information and alarm information are consistent; if the push information and alarm information are consistent, generating second comparison consistency information; otherwise, generating second difference information based on the difference annotation result between the push information and alarm information; and obtaining a second comparison result based on the second comparison consistency information or the second difference information.

[0067] Specifically, such as Figure 2 As shown, in this embodiment, after comparing the push information and the script configuration information, the system accesses the test website page using Python and Selenium, and obtains alarm information from the cloud platform using Python and urllib, such as vehicle alarm list information, alarm details information, and associated signal information. The system then compares the alarm information from the cloud platform with the push information using Python. If the push information and alarm information match, a second comparison match information is generated. If they do not match, the differences are marked, for example, by highlighting the inconsistencies in blue. This generates a second difference information based on the difference marking results between the push information and alarm information. Next, a second comparison result is obtained based on the second comparison match information or the second difference information, and this result is displayed on the test website page for user convenience.

[0068] It should be noted that, in this embodiment of the application, when comparing whether alarm information and push information are consistent, there are many fields to be compared. Therefore, it is necessary to use the current test parameters corresponding to the current test scenario for comparison in order to improve the accuracy and efficiency of the comparison.

[0069] In step S104, a test report for the current test scenario is generated based on the first comparison result and the second comparison result.

[0070] According to one embodiment of this application, after generating a test report for the current test scenario based on the first comparison result and the second comparison result, the method further includes: obtaining the test time of the current test scenario; writing the test report into a preset database based on the current test scenario and the test time; and displaying the test report of the current test scenario on a preset test page.

[0071] The preset database can be a relevant database selected by those skilled in the art based on actual testing needs, and the preset test page can be a test website page selected by those skilled in the art based on actual testing needs, without specific limitations.

[0072] Specifically, in this embodiment of the application, a test report for the current test scenario is generated based on the first comparison result and the second comparison result obtained above. At the same time, the test time of the current test scenario is obtained, and the test report is written into a preset database according to the current test scenario and the test time. The test report for the current test scenario is then displayed on a preset test page.

[0073] According to one embodiment of this application, the above-described automated vehicle testing method further includes: receiving a user's query instruction, wherein the query instruction includes test scenario query information and / or test time query information; and exporting a test report corresponding to the query instruction based on the test scenario query information and / or test time query information.

[0074] Specifically, in this embodiment of the application, after the test report is written into a preset database, if a user wants to query a certain test report, they can send a query command to the test website page. The query command may include test scenario query information and / or test time query information. After receiving the user's query command, the test website page exports the test report corresponding to the query command based on the test scenario query information and / or test time query information. At the same time, according to the user's usage needs, the corresponding test report may be partially or completely exported to Excel for the user to view.

[0075] The automated vehicle testing method according to embodiments of this application generates a test message based on the acquired current test scenario and current test parameters, sends the test message to a cloud platform, and obtains push information generated by the cloud platform based on the test message; it also obtains the script configuration information corresponding to the current test scenario and the alarm information from the cloud platform, compares the push information and script configuration information to obtain a first comparison result, compares the alarm information and push information to obtain a second comparison result, and then generates a test report for the current test scenario based on the first and second comparison results. This solves the problems of low testing efficiency and accuracy, and long testing time caused by manually verifying pushed service information data. By using an automated proactive service testing tool for one-click testing, corresponding test results are generated, thereby improving testing efficiency and ensuring test quality.

[0076] Next, with reference to the accompanying drawings, an automated testing apparatus for vehicles according to an embodiment of this application is described.

[0077] Figure 3 This is a block diagram of an automated testing device for vehicles according to an embodiment of this application.

[0078] like Figure 3 As shown, the automated testing device 10 for the vehicle includes: a first acquisition module 100, a second acquisition module 200, a comparison module 300, and a generation module 400.

[0079] The first acquisition module 100 is used to acquire the current test scenario and the current test parameters;

[0080] The second acquisition module 200 is used to generate a test message based on the current test scenario and the current test parameters, send the test message to the cloud platform, and obtain push information generated by the cloud platform based on the test message;

[0081] The comparison module 300 is used to obtain the script configuration information and alarm information of the cloud platform corresponding to the current test scenario, compare the push information and script configuration information to obtain the first comparison result, and compare the alarm information and push information to obtain the second comparison result; and

[0082] The generation module 400 is used to generate a test report for the current test scenario based on the first comparison result and the second comparison result.

[0083] According to one embodiment of this application, the comparison module 300 is specifically used for:

[0084] Compare whether the push notification information and the script configuration information are consistent;

[0085] If the push information and the script configuration information match, the first matching information is generated; otherwise, the first difference information is generated based on the difference annotation results between the push information and the script configuration information.

[0086] The first comparison result is obtained based on the first comparison consistency information or the first comparison difference information.

[0087] According to one embodiment of this application, the comparison module 300 is specifically used for:

[0088] Compare whether the push notification information and the alarm information are consistent;

[0089] If the push notification and alarm notification match, a second matching notification is generated; otherwise, a second difference notification is generated based on the difference annotation results between the push notification and alarm notification.

[0090] The second alignment result is obtained based on the second alignment consistency information or the second alignment difference information.

[0091] According to one embodiment of this application, after generating a test report for the current test scenario based on the first comparison result and the second comparison result, the generation module 400 further includes:

[0092] Get the test time for the current scenario to be tested;

[0093] The test report is written to the preset database based on the current test scenario and test time, and the test report for the current test scenario is displayed on the preset test page.

[0094] According to one embodiment of this application, the above-described automated vehicle testing device 10 further includes:

[0095] Receive user query instructions, including test scenario query information and / or test time query information;

[0096] Export the test report corresponding to the query command based on the query information of the test scenario and / or the query information of the test time.

[0097] The automated vehicle testing device according to an embodiment of this application generates a test message based on the acquired current test scenario and current test parameters, sends the test message to a cloud platform, and obtains push information generated by the cloud platform based on the test message; it also obtains the script configuration information corresponding to the current test scenario and the alarm information from the cloud platform, compares the push information and script configuration information to obtain a first comparison result, compares the alarm information and push information to obtain a second comparison result, and then generates a test report for the current test scenario based on the first and second comparison results. This solves the problems of low testing efficiency and accuracy, and long testing time caused by manually verifying pushed service information data. By using an automated testing tool for proactive services to perform one-click testing, corresponding test results are generated, thereby improving testing efficiency and ensuring test quality.

[0098] Figure 4 A schematic diagram of the structure of a server provided in an embodiment of this application. The server may include:

[0099] The memory 401, the processor 402, and the computer program stored on the memory 401 and capable of running on the processor 402.

[0100] When the processor 402 executes the program, it implements the automated vehicle testing method provided in the above embodiments.

[0101] Furthermore, the server also includes:

[0102] Communication interface 403 is used for communication between memory 401 and processor 402.

[0103] The memory 401 is used to store computer programs that can run on the processor 402.

[0104] The memory 401 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0105] If the memory 401, processor 402, and communication interface 403 are implemented independently, then the communication interface 403, memory 401, and processor 402 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 4 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0106] Optionally, in a specific implementation, if the memory 401, processor 402, and communication interface 403 are integrated on a single chip, then the memory 401, processor 402, and communication interface 403 can communicate with each other through an internal interface.

[0107] Processor 402 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.

[0108] This embodiment also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described automated vehicle testing method.

[0109] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0110] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0111] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.

[0112] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.

[0113] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0114] Those skilled in the art will understand that all or part of the steps of the methods described in the above embodiments can be implemented by a program instructing related hardware, and the program can be stored in a computer-readable storage medium. When executed, the program includes one or a combination of the steps of the method embodiments.

[0115] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0116] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.

Claims

1. An automated testing method for vehicles, characterized in that, Includes the following steps: Get the current test scenario and current test parameters; A test message is generated based on the current test scenario and the current test parameters, and the test message is sent to the cloud platform. The push information generated by the cloud platform based on the test message is then obtained. Obtain the script configuration information corresponding to the current test scenario and the alarm information of the cloud platform, compare the push information and the script configuration information to obtain a first comparison result, and compare the alarm information and the push information to obtain a second comparison result; A test report for the current test scenario is generated based on the first comparison result and the second comparison result; The first comparison result includes: comparing whether the push information and the script configuration information are consistent; if the push information and the script configuration information are consistent, then generating first comparison consistency information; otherwise, generating first difference information based on the difference annotation result between the push information and the script configuration information; obtaining the first comparison result based on the first comparison consistency information or the first difference information. The second comparison result includes: comparing whether the push information and the alarm information are consistent; if the push information and the alarm information are consistent, then generating second comparison consistency information; otherwise, generating second difference information based on the difference annotation result between the push information and the alarm information; obtaining the second comparison result based on the second comparison consistency information or the second difference information.

2. The method according to claim 1, characterized in that, After generating the test report for the current test scenario based on the first comparison result and the second comparison result, the method further includes: Obtain the test time for the current scenario to be tested; The test report is written into a preset database based on the current test scenario and test time, and the test report for the current test scenario is displayed on a preset test page.

3. The method according to claim 1, characterized in that, Also includes: Receive user query instructions, wherein the query instructions include test scenario query information and / or test time query information; Based on the test scenario query information and / or the test time query information, export the test report corresponding to the query instruction.

4. An automated testing device for vehicles, characterized in that, include: The first acquisition module is used to acquire the current test scenario and the current test parameters; The second acquisition module is used to generate a test message based on the current test scenario and the current test parameters, send the test message to the cloud platform, and acquire push information generated by the cloud platform based on the test message; The comparison module is used to obtain the script configuration information corresponding to the current test scenario and the alarm information of the cloud platform, compare the push information and the script configuration information to obtain a first comparison result, and compare the alarm information and the push information to obtain a second comparison result; as well as A generation module is used to generate a test report for the current test scenario based on the first comparison result and the second comparison result; Specifically, the comparison module is used to: compare whether the push information and the script configuration information are consistent; if the push information and the script configuration information are consistent, generate first comparison consistency information; otherwise, generate first difference information based on the difference annotation result between the push information and the script configuration information; and obtain the first comparison result based on the first comparison consistency information or the first difference information. The comparison module is specifically used for: comparing whether the push information and the alarm information are consistent; if the push information and the alarm information are consistent, generating second comparison consistency information; otherwise, generating second difference information based on the difference annotation results between the push information and the alarm information; and obtaining the second comparison result based on the second comparison consistency information or the second difference information.

5. A server, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the program to implement an automated testing method for a vehicle as described in any one of claims 1-3.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the automated testing method for the vehicle as described in any one of claims 1-3.