Menu item configuration method, device, equipment and computer program product

By acquiring menu item configuration information and automatically locating target menu items using menu configuration files, the problem of low efficiency in menu item configuration in existing technologies is solved, and efficient automated menu item configuration is achieved.

CN121979799APending Publication Date: 2026-05-05PHYTIUM TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
PHYTIUM TECH CO LTD
Filing Date
2026-02-24
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

The existing menu item configuration method is inefficient and requires a lot of manpower and time.

Method used

By obtaining menu item configuration information, the target menu item is automatically located using the menu configuration file, and configuration is performed based on the location operation sequence, including simulating manual configuration operation sequences and using ANSI escape sequence codes.

Benefits of technology

It enables automatic location and configuration of menu items, reducing manual workload, lowering costs, and improving configuration efficiency and automation level.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121979799A_ABST
    Figure CN121979799A_ABST
Patent Text Reader

Abstract

The invention provides a menu item configuration method, device and equipment and a computer program product, and the method comprises the steps: obtaining menu item configuration information inputted by a user, and the menu item configuration information comprises menu item identification information of a target menu item and a configuration value of the target menu item; according to the menu item identification information and a menu configuration file, performing menu item backtracking operation from the target menu item to determine a positioning operation sequence for positioning the target menu item in a menu system; wherein configuration information of each menu item in the menu system is recorded in the menu configuration file; and based on the positioning operation sequence, positioning the target menu item from the menu system, and configuring the target menu item according to the configuration value. According to the method, the efficiency of configuring the menu items of the menu system can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a menu item configuration method, apparatus, device, and computer program product. Background Technology

[0002] A menu system is a system in a hardware device used to set or operate hardware parameters or software programs. For example, menu items can be accessed or viewed, or menu items can be set or adjusted through the menu system. By setting or adjusting the menu items, specific hardware or software functions can be set or adjusted.

[0003] During the development of a menu system, it is necessary to test the system to verify its ability to perform correct control functions. During testing, certain menu items need to be configured with specific values. According to existing testing methods, the configuration of menu items requires manual operation; that is, the user manually locates the menu item to be configured in the menu system using the keyboard or mouse, and then configures that menu item by setting its value to a specific value.

[0004] The above-mentioned menu item configuration method is extremely inefficient and requires a lot of manpower and time. Summary of the Invention

[0005] To address the aforementioned technical issues, this application provides a menu item configuration method, apparatus, device, and computer program product, which can improve the efficiency of configuring menu items in a menu system.

[0006] The first aspect of this application provides a menu item configuration method, including: Obtain the menu item configuration information input by the user. The menu item configuration information includes the menu item identifier information of the target menu item and the configuration value of the target menu item. The menu item identifier information includes the menu item name, the parent menu item name, and the auxiliary identifier. Based on the menu item identification information and the menu configuration file, a menu item backtracking operation is performed starting from the target menu item to determine the positioning operation sequence for locating the target menu item in the menu system; wherein, the menu configuration file records the configuration information of each menu item in the menu system, the configuration information including menu item name, menu item definition, parent menu item name, parent menu item definition, auxiliary identifier, menu item type, and configuration operation sequence; Based on the positioning operation sequence, the target menu item is located from the menu system, and the target menu item is configured according to the configuration value.

[0007] In some implementations, the method further includes: Based on the configuration value of the target menu item and the configuration operation sequence of the target menu item, determine the configuration operation sequence for configuring the target menu item as the configuration value; Based on the positioning operation sequence and the configuration operation sequence that configures the target menu item to the configuration value, a positioning configuration operation sequence for configuring the target menu item is determined; Based on the positioning operation sequence, the target menu item is located from the menu system, and the target menu item is configured according to the configuration value, including: Perform the operation according to the positioning configuration operation sequence to set the value of the target menu item to the configuration value.

[0008] In some implementations, the positioning configuration operation sequence is represented by simulating a manual configuration operation sequence; The step of performing the operation according to the positioning configuration operation sequence to set the value of the target menu item to the configuration value includes: Convert the positioning configuration operation sequence into ANSI escape sequence codes; The ANSI escape sequence code is sent to the test device so that the test device can set the value of the target menu item to the configuration value by executing the operation corresponding to the ANSI escape sequence code.

[0009] In some implementations, the step of performing a menu item backtracking operation starting from the target menu item based on the menu item identifier information and the menu configuration file to determine the positioning operation sequence for locating the target menu item from the menu system includes: Determine whether the current menu item is the root menu item based on the menu configuration file; If it is determined that the current menu item is not the root menu item, the parent menu item of the current menu item is determined based on the menu item identification information of the current menu item and the menu configuration file, and the operation sequence from the parent menu item to the current menu item is determined. Update the parent menu item to the new current menu item; The above operations are repeated until the current menu item is the root menu item. Then, the operation sequence obtained during the repeated execution of the above operations is used to determine the positioning operation sequence for locating the target menu item from the menu system.

[0010] In some implementations, determining the operation sequence from the parent menu item to the current menu item includes: If the parent menu item is a composite menu type, determine the operation sequence from the parent menu item to the current menu item based on the configured operation sequence of the parent menu item; In the case where the parent menu item is a composite menu type, the configuration operation sequence of the parent menu item represents the operation sequence for locating extended menu items and hidden menu items through the parent menu item.

[0011] In some implementations, the menu item type of any menu item recorded in the menu configuration file includes any one of the following: menu type, value type, vlist type, vlist_menu type, vsetting type, vsetting_menu type, label type, and command type. The menu type refers to a composite menu type that contains a list of sub-menu items; The value type represents a menu item type with a fixed value; The vlist type represents a menu item type with multiple selectable values; The vlist_menu type represents a composite menu type that jumps to a new menu when its optional value is selected; The vsetting type indicates the type of menu item whose value can be set; The vsetting_menu type represents a composite menu type that generates new menu items when its value is set to a specific value; The label type represents the label-type menu item type; The command type indicates the menu item type for executing the command.

[0012] In some implementations, the menu system includes a firmware menu system; And / or, The menu item configuration information includes the menu configuration file.

[0013] A second aspect of this application provides a menu item configuration device, comprising: The data acquisition unit is used to acquire menu item configuration information input by the user. The menu item configuration information includes menu item identification information of the target menu item and configuration value of the target menu item. The menu item identification information includes menu item name, parent menu item name, and auxiliary identifier. The backtracking positioning unit is used to perform a menu item backtracking operation starting from the target menu item based on the menu item identification information and the menu configuration file, so as to determine the positioning operation sequence for locating the target menu item from the menu system; wherein, the menu configuration file records the configuration information of each menu item in the menu system, and the configuration information includes menu item name, menu item definition, parent menu item name, parent menu item definition, auxiliary identifier, menu item type, and configuration operation sequence; A menu item configuration unit is used to locate the target menu item from the menu system based on the positioning operation sequence, and configure the target menu item according to the configuration value.

[0014] A third aspect of this application provides an electronic device, including a memory and a processor; The memory is connected to the processor and is used to store programs; The processor is used to implement the above-described menu item configuration method by running the program in the memory.

[0015] A fourth aspect of this application provides a computer program product, including computer program instructions, which, when executed by a processor, cause the processor to perform the menu item configuration method described above.

[0016] The menu item configuration method provided in this application requires only that the user input the menu item identifier information of the target menu item to be configured and the configuration value for the target menu item when configuring menu items in a menu system. Then, based on the menu item identifier information and menu configuration file input by the user, this method performs a menu item backtracking operation starting from the target menu item to determine the positioning operation sequence for locating the target menu item in the menu system. Then, based on this positioning operation sequence, the target menu item is located in the menu system, and configured according to the configuration value input by the user. This method can automatically locate and configure any menu item in the menu system, thereby greatly reducing the workload during menu item configuration, lowering the labor and time costs of menu item configuration, and improving the automation level and configuration efficiency of menu item configuration.

[0017] Applying the above methods to the menu system testing process can improve testing efficiency. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0019] Figure 1 This is a schematic diagram of a test system architecture for a menu system provided in an embodiment of this application.

[0020] Figure 2 This is a flowchart illustrating a menu item configuration method provided in an embodiment of this application.

[0021] Figure 3 This is a schematic diagram of menu item location configuration information provided in an embodiment of this application.

[0022] Figure 4 This is a schematic diagram illustrating another menu item location configuration information provided in an embodiment of this application.

[0023] Figure 5 This is a schematic diagram of a menu item configuration device provided in an embodiment of this application.

[0024] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0025] A menu system is a system in a hardware device used to set or operate hardware parameters or software programs. For example, menu items can be accessed or viewed, or menu items can be set or adjusted through the menu system. By setting or adjusting the menu items, specific hardware or software functions can be set or adjusted.

[0026] During the development of a menu system, it is necessary to test the menu system to verify that it can achieve the correct control functions.

[0027] Figure 1 A schematic diagram of a test system architecture for a menu system is shown. In this test system, the menu system to be tested runs on the test equipment. An automated test platform communicates with the test equipment and runs test programs on the automated test platform to perform tests on the menu system in the test equipment. For example, the automated test platform sends control commands to the test equipment, thereby causing the test equipment to perform test operations on the menu system.

[0028] During the testing of the menu system, it is necessary to configure certain menu items to specific values. According to existing testing methods, the configuration of menu items requires manual operation. For example, a person manually operates the keyboard or mouse on an automated testing platform to locate the menu item to be configured in the menu system, and then configures that menu item. The automated testing platform then sends control commands to the testing equipment according to the manual operation, setting the value of that menu item to the specific value.

[0029] The above-mentioned menu item configuration method is extremely inefficient and requires a lot of manpower and time.

[0030] To address the aforementioned technical problems, this application provides a menu item configuration method that enables automatic location and configuration of menu items in a menu system, thereby improving the configuration efficiency of menu items.

[0031] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0032] The menu item configuration method provided in this application embodiment can be applied to, for example... Figure 1 The test system for the menu system shown can be specifically executed by the automated test platform within the test system. The automated test platform executes the menu item configuration method provided in the embodiments of this application to achieve automated configuration of menu items in the menu system running on the test equipment.

[0033] In the embodiments of this application, the specific processing procedure of the menu item configuration method provided in this application will be described using the configuration of menu items in a firmware menu system as an example. However, the method provided in this application is not only applicable to configuring menu items in a firmware menu system, but is applicable to configuring menu items in any menu system. When this method is applied to configuring menu items in other menu systems, the specific processing procedure can be found in the description of the embodiments of this application.

[0034] See Figure 2 As shown, the menu item configuration method provided in this application includes: S101. Obtain the menu item configuration information input by the user.

[0035] In this embodiment, users can input menu item configuration information through the user interface of the test system running on the automated test platform.

[0036] The menu item configuration information mentioned above includes the menu item identifier information of the target menu item that needs to be configured with a specific configuration value, as well as the configuration value of the target menu item.

[0037] The menu item identification information mentioned above refers to the information used to uniquely identify the target menu item. In this embodiment, the menu item identification information specifically includes the menu item name, the parent menu item name, and auxiliary identifiers.

[0038] Among them, the menu item name represents the name of the menu item; the parent menu item name represents the name of the parent menu item to which the menu item belongs; the auxiliary identifier is an identifier used to distinguish menu items under the same parent menu item, which is generally represented by the order in which the menu items appear under their parent menu items.

[0039] The configuration values ​​for the target menu items mentioned above refer to the specific values ​​that need to be configured for the target menu items, that is, the values ​​that need to be configured for the target menu items.

[0040] S102. Based on the menu item identification information and the menu configuration file, perform a menu item backtracking operation starting from the target menu item to determine the positioning operation sequence for locating the target menu item from the menu system.

[0041] The menu configuration file mentioned above refers to a file used to record the configuration information of all menu items in the menu system. This file can be of any format, such as a table.

[0042] The menu configuration file mentioned above records the configuration information of each menu item in the menu system, including the menu item name, menu item definition, parent menu item name, parent menu item definition, auxiliary identifier, menu item type, and configuration operation sequence.

[0043] Among them, the menu item name refers to the name of the menu item in the menu system; the menu item definition refers to the explanation of the menu item, such as the explanatory information displayed in the blank area next to the menu item when the cursor moves to it; the parent menu item name refers to the name of the parent menu item to which the menu item belongs; the parent menu item definition refers to the explanation of the parent menu item, such as the explanatory information displayed in the blank area next to the parent menu item when the cursor moves to it; the auxiliary identifier is an identifier used to distinguish menu items under the same parent menu item, generally indicated by the order in which the menu items appear under their parent menu items; the menu item type indicates the specific type of the menu item; the menu item configuration operation sequence refers to the operation sequence when configuring the value of the menu item to a specific value. When a menu item can be configured to multiple different values, the configuration operation sequence corresponding to different values ​​is different.

[0044] The menu configuration file mentioned above can be stored in the test system beforehand, or it can be entered along with the menu item configuration information when the user enters it.

[0045] In some embodiments, when the menu system is a firmware menu system, eight different firmware menu item types are set, namely: menu type, value type, vlist type, vlist_menu type, vsetting type, vsetting_menu type, label type, and command type.

[0046] In addition, a sequence of configuration operations for configuring the values ​​of menu items can be represented by a type value.

[0047] The "menu" type refers to a composite menu type with a list of sub-menu items; that is, sub-menu items exist under each menu item of the "menu" type. The type value of the "menu" type menu item describes the names and types of all sub-menu items in sequence. For example, a value of a "menu" type menu item can be in the form of "sub-menu item name-type". Moving the cursor allows selection of any sub-menu item under the "menu" type menu item.

[0048] The value type represents a menu item type with a fixed value. That is, the value of a menu item of type value is fixed and cannot be configured arbitrarily. Therefore, the type value of a menu item of type value is empty.

[0049] The `vlist` type represents a menu item type with multiple selectable values. That is, the menu item of this `vlist` type has multiple selectable values, and also a default value for the user to choose from. The type value of the menu item of this `vlist` type can be filled with all the selectable options, their order, and the default option. It can be represented in the form of "Selection 1: Cursor movement direction from the default option to selection 1: number of moves - Selection 2: Cursor movement direction from the default option to selection 2: number of moves - Selection 3: Cursor movement direction from the default option to selection 3: number of moves ... - Default option: direction optional: 0 - ... - Selection n: Cursor movement direction from the default option to selection n: number of moves".

[0050] The `vlist_menu` type represents a composite menu type that navigates to a new menu when one of its optional values ​​is selected. Specifically, a `vlist_menu` type menu item represents a `vlist` composite menu type. The options for this `vlist_menu` type menu item are new menu items; that is, when one of the optional values ​​of this `vlist_menu` type menu item is selected, a new menu will dynamically expand, allowing the user to enter and select items from that new menu. The type value of this `vlist_menu` type menu item can be set with reference to the type values ​​of the `vlist` type menu items described above.

[0051] The `vsetting` type indicates the type of menu item whose value can be set. That is, menu items of type `vsetting` have a default value, but can also be set to other values. The type value of the `vsetting` menu item is the method for setting its value; multiple values ​​can be entered in several steps, with `enter` indicating the next input.

[0052] For example, the type value of the vsetting type menu item can be set to: v1-enter# means you only need to enter a value v1 and then press Enter to complete the setting.

[0053] Alternatively, `v1-enter-r:1-enter-v2-enter-r:1-enter-v3-enter#` indicates that three values, v1, v2, and v3, need to be entered in steps. The action sequence is: first enter v1, then press Enter, then move the cursor to the right once, then press Enter again, then enter v2, then press Enter again, then move the cursor to the right once more, then press Enter again, then enter v3, and finally press Enter to finish.

[0054] Alternatively, v1-enter-v1-enter # means to first enter v1 and then press Enter, then enter v1 again and press Enter again. This is generally used when setting a password.

[0055] The `vsetting_menu` type represents a composite menu type that generates a new menu when its value is set to a specific value. Specifically, when a menu item of type `vsetting_menu` is set to a specific value, a new submenu is generated, and the user can then select from the submenu's items. The type value of this `vsetting_menu` type menu item can be set with reference to the type values ​​of the `vsetting` type menu items described above. Furthermore, when a new submenu is generated by setting the value of this `vsetting_menu` type menu item to a specific value, the type value of the new submenu is set according to the type value of the `menu` type menu item.

[0056] The label type represents the type of menu item. This label type menu item only serves as an identifier. If the menu item that the cursor can select is an empty identifier, then the menu item name should be null. The type value of this label type menu item does not need to be set.

[0057] The command type represents the menu item type for executing commands. That is, a menu item of the command type represents an executed command. It cannot be configured and does not need to have a type value set.

[0058] The eight menu item types mentioned above basically cover all menu item types in the firmware menu system. Therefore, for any menu item in the firmware menu system, its menu item type and configuration operation sequence (type value) can be determined based on its function or operation method. Then, by combining the menu item name, menu item definition, parent menu item name, parent menu item definition, and auxiliary identifier, the configuration information of that menu item can be obtained. By obtaining the configuration information of each menu item in the firmware menu system using the above method, the corresponding menu configuration file for that firmware menu system can be constructed.

[0059] In this embodiment, the menu item positioning operation sequence and configuration operation sequence can be represented by menu operation primitives in the menu configuration file.

[0060] For example, suppose a menu item of type vlist recorded in the menu configuration file has a type value of GEN1:u:4-GEN2:u:3-GEN3:u:2-GEN4:u:1-GEN5:u:0; this indicates that the menu item is a drop-down menu with five options: GEN1, GEN2, GEN3, GEN4, and GEN5. GEN5 is the default option, so the cursor can move in any direction, and the cursor moves up 0 times. GEN1 is the first option; to select this option, the cursor needs to move up 4 times; the other options follow the same pattern.

[0061] Table 1 shows the explanations of various menu operation primitives and their corresponding simulated manual operation identifiers.

[0062] Table 1 In another embodiment, the configuration operation sequence described by the menu operation primitives described above can be converted into the form of simulated manual operation identifiers, thereby constituting a simulated manual configuration operation sequence. Assuming that a menu item of type vlist recorded in the menu configuration file has a type value of GEN1:u:4-GEN2:u:3-GEN3:u:2-GEN4:u:1-GEN5:u:0, and if the user wants to set the value of this menu item to GEN3, then according to the simulated manual identifiers corresponding to the menu operation primitives in Table 1, the simulated manual configuration operation sequence corresponding to "set the value of this menu item to GEN3" is esc_u_2-control_m. The above-mentioned simulated manual configuration operation sequence can be easily converted into the form of ANSI escape sequence codes, thus making it easier for the test device to execute.

[0063] It is understandable that in the menu configuration file mentioned above, the parent-child relationship between each menu item can be determined through the configuration information of each menu item, and the operation sequence of locating from one menu item to another can be determined through the configuration operation sequence of the menu items of the composite menu type. That is, the menu configuration file mentioned above provides a data foundation for determining the position and logical relationship between different menu items.

[0064] Based on this, in the embodiments of this application, when obtaining the menu item identification information of the target menu item input by the user, the menu item backtracking operation is performed starting from the target menu item according to the menu item identification information and the menu configuration file mentioned above, thereby determining the positioning operation sequence for locating the target menu item from the menu system.

[0065] The aforementioned menu item backtracking operation starting from the target menu item refers to starting from the target menu item, sequentially searching for the parent menu items of the current menu item, and recording the operation sequence from the found parent menu item to the current menu item in real time during the search process, until the root menu item is reached. Then, the positioning operation sequence from the root menu item to the target menu item is determined based on the operation sequence determined during the backtracking process.

[0066] The above-mentioned positioning operation sequence is the sequence of operations required to reach the target menu item from the root menu item of the menu system.

[0067] In another embodiment, a specific processing procedure is disclosed for performing a menu item backtracking operation starting from the target menu item based on the menu item identification information and the menu configuration file, in order to determine the positioning operation sequence for locating the target menu item from the menu system, including: A1. Determine whether the current menu item is the root menu item based on the menu configuration file.

[0068] During the first judgment, the current menu item is the target menu item; otherwise, the current menu item is the current menu item determined by step A3.

[0069] For the current menu item, it can be determined whether the current menu item is the root menu item by using the configuration information of the current menu item stored in the menu configuration file.

[0070] For example, if the current menu item has no parent menu item, it can be determined that the current menu item is the root menu item; otherwise, if the current menu item has a parent menu item, it can be determined that the current menu item is not the root menu item.

[0071] A2. If it is determined that the current menu item is not the root menu item, the parent menu item of the current menu item is determined based on the menu item identification information of the current menu item and the menu configuration file, and the operation sequence from the parent menu item to the current menu item is determined.

[0072] Specifically, if the current menu item is not the root menu item, the current menu item is determined from the menu configuration file based on its menu item identification information (including at least the menu item name, parent menu item name, and auxiliary identifier). The parent menu item is then determined based on the configuration information of the current menu item. Finally, the operation sequence from the parent menu item to the current menu item is determined based on the type and type value of the parent menu item.

[0073] When the parent menu item is a composite menu type, the operation sequence from the parent menu item to the current menu item can be determined based on the configuration operation sequence of the parent menu item.

[0074] As described in the above embodiments regarding the configuration operation sequence of each menu item, when the parent menu item is a composite menu type, the configuration operation sequence of the parent menu item represents the operation sequence for locating extended menu items and hidden menu items through the parent menu item.

[0075] Specifically, the parent menu item of the current menu item can only be of type `menu`, `vlist_menu`, or `vsetting_menu`. The method for determining the cursor movement direction and number of moves to locate the current menu item differs depending on the type of the parent menu item. For example, when the parent menu item is of type `menu`, the direction and number of moves from the parent menu item to the current menu item are downwards, and the number of moves is the row number of the current menu item minus one. When the parent menu item is of type `vlist_menu`, the direction and number of moves from the parent menu item to the current menu item are determined by its type value, and the number of moves is the row number of the current menu item minus one. When the parent menu item is of type `vsetting_menu`, the direction and number of moves from the parent menu item to the current menu item are downwards, and the number of moves is the row number of the current menu item minus one.

[0076] By following the above steps, when determining the parent menu item of the current menu item, the operation sequence from the parent menu item to the current menu item can be determined based on the configured operation sequence of the parent menu item.

[0077] A3. Update the parent menu item to the new current menu item and return to step A1 to execute.

[0078] Specifically, once the parent menu item of the current menu item is determined, and the operation sequence from the parent menu item to the current menu item is determined, the parent menu item can be designated as the new current menu item. At the same time, the menu item identification information of the new current menu item (including at least the menu item name, the parent menu item name, and the auxiliary identifier) ​​is obtained, and then the process returns to step A1 for execution.

[0079] Repeat steps A1-A3 until the current menu item is the root menu item, then stop the loop. Then, use the operation sequences obtained during the loop to determine the positioning operation sequence for locating the target menu item from the menu system.

[0080] Specifically, during the cyclic execution of steps A1-A3 above, the loop can be stopped when the current menu item is confirmed to be the root menu item. Then, the operation sequences obtained during the cyclic execution of steps A1-A3 above are concatenated to obtain the positioning operation sequence from the root menu item of the menu system to the target menu item.

[0081] It can be understood that in step S102 above, the sequence of operations for locating the target menu item from the menu system is automatically determined by automatically backtracking the menu item.

[0082] S103. Based on the positioning operation sequence, locate the target menu item from the menu system, and configure the target menu item according to the configuration value.

[0083] Specifically, after determining the sequence of operations to locate the target menu item from the menu system, following this sequence will locate the target menu item. Once the target menu item is located, it can be configured according to the user-inputted configuration value. For example, following the configuration operation sequence for the target menu item will set its value to the user-inputted value.

[0084] exist Figure 1 In the test system shown, after determining the positioning operation sequence for locating the target menu item from the menu system, the automated test platform converts the positioning operation sequence into control instructions and converts the configuration value of the target menu item into control parameters. The control instructions and control parameters are then sent to the test device, which enables the test device to locate the target menu item from the menu system by executing the control instructions and set the value of the target menu item to the configuration value.

[0085] As described above, the menu item configuration method provided in this application only requires the user to input the menu item identifier information of the target menu item to be configured and the configuration value of the target menu item when configuring menu items in a menu system. Then, based on the menu item identifier information and menu configuration file input by the user, this method can perform a menu item backtracking operation starting from the target menu item to determine the positioning operation sequence for locating the target menu item in the menu system. Then, based on this positioning operation sequence, the target menu item is located in the menu system, and configured according to the configuration value input by the user. This method can automatically locate and configure any menu item in the menu system, thereby greatly reducing the workload during menu item configuration, lowering the labor and time costs of menu item configuration, and improving the automation level and efficiency of menu item configuration.

[0086] Applying the above methods to the menu system testing process can improve testing efficiency.

[0087] In some implementations of the menu item configuration method, after determining the positioning operation sequence for locating the target menu item from the menu system, menu item positioning configuration information corresponding to the target menu item can be further generated.

[0088] The menu item positioning configuration information corresponding to the target menu item mentioned above is used to record the positioning configuration information of the target menu item, specifically including the menu item name, the positioning operation sequence of the menu item, the configuration operation sequence of the menu item, the parent menu item name, the menu item explanation, the parent menu item explanation, and auxiliary identifiers.

[0089] Figure 3 A schematic diagram illustrating menu item location configuration information is provided. This diagram shows the location configuration information for the menu item "Network performance mode" in the firmware menu system.

[0090] In the menu item positioning configuration information corresponding to the target menu item, the positioning operation sequence of the target menu item can be determined during the execution of the menu item configuration method described in the above embodiments. The configuration operation sequence of the menu item, the parent menu item name, the menu item explanation, the parent menu item explanation, and the auxiliary identifier can be obtained from the configuration information of the target menu item in the menu configuration file described above.

[0091] The menu item location configuration information described above allows for a clearer recording of the target menu item's location operation sequence and other configuration information. This enables more efficient acquisition of the target menu item's relevant configuration information based on the menu item location configuration information.

[0092] In another embodiment of the menu item configuration method, in addition to determining the positioning operation sequence for locating the target menu item from the menu system, a configuration operation sequence for configuring the target menu item as the configuration value is also determined based on the configuration value of the target menu item and the configuration operation sequence of the target menu item.

[0093] Specifically, as described in the above embodiments, the menu item configuration operation sequence stored in the menu configuration file records the operation sequence for configuring the value of the menu item. That is, by performing the operation according to the configuration operation sequence, the value of the menu item can be set to a specific value.

[0094] In this embodiment, the configuration operation sequence of the target menu item is determined from the menu configuration file, and then the configuration operation sequence of configuring the target menu item to the configuration value is determined according to the configuration value of the target menu item.

[0095] Based on this, this embodiment further determines a positioning configuration operation sequence for configuring the target menu item based on the positioning operation sequence for locating the target menu item from the menu system and the configuration operation sequence for configuring the target menu item to the aforementioned configuration value. This positioning configuration operation sequence is the operation sequence for configuring the target menu item to the aforementioned configuration value.

[0096] The aforementioned location configuration operation sequence refers to the sequence of operations that locates the target menu item from the menu system and, after locating the target menu item, sets its value to the aforementioned configuration value. In other words, this location configuration operation sequence includes both the operation sequence for locating the target menu item and the operation sequence for setting its value.

[0097] As an example implementation, the positioning operation sequence for locating the target menu item from the menu system is concatenated with the configuration operation sequence for configuring the target menu item to the aforementioned configuration value to obtain the positioning configuration operation sequence for configuring the target menu item to the aforementioned configuration value. In this concatenation operation, the positioning operation sequence for locating the target menu item from the menu system comes first, followed by the configuration operation sequence for configuring the target menu item to the aforementioned configuration value.

[0098] by Figure 3 Taking the menu item "Network performance mode" as an example, assuming the user inputs configuration information indicating that "Network performance mode" is set to "enable", then by executing the menu item configuration method described in the above embodiment, the desired result is obtained. Figure 3 After locating the configuration information of the menu item shown, the location configuration operation sequence for setting Network performance mode to enable can be obtained based on the location operation sequence (location), configuration operation sequence (configSelectValue), and configuration value (enable) of the menu item Network performance mode recorded therein.

[0099] Based on the correspondence between the operation primitives and simulated manual operation identifiers shown in Table 1, the positioning configuration operation sequence in the operation primitive format is converted into the simulated manual configuration operation sequence format as esc_d_14-control_m-esc_d_3-control_m-esc_d_6-control_m-control_m-esc_d_1-control_m-func_10_Y. Its specific meaning is: move the cursor down 14 times, press Enter, move it down 3 times, press Enter, move it down 6 times, press Enter, press Enter, move it down 1 time, press F10, and press the confirm key Y.

[0100] After determining the configuration operation sequence for configuring the target menu item to the configuration value in the manner described above, when configuring the target menu item, simply follow the determined positioning configuration operation sequence for configuring the target menu item to the configuration value to locate the target menu item from the menu system and set the value of the target menu item to the configuration value.

[0101] For example in Figure 1 In the application scenario shown, after the automated testing platform obtains the positioning configuration operation sequence that configures the target menu item to the configuration value through the above processing, it converts the positioning configuration operation sequence into a control command and then sends the control command to the testing device. The testing device executes the received control command, thereby executing the above positioning configuration operation sequence and thus configuring the target menu item in the menu system under test to the above configuration value.

[0102] In another embodiment, the resulting location configuration operation sequence for configuring the target menu item as the configuration value is represented by simulating a manual configuration operation sequence.

[0103] When performing the positioning configuration operation sequence described above for configuring the target menu item to the configuration value, the positioning configuration operation sequence is first converted into an ANSI escape sequence code, and then the ANSI escape sequence code is sent to the test device so that the test device sets the value of the target menu item to the configuration value by executing the operation corresponding to the ANSI escape sequence code.

[0104] Table 2 shows the correspondence between key operations for simulating manual configuration and ANSI escape sequences. Based on this table, the conversion of the positioning configuration operation sequence to ANSI escape sequence code can be realized.

[0105] Table 2 Converting the positioning configuration operation sequence into ANSI escape sequence codes and then sending the ANSI escape sequence codes to the test device facilitates the test device's execution of the received ANSI escape sequence codes, thereby improving the execution efficiency of the positioning configuration operation sequence.

[0106] Below, in Figure 1 Taking the test task of "setting the menu item QSPI Flash WP in the firmware menu to Enable, exiting the firmware menu after successful setting, and entering the OS to read the value of the relevant status register" as an example in the test system shown, the complete processing procedure of the menu item configuration method provided in this application embodiment is described by way of example: 1. The user pre-enters a firmware menu configuration file according to the firmware menu design. This firmware menu configuration file records the firmware menu information related to the QSPI Flash WP menu items. The firmware menu configuration file can be represented in the form of a firmware menu configuration information table as shown in Table 3.

[0107] Table 3 2. The user enters the menu item name QSPI Flash WP, the setting value Enable, its parent menu item name MISC Config, and auxiliary identifier 1 on the automated testing platform.

[0108] 3. Users specify the test cases to be run on the automated testing platform.

[0109] 4. The automated test platform generates automated test tasks to enable and test the QSPI Flash WP. This includes generating, based on user input and the firmware menu configuration file, automated test tasks by executing the menu item configuration method provided in the above embodiments of this application, such as... Figure 4 The QSPI Flash WP menu item location configuration information is shown. Combined with the user-input settings, the menu item location operation sequence and configuration operation sequence are added to the configuration saving primitive `func_10_Y` to form a complete location configuration operation sequence simulating a manual configuration operation sequence: `esc_d_16-control_m-esc_d_3-control_m-esc_d_0-control_m-esc_d_4-control_m-esc_d_1-control_m-func_10_Y`. Finally, based on this location configuration operation sequence and test cases, an automated test task file for QSPI Flash WP enable testing is generated.

[0110] 5. Users submit QSPI Flash WP enable test tasks to the automated testing platform.

[0111] 6. The automated testing platform executes the automated testing task: (1) Send a command to the test equipment to remotely power on the test equipment.

[0112] (2) When the test equipment is powered on and the message “Press \[F8\] to Setup” appears, send the escape sequence code of F8.

[0113] (3) After the test device enters the firmware menu interface, the positioning configuration operation sequence, represented in the form of a simulated manual configuration operation sequence in the task file, is converted into the corresponding positioning configuration key escape sequence code based on the key escape sequence table shown in Table 2, and sent to the test device. After receiving the code, the test device executes the operation corresponding to the positioning configuration key escape sequence code. At this time, the cursor on the firmware menu will first move down 16 times, select Advanced Config and press Enter; then move down 3 times, select Feature and press Enter; then select MISC Config and press Enter directly; then move down 4 times, select QSPI Flash WP and press Enter; then move down 1 time from the drop-down menu, select Enable and press Enter; then press F10 and confirm to save the menu item configuration.

[0114] (4) Once it is detected that the test equipment has been successfully configured, a command is sent to the test equipment to restart it.

[0115] (5) After the test device enters the OS, issue a command to execute the test program.

[0116] (6) During the test, the platform returns the test results to the user.

[0117] (7) When the test ends, the platform sends a command to the test device to shut down the test device.

[0118] Similar to the menu item configuration method described above, another embodiment of this application provides a menu item positioning method. In this method, when obtaining the menu item configuration information input by the user, only the menu item identification information of the target menu item needs to be obtained.

[0119] Then, referring to step S102 in the above embodiment, a menu item backtracking operation is performed starting from the target menu item based on the menu item identification information and the menu configuration file, so as to determine the positioning operation sequence for locating the target menu item from the menu system.

[0120] Furthermore, based on this positioning operation sequence, the target menu item can be located from the menu system.

[0121] The specific processing procedures for each step in the above menu item location method can be found in the corresponding steps of the above menu item configuration method, and will not be described in detail in this embodiment. By executing this menu item location method, the target menu item can be automatically located from the menu system, thereby improving the efficiency of locating menu items from the menu system.

[0122] Accordingly, this application also provides a menu item configuration device, see [link to relevant documentation]. Figure 5 As shown, the device includes: The data acquisition unit 100 is used to acquire menu item configuration information input by the user. The menu item configuration information includes menu item identification information of the target menu item and configuration value of the target menu item. The menu item identification information includes menu item name, parent menu item name, and auxiliary identifier. The backtracking positioning unit 110 is used to perform a menu item backtracking operation starting from the target menu item based on the menu item identification information and the menu configuration file, so as to determine the positioning operation sequence for locating the target menu item from the menu system; wherein, the menu configuration file records the configuration information of each menu item in the menu system, and the configuration information includes menu item name, menu item definition, parent menu item name, parent menu item definition, auxiliary identifier, menu item type, and configuration operation sequence; The menu item configuration unit 120 is used to locate the target menu item from the menu system based on the positioning operation sequence, and configure the target menu item according to the configuration value.

[0123] In some embodiments, the menu item configuration unit 120 is further configured to: Based on the configuration value of the target menu item and the configuration operation sequence of the target menu item, determine the configuration operation sequence for configuring the target menu item as the configuration value; Based on the positioning operation sequence and the configuration operation sequence that configures the target menu item to the configuration value, a positioning configuration operation sequence for configuring the target menu item is determined; The menu item configuration unit 120 locates the target menu item from the menu system based on the positioning operation sequence, and configures the target menu item according to the configuration value, including: Perform the operation according to the positioning configuration operation sequence to set the value of the target menu item to the configuration value.

[0124] In some embodiments, the positioning configuration operation sequence is represented by a simulated manual configuration operation sequence; The menu item configuration unit 120 operates according to the positioning configuration operation sequence to set the value of the target menu item to the configuration value, including: Convert the positioning configuration operation sequence into ANSI escape sequence codes; The ANSI escape sequence code is sent to the test device so that the test device can set the value of the target menu item to the configuration value by executing the operation corresponding to the ANSI escape sequence code.

[0125] In some embodiments, the backtracking positioning unit 110 performs a menu item backtracking operation starting from the target menu item based on the menu item identification information and the menu configuration file, to determine the positioning operation sequence for locating the target menu item from the menu system, including: Determine whether the current menu item is the root menu item based on the menu configuration file; If it is determined that the current menu item is not the root menu item, the parent menu item of the current menu item is determined based on the menu item identification information of the current menu item and the menu configuration file, and the operation sequence from the parent menu item to the current menu item is determined. Update the parent menu item to the new current menu item; The above operations are repeated until the current menu item is the root menu item. Then, the operation sequence obtained during the repeated execution of the above operations is used to determine the positioning operation sequence for locating the target menu item from the menu system.

[0126] In some embodiments, the backtracking positioning unit 110 determines the operation sequence from the parent menu item to the current menu item, including: If the parent menu item is a composite menu type, determine the operation sequence from the parent menu item to the current menu item based on the configured operation sequence of the parent menu item; In the case where the parent menu item is a composite menu type, the configuration operation sequence of the parent menu item represents the operation sequence for locating extended menu items and hidden menu items through the parent menu item.

[0127] In some embodiments, the menu item type of any menu item recorded in the menu configuration file includes any one of the following: menu type, value type, vlist type, vlist_menu type, vsetting type, vsetting_menu type, label type, and command type; The menu type refers to a composite menu type that contains a list of sub-menu items; The value type represents a menu item type with a fixed value; The vlist type represents a menu item type with multiple selectable values; The vlist_menu type represents a composite menu type that jumps to a new menu when its optional value is selected; The vsetting type indicates the type of menu item whose value can be set; The vsetting_menu type represents a composite menu type that generates new menu items when its value is set to a specific value; The label type represents the label-type menu item type; The command type indicates the menu item type for executing the command.

[0128] In some embodiments, the menu system includes a firmware menu system; And / or, The menu item configuration information includes the menu configuration file.

[0129] The menu item configuration device provided in this embodiment belongs to the same application concept as the menu item configuration method provided in the above embodiments of this application. It can execute the menu item configuration method provided in any of the above embodiments of this application and has the corresponding functional modules and beneficial effects of the execution method. Technical details not described in detail in this embodiment can be found in the specific processing content of the menu item configuration method provided in the above embodiments of this application, and will not be repeated here.

[0130] The functions implemented by each of the above units can be implemented by the same or different processors, and this application embodiment does not limit this.

[0131] It should be understood that the units in the above device can be implemented by a processor calling software. For example, the device includes a processor connected to a memory containing instructions. The processor calls the instructions stored in the memory to implement any of the above methods or to implement the functions of each unit in the device. The processor can be a general-purpose processor, such as a CPU or microprocessor, and the memory can be internal or external to the device. Alternatively, the units in the device can be implemented as hardware circuits. By designing the hardware circuits, some or all of the unit functions can be implemented. The hardware circuits can be understood as one or more processors. For example, in one implementation, the hardware circuit is an ASIC, and the functions of some or all of the above units are implemented by designing the logical relationships between the components within the circuit. In another implementation, the hardware circuit can be implemented using a PLD, such as an FPGA, which can include a large number of logic gates. The connection relationships between the logic gates are configured through configuration files to implement the functions of some or all of the above units. All units in the above device can be implemented entirely by a processor calling software, entirely by hardware circuits, or partially by a processor calling software with the remaining parts implemented by hardware circuits.

[0132] In this application embodiment, a processor is a circuit with signal processing capabilities. In one implementation, the processor can be a circuit with instruction reading and execution capabilities, such as a CPU, microprocessor, GPU, or DSP. In another implementation, the processor can implement certain functions through the logical relationships of hardware circuits. These logical relationships are fixed or reconfigurable. For example, the processor may be a hardware circuit implemented as an ASIC or PLD, such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document and configuring the hardware circuit can be understood as the processor loading instructions to implement the functions of some or all of the above units. Furthermore, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as an NPU, TPU, or DPU.

[0133] As can be seen, each unit in the above device can be one or more processors (or processing circuits) configured to implement the above methods, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms.

[0134] Furthermore, the units in the above devices can be integrated in whole or in part, or they can be implemented independently. In one implementation, these units are integrated together and implemented in the form of a System-on-Chip (SoC). The SoC may include at least one processor for implementing any of the above methods or implementing the functions of the units in the device. The at least one processor may be of different types, such as CPU and FPGA, CPU and artificial intelligence processor, CPU and GPU, etc.

[0135] Another embodiment of this application also provides an electronic device, see [link to relevant documentation] Figure 6 As shown, the device includes: Memory 200 and processor 210; The memory 200 is connected to the processor 210 and is used to store programs; The processor 210 is configured to implement the menu item configuration method disclosed in any of the above embodiments by running the program stored in the memory 200.

[0136] Specifically, the aforementioned electronic device may also include: a bus, a communication interface 220, an input device 230, and an output device 240.

[0137] The processor 210, memory 200, communication interface 220, input device 230, and output device 240 are interconnected via a bus. Among them: A bus can include a pathway for transmitting information between various components of a computer system.

[0138] Processor 210 can be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present invention. It can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0139] Processor 210 may include a main processor, as well as a baseband chip, modem, etc.

[0140] The memory 200 stores a program that executes the technical solution of this invention, and may also store an operating system and other key business functions. Specifically, the program may include program code, which includes computer operation instructions. More specifically, the memory 200 may include read-only memory (ROM), other types of static storage devices capable of storing static information and instructions, random access memory (RAM), other types of dynamic storage devices capable of storing information and instructions, disk storage, flash memory, etc.

[0141] Input device 230 may include a device for receiving user input data and information, such as a keyboard, mouse, camera, scanner, light pen, voice input device, touch screen, pedometer, or gravity sensor.

[0142] Output device 240 may include devices that allow information to be output to a user, such as a display screen, printer, speaker, etc.

[0143] The communication interface 220 may include a device that uses any transceiver to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.

[0144] The processor 210 executes the program stored in the memory 200 and calls other devices, which can be used to implement the various steps of any of the menu item configuration methods provided in the above embodiments of this application.

[0145] In addition to the methods and devices described above, embodiments of this application may also be computer program products, which include computer program instructions that, when executed by a processor, cause the processor to perform the steps in the menu item configuration method described in any of the above embodiments of this specification.

[0146] The computer program product can be written in any combination of one or more programming languages ​​to perform the operations of the embodiments of this application. The programming languages ​​include object-oriented programming languages ​​such as Java and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0147] Furthermore, embodiments of this application may also be storage media storing a computer program, which, when run by a processor, causes the processor to execute the steps in the menu item configuration method described in any of the above embodiments of this specification.

[0148] For the foregoing method embodiments, in order to simplify the description, they are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, because according to this application, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0149] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For apparatus embodiments, since they are basically similar to method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0150] The steps in the methods of the various embodiments of this application can be adjusted, merged, or deleted in order according to actual needs, and the technical features described in each embodiment can be replaced or combined.

[0151] The modules and sub-modules in the various embodiments of the present application's devices and terminals can be merged, divided, and deleted according to actual needs.

[0152] It should be understood that the disclosed terminals, devices, and methods can be implemented in other ways, given the several embodiments provided in this application. For example, the terminal embodiments described above are merely illustrative. For instance, the division of modules or sub-modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple sub-modules or modules may be combined or integrated into another module, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or modules, and may be electrical, mechanical, or other forms.

[0153] The modules or submodules described as separate components may or may not be physically separate. The components that constitute a module or submodule may or may not be physical modules or submodules; that is, they may be located in one place or distributed across multiple network modules or submodules. Some or all of the modules or submodules can be selected to achieve the purpose of this embodiment's solution, depending on actual needs.

[0154] Furthermore, the functional modules or sub-modules in the various embodiments of this application can be integrated into one processing module, or each module or sub-module can exist physically separately, or two or more modules or sub-modules can be integrated into one module. The integrated modules or sub-modules described above can be implemented in hardware or in the form of software functional modules or sub-modules.

[0155] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0156] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software unit executed by a processor, or a combination of both. The software unit can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0157] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0158] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A menu item configuration method, characterized in that, include: Obtain the menu item configuration information input by the user. The menu item configuration information includes the menu item identifier information of the target menu item and the configuration value of the target menu item. The menu item identifier information includes the menu item name, the parent menu item name, and the auxiliary identifier. Based on the menu item identification information and the menu configuration file, a menu item backtracking operation is performed starting from the target menu item to determine the positioning operation sequence for locating the target menu item in the menu system; wherein, the menu configuration file records the configuration information of each menu item in the menu system, the configuration information including menu item name, menu item definition, parent menu item name, parent menu item definition, auxiliary identifier, menu item type, and configuration operation sequence; Based on the positioning operation sequence, the target menu item is located from the menu system, and the target menu item is configured according to the configuration value.

2. The method according to claim 1, characterized in that, The method further includes: Based on the configuration value of the target menu item and the configuration operation sequence of the target menu item, determine the configuration operation sequence for configuring the target menu item as the configuration value; Based on the positioning operation sequence and the configuration operation sequence that configures the target menu item to the configuration value, a positioning configuration operation sequence for configuring the target menu item is determined; Based on the positioning operation sequence, the target menu item is located from the menu system, and the target menu item is configured according to the configuration value, including: Perform the operation according to the positioning configuration operation sequence to set the value of the target menu item to the configuration value.

3. The method according to claim 2, characterized in that, The positioning configuration operation sequence is represented by a simulated manual configuration operation sequence; The step of performing the operation according to the positioning configuration operation sequence to set the value of the target menu item to the configuration value includes: Convert the positioning configuration operation sequence into ANSI escape sequence codes; The ANSI escape sequence code is sent to the test device so that the test device can set the value of the target menu item to the configuration value by executing the operation corresponding to the ANSI escape sequence code.

4. The method according to claim 1, characterized in that, The step of performing a menu item backtracking operation starting from the target menu item based on the menu item identification information and the menu configuration file to determine the positioning operation sequence for locating the target menu item from the menu system includes: Determine whether the current menu item is the root menu item based on the menu configuration file; If it is determined that the current menu item is not the root menu item, the parent menu item of the current menu item is determined based on the menu item identification information of the current menu item and the menu configuration file, and the operation sequence from the parent menu item to the current menu item is determined. Update the parent menu item to the new current menu item; The above operations are repeated until the current menu item is the root menu item. Then, the operation sequence obtained during the repeated execution of the above operations is used to determine the positioning operation sequence for locating the target menu item from the menu system.

5. The method according to claim 4, characterized in that, The process of determining the operation sequence from the parent menu item to the current menu item includes: If the parent menu item is a composite menu type, determine the operation sequence from the parent menu item to the current menu item based on the configured operation sequence of the parent menu item; In the case where the parent menu item is a composite menu type, the configuration operation sequence of the parent menu item represents the operation sequence for locating extended menu items and hidden menu items through the parent menu item.

6. The method according to any one of claims 1 to 5, characterized in that, The menu item type recorded in the menu configuration file includes any one of the following: menu type, value type, vlist type, vlist_menu type, vsetting type, vsetting_menu type, label type, and command type. The menu type refers to a composite menu type that contains a list of sub-menu items; The value type represents a menu item type with a fixed value; The vlist type represents a menu item type with multiple selectable values; The vlist_menu type represents a composite menu type that jumps to a new menu when its optional value is selected; The vsetting type indicates the type of menu item whose value can be set; The vsetting_menu type represents a composite menu type that generates new menu items when its value is set to a specific value; The label type represents the label-type menu item type; The command type represents the menu item type for executing the command.

7. The method according to any one of claims 1 to 5, characterized in that, The menu system includes a firmware menu system; And / or, The menu item configuration information includes the menu configuration file.

8. A menu item configuration device, characterized in that, include: The data acquisition unit is used to acquire menu item configuration information input by the user. The menu item configuration information includes menu item identification information of the target menu item and configuration value of the target menu item. The menu item identification information includes menu item name, parent menu item name, and auxiliary identifier. The backtracking positioning unit is used to perform a menu item backtracking operation starting from the target menu item based on the menu item identification information and the menu configuration file, so as to determine the positioning operation sequence for locating the target menu item from the menu system; wherein, the menu configuration file records the configuration information of each menu item in the menu system, and the configuration information includes menu item name, menu item definition, parent menu item name, parent menu item definition, auxiliary identifier, menu item type, and configuration operation sequence; A menu item configuration unit is used to locate the target menu item from the menu system based on the positioning operation sequence, and configure the target menu item according to the configuration value.

9. An electronic device, characterized in that, Including memory and processor; The memory is connected to the processor and is used to store programs; The processor is used to implement the menu item configuration method as described in any one of claims 1 to 7 by running a program in the memory.

10. A computer program product, characterized in that, It includes computer program instructions that, when executed by a processor, cause the processor to perform the menu item configuration method as described in any one of claims 1 to 7.