WO2018233121A1 - 调试工具配置方法、可读存储介质及调试工具配置装置 - Google Patents
调试工具配置方法、可读存储介质及调试工具配置装置 Download PDFInfo
- Publication number
- WO2018233121A1 WO2018233121A1 PCT/CN2017/103767 CN2017103767W WO2018233121A1 WO 2018233121 A1 WO2018233121 A1 WO 2018233121A1 CN 2017103767 W CN2017103767 W CN 2017103767W WO 2018233121 A1 WO2018233121 A1 WO 2018233121A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- debug
- debugging
- item
- current
- index
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3696—Methods or tools to render software testable
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/362—Debugging of software
Definitions
- the present invention relates to the field of debugging tools, and in particular, to a debugging tool configuration method, a readable storage medium, and a debugging tool configuration device.
- the debugging tool is used for function debugging and machine testing after the product is produced, and the debugging tool configuration process directly affects the debugging efficiency of the debugging tool, so the configuration process of the debugging tool is more and more valued by people. .
- the existing debugging tool configuration method package the debugging tool information into a separate installation package and pre-installed in the system to form the APP software, and then hide the icon of the APP software, when the debugging tool is to be started When you connect the external open device through the debug line and enter the corresponding command to start the debug tool.
- the debugging tool information needs to be packaged into a separate installation package and pre-installed in the system to form the APP software, so that the memory occupied by the system is large, which causes the debugging tool to be opened slowly and affects the system.
- the debugging device In the running state, and the existing debugging tool configuration method, when the debugging tool is enabled, the debugging device must be connected to the external opening device to enable the debugging tool to be turned on, which leads to a complicated process of turning on the debugging tool. Debugging tool configuration efficiency.
- an object of the embodiments of the present invention is to provide a debugging tool configuration method, a readable storage medium, and a debugging tool configuration device that occupy small memory.
- a debugging tool configuration method comprising:
- the debug item configuration file includes the debug index corresponding to each of the debug item indexes respectively.
- the debugging tool configuration method by setting a plurality of the debugging tool information to the design of the debugging item, respectively, to arrange different debugging logic information and corresponding debugging function code, thereby facilitating the
- the query of the debug function code is provided to facilitate the query of the debug item corresponding to the debug index when the debug file registration file is created, thereby improving the configuration efficiency of the debugging tool.
- the debugging item configuration file is convenient for querying the debugging index when the debugging item index is obtained.
- the foregoing method does not need to package the debugging tool information into a separate installation package, thereby saving memory and eliminating the need for APP software.
- the generation of the tool does not require the hidden operation of the APP software icon, thereby improving the configuration efficiency of the debugging tool.
- the method further includes:
- the debug tool transfer signal includes at least one debug item index.
- the step of separately querying the current debug index corresponding to each current debug item index according to the debug item configuration file includes:
- mapping relationship between the current debug item index in the debug item configuration file, and querying the corresponding current debug index according to the mapping relationship
- Each of the current debug indexes is obtained separately, and each of the current debug indexes is arranged in a table form in a form of a table.
- step of querying and running the current debug item corresponding to the current debug index according to the debug item registration file includes:
- a readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of any of the methods described above.
- a debugging tool configuration device comprising:
- a first obtaining module configured to acquire a plurality of debugging tool information stored locally and set as debugging items, where each of the debugging tool information includes different debugging logic information and a corresponding debugging function code;
- a second obtaining module configured to respectively acquire a debugging index corresponding to each of the debugging items, and store a correspondence between each of the debugging items and the corresponding debugging index to establish a debugging item registration file;
- a third obtaining module configured to query the local information and obtain a corresponding index of the plurality of debugging items according to the local information, to establish a debugging item configuration file, where the debugging item configuration file includes an index corresponding to each of the debugging items The debug index.
- the debugging tool configuration device by using the first acquired design, to sort different debugging logic information and the corresponding debugging function code, thereby facilitating querying of the debugging function code by using the
- the design of the second acquisition module establishes the debug item registration file, thereby facilitating the query of the debug item corresponding to the debug index, and improving the configuration efficiency of the debug tool configuration device.
- the debugging of the third acquisition module establishes the debugging item configuration file, thereby facilitating the query of the debugging index when the debugging item index is obtained, and the debugging tool configuration device does not need to package the debugging tool information into independent
- the installation package saves the memory and does not need to generate the APP software, and does not need to hide the APP software icon, thereby improving the configuration efficiency of the debugging tool configuration device.
- the debugging tool configuration device further includes:
- An execution module configured to query, according to the obtaining result of the first obtaining module, the second obtaining module, and the third acquiring module, when the debugging tool call signal is received, querying the current debugging in the debugging tool call signal An index of the item, and querying, according to the debug item configuration file, a current debug index corresponding to each of the current debug item indexes, and querying and running the file according to the debug item registration file
- the current debug item corresponding to the pre-debug index, the debug tool mobilization signal includes at least one index of the debug item.
- execution module includes:
- a first query module configured to query a mapping relationship between the current debug item index in the debug item configuration file, and query the corresponding current debug index according to the mapping relationship;
- the first sub-acquisition module is configured to obtain each of the current debug indexes according to the query result of the first query module, and perform table rendering on each of the current debug indexes in a form of a table.
- execution module further includes:
- a second querying module configured to query a debugging correspondence relationship of the current debugging index in the debugging item registration file, and query the current debugging item according to the debugging correspondence relationship;
- a second sub-acquisition module configured to acquire a current debugging function code in the current debugging item according to the query result of the second query module, and load the current debugging function code to enable configuration of the debugging interface .
- FIG. 1 is a flowchart of a method for configuring a debugging tool according to a first embodiment of the present invention
- FIG. 2 is a flowchart of a method for configuring a debugging tool according to a second embodiment of the present invention
- FIG. 3 is a schematic structural diagram of a debugging tool configuration apparatus according to a third embodiment of the present invention.
- FIG. 4 is a schematic structural diagram of a debugging tool configuration apparatus according to a fourth embodiment of the present invention.
- Debugging tool configuration device 100 100a First acquisition module 10 Second acquisition module 11 Third acquisition module 12 Execution module 20,20a First query module twenty one First sub-acquisition module twenty two Second query module twenty three Second sub-acquisition module twenty four
- FIG. 1 is a flowchart of a method for configuring a debugging tool according to a first embodiment of the present invention, including steps S10 to S30.
- Step S10 Acquire a plurality of debugging tool information stored locally and set as multiple debugging items, each of the debugging tool information respectively containing different debugging logic information and a corresponding debugging function code;
- the debug item when the debug tool information is a screen test item, the debug item is LcdScreenTestItem, and the code of the test function of the screen test item is written in the LcdScreenTestItem, when the debug tool information is a touch screen test item, The debug item is TPTestItem, and the test function code of the touch screen test item is written in the TPTestItem;
- Step S20 Acquire a debug index corresponding to each of the debug items, and store a correspondence between each of the debug items and the corresponding debug index to establish a debug item registration file.
- the debug item registration file in the embodiment is TestConfig, and the debug item registration file includes the debug index corresponding to all the debug items, and TestConfig is equivalent to a directory registry, where each debug index is used. All pointing to the corresponding debug item, and the specific debug index points to the debug function code in the debug item;
- step S30 the local information is queried and the corresponding plurality of debug item indexes are obtained according to the local information to establish a debug item configuration file, and each of the debug item indexes respectively corresponds to one of the debug indexes;
- the debug item configuration file in the embodiment is TestRegister. Since the debug item indexes required by different models are different, the local information needs to be queried to establish the test item configuration file, and the TestRegister includes Index of all the test items required by the current model;
- a plurality of the debugging tool information are respectively set as the debugging item design, so that different debugging logic information and the corresponding debugging function code are collated, thereby facilitating the debugging function.
- the query of the code by establishing the design of the debug item registration file, facilitates the query of the debug item corresponding to the debug index, thereby improving the configuration efficiency of the debug tool, and establishing the debug item configuration.
- the design of the file is convenient when the index of the debug item is obtained.
- the above method does not need to package the debugging tool information into a separate installation package, thereby saving memory and eliminating the need to generate APP software, and further eliminating the need to hide the APP software icon, thereby improving debugging. Tool configuration efficiency.
- FIG. 2 is a flowchart of a method for configuring a debugging tool according to a second embodiment of the present invention, where the method includes steps S11 to S81.
- Step S11 acquiring a plurality of debugging tool information stored locally and respectively setting a plurality of debugging items, each of the debugging tool information respectively containing different debugging logic information and a corresponding debugging function code;
- the debug item when the debug tool information is a screen test item, the debug item is LcdScreenTestItem, and the code of the test function of the screen test item is written in the LcdScreenTestItem, when the debug tool information is a touch screen test item, The debug item is TPTestItem, and the test function code of the touch screen test item is written in the TPTestItem;
- Step S21 Acquire a debug index corresponding to each of the debug items, and store a correspondence between each of the debug items and the corresponding debug index to establish a debug item registration file.
- the debug item registration file in the embodiment is TestConfig, and the debug item registration file includes the debug index corresponding to all the debug items, and TestConfig is equivalent to a directory registry, where each debug index is used. All pointing to the corresponding debug item, and the specific debug index points to the debug function code in the debug item;
- step S31 the local information is queried and the corresponding plurality of debug item indexes are obtained according to the local information to establish a debug item configuration file, and each of the debug item indexes respectively corresponds to one of the debug indexes;
- the debug item configuration file in the embodiment is TestRegister. Since the debug item indexes required by different models are different, the local information needs to be queried to establish the test item configuration file, and the TestRegister includes Index of all the test items required by the current model;
- Step S41 when receiving the debugging tool call signal, querying the current debug item index in the debugging tool call signal;
- the debug tool call signal includes the current debug item index corresponding to the debug tool that the user needs to open, and the debug tool call signal includes at least one current debug item index, for example, the current debug item.
- the index may be a screen test item index, a touch screen test item index, a keyboard test item index, or a headphone test item index;
- Step S51 querying a mapping relationship between the current debug item index in the debug item configuration file, and querying the corresponding current debug index according to the mapping relationship;
- the mapping relationship in the embodiment is RegisterMap ⁇ N, M>, where N represents the id number of the debug item index in the TestRegister, and M represents the id number of the debug index in the TestConfig, and the mapping relationship can be Querying the current debug index corresponding to the current debug item index;
- Step S61 respectively acquiring each of the current debugging indexes, and performing table rendering on each of the current debugging indexes in the form of a table;
- Step S71 querying the debugging correspondence relationship of the current debugging index in the debugging item registration file, and querying the current debugging item according to the debugging correspondence relationship;
- the debugging corresponding relationship in the embodiment is ConfigMap ⁇ X, Y>, X represents the id number of the debugging index in TestConfig, and Y represents the name of the current debugging item;
- Step S81 acquiring a current debugging function code in the current debugging item, and loading the current debugging function code to enable configuration of the debugging interface;
- the user can perform debugging or testing through the debugging interface.
- a plurality of the debugging tool information are respectively set as the debugging item design, so that different debugging logic information and the corresponding debugging function code are collated, thereby facilitating the debugging function.
- the query of the code by establishing the design of the debug item registration file, facilitates the query of the debug item corresponding to the debug index, thereby improving the configuration efficiency of the debug tool, and establishing the debug item configuration.
- the file is designed to facilitate the query of the debug index when the debug item index is obtained.
- the local information is queried and the corresponding plurality of debug item indexes are obtained according to the local information to establish a debug item configuration file, and each of the debug item indexes respectively corresponds to one of the debug indexes.
- the readable storage medium is, for example, a ROM/RAM, a magnetic disk, an optical disk, or the like.
- FIG. 3 is a schematic structural diagram of a debugging tool configuration apparatus 100 according to a third embodiment of the present invention.
- the debugging tool configuration apparatus 100 includes:
- the first obtaining module 10 is configured to obtain a plurality of locally stored debugging tool information and respectively set as debugging items, where each of the debugging tool information includes different debugging logic information and corresponding debugging function codes, for example, when the debugging
- the debug item is LcdScreenTestItem
- the code of the test function of the screen test item is written in the LcdScreenTestItem.
- the debug item is TPTestItem.
- the test function codes of the touch screen test items are all written in the TPTestItem;
- the second obtaining module 11 is configured to respectively obtain a debugging index corresponding to each of the debugging items, and store a corresponding relationship between each of the debugging items and the corresponding debugging index to establish a debugging item registration file
- the debug item registration file is TestConfig
- the debug item registration file includes the debug index corresponding to all the debug items
- the TestConfig is equivalent to a directory registry, wherein each of the debug indexes points to a corresponding The debug item, the specific debug index points to the debug function code in the debug item;
- the third obtaining module 12 is configured to query the local information and obtain a corresponding index of the plurality of debug items according to the local information, to establish a debug item configuration file, where each of the debug item indexes respectively corresponds to one of the debug indexes.
- the debug item configuration file is TestRegister. Since the debug item indexes required by different models are different, the local information needs to be queried to establish the test item configuration file, and the test register includes the current machine. Index of all the test items required for the type.
- the debugging tool configuration apparatus 100 further includes:
- the execution module 20 is configured to query the debugging tool call signal when receiving the debugging tool call signal according to the obtaining results of the first obtaining module 10, the second obtaining module 11, and the third obtaining module 12
- the current debug item index within, and query each according to the debug item configuration file And the current debugging index corresponding to the current debugging item index, and querying and running the current debugging item corresponding to the current debugging index according to the debugging item registration file, where the debugging tool transfer signal includes at least one index of the current debugging item.
- the execution module 20 includes:
- the first query module 21 is configured to query a mapping relationship between the current debug item index in the debug item configuration file, and query the corresponding current debug index according to the mapping relationship, where the debugging tool calls a signal
- the current debug item index corresponding to the debugging tool that is required to be opened by the user, and the debug tool call signal includes at least one of the current debug item indexes, for example, the current debug item index may be a screen test item index, a touch screen.
- the first sub-acquisition module 22 is configured to obtain each of the current debugging indexes according to the query result of the first query module 21, and perform table rendering of each of the current debugging indexes in the form of a table.
- the design of the first acquisition 10 is used to organize different debugging logic information and the corresponding debugging function code, thereby facilitating querying of the debugging function code, by using the second
- the design of the debugging module 11 establishes the debug item registration file, thereby facilitating the query of the debug item corresponding to the debug index, and improving the configuration efficiency of the debugging tool configuration apparatus 100.
- the design of the third acquisition module 12 establishes the debug item configuration file, thereby facilitating the query of the debug index when the debug item index is obtained, and the debug tool configuration apparatus 100 does not need to package the debug tool information. As a separate installation package, the memory is saved and the generation of the APP software is not required, and the hidden operation of the APP software icon is not required, thereby improving the configuration efficiency of the debugging tool configuration apparatus 100.
- FIG. 4 is a schematic structural diagram of a debugging tool configuration apparatus 100a according to a fourth embodiment of the present invention.
- the fourth embodiment is substantially the same as the third embodiment, and the difference is that the execution module is used in this embodiment.
- 20a also includes:
- the second querying module 23 is configured to query the debugging correspondence of the current debugging index in the debugging item registration file, and query the current debugging item according to the debugging correspondence relationship, and the debugging corresponding relationship in the embodiment ConfigMap ⁇ X, Y>, X represents the id number of the debug index in TestConfig, and Y represents the name of the current debug item;
- the second sub-acquisition module 24 is configured to acquire a current debugging function code in the current debugging item according to the query result of the second query module 23, and load the current debugging function code to enable a debugging interface. After the configuration of the debugging interface is performed, the user can debug or test through the debugging interface.
- the design of the second query module 23 and the second sub-acquisition module 24 can automatically perform the loading of the current debugging function code, so that the configuration of the debugging interface is performed, thereby further facilitating the user.
- the operation improves the user experience.
- the debugging tool information is not packaged into a separate installation package, thereby saving memory and eliminating the need for APP software generation, and eliminating the need to hide the APP software icon, thereby improving the location.
- the configuration efficiency of the debug tool configuration device 100a is described.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
一种调试工具配置方法、可读存储介质及调试工具配置装置,所述方法包括:获取本地存储的多个调试工具信息并分别设置为多个调试项,每个所述调试工具信息分别包含不同的调试逻辑信息和对应的调试功能代码(S10);分别获取每个所述调试项对应的调试索引,并将每个所述调试项和对应的所述调试索引的对应关系进行存储,以建立调试项注册文件(S20);查询本机信息并根据所述本机信息获取对应的多个调试项索引,以建立调试项配置文件,每个所述调试项索引分别对应一个所述调试索引(S30)。所述方法提高了调试工具的配置效率。
Description
本发明涉及调试工具技术领域,特别涉及一种调试工具配置方法、可读存储介质及调试工具配置装置。
随着时代的发展人们生活水平的不断提高,各种智能设备的生产也越来越来迅速,而在智能设备的生产过程中开发人员一般会在产品中预留一些专用的调试程序以配置生成对应调试工具,调试工具用于当产品生产好后的功能调试和整机测试等作用,而调试工具的配置过程直接影响调试工具的调试效率,因此调试工具的配置过程越来越受人们所重视。
现有的调试工具配置方法中采用的方式:把调试工具信息打包成独立安装包并预装在系统中以形成APP软件,再将其APP软件的图标进行隐藏处理,当要对调试工具进行启动时,通过调试线连接外部开启设备,并输入相应的命令以启动调试工具。
现有的调试工具配置方法中由于需要将调试工具信息打包成独立安装包并预装在系统中以形成APP软件,使得占用系统的内存较大,进而导致了调试工具开启的缓慢且影响了系统的运行状态,且现有的调试工具配置方法中,当进行调试工具的启用时,必须先通过调试线连接外部开启设备才能进行调试工具的开启,进而导致了调试工具的开启过程较为复杂降低了调试工具的配置效率。
发明内容
基于此,本发明实施例的目的在于提供一种占用内存小的调试工具配置方法、可读存储介质及调试工具配置装置。
一种调试工具配置方法,所述方法包括:
获取本地存储的多个调试工具信息并分别设置为调试项,每个所述调试工具信息分别包含不同的调试逻辑信息和对应的调试功能代码;
分别获取每个所述调试项对应的调试索引,并将每个所述调试项和对应的所述调试索引的对应关系进行存储,以建立调试项注册文件;
查询本机信息并根据所述本机信息获取对应的多个调试项索引,以建立调试项配置文件,所述调试项配置文件包括每个所述调试项索引分别对应的所述调试索引。
上述调试工具配置方法,通过分别将多个所述调试工具信息设置为所述调试项的设计,以将不同的所述调试逻辑信息和对应的所述调试功能代码进行了整理,进而方便了所述调试功能代码的查询,通过建立所述调试项注册文件的设计,方便了当获取到所述调试索引时对应的所述调试项的查询,进而提高了调试工具的配置效率,通过建立所述调试项配置文件的设计,方便了当获取到所述调试项索引时所述调试索引的查询,上述方法无需将所述调试工具信息打包成独立的安装包,进而节省了内存且无需进行APP软件的生成,更无需进行APP软件图标的隐藏操作,进而提高了调试工具的配置效率。
进一步地,所述方法还包括:
当接收到调试工具调用信号时,查询所述调试工具调用信号内的当前调试项索引,并根据所述调试项配置文件分别查询每个所述当前调试项索引对应的当前调试索引,并根据所述调试项注册文件查询并运行所述当前调试索引对应的当前调试项,所述调试工具调动信号内至少包含一个所述调试项索引。
进一步地,所述并根据所述调试项配置文件分别查询每个所述当前调试项索引对应的当前调试索引的步骤包括:
查询所述当前调试项索引在所述调试项配置文件中的映射关系,并根据所述映射关系查询到对应的所述当前调试索引;
分别获取每个所述当前调试索引,并采用表格的形式将每个所述当前调试索引进行表格渲染排列。
进一步地,所述并根据所述调试项注册文件查询并运行所述当前调试索引对应的当前调试项的步骤包括:
查询所述调试项注册文件中所述当前调试索引的调试对应关系,并根据所述调试对应关系查询到所述当前调试项;
获取所述当前调试项内的当前调试功能代码,并对所述当前调试功能代码进行加载,以使进行调试界面的配置。
一种可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上述任意一项所述的方法的步骤。
一种调试工具配置装置,包括:
第一获取模块,用于获取本地存储的多个调试工具信息并分别设置为调试项,每个所述调试工具信息分别包含不同的调试逻辑信息和对应的调试功能代码;
第二获取模块,用于分别获取每个所述调试项对应的调试索引,并将每个所述调试项和对应的所述调试索引的对应关系进行存储,以建立调试项注册文件;
第三获取模块,用于查询本机信息并根据所述本机信息获取对应的多个调试项索引,以建立调试项配置文件,所述调试项配置文件包括每个所述调试项索引分别对应的所述调试索引。
上述调试工具配置装置,通过所述第一获取的设计,以将不同的所述调试逻辑信息和对应的所述调试功能代码进行了整理,进而方便了所述调试功能代码的查询,通过所述第二获取模块的设计建立了所述调试项注册文件,进而方便了当获取到所述调试索引时对应的所述调试项的查询,提高了所述调试工具配置装置的配置效率,通过所述第三获取模块的设计建立了所述调试项配置文件,进而方便了当获取到所述调试项索引时所述调试索引的查询,所述调试工具配置装置无需将所述调试工具信息打包成独立的安装包,进而节省了内存且无需进行APP软件的生成,更无需进行APP软件图标的隐藏操作,进而提高了所述调试工具配置装置的配置效率。
进一步地,所述调试工具配置装置还包括:
执行模块,用于根据所述第一获取模块、所述第二获取模块和所述第三获取模块的获取结果,当接收到调试工具调用信号时,查询所述调试工具调用信号内的当前调试项索引,并根据所述调试项配置文件分别查询每个所述当前调试项索引对应的当前调试索引,并根据所述调试项注册文件查询并运行所述当
前调试索引对应的当前调试项,所述调试工具调动信号内至少包含一个所述调试项索引。
进一步地,所述执行模块包括:
第一查询模块,用于查询所述当前调试项索引在所述调试项配置文件中的映射关系,并根据所述映射关系查询到对应的所述当前调试索引;
第一子获取模块,用于根据所述第一查询模块的查询结果,分别获取每个所述当前调试索引,并采用表格的形式将每个所述当前调试索引进行表格渲染排列。
进一步地,所述执行模块还包括:
第二查询模块,用于查询所述调试项注册文件中所述当前调试索引的调试对应关系,并根据所述调试对应关系查询到所述当前调试项;
第二子获取模块,用于根据所述第二查询模块的查询结果,获取所述当前调试项内的当前调试功能代码,并对所述当前调试功能代码进行加载,以使进行调试界面的配置。
图1为本发明第一实施例提供的调试工具配置方法的流程图;
图2为本发明第二实施例提供的调试工具配置方法的流程图;
图3为本发明第三实施例提供的调试工具配置装置的结构示意图;
图4为本发明第四实施例提供的调试工具配置装置的结构示意图;
主要元素符号说明
| 调试工具配置装置 | 100,100a | 第一获取模块 | 10 |
| 第二获取模块 | 11 | 第三获取模块 | 12 |
| 执行模块 | 20,20a | 第一查询模块 | 21 |
| 第一子获取模块 | 22 | 第二查询模块 | 23 |
| 第二子获取模块 | 24 |
为了便于更好地理解本发明,下面将结合相关实施例附图对本发明进行进一步地解释。附图中给出了本发明的实施例,但本发明并不仅限于上述的优选实施例。相反,提供这些实施例的目的是为了使本发明的公开面更加得充分。
请参阅图1,为本发明第一实施例提供的调试工具配置方法的流程图,包括步骤S10至S30。
步骤S10,获取本地存储的多个调试工具信息并分别设置为多个调试项,每个所述调试工具信息分别包含不同的调试逻辑信息和对应的调试功能代码;
其中,例如当所述调试工具信息为屏幕测试项时,所述调试项为LcdScreenTestItem,所述屏幕测试项的测试功能的代码均写在LcdScreenTestItem内,当所述调试工具信息为触摸屏测试项时,所述调试项为TPTestItem,所述触摸屏测试项的测试功能代码均写在TPTestItem内;
步骤S20,分别获取每个所述调试项对应的调试索引,并将每个所述调试项和对应的所述调试索引的对应关系进行存储,以建立调试项注册文件;
其中,本实施例中所述调试项注册文件为TestConfig,所述调试项注册文件中包含所有所述调试项对应的所述调试索引,TestConfig相当于一个目录注册表,其中每条所述调试索引均指向对应的所述调试项,具体的所述调试索引指向所述调试项内的所述调试功能代码;
步骤S30,查询本机信息并根据所述本机信息获取对应的多个调试项索引,以建立调试项配置文件,每个所述调试项索引分别对应一个所述调试索引;
其中,本实施例中所述调试项配置文件为TestRegister,由于不同机型所需要的所述调试项索引不同,因此需要查询所述本机信息以使建立所述试项配置文件,TestRegister中包含当前机型所需要的所有所述测试项索引;
本实施例通过分别将多个所述调试工具信息设置为所述调试项的设计,以将不同的所述调试逻辑信息和对应的所述调试功能代码进行了整理,进而方便了所述调试功能代码的查询,通过建立所述调试项注册文件的设计,方便了当获取到所述调试索引时对应的所述调试项的查询,进而提高了调试工具的配置效率,通过建立所述调试项配置文件的设计,方便了当获取到所述调试项索引
时所述调试索引的查询,上述方法无需将所述调试工具信息打包成独立的安装包,进而节省了内存且无需进行APP软件的生成,更无需进行APP软件图标的隐藏操作,进而提高了调试工具的配置效率。
请参阅图2,为本发明第二实施例提供的调试工具配置方法的流程图,所述方法包括步骤S11至S81。
步骤S11,获取本地存储的多个调试工具信息并分别设置为多个调试项,每个所述调试工具信息分别包含不同的调试逻辑信息和对应的调试功能代码;
其中,例如当所述调试工具信息为屏幕测试项时,所述调试项为LcdScreenTestItem,所述屏幕测试项的测试功能的代码均写在LcdScreenTestItem内,当所述调试工具信息为触摸屏测试项时,所述调试项为TPTestItem,所述触摸屏测试项的测试功能代码均写在TPTestItem内;
步骤S21,分别获取每个所述调试项对应的调试索引,并将每个所述调试项和对应的所述调试索引的对应关系进行存储,以建立调试项注册文件;
其中,本实施例中所述调试项注册文件为TestConfig,所述调试项注册文件中包含所有所述调试项对应的所述调试索引,TestConfig相当于一个目录注册表,其中每条所述调试索引均指向对应的所述调试项,具体的所述调试索引指向所述调试项内的所述调试功能代码;
步骤S31,查询本机信息并根据所述本机信息获取对应的多个调试项索引,以建立调试项配置文件,每个所述调试项索引分别对应一个所述调试索引;
其中,本实施例中所述调试项配置文件为TestRegister,由于不同机型所需要的所述调试项索引不同,因此需要查询所述本机信息以使建立所述试项配置文件,TestRegister中包含当前机型所需要的所有所述测试项索引;
步骤S41,当接收到调试工具调用信号时,查询所述调试工具调用信号内的当前调试项索引;
其中,所述调试工具调用信号内包含用户所需要开启的调试工具对应的所述当前调试项索引,且所述调试工具调用信号内至少包含一个所述当前调试项索引,例如所述当前调试项索引可为屏幕测试项索引、触摸屏测试项索引、键盘测试项索引或耳机测试项索引等;
步骤S51,查询所述当前调试项索引在所述调试项配置文件中的映射关系,并根据所述映射关系查询到对应的所述当前调试索引;
其中,本实施例中所述映射关系为RegisterMap<N,M>,N代表TestRegister中所述调试项索引的id号,M代表TestConfig中所述调试索引的id号,进而通过所述映射关系可查询到所述当前调试项索引对应的所述当前调试索引;
步骤S61,分别获取每个所述当前调试索引,并采用表格的形式将每个所述当前调试索引进行表格渲染排列;
步骤S71,查询所述调试项注册文件中所述当前调试索引的调试对应关系,并根据所述调试对应关系查询到所述当前调试项;
其中,本实施例中所述调试对应关系为ConfigMap<X,Y>,X代表TestConfig中所述调试索引的id号,Y代表所述当前调试项的名称;
步骤S81,获取所述当前调试项内的当前调试功能代码,并对所述当前调试功能代码进行加载,以使进行调试界面的配置;
其中,当进行所述调试界面的配置后,用户可通过所述调试界面进行调试或测试。
本实施例通过分别将多个所述调试工具信息设置为所述调试项的设计,以将不同的所述调试逻辑信息和对应的所述调试功能代码进行了整理,进而方便了所述调试功能代码的查询,通过建立所述调试项注册文件的设计,方便了当获取到所述调试索引时对应的所述调试项的查询,进而提高了调试工具的配置效率,通过建立所述调试项配置文件的设计,方便了当获取到所述调试项索引时所述调试索引的查询,上述方法无需将所述调试工具信息打包成独立的安装包,进而节省了内存且无需进行APP软件的生成,更无需进行APP软件图标的隐藏操作,进而提高了调试工具的配置效率。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,包括如下步骤:
获取本地存储的多个调试工具信息并分别设置为调试项,每个所述调试工具信息分别包含不同的调试逻辑信息和对应的调试功能代码;
分别获取每个所述调试项对应的调试索引,并将每个所述调试项和对应的所述调试索引的对应关系进行存储,以建立调试项注册文件;
查询本机信息并根据所述本机信息获取对应的多个调试项索引,以建立调试项配置文件,每个所述调试项索引分别对应一个所述调试索引。所述的可读取存储介质如:ROM/RAM、磁碟、光盘等。
请参阅图3,为本发明第三实施例提供的调试工具配置装置100的结构示意图,所述调试工具配置装置100包括:
第一获取模块10,用于获取本地存储的多个调试工具信息并分别设置为调试项,每个所述调试工具信息分别包含不同的调试逻辑信息和对应的调试功能代码,例如当所述调试工具信息为屏幕测试项时,所述调试项为LcdScreenTestItem,所述屏幕测试项的测试功能的代码均写在LcdScreenTestItem内,当所述调试工具信息为触摸屏测试项时,所述调试项为TPTestItem,所述触摸屏测试项的测试功能代码均写在TPTestItem内;
第二获取模块11,用于分别获取每个所述调试项对应的调试索引,并将每个所述调试项和对应的所述调试索引的对应关系进行存储,以建立调试项注册文件,本实施例中所述调试项注册文件为TestConfig,所述调试项注册文件中包含所有所述调试项对应的所述调试索引,TestConfig相当于一个目录注册表,其中每条所述调试索引均指向对应的所述调试项,具体的所述调试索引指向所述调试项内的所述调试功能代码;
第三获取模块12,用于查询本机信息并根据所述本机信息获取对应的多个调试项索引,以建立调试项配置文件,每个所述调试项索引分别对应一个所述调试索引,本实施例中所述调试项配置文件为TestRegister,由于不同机型所需要的所述调试项索引不同,因此需要查询所述本机信息以使建立所述试项配置文件,TestRegister中包含当前机型所需要的所有所述测试项索引。
所述调试工具配置装置100还包括:
执行模块20,用于根据所述第一获取模块10、所述第二获取模块11和所述第三获取模块12的获取结果,当接收到调试工具调用信号时,查询所述调试工具调用信号内的当前调试项索引,并根据所述调试项配置文件分别查询每个
所述当前调试项索引对应的当前调试索引,并根据所述调试项注册文件查询并运行所述当前调试索引对应的当前调试项,所述调试工具调动信号内至少包含一个所述当前调试项索引。
所述执行模块20包括:
第一查询模块21,用于查询所述当前调试项索引在所述调试项配置文件中的映射关系,并根据所述映射关系查询到对应的所述当前调试索引,所述调试工具调用信号内包含用户所需要开启的调试工具对应的所述当前调试项索引,且所述调试工具调用信号内至少包含一个所述当前调试项索引,例如所述当前调试项索引可为屏幕测试项索引、触摸屏测试项索引、键盘测试项索引或耳机测试项索引等,本实施例中所述映射关系为RegisterMap<N,M>,N代表TestRegister中所述调试项索引的id号,M代表TestConfig中所述调试索引的id号,进而通过所述映射关系可查询到所述当前调试项索引对应的所述当前调试索引;
第一子获取模块22,用于根据所述第一查询模块21的查询结果,分别获取每个所述当前调试索引,并采用表格的形式将每个所述当前调试索引进行表格渲染排列。
本实施例通过所述第一获取10的设计,以将不同的所述调试逻辑信息和对应的所述调试功能代码进行了整理,进而方便了所述调试功能代码的查询,通过所述第二获取模块11的设计建立了所述调试项注册文件,进而方便了当获取到所述调试索引时对应的所述调试项的查询,提高了所述调试工具配置装置100的配置效率,通过所述第三获取模块12的设计建立了所述调试项配置文件,进而方便了当获取到所述调试项索引时所述调试索引的查询,所述调试工具配置装置100无需将所述调试工具信息打包成独立的安装包,进而节省了内存且无需进行APP软件的生成,更无需进行APP软件图标的隐藏操作,进而提高了所述调试工具配置装置100的配置效率。
请参阅图4,为本发明第四实施例提供的调试工具配置装置100a的结构示意图,该第四实施例与第三实施例的结构大抵相同,其区别在于,本实施例中所述执行模块20a还包括:
第二查询模块23,用于查询所述调试项注册文件中所述当前调试索引的调试对应关系,并根据所述调试对应关系查询到所述当前调试项,本实施例中所述调试对应关系为ConfigMap<X,Y>,X代表TestConfig中所述调试索引的id号,Y代表所述当前调试项的名称;
第二子获取模块24,用于根据所述第二查询模块23的查询结果,获取所述当前调试项内的当前调试功能代码,并对所述当前调试功能代码进行加载,以使进行调试界面的配置,当进行所述调试界面的配置后,用户可通过所述调试界面进行调试或测试。
本实施例中通过所述第二查询模块23和所述第二子获取模块24的设计,可自动进行所述当前调试功能代码加载,以使进行所述调试界面的配置,进而更加方便了用户操作,提高了用户体验,本实施例无需将所述调试工具信息打包成独立的安装包,进而节省了内存且无需进行APP软件的生成,更无需进行APP软件图标的隐藏操作,进而提高了所述调试工具配置装置100a的配置效率。
上述实施例描述了本发明的技术原理,这些描述只是为了解释本发明的原理,而不能以任何方式解释为本发明保护范围的限制。基于此处的解释,本领域的技术人员不需要付出创造性的劳动即可联想到本发明的其他具体实施方式,这些方式都将落入本发明的保护范围内。
Claims (9)
- 一种调试工具配置方法,其特征在于,所述方法包括:获取本地存储的多个调试工具信息并分别设置为调试项,每个所述调试工具信息分别包含不同的调试逻辑信息和对应的调试功能代码;分别获取每个所述调试项对应的调试索引,并将每个所述调试项和对应的所述调试索引的对应关系进行存储,以建立调试项注册文件;查询本机信息并根据所述本机信息获取对应的多个调试项索引,以建立调试项配置文件,所述调试项配置文件包括每个所述调试项索引分别对应的所述调试索引。
- 根据权利要求1所述的调试工具配置方法,其特征在于,所述方法还包括:当接收到调试工具调用信号时,查询所述调试工具调用信号内的当前调试项索引,并根据所述调试项配置文件分别查询每个所述当前调试项索引对应的当前调试索引,并根据所述调试项注册文件查询并运行所述当前调试索引对应的当前调试项,所述调试工具调动信号内至少包含一个所述调试项索引。
- 根据权利要求2所述的调试工具配置方法,其特征在于,所述并根据所述调试项配置文件分别查询每个所述当前调试项索引对应的当前调试索引的步骤包括:查询所述当前调试项索引在所述调试项配置文件中的映射关系,并根据所述映射关系查询到对应的所述当前调试索引;分别获取每个所述当前调试索引,并采用表格的形式将每个所述当前调试索引进行表格渲染排列。
- 根据权利要求2所述的调试工具配置方法,其特征在于,所述并根据所述调试项注册文件查询并运行所述当前调试索引对应的当前调试项的步骤包括:查询所述调试项注册文件中所述当前调试索引的调试对应关系,并根据所述调试对应关系查询到所述当前调试项;获取所述当前调试项内的当前调试功能代码,并对所述当前调试功能代码进行加载,以使进行调试界面的配置。
- 一种可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-4中任意一项所述的方法的步骤。
- 一种调试工具配置装置,其特征在于,包括:第一获取模块,用于获取本地存储的多个调试工具信息并分别设置为调试项,每个所述调试工具信息分别包含不同的调试逻辑信息和对应的调试功能代码;第二获取模块,用于分别获取每个所述调试项对应的调试索引,并将每个所述调试项和对应的所述调试索引的对应关系进行存储,以建立调试项注册文件;第三获取模块,用于查询本机信息并根据所述本机信息获取对应的多个调试项索引,以建立调试项配置文件,所述调试项配置文件包括每个所述调试项索引分别对应的所述调试索引。
- 根据权利要求6所述的调试工具配置装置,其特征在于,所述调试工具配置装置还包括:执行模块,用于根据所述第一获取模块、所述第二获取模块和所述第三获取模块的获取结果,当接收到调试工具调用信号时,查询所述调试工具调用信号内的当前调试项索引,并根据所述调试项配置文件分别查询每个所述当前调试项索引对应的当前调试索引,并根据所述调试项注册文件查询并运行所述当前调试索引对应的当前调试项,所述调试工具调动信号内至少包含一个所述调试项索引。
- 根据权利要求7所述的调试工具配置装置,其特征在于,所述执行模块包括:第一查询模块,用于查询所述当前调试项索引在所述调试项配置文件中的映射关系,并根据所述映射关系查询到对应的所述当前调试索引;第一子获取模块,用于根据所述第一查询模块的查询结果,分别获取每个所述当前调试索引,并采用表格的形式将每个所述当前调试索引进行表格渲染排列。
- 根据权利要求7所述的调试工具配置装置,其特征在于,所述执行模块还包括:第二查询模块,用于查询所述调试项注册文件中所述当前调试索引的调试 对应关系,并根据所述调试对应关系查询到所述当前调试项;第二子获取模块,用于根据所述第二查询模块的查询结果,获取所述当前调试项内的当前调试功能代码,并对所述当前调试功能代码进行加载,以使进行调试界面的配置。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710473182.8 | 2017-06-21 | ||
| CN201710473182.8A CN107423216B (zh) | 2017-06-21 | 2017-06-21 | 调试工具配置方法、可读存储介质及调试工具配置装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018233121A1 true WO2018233121A1 (zh) | 2018-12-27 |
Family
ID=60426088
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/103767 Ceased WO2018233121A1 (zh) | 2017-06-21 | 2017-09-27 | 调试工具配置方法、可读存储介质及调试工具配置装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107423216B (zh) |
| WO (1) | WO2018233121A1 (zh) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108153676B (zh) * | 2017-12-26 | 2021-08-20 | Oppo广东移动通信有限公司 | 调试管理方法、装置、存储介质及终端设备 |
| CN108521444B (zh) * | 2018-03-19 | 2022-05-31 | 五八有限公司 | 一种网络调试方法、装置及计算机可读存储介质 |
| WO2020210994A1 (zh) * | 2019-04-16 | 2020-10-22 | 深圳市欢太科技有限公司 | 快应用安装包调试方法、装置、电子设备以及存储介质 |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103458312A (zh) * | 2013-08-22 | 2013-12-18 | 深圳Tcl新技术有限公司 | 一种终端调试方法和装置 |
| CN104539250A (zh) * | 2014-12-12 | 2015-04-22 | 京信通信系统(中国)有限公司 | 功率放大器的调试方法、装置和系统 |
| US20150317233A1 (en) * | 2014-04-30 | 2015-11-05 | Samsung Electronics Co., Ltd. | Software system debugging device and method thereof |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100541445C (zh) * | 2006-11-17 | 2009-09-16 | 深圳市领测科技有限公司 | 一种程序调测系统及方法 |
| CN101212362B (zh) * | 2006-12-26 | 2010-05-19 | 中兴通讯股份有限公司 | 一种融合多类型测试工具的自动化测试装置及方法 |
| CN101609429B (zh) * | 2009-07-22 | 2011-09-07 | 大唐微电子技术有限公司 | 一种调试嵌入式操作系统的方法和装置 |
| US20140281730A1 (en) * | 2013-03-14 | 2014-09-18 | Cadence Design Systems, Inc. | Debugging session handover |
| CN106815140A (zh) * | 2015-12-02 | 2017-06-09 | 北京奇虎科技有限公司 | 一种接口测试方法和装置 |
| CN106169966B (zh) * | 2016-06-28 | 2019-04-16 | 努比亚技术有限公司 | 测试工具包配置装置及方法 |
-
2017
- 2017-06-21 CN CN201710473182.8A patent/CN107423216B/zh active Active
- 2017-09-27 WO PCT/CN2017/103767 patent/WO2018233121A1/zh not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103458312A (zh) * | 2013-08-22 | 2013-12-18 | 深圳Tcl新技术有限公司 | 一种终端调试方法和装置 |
| US20150317233A1 (en) * | 2014-04-30 | 2015-11-05 | Samsung Electronics Co., Ltd. | Software system debugging device and method thereof |
| CN104539250A (zh) * | 2014-12-12 | 2015-04-22 | 京信通信系统(中国)有限公司 | 功率放大器的调试方法、装置和系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107423216A (zh) | 2017-12-01 |
| CN107423216B (zh) | 2021-01-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| RU2536390C2 (ru) | Способ для автоматизированного создания отчетов | |
| US20160147882A1 (en) | Object Search Method and Apparatus | |
| CN104268083B (zh) | 软件自动化测试方法和装置 | |
| CN101174237B (zh) | 一种自动化测试方法、系统及一种测试设备 | |
| CN111026670B (zh) | 测试用例的生成方法、测试用例的生成装置及存储介质 | |
| WO2018233121A1 (zh) | 调试工具配置方法、可读存储介质及调试工具配置装置 | |
| CN110421974B (zh) | 打标方法及装置、激光打标机 | |
| WO2019075994A1 (zh) | 一种iOS端Mock数据的方法、存储介质、设备及系统 | |
| CN105468373A (zh) | 一种分支合并方法及装置 | |
| US20140281730A1 (en) | Debugging session handover | |
| CN104899046A (zh) | 一种多功能脚本运行方法和系统 | |
| CN113641741A (zh) | 基于jdbc的多数据库接入方法、装置及电子设备 | |
| CN109840201B (zh) | Ui测试方法、装置、电子设备及计算机可读存储介质 | |
| CN109766139B (zh) | 配置文件的配置方法及装置 | |
| CN111368425A (zh) | 一种利用框图工具进行接口关系分析的方法和装置 | |
| CN109446082B (zh) | 多线程测试流程项目配置系统 | |
| CN107122203B (zh) | 一种配置文件的设置方法及装置 | |
| CN106776644B (zh) | 一种报表系统配置方法和装置 | |
| CN109522217A (zh) | 应用程序的内存测试方法及终端设备 | |
| CN104461603B (zh) | 一种信息处理方法及电子设备 | |
| CN103902445B (zh) | 一种回归测试对象确定方法及装置 | |
| CN103809938A (zh) | Python函数运行信息的自动记录方法及系统 | |
| CN114036065B (zh) | 搭建测试环境的方法、装置、电子设备及介质 | |
| CN112506944B (zh) | 业务系统间的数据标准转换取数方法、装置、设备和介质 | |
| CN115640183A (zh) | 一种芯片验证装置及方法 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17914862 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 28/04/2020) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17914862 Country of ref document: EP Kind code of ref document: A1 |