CN112416457A - Interface configuration file generation method and device - Google Patents

Interface configuration file generation method and device Download PDF

Info

Publication number
CN112416457A
CN112416457A CN202011307995.8A CN202011307995A CN112416457A CN 112416457 A CN112416457 A CN 112416457A CN 202011307995 A CN202011307995 A CN 202011307995A CN 112416457 A CN112416457 A CN 112416457A
Authority
CN
China
Prior art keywords
interface
document
reconstructed
field information
configuration file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011307995.8A
Other languages
Chinese (zh)
Inventor
邱桂杰
许国庆
丛日飞
王云飞
万国军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202011307995.8A priority Critical patent/CN112416457A/en
Publication of CN112416457A publication Critical patent/CN112416457A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a method and a device for generating an interface configuration file, wherein the method comprises the following steps: generating an interface document of the system to be interface reconstructed according to the interface configuration file of the system to be interface reconstructed; the interface configuration file comprises an xml file carrying field information corresponding to different message field labels; acquiring an interface document of the system after interface reconstruction; summarizing and combining interface documents of a system to be interface reconstructed and a system after interface reconstruction to generate a summarized interface document; the summary interface document contains the field information corresponding to each label in the interface document of the system to be interface reconstructed and the system after interface reconstruction under each label of the text field; and analyzing the field information of the summary interface document through a Java program to generate an interface configuration file of the system after the interface is reconstructed. The invention can realize the automatic generation of the interface configuration file of the system after the interface is reconstructed, and improves the generation efficiency of the interface configuration file.

Description

Interface configuration file generation method and device
Technical Field
The invention relates to the technical field of computers, in particular to an interface configuration file generation method and device.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
At present, due to continuous innovation of a technical architecture and continuous upgrade of basic hardware, both the internet industry and the traditional financial industry face the situation that the previously used company system cannot gradually meet increasingly complex business scenes, and developers in all industries face the challenge of optimizing and even reconstructing the system of the company. In the process of optimizing and reconstructing an original system of a company, interface rewriting or existing interface optimization is inevitably needed, for some important company systems, switching of a reconstructed new system cannot be performed immediately after reconstruction, and all users are put into production after a period of testing is needed.
In the process of interface optimization and system reconfiguration, the system with the reconfigured interface needs to have good compatibility, and the conversion of the interface configuration file of the system with the reconfigured interface is specifically realized.
In the prior art, developers need to invest a large amount of manpower and material resources, and the interface documents are arranged and the interface configuration files are developed in a manual operation mode, so that a large amount of time is applied to repeated work by the workers, and the generation efficiency of the interface configuration files is low; meanwhile, the probability of error problems is easily increased by generating the interface configuration file through manual operation, so that the situation that the whole project development cannot catch up with the progress is caused, and great troubles are caused to developers.
Disclosure of Invention
The embodiment of the invention provides an interface configuration file generation method, which is used for automatically generating an interface configuration file, improving the efficiency and simultaneously reducing the probability of errors, and comprises the following steps:
generating an interface document of the system to be interface reconstructed according to the interface configuration file of the system to be interface reconstructed; the interface configuration file comprises an xml file carrying field information corresponding to different message field labels;
acquiring an interface document of the system after interface reconstruction;
summarizing and combining interface documents of a system to be interface reconstructed and a system after interface reconstruction to generate a summarized interface document; the summary interface document contains the field information corresponding to each label in the interface document of the system to be interface reconstructed and the system after interface reconstruction under each label of the text field;
and analyzing the field information of the summary interface document through a Java program to generate an interface configuration file of the system after the interface is reconstructed.
An embodiment of the present invention further provides an interface configuration file generating apparatus, configured to automatically generate an interface configuration file, so as to improve efficiency and reduce the probability of error occurrence, where the apparatus includes:
the document generation module is used for generating an interface document of the system to be interface reconstructed according to the interface configuration file of the system to be interface reconstructed; the interface configuration file comprises an xml file carrying field information corresponding to different message field labels;
the document acquisition module is used for acquiring an interface document of the system after the interface is reconstructed;
the summarizing and combining module is used for summarizing and combining the interface documents of the system to be interface reconstructed and the system after interface reconstruction to generate a summarizing interface document; the summary interface document contains the field information corresponding to each label in the interface document of the system to be interface reconstructed and the system after interface reconstruction under each label of the text field;
and the analysis module is used for analyzing the field information of the collected interface document through a Java program to generate an interface configuration file of the system after the interface is reconstructed.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the interface configuration file generation method when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the interface configuration file generation method is stored in the computer-readable storage medium.
In the embodiment of the invention, an interface document of a system to be interface reconstructed is generated according to an interface configuration file of the system to be interface reconstructed; the interface configuration file comprises an xml file carrying field information corresponding to different message field labels; acquiring an interface document of the system after interface reconstruction; summarizing and combining interface documents of a system to be interface reconstructed and a system after interface reconstruction to generate a summarized interface document; the summary interface document contains the field information corresponding to each label in the interface document of the system to be interface reconstructed and the system after interface reconstruction under each label of the text field; through a Java program, analyzing field information of the collected interface document to generate an interface configuration file of the system after the interface is reconstructed, so that the automatic generation of the interface configuration file of the system after the interface is reconstructed can be realized, compared with the technical scheme of generating the interface configuration file by manual operation in the prior art, the problem that a large amount of manpower and material resources are consumed but the efficiency is low is solved, and the generation efficiency of the interface configuration file is improved; meanwhile, the problem that errors are prone to occur in manual operation can be avoided, the accuracy of the interface configuration file is improved, and the problem that the overall development progress of the project is delayed is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a schematic flowchart of an interface configuration file generation method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an exemplary method for generating an interface configuration file according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating an exemplary method for generating an interface configuration file according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an interface configuration file generating apparatus according to an embodiment of the present invention;
fig. 5 is a diagram illustrating an exemplary interface configuration file generating apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
Before describing the scheme provided by the embodiment of the present invention, the inventor first finds a technical problem and introduces a concept of proposing the scheme provided by the embodiment of the present invention with respect to the technical problem. The inventors have found the following technical problems:
at present, in the process of interface optimization and system reconfiguration, the system after interface reconfiguration is required to have good compatibility, and specifically, the conversion of the interface configuration file of the system after interface reconfiguration is realized, such as the conversion of an xml message, and the message field of the system to be subjected to interface reconfiguration is converted into the message field of the system after interface reconfiguration.
At present, for the arrangement of interface documents and the development of interface messages, developers need to invest a large amount of manpower and material resources, and carry out the arrangement of the interface documents and the development of interface configuration files in a manual operation mode, so that a large amount of time is applied to repeated work by the workers, and the generation efficiency of the interface configuration files is low; meanwhile, the probability of error problems is easily increased by generating the interface configuration file through manual operation, so that the situation that the whole project development cannot catch up with the progress is caused, and great troubles are caused to developers.
In view of the above technical problems, the inventor provides an interface configuration file generation scheme, which can solve the technical problems and can realize automatic generation of an interface configuration file of a system after interface reconfiguration, and compared with the technical scheme in the prior art that an interface configuration file needs to be generated through manual operation, the method and the device avoid the problems of large consumption of manpower and material resources and low efficiency, and improve the generation efficiency of the interface configuration file; meanwhile, the problem that errors are prone to occur in manual operation can be avoided, the accuracy of the interface configuration file is improved, and the problem that the overall development progress of the project is delayed is avoided.
The scheme for generating the interface configuration file is described in detail below.
Fig. 1 is a schematic flowchart of a method for generating an interface configuration file according to an embodiment of the present invention, and as shown in fig. 1, the method for generating an interface configuration file according to an embodiment of the present invention may include:
step 101: generating an interface document of the system to be interface reconstructed according to the interface configuration file of the system to be interface reconstructed; the interface configuration file comprises an xml file carrying field information corresponding to different message field labels;
step 102: acquiring an interface document of the system after interface reconstruction;
step 103: summarizing and combining interface documents of a system to be interface reconstructed and a system after interface reconstruction to generate a summarized interface document; the summary interface document contains the field information corresponding to each label in the interface document of the system to be interface reconstructed and the system after interface reconstruction under each label;
step 104: and analyzing the field information of the summary interface document through a Java program to generate an interface configuration file of the system after the interface is reconstructed.
In the embodiment of the invention, an interface document of a system to be interface reconstructed is generated according to an interface configuration file of the system to be interface reconstructed; the interface configuration file comprises an xml file carrying field information corresponding to different message field labels; acquiring an interface document of the system after interface reconstruction; summarizing and combining interface documents of a system to be interface reconstructed and a system after interface reconstruction to generate a summarized interface document; the summary interface document contains the field information corresponding to each label in the interface document of the system to be interface reconstructed and the system after interface reconstruction under each label; through a Java program, analyzing field information of the collected interface document to generate an interface configuration file of the system after the interface is reconstructed, so that the automatic generation of the interface configuration file of the system after the interface is reconstructed can be realized, compared with the technical scheme of generating the interface configuration file by manual operation in the prior art, the problem that a large amount of manpower and material resources are consumed but the efficiency is low is solved, and the generation efficiency of the interface configuration file is improved; meanwhile, the problem that errors are prone to occur in manual operation can be avoided, the accuracy of the interface configuration file is improved, and the problem that the overall development progress of the project is delayed is avoided.
When the method is implemented specifically, firstly, an interface document of a system to be interface reconstructed is generated according to an interface configuration file of the system to be interface reconstructed; the interface configuration file comprises an xml file carrying field information corresponding to different message field labels.
In the embodiment, the problem of mutual conversion between the interface configuration file and the interface document when the system interface is reconstructed is solved, and the problem of code generation of xml message conversion when the system to be reconstructed is compatible with the system after interface reconstruction is solved.
In specific implementation, after an interface document of the system to be interface reconstructed is generated according to the interface configuration file of the system to be interface reconstructed, the interface document of the system after interface reconstruction is obtained.
In an embodiment, the method for generating an interface configuration file according to the embodiment of the present invention may further include, before collecting and merging interface documents of a system to be interface reconfigured and a system after interface reconfiguration: checking field information in the generated interface document of the system to be interface reconstructed through a data dictionary query system; aiming at each field information, when the field information fails to be checked, sending out alarm information that the field information fails to be checked; according to the alarm information which is not passed by the field information inspection, determining the correct data of the field information; replacing the field information which fails the check with the correct data of the field information; and repeating the steps until each field information in the interface document passes the inspection.
In the above embodiment, the interface configuration file in the system to be interface reconfigured, such as the message configuration code, is automatically scanned to generate the corresponding interface document. When the field information in the code is different from the data dictionary query system, the verification can be carried out in a manual verification mode, user prompt is carried out according to the query result returned by the data dictionary query system, uncertain fields are prompted to developers, and the developers can carry out manual verification. And after the approval is finished, a message interface document of the system to be interface reconstructed is formed.
The embodiment of the invention utilizes the data dictionary query system to check the interface message, improves the engagement degree of the system and the whole new generation architecture system, and reduces the error rate of the service field.
In an embodiment, the method for generating an interface configuration file according to an embodiment of the present invention may further include: and when designing the system after the interface is reconstructed, compiling an interface document of the system after the interface is reconstructed. The embodiment of the invention scans the interface document, simultaneously queries the corresponding field information by the data dictionary query system, displays the field information in the interface document in a reverse mode, prompts corresponding unified service fields for developers, scans the interface document after the field information is checked by the developers, and is further favorable for generating a summary interface document in the subsequent steps.
In specific implementation, after the interface document of the system with the reconstructed interface is obtained, the interface documents of the system with the reconstructed interface and the interface document of the system with the reconstructed interface are collected and combined to generate a collected interface document; the summary interface document contains the field information corresponding to each label in the interface document of the system to be interface reconstructed and the system after interface reconstruction under each label of the text field.
In an embodiment, summarizing and merging the interface documents of the system to be interface reconfigured and the system after interface reconfiguration to generate a summarized interface document, as shown in fig. 2, the summarizing and merging may include:
step 201: respectively acquiring field information corresponding to a label in an interface document of a system to be interface reconstructed and a system after interface reconstruction under each text field label;
step 202: and respectively filling field information corresponding to the message field label in the interface document of the system to be interface reconstructed and the interface document of the system after interface reconstruction under each message field label of the preset summary interface document to obtain the summary interface document.
In the above embodiment, the summary interface document is generated by the summary merging process, so that the field information corresponding to each tag in the interface document of the system to be interface reconstructed and the interface document of the system after interface reconstruction can be simultaneously stored in the summary interface document, which is beneficial to generating the interface configuration file of the system after interface reconstruction in the subsequent steps.
In specific implementation, after the interface documents of the system to be interface reconstructed and the system after interface reconstruction are collected and merged to generate a collected interface document, the collected interface document is analyzed by a Java program to generate an interface configuration file of the system after interface reconstruction.
In an embodiment, analyzing field information of the summary interface document by using a Java program to generate an interface configuration file of the system after the interface is reconstructed may include: acquiring worksheet objects and cell information of the summarized interface document through a Java program, and generating target interface configuration files carrying different message field labels according to the interface document of the system after interface reconstruction; and aiming at each message field label, realizing the replacement of the field information content in the document through a regular expression, so as to summarize the field information corresponding to the message field label in the interface document, and replacing the field information corresponding to the message field label in the target interface configuration file to obtain the interface configuration file of the system after the interface is reconstructed.
In the above embodiment, through the Java program, the request message of the system to be interface-reconfigured during the system interface reconfiguration process can be converted into an xml file of the request message of the system after the interface reconfiguration, thereby solving the high risk problem caused by one-time switching during the system reconfiguration process.
A specific example is given below to illustrate a specific application of the method of the present invention. In this embodiment, the to-be-interfaced reconfiguration System may be a stock fund bank deposit and management System (CTS, digital certificate System for short) of a bank, which is an important System for handling transfer business between the bank and a stock company, and is also an important System for connecting an investor and the stock company, and includes four products of a stock, a stock B, a silver certificate period, and stock pledge repurchase, and provides functions of signing, transferring, clearing, and the like for the stock company and the investor; the system can be a new generation agent bank-certificate system after the interface is reconstructed, and the system is reconstructed by a CTS according to a new generation standard of a bank and is used for better serving security traders and investors. In this embodiment, the application front-end system of the new generation framework P5 can make the messages of the system to be interface reconfigured and the system after interface reconfiguration compatible, specifically implement the conversion related to the xml message, and convert the message field of the system to be interface reconfigured into the message field of the system after interface reconfiguration.
As shown in fig. 3, in this embodiment, the following steps may be included:
1. firstly, scanning codes (such as an xml file of a request message) of an interface configuration file of an old system (namely a system to be subjected to interface reconstruction), and then checking by developers to form an accurate interface document of the system to be subjected to interface reconstruction, wherein the interface document can be an excel file;
2. the interface document of the new system (namely the system after the interface is reconstructed) can inquire the system check interface and check whether the check field is correct or not by calling a data dictionary;
3. summarizing the interface document of the old system and the interface document of the new system into one document to form a summarized interface document, and carrying out one-to-one correspondence on the field information of the old system and the field information of the new system to form a summarized excel file;
4. and analyzing the formed summary interface document by using a Java program. Firstly, forming a label in an xml file according to a new system interface document, and then operating the xml file; matching according to the regular expression, and filling the content in the xml file label into field information of an interface field of an old system;
5. and finally, generating an interface configuration file of the system after the interface is reconstructed, wherein the interface configuration file of the system after the interface is reconstructed can be a message conversion xml file.
In the embodiment of the invention, an interface document of a system to be interface reconstructed is generated according to an interface configuration file of the system to be interface reconstructed; the interface configuration file comprises an xml file carrying field information corresponding to different message field labels; acquiring an interface document of the system after interface reconstruction; summarizing and combining interface documents of a system to be interface reconstructed and a system after interface reconstruction to generate a summarized interface document; the summary interface document contains the field information corresponding to each label in the interface document of the system to be interface reconstructed and the system after interface reconstruction under each label; through a Java program, analyzing field information of the collected interface document to generate an interface configuration file of the system after the interface is reconstructed, so that the automatic generation of the interface configuration file of the system after the interface is reconstructed can be realized, compared with the technical scheme of generating the interface configuration file by manual operation in the prior art, the problem that a large amount of manpower and material resources are consumed but the efficiency is low is solved, and the generation efficiency of the interface configuration file is improved; meanwhile, the problem that errors are prone to occur in manual operation can be avoided, the accuracy of the interface configuration file is improved, and the problem that the overall development progress of the project is delayed is avoided.
As described above, the embodiments of the present invention are applicable to a scenario where a large software development organization is constructed in a unified standard, and can be used to implement development of a semi-automatic development tool for development of a transaction interface. The interface configuration file (specifically, the code of the interface configuration file) can be converted into an interface document, the interface document can also be converted into the interface configuration file, the problem that the compatible message conversion xml file is complied in the system interface reconstruction process can be solved, and meanwhile, the correctness of the interface message interface document can be verified according to a third-party data dictionary system. Corresponding fields are obtained according to a unified data dictionary query system, and a good way is provided for standardization and normalization of code development.
At present, when interface transaction development is carried out, interface configuration files and codes in the prior art need to be manually compiled, when the transaction amount is overlarge, the repeated coding workload is large, the working intensity is high, the error rate is high, and the efficiency is low.
The embodiment of the invention also provides an interface configuration file generation device, such as the following embodiments. Because the principle of the device for solving the problems is similar to the interface configuration file generation method, the implementation of the device can refer to the implementation of the interface configuration file generation method, and repeated parts are not described again.
Fig. 4 is a schematic structural diagram of an interface configuration file generating apparatus according to an embodiment of the present invention, and as shown in fig. 4, the interface configuration file generating apparatus according to the embodiment of the present invention may include:
the document generating module 01 is configured to generate an interface document of the system to be interface reconfigured according to the interface configuration file of the system to be interface reconfigured; the interface configuration file comprises an xml file carrying field information corresponding to different message field labels;
the document acquisition module 02 is used for acquiring an interface document of the system after the interface is reconstructed;
the summarizing and combining module 03 is used for summarizing and combining the interface documents of the system to be interface reconstructed and the system after interface reconstruction to generate a summarizing interface document; the summary interface document contains the field information corresponding to each label in the interface document of the system to be interface reconstructed and the system after interface reconstruction under each label;
and the analysis module 04 is used for analyzing the field information of the summarized interface document through a Java program to generate an interface configuration file of the system after the interface is reconstructed.
In one embodiment, as shown in fig. 5, a verification module 05 may also be included for:
checking field information in the generated interface document of the system to be interface reconstructed through a data dictionary query system; aiming at each field information, when the field information fails to be checked, sending out alarm information that the field information fails to be checked; according to the alarm information which is not passed by the field information inspection, determining the correct data of the field information; replacing the field information which fails the check with the correct data of the field information; and repeating the steps until each field information in the interface document passes the inspection.
In one embodiment, the summary merging module may be specifically configured to: respectively acquiring field information corresponding to a label in an interface document of a system to be interface reconstructed and a system after interface reconstruction under each text field label; and respectively filling field information corresponding to the message field label in the interface document of the system to be interface reconstructed and the interface document of the system after interface reconstruction under each message field label of the preset summary interface document to obtain the summary interface document.
In one embodiment, the parsing module may be specifically configured to: generating a target interface configuration file carrying different message field labels according to an interface document of a system after interface reconstruction through a Java program; and for each message field label, replacing the field information corresponding to the message field label in the target interface configuration file by using the field information corresponding to the message field label in the summary interface document through a regular expression to obtain the interface configuration file of the system after the interface is reconstructed.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the interface configuration file generation method when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the interface configuration file generation method is stored in the computer-readable storage medium.
In the embodiment of the invention, an interface document of a system to be interface reconstructed is generated according to an interface configuration file of the system to be interface reconstructed; the interface configuration file comprises an xml file carrying field information corresponding to different message field labels; acquiring an interface document of the system after interface reconstruction; summarizing and combining interface documents of a system to be interface reconstructed and a system after interface reconstruction to generate a summarized interface document; the summary interface document contains the field information corresponding to each label in the interface document of the system to be interface reconstructed and the system after interface reconstruction under each label of the text field; through a Java program, analyzing field information of the collected interface document to generate an interface configuration file of the system after the interface is reconstructed, so that the automatic generation of the interface configuration file of the system after the interface is reconstructed can be realized, compared with the technical scheme of generating the interface configuration file by manual operation in the prior art, the problem that a large amount of manpower and material resources are consumed but the efficiency is low is solved, and the generation efficiency of the interface configuration file is improved; meanwhile, the problem that errors are prone to occur in manual operation can be avoided, the accuracy of the interface configuration file is improved, and the problem that the overall development progress of the project is delayed is avoided.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. An interface configuration file generation method, comprising:
generating an interface document of the system to be interface reconstructed according to the interface configuration file of the system to be interface reconstructed; the interface configuration file comprises an xml file carrying field information corresponding to different message field labels;
acquiring an interface document of the system after interface reconstruction;
summarizing and combining interface documents of a system to be interface reconstructed and a system after interface reconstruction to generate a summarized interface document; the summary interface document contains the field information corresponding to each label in the interface document of the system to be interface reconstructed and the system after interface reconstruction under each label of the text field;
and analyzing the field information of the summary interface document through a Java program to generate an interface configuration file of the system after the interface is reconstructed.
2. The method of claim 1, wherein before the collecting and combining the interface documents of the system to be reconfigured and the system after the reconfiguration, the method further comprises:
checking field information in the generated interface document of the system to be interface reconstructed through a data dictionary query system; aiming at each field information, when the field information fails to be checked, sending out alarm information that the field information fails to be checked; according to the alarm information which is not passed by the field information inspection, determining the correct data of the field information; replacing the field information which fails the check with the correct data of the field information; and repeating the steps until each field information in the interface document passes the inspection.
3. The method of claim 1, wherein the step of summarizing and merging the interface documents of the system to be interface reconstructed and the system after interface reconstruction to generate a summarized interface document comprises:
respectively acquiring field information corresponding to a label in an interface document of a system to be interface reconstructed and a system after interface reconstruction under each text field label;
and respectively filling field information corresponding to the message field label in the interface document of the system to be interface reconstructed and the interface document of the system after interface reconstruction under each message field label of the preset summary interface document to obtain the summary interface document.
4. The method of claim 1, wherein the field information analysis is performed on the summary interface document through a Java program to generate an interface configuration file of the system after the interface is reconstructed, and the method comprises the following steps:
generating a target interface configuration file carrying different message field labels according to an interface document of a system after interface reconstruction through a Java program;
and for each message field label, replacing the field information corresponding to the message field label in the target interface configuration file by using the field information corresponding to the message field label in the summary interface document through a regular expression to obtain the interface configuration file of the system after the interface is reconstructed.
5. An interface profile generation apparatus, comprising:
the document generation module is used for generating an interface document of the system to be interface reconstructed according to the interface configuration file of the system to be interface reconstructed; the interface configuration file comprises an xml file carrying field information corresponding to different message field labels;
the document acquisition module is used for acquiring an interface document of the system after the interface is reconstructed;
the summarizing and combining module is used for summarizing and combining the interface documents of the system to be interface reconstructed and the system after interface reconstruction to generate a summarizing interface document; the summary interface document contains the field information corresponding to each label in the interface document of the system to be interface reconstructed and the system after interface reconstruction under each label of the text field;
and the analysis module is used for analyzing the field information of the collected interface document through a Java program to generate an interface configuration file of the system after the interface is reconstructed.
6. The apparatus of claim 5, further comprising a verification module to:
checking field information in the generated interface document of the system to be interface reconstructed through a data dictionary query system; aiming at each field information, when the field information fails to be checked, sending out alarm information that the field information fails to be checked; according to the alarm information which is not passed by the field information inspection, determining the correct data of the field information; replacing the field information which fails the check with the correct data of the field information; and repeating the steps until each field information in the interface document passes the inspection.
7. The apparatus of claim 5, wherein the summarization and consolidation module is specifically configured to:
respectively acquiring field information corresponding to a label in an interface document of a system to be interface reconstructed and a system after interface reconstruction under each text field label;
and respectively filling field information corresponding to the message field label in the interface document of the system to be interface reconstructed and the interface document of the system after interface reconstruction under each message field label of the preset summary interface document to obtain the summary interface document.
8. The apparatus of claim 5, wherein the parsing module is specifically configured to:
generating a target interface configuration file carrying different message field labels according to an interface document of a system after interface reconstruction through a Java program;
and for each message field label, replacing the field information corresponding to the message field label in the target interface configuration file by using the field information corresponding to the message field label in the summary interface document through a regular expression to obtain the interface configuration file of the system after the interface is reconstructed.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 4.
CN202011307995.8A 2020-11-19 2020-11-19 Interface configuration file generation method and device Pending CN112416457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011307995.8A CN112416457A (en) 2020-11-19 2020-11-19 Interface configuration file generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011307995.8A CN112416457A (en) 2020-11-19 2020-11-19 Interface configuration file generation method and device

Publications (1)

Publication Number Publication Date
CN112416457A true CN112416457A (en) 2021-02-26

Family

ID=74773218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011307995.8A Pending CN112416457A (en) 2020-11-19 2020-11-19 Interface configuration file generation method and device

Country Status (1)

Country Link
CN (1) CN112416457A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114760236A (en) * 2022-04-08 2022-07-15 中国银行股份有限公司 Interface checking method, device, storage medium and equipment
CN116112554A (en) * 2022-12-07 2023-05-12 上海通联金融服务有限公司 Message conversion method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499002A (en) * 2008-02-02 2009-08-05 阿里巴巴集团控股有限公司 Method, system and apparatus for generating interface document
CN105183672A (en) * 2015-08-07 2015-12-23 北京思特奇信息技术股份有限公司 Self-adaptive interface calling method and system
WO2017215446A1 (en) * 2016-06-13 2017-12-21 中兴通讯股份有限公司 Configuration information notification method, configuration method and corresponding device for interface expansion apparatus
CN109274773A (en) * 2018-11-14 2019-01-25 四川长虹电器股份有限公司 A kind of realization remote service calling method, device and system
CN110908890A (en) * 2018-09-18 2020-03-24 亿阳信通股份有限公司 Automatic test method and device for interface
CN111858330A (en) * 2020-07-16 2020-10-30 苏州浪潮智能科技有限公司 Test script deployment method, device, equipment and readable medium
CN111930363A (en) * 2020-08-07 2020-11-13 北京字节跳动网络技术有限公司 Block interface code generation method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499002A (en) * 2008-02-02 2009-08-05 阿里巴巴集团控股有限公司 Method, system and apparatus for generating interface document
CN105183672A (en) * 2015-08-07 2015-12-23 北京思特奇信息技术股份有限公司 Self-adaptive interface calling method and system
WO2017215446A1 (en) * 2016-06-13 2017-12-21 中兴通讯股份有限公司 Configuration information notification method, configuration method and corresponding device for interface expansion apparatus
CN110908890A (en) * 2018-09-18 2020-03-24 亿阳信通股份有限公司 Automatic test method and device for interface
CN109274773A (en) * 2018-11-14 2019-01-25 四川长虹电器股份有限公司 A kind of realization remote service calling method, device and system
CN111858330A (en) * 2020-07-16 2020-10-30 苏州浪潮智能科技有限公司 Test script deployment method, device, equipment and readable medium
CN111930363A (en) * 2020-08-07 2020-11-13 北京字节跳动网络技术有限公司 Block interface code generation method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114760236A (en) * 2022-04-08 2022-07-15 中国银行股份有限公司 Interface checking method, device, storage medium and equipment
CN114760236B (en) * 2022-04-08 2023-11-14 中国银行股份有限公司 Interface checking method, device, storage medium and equipment
CN116112554A (en) * 2022-12-07 2023-05-12 上海通联金融服务有限公司 Message conversion method

Similar Documents

Publication Publication Date Title
US10459695B2 (en) Correction of code errors using machine learning
Trisovic et al. A large-scale study on research code quality and execution
CN103092761B (en) Method and device of recognizing and checking modifying code blocks based on difference information file
CN111488174B (en) Method and device for generating application program interface document, computer equipment and medium
CN101339532B (en) Web application system automatized test method and apparatus
CN102187313B (en) Caching runtime generated code
CN106777101B (en) Data processing engine
CN108446223B (en) Business scene automatic testing method based on dynamic compilation
CN112104709B (en) Intelligent contract processing method, device, medium and electronic equipment
CN112416457A (en) Interface configuration file generation method and device
CN111061696B (en) Method and device for analyzing transaction message log
US7185322B2 (en) Method and apparatus for parallel action processing
Di Angelo et al. Smartbugs 2.0: An execution framework for weakness detection in ethereum smart contracts
CN111711512B (en) Message sending method and device
CN106528718B (en) Method and apparatus for processing data from third party
CN113742302A (en) Service request processing method and device
CN115543832A (en) Software code standard detection method, system, equipment and storage medium
CN111667214B (en) Goods information acquisition method and device based on two-dimensional code and electronic equipment
CN111882419B (en) Method and device for quality inspection of files and server
CN115168205A (en) Automatic testing method and device
CN113050925A (en) Intelligent contract repairing method and device for block chain
CN117076546B (en) Data processing method, terminal device and computer readable storage medium
CN113778880B (en) Intelligent contract function verification method and device based on formal verification
Wu et al. Toward Understanding Bugs in Swift Programming Language
Putra et al. CNT: Semi-Automatic Translation from CWL to Nextflow for Genomic Workflows

Legal Events

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