Automatic test method, system and equipment for vehicle-mounted information entertainment system

Through the automated testing method, task scheduling services, Jenkins services and Python services are used to perform automated testing of in-vehicle infotainment systems, solving the problems of low efficiency and low accuracy of traditional manual testing, and achieving efficient and accurate display and management of test results.

CN119292921APending Publication Date: 2025-01-10WUHAN SOUTH SAGITTARIUS INTEGRATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411331707.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

Traditional manual testing methods have low efficiency, low accuracy and poor reusability for on-board infotainment systems, making it difficult to meet the needs of functional complexity under the trend of automotive intelligence and networking.

Method used

Using automated testing methods, we can generate test scripts, create test task orders, combine task scheduling services, Jenkins services and Python services to perform automated tests, and analyze and execute test instructions through the on-board infotainment system equipment communication and analysis, and pass data back in real time to display tests. Progress and results.

Benefits of technology

It realizes automated testing of the functions of the in-vehicle infotainment system, shortens the test cycle, reduces the test cost, improves the test quality and accuracy, and simplifies the test management process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119292921A_ABST
    Figure CN119292921A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of automatic testing, and discloses an automatic testing method, system and equipment for a vehicle-mounted information entertainment system. The method comprises the following steps: generating a test script based on a test demand of the vehicle-mounted information entertainment system; creating a test task list according to the project test task, and formulating task list information and a test case set based on the test task list and the test script; executing an automatic test according to the task list information and the test case set through a task scheduling service, a Jenkins service and a Python service; analyzing and executing a script test instruction received in an automatic test process based on the established vehicle-mounted information entertainment system equipment communication to obtain test return data; and displaying a test task execution progress and a test task execution result according to the test return data. According to the test method for the vehicle-mounted information entertainment system IVI, automatic test of related functions of the IVI is achieved, the test period is shortened, the test cost is reduced, and the test quality is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automated testing technology, and in particular to an automated testing method, system and equipment for an in-vehicle infotainment system. Background Art

[0002] With the intensified competition in the automobile market, the diversification of consumer demands and the acceleration of the trend of intelligent networking in the automobile industry, IVI (in-vehicle infotainment system), as the core terminal of automobile intelligence, has become increasingly rich and complex in functions. In addition, as a key link in the automobile usage experience, the performance and quality of the in-vehicle infotainment system directly affect the user's satisfaction with the car. The traditional manual testing method for the in-vehicle infotainment system has problems such as low testing efficiency, low accuracy and poor reusability. Summary of the invention

[0003] The main purpose of the present invention is to provide an automated testing method, system and device for an in-vehicle infotainment system, aiming to solve at least one of the above-mentioned technical problems.

[0004] To achieve the above object, the present invention provides an automated testing method for an in-vehicle infotainment system, comprising:

[0005] Generate test scripts based on the test requirements of the in-vehicle infotainment system;

[0006] Create a test task list according to the project test task, and formulate task list information and test case set based on the test task list and the test script;

[0007] Execute automated testing according to the task order information and the test case set through task scheduling service, Jenkins service and Python service;

[0008] Establishing in-vehicle infotainment system device communication, parsing and executing script test instructions received during the automated test based on the in-vehicle infotainment system device communication, and obtaining test return data;

[0009] The test task execution progress and test task execution results are displayed according to the test feedback data.

[0010] In some embodiments, the generating of a test script based on the test requirements of the in-vehicle infotainment system includes:

[0011] Generate initial test scripts based on the test requirements of the in-vehicle infotainment system;

[0012] The initial test script is edited online, compiled in real time and the running effect is confirmed based on the weditor online script editing tool to obtain a test script that meets the test requirements.

[0013] In some embodiments, generating an initial test script based on the test requirements of the in-vehicle infotainment system includes:

[0014] Create new test cases based on the requirements of the in-vehicle infotainment system's test items;

[0015] Editing the content information of the test case, generating a test case to be reviewed and submitting the test case to be reviewed for review;

[0016] When the test case to be reviewed passes the review, a target test case is obtained;

[0017] Dispatching the script and selecting the cabinet;

[0018] Writing a script according to the target test case to generate a test script to be reviewed and submitting the test script to be reviewed for case review;

[0019] When the test to be reviewed passes the review, an initial test script is generated.

[0020] In some embodiments, creating a test task list according to the project test task, and formulating task list information and a test case set based on the test task list and the test script include:

[0021] Create a test task list based on project test tasks;

[0022] Formulate task order information based on the test task order; wherein the task order information includes execution mode, test type, execution precondition, execution postcondition, execution cycle, execution number and person responsible for the problem;

[0023] A test case set is constructed based on the test script.

[0024] In some embodiments, performing automated testing according to the task order information and the test case set by using a task scheduling service, a Jenkins service, and a Python service includes:

[0025] Through the task scheduling service combined with the Jenkins master-slave service and the Python service, the test case automation execution, test data feedback and test status monitoring are completed according to the task order information and the test case set; among them, the Jenkins master-slave service is the middle layer between the task scheduling service and the task execution Python service.

[0026] In some embodiments, the task scheduling service combines the Jenkins master-slave service and the Python service to complete the test case automation execution, test data feedback and test status monitoring according to the task order information and the test case set, including:

[0027] Call the Jenkins interface of the Jenkins master-slave service through the task scheduling service to execute tasks on time, issue task-related use cases, execute periodic / non-periodic task logic, allocate random use case execution order, and issue pre- and post-execution conditions;

[0028] Receive the task execution parameters in the task order information through the Jenkins master-slave service and start the Python service through the Jenkins script;

[0029] The task execution parameters are passed to the Python service, and the test scripts in the test case set are executed through the Python service to complete the automated execution of the test cases, the return of test data, and the monitoring of the test status.

[0030] In some embodiments, the establishing of in-vehicle infotainment system device communication, parsing and executing script test instructions received during the automated test based on the in-vehicle infotainment system device communication, and obtaining test return data includes:

[0031] Establish vehicle infotainment system device communication based on Python service combined with uiautomator2 framework;

[0032] Sending test instructions in real time based on the test script of the test case set;

[0033] Parsing and executing received test instructions based on the communication of the in-vehicle infotainment system device;

[0034] The execution logic in the test instruction is used to determine whether the test result meets the expected effect, and the test return data is obtained.

[0035] In some embodiments, displaying the test task execution progress and the test task execution result according to the test feedback data includes:

[0036] Send the test return data back to the cloud platform via HTTP request;

[0037] The task execution progress, task execution results, task execution log and task execution process image data are displayed according to the test feedback data.

[0038] In addition, to achieve the above-mentioned purpose, the present invention also proposes an automated testing system for an in-vehicle infotainment system, comprising:

[0039] The cloud platform includes an automated test online management module, which is used to generate a test script based on the test requirements of the in-vehicle infotainment system; create a test task list according to the project test task, and formulate task list information and a test case set based on the test task list and the test script; and perform automated testing according to the task list information and the test case set through a task scheduling service, a Jenkins service, and a Python service;

[0040] The mobile device is used to parse and execute the script test instructions received during the automated test process to obtain the test return data;

[0041] The cloud platform is also used to display the test task execution progress and test task execution results based on the test feedback data.

[0042] In addition, to achieve the above-mentioned purpose, the present invention also proposes an electronic device, which includes: a memory, a processor, and an in-vehicle infotainment system automated testing program stored in the memory and executable on the processor, wherein the in-vehicle infotainment system automated testing program is configured to implement the in-vehicle infotainment system automated testing method as described above.

[0043] The present invention provides an automated testing method for an in-vehicle infotainment system, comprising: generating a test script based on the test requirements of the in-vehicle infotainment system; creating a test task list according to the project test task, formulating task list information and a test case set based on the test task list and the test script; performing automated testing according to the task list information and the test case set through a task scheduling service, a Jenkins service, and a Python service; establishing in-vehicle infotainment system device communication, parsing and executing the script test instructions received during the automated testing process based on the in-vehicle infotainment system device communication, and obtaining test feedback data; displaying the test task execution progress and the test task execution result according to the test feedback data. In the present invention, a set of automated testing methods for an in-vehicle infotainment system IVI is constructed to realize automated testing of IVI-related functions, thereby shortening the test cycle, reducing the test cost, and improving the test quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 A schematic diagram of the structure of an electronic device in a hardware operating environment involved in an embodiment of the present invention;

[0045] Figure 2 A schematic diagram of a flow chart of an embodiment of an automated testing method for an in-vehicle infotainment system according to the present invention;

[0046] Figure 3 It is a schematic diagram of the overall technical framework involved in the embodiment of the present invention;

[0047] Figure 4 A schematic diagram of the test case script writing process involved in the embodiment of the present invention;

[0048] Figure 5 A schematic diagram of a weditor tool for online editing, execution, and verification of scripts involved in an embodiment of the present invention;

[0049] Figure 6 A schematic diagram of a process for editing automated test tasks based on test task requirements involved in an embodiment of the present invention;

[0050] Figure 7 A schematic diagram of the scheduling process and execution process of the automated execution of tasks involved in the embodiments of the present invention;

[0051] Figure 8 A schematic diagram of a display interface for writing test cases involved in an embodiment of the present invention;

[0052] Fig. 9 A schematic diagram of a display interface for writing a test execution script according to an embodiment of the present invention;

[0053] Fig.10 A schematic diagram of a display interface for creating a test task according to an embodiment of the present invention;

[0054] Fig.11 A schematic diagram of a display interface for the execution results involved in the embodiment of the present invention;

[0055] Fig.12 A schematic diagram of a display interface for execution details involved in an embodiment of the present invention;

[0056] Fig.13 This is a structural block diagram of an embodiment of an automated testing system for an in-vehicle infotainment system according to the present invention.

[0057] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0058] 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.

[0059] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0060] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0061] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the structure of an electronic device of the hardware operating environment involved in the embodiment of the present invention.

[0062] like Figure 1 As shown, the electronic device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM memory) or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0063] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0064] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and an automated test program for an in-vehicle infotainment system.

[0065] exist Figure 1 In the electronic device shown, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the electronic device of the present invention can be set in the electronic device, and the electronic device calls the in-vehicle infotainment system automation test program stored in the memory 1005 through the processor 1001, and executes the in-vehicle infotainment system automation test method provided by an embodiment of the present invention.

[0066] The present invention provides an automated testing method, system and equipment for an in-vehicle infotainment system.

[0067] The embodiment of the present invention provides an automated testing method for an in-vehicle infotainment system. Figure 2 , Figure 2 The figure is a flow chart of an embodiment of an automated testing method for an in-vehicle infotainment system according to the present invention.

[0068] like Figure 2 As shown, the automated testing method for the in-vehicle infotainment system includes:

[0069] Step S100: generating a test script based on the test requirements of the in-vehicle infotainment system;

[0070] Step S200: creating a test task list according to the project test task, and formulating task list information and a test case set based on the test task list and the test script;

[0071] Step S300: Execute automated testing according to the task order information and the test case set through the task scheduling service, Jenkins service and Python service;

[0072] Step S400: establishing in-vehicle infotainment system device communication, parsing and executing script test instructions received during the automated test based on the in-vehicle infotainment system device communication, and obtaining test return data;

[0073] Step S500: Displaying the test task execution progress and the test task execution result according to the test feedback data.

[0074] It should be noted that the execution subject in this embodiment may be an electronic device, which may be a computer device with data processing functions, or other devices that can achieve the same or similar functions. This embodiment does not limit this. In this embodiment, a computer device is used as an example for explanation.

[0075] It can be understood that, in this embodiment, Figure 3 The overall technical framework shown in the figure is used as an example to illustrate. Figure 3 As shown, in this embodiment, the upper layer uses the Java backend service ( Figure 3 The cloud backend service) and the react front-end framework ( Figure 3 The cloud front-end page) builds the online management process of automated testing, including cloud test script management, test task compilation, test task scheduling, test task automation execution, and test result data display. The underlying Python service is used to establish IVI device communication with the uiautomator2 framework. The IVI device runs the HTTP service encapsulated by uiautomator2, which is used to parse the requests initiated by the Python script and convert them into codes that can be recognized by uiautomator2. Mobile device ( Figure 3 The mobile device encapsulated with uiautomator2-apk) receives the HTTP request sent from the PC through the same network segment or USB, for example Figure 3 The mobile device receives the HTTP request sent by the test cabinet via USB and performs the specified operation. The Python service transmits the test process data, such as BUG data and application execution performance data, to the cloud to form an automated test data closed loop. In particular, when the method described in this embodiment is used to perform automated testing on the in-vehicle infotainment system, it is also possible to test by calling external devices such as programmable power supplies, sound cards, and industrial cameras.

[0076] In one embodiment, a test script is generated based on the test requirements of the in-vehicle infotainment system, including: generating an initial test script based on the test requirements of the in-vehicle infotainment system; online editing, real-time compilation and running effect confirmation of the initial test script based on the weditor online script editing tool to obtain a test script that meets the test requirements.

[0077] In one embodiment, an initial test script is generated based on the test requirements of the in-vehicle infotainment system, including: creating a new test case according to the requirements of the item to be tested of the in-vehicle infotainment system; editing the content information of the test case, generating a test case to be reviewed and submitting the test case to be reviewed for review; when the test case to be reviewed passes the review, obtaining a target test case; assigning a script and selecting a cabinet; writing a script according to the target test case to generate a test script to be reviewed and submitting the test script to be reviewed for case review; when the test case to be reviewed passes the review, generating an initial test script.

[0078] It should be noted that the intelligent cockpit infotainment system IVI (In-Vehicle Infotainment) uses a dedicated on-board central processor, based on the body bus system and Internet services, to form an on-board comprehensive information processing system. IVI can realize a series of applications including three-dimensional navigation, real-time traffic conditions, IPTV, assisted driving, fault detection, vehicle information, body control, mobile office, wireless communication, online entertainment functions and TSP services.

[0079] Specifically, test engineers can write test scripts based on the test requirements of the in-vehicle infotainment system IVI through the web page. Figure 4 As shown, select the project (Infotainment System IVI); select the requirements, which include but are not limited to central control requirements, instrument requirements, and interface testing; create a new test case based on these requirements; edit the content information of the test case, and the edited test case needs to be submitted for review; if it fails to pass the review, it is necessary to re-edit and modify the content information of the test case; if it passes the review, assign the script and select the cabinet. Write the test execution script according to the test case: write the script according to the approved test case, and the written test script needs to be submitted for review, and the initial test script is obtained after the review passes.

[0080] Specifically, Figure 5 As shown, the script is run through the weditor online editor to confirm the correctness of the execution script and obtain a test script that meets the test requirements: After the initial test script is written, it is edited online, compiled in real time, and the running effect is confirmed based on the weditor online script editing tool to ensure that the script meets the test requirements.

[0081] In one embodiment, a test task sheet is created according to a project test task, and task sheet information and a test case set are formulated based on the test task sheet and the test script, including: creating a test task sheet according to the project test task; formulating task sheet information based on the test task sheet; wherein the task sheet information includes execution mode, test type, execution preconditions, execution postconditions, execution cycle, execution times, and person responsible for problems; and building a test case set based on the test script.

[0082] Specifically, in combination with the project testing tasks, a test task list is created and the task list information is formulated. The task list information includes but is not limited to the automated test execution time, execution test case set, execution preconditions, execution postconditions, execution cycle, number of executions, and person responsible for bugs, etc., and the automated testing mode is selected for testing.

[0083] For example, Figure 6 As shown, click the Add Task Order button to create a test task order, fill in the task order information, and select the automated test mode for testing; automatically execute the task order information and execute the use case set, or use monkey / system monkey to perform automated testing based on the task order information, event sending frequency, screen frequency, and set black and white lists. Monkey is a command line tool that can run in a simulator or actual device. It sends pseudo-random user event streams to the system to perform stress testing on the application being developed.

[0084] It is understandable that if Figure 6 As shown, when selecting a test mode, you can also select a manual test mode or a free test mode. When selecting the manual test mode, manual testing is performed according to the task order information and the execution case set. When selecting the free test mode, testing is performed according to the task order information.

[0085] In one embodiment, automated testing is performed according to the task order information and the test case set through a task scheduling service, a Jenkins service, and a Python service, including: completing automated execution of test cases, test data feedback, and test status monitoring according to the task order information and the test case set through a task scheduling service in combination with a Jenkins master-slave service and a Python service; wherein the Jenkins master-slave service is an intermediate layer between the task scheduling service and the task execution Python service.

[0086] In one embodiment, the task scheduling service is combined with the Jenkins master-slave service and the Python service to complete the automated execution of test cases, the feedback of test data, and the monitoring of test status according to the task order information and the test case set, including: calling the Jenkins interface of the Jenkins master-slave service through the task scheduling service to execute tasks on time, issue task-related use cases, execute periodic / non-periodic task logic, allocate random use case execution order, and issue pre- and post-execution conditions; receiving the task execution parameters in the task order information through the Jenkins master-slave service and starting the Python service through the Jenkins script; passing the task execution parameters to the Python service, and executing the test script in the test case set through the Python service to complete the automated execution of test cases, the feedback of test data, and the monitoring of test status.

[0087] Specifically, through the task scheduling service, combined with the Jenkins master-slave service and the task execution Python service, the test case automation execution, test data feedback and test status monitoring are completed; among them, the task scheduling service is developed in Java language, and by calling the Jenkins interface, it is responsible for the on-time execution of tasks, the dispatching of task-related cases, the execution of periodic / non-periodic task logic, the random case execution order allocation, the dispatching of pre- and post-execution conditions, etc. As the middle layer between the task scheduling service and the task execution Python service, the Jenkins master-slave service is responsible for receiving task execution related parameters and starting the task execution Python service through the Jenkins script, passing the parameters to the Python service, and the Python service executes the test script.

[0088] In one example, if Figure 7As shown, the left side is the task scheduling service, the middle is the Jenkins master-slave service, and the right side is the Python task. For example, the task scheduling service: when receiving a newly added task order, the task scheduling service adds the task to the scheduling queue, executes the task according to the time specified in the task order or starts executing the task immediately; triggers the task interface, maintains the cabinet execution use case logic; calls the Jenkins API to pass parameters. Jenkins master-slave service: receives task execution related parameters through the buildWithParameters interface, and starts the task execution Python service through the Jenkins script, where buildWithParameters is used for Jenkins parameterized triggering and building. Python service: Task execution Python service, calls the use case execution status modification interface when the use case starts to execute, and passes the start time; calls the use case execution status modification interface when the use case execution ends, and passes the end time, etc. The Python program executes periodic tasks, and the task scheduling service adds the next task to the scheduling queue when the last use case is executed; if the Python program executes the periodic task / non-periodic task execution timeout, the task scheduling service terminates the current execution; calls the stop interface through the Jenkins service, and the Python service executes the kill script to end the unexecuted use case. Among them, the page is issued to receive the control instructions of the test engineer on the test process during the automated testing process.

[0089] In one embodiment, vehicle infotainment system device communication is established, and script test instructions received during the automated test are parsed and executed based on the vehicle infotainment system device communication to obtain test return data, including: establishing vehicle infotainment system device communication based on Python service combined with uiautomator2 framework; sending test instructions in real time based on the test script of the test case set; parsing and executing received test instructions based on the vehicle infotainment system device communication; judging whether the test results meet the expected results through the execution logic in the test instructions to obtain test return data.

[0090] Specifically, the IVI device communication of the in-vehicle infotainment system is established through the Python service combined with the uiautomator2 framework, wherein the IVI device runs the HTTP service encapsulated with uiautomator2 to parse the request initiated by the Python script and convert it into a code recognizable by uiautomator2.

[0091] Exemplarily, test instructions are sent in real time through the test script, uiautomator2-apk on the device side (mobile device) parses and executes the received script instructions, the Python service determines whether the test results meet the expected effects through the execution logic in the script, and returns the data to the cloud platform via HTTP request.

[0092] In one embodiment, the test task execution progress and the test task execution results are displayed according to the test feedback data, including: transmitting the test feedback data to the cloud platform via an HTTP request; and displaying the task execution progress, task execution results, task execution log and task execution process picture data according to the test feedback data.

[0093] Specifically, the cloud platform receives the test case execution status data (test return data) and echoes the task execution progress, task execution results, task execution logs, and task execution process image data, etc.

[0094] It is understandable that the method described in this embodiment is further described in detail below in conjunction with the illustrations and specific implementation examples. The main steps of the automated testing method for the in-vehicle infotainment system include:

[0095] (1): For example Figure 8 As shown, write test cases based on requirements;

[0096] (2): If Fig. 9 As shown, write the test execution script according to the test case;

[0097] (3): Run the script through the weditor online editor to confirm the correctness of the script execution;

[0098] (4): For example Fig.10 As shown, automated testing is performed in conjunction with test projects. According to the test requirements of the test projects, test tasks are directly created to define the test time, test times, test cycles, and problem responsible persons.

[0099] (5): If Fig.11 and Fig.12 As shown, after the test automation is executed, you can directly view data such as task execution status, test case execution statistics, test case execution process pictures, process logs, etc.

[0100] It should be noted that compared with traditional manual testing, the above-mentioned test method adopted in this embodiment has the following advantages: the test case is executed through a script, which can be reused multiple times after being written once, and the test cost is low; the test process is automatically executed through the task scheduling service, which improves the test efficiency; the test data is transmitted back and counted in real time, the test BUG is automatically entered into the system and the responsible person is designated, and the test report is automatically generated, which simplifies the test management process; through the uiautomator2 framework, the test cases such as image recognition comparison and voice recognition comparison are written, the test results can be automatically and accurately determined, human misjudgment can be reduced, and the test accuracy can be improved. This embodiment provides an automated test method for an in-vehicle infotainment system that greatly reduces the cost of IVI testing, improves test accuracy, and improves test efficiency, and is equipped with a visual display of the test data throughout the process. The method is easy to operate, improves the user experience, has high feasibility and reliability, and has a wide range of applications, and can be extended to automated testing of various types of device applications (such as Android device applications).

[0101] This embodiment provides an automated testing method for an in-vehicle infotainment system, including: generating a test script based on the test requirements of the in-vehicle infotainment system; creating a test task list according to the project test task, formulating the task list information and the test case set based on the test task list and the test script; performing automated testing according to the task list information and the test case set through the task scheduling service, Jenkins service, and Python service; establishing in-vehicle infotainment system device communication, parsing and executing the script test instructions received during the automated testing process based on the in-vehicle infotainment system device communication, and obtaining test feedback data; displaying the test task execution progress and the test task execution results according to the test feedback data. In this embodiment, a set of automated testing methods for the in-vehicle infotainment system IVI is constructed to realize automated testing of IVI-related functions, thereby shortening the test cycle, reducing the test cost, and improving the test quality.

[0102] In addition, an embodiment of the present invention further proposes a storage medium, on which an automated testing program for an in-vehicle infotainment system is stored. When the automated testing program for the in-vehicle infotainment system is executed by a processor, the steps of the automated testing method for the in-vehicle infotainment system as described above are implemented.

[0103] Reference Fig.13 , Fig.13 This is a structural block diagram of an embodiment of an automated testing system for an in-vehicle infotainment system according to the present invention.

[0104] like Fig.13 As shown, the in-vehicle infotainment system automated testing system comprises:

[0105] The cloud platform 10 includes an automated test online management module, which is used to generate a test script based on the test requirements of the in-vehicle infotainment system; create a test task list according to the project test task, and formulate task list information and a test case set based on the test task list and the test script; and perform automated testing according to the task list information and the test case set through a task scheduling service, a Jenkins service, and a Python service;

[0106] The mobile device 20 is used to parse and execute the script test instructions received during the automated test process to obtain test return data;

[0107] The cloud platform 10 is further used to display the test task execution progress and test task execution results according to the test feedback data.

[0108] Specifically, Fig.13 As shown, the system includes: a cloud platform (cloud) and a mobile device (device side). Through the java backend service and the react front-end framework, the cloud test script management, test task compilation, test task scheduling, test task automation execution and test result data display and other automated test online management processes are built; based on the Python service and the uiautomator2 framework, IVI device communication is established, and the IVI device runs the HTTP service encapsulated with uiautomator2, parses the request initiated by the Python script, and converts it into a code recognizable by uiautomator2. The mobile device receives the HTTP request sent from the PC through the same network segment or USB (such as Figure 3 As shown, the mobile device receives the HTTP request sent by the test cabinet via USB. During the execution of the task, the Python service transmits the test process data, such as BUG data, application execution performance data, etc., to the cloud to form an automated test data closed loop.

[0109] It can be understood that compared with traditional manual testing, the above-mentioned test system used in this embodiment has the following advantages: test cases are executed through scripts, which can be reused multiple times after being written once, and the test cost is low; the test process is automatically executed through the task scheduling service, which improves the test efficiency; the test data is transmitted back and counted in real time, the test BUG is automatically entered into the system and the person in charge is designated, and the test report is automatically generated, which simplifies the test management process; through the uiautomator2 framework, the test cases such as image recognition comparison and voice recognition comparison are written, the test results can be automatically and accurately determined, human misjudgment can be reduced, and the test accuracy can be improved. This embodiment provides an automated test system for an in-vehicle infotainment system that greatly reduces the cost of IVI testing, improves test accuracy, and improves test efficiency, and is equipped with a visual display of the test data throughout the process. The method is easy to operate, improves the user experience, has high feasibility and reliability, and has a wide range of applications, and can be extended to automated testing of various types of device applications (such as Android device applications).

[0110] The present embodiment provides an automated testing system for an in-vehicle infotainment system. In the present embodiment, an automated testing system for an in-vehicle infotainment system IVI is constructed to implement automated testing of IVI-related functions, thereby shortening the testing cycle, reducing testing costs, and improving testing quality.

[0111] It should be noted that, for technical details not fully described in the embodiment of the in-vehicle infotainment system automated testing system, reference can be made to the in-vehicle infotainment system automated testing method described above provided in any embodiment of the present invention, and will not be repeated here.

[0112] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.

[0113] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.

[0114] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0115] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0116] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0117] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. An automated testing method for an in-vehicle infotainment system, characterized in that: include: Generate test scripts based on the test requirements of the in-vehicle infotainment system; Create a test task list according to the project test task, and formulate task list information and test case set based on the test task list and the test script; Execute automated testing according to the task order information and the test case set through task scheduling service, Jenkins service and Python service; Establishing in-vehicle infotainment system device communication, parsing and executing script test instructions received during the automated test based on the in-vehicle infotainment system device communication, and obtaining test return data; The test task execution progress and test task execution results are displayed according to the test feedback data.

2. The method according to claim 1, characterized in that The test script is generated based on the test requirements of the in-vehicle infotainment system, including: Generate initial test scripts based on the test requirements of the in-vehicle infotainment system; The initial test script is edited online, compiled in real time and the running effect is confirmed based on the weditor online script editing tool to obtain a test script that meets the test requirements.

3. The method according to claim 2, characterized in that The initial test script is generated based on the test requirements of the in-vehicle infotainment system, including: Create new test cases based on the requirements of the in-vehicle infotainment system's test items; Editing the content information of the test case, generating a test case to be reviewed and submitting the test case to be reviewed for review; When the test case to be reviewed passes the review, a target test case is obtained; Dispatching the script and selecting the cabinet; Writing a script according to the target test case to generate a test script to be reviewed and submitting the test script to be reviewed for case review; When the test to be reviewed passes the review, an initial test script is generated.

4. The method according to claim 1, characterized in that The step of creating a test task list according to the project test task, and formulating task list information and a test case set based on the test task list and the test script includes: Create a test task list based on project test tasks; Formulate task order information based on the test task order; wherein the task order information includes execution mode, test type, execution precondition, execution postcondition, execution cycle, execution number and person responsible for the problem; A test case set is constructed based on the test script.

5. The method according to claim 1, characterized in that The performing of automated testing according to the task order information and the test case set by the task scheduling service, the Jenkins service, and the Python service includes: Through the task scheduling service combined with the Jenkins master-slave service and the Python service, the test case automation execution, test data feedback and test status monitoring are completed according to the task order information and the test case set; among them, the Jenkins master-slave service is the middle layer between the task scheduling service and the task execution Python service.

6. The method according to claim 5, characterized in that The task scheduling service combines the Jenkins master-slave service and the Python service to complete the test case automation execution, test data feedback and test status monitoring according to the task order information and the test case set, including: Call the Jenkins interface of the Jenkins master-slave service through the task scheduling service to execute tasks on time, issue task-related use cases, execute periodic / non-periodic task logic, allocate random use case execution order, and issue pre- and post-execution conditions; Receive the task execution parameters in the task order information through the Jenkins master-slave service and start the Python service through the Jenkins script; The task execution parameters are passed to the Python service, and the test scripts in the test case set are executed through the Python service to complete the automated execution of the test cases, the return of test data, and the monitoring of the test status.

7. The method according to any one of claims 1 to 6, characterized in that The establishing of the vehicle infotainment system device communication, parsing and executing the script test instructions received during the automated test based on the vehicle infotainment system device communication, and obtaining the test return data, includes: Establish vehicle infotainment system device communication based on Python service combined with uiautomator2 framework; Sending test instructions in real time based on the test script of the test case set; Parsing and executing received test instructions based on the communication of the in-vehicle infotainment system device; The execution logic in the test instruction is used to determine whether the test result meets the expected effect, and the test return data is obtained.

8. The method according to claim 7, characterized in that The display of the test task execution progress and the test task execution result according to the test feedback data includes: Send the test return data back to the cloud platform via HTTP request; The task execution progress, task execution results, task execution log and task execution process image data are displayed according to the test feedback data.

9. An automated testing system for an in-vehicle infotainment system, characterized in that: include: Cloud platform, including an automated test online management module, used to generate test scripts based on the test requirements of the in-vehicle infotainment system; Create a test task list according to the project test task, and formulate task list information and test case set based on the test task list and the test script; Execute automated testing according to the task order information and the test case set through task scheduling service, Jenkins service and Python service; The mobile device is used to parse and execute the script test instructions received during the automated test process to obtain the test return data; The cloud platform is also used to display the test task execution progress and test task execution results based on the test feedback data.

10. An electronic device, characterized in that: The electronic device includes: a memory, a processor, and an in-vehicle infotainment system automated testing program stored in the memory and executable on the processor, wherein the in-vehicle infotainment system automated testing program is configured to implement the in-vehicle infotainment system automated testing method as described in any one of claims 1 to 8.