CN117407277A - Function debugging method and device, electronic equipment and computer storage medium - Google Patents

Function debugging method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN117407277A
CN117407277A CN202310733266.6A CN202310733266A CN117407277A CN 117407277 A CN117407277 A CN 117407277A CN 202310733266 A CN202310733266 A CN 202310733266A CN 117407277 A CN117407277 A CN 117407277A
Authority
CN
China
Prior art keywords
debugged
equipment
display function
parameter
configuration file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310733266.6A
Other languages
Chinese (zh)
Inventor
任李鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Shiwei New Technology Co Ltd
Original Assignee
Huizhou Shiwei New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Shiwei New Technology Co Ltd filed Critical Huizhou Shiwei New Technology Co Ltd
Priority to CN202310733266.6A priority Critical patent/CN117407277A/en
Publication of CN117407277A publication Critical patent/CN117407277A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The embodiment of the application discloses a function debugging method, a function debugging device, electronic equipment and a computer storage medium; in the embodiment of the application, equipment information of equipment to be debugged is acquired; according to the equipment information, determining the parameter type of the equipment to be debugged aiming at the display function, and displaying a control corresponding to the parameter type; responding to the triggering operation of the control, and acquiring a parameter value corresponding to the parameter type; acquiring a preset code frame file, and filling the parameter value into the preset code frame file to obtain a configuration file of the equipment to be debugged aiming at the display function; and debugging the display function of the equipment to be debugged according to the configuration file. According to the embodiment of the application, the debugging efficiency of the display function can be improved.

Description

Function debugging method and device, electronic equipment and computer storage medium
Technical Field
The present invention relates to the technical field of electronic devices, and in particular, to a function debugging method, a function debugging device, an electronic device, and a computer storage medium.
Background
With the development of science and technology, the application field of electronic equipment is becoming wider and wider. Many electronic devices now have a display function, which may be a local backlight modulation function (local dimming).
When testing the local dimming function of the electronic device, the local dimming function needs to be tested through a configuration file. Because the configuration files are in the form of codes and different electronic equipment needs to be provided with different configuration files, a tester who is not professional cannot set the configuration files, the testing difficulty of the regional dimming function is improved, and the testing efficiency of the regional dimming function is reduced.
Disclosure of Invention
The embodiment of the application provides a function debugging method, a function debugging device, electronic equipment and a computer storage medium, which can solve the technical problems that a tester who is not professional cannot set configuration files, the testing difficulty of a regional dimming function is improved, and the testing efficiency of the regional dimming function is reduced.
The embodiment of the application provides a function debugging method, which comprises the following steps:
acquiring equipment information of equipment to be debugged;
according to the equipment information, determining the parameter type of the equipment to be debugged aiming at the display function, and displaying a control corresponding to the parameter type;
responding to the triggering operation of the control, and acquiring a parameter value corresponding to the parameter type;
acquiring a preset code frame file, and filling the parameter values into the preset code frame file to obtain a configuration file of the equipment to be debugged aiming at the display function;
and debugging the display function of the equipment to be debugged according to the configuration file.
Accordingly, an embodiment of the present application provides a function debugging device, including:
the first acquisition module is used for acquiring equipment information of equipment to be debugged;
the type determining module is used for determining the parameter type of the equipment to be debugged aiming at the display function according to the equipment information and displaying a control corresponding to the parameter type;
the second acquisition module is used for responding to the triggering operation of the control and acquiring a parameter value corresponding to the parameter type;
the numerical value filling module is used for acquiring a preset code frame file, filling the parameter values into the preset code frame file, and obtaining a configuration file of the equipment to be debugged aiming at the display function;
and the function debugging module is used for debugging the display function of the equipment to be debugged according to the configuration file.
In addition, the embodiment of the application also provides electronic equipment, which comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used for running the computer program in the memory to realize the function debugging method provided by the embodiment of the application.
In addition, the embodiment of the application further provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute any one of the function debugging methods provided by the embodiment of the application.
In addition, the embodiment of the application also provides a computer program product, which comprises a computer program, wherein the computer program realizes any one of the function debugging methods provided by the embodiment of the application when being executed by a processor.
In the embodiment of the application, equipment information of equipment to be debugged is acquired; according to the equipment information, determining the parameter type of equipment to be debugged aiming at the display function, and displaying a control corresponding to the parameter type; responding to triggering operation of the control, and acquiring a parameter value corresponding to the parameter type; acquiring a preset code frame file, and filling parameter values into the preset code frame file to obtain a configuration file of equipment to be debugged aiming at a display function; according to the configuration file, the display function of the equipment to be debugged is debugged, the configuration file of the display function can be set through the control, the meaning of codes in the configuration file is not required to be understood, so that even if the tester is not a professional tester, the configuration file can be set, the debugging difficulty of the display function is reduced, and the debugging efficiency of the display function is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a function debugging method provided in an embodiment of the present application;
FIG. 2 is a schematic illustration of a control provided by an embodiment of the present application;
FIG. 3 is a flowchart of another method for debugging functions according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a function debugging device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The embodiment of the application provides a function debugging method, a function debugging device, electronic equipment and a computer storage medium. The function debugging device can be integrated in an electronic device, and the electronic device can be a server or a terminal.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), basic cloud computing services such as big data and an artificial intelligent platform.
The terminal may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a television, etc. The terminal and the server may be directly or indirectly connected through wired or wireless communication, which is not limited herein.
In addition, "plurality" in the embodiments of the present application means two or more. "first" and "second" and the like in the embodiments of the present application are used for distinguishing descriptions and are not to be construed as implying relative importance.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
In this embodiment, description will be made from the viewpoint of a function debugging device, and for convenience, a function debugging method of the present application will be described in detail below with the function debugging device integrated in a terminal, that is, with the terminal as an execution subject.
Referring to fig. 1, fig. 1 is a flow chart of a function debugging method according to an embodiment of the present application. The function debugging method may include:
s101, acquiring equipment information of equipment to be debugged.
The device to be debugged can be a device with a display function, the type of the device to be debugged can be selected according to actual conditions, for example, the device to be debugged can be a television or a tablet, etc.
The device information may be a character string, which may be used to identify the device to be debugged, and may include at least one of a name, a model, a type, and a manufacturer of the device to be debugged.
The terminal can display a device information interface, then a user can input the device information of the device to be debugged on the device information interface, and the terminal responds to the input operation of the user on the device information interface to acquire the device information of the device to be debugged.
Or, the terminal may take the device connected to the terminal as the device to be debugged when detecting the connection to the device, and then acquire the device information from the device to be debugged.
The connection between the terminal and the device may be wireless connection or wired connection. When the connection between the terminal and the equipment is wired connection, the wired connection can be performed through a serial port of the equipment.
The mode of acquiring the device information of the device to be debugged by the terminal can be selected according to actual situations, and the embodiment of the application is not limited herein.
S102, determining the parameter type of the equipment to be debugged aiming at the display function according to the equipment information, and displaying a control corresponding to the parameter type.
The display function refers to a function that can present content to a user so that the user can view the content. The display function may include at least one of a fixed backlight function and a region backlight modulation function.
The parameter types for the display functions may be different for different devices. For example, the a device has a row partition number, a column partition number, a transmission rate, an SPI channel, etc. for the parameter type of the display function, and the B device has a row partition number, a timing adjustment, etc. for the parameter type of the display function.
The candidate device information and the candidate parameter type of the display function can be stored in a mapping table in an associated mode, and after the terminal acquires the device information, the candidate parameter type corresponding to the candidate device information matched with the device information in the mapping table can be used as the parameter type of the device to be debugged aiming at the display function.
The candidate parameter types corresponding to one candidate device information may be stored in one mapping table, or the candidate parameter types corresponding to each candidate device information may be stored in one mapping table.
Alternatively, the candidate parameter types with the same candidate device information can be stored separately, and the candidate parameter types with different candidate device information can be stored in the mapping table, so that the data amount stored in the mapping table is reduced.
For example, the candidate device information includes n1, n2 and n3, the candidate parameter type corresponding to n1 includes t1, t2 and t3, the candidate parameter type corresponding to n2 includes t1, t4 and t5, the candidate parameter type corresponding to n3 includes t1, t6 and t7, each of n1, n2 and n3 corresponds to t1, t1 is stored separately, t2, t3, t4, t5, t6 and t7 are stored in the mapping table, so that t1 does not need to be stored for multiple times, if the obtained device information is n1, the terminal obtains t2 and t3 from the mapping table, and obtains t1 from the separately stored place.
In some embodiments, according to the device information, the process of determining the parameter type of the device to be debugged for the display function may be:
judging whether the equipment to be debugged comprises an initial configuration file aiming at a display function or not according to the equipment information;
if the equipment to be debugged does not comprise the initial configuration file, reading the parameter type of the equipment to be debugged aiming at the display function from a preset storage space according to the equipment information.
In this embodiment of the present application, if an initial configuration file already exists in the device to be debugged, the parameter type of the display function may be read from the initial configuration file, and at this time, a preset code frame file does not need to be acquired, or the initial configuration file is used as the preset code frame file, and if the initial configuration file does not exist in the device to be debugged, the parameter type of the device to be debugged for the display function may be read from a preset storage space. The preset storage space can be a local storage space of the terminal or a server.
When the configuration file exists in the device to be debugged, the terminal can display the configuration file while displaying the control corresponding to the parameter type, for example, as shown in fig. 2, namely, the parameter type to be set in the configuration file is converted into the form of the control, namely, is converted into a visual interface, and the configuration file is displayed at the same time, so that the configuration file and the control are displayed through the two screens, and the parameter value corresponding to the parameter type can be set even if a user does not know the configuration file.
When the parameter type is obtained from the preset storage space, the parameter type usually does not have a corresponding parameter value, at this time, the terminal may display a control corresponding to the parameter type, when the parameter type is obtained from the configuration file, the parameter type may have an initial parameter value, or may not have an initial parameter value, and if the initial parameter value exists, the terminal may display the control corresponding to the parameter type and display the initial parameter value on the control corresponding to the parameter type.
It should be noted that if the terminal is in wired connection with the device to be debugged, it may be detected that the configuration file is directly read from the device to be debugged when the terminal is in wired connection with the device to be debugged, and at this time, it may be unnecessary to obtain the device information of the device to be debugged, and if the configuration file is not read from the device to be debugged, the device information of the device to be debugged is obtained.
S103, responding to triggering operation of the control, and acquiring a parameter value corresponding to the parameter type.
If the initial parameter value does not exist on the control, the terminal responds to the triggering operation of the control to acquire the parameter value corresponding to the parameter type, and if the initial parameter value exists on the control, the terminal responds to the triggering operation of the control to modify the initial parameter value into the parameter value corresponding to the triggering operation to acquire a modified parameter value, and the modified parameter value is used as the parameter value corresponding to the parameter type.
S104, acquiring a preset code frame file, and filling parameter values into the preset code frame file to obtain a configuration file of the equipment to be debugged aiming at the display function.
After the terminal obtains the parameter types and the parameter values corresponding to the parameter types through the control, the parameter types and the parameter values corresponding to the parameter types need to be converted into code files which can be identified by the equipment to be debugged, therefore, in the embodiment of the application, a preset code frame file is preset, the preset code frame file comprises codes corresponding to various candidate parameter types, the terminal screens out the codes corresponding to the parameter types from the codes corresponding to the various candidate parameter types when obtaining the parameter values, and fills the parameter values into the positions of the codes corresponding to the parameter types in the preset code frame file, so that the equipment to be debugged aims at the configuration file of the display function, the configuration file of the display function can be set through the control, namely, the setting visualization of the configuration file is realized, the readability and the transmissibility of the configuration file are improved, the meaning of the codes in the configuration file is not required to be understood, even if the configuration file is not a professional tester, the probability of error occurrence is reduced, the debugging difficulty of the display function is reduced, and the debugging efficiency of the display function is improved.
The terminal may traverse the preset code frame file, so as to obtain a code corresponding to the parameter type. However, when the number of codes included in the preset code frame file is large, the time consumed is large and the speed is low by traversing the code corresponding to the determined parameter type.
In order to more rapidly associate the parameters with the codes corresponding to the parameter types in the preset code frame file in the filling process, namely linking the codes corresponding to the parameter types with the controls, filling the parameter values into the preset code frame file at this time, and obtaining the configuration file of the device to be debugged aiming at the display function can be as follows:
screening codes associated with the control from a preset code frame file;
and filling the parameter values to the corresponding positions of codes associated with the controls in the preset code frame file to obtain the configuration file of the equipment to be debugged aiming at the display function.
At this time, after the terminal obtains the parameter value from the control, the parameter value can be filled in the corresponding position of the code associated with the control in the preset code frame file, the preset code frame file does not need to be traversed, and the speed of inputting the parameter value into the preset code frame file is improved.
Because codes which are not corresponding to the parameter types may exist in the preset code frame file, the parameter values are filled into the preset code frame file, after the configuration file of the equipment to be debugged is obtained, the codes which are not corresponding to the parameter types may exist in the configuration file, but when the equipment to be debugged is used for debugging the display function according to the configuration file, the codes which are not corresponding to the parameter types in the configuration file are not needed, so that redundant information exists in the configuration file, and the speed of the equipment to be debugged when the display function is debugged according to the configuration file is reduced.
For example, the parameter types are t1 and t2, the preset code frame includes a code corresponding to t1, a code corresponding to t2, and a code corresponding to t3, and t3 is a candidate parameter type that is not matched with the parameter type, and then the code corresponding to t3 exists in the configuration file.
Therefore, in order to increase the speed of debugging the display function of the device to be debugged, the process of filling the parameter value into the corresponding position of the code associated with the control in the preset code frame file to obtain the configuration file of the device to be debugged for the display function may be:
filling the parameter values to the corresponding positions of codes associated with the controls in a preset code frame file to obtain candidate configuration files of the equipment to be debugged aiming at the display function;
screening codes associated with target parameter values from the candidate configuration files, wherein the target parameter values comprise parameter values;
and generating a configuration file of the equipment to be debugged aiming at the display function according to the codes associated with the target parameter values.
The code associated with the target parameter value may be understood as a code that can identify the target parameter value. Since there are some identical and preset parameter values in the various devices in debugging the various devices, the target parameter values may include parameter values obtained in response to a trigger operation of the control, and may include preset parameter values.
In the embodiment of the application, the parameter value is filled in a corresponding position of a code associated with the control in a preset code frame file, so that a candidate configuration file of equipment to be debugged aiming at the display function is obtained; the codes associated with the target parameter values are screened from the candidate configuration files to obtain the configuration files of the equipment to be debugged aiming at the display function, wherein the target parameter values comprise parameter values, and the candidate parameter types which are not required by the equipment to be debugged when the display function is debugged do not exist in the candidate configuration files, so that the codes associated with the target parameter values are screened from the candidate configuration files to obtain the configuration files of the equipment to be debugged aiming at the display function, the codes corresponding to the candidate parameter types which are not required by the equipment to be debugged when the display function is not exists in the configuration files, namely, redundant information does not exist in the configuration files, and the speed of the equipment to be debugged when the display function is debugged according to the configuration files is improved.
In other embodiments, filling the parameter values into a preset code frame file to obtain a configuration file of the device to be debugged for the display function, including:
screening codes corresponding to the parameter types from a preset code frame file;
generating a code frame file of the equipment to be debugged aiming at the display function according to the code corresponding to the parameter type and a preset code frame file;
and filling the parameter values into the code frame file to obtain a configuration file of the equipment to be debugged aiming at the display function.
Because the preset code frame file also contains codes which are required by all devices for function debugging and are provided with parameter values in advance, after the codes corresponding to the parameter types are obtained, the code frame file of the device to be debugged aiming at the display function can be generated according to the codes corresponding to the parameter types and the preset code frame file.
In the embodiment of the present application, firstly, a code frame file of a device to be debugged is selected from a preset code frame according to a parameter type, so that codes corresponding to candidate parameter types with unmatched parameter types do not exist in the code frame file, and after a configuration file of the device to be debugged aiming at a display function is obtained by filling a parameter value into the code frame file, the configuration file does not include codes corresponding to candidate parameter types with unmatched parameter types, that is, codes corresponding to candidate parameter types which are not needed when the display function is debugged are not exist in the configuration file, that is, redundant information does not exist in the configuration file, and therefore the speed of the device to be debugged when the display function is debugged according to the configuration file is improved.
Optionally, after the terminal obtains the parameter type, the terminal may obtain the parameter value corresponding to the parameter type while displaying the control corresponding to the parameter type, and in response to the triggering operation on the control, generate the code frame according to the parameter type and the preset code frame file, so that after the parameter value is obtained, the configuration file may be obtained in the code frame file immediately, and compared with the manner that after the candidate configuration file is obtained, the configuration file may be obtained more quickly, so that the display function of the device to be debugged may be debugged more quickly.
In other embodiments, filling the parameter values into a preset code frame file to obtain a configuration file of the device to be debugged for the display function, including:
acquiring an initial code associated with a control;
generating a debugging code corresponding to the parameter type according to the initial code and the parameter value associated with the control;
and storing the debugging codes into a preset code frame file to obtain a configuration file of the equipment to be debugged aiming at the display function.
In the embodiment of the application, the preset code frame file does not include codes corresponding to candidate parameter types, namely does not include codes corresponding to parameter types, the control is associated with the initial code, the initial code is the code corresponding to the parameter types, then the debugging code corresponding to the parameter types is generated according to the initial code and the parameter values associated with the control, the debugging code is stored in the preset code frame file (at this time, the preset code frame file can include codes required by all devices for function debugging), the configuration file of the device to be debugged aiming at the display function is obtained, the configuration file only includes information related to debugging of the device to be debugged, redundant information does not exist, and the speed of the device to be debugged when the display function is debugged according to the configuration file is improved.
It should be understood that steps S101-S104 in the embodiments of the present application may be integrated in a visual interface tool, and when the device needs to be debugged, the visual interface tool is started, so that the display function of the device may be debugged.
S105, debugging the display function of the equipment to be debugged according to the configuration file.
After the terminal obtains the configuration file, the configuration file can be sent to the equipment to be debugged, and the equipment to be debugged displays preset display content according to the configuration file, so that a user can determine the debugging result of the display function of the equipment to be debugged according to the preset display content displayed by the equipment to be debugged.
From the above, in the embodiment of the present application, device information of a device to be debugged is obtained; according to the equipment information, determining the parameter type of equipment to be debugged aiming at the display function, and displaying a control corresponding to the parameter type; responding to triggering operation of the control, and acquiring a parameter value corresponding to the parameter type; acquiring a preset code frame file, and filling parameter values into the preset code frame file to obtain a configuration file of equipment to be debugged aiming at a display function; according to the configuration file, the display function of the equipment to be debugged is debugged, the configuration file of the display function can be set through the control, the meaning of codes in the configuration file is not required to be understood, so that even if the tester is not a professional tester, the configuration file can be set, the debugging difficulty of the display function is reduced, and the debugging efficiency of the display function is improved.
The function debugging provided in the embodiment of the present application will be further described below with reference to fig. 3, in which the display function is taken as an example of the area backlight modulation function, the device to be debugged is taken as an example of the television, and the device information is taken as an example of the model.
S301, the terminal acquires a starting instruction of the visual interface tool, and starts the visual interface tool according to the starting instruction, wherein an interface corresponding to the visual interface tool comprises a NetWork control and a LocalHost control.
S302, the terminal responds to the triggering operation of the NetWork control, displays an equipment information input interface, and responds to the input operation of a user on the equipment information interface, and the model of the television is obtained.
S303, the terminal acquires the parameter type corresponding to the model of the television from the server and displays the control corresponding to the parameter type.
S304, the terminal responds to the triggering operation of the control, acquires a parameter value corresponding to the parameter type, and acquires a preset code frame file.
S305, the terminal screens codes associated with the control from the preset code frame file, fills the parameter values into the corresponding positions of the codes associated with the control in the preset code frame file, and obtains the configuration file of the equipment to be debugged aiming at the display function.
S306, the terminal responds to the triggering operation of the LocalHost control, reads an initial configuration file from the television, and reads a parameter type corresponding to the television and an initial parameter value corresponding to the parameter type from the initial configuration file.
Optionally, after the terminal responds to the triggering operation of the LocalHost control, a "unlock permission" control and a "read configuration file" control may be displayed, then responds to the triggering operation of the "unlock permission" control, opens the file read permission, and then responds to the "read configuration file" control, and reads the initial configuration file from the television according to the file read permission.
S307, the terminal displays the control corresponding to the parameter type and displays the initial parameter value on the control corresponding to the parameter type.
S308, the terminal responds to the triggering operation of the control, and modifies the initial parameter value into a parameter value corresponding to the triggering operation, so as to obtain a parameter value corresponding to the parameter type.
S309, the terminal synchronizes the parameter values corresponding to the parameter types into the initial configuration file to obtain the configuration file.
S3010, sending the configuration file to the television so that the television can debug the area backlight modulation function according to the configuration file.
Optionally, after the configuration file is sent to the television, the television may restart and then debug the area backlight modulation function according to the configuration file.
The specific implementation manner and the corresponding beneficial effects of this embodiment may refer to the above-mentioned embodiment of the function debugging method, and this embodiment is not described herein again.
In order to facilitate better implementation of the function debugging method provided by the embodiment of the application, the embodiment of the application also provides a device based on the function debugging method. Wherein the meaning of the noun is the same as that in the function debugging method, and specific implementation details can refer to the description in the method embodiment.
For example, as shown in fig. 4, the function debugging device may include:
the first obtaining module 401 is configured to obtain device information of a device to be debugged.
The type determining module 402 is configured to determine, according to the device information, a parameter type of the device to be debugged for the display function, and display a control corresponding to the parameter type.
And the second obtaining module 403 is configured to obtain a parameter value corresponding to the parameter type in response to a triggering operation on the control.
The value filling module 404 is configured to obtain a preset code frame file, and fill the parameter value into the preset code frame file to obtain a configuration file of the device to be debugged for the display function.
And the function debugging module 405 is configured to debug the display function of the device to be debugged according to the configuration file.
Optionally, the preset code frame file includes a code corresponding to the parameter type, and the code corresponding to the parameter type is associated with the control. Accordingly, the numerical filling module 404 is specifically configured to perform:
screening codes associated with the control from a preset code frame file;
and filling the parameter values to the corresponding positions of codes associated with the controls in the preset code frame file to obtain the configuration file of the equipment to be debugged aiming at the display function.
Optionally, the numerical filling module 404 is specifically configured to perform:
filling the parameter values to the corresponding positions of codes associated with the controls in a preset code frame file to obtain candidate configuration files of the equipment to be debugged aiming at the display function;
screening codes associated with target parameter values from the candidate configuration files, wherein the target parameter values comprise parameter values;
and generating a configuration file of the equipment to be debugged aiming at the display function according to the codes associated with the target parameter values.
Optionally, the preset code frame file includes a code corresponding to the parameter type. Accordingly, the numerical filling module 404 is specifically configured to perform:
screening codes corresponding to the parameter types from a preset code frame file;
generating a code frame file of the equipment to be debugged aiming at the display function according to the code corresponding to the parameter type and a preset code frame file;
and filling the parameter values into the code frame file to obtain a configuration file of the equipment to be debugged aiming at the display function.
Optionally, the preset code frame file does not include a code corresponding to the parameter type, and accordingly, the numerical value filling module 404 is specifically configured to execute:
acquiring an initial code associated with a control;
generating a debugging code corresponding to the parameter type according to the initial code and the parameter value associated with the control;
and storing the debugging codes into a preset code frame file to obtain a configuration file of the equipment to be debugged aiming at the display function.
Optionally, the type determining module 402 is specifically configured to perform:
judging whether the equipment to be debugged comprises an initial configuration file aiming at a display function or not according to the equipment information;
if the equipment to be debugged does not comprise the initial configuration file, reading the parameter type of the equipment to be debugged aiming at the display function from a preset storage space according to the equipment information.
Optionally, the type determining module 402 is specifically configured to perform:
if the equipment to be debugged comprises the initial configuration file, reading the parameter type of the equipment to be debugged aiming at the display function from the initial configuration file;
and taking the initial configuration file as a preset code frame file.
In the specific implementation, each module may be implemented as an independent entity, or may be combined arbitrarily, and implemented as the same entity or a plurality of entities, and the specific implementation and the corresponding beneficial effects of each module may be referred to the foregoing method embodiments, which are not described herein again.
The embodiment of the application also provides an electronic device, which may be a server or a terminal, as shown in fig. 5, and shows a schematic structural diagram of the electronic device according to the embodiment of the application, specifically:
the electronic device may include one or more processing cores 'processors 501, one or more computer-readable storage media's memory 502, a power supply 503, and an input unit 504, among other components. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 5 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the processor 501 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing computer programs and/or modules stored in the memory 502, and invoking data stored in the memory 502. Optionally, processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 501.
The memory 502 may be used to store computer programs and modules, and the processor 501 performs various functional applications and data processing by executing the computer programs and modules stored in the memory 502. The memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a computer program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device, etc. In addition, memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide access to the memory 502 by the processor 501.
The electronic device further comprises a power supply 503 for powering the various components, preferably the power supply 503 is logically connected to the processor 501 via a power management system, whereby the functions of managing charging, discharging, and power consumption are performed by the power management system. The power supply 503 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further comprise an input unit 504, which input unit 504 may be used for receiving input digital or character information and for generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 501 in the electronic device loads executable files corresponding to the processes of one or more computer programs into the memory 502 according to the following instructions, and the processor 501 executes the computer programs stored in the memory 502, so as to implement various functions, for example:
acquiring equipment information of equipment to be debugged;
according to the equipment information, determining the parameter type of equipment to be debugged aiming at the display function, and displaying a control corresponding to the parameter type;
responding to triggering operation of the control, and acquiring a parameter value corresponding to the parameter type;
acquiring a preset code frame file, and filling parameter values into the preset code frame file to obtain a configuration file of equipment to be debugged aiming at a display function;
and debugging the display function of the equipment to be debugged according to the configuration file.
The specific embodiments and the corresponding beneficial effects of the above operations can be referred to the above detailed description of the function debugging method, and will not be described herein.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of the various methods of the above embodiments may be performed by a computer program, or by computer program control related hardware, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer readable storage medium having stored therein a computer program that is capable of being loaded by a processor to perform steps in any of the function debugging methods provided by embodiments of the present application. For example, the computer program may perform the steps of:
acquiring equipment information of equipment to be debugged;
according to the equipment information, determining the parameter type of equipment to be debugged aiming at the display function, and displaying a control corresponding to the parameter type;
responding to triggering operation of the control, and acquiring a parameter value corresponding to the parameter type;
acquiring a preset code frame file, and filling parameter values into the preset code frame file to obtain a configuration file of equipment to be debugged aiming at a display function;
and debugging the display function of the equipment to be debugged according to the configuration file.
The specific embodiments and the corresponding beneficial effects of each of the above operations can be found in the foregoing embodiments, and are not described herein again.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Since the computer program stored in the computer readable storage medium may execute the steps in any one of the function debugging methods provided in the embodiments of the present application, the beneficial effects that any one of the function debugging methods provided in the embodiments of the present application may be achieved, which are detailed in the previous embodiments and will not be described herein.
Among other things, according to one aspect of the present application, a computer program product or computer program is provided that includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the computer device performs the function debugging method described above.
The foregoing describes in detail a method, an apparatus, an electronic device, and a computer storage medium for debugging functions provided in the embodiments of the present application, and specific examples are applied to describe the principles and implementations of the present application, where the descriptions of the foregoing embodiments are only used to help understand the method and core ideas of the present application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A method of functional debugging, comprising:
acquiring equipment information of equipment to be debugged;
according to the equipment information, determining the parameter type of the equipment to be debugged aiming at the display function, and displaying a control corresponding to the parameter type;
responding to the triggering operation of the control, and acquiring a parameter value corresponding to the parameter type;
acquiring a preset code frame file, and filling the parameter value into the preset code frame file to obtain a configuration file of the equipment to be debugged aiming at the display function;
and debugging the display function of the equipment to be debugged according to the configuration file.
2. The function debugging method according to claim 1, wherein the preset code frame file includes a code corresponding to the parameter type, the code corresponding to the parameter type is associated with the control, and the filling the parameter value into the preset code frame file to obtain a configuration file of the device to be debugged for the display function includes:
screening codes associated with the control from the preset code frame file;
and filling the parameter value to a corresponding position of a code associated with the control in the preset code frame file to obtain a configuration file of the equipment to be debugged aiming at the display function.
3. The function debugging method according to claim 2, wherein the filling the parameter value into a corresponding position of the code associated with the control in the preset code frame file to obtain the configuration file of the device to be debugged for the display function includes:
filling the parameter value to a corresponding position of a code associated with the control in the preset code frame file to obtain a candidate configuration file of the equipment to be debugged aiming at the display function;
screening codes associated with target parameter values from the candidate configuration files, wherein the target parameter values comprise the parameter values;
and generating a configuration file of the equipment to be debugged aiming at the display function according to the code associated with the target parameter value.
4. The function debugging method according to claim 1, wherein the preset code frame file includes a code corresponding to the parameter type, and the filling the parameter value into the preset code frame file to obtain a configuration file of the device to be debugged for the display function includes:
screening codes corresponding to the parameter types from the preset code frame file;
generating a code frame file of the equipment to be debugged aiming at the display function according to the code corresponding to the parameter type and the preset code frame file;
and filling the parameter values into the code frame file to obtain a configuration file of the equipment to be debugged aiming at the display function.
5. The function debugging method according to claim 1, wherein the preset code frame file does not include a code corresponding to the parameter type, and the filling the parameter value into the preset code frame file to obtain a configuration file of the device to be debugged for the display function includes:
acquiring an initial code associated with the control;
generating a debugging code corresponding to the parameter type according to the initial code associated with the control and the parameter value;
and storing the debugging codes into the preset code frame file to obtain a configuration file of the equipment to be debugged aiming at the display function.
6. The function debugging method according to any one of claims 1-5, wherein the determining, according to the device information, a parameter type of the device to be debugged for a display function includes:
judging whether the equipment to be debugged comprises an initial configuration file aiming at a display function or not according to the equipment information;
and if the equipment to be debugged does not comprise the initial configuration file, reading the parameter type of the equipment to be debugged aiming at the display function from a preset storage space according to the equipment information.
7. The function debugging method according to claim 6, wherein after said judging whether an initial configuration file for a display function is included in the device to be debugged according to the device information, further comprising:
if the equipment to be debugged comprises the initial configuration file, reading the parameter type of the equipment to be debugged aiming at the display function from the initial configuration file;
and taking the initial configuration file as the preset code frame file.
8. A function debugging device, comprising:
the first acquisition module is used for acquiring equipment information of equipment to be debugged;
the type determining module is used for determining the parameter type of the equipment to be debugged aiming at the display function according to the equipment information and displaying a control corresponding to the parameter type;
the second acquisition module is used for responding to the triggering operation of the control and acquiring a parameter value corresponding to the parameter type;
the numerical value filling module is used for acquiring a preset code frame file, filling the parameter value into the preset code frame file and obtaining a configuration file of the equipment to be debugged aiming at the display function;
and the function debugging module is used for debugging the display function of the equipment to be debugged according to the configuration file.
9. An electronic device comprising a processor and a memory, the memory storing a computer program, the processor being configured to execute the computer program in the memory to perform the function debugging method of any of claims 1-7.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program adapted to be loaded by a processor for performing the function debugging method of any of claims 1 to 7.
CN202310733266.6A 2023-06-19 2023-06-19 Function debugging method and device, electronic equipment and computer storage medium Pending CN117407277A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310733266.6A CN117407277A (en) 2023-06-19 2023-06-19 Function debugging method and device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310733266.6A CN117407277A (en) 2023-06-19 2023-06-19 Function debugging method and device, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN117407277A true CN117407277A (en) 2024-01-16

Family

ID=89495123

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310733266.6A Pending CN117407277A (en) 2023-06-19 2023-06-19 Function debugging method and device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN117407277A (en)

Similar Documents

Publication Publication Date Title
CN107729227B (en) Application program test range determining method, system, server and storage medium
CN109324962B (en) Method and equipment for testing application program based on cloud Internet of things technology
CN110716848A (en) Data collection method and device, electronic equipment and storage medium
JP2022048088A (en) Method and apparatus for testing code, electronic device, storage medium and computer program
CN111352836A (en) Pressure testing method and related device
CN113868126A (en) Application debugging method, device and storage medium of equipment
CN115983173B (en) Register model generation method, device, computer equipment and storage medium
CN113268260A (en) Routing method and device for web front end
CN108628733B (en) Method and device for testing batch service processing operation
CN114647548A (en) Log generation method and device
CN117407277A (en) Function debugging method and device, electronic equipment and computer storage medium
CN113515354B (en) Unified processing system and method based on environment context consistency
CN117156191A (en) Interface display method, device, electronic equipment and computer readable storage medium
CN114721952A (en) Method, device, equipment and storage medium for synchronously deploying multiple sets of test environments
CN115080412A (en) Software update quality evaluation method, device, equipment and computer storage medium
CN114036218A (en) Data model switching method and device, server and storage medium
CN113010129A (en) Virtual studio full-flow multi-terminal blackboard writing extraction method and device
CN113204425A (en) Method and device for process management internal thread, electronic equipment and storage medium
CN111737784A (en) Board card type selection configuration method and device based on digital three-dimensional ZXMP S385 subframe
CN113626409B (en) Test data processing method, device, equipment and storage medium
CN112286826B (en) VTS test method and device, storage medium and computer equipment
CN115242685B (en) Playback testing method, device, equipment and storage medium based on incidence matrix
CN117407082A (en) Engine configuration method, engine configuration device, electronic equipment and computer storage medium
CN115277469A (en) Weak network visualization control method and device, electronic equipment and readable storage medium
CN117407279A (en) Software component map generation method and related equipment thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination