Kanzi-based test method, device, equipment and vehicle

By setting attribute switches and data division in Kanzi's instrument design interface, the problem of poor test efficiency and accuracy in the existing technology is solved, the separation test of source data and test data is realized, and the test efficiency and accuracy are improved. Enhanced driving safety.

CN118277276BActive Publication Date: 2024-10-01CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410523683.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-28
Publication Date
2024-10-01
Estimated Expiration
2044-04-28

AI Technical Summary

Technical Problem

The existing functional testing solution based on Kanzi has poor testing efficiency and testing accuracy, which leads to uncertainty in locating problems in the MCU layer, middleware layer and HMI implementation layer, and cannot detect bugs and defects in the interactive interface in a timely manner.

Method used

Pre-set attribute switches on Kanzi's instrument design interface to distinguish different state machines, divide instrument data into source data and test data, associate them with different state machines, display them on the interactive interface respectively according to attribute requests, and conduct testing. Determine test results.

Benefits of technology

By separating the display and testing of source data and test data, testing efficiency and accuracy are improved, bugs and defects in the interactive interface are discovered and solved in a timely manner, problems are avoided from being delayed to subsequent stages and have a greater impact, and driving safety is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118277276B_ABST
    Figure CN118277276B_ABST
Patent Text Reader

Abstract

The present application provides a Kanzi-based testing method, device, equipment and vehicle, the method comprising: pre-setting an attribute switch based on an instrument design interface where Kanzi is located, the attribute switch being used to distinguish different state machines; dividing all data corresponding to the instrument into source data and test data, so that the source data and the test data are associated with different state machines, the source data being instrument data reflecting the actual vehicle condition of the vehicle, and the test data comprising custom function test items; in response to an attribute request generated by the attribute switch, displaying the source data or the test data on an interactive interface of an on-board instrument respectively according to a state represented by the attribute request; performing tests respectively according to the data displayed on the interactive interface to determine the test results, and performing tests respectively by separating the data is conducive to timely discovering and resolving bugs and defects of the interactive interface, thereby improving the test efficiency and the test accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of human-machine interface function testing, and in particular to a Kanzi-based testing method, device, equipment and vehicle. Background Art

[0002] Kanzi is an embedded development platform that integrates UI design, development, and deployment. It is widely used in embedded HMI (Human Machine Interface) development in the automotive field.

[0003] When testing instrument HMI projects, due to the uncertainty of testing, it takes time to locate the cause of specific problems, whether it is at the MCU layer, the middleware layer or the HMI implementation layer. However, in reality, because the source data associated with the application and the custom data (i.e., test data) associated with the user interface are interrelated and confused with each other, it is impossible to timely discover and solve the bugs and defects of the interactive interface, resulting in poor testing efficiency and accuracy of HMI projects. Summary of the invention

[0004] In view of the above-mentioned shortcomings of the prior art, the purpose of the present application is to provide a Kanzi-based testing method, device, equipment and vehicle to solve the problem of poor testing efficiency and test accuracy of Kanzi-based functional testing solutions in the prior art.

[0005] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present application provides a Kanzi-based testing method, comprising: pre-setting an attribute switch based on the instrument design interface where Kanzi is located, and the attribute switch is used to distinguish different state machines; dividing all data corresponding to the instrument into source data and test data, so that the source data and the test data are associated with different state machines, wherein the source data is instrument data reflecting the actual condition of the vehicle, and the test data includes custom function test items; in response to the attribute request generated by the attribute switch, displaying the source data or the test data on the interactive interface of the on-board instrument according to the state represented by the attribute request; performing tests respectively according to the data displayed on the interactive interface to determine the test results.

[0006] In some embodiments of the first aspect of the present application, the attribute switch is divided into at least two categories, one of which is a release state and the other is a debug state, and each type of switch state represents a different state machine.

[0007] In some embodiments of the first aspect of the present application, dividing all the data corresponding to the instrument into source data and test data so that the source data and the test data are associated with different state machines includes: dividing all the data corresponding to the instrument into source data and test data; assigning different data labels to the source data and the test data, wherein a first identifier is used to mark the source data and a second identifier is used to mark the test data; making the source data correspond one-to-one with the state machine in the release state, and at the same time, making the test data correspond one-to-one with the state machine in the debugging state.

[0008] In some embodiments of the first aspect of the present application, the source data or the test data are displayed respectively on the interactive interface of the vehicle instrument according to the state represented by the attribute request, including: if the state represented by the attribute request is a release state, traversing the data tags of all data nodes, and displaying the source data with the data tag as a first identifier on the interactive interface of the vehicle instrument; if the state represented by the attribute request is a debugging state, traversing the data tags of all data nodes, and displaying the test data with the data tag as a second identifier on the interactive interface of the vehicle instrument.

[0009] In some embodiments of the first aspect of the present application, the data displayed on the interactive interface is tested separately to determine the test results, including: when the interactive interface of the on-board instrument only displays the source data, the instrument data is tested according to a vehicle preset instruction to determine a first test result, wherein the vehicle preset instruction is a vehicle instrument function test item; when the interactive interface of the on-board instrument only displays the test data, the custom function test item is tested according to a preset personalized test instruction to determine a second test result.

[0010] In some embodiments of the first aspect of the present application, the Kanzi-based test also includes: comparing the first test result with the first preset result to determine whether the test attributes are consistent, if the test attributes are consistent, determining that the source data test has passed; if the test attributes are inconsistent, determining that the source data test has failed; comparing the second test result with the second preset result to determine whether the test attributes are consistent, if the test attributes are consistent, determining that the test data test has passed; if the test attributes are inconsistent, determining that the test data test has failed.

[0011] In some embodiments of the first aspect of the present application, a test report is generated according to the first test result and the second test result, and the test report is displayed, wherein the test report includes the number of test cases, the case pass rate, and the case fail rate.

[0012] The second aspect of the present application provides a Kanzi-based testing device, including: a switch setting module, which pre-sets an attribute switch based on the instrument design interface where Kanzi is located, and the attribute switch is used to distinguish different state machines; a data configuration module, which is used to divide all data corresponding to the instrument into source data and test data, so that the source data and the test data are associated with different state machines, wherein the source data is instrument data reflecting the actual condition of the vehicle, and the test data includes custom function test items; a data separation module, which is used to respond to the attribute request generated by the attribute switch, and display the source data or the test data on the interactive interface of the on-board instrument according to the state represented by the attribute request; a data testing module, which is used to perform tests according to the data displayed on the interactive interface and determine the test results.

[0013] The third aspect of the present application provides an electronic device, comprising: one or more processing devices; a memory for storing one or more programs; when the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the above-mentioned Kanzi-based testing method.

[0014] A fourth aspect of the present application provides a vehicle, comprising the above-mentioned Kanzi-based testing device, or the above-mentioned electronic device.

[0015] As described above, a technical solution of the Kanzi-based testing method, device, equipment and vehicle described in this application has the following beneficial effects:

[0016] The present application pre-sets an attribute switch through the instrument design interface where Kanzi is located to distinguish different state machines; at the same time, all data corresponding to the instrument are divided into source data and test data, so that the source data and the test data are associated with different state machines; in response to the attribute request generated by the attribute switch, the source data or the test data are respectively displayed on the interactive interface of the vehicle-mounted instrument according to the state represented by the attribute request; in this way, the source data and the test data can be separated and tested separately to determine the test results. On the one hand, it is conducive to timely discovering and solving bugs and defects in the interactive interface, and improving the test efficiency and test accuracy; on the other hand, the real data contained in the source data is separated and tested, and problems can be quickly discovered and repaired in time without actual measurement, avoiding delaying the problem to the subsequent stage to cause greater impact; on the other hand, in the automotive industry, the above-mentioned separation method is used for testing, which can effectively avoid unavoidable problems that may cause traffic accidents when subsequent users are actually driving, thereby improving driving safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1Shown is an implementation environment diagram of a Kanzi-based testing method provided by the present application;

[0018] Figure 2 Shown is a flow chart of a Kanzi-based testing method provided by the present application;

[0019] Figure 3 Shown is a structural block diagram of a Kanzi-based testing device provided by the present application;

[0020] Figure 4 Shown is a schematic diagram of the structure of an electronic device provided by the present application and suitable for implementing an embodiment of the present application. DETAILED DESCRIPTION

[0021] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0022] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the form, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0023] The embodiment of the present application provides a Kanzi-based testing method, which can be applied to a vehicle-mounted terminal, a server, or software running on a vehicle-mounted terminal. Figure 1 , is an implementation environment diagram of a Kanzi-based testing method provided in the present application. The Kanzi-based testing method in the present application can be applied to a Kanzi-based testing scenario. For example, Figure 1As shown, the execution subject of the method provided in the embodiment of the present application can be a Kanzi-based test device 400 or a target vehicle 100. The Kanzi-based test device 400 is arranged in the target vehicle 100. A property switch is pre-set based on the instrument design interface where Kanzi is located, and the property switch is used to distinguish different state machines; all data corresponding to the instrument are divided into source data and test data, so that the source data and the test data are associated with different state machines; in response to the property request generated by the property switch, the source data or the test data are respectively displayed on the interactive interface of the on-board instrument according to the state represented by the property request; tests are respectively performed according to the data displayed on the interactive interface to determine the test results.

[0024] Among them, the target vehicle is a new energy vehicle, for example, new energy vehicles include but are not limited to pure electric vehicles, hybrid electric vehicles, fuel cell electric vehicles, gas fuel vehicles, biofuel vehicles, for example, also include supercapacitor vehicles, flywheel energy storage vehicles, etc., and even flying cars or aircraft.

[0025] At present, automotive instruments play a vital role in the use of automobiles. They are not only an important way for drivers to obtain vehicle information, but also can improve driving experience, ensure driving safety, provide navigation and entertainment functions, and play an indispensable role in the normal operation of vehicles and user experience. Therefore, the development of automotive instruments requires comprehensive consideration of functional requirements, user experience, technical applications and data connections to ensure that the instrument has stable performance and strong ease of use to meet the needs of drivers.

[0026] In the development of in-vehicle instruments, developers will use the tool Kanzi Studio, which has an intuitive and easy-to-use user interface and rich interactive design tools, allowing developers to easily and quickly create attractive and easy-to-use in-vehicle instrument interfaces. In addition, Kanzi Studio provides a wealth of customization options, and developers can flexibly design and layout according to the needs of in-vehicle instruments to meet the needs of different models and user groups. Kanzi Studio supports hardware acceleration and real-time rendering technology, which can ensure that the interface of the in-vehicle instrument can run smoothly in various situations and has a good response speed. Kanzi Studio supports multiple operating systems and hardware platforms, and can be easily deployed on vehicle systems of different brands and models, improving development efficiency and flexibility.

[0027] However, the main purpose of using kanzi is to design the interface of the vehicle instrument. The bottom layer writes the received data signal into the data source where the kanzi tool specifically stores data through code. In the corresponding visualization interface of kanzi, in addition to displaying real instrument data, it also displays custom instrument data. If you combine the entire system to debug the functions you designed every time, it will take a lot of time and energy, which is not conducive to quickly discovering and locating bugs and defects in the interactive interface.

[0028] The present application is described in detail below through specific embodiments. Figure 2 As shown, Figure 2 The Kanzi-based test method flow chart provided in the embodiment of the present application includes the following steps:

[0029] Step S210, presetting an attribute switch based on the instrument design interface where Kanzi is located, wherein the attribute switch is used to distinguish different state machines;

[0030] Specifically, the attribute switches are of at least two types, one of which is a release state and the other is a debug state, and each type of switch state represents a different state machine.

[0031] It should be noted that the main function of the property switch is to distinguish different state machines. A state machine is a way of describing the behavior or response of an object during its life cycle, which can be regarded as a logical control process.

[0032] For example, in actual operation, you can create a new property property: simulator in the kanzi instrument design interface, name it simulator, and set its type to be boolean (Boolean) or integer (int), so as to achieve the purpose of distinguishing different state machines.

[0033] Step S220, dividing all data corresponding to the instrument into source data and test data, so that the source data and the test data are associated with different state machines, wherein the source data is instrument data reflecting the actual vehicle condition, and the test data includes custom function test items;

[0034] Specifically, all data corresponding to the instrument need to be divided into source data and test data. Source data refers to instrument data that reflects the actual condition of the vehicle, which directly reflects the actual operating status of the vehicle; and test data includes customized functional test items, which are used to test various functions and performances of the instrument, that is, the data customized by the user in the current interface, that is, the data set by the developer himself for testing. Each type of data is only associated with one type of state machine to facilitate subsequent processing and display.

[0035] It should be noted that all data corresponding to the instrument are divided into source data and test data; different data labels are assigned to the source data and the test data, wherein a first identifier is used to mark the source data and a second identifier is used to mark the test data; and then the source data is matched one-to-one with the state machine in the release state, and at the same time, the test data is matched one-to-one with the state machine in the debugging state.

[0036] For example, a state machine is created in the root node of all data to define and manage the different states and transitions of the interactive user interface of the vehicle instrument. That is, the state machine is switched to help developers organize and manage the different functions and user interface elements of the application, and automatically switch different states based on input or other conditions.

[0037] Step S230, in response to the attribute request generated by the attribute switch, displaying the source data or the test data on the interactive interface of the vehicle instrument according to the state represented by the attribute request;

[0038] It should be noted that if the state represented by the attribute request is a publishing state, the data tags of all data nodes are traversed, and the source data whose data tag is the first identifier is displayed on the interactive interface of the vehicle instrument;

[0039] If the state represented by the attribute request is a debugging state, the data tags of all data nodes are traversed, and the test data whose data tag is the second identifier is displayed on the interactive interface of the vehicle instrument.

[0040] For example, an attribute request can represent two different states, one is the release state and the other is the debugging state; the two different data are displayed separately on the interactive interface through the advance mapping relationship, depending on the association relationship between the previously set attribute switch and the state machine. When the attribute switch is switched to a certain state, the corresponding data (source data or test data) is displayed on the interactive interface of the instrument according to the state difference. That is, each time a test is performed, the interactive interface of the on-board instrument only displays one type of data.

[0041] It should also be noted that in actual applications, two states, namely Debug and release, are set by pre-setting the boolean type simulator control property in the datalayer state manager state machine.

[0042] Step S240, performing tests respectively according to the data displayed on the interactive interface to determine the test results.

[0043] Optionally, in some embodiments, performing tests respectively according to the data displayed on the interactive interface to determine the test results includes:

[0044] When the interactive interface of the vehicle-mounted instrument displays only the source data, the instrument data is tested according to a vehicle preset instruction to determine a first test result, wherein the vehicle preset instruction is a vehicle instrument function test item;

[0045] When the interactive interface of the vehicle-mounted instrument only displays the test data, the custom function test item is tested according to the preset personalized test instruction to determine a second test result.

[0046] If the source data is displayed, the accuracy and real-time performance of the vehicle instrument data will be tested; if the test data is displayed, whether the customized functions of the instrument meet expectations will be tested.

[0047] For example, in the Debug state, when the property simulator is set to the selected state, the control interface displays the content contained in the current state. All nodes in the Debug state correspond to the content displayed in the interactive interface, but the data displayed uses the data customized by the user in the current interface, that is, the data set by the developer himself for testing.

[0048] For another example, in the Release state, when the simulator property is set to unchecked, the control interface displays the contents of the current state. All nodes in the Release state also correspond to the contents displayed in the interactive interface. However, the data used for the displayed contents, such as vehicle speed, time, and power, are bound one by one to the data source in the data source in the release state, and the data source stores the real data from the underlying layer.

[0049] When the simulator switch button is selected, all the data of the kanzi interactive interface are customized and can be modified in kanzi in real time. However, after canceling the simulator button, the data source of the interactive interface is the actual vehicle condition.

[0050] In this embodiment, by setting a property switch, the instrument data is divided into source data and test data, and the corresponding data is displayed on the interactive interface of the instrument according to the state of the property switch, and finally the test and result are determined. This process helps to improve the flexibility and testability of the instrument design, so that developers can debug and optimize the instrument more conveniently.

[0051] Optionally, in some embodiments, the Kanzi-based testing method further includes:

[0052] Compare the first test result with the first preset result to determine whether the test attributes are consistent, if the test attributes are consistent, determine that the source data test has passed; if the test attributes are inconsistent, determine that the source data test has failed;

[0053] The second test result is compared with the second preset result to determine whether the test attributes are consistent. If the test attributes are consistent, it is determined that the test data test has passed; if the test attributes are inconsistent, it is determined that the test data test has failed.

[0054] Specifically, by comparing the test results with the preset results, it is determined whether the data meets the preset standards or expectations, thereby judging whether the test passes.

[0055] For example, add instructions for setting data source values ​​and attribute values ​​to the test instructions, obtain the test instructions corresponding to each test node, encapsulate and obtain the corresponding tasks, and then execute them in the main thread of the Kanzi application in sequence, and obtain the attribute values ​​of the nodes in the next frame after execution as test attribute data. Finally, compare the test attribute data with the expected results and output the self-test results. Test and verify the Kanzi HMI implementation layer on the target machine to achieve independent verification of the functional integrity and correctness of the KanziHMI program. In this way, it can not only be used for self-testing during the development process, but also help quickly locate the problem attribution during the problem solving stage.

[0056] Optionally, in some embodiments, a test report is generated according to the first test result and the second test result, and the test report is displayed, wherein the test report includes the number of test cases, the case pass rate, and the case fail rate.

[0057] Specifically, the number of test cases refers to the total number of test cases executed in this test. It covers all aspects of source data and test data to ensure the integrity and accuracy of the data. The case pass rate is the ratio of the number of passed test cases to the total number of test cases. If the result of a test case is consistent with the preset result, then the case passes. The higher the case pass rate, the closer the tested data is to the expected standard or expectation. The case failure rate is the ratio of the number of failed test cases to the total number of test cases. If the result of a test case is inconsistent with the preset result, then the case fails. The lower the case failure rate, the higher the data quality and the fewer problems.

[0058] In this embodiment, based on the above three key indicators, a comprehensive perspective is provided to evaluate the effectiveness of this test, such as specific test cases, test result descriptions, potential problem analysis, etc., to facilitate understanding and solving problems found in the test.

[0059] For example, the test report can be presented in at least one of a text form, a graphical interface, or a report. The test report is intended to provide relevant personnel with accurate and detailed information about the test results to facilitate decision making and problem repair.

[0060] In this embodiment, the Kanzi-based test method pre-sets an attribute switch through the instrument design interface where Kanzi is located to distinguish different state machines; at the same time, all data corresponding to the instrument are divided into source data and test data, so that the source data and the test data are associated with different state machines; in response to the attribute request generated by the attribute switch, the source data or the test data are respectively displayed on the interactive interface of the vehicle-mounted instrument according to the state represented by the attribute request; in this way, the source data and the test data can be separated and tested separately to determine the test results. On the one hand, it is conducive to timely discovering and solving bugs and defects in the interactive interface, and improving the test efficiency and test accuracy; on the other hand, the real data contained in the source data is separated and tested, and problems can be quickly discovered and repaired in time without actual measurement, avoiding delaying the problem to the subsequent stage to cause greater impact; on the other hand, in the automotive industry, the above-mentioned separation method is used for testing, which can effectively avoid unavoidable problems that may cause traffic accidents when subsequent users are actually driving, thereby improving driving safety.

[0061] See also Figure 3 , is a structural block diagram of a Kanzi-based test device provided in this application, including:

[0062] A switch setting module 301 pre-sets an attribute switch based on the instrument design interface where Kanzi is located, and the attribute switch is used to distinguish different state machines;

[0063] A data configuration module 302 is used to divide all data corresponding to the instrument into source data and test data, so that the source data and the test data are associated with different state machines, wherein the source data is instrument data reflecting the actual vehicle condition, and the test data includes custom function test items;

[0064] A data separation module 303, for responding to the attribute request generated by the attribute switch, and displaying the source data or the test data on the interactive interface of the vehicle instrument according to the state represented by the attribute request;

[0065] The data testing module 304 is used to perform tests according to the data displayed on the interactive interface and determine the test results.

[0066] It should be noted that in the development of vehicle-mounted instruments, by using custom property switches to control the state machine, separating the user interface from the application data, and removing the dependency between the Kanzi Studio project and the application code that defines the Kanzi application for self-testing, it is helpful to promptly discover and resolve bugs and defects in the interactive interface and ensure the quality of the vehicle-mounted instrument software.

[0067] It should also be noted that there is a one-to-one correspondence between the Kanzi-based testing method and the Kanzi-based testing device. Here, the technical details and technical effects involved in the Kanzi-based testing device are the same as those of the above-mentioned identification method, which will not be elaborated here. Please refer to the above-mentioned Kanzi-based testing method.

[0068] The present application is based on a test device of Kanzi, and a property switch is pre-set through the instrument design interface where Kanzi is located to distinguish different state machines; at the same time, all data corresponding to the instrument are divided into source data and test data, so that the source data and the test data are associated with different state machines; in response to the property request generated by the property switch, the source data or the test data are respectively displayed on the interactive interface of the vehicle-mounted instrument according to the state represented by the property request; in this way, the source data and the test data can be separated and tested separately to determine the test results. On the one hand, it is conducive to timely discovering and solving bugs and defects in the interactive interface, and improving the test efficiency and test accuracy; on the other hand, the real data contained in the source data is separated and tested, and problems can be quickly discovered and repaired in time without actual measurement, avoiding delaying the problem to the subsequent stage to cause greater impact; on the other hand, in the automotive industry, the above-mentioned separation method is used for testing, which can effectively avoid unavoidable problems that may cause traffic accidents when subsequent users are actually driving, thereby improving driving safety.

[0069] Reference below Figure 4 , see Figure 4 , Figure 4 It is a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. It should be noted that: Figure 4 The electronic device 400 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0070] like Figure 4As shown, electronic device 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to the program stored in read-only memory (ROM) 402 or the program loaded from storage part 408 to random access memory (RAM) 403, such as executing the method in the above embodiment. In RAM 403, various programs and data required for system operation are also stored. CPU 401, ROM 402 and RAM 403 are connected to each other through bus 404. Input / output (I / O) interface 405 is also connected to bus 404.

[0071] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed so that a computer program read therefrom is installed into the storage section 408 as needed.

[0072] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 909, and / or installed from a removable medium 911. When the computer program is executed by a central processing unit (CPU) 901, various functions defined in the device of the present application are executed.

[0073] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above.

[0074] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not constitute limitations on the units themselves in some cases.

[0075] In other embodiments, the present application also provides a vehicle, which may include the above-mentioned Kanzi-based testing device, or the above-mentioned electronic device.

[0076] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A test method based on Kanzi, characterized in that: include: A property switch is pre-set based on the instrument design interface where Kanzi is located. The property switch is used to distinguish different state machines. The property switch is at least two types, one of which is a release state and the other is a debug state. Each type of switch state represents a different state machine. Dividing all data corresponding to the instrument into source data and test data through data tags, so that the source data and the test data are associated with different state machines, wherein the source data is instrument data reflecting the actual vehicle condition, and the test data includes custom function test items; In response to the attribute request generated by the attribute switch, the source data or the test data are displayed on the interactive interface of the vehicle instrument according to the state represented by the attribute request; wherein, if the state represented by the attribute request is the release state, the data tags of all data nodes are traversed, and the source data whose data tags are the first identifier are displayed on the interactive interface of the vehicle instrument; if the state represented by the attribute request is the debugging state, the data tags of all data nodes are traversed, and the test data whose data tags are the second identifier are displayed on the interactive interface of the vehicle instrument; Tests are performed respectively according to the data displayed on the interactive interface to determine the test results.

2. The Kanzi-based test method according to claim 1, characterized in that: The dividing all data corresponding to the instrument into source data and test data so that the source data and the test data are associated with different state machines includes: Dividing all data corresponding to the instrument into source data and test data; Assigning different data labels to the source data and the test data, wherein a first identifier is used to mark the source data and a second identifier is used to mark the test data; The source data is matched one-to-one with the state machine in the release state, and at the same time, the test data is matched one-to-one with the state machine in the debug state.

3. The Kanzi-based test method according to claim 1 or 2, characterized in that: The performing tests respectively according to the data displayed on the interactive interface to determine the test results includes: When the interactive interface of the vehicle-mounted instrument displays only the source data, the instrument data is tested according to a vehicle preset instruction to determine a first test result, wherein the vehicle preset instruction is a vehicle instrument function test item; When the interactive interface of the vehicle-mounted instrument only displays the test data, the custom function test item is tested according to the preset personalized test instruction to determine a second test result.

4. The Kanzi-based test method according to claim 3, characterized in that: Also includes: Compare the first test result with the first preset result to determine whether the test attributes are consistent, and if the test attributes are consistent, determine that the source data test has passed; If the test attributes are inconsistent, determining that the source data test fails; Compare the second test result with the second preset result to determine whether the test attributes are consistent, and if the test attributes are consistent, determine that the test data test passes; If the test attributes are inconsistent, it is determined that the test data test fails.

5. The Kanzi-based test method according to claim 3, characterized in that: A test report is generated according to the first test result and the second test result, and the test report is displayed, wherein the test report includes the number of test cases, the case pass rate, and the case fail rate.

6. A test device based on Kanzi, characterized in that: include: A switch setting module pre-sets an attribute switch based on the instrument design interface where Kanzi is located. The attribute switch is used to distinguish different state machines. The attribute switch is divided into at least two categories, one of which is the release state and the other is the debugging state. Each switch state represents a different state machine. A data configuration module, used to divide all data corresponding to the instrument into source data and test data through data tags, so that the source data and the test data are associated with different state machines, wherein the source data is instrument data reflecting the actual vehicle condition, and the test data includes custom function test items; A data separation module, for responding to the attribute request generated by the attribute switch, and displaying the source data or the test data on the interactive interface of the vehicle instrument according to the state represented by the attribute request; wherein, if the state represented by the attribute request is the release state, the data tags of all data nodes are traversed, and the source data whose data tags are the first identifier are displayed on the interactive interface of the vehicle instrument; if the state represented by the attribute request is the debugging state, the data tags of all data nodes are traversed, and the test data whose data tags are the second identifier are displayed on the interactive interface of the vehicle instrument; The data testing module is used to perform tests according to the data displayed on the interactive interface and determine the test results.

7. An electronic device, characterized in that: include: one or more processing devices; A memory for storing one or more programs; When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the Kanzi-based testing method described in any one of claims 1 to 5.

8. A vehicle, characterized in that: It comprises using the Kanzi-based testing device described in claim 6, or using the electronic device described in claim 7.