Interface document processing method, device, electronic device and storage medium

By storing the information in the interface document into the index library and the existing asset library and displaying it based on the user's search information, the problem of poor readability and reusability of the interface document is solved, and the efficiency and quality of interface testing are improved.

CN114443802BActive Publication Date: 2024-11-19AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210113867.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-30
Publication Date
2024-11-19
Estimated Expiration
2042-01-30

AI Technical Summary

Technical Problem

The existing interface documents have different formats, including redundant information, poor readability, and poor reusability, which affects the efficiency of interface testing. There are also problems with missing interface documents, resulting in inefficient interface testing.

Method used

By obtaining transaction information, interface content information and interface form information in the interface document, it is stored in the index library and the existing asset library respectively, and searching and displaying it based on the user's search information, so as to achieve unified processing and management of interface information.

Benefits of technology

It improves the comprehensibility and reusability of interface information, improves the quality and efficiency of interface testing, and forms a test asset library to facilitate the management of existing interface documents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114443802B_ABST
    Figure CN114443802B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses an interface document processing method, which obtains interface information in an interface document, wherein the interface information at least includes transaction information, interface content information and interface form information; stores the interface information and the interface document in an index library and a stock asset library respectively; retrieves and displays target interface information according to user search information, the index library and the stock asset library. The technical solution of the present invention realizes unified processing of interface documents, improves the versatility of interface information, ensures interface testing effects, improves interface testing efficiency, thereby forming a test asset library, facilitating management of stock interface documents, and improving the convenience of interface testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application technology, and in particular to an interface document processing method, device, electronic equipment and storage medium. Background Art

[0002] At present, interface testing is based on the information in the interface document, and the message is spliced ​​by calling the address, request parameters, etc., and the request is sent and the return result is checked. The focus of receiving is mainly to verify the input and output parameters. The interface document is an important basis for interface testing, which is generally written by developers and used by testers. The readability of the test document will directly affect the effect and efficiency of the interface test. However, in the actual development and testing process, affected by the capabilities and habits of developers, the interface document formats vary and are written based on actual development. The interface document has problems such as information redundancy, missing important rule information, poor readability and poor reusability. In addition, due to the large number and versions of interfaces tested in the software system, the storage interface document is missing, which has a great impact on the efficiency of interface testing. Summary of the invention

[0003] The present invention provides an interface document processing method, device, electronic device and storage medium to achieve unified processing of interface documents, which can improve the versatility of interface information, ensure interface testing results, improve interface testing efficiency, form a test asset library, facilitate management of existing interface documents, and improve the convenience of interface testing.

[0004] According to one aspect of the present invention, a method for processing an interface document is provided, the method comprising: obtaining interface information in the interface document, wherein the interface information at least comprises transaction information, interface content information and interface form information;

[0005] Store the interface information and interface documents in the index library and the stock asset library respectively;

[0006] Retrieve and display target interface information based on user search information, index library and stock asset library;

[0007] According to another aspect of the present invention, there is provided an interface document processing device, the device comprising:

[0008] An information reading module, used to obtain interface information in the interface document, wherein the interface information at least includes transaction information, interface content information and interface form information;

[0009] The information stock module is used to store the interface information and interface documents in the index library and the stock asset library respectively;

[0010] The information retrieval module is used to retrieve and display target interface information based on user retrieval information, index library and stock asset library;

[0011] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0012] at least one processor; and

[0013] a memory communicatively connected to at least one processor; wherein,

[0014] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by at least one processor so that the at least one processor can execute the interface document processing method of any embodiment of the present invention.

[0015] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the interface document processing method of any embodiment of the present invention when executed.

[0016] The technical solution of the embodiment of the present invention, by pre-storing interface information in an index library, storing interface documents in a stock asset library, and displaying target interface information according to retrieval information input by a user, solves the technical problems that current interface documents mainly face developers and have poor readability and passability, and achieves the technical effect of effectively improving the comprehensibility and reusability of interface information, thereby improving the quality of interface testing.

[0017] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 is a flowchart of an interface document processing method provided according to Embodiment 1 of the present invention;

[0020] Figure 2 is a flowchart of an interface document processing method provided according to Embodiment 2 of the present invention;

[0021] Figure 3 is an example diagram of another interface document processing method provided according to the second embodiment of the present invention;

[0022] Figure 4It is a visual interface for modifying an interface provided according to the second embodiment of the present invention.

[0023] Figure 5 It is a visual interface of a search device provided according to the second embodiment of the present invention.

[0024] Figure 6 is a schematic diagram of the structure of an interface document processing device provided according to Embodiment 3 of the present invention;

[0025] Figure 7 It is a structural diagram of an electronic device that implements an interface document processing method provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "target", "original", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "for" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] Embodiment 1

[0029] Figure 1 A flowchart of an interface document processing method is provided for the first embodiment of the present invention. This embodiment is applicable to the test personnel. The method can be executed by an interface document processing device. The interface document processing device can be implemented in the form of hardware and / or software. The interface document processing device can be configured in an electronic device. Figure 1 As shown, the method includes:

[0030] S110. Obtain interface information in the interface document.

[0031] The interface information may include at least transaction information, interface content information and interface form information.

[0032] Specifically, a program for detecting interface information is preset in the electronic device. When the existence of an interface is detected, the interface information in the interface document can be read and divided into at least one of transaction information, interface content information and interface form information.

[0033] Exemplarily, the present invention can preset a program in an electronic device, and when an interface interaction between external systems and / or between internal subsystems is detected, the interface design document can be obtained and the interface information in the interface design document can be read. The interface documents obtained in the present invention come from a wide range of sources and can provide a wide variety of interface information as samples.

[0034] Optionally, the transaction information may include the system to which the interface belongs, the module to which it belongs, the interface name, interface type, interface address, interface security, and interface function rule description. Interface content information may include interface direction, parent field, field Chinese name, field English name, interface importance level, field type, and field length. Interface format information may include input message format and output message format, etc.

[0035] S120: Store the interface information and the interface document in the index library and the stock asset library respectively.

[0036] The index library may be a database preset by developers in the server for storing interface information, and the stock resource library may be a background database for storing interface documents corresponding to the interface information.

[0037] Specifically, after obtaining the interface information, the interface information can be stored in the index library in the server, and the interface document containing the interface information can be stored in the existing resource library in the server. An association relationship can be set between the interface information stored in the index library and the interface document stored in the existing resource library, and the association relationship can be the same identification number or primary key.

[0038] S130. Retrieve and display target interface information according to user search information, the index library and the stock asset library.

[0039] The user search information may be keywords input by the user for searching the interface document.

[0040] Specifically, the search information input by the tester can be obtained through the interactive interface, and the index library can be automatically searched according to the search information, and the appropriate interface information retrieved from the index library is used as the target interface information.

[0041] For example, developers pre-establish a human-computer interaction interface for obtaining user search information. Interface testers can enter keywords in the interaction interface, including but not limited to the system to which the interface belongs, the module to which it belongs, the interface name, the interface type, the interface address, the interface security, and the interface function rule description. The backend displays the target interface information in the interaction interface in descending order of similarity based on the similarity between the search information entered by the user and the interface information in the index library. Since there is a preset association between the interface information and the interface document, a more visual and easier to understand interface document reading is achieved for testers, which improves the efficiency of interface testing.

[0042] The technical solution of this embodiment, by storing interface information and interface documents in batches in a corresponding manner in the background index library and the existing asset library, enables users to display the target interface information by entering keywords, solves the technical problems of testers' unfamiliarity with interface messages and interface codes and poor readability of interface documents, and realizes interface document reading that is more visual and easier to understand for testers, thereby improving the efficiency and quality of interface testing.

[0043] Embodiment 2

[0044] Figure 2 This is a flowchart of an interface document processing method provided in the second embodiment of the present invention. This embodiment is further optimized on the basis of the above embodiments, and adds specific implementation methods of "storing interface information and interface documents in the index library and the stock asset library respectively" and "retrieve and display target interface information according to user search information, index library and stock asset library". Figure 2 As shown, the method includes:

[0045] S210. Obtain interface information in the interface document.

[0046] The interface information may include at least transaction information, interface content information and interface form information.

[0047] Optionally, the interface information in the interface document may include at least one of the following: character matching of the technical attribute field in the interface document to obtain transaction information of the interface information; character matching of the interface field in the interface document to obtain interface content information of the interface information; matching the input message format and the output message format in the interface document to obtain interface form information.

[0048] Furthermore, the technical attribute field may include at least one of the following: system, module, interface name, interface type, interface link, interface function rule description; the interface field includes at least one of the following: parent field, field name, field type, field length, value description.

[0049] S220: Determine an index library that has a matching keyword with the interface information.

[0050] The matching keywords may be representative words extracted from the original interface information;

[0051] Specifically, the keywords of the index library are preset, representative words are extracted from the original interface information obtained each time, the extracted representative words are matched with the keywords of the index library, and the interface information is stored in the corresponding index library according to the matching result.

[0052] Exemplarily, the present invention can be preset by the developer to use the representative words extracted from the interface information obtained for the first time as the keywords of the first index library. If the representative words of the interface information obtained later successfully match the keywords of the existing index library, the interface information is stored in the index library; if the index library that matches the representative words of the obtained interface information cannot be found, a new index library and keywords are automatically created. Optionally, the representative words can be the content words in the interface information, or they can be words obtained by an existing keyword extraction algorithm.

[0053] S230. Acquire a stock asset library that is associated with the index library.

[0054] Among them, the stock asset library is a database generated corresponding to the index library.

[0055] Specifically, when the generation of an index library is detected, a corresponding stock asset library is generated, that is, the number of index libraries and the number of stock asset libraries can be the same.

[0056] Exemplarily, when a new index library is detected to be generated, a new corresponding stock asset library is generated at the same time, and the association relationship between the index library and the stock asset library is stored in the index library. When an action of storing interface information in an existing index library is detected, the association relationship already stored in the existing index library is obtained, and then the corresponding stock asset library is obtained.

[0057] S240. Store the interface document in the stock asset library according to the preset file template.

[0058] Among them, the preset file template corresponds to the stock asset library.

[0059] Specifically, each stock asset library can determine the format type when it is generated. The format type can be the same as the first interface document by default, or it can be set by the developer. The format type of the preset file template can match the stock asset library.

[0060] On the basis of the above-mentioned embodiment, optionally, the present invention can input the interface document based on the text recognition device or the interface recognition template.

[0061] Exemplarily, when it is detected that the original interface information is stored in the index library, an interface document that matches the interface information is obtained, and then the format type of the interface document is obtained, and it is stored in the corresponding stock asset library according to the interface type.

[0062] Optionally, the receiving interface is designed to correspond to information modification parameters, and the preset file template of the stock asset library and / or the keywords of the index library are adjusted according to the information modification parameters.

[0063] S250: receiving user search information on the visual interface.

[0064] The visual interface may be a human-computer interaction interface pre-established by developers, the user may be a tester, and the user retrieval information may be keywords input by the user.

[0065] Specifically, the present invention can receive keywords input by a tester through a human-computer interaction interface.

[0066] Exemplarily, after the tester enters the human-computer interaction interface, he / she can input keywords related to the interface information through the interface, which facilitates the tester to read the interface document and search for the interface information.

[0067] S260: Search the index library for target interface information according to the user search information.

[0068] The target interface information may be information having a high degree of similarity to the user search information.

[0069] Exemplarily, the implementation of the search query function of the present invention can be: the search information input by the user is stored in the form of a string in sequence, the total value of the user's search information is stored in the form of an integer, the stored string is assigned as a variable in the order of acquisition and incremented until it does not exceed the total value, the received user search information string is matched with the search information stored in the source table in sequence, and the traversal is terminated after a successful match, and the string that successfully matched the source table is returned. If the traversal is still not successfully matched after the end of the match, the traversal is terminated and a null value is returned. VBA is proposed to be used, and the main pseudo code is as follows:

[0070] S270. Search the stock asset library for the interface document corresponding to the target interface information and display the interface document on a visual interface.

[0071] The present invention establishes a rich and orderly database in real time by pre-establishing an association relationship between the interface information in the index library and the interface documents in the stock asset library and storing them accordingly. The tester only needs to input as user search information in the interactive interface, and the background matches the interface information in the index library according to keywords, and then outputs the display interface document of the successful match in the visual interface, thereby improving the readability, comprehensibility and reusability of the interface document for the tester, and improving the efficiency and quality of the interface test.

[0072] In an exemplary embodiment, see Figure 3 , the method comprising:

[0073] S310. Using the system internal and external interface information as data source, obtain interface transaction information, content information, and form information.

[0074] Optionally, the interface transaction information may include technical attribute elements such as the system and module of the interface, and the specific form is as follows:

[0075]

[0076] Optionally, the content information may include detailed information on interface fields such as the interface field type, field name, and field value rules, and describe the design pattern of the system interface in detail. The specific form is as follows:

[0077]

[0078] Optionally, the interface form can be described as the specific format of the input or output message, as follows:

[0079]

[0080] S320: Enter or import the sorted interface information to achieve the first accumulation of the interface information.

[0081] S330. Extract keywords based on the accumulated interface information to form an interface library and an index library.

[0082] Optionally, the present invention can store the interface information in an interface library, and store the extracted keywords in an index library accordingly, thereby realizing the function of searching the interface information by keywords.

[0083] S340. According to the modification of the interface design, modify the information of each element of the existing interface, and update the interface document and index library information.

[0084] Optionally, the visualization interface of the modification interface can be as follows Figure 4 shown.

[0085] It should be noted that when the tester needs to modify the existing interface information, he can modify the various element information of the existing interface through the human-computer interaction interface. It can be obtained that when the interface information is modified, the interface document corresponding to the interface information in the stock asset library can also be modified accordingly, and the keywords corresponding to the interface in the index library can also be modified accordingly.

[0086] S350, realizing the retrieval device and the display device, automatically matching keywords, retrieving interface information, and displaying interface document content.

[0087] Optionally, the visual interface of the retrieval device can be as follows Figure 5 shown.

[0088] Embodiment 3

[0089] Figure 4 This is a schematic diagram of the structure of an interface document processing device provided in Embodiment 3 of the present invention. The device can execute the interface document processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. The device includes: an information reading module 410, an information storage module 420, and an information retrieval module 430.

[0090] The information reading module 410 is used to obtain the interface information in the interface document, wherein the interface information at least includes transaction information, interface content information and interface form information;

[0091] The information storage module 420 is used to store the interface information and the interface document in the index library and the stock asset library respectively;

[0092] The information retrieval module 430 is used to retrieve and display target interface information based on user retrieval information, index library and stock asset library.

[0093] Furthermore, obtaining interface information in the interface document includes at least one of the following: performing character matching on the technical attribute field in the interface document to obtain transaction information of the interface information; performing character matching on the interface field in the interface document to obtain interface content information of the interface information; matching the input message format and the output message format in the interface document to obtain interface form information.

[0094] Furthermore, the technical attribute field includes at least one of the following: system, module, interface name, interface type, interface link, interface function rule description; the interface field includes at least one of the following: parent field, field name, field type, field length, value description.

[0095] Furthermore, the information storage module 420 includes:

[0096] The keyword matching unit is used to determine the index library words that match the keyword in the interface information.

[0097] The asset library acquisition unit is used to acquire the stock asset library that is associated with the index library.

[0098] The document storage unit is used to store the interface document in the stock asset library according to the preset file template, wherein the preset file template corresponds to the stock asset library.

[0099] Furthermore, the information retrieval module 430 includes:

[0100] A search information receiving unit, used to receive user search information on a visual interface;

[0101] An interface information search unit, used to search for target interface information in the index library according to user search information;

[0102] The interface document display unit is used to search the interface document corresponding to the target interface information in the stock asset library and display the interface document in a visual interface.

[0103] Furthermore, the interface document processing device further includes:

[0104] The parameter modification module is used to receive information modification parameters corresponding to the interface design, and adjust the preset file template of the stock asset library and / or adjust the keywords of the index library according to the information modification parameters.

[0105] Furthermore, the interface document processing device further includes:

[0106] The interface document input module is used to input the interface document based on the text recognition device or the interface recognition template.

[0107] The interface document processing device provided in the embodiment of the present invention can execute the interface document processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0108] Embodiment 4

[0109] Figure 5A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0110] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0111] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0112] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the interface document processing method.

[0113] In some embodiments, the interface document processing method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method XXX described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the interface document processing method in any other appropriate manner (e.g., by means of firmware).

[0114] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0115] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0116] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0117] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0118] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0119] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0120] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0121] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. An interface document processing method, characterized in that: The method comprises: Acquire interface information in the interface document, wherein the interface information at least includes transaction information, interface content information and interface form information; Storing the interface information and the interface document in an index library and a stock asset library respectively; Retrieve and display target interface information according to user search information, the index library and the stock asset library; The obtaining of interface information in the interface document includes at least one of the following: Performing character matching on the technical attribute field in the interface document to obtain transaction information of the interface information; Performing character matching on the interface field in the interface document to obtain interface content information of the interface information; Matching the input message format and the output message format in the interface document to obtain the interface form information; The technical attribute field includes at least one of the following: system, module, interface name, interface type, interface link, interface function rule description; the interface field includes at least one of the following: parent field, field name, field type, field length, value description; The step of storing the interface information and the interface document in an index library and a stock asset library respectively includes: Determine the index library that has matching keywords with the interface information; The stock asset library that is associated with the index library is obtained, wherein the stock asset library is a database generated corresponding to the index library, and when the generation of the index library is detected, the stock asset library is generated accordingly, the index library and the stock asset library have the same quantity, and the interface information stored in the index library and the interface document stored in the stock asset library are set with the same identification number or primary key as an associated relationship; The interface document is stored in the stock asset library according to a preset file template, wherein the preset file template corresponds to the stock asset library.

2. The method according to claim 1, characterized in that: The retrieving and displaying target interface information according to the user search information, the index library and the stock asset library includes: Receiving the user search information on a visual interface; Searching the target interface information in the index library according to the user search information; The interface document corresponding to the target interface information is searched in the stock asset library and the interface document is displayed on the visual interface.

3. The method according to claim 1, characterized in that: Also includes: The information modification parameters corresponding to the interface design are received, and the preset file template of the stock asset library and / or the keywords of the index library are adjusted according to the information modification parameters.

4. The method according to claim 1, characterized in that: Also includes: The interface document is entered based on a text recognition device or an interface recognition template.

5. An interface document processing device, characterized in that: The device comprises: An information reading module, used to obtain interface information in the interface document, wherein the interface information at least includes transaction information, interface content information and interface form information; An information stock module, used to store the interface information and the interface document in an index library and a stock asset library respectively; An information retrieval module, used to retrieve and display target interface information according to user retrieval information, the index library and the stock asset library; The obtaining of interface information in the interface document includes at least one of the following: Performing character matching on the technical attribute field in the interface document to obtain transaction information of the interface information; Performing character matching on the interface field in the interface document to obtain interface content information of the interface information; Matching the input message format and the output message format in the interface document to obtain the interface form information; The technical attribute field includes at least one of the following: system, module, interface name, interface type, interface link, interface function rule description; the interface field includes at least one of the following: parent field, field name, field type, field length, value description; Wherein, the information storage module includes: A keyword matching unit, used to determine the index library having matching keywords with the interface information; An asset library acquisition unit is used to acquire the stock asset library that is associated with the index library, wherein the stock asset library is a database generated corresponding to the index library, and when the generation of the index library is detected, the stock asset library is generated accordingly, the index library and the stock asset library have the same number, and the interface information stored in the index library and the interface document stored in the stock asset library are set with the same identification number or primary key as an associated relationship; A document storage unit is used to store the interface document in the stock asset library according to a preset file template, wherein the preset file template corresponds to the stock asset library.

6. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the interface document processing method described in any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the interface document processing method according to any one of claims 1 to 4 when executed.