Function execution state determination method and device, electronic equipment and storage medium
The method and device for determining function execution status in Internet of Vehicles systems address the challenge of undetermined function execution by comparing screens to automate testing, ensuring accurate and secure function execution.
Patent Information
- Application Number
- CN202310739375.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-20
- Publication Date
- 2024-12-20
AI Technical Summary
Existing Internet of Vehicles technologies cannot determine the specific execution of vehicle functions, limiting the effectiveness of functional services during operation.
A method and device for determining function execution status by comparing a tested screen with a target screen to obtain a consistency comparison result, using a screen acquisition module, result determination module, and state determination module to automate the testing of preset function groups.
Enables effective determination of the execution status of preset function groups, ensuring automated testing and reducing conflicts and risks in function execution.
Smart Images

Figure CN119166488A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automated testing technology, and in particular to a method, device, electronic device and storage medium for determining a function execution state. Background Art
[0002] The Internet of Vehicles refers to the on-board equipment on the vehicle using wireless communication technology to effectively utilize all vehicle dynamic information on the information network platform and provide different functional services during vehicle operation. In related technologies, many functions of the Internet of Vehicles can only send signals, and the specific execution of the functions cannot be determined. Summary of the invention
[0003] The embodiments of the present application provide a method, device, electronic device and storage medium for determining a function execution state to solve the problems existing in the related art. The technical solution is as follows:
[0004] In a first aspect, an embodiment of the present application provides a method for determining a function execution state, comprising:
[0005] When the preset function group is triggered, the screen to be tested displayed in the acquisition function page, the preset function group includes at least one preset function;
[0006] Comparing the screen to be tested with the target screen to obtain a consistency comparison result, wherein the target screen is a screen displayed when the execution status of the preset functions in the preset function group of the function page is normal;
[0007] Based on the consistency comparison result, the execution status of the preset function group is determined.
[0008] In a second aspect, an embodiment of the present application provides a device for determining a function execution state, including:
[0009] A screen acquisition module, used to acquire the screen to be tested displayed in the function page when the preset function group is triggered, and the preset function group includes at least one preset function;
[0010] A result determination module is used to compare the screen to be tested with the target screen to obtain a consistency comparison result, wherein the target screen is a screen displayed when the execution status of the preset functions in the preset function group is normal on the function page;
[0011] The state determination module is used to determine the execution state of the preset function group based on the consistency comparison result.
[0012] In a third aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor so that the at least one processor can execute the method for determining the above-mentioned function execution status.
[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer, the method in any one of the above-mentioned embodiments is executed.
[0014] The advantages or beneficial effects of the above technical solution include at least: by collecting the screen to be tested displayed in the function page when the preset function group is triggered, and determining the execution status of the preset function group based on the consistency comparison result between the screen to be tested and the target screen, the specific execution status of the preset function group can be effectively determined, thereby realizing the automated testing of the preset function group.
[0015] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present application will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present application and should not be regarded as limiting the scope of the present application.
[0017] Figure 1 A flowchart of a method for determining a function execution state according to an embodiment of the present application;
[0018] Figure 2 This is an application example diagram of a method for determining a function execution state according to an embodiment of the present application;
[0019] Figure 3 FIG. 1 is another application example diagram of the method for determining the function execution status according to an embodiment of the present application;
[0020] Figure 4 is a schematic diagram of a device for determining a function execution state according to an embodiment of the present application;
[0021] Figure 5 The present invention is a block diagram of an electronic device used to implement the method for determining the function execution status of an embodiment of the present application. DETAILED DESCRIPTION
[0022] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present application. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.
[0023] Combine the following Figure 1-Figure 3 A method for determining the function execution state according to an embodiment of the first aspect of the present application is described. The function may be an in-vehicle function such as an Internet of Vehicles function. In the following description of the present application, the function is taken as an in-vehicle function for example. Of course, those skilled in the art can understand that the function may also be a function in other application scenarios, not limited to an in-vehicle function.
[0024] Figure 1 FIG. 1 is a flow chart of a method for determining a function execution state according to an embodiment of the present application. Figure 1 As shown, the method for determining the function execution status may include:
[0025] Step S101: when a preset function group is triggered, a screen to be tested displayed in a function page is collected, and the preset function group includes at least one preset function.
[0026] For example, the function page can be displayed on the in-vehicle screen, wherein the preset functions can be in-vehicle functions such as turning on the air conditioner, turning off the air conditioner, playing music, turning off music, playing the radio, turning off the radio, adjusting the seat backward, adjusting the seat forward, opening the door, etc., but are not limited thereto.
[0027] Step S102: Compare the screen to be tested with the target screen to obtain a consistency comparison result, wherein the target screen is a screen displayed when the execution status of the preset functions in the preset function group of the function page is normal.
[0028] For example, the target picture may be a manually taken photo or a manually recorded video when the execution status of the preset functions in the preset function group are all normal.
[0029] Step S103: Determine the execution status of the preset function group based on the consistency comparison result.
[0030] Exemplarily, when the preset function group includes a preset function and the preset function is to turn on the air conditioner, when the execution state of the preset function is normal, the picture displayed in the function page (i.e., the target picture) is the air conditioner switch button is turned on. When the preset function is triggered, the screen to be tested displayed in the function page can be collected, and then the screen to be tested is compared with the target picture. When the screen to be tested is consistent with the target picture, the consistency comparison result is consistent, and the execution state of the preset function group can be determined to be normal; when the screen to be tested is inconsistent with the target picture, the consistency comparison result is inconsistent, and the execution state of the preset function group can be determined to be abnormal.
[0031] According to the method for determining the function execution status of the embodiment of the present application, by collecting the screen to be tested displayed in the function page when the preset function group is triggered, and determining the execution status of the preset function group based on the consistency comparison result between the screen to be tested and the target screen, the specific execution status of the preset function group can be effectively determined, and the automated testing of the preset function group can be realized.
[0032] In one implementation, the screen to be tested includes multimedia content to be tested that corresponds one-to-one to the preset functions, and the target screen includes target multimedia content that corresponds one-to-one to the preset functions.
[0033] It should be noted that "multimedia content" can be understood as media content in the form of text, images, videos, sounds, animations, etc. For example, the multimedia content to be tested and the target multimedia content can be text, images, videos, sounds, animations, etc. Of course, those skilled in the art can understand that the multimedia content to be tested and the target multimedia content are not limited thereto, and the specific forms of expression of the multimedia content to be tested and the target multimedia content can be specifically determined according to actual needs to better meet actual applications.
[0034] In step S102, the screen to be tested is compared with the target screen to obtain a consistency comparison result, which may include: when each multimedia content to be tested is consistent with the corresponding target multimedia content, obtaining a consistency comparison result of consistency; when at least one multimedia content to be tested is inconsistent with the corresponding target multimedia content, obtaining a consistency comparison result of inconsistency.
[0035] Exemplarily, when the preset function group includes one preset function, the screen to be tested includes one multimedia content to be tested, and the target screen includes one target multimedia content. When the preset function group includes multiple preset functions, the screen to be tested includes multiple multimedia contents to be tested corresponding to the multiple preset functions one by one, and the target screen includes multiple target multimedia contents corresponding to the multiple preset functions one by one. In the description of this application, the meaning of "multiple" is two or more.
[0036] Exemplarily, the preset function group includes three preset functions (referred to as the first preset function, the second preset function and the third preset function) and the first preset function is to turn on the air conditioner, the second preset function is to open the main driving door, and the third preset function is to play the radio station. When the execution status of the three preset functions in the preset function group are all normal, the target multimedia content corresponding to the first preset function in the target screen is that the air conditioner switch button is on, the target multimedia content corresponding to the second preset function in the target screen is that the main driving door state is open, and the target multimedia content corresponding to the third preset function in the target screen is that the radio station is played in the player. When the preset function group is triggered, the screen to be tested displayed in the function page can be collected to obtain three multimedia contents to be tested that correspond to the three preset functions in the screen to be tested. When the three multimedia contents to be tested are respectively that the air conditioner switch button is on, the main driving door state is open, and the radio station is played in the player, the consistency comparison result is consistent, and it can be determined that the execution status of the preset function group is normal. When the multimedia content to be tested corresponding to the first preset function is not the air-conditioning switch button being on, and / or the multimedia content to be tested corresponding to the second preset function is not the driver's door being open, and / or the multimedia content to be tested corresponding to the third preset function is not the radio station being played in the player, the consistency comparison result is inconsistent, and it can be determined that the execution status of the preset function group is abnormal.
[0037] In this embodiment, the consistency comparison result of the screen to be tested and the target screen can be obtained according to whether each multimedia content to be tested is consistent with the corresponding target multimedia content, so as to determine the execution status of the preset function group. In the case where there are multiple preset functions in the preset function group, the conflict and risk of the execution of multiple preset functions in the preset function group can be determined to realize the automated test of the preset function group.
[0038] In one implementation, the method for determining the function execution status further includes: determining the target multimedia content corresponding to the preset function from a preset mapping relationship library, wherein the mapping relationship library includes a mapping relationship between each preset function and each target multimedia content.
[0039] Exemplarily, Table 1 is a table of correspondences between multiple preset functions and multiple multimedia contents. Referring to Table 1, the mapping relationship library may include multiple preset functions, and each preset function may correspond to multiple multimedia contents. The number of multimedia contents corresponding to any two preset functions may be the same or different. Each preset function has a mapping relationship with the corresponding multiple multimedia contents. One of the multiple multimedia contents corresponding to each preset function is the target multimedia content.
[0040] For example, in Table 1, preset function 1 may be turning on the air conditioner, and the multiple multimedia contents corresponding to preset function 1 (i.e., multimedia content 1, multimedia content 2, ... multimedia content N) may be respectively the air conditioner switch button is on, the air conditioner switch button is off, ..., etc., and the mapping relationship between preset function 1 and the multiple multimedia contents may be respectively path A1, path A2, ..., etc. The target multimedia content among the multiple multimedia contents is the air conditioner switch button is on. Preset function 2 may be opening the main driving door, and the multiple multimedia contents corresponding to preset function 2 may be respectively the main driving door state is open, the main driving door state is off, ..., etc., and the mapping relationship between preset function 2 and the multiple multimedia contents may be respectively path B1, path B2, ..., etc. The target multimedia content among the multiple multimedia contents is the main driving door state is open.
[0041] Table 1
[0042]
[0043]
[0044] In this embodiment, when the preset function group is triggered, the target multimedia content corresponding to the preset function in the preset function group can be determined from the preset mapping relationship library, and the search is convenient and fast.
[0045] In one embodiment, the method for determining the function execution status also includes: constructing multiple preset functions into multiple function groups to be selected, each function group to be selected includes at least one preset function; determining an abnormal function group from the multiple function groups to be selected; filtering the abnormal function group to obtain the preset function group.
[0046] It should be noted that any two of the multiple function groups to be selected are the first function group to be selected and the second function group to be selected, and the preset functions in the first function group to be selected and the preset functions in the second function group to be selected can be completely different; or, at least part of the preset functions in the first function group to be selected and at least part of the preset functions in the second function group to be selected are the same. In the case where the function group to be selected includes multiple preset functions, the multiple preset functions can be completely different; or, at least two of the multiple preset functions are the same.
[0047] For example, the vehicle may have a plurality of preset functions, each of which may be executed individually, or each of which may be executed in combination with other preset functions. Figure 2 FIG. 1 is an application example diagram of a method for determining a function execution state according to an embodiment of the present application. Figure 2, when multiple preset functions are executed in combination, first, multiple empty sequences of different lengths can be randomly generated, and each empty sequence can include multiple units. Then, based on the multiple empty sequences and the multiple preset functions, multiple function groups to be selected are generated. The multiple preset functions in each function group to be selected correspond to the multiple units one by one. For example, the multiple preset functions can include preset functions 1-6. There can be three function groups to be selected, namely, function group C to be selected, function group D to be selected, and function group E to be selected. The multiple preset functions in function group C to be selected can be preset function 4, preset function 1, preset function 3, preset function 2, preset function 3, preset function 4, and preset function 1; the multiple preset functions in function group D to be selected can be preset function 2, preset function 2, preset function 3, and preset function 4; the multiple preset functions in function group E to be selected can be preset function 5, preset function 6, preset function 1, preset function 2, and preset function 3.
[0048] Figure 3 FIG. 2 is another application example diagram of the method for determining the function execution status according to an embodiment of the present application. Figure 3 When the preset function group is triggered, the multimedia content to be tested corresponding to each preset function can be compared with the target multimedia content. When the multimedia content to be tested is consistent with the corresponding target multimedia content, a "√" is marked at the position corresponding to the preset function; when the multimedia content to be tested is inconsistent with the corresponding target multimedia content, a "×" is marked at the position corresponding to the preset function. Figure 3 In the function group C to be selected, in the order from left to right, preset function 4 is marked as “√”, preset function 1 is marked as “×”, preset function 3 is marked as “√”, preset function 2 is marked as “√”, preset function 3 is marked as “√”, preset function 4 is marked as “√”, and preset function 1 is marked as “×”; in the function group D to be selected, in the order from left to right, preset function 2 is marked as “×”, preset function 2 is marked as “√”, preset function 3 is marked as “√”, and preset function 4 is marked as “√”.
[0049] In this embodiment, by combining multiple preset functions into multiple function groups to be selected, the combination diversity of multiple preset functions in the scene engine can be achieved. In addition, in this embodiment, abnormal function groups in multiple function groups to be selected can be filtered to obtain preset function groups that meet the requirements.
[0050] In one embodiment, an abnormal function group is determined from a plurality of function groups to be selected, including: determining a plurality of associated preset functions having a dependency relationship from a plurality of preset functions; determining a target execution order of the plurality of associated preset functions based on the dependency relationship; obtaining an actual execution order of the associated preset functions in the plurality of function groups to be selected; and determining a function group to be selected whose actual execution order is inconsistent with the target execution order as an abnormal function group.
[0051] For example, the plurality of associated preset functions may include engaging the P gear and opening the main driving door, which have a dependency relationship. Based on the dependency relationship between engaging the P gear and opening the main driving door, it can be determined that the target execution order of engaging the P gear and opening the main driving door is to engage the P gear first and then open the main driving door. If the actual execution order of engaging the P gear and opening the main driving door in the to-be-selected function group is to open the main driving door first and engage the P gear later, or only open the main driving door without engaging the P gear, then the to-be-selected function group can be determined to be an abnormal function group.
[0052] Therefore, it can be ensured that the actual execution order of the multiple associated preset functions in the to-be-selected function group can meet the dependency relationship of the associated preset functions, thereby improving the execution security of the preset function group.
[0053] In one embodiment, the method for determining the function execution status may further include: obtaining a prompt rule corresponding to the execution status of a preset function group; and generating corresponding prompt information based on the prompt rule. For example, when the execution status of the preset function group is normal, a voice prompt of "normal" may be given; when the execution status of the preset function group is abnormal, a voice prompt of "abnormal" may be given. In this way, the execution status of the preset function group can be effectively prompted, so that the staff can check the preset function in time when the execution status of the preset function group is abnormal.
[0054] Figure 4 Schematic diagram of a device for determining a function execution state according to an embodiment of the present application. Figure 4 As shown, the device 400 may include: a screen acquisition module 401, which is used to acquire the screen to be tested displayed in the function page when the preset function group is triggered, wherein the preset function group includes at least one preset function; a result determination module 402, which is used to compare the screen to be tested with the target screen to obtain a consistency comparison result, wherein the target screen is a screen displayed on the function page when the execution status of the preset functions in the preset function group are all normal; a status determination module 403, which is used to determine the execution status of the preset function group based on the consistency comparison result.
[0055] In one embodiment, the screen to be tested includes multimedia content to be tested that corresponds one-to-one to the preset functions, and the target screen includes target multimedia content that corresponds one-to-one to the preset functions; the result determination module 402 is specifically used to: when each multimedia content to be tested is consistent with the corresponding target multimedia content, the consistency comparison result is consistent; when at least one multimedia content to be tested is inconsistent with the corresponding target multimedia content, the consistency comparison result is inconsistent.
[0056] In one embodiment, the function execution status determination device 400 also includes: a target multimedia content determination module, which is used to determine the target multimedia content corresponding to the preset function from a preset mapping relationship library, wherein the mapping relationship library includes a mapping relationship between each preset function and each target multimedia content.
[0057] In one embodiment, the function execution status determination device 400 also includes: a to-be-selected function group determination module, used to combine multiple preset functions into multiple to-be-selected function groups; an abnormal function group determination module, used to determine an abnormal function group from multiple to-be-selected function groups; and a preset function group determination module, used to filter abnormal function groups to obtain preset function groups.
[0058] In one embodiment, the abnormal function group determination module is specifically used to: determine a plurality of associated preset functions having a dependency relationship from a plurality of preset functions; determine a target execution order of the plurality of associated preset functions based on the dependency relationship; obtain an actual execution order of the associated preset functions in a plurality of candidate function groups; and determine a candidate function group whose actual execution order is inconsistent with the target execution order as an abnormal function group.
[0059] In one embodiment, the function execution status determination device 400 further includes: a prompt rule acquisition module, used to acquire the prompt rule corresponding to the execution status of the preset function group; and a prompt information generation module, used to generate corresponding prompt information based on the prompt rule.
[0060] The functions of the modules in the devices in the embodiments of the present invention can be found in the corresponding descriptions of the above methods, which will not be described in detail here.
[0061] Figure 5 FIG. 1 is a block diagram showing a structure of an electronic device according to an embodiment of the present application. Figure 5 As shown, the electronic device includes: a memory 510 and a processor 520, and the memory 510 stores instructions that can be run on the processor 520. When the processor 520 executes the instruction, the method for determining the function execution state in the above-mentioned embodiment is implemented. The number of the memory 510 and the processor 520 can be one or more. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0062] The electronic device may also include a communication interface 530 for communicating with external devices and performing data exchange transmission. The various devices are interconnected using different buses and may be installed on a common motherboard or in other ways as needed. The processor 520 may process instructions executed within the electronic device, including instructions stored in or on a memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to an interface). In other embodiments, if necessary, multiple processors and / or multiple buses may be used together with multiple memories and multiple memories. Similarly, multiple electronic devices may be connected, each device providing part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). The bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0063] Optionally, in a specific implementation, if the memory 510, the processor 520 and the communication interface 530 are integrated on a chip, the memory 510, the processor 520 and the communication interface 530 can communicate with each other through an internal interface.
[0064] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.
[0065] In one embodiment, the processor may include a cockpit domain control module.
[0066] An embodiment of the present application provides a computer-readable storage medium (such as the memory 510 described above), which stores computer instructions. When the program is executed by a processor, the method provided in the embodiment of the present application is implemented.
[0067] Optionally, the memory 510 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 510 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 510 may optionally include a memory remotely arranged relative to the processor 520, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0068] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.
[0069] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0070] Any process or method description in the flow chart or otherwise described herein can be understood to represent a module, fragment or portion of a code including one or more (two or more) executable instructions for implementing the steps of a specific logical function or process. And the scope of the preferred embodiment of the present application includes other implementations, in which the functions may not be performed in the order shown or discussed, including in a substantially simultaneous manner or in a reverse order according to the functions involved.
[0071] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.
[0072] It should be understood that the various parts of the present application can be implemented with hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented with software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium, and when the program is executed, it includes one of the steps of the method embodiment or a combination thereof.
[0073] In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a disk or an optical disk, etc.
[0074] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for determining a function execution state, It is characterized in that include: When a preset function group is triggered, the screen to be tested displayed in the acquisition function page, wherein the preset function group includes at least one preset function; Comparing the screen to be tested with a target screen to obtain a consistency comparison result, wherein the target screen is a screen displayed when the execution states of the preset functions in the preset function group of the function page are all normal; Based on the consistency comparison result, an execution state of the preset function group is determined.
2. The method according to claim 1, It is characterized in that The screen to be tested includes the multimedia content to be tested corresponding to the preset functions one by one, and the target screen includes the target multimedia content corresponding to the preset functions one by one; Comparing the image to be tested with the target image to obtain a consistency comparison result includes: When each of the multimedia contents to be tested is consistent with the corresponding target multimedia contents, obtaining the consistency comparison result as consistent; In the case that at least one of the multimedia contents to be tested is inconsistent with the corresponding target multimedia content, the consistency comparison result is obtained as inconsistent.
3. The method according to claim 2, It is characterized in that Also includes: The target multimedia content corresponding to the preset function is determined from a preset mapping relationship library, wherein the mapping relationship library includes mapping relationships between each preset function and each target multimedia content.
4. The method according to claim 1, It is characterized in that Also includes: Constructing a plurality of preset functions into a plurality of function groups to be selected, each of the function groups to be selected including at least one of the preset functions; Determine an abnormal function group from the plurality of function groups to be selected; The abnormal function group is filtered to obtain the preset function group.
5. The method according to claim 4, It is characterized in that Determining an abnormal function group from the plurality of function groups to be selected includes: Determining a plurality of associated preset functions having a dependency relationship from the plurality of preset functions; Based on the dependency relationship, determining a target execution order of the plurality of associated preset functions; Acquire the actual execution order of the associated preset functions in the multiple function groups to be selected; The candidate function group whose actual execution order is inconsistent with the target execution order is determined as an abnormal function group.
6. The method according to any one of claims 1 to 5, It is characterized in that Also includes: Obtaining a prompt rule corresponding to the execution status of the preset function group; Generate corresponding prompt information based on the prompt rule.
7. A device for determining a function execution state, It is characterized in that include: A screen acquisition module, used to acquire the screen to be tested displayed in the function page when a preset function group is triggered, wherein the preset function group includes at least one preset function; A result determination module, used for comparing the screen to be tested with a target screen to obtain a consistency comparison result, wherein the target screen is a screen displayed by the function page when the execution states of the preset functions in the preset function group are all normal; A state determination module is used to determine the execution state of the preset function group based on the consistency comparison result.
8. An electronic device, It is characterized in that include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
9. The electronic device according to claim 8, It is characterized in that The processor includes a cockpit domain control module.
10. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
