WO2019134297A1 - 配置对命名重复的检测方法、装置、存储介质和智能设备 - Google Patents

配置对命名重复的检测方法、装置、存储介质和智能设备 Download PDF

Info

Publication number
WO2019134297A1
WO2019134297A1 PCT/CN2018/082831 CN2018082831W WO2019134297A1 WO 2019134297 A1 WO2019134297 A1 WO 2019134297A1 CN 2018082831 W CN2018082831 W CN 2018082831W WO 2019134297 A1 WO2019134297 A1 WO 2019134297A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration
file
name
pair
xml file
Prior art date
Application number
PCT/CN2018/082831
Other languages
English (en)
French (fr)
Inventor
王荟婷
郑新良
魏尧东
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019134297A1 publication Critical patent/WO2019134297A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Definitions

  • the present application relates to the field of information processing technologies, and in particular, to a method, an apparatus, a storage medium, and a smart device for detecting a naming repetition.
  • XML is used as the markup language of the configuration file to implement mapping between configuration items and specific code implementations.
  • a configuration pair (configuration name-implementation code) forms a bean.
  • the configuration name corresponds to the attribute name or id
  • the implementation code corresponds to the attribute class. Due to the expansion of system size and code size and the alternation of developers, it is difficult for development and testers to fully grasp all the defined configuration names in the system. In subsequent developments, there are cases where the configuration name is repeatedly defined.
  • Spring In the framework when the load configuration pair is started, the system automatically overwrites the duplicated bean name without throwing an error when starting the service. The configuration is difficult to be discovered when the system is started and the system test is repeated. Reconfiguration of naming duplication can lead to product development failures and reduce development efficiency.
  • the embodiment of the present application provides a method, a device, a storage medium, and a smart device for detecting a naming repetition.
  • the system automatically configures the repeated definition. The name is overwritten without throwing an error when starting the service.
  • Configuration naming duplication is difficult to find during system deployment startup and daily system testing. Configuration naming duplication can lead to product development failures and reduced development efficiency.
  • a first aspect of the embodiments of the present application provides a method for detecting a naming repetition, including:
  • a second aspect of an embodiment of the present application provides a smart device comprising a memory and a processor, the memory storing computer readable instructions executable on the processor, the processor executing the computer readable The following steps are implemented when the instruction is executed:
  • a third aspect of embodiments of the present application provides a computer readable storage medium storing computer readable instructions that, when executed by a processor, implement the following steps:
  • a fourth aspect of the embodiments of the present application provides a detecting apparatus, including:
  • a file package obtaining unit configured to obtain an environment file package for which duplicate detection is to be named
  • a file search unit configured to search an XML file in the environment file package, where the XML file includes a configuration pair
  • a configuration pair detecting unit configured to establish a thread for the found XML file, and perform repeated naming detection on the configuration pair of the XML file
  • the result display unit is configured to display the result of the configuration repeated detection by the preset display rule.
  • an XML file in the environment file package is searched for by acquiring an environment file package to be repeatedly detected.
  • the XML file includes a configuration pair, and a thread is created for the found XML file, and the XML is The configuration of the file is repeatedly named and detected.
  • the default display rule is used to display the result of the configuration of the duplicate detection.
  • FIG. 1 is a flowchart of an implementation of a method for detecting a naming repetition provided by an embodiment of the present application
  • FIG. 2 is a specific implementation flowchart of a step of obtaining an environment file package to be named repeatedly detected according to an embodiment of the present application
  • FIG. 4 is a specific implementation flowchart of a step of performing a repeated naming detection on a configuration thread of a searched XML file according to an embodiment of the present application
  • FIG. 5 is a flowchart of a specific implementation of the steps of comparing the configuration names of all configuration pairs in the XML file to determine whether there is a duplicate configuration name provided by the embodiment of the present application;
  • FIG. 6 is a flowchart of an implementation of a method for detecting a naming repetition including a configuration for providing a new configuration name according to another embodiment of the present application;
  • FIG. 7 is a structural block diagram of a detecting apparatus according to an embodiment of the present application.
  • FIG. 1 shows an implementation flow of a method for detecting a naming repetition provided by an embodiment of the present application, where the method flow includes steps S101 to S104.
  • the specific implementation principles of each step are as follows:
  • S101 Acquire an environment file package for which the duplicate detection is to be named.
  • the step of acquiring an environment file package for which the duplicate detection is to be named includes:
  • A1 Get the environment file package name. Specifically, it can be input by the developer himself.
  • A2 Search for the storage path of the environment file package corresponding to the environment file package name according to the environment file package name.
  • the storage path of the environment file package includes a URL path and a local path. Specifically, when searching according to the environment file package input by the developer, the retrieved environment file package is displayed in a list.
  • step A3 includes:
  • A32 If it is detected that the storage path is a URL path, download an environment file package according to the URL path, and store it locally. The developer may preset the download existence address to download the environment file package to the local specified location according to the URL path.
  • A33 If it is detected that the storage path is a local path, the selection instruction input by the developer is detected.
  • the selection instruction includes a drag command.
  • A34 Determine the environment file package to be named duplicate detection according to the selection instruction input by the developer.
  • the drag command input by the developer is detected, or when the storage path is detected as the local path, the developer input is detected. Drag and drop instructions.
  • the detected environment file package is determined as an environment file package to be named repeatedly detected.
  • the solution of the embodiment of the present application is implemented by developing a CheckBean toolkit.
  • the CheckBean toolkit is mainly developed by Java+Node.js, and the front end is written by html+css.
  • Node.js is a Javascript runtime environment. It is actually a package for the Google Chrome V8 engine. It is mainly used to create fast, scalable web applications. Node.js uses event-driven and non-blocking I/O models to make it slightly and efficient.
  • the CheckBean Toolkit is a zip file. Run CheckBean after the CheckBean toolkit unzips the installation. The tool can search for the environment file package according to the search keyword input by the developer, such as the environment file package name, on the running interface, and then determine the environment file package to be named and repeatedly tested according to the selection of the developer.
  • S102 Search for an XML file in the environment file package, where the XML file includes a configuration pair.
  • XML is a grammatical format. XML can make a file have a certain structure, so that the program can be parsed.
  • XML is used as the markup language for configuration files to implement mapping of configuration items and concrete code implementations.
  • a configuration name namely the name of the configuration pair
  • the implementation code form a bean.
  • the configuration name corresponds to the attribute name or id
  • the implementation code corresponds to the attribute class.
  • the file collection includes an XML file, and may also include a sub-file package and other format files.
  • the sub-file package is a compressed file package.
  • the set of subfiles includes XML files and/or files in other formats.
  • B4 Find an XML file based on the file set and the set of subfiles.
  • the environment file package to be repeatedly detected is decompressed, the XML file is scanned and searched, and the sub-file package is detected again after the compression, so as to avoid missing the XML file and affecting the accurate detection of the duplicate name. rate.
  • S103 Create a thread for the found XML file, and perform repeated naming detection on the configuration pair of the XML file.
  • the XML file in more than one environment file package is detected at the same time.
  • the developer can simultaneously select multiple environment file packages to perform duplicate name detection at the same time.
  • a separate folder is created for each environment file package, and the detection result of the configuration of each environment file package is repeatedly detected. Put into the file to which the environment file package belongs, so that developers can know the result of repeated detection of the bean of each environment file package.
  • the step S103 specifically includes:
  • C1 Parse the XML file to obtain a configuration name of all configuration pairs in the XML file.
  • C2 Compare the configuration names of all configuration pairs in the XML file one by one to determine whether there is a duplicate configuration name.
  • the configuration names of all configuration pairs in the XML file are compared one by one to detect whether there is a duplicate configuration name. If not, the thread of the XML file ends. If so, count the duplicate configuration names and their number.
  • FIG. 5 shows a specific implementation process of step C2 in the foregoing embodiment provided by the embodiment of the present application, which is described in detail as follows:
  • the read record table is a table that is pre-established for storing read configuration pairs.
  • C22 Compare the configuration name of the newly read configuration pair with the configuration name of the configuration pair in the read record table. Specifically, storing the read first configuration pair in the read record table, comparing the configured configuration name in the read second configuration pair with the configuration name of the configuration pair in the read record table, and detecting Whether the name is the same, and so on, the configuration name of the configuration pair in the read record table in the configuration file of the XML file is sequentially read and compared.
  • C23 if the configuration name in the newly read configuration pair is the same as the configuration name in the configuration pair stored in the read record table, the newly read configuration pair has the same configuration name as the read record table.
  • the configuration is written to the duplicate name table to effectively record the renamed configuration pair to avoid missed detection.
  • the duplicate name result table is used to store configuration pairs having the same configuration name.
  • the method before the step S103, further includes: performing format detection on the found XML file, determining whether the format of the XML file is legal, and discarding the illegal XML file.
  • the XML file is formatted.
  • an XML file having a correct grammar is called legal XML. Having the correct syntax is to follow the document type definition
  • the grammar rules for (DTD) Specifically, whether the XML file verified by the DTD is a valid XML.
  • S104 Display the result of the configuration repeated detection by the preset according to the preset display rule.
  • the preset display rule includes a displayed data category, the data category includes the number of detected XML files, the number of detected configuration pairs, and the number of renamed configuration pairs, and the renamed Configure the number of pairs of XML files. Further, the proportion of the rename configuration pair in the detected total configuration pair is also displayed.
  • the preset display rule can be customized by a developer.
  • the step S104 further includes: converting the duplicate name result table into a JSON format.
  • JSON JavaScript Object Notation
  • JSON is a lightweight data exchange format. It is based on JavaScript A subset of Programming Language, Standard ECMA-262 3rd Edition - December 1999. JSON uses a completely language-independent text format, but also uses a habit similar to the C language family (including C, C++, C#, Java, JavaScript, Perl, Python, etc.).
  • the data in JSON format is easy for people to read and write, and it is also easy to parse and generate by machine, and effectively improve network transmission efficiency.
  • the configuration pair in the XML file is accurately read, and the number of configuration pairs of the duplicate name is conveniently counted.
  • the problem of configuring the duplicate name is discovered in advance, and the overlay configuration name is overwritten when the configuration pair is loaded, which leads to more errors in subsequent development and operation, thereby improving development efficiency.
  • FIG. 6 shows a method for detecting a naming repetition including a configuration for providing a new configuration name according to an embodiment of the present application, which is described in detail as follows:
  • S202 Search for an XML file in the environment file package, where the XML file includes a configuration pair.
  • S203 Create a thread for the found XML file, and perform repeated naming detection on the configuration pair of the XML file.
  • step S201 to the step S204 For the specific steps of the step S201 to the step S204, refer to the steps S101 to S104 of the foregoing embodiment, and details are not described herein again.
  • S205 Obtain an implementation code in a configuration pair with a duplicate name.
  • the configuration name corresponds to the implementation code one by one, that is, one configuration name corresponds to a set of implementation code.
  • features are extracted from the implementation code in units of words.
  • the implementation code is divided into a character string in units of words, and the character string is traversed to see if the word is in a pre-established word frequency lookup table. If the word is in the pre-established word frequency lookup table, the word frequency of the word in the word frequency lookup table is incremented by one, and if the word is not in the pre-established word frequency lookup table, the word is added To the word frequency lookup table, and the word frequency of the word is set to 1. After the string traversal is completed, the word frequency of the words in the word frequency lookup table is counted, and the word with the largest word frequency is selected as the keyword of the implementation code.
  • S207 Generate a new configuration name of the configuration pair according to the keyword and the configuration name in the configuration pair.
  • a keyword extracted from the implementation code of the configuration pair is combined with a configuration name of the configuration pair, and a new configuration name of the configuration pair is generated, so that the developer can refer to the A configuration pair with a duplicate name appears.
  • the environment file package named after the duplicate detection is taken, and the XML file in the environment file package is searched, where the XML file includes a configuration pair, and a thread is created for the found XML file, and the XML file is The configuration of the configuration is repeated, and the result of the configuration is repeatedly displayed according to the preset display rule.
  • the duplicate name detection is performed on the environment file package, and the problem of configuring the duplicate name is found in advance, so as to avoid the repeated definition of the configuration configuration pair.
  • the configuration name is overwritten, causing more errors in subsequent development and runtime, improving development efficiency, and then obtaining the implementation code of the named duplicate configuration pair, extracting keywords in the implementation code, according to the keyword and the Configure the configuration name of the pair, generate a new configuration name for the configuration pair, and recommend it to the developer for reference, to avoid the developer to rename the duplicate again, and further improve the development efficiency.
  • FIG. 7 is a structural block diagram of the detecting apparatus provided by the embodiment of the present application. For the convenience of description, only the part related to the embodiment of the present application is shown. .
  • a file package obtaining unit 71 configured to acquire an environment file package for which duplicate detection is to be named
  • the file search unit 72 is configured to search for an XML file in the environment file package, where the XML file includes a configuration pair;
  • the configuration pair detecting unit 73 is configured to establish a thread for the found XML file, and perform repeated naming detection on the configuration pair of the XML file;
  • the result display unit 74 is configured to display the result of the configuration repeated detection by the preset display rule.
  • the file searching unit 72 includes:
  • a file collection obtaining module configured to decompress the environment file package to be repeatedly detected, and obtain a file set
  • a sub-packet detecting module configured to detect whether a sub-file package exists in the file set
  • the sub-file combines an obtaining module, configured to decompress the sub-file package to obtain a sub-file set if a sub-file package exists in the file set;
  • a file lookup module is configured to find an XML file based on the set of files and the set of subfiles.
  • the configuration pair detecting unit 73 includes:
  • a configuration name comparison module configured to compare configuration names of all configuration pairs in the XML file to determine whether there is a duplicate configuration name
  • the number statistics module is used to count the number of duplicate configuration names if there are duplicate configuration names.
  • the configuration name comparison module includes:
  • a first write submodule configured to sequentially read the configuration name of the configuration pair in the XML file, and write the configuration pair of the read configuration name into the read record table;
  • a configuration name comparison submodule configured to compare a configuration name of the newly read configuration pair with a configuration name of the configuration pair in the read record table
  • a second write submodule configured to: if the configuration name in the newly read configuration pair is the same as the configuration name in the configuration pair stored in the read record table, the newly read configuration pair and the read A configuration pair with the same configuration name in the record table is written in the duplicate name table.
  • the detecting device further includes:
  • a code acquisition unit configured to obtain an implementation code in a pair of duplicated configuration pairs
  • a keyword extracting unit configured to extract keywords in the implementation code
  • the configuration name generating unit is configured to generate a new configuration name of the configuration pair according to the keyword and the configuration name in the configuration pair.
  • an XML file in the environment file package is searched for by acquiring an environment file package to be repeatedly detected.
  • the XML file includes a configuration pair, and a thread is created for the found XML file, and the XML is The configuration of the file is repeatedly named and detected.
  • the default display rule is used to display the result of the configuration of the duplicate detection.
  • FIG. 8 is a schematic diagram of a smart device according to an embodiment of the present application.
  • the smart device 8 of this embodiment includes a processor 80, a memory 81, and computer readable instructions 82 stored in the memory 81 and executable on the processor 80, such as configuration pair naming Repeated testing procedures.
  • the processor 80 executes the computer readable instructions 82, the steps in the embodiment of the processing method for performing the above-mentioned respective configuration naming repetitions are performed, for example, steps 101 to 104 shown in FIG.
  • the processor 80 when executing the computer readable instructions 82, implements the functions of the various modules/units in the various apparatus embodiments described above, such as the functions of the modules 71-74 shown in FIG.
  • the computer readable instructions 82 may be partitioned into one or more modules/units that are stored in the memory 81 and executed by the processor 80, To complete this application.
  • the one or more modules/units may be a series of computer readable instruction instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer readable instructions 82 in the smart device 8.
  • the smart device 8 can be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud smart device.
  • the smart device may include, but is not limited to, a processor 80, a memory 81. It will be understood by those skilled in the art that FIG. 8 is merely an example of the smart device 8, and does not constitute a limitation of the smart device 8, and may include more or less components than those illustrated, or combine some components, or different components.
  • the smart device may further include an input and output device, a network access device, a bus, and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请提供了一种配置对命名重复的检测方法、装置、存储介质和智能设备,包括:获取待命名重复检测的环境文件包;查找所述环境文件包中的XML文件,所述XML文件中包括配置对;针对查找到的XML文件建立线程,对所述XML文件的配置对进行重复命名检测;按预设显示规则显示配置对命名重复检测的结果。本申请通过检测环境文件包提前发现配置对重名的问题,避免加载配置对时对重复定义的配置名进行覆盖操作导致后续开发和运行时出现更多错误,从而可提高开发效率。

Description

配置对命名重复的检测方法、装置、存储介质和智能设备
本申请要求于2018年01月08日提交中国专利局、申请号为CN 201810014461.2、发明名称为“配置对命名重复的检测方法、存储介质和智能设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及信息处理技术领域,尤其涉及一种配置对命名重复的检测方法、装置、存储介质和智能设备。
背景技术
Spring框架中,采用XML作为配置文件的标记语言,实现配置项和具体代码实现的映射,一个配置对(配置名-实现代码)便形成了一个bean。其中配置名对应属性name或id,实现代码对应属性class。由于系统规模和代码量的扩大以及开发人员的交替,开发和测试人员很难完全掌握系统中所有已定义过的配置名,在后续的开发中存在重复定义配置名的情况。而在Spring 框架下,启动加载配置对时,会系统自动对重复定义的 bean name 进行覆盖操作而不会在启动服务时抛出错误,配置对命名重复在系统部署启动和日常的系统测试时很难被发现,配置对命名重复会导致产品开发故障,降低开发效率。
技术问题
本申请实施例提供了一种配置对命名重复的检测方法、装置、存储介质和智能设备,以解决现有技术中,在Spring 框架下,启动加载配置对时,会系统自动对重复定义的配置名进行覆盖操作而不会在启动服务时抛出错误,配置对命名重复在系统部署启动和日常的系统测试时很难被发现,配置对命名重复会导致产品开发故障,降低开发效率的问题。
技术解决方案
本申请实施例的第一方面提供了一种配置对命名重复的检测方法,包括:
获取待命名重复检测的环境文件包;
查找所述环境文件包中的XML文件,所述XML文件中包括配置对;
针对查找到的XML文件建立线程,对所述XML文件的配置对进行重复命名检测;
按预设显示规则显示配置对命名重复检测的结果。
本申请实施例的第二方面提供了一种智能设备,包括存储器以及处理器,所述存储器存储有可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:
获取待命名重复检测的环境文件包;
查找所述环境文件包中的XML文件,所述XML文件中包括配置对;
针对查找到的XML文件建立线程,对所述XML文件的配置对进行重复命名检测;
按预设显示规则显示配置对命名重复检测的结果。
本申请实施例的第三方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如下步骤:
获取待命名重复检测的环境文件包;
查找所述环境文件包中的XML文件,所述XML文件中包括配置对;
针对查找到的XML文件建立线程,对所述XML文件的配置对进行重复命名检测;
按预设显示规则显示配置对命名重复检测的结果。
本申请实施例的第四方面提供了一种检测装置,包括:
文件包获取单元,用于获取待命名重复检测的环境文件包;
文件查找单元,用于查找所述环境文件包中的XML文件,所述XML文件中包括配置对;
配置对检测单元,用于针对查找到的XML文件建立线程,对所述XML文件的配置对进行重复命名检测;
结果显示单元,用于按预设显示规则显示配置对命名重复检测的结果。
有益效果
本申请实施例中,通过获取待命名重复检测的环境文件包,查找所述环境文件包中的XML文件,所述XML文件中包括配置对,针对查找到的XML文件建立线程,对所述XML文件的配置对进行重复命名检测,按预设显示规则显示配置对命名重复检测的结果,通过对环境文件包进行重名检测,提前发现配置对重名的问题,避免加载配置对时对重复定义的配置名进行覆盖操作导致后续开发和运行时出现更多错误,从而可提高开发效率。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的配置对命名重复的检测方法的实现流程图;
图2是本申请实施例提供的获取待命名重复检测的环境文件包的步骤的具体实现流程图;
图3是本申请实施例提供的查找所述环境文件包中的XML文件的步骤的具体实现流程图;
图4是本申请实施例提供的针对查找到的XML文件建立线程,对所述XML文件的配置对进行重复命名检测的步骤的具体实现流程图;
图5是本申请实施例提供的将所述XML文件中所有配置对的配置名一一进行比较,判断是否存在重复的配置名的步骤的具体实现流程图;
图6是本申请另一实施例提供的包括提供新配置名的配置对命名重复的检测方法的实现流程图;
图7是本申请实施例提供的检测装置的结构框图;
图8是本申请实施例提供的智能设备的示意图。
本发明的实施方式
为使得本申请的发明目的、特征、优点能够更加的明显和易懂,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,下面所描述的实施例仅仅是本申请一部分实施例,而非全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。
图1示出了本申请实施例提供的配置对命名重复的检测方法的实现流程,该方法流程包括步骤S101至S104。各步骤的具体实现原理如下:
S101:获取待命名重复检测的环境文件包。
其中,所述环境文件包是一个包括XML文件的压缩包,命名重复是指XML文件中配置对的命名重复。命名重复检测是指对所述环境文件包的XML文件中的配置对的命名进行检测。
具体地,如图2所示,在本申请实施例中, 所述获取待命名重复检测的环境文件包的步骤包括:
A1:获取环境文件包名。具体地,可由开发人员自行输入。
A2:根据所述环境文件包名搜索所述环境文件包名对应的环境文件包的存放路径。其中,环境文件包的存放路径包括URL路径和本地路径。具体地,当根据开发人员输入的环境文件包命进行搜索时,检索到的环境文件包按列表显示。
A3:基于所述存放路径获取待命名重复检测的环境文件包。
进一步地,所述步骤A3包括:
A31:检测所述存放路径。
A32:若检测到所述存储路径为URL路径,则根据所述URL路径下载环境文件包,并存储至本地。其中,开发人员可预先设置下载存在地址,从而根据所述URL路径将环境文件包下载至本地的指定位置。
A33:若检测到所述存储路径为本地路径,则检测开发人员输入的选择指令。所述选择指令包括拖拽指令。
A34:根据开发人员输入的选择指令,确定待命名重复检测的环境文件包。
示例性地,当根据所述URL路径将环境文件包下载至本地的指定位置时,检测开发人员输入的拖拽指令,或者,当检测到所述存储路径为本地路径时,检测开发人员输入的拖拽指令。当检测到环境文件包被拖拽至指定区域时,将所述检测到的环境文件包确定为待命名重复检测的环境文件包。
在本申请实施例中,通过开发CheckBean工具包来实现本申请实施例的方案。具体地,所述CheckBean工具包主要通过Java+Node.js完成开发,前端采用html+css进行编写。Node.js是一个Javascript的运行环境,实际上它是对GoogleChromeV8引擎进行了封装,它主要用于创建快速的、可扩展的网络应用。Node.js采用事件驱动和非阻塞I/O模型,使其变得轻微和高效。CheckBean工具包是一个压缩包。在CheckBean工具包解压缩安装完成后,运行CheckBean 工具,在运行界面上根据开发人员输入的检索关键词如环境文件包名等,可搜索环境文件包,再根据开发人员的选择确定待命名重复检测的环境文件包。
S102:查找所述环境文件包中的XML文件,所述XML文件中包括配置对。
具体地,XML是一种语法格式,通过XML可以使一份文件具有一定的结构,以便于程序进行解析。在Spring框架中,采用XML作为配置文件的标记语言,实现配置项和具体代码实现的映射。在环境文件包的XML文件中,包括至少一个配置对(bean),一个配置名(即配置对的命名)和实现代码便形成了一个bean。其中配置名对应属性name或id,实现代码对应属性class。
作为本申请的一个实施例,如图3所示,上述S102具体包括:
B1:对所述待命名重复检测的环境文件包进行解压缩,获取文件集合。所述文件集合中包括XML文件,也可能还包括子文件包和其他格式文件。
B2:检测所述文件集合中是否存在子文件包。其中,子文件包为压缩文件包。
B3:若所述文件集合中存在子文件包,则对所述子文件包进行解压缩,获取子文件集合。所述子文件集合中包括XML文件和/或其它格式的文件。
B4:基于所述文件集合与所述子文件集合,查找XML文件。
在本申请实施例中,对所述待命名重复检测的环境文件包解压缩,扫描查找XML文件,并再次检测加压缩后是否存在子文件包,避免漏查XML文件,影响重名检测的准确率。
S103:针对查找到的XML文件建立线程,对所述XML文件的配置对进行重复命名检测。
在本申请实施例中,建立线程对XML文件并行检测。一个线程可以理解为一个独立运行的处理检测单元。在所述待命名重复检测的环境文件包解压缩后,查找解压缩后的XML文件。当查找到一个XML文件时,便新建一个线程对该XML文件进行检测,查找到不止一个XML文件时,就为每个XML文件建立一个线程进行检测,从而可同时检测多个XML文件,从而提高检测效率。
可选地,同时对不止一个环境文件包中的XML文件进行检测。在本申请实施例中,开发人员可同时勾选多个环境文件包同时进行重名检测。进一步地,当同时对不止一个环境文件包中的XML文件进行配置对重名检测时,为每一个环境文件包单独建立一个文件夹,将每个环境文件包的配置对命名重复检测的检测结果放入环境文件包所属的文件中,方便开发人员清楚每一个环境文件包的bean重复检测结果。
作为本申请的一个实施例,如图4所示,所述步骤S103具体包括:
C1:对所述XML文件进行解析,获取所述XML文件中所有配置对的配置名。
C2:将所述XML文件中所有配置对的配置名一一进行比较,判断是否存在重复的配置名。
C3:若存在重复的配置名,则统计重复的配置名的个数,以方便开发人员能清楚知道有相同配置名的配置对的个数。
在本申请实施例中,将XML文件中的全部配置对的配置名一一进行比较,检测是否有重复配置名。若没有,则结束该XML文件的线程。若有,则统计重复的配置名及其个数。
作为本申请的一个实施例,图5示出了本申请实施例提供的上述实施例中步骤C2的具体实现流程,详述如下:
C21:依次读取所述XML文件中配置对的配置名,并将已读取配置名的配置对写入读取记录表中。所述读取记录表为预先建立用于存放读取的配置对的表。
C22:将新读取的配置对中的配置名与所述读取记录表中配置对的配置名进行比较。具体地,将读取的第一个配置对存入读取记录表中,将读取的第二个配置对中的配置名与所述读取记录表中配置对的配置名进行比较,检测是否重名,以此类推,依次读取所述XML文件中配置对的配置名所述读取记录表中配置对的配置名进行比较。
C23:若新读取的配置对中的配置名与读取记录表存储的配置对中的配置名相同,则将所述新读取的配置对与所述读取记录表中具有相同配置名的配置对写入重名结果表中,从而有效记录重命名的配置对,避免漏检。所述重名结果表用于存储具有相同配置名的配置对。
可选地,作为本申请的一个实施例,在所述步骤S103之前还包括:对查找到的XML文件进行格式检测,判断XML文件的格式是否合法,将不合法的XML文件丢弃。
为了提高配置对命名重复检测的效率,在对查找到的XML文件建立线程,对所述XML文件的配置对进行重复命名检测之前,先对XML文件进行格式检测。在本申请实施例中,拥有正确语法的XML文件被称为合法的XML。拥有正确语法即为遵守文档类型定义 (DTD) 的语法规则。具体地,通过 DTD 验证的 XML文件是否为合法的 XML。
S104:按预设显示规则显示配置对命名重复检测的结果。
在本申请实施例中,所述预设显示规则包括显示的数据类别,数据类别包括检测的XML文件个数,检测的配置对的个数,重命名的配置对的个数,出现重命名的配置对的XML文件的个数。进一步地,还显示重命名配置对在检测的总的配置对中所占的比例。所述预设显示规则可由开发人员自定义,
可选地,作为本申请的一个实施例,当重名的配置对写入重名结果表时,所述步骤S104还包括:将重名结果表转换为JSON格式。JSON(JavaScript Object Notation) 是一种轻量级的数据交换格式。它基于JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999的一个子集。JSON采用完全独立于语言的文本格式,但是也使用了类似于C语言家族的习惯(包括C, C++, C#, Java, JavaScript, Perl, Python等)。JSON格式的数据易于人阅读和编写,同时也易于机器解析和生成,并有效地提升网络传输效率。
在本申请实施例准确读取XML文件中的配置对,方便快速统计重名的配置对的个数。通过对环境文件包进行重名检测,提前发现配置对重名的问题,避免加载配置对时对重复定义的配置名进行覆盖操作导致后续开发和运行时出现更多错误,从而可提高开发效率。
作为本申请的一个实施例,图6示出了本申请实施例提供的一种包括提供新配置名的配置对命名重复的检测方法,详述如下:
S201:获取待命名重复检测的环境文件包。
S202:查找所述环境文件包中的XML文件,所述XML文件中包括配置对。
S203:针对查找到的XML文件建立线程,对所述XML文件的配置对进行重复命名检测。
S204:按预设显示规则显示配置对命名重复检测的结果。
本实施例中,步骤S201至步骤S204的具体步骤参见上述实施例步骤S101至步骤S104,在此不再赘述。
S205:获取命名重复的配置对中的实现代码。其中,在一个配置对中,配置名与实现代码一一对应,即一个配置名对应一套实现代码。
S206:提取所述实现代码中的关键词。
在本申请实施例中,以词为单位,从所述实现代码中提取特征。具体地,将实现代码划分为以词为单位的字符串,遍历所述字符串,查看词是否在预先建立的词频查找表中。若词在所述预先建立的词频查找表中,则将所述词频查找表中所述词的词频加1,若所述词不在所述预先建立的词频查找表中,则将所述词添加至所述词频查找表中,并所述词的词频置为1。当所述字符串遍历完成之后,统计所述词频查找表中词的词频,选取词频最大的词作为所述实现代码的关键词。
S207:根据所述关键词与所述配置对中的配置名,生成所述配置对的新配置名。
在本申请实施例中,将从所述配置对的实现代码中提取出来的关键词与所述配置对的配置名进行组合,生成所说配置对的新配置名,以便开发人员参考,避免再次出现命名重复的配置对。
可选地,所述根据所述关键词与所述配置对中的配置名,生成所述配置对的新配置名还包括:将所说关键词、所述配置对中的配置名与预设的特殊字符进行排列组合,生成所述配置对新的配置命名。
本申请实施例中,取待命名重复检测的环境文件包,查找所述环境文件包中的XML文件,所述XML文件中包括配置对,针对查找到的XML文件建立线程,对所述XML文件的配置对进行重复命名检测,按预设显示规则显示配置对命名重复检测的结果,通过对环境文件包进行重名检测,提前发现配置对重名的问题,避免加载配置对时对重复定义的配置名进行覆盖操作导致后续开发和运行时出现更多错误,提高开发效率,再获取命名重复的配置对中的实现代码,提取所述实现代码中的关键词,根据所述关键词与所述配置对中的配置名,生成所述配置对的新配置名,推荐给开发人员参考,避免开发人员再次命名重复,进一步提高开发效率。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
对应于上文实施例所述的配置对命名重复的检测方法,图7示出了本申请实施例提供的检测装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。
参照图7,该检测装置包括:文件包获取单元71,文件查找单元72,配置对检测单元73,结果显示单元74,其中:
文件包获取单元71,用于获取待命名重复检测的环境文件包;
文件查找单元72,用于查找所述环境文件包中的XML文件,所述XML文件中包括配置对;
配置对检测单元73,用于针对查找到的XML文件建立线程,对所述XML文件的配置对进行重复命名检测;
结果显示单元74,用于按预设显示规则显示配置对命名重复检测的结果。
可选地,所述文件查找单元72包括:
文件集合获取模块,用于对所述待命名重复检测的环境文件包进行解压缩,获取文件集合;
子文件包检测模块,用于检测所述文件集合中是否存在子文件包;
子文件结合获取模块,用于若所述文件集合中存在子文件包,则对所述子文件包进行解压缩,获取子文件集合;
文件查找模块,用于基于所述文件集合与所述子文件集合,查找XML文件。
可选地,所述配置对检测单元73包括:
配置名获取模块,用于对所述XML文件进行解析,获取所述XML文件中所有配置对的配置名;
配置名比较模块,用于将所述XML文件中所有配置对的配置名一一进行比较,判断是否存在重复的配置名;
个数统计模块,用于若存在重复的配置名,则统计重复的配置名的个数。
可选地,所述配置名比较模块包括:
第一写入子模块,用于依次读取所述XML文件中配置对的配置名,并将已读取配置名的配置对写入读取记录表中;
配置名比较子模块,用于将新读取的配置对中的配置名与所述读取记录表中配置对的配置名进行比较;
第二写入子模块,用于若新读取的配置对中的配置名与读取记录表存储的配置对中的配置名相同,则将所述新读取的配置对与所述读取记录表中具有相同配置名的配置对写入重名结果表中。
可选地,所述检测装置还包括:
代码获取单元,用于获取命名重复的配置对中的实现代码;
关键词提取单元,用于提取所述实现代码中的关键词;
配置名生成单元,用于根据所述关键词与所述配置对中的配置名,生成所述配置对的新配置名。
本申请实施例中,通过获取待命名重复检测的环境文件包,查找所述环境文件包中的XML文件,所述XML文件中包括配置对,针对查找到的XML文件建立线程,对所述XML文件的配置对进行重复命名检测,按预设显示规则显示配置对命名重复检测的结果,通过对环境文件包进行重名检测,提前发现配置对重名的问题,避免加载配置对时对重复定义的配置名进行覆盖操作导致后续开发和运行时出现更多错误,从而可提高开发效率。
图8是本申请一实施例提供的智能设备的示意图。如图8所示,该实施例的智能设备8包括:处理器80、存储器81以及存储在所述存储器81中并可在所述处理器80上运行的计算机可读指令82,例如配置对命名重复的检测程序。所述处理器80执行所述计算机可读指令82时实现上述各个配置对命名重复的处理方法实施例中的步骤,例如图1所示的步骤101至104。或者,所述处理器80执行所述计算机可读指令82时实现上述各装置实施例中各模块/单元的功能,例如图7所示模块71至74的功能。
示例性的,所述计算机可读指令82可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器81中,并由所述处理器80执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令指令段,该指令段用于描述所述计算机可读指令82在所述智能设备8中的执行过程。
所述智能设备8可以是桌上型计算机、笔记本、掌上电脑及云端智能设备等计算设备。所述智能设备可包括,但不仅限于,处理器80、存储器81。本领域技术人员可以理解,图8仅仅是智能设备8的示例,并不构成对智能设备8的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述智能设备还可以包括输入输出设备、网络接入设备、总线等。

Claims (20)

  1. 一种配置对命名重复的检测方法,其特征在于,包括:
    获取待命名重复检测的环境文件包;
    查找所述环境文件包中的XML文件,所述XML文件中包括配置对;
    针对查找到的XML文件建立线程,对所述XML文件的配置对进行重复命名检测;
    按预设显示规则显示配置对命名重复检测的结果。
  2. 根据权利要求1所述的方法,其特征在于,所述查找所述环境文件包中的XML文件的步骤,包括:
    对所述待命名重复检测的环境文件包进行解压缩,获取文件集合;
    检测所述文件集合中是否存在子文件包;
    若所述文件集合中存在子文件包,则对所述子文件包进行解压缩,获取子文件集合;
    基于所述文件集合与所述子文件集合,查找XML文件。
  3. 根据权利要求1所述的方法,其特征在于,所述针对查找到的XML文件建立线程,对所述XML文件的配置对进行重复命名检测的步骤,包括:
    对所述XML文件进行解析,获取所述XML文件中所有配置对的配置名;
    将所述XML文件中所有配置对的配置名一一进行比较,判断是否存在重复的配置名;
    若存在重复的配置名,则统计重复的配置名的个数。
  4. 根据权利要求3所述的方法,其特征在于,所述将所述XML文件中所有配置对的配置名一一进行比较,判断是否存在重复的配置名的步骤,包括:
    依次读取所述XML文件中配置对的配置名,并将已读取配置名的配置对写入读取记录表中;
    将新读取的配置对中的配置名与所述读取记录表中配置对的配置名进行比较;
    若新读取的配置对中的配置名与读取记录表存储的配置对中的配置名相同,则将所述新读取的配置对与所述读取记录表中具有相同配置名的配置对写入重名结果表中。
  5. 根据权利要求1至4任一项所述的方法,其特征在于,在所述按预设显示规则显示配置对命名重复检测的结果的步骤之后,包括:
    获取命名重复的配置对中的实现代码;
    提取所述实现代码中的关键词;
    根据所述关键词与所述配置对中的配置名,生成所述配置对的新配置名。
  6. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现如下步骤:
    获取待命名重复检测的环境文件包;
    查找所述环境文件包中的XML文件,所述XML文件中包括配置对;
    针对查找到的XML文件建立线程,对所述XML文件的配置对进行重复命名检测;
    按预设显示规则显示配置对命名重复检测的结果。
  7. 如权利要求6所述的计算机可读存储介质,其特征在于,所述查找所述环境文件包中的XML文件的步骤,包括:
    对所述待命名重复检测的环境文件包进行解压缩,获取文件集合;
    检测所述文件集合中是否存在子文件包;
    若所述文件集合中存在子文件包,则对所述子文件包进行解压缩,获取子文件集合;
    基于所述文件集合与所述子文件集合,查找XML文件。
  8. 如权利要求6所述的计算机可读存储介质,其特征在于,所述针对查找到的XML文件建立线程,对所述XML文件的配置对进行重复命名检测的步骤,包括:
    对所述XML文件进行解析,获取所述XML文件中所有配置对的配置名;
    将所述XML文件中所有配置对的配置名一一进行比较,判断是否存在重复的配置名;
    若存在重复的配置名,则统计重复的配置名的个数。
  9. 如权利要求8所述的计算机可读存储介质,其特征在于,所述将所述XML文件中所有配置对的配置名一一进行比较,判断是否存在重复的配置名的步骤,包括:
    依次读取所述XML文件中配置对的配置名,并将已读取配置名的配置对写入读取记录表中;
    将新读取的配置对中的配置名与所述读取记录表中配置对的配置名进行比较;
    若新读取的配置对中的配置名与读取记录表存储的配置对中的配置名相同,则将所述新读取的配置对与所述读取记录表中具有相同配置名的配置对写入重名结果表中。
  10. 如权利要求6至9任一项所述的计算机可读存储介质,其特征在于,在所述按预设显示规则显示配置对命名重复检测的结果的步骤之后,包括:
    获取命名重复的配置对中的实现代码;
    提取所述实现代码中的关键词;
    根据所述关键词与所述配置对中的配置名,生成所述配置对的新配置名。
  11. 一种智能设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:
    获取待命名重复检测的环境文件包;
    查找所述环境文件包中的XML文件,所述XML文件中包括配置对;
    针对查找到的XML文件建立线程,对所述XML文件的配置对进行重复命名检测;
    按预设显示规则显示配置对命名重复检测的结果。
  12. 如权利要求11所述的智能设备,其特征在于,当所述查找所述环境文件包中的XML文件的步骤,包括:
    对所述待命名重复检测的环境文件包进行解压缩,获取文件集合;
    检测所述文件集合中是否存在子文件包;
    若所述文件集合中存在子文件包,则对所述子文件包进行解压缩,获取子文件集合;
    基于所述文件集合与所述子文件集合,查找XML文件。
  13. 如权利要求11所述的智能设备,其特征在于,所述针对查找到的XML文件建立线程,对所述XML文件的配置对进行重复命名检测的步骤,包括:
    对所述XML文件进行解析,获取所述XML文件中所有配置对的配置名;
    将所述XML文件中所有配置对的配置名一一进行比较,判断是否存在重复的配置名;
    若存在重复的配置名,则统计重复的配置名的个数。
  14. 如权利要求13所述的智能设备,其特征在于,所述将所述XML文件中所有配置对的配置名一一进行比较,判断是否存在重复的配置名的步骤,包括:
    依次读取所述XML文件中配置对的配置名,并将已读取配置名的配置对写入读取记录表中;
    将新读取的配置对中的配置名与所述读取记录表中配置对的配置名进行比较;
    若新读取的配置对中的配置名与读取记录表存储的配置对中的配置名相同,则将所述新读取的配置对与所述读取记录表中具有相同配置名的配置对写入重名结果表中。
  15. 如权利要求11至14任一项所述的智能设备,其特征在于,所述处理器执行所述计算机可读指令时还实现如下步骤:
    获取命名重复的配置对中的实现代码;
    提取所述实现代码中的关键词;
    根据所述关键词与所述配置对中的配置名,生成所述配置对的新配置名。
  16. 一种检测装置,其特征在于,包括:
    文件包获取单元,用于获取待命名重复检测的环境文件包;
    文件查找单元,用于查找所述环境文件包中的XML文件,所述XML文件中包括配置对;
    配置对检测单元,用于针对查找到的XML文件建立线程,对所述XML文件的配置对进行重复命名检测;
    结果显示单元,用于按预设显示规则显示配置对命名重复检测的结果。
  17. 如权利要求16所述的检测装置,其特征在于,所述文件查找单元包括:
    文件集合获取模块,用于对所述待命名重复检测的环境文件包进行解压缩,获取文件集合;
    子文件包检测模块,用于检测所述文件集合中是否存在子文件包;
    子文件结合获取模块,用于若所述文件集合中存在子文件包,则对所述子文件包进行解压缩,获取子文件集合;
    文件查找模块,用于基于所述文件集合与所述子文件集合,查找XML文件。
  18. 如权利要求16所述的检测装置,其特征在于,所述配置对检测单元包括:
    配置名获取模块,用于对所述XML文件进行解析,获取所述XML文件中所有配置对的配置名;
    配置名比较模块,用于将所述XML文件中所有配置对的配置名一一进行比较,判断是否存在重复的配置名;
    个数统计模块,用于若存在重复的配置名,则统计重复的配置名的个数。
  19. 如权利要求18所述的检测装置,其特征在于,所述配置名比较模块包括:
    第一写入子模块,用于依次读取所述XML文件中配置对的配置名,并将已读取配置名的配置对写入读取记录表中;
    配置名比较子模块,用于将新读取的配置对中的配置名与所述读取记录表中配置对的配置名进行比较;
    第二写入子模块,用于若新读取的配置对中的配置名与读取记录表存储的配置对中的配置名相同,则将所述新读取的配置对与所述读取记录表中具有相同配置名的配置对写入重名结果表中。
  20. 如权利要求16至19任一项所述的检测装置,其特征在于,所述检测装置包括:
    代码获取单元,用于获取命名重复的配置对中的实现代码;
    关键词提取单元,用于提取所述实现代码中的关键词;
    配置名生成单元,用于根据所述关键词与所述配置对中的配置名,生成所述配置对的新配置名。
PCT/CN2018/082831 2018-01-08 2018-04-12 配置对命名重复的检测方法、装置、存储介质和智能设备 WO2019134297A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810014461.2A CN108427580B (zh) 2018-01-08 2018-01-08 配置对命名重复的检测方法、存储介质和智能设备
CN201810014461.2 2018-01-08

Publications (1)

Publication Number Publication Date
WO2019134297A1 true WO2019134297A1 (zh) 2019-07-11

Family

ID=63155806

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/082831 WO2019134297A1 (zh) 2018-01-08 2018-04-12 配置对命名重复的检测方法、装置、存储介质和智能设备

Country Status (2)

Country Link
CN (1) CN108427580B (zh)
WO (1) WO2019134297A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114237719B (zh) * 2020-09-09 2023-11-28 中国联合网络通信集团有限公司 U盘识别方法、系统、计算机设备及存储介质
WO2022061293A1 (en) 2020-09-21 2022-03-24 VIDAA USA, Inc. Display apparatus and signal transmission method for display apparatus
CN112272320B (zh) * 2020-10-20 2022-04-15 Vidaa美国公司 一种显示设备及其重名检测方法
CN112306508A (zh) * 2020-10-13 2021-02-02 武汉木仓科技股份有限公司 一种配置信息文件的更新方法、装置以及处理设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060015842A1 (en) * 2004-01-02 2006-01-19 Desantis Robert Automatically creating JavaScript objects to invoke methods on server-side java beans
CN105045598A (zh) * 2015-08-07 2015-11-11 北京思特奇信息技术股份有限公司 一种基于Java的web前端性能优化及上线的方法和系统
CN105446874A (zh) * 2014-09-25 2016-03-30 北京畅游天下网络技术有限公司 一种资源配置文件的检测方法和装置
CN106294164A (zh) * 2016-08-15 2017-01-04 中国银行股份有限公司 一种代码检查方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2459681B (en) * 2008-04-30 2012-04-25 Vmware Inc a computer system and a method of deploying an application in a computer system
CN104461508A (zh) * 2014-11-12 2015-03-25 国云科技股份有限公司 一种解决多个js文件中函数名重名的方法
CN106874442B (zh) * 2017-02-08 2023-08-18 三和智控(北京)系统集成有限公司 通过数据名称命名实现数据自携带特征信息的方法及装置
CN107463683B (zh) * 2017-08-09 2018-07-24 深圳壹账通智能科技有限公司 代码元素的命名方法及终端设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060015842A1 (en) * 2004-01-02 2006-01-19 Desantis Robert Automatically creating JavaScript objects to invoke methods on server-side java beans
CN105446874A (zh) * 2014-09-25 2016-03-30 北京畅游天下网络技术有限公司 一种资源配置文件的检测方法和装置
CN105045598A (zh) * 2015-08-07 2015-11-11 北京思特奇信息技术股份有限公司 一种基于Java的web前端性能优化及上线的方法和系统
CN106294164A (zh) * 2016-08-15 2017-01-04 中国银行股份有限公司 一种代码检查方法及装置

Also Published As

Publication number Publication date
CN108427580A (zh) 2018-08-21
CN108427580B (zh) 2020-01-10

Similar Documents

Publication Publication Date Title
US8464228B2 (en) Binary library
US9207952B2 (en) Semantic mapping of objects in a user interface automation framework
Kagdi et al. Integrating conceptual and logical couplings for change impact analysis in software
US20170132119A1 (en) Method and device for retrieving test case based on code coverage
WO2019134297A1 (zh) 配置对命名重复的检测方法、装置、存储介质和智能设备
US8132156B2 (en) Methods and systems for testing tool with comparative testing
US6941546B2 (en) Method and apparatus for testing a software component using an abstraction matrix
Hartig SPARQL for a Web of Linked Data: Semantics and computability
US8595236B2 (en) Searching existing user interfaces to enable design, development and provisioning of user interfaces
US20060143596A1 (en) Program analyzing apparatus and testing apparatus, and analyzing method and program therefor
US11397575B2 (en) Microservices graph generation
US7467157B1 (en) Generation of semantically valid xpath expressions
US8769516B2 (en) Systems and methods for automated support for repairing input model errors
US20220350857A1 (en) Methods and systems for browser extension used to generate relative xpath, absolute xpath and/or css selectors
CN110347954B (zh) 面向复杂Web应用的服务化方法
WO2017164856A1 (en) Comparable user interface object identifications
US20100153430A1 (en) Method of and Apparatus for Extraction and Analysis of Macro Operations within Query Language Statement
CN115328894A (zh) 基于数据血缘的数据处理方法
US8510714B2 (en) Implementing integrated documentation and application testing
US8321845B2 (en) Extensible markup language (XML) path (XPATH) debugging framework
CN110334302A (zh) 复杂Web应用前端运行时分析方法
US11556531B2 (en) Crux detection in search definitions
US9679092B1 (en) Constraint handling for parameterizable hardware description language
US11947530B2 (en) Methods and systems to automatically generate search queries from software documents to validate software component search engines
CN111563363B (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: 18899000

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 12.10.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18899000

Country of ref document: EP

Kind code of ref document: A1