CN114780106A - Interface function self-development system - Google Patents

Interface function self-development system Download PDF

Info

Publication number
CN114780106A
CN114780106A CN202210485944.7A CN202210485944A CN114780106A CN 114780106 A CN114780106 A CN 114780106A CN 202210485944 A CN202210485944 A CN 202210485944A CN 114780106 A CN114780106 A CN 114780106A
Authority
CN
China
Prior art keywords
function
component
interface
unit
target
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
CN202210485944.7A
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.)
Beijing Saibo Yunrui Intelligent Technology Co ltd
Original Assignee
Beijing Saibo Yunrui Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Saibo Yunrui Intelligent Technology Co ltd filed Critical Beijing Saibo Yunrui Intelligent Technology Co ltd
Priority to CN202210485944.7A priority Critical patent/CN114780106A/en
Publication of CN114780106A publication Critical patent/CN114780106A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/447Target code generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Abstract

The invention provides a self-development system of an interface function, which comprises: the development module is used for developing and managing the components to obtain a standard component library; the management module is used for managing the standard component library according to the API type and establishing a mapping relation between the API and the standard component; the function design module is used for acquiring a target component from the standard component library based on a job task and designing an interface function corresponding to the target component based on the mapping relation; the invention is used for establishing the component library in advance, designing the interface function according to the operation task, ensuring the accuracy and the flexibility of the interface function and better realizing the data communication based on the operation task.

Description

Self-development system of interface function
Technical Field
The invention relates to the technical field of computers, in particular to a self-development system of an interface function.
Background
The enterprise service portal is used for establishing an interaction channel between a human, a machine and a system, covering an upstream and downstream industrial chain of an enterprise, saving cost and cultivating a new profit growth point.
Because platform and technical differences of each system require specific interface development and interface functions to realize data exchange between different systems, the traditional method for developing interfaces and designing the interface functions through an interface middle layer has relatively high complexity and error rate, and low efficiency is caused.
Therefore, the embodiment of the invention provides a development system of an interface function, which is used for ensuring the accuracy and the flexibility of the interface function.
Disclosure of Invention
The embodiment of the invention provides an interface function development system, which is used for establishing a component library in advance and designing an interface function according to an operation task, so that the accuracy and the flexibility of the interface function are ensured, and data communication based on the operation task is better realized.
The invention provides a self-development system of an interface function, which comprises:
the development module is used for developing and managing the components to obtain a standard component library;
the management module is used for managing the standard component library according to the API type and establishing a mapping relation between the API and the standard component;
and the function design module is used for acquiring the target component from the standard component library based on the operation task and designing an interface function corresponding to the target component based on the mapping relation.
In one possible implementation, the development module includes:
the component acquisition unit is used for acquiring components from each component database from the self-development system, standardizing the components according to a preset standardization rule and acquiring standard components;
the component dividing unit is used for dividing the standard components based on the attributes of the standard components to obtain different types of standard components and establishing type labels for the standard components;
the component standardization unit is used for standardizing the standard component based on the version and the running environment of the self-development system and establishing a standard label;
and the component storage unit is used for storing the standard component and the type label and the standard label corresponding to the standard component to obtain a standard component library.
In one possible implementation manner, the developing module further includes:
the component combination unit is used for selecting an available standard component from the standard component library based on a function template in a self-development system and establishing a component package based on the available standard component according to the format of the function template;
and the component package storage unit is used for storing the component package and the corresponding function template thereof to the standard component library.
In one possible implementation, the management module includes:
the configuration unit is used for configuring related standard components from the standard component library based on the API types;
and the mapping unit is used for coupling the API type and the related standard component for operation based on a preset operation model, decoupling the coupling result through a preset programming model to obtain a decoupling result, and establishing a mapping relation based on the decoupling result.
In a possible implementation manner, the mapping unit includes:
the decoupling analysis unit is used for determining API data and simulation interface function data based on the decoupling result, and performing feature matching based on the key features of the API data and the key features of the simulation interface function data to obtain the corresponding relation between the API data and the simulation interface function data;
and the relationship establishing unit is used for establishing a mapping relationship between the API and the standard component based on the API data, the simulation interface function data and the corresponding relationship.
6. The self-development system of interface functions according to claim 1, wherein the function design module comprises:
the task analysis unit is used for dividing the job task according to task execution logic to obtain a plurality of subtasks and obtain a logical relationship among the subtasks; based on the logic relation, task nodes are established for the subtasks;
the task analysis unit is further configured to obtain configuration data of the task node, and obtain a target component supporting the configuration data from the standard component library, where the target component includes a target component package or a single target component;
the interface determining unit is used for extracting a single target component from the target components, acquiring a target interface corresponding to the single target component, acquiring a preset attribute value corresponding to the target interface from the self-development system, and acquiring a target program component corresponding to the single target component based on the attribute value;
the function design unit is used for designing an interface function by utilizing the mapping relation according to a target program component corresponding to a single target component in the target components;
the function design unit is further configured to extract a target component package from the target component, obtain a function template corresponding to the component package, and modify parameters of the function template based on subtask parameters corresponding to the component package to obtain an initial interface function;
the verification unit is used for decomposing the target component package to obtain a corresponding single target component, obtaining a target mapping relation of the corresponding single target component, and judging whether the initial interface function is matched with the corresponding single target component or not by using the target mapping relation;
if so, taking the initial interface function as a final interface function;
otherwise, extracting the unmatched part in the corresponding single target assembly according to the matching result, and correcting the unmatched part based on the target mapping relation to obtain the final interface function.
In a possible implementation manner, the function design unit includes:
a basic function obtaining unit, configured to search, by using the target program component, a basic function corresponding to the target program component from a basic function library;
a matching function obtaining unit, configured to search, according to information of a target interface corresponding to the single target component, an original configuration function corresponding to the target interface information from a configuration function library;
the compiling unit is used for calling dynamic compiling codes suitable for the basic functions and the original configuration functions from a dynamic library and compiling the basic functions and the original configuration functions to obtain target configuration functions;
the relation analysis unit is used for analyzing the mapping relation to obtain a connection structure among all the single target assemblies and establishing an interface communication function for realizing the communication of the connection structure;
the relationship analysis unit is further configured to determine an execution arrangement sequence among all the single target assemblies based on the mapping relationship, and perform a sorting operation on the interface communication functions based on the execution arrangement sequence to obtain a total interface communication function;
the function matching unit is used for carrying out first marking on the target configuration function and second marking on the total interface communication function based on the identification of the target interface corresponding to the single target component, matching the first marking result with the second marking result to obtain a matching result, and acquiring the corresponding interface matching function from the matching function library based on the matching result;
and the function determining unit is used for inserting the target configuration function into the total interface communication function based on the interface matching function to obtain an interface function.
In a possible implementation manner, the function design unit further includes:
and the function library unit comprises a basic function library, a configuration function library and a matching function library and is used for providing basic functions for function design, and the function library unit is obtained in advance for the self-development system and can be updated at irregular time.
In a possible implementation manner, the testing module is used for testing the interface function;
the test module includes:
a parameter obtaining unit, configured to obtain a parameter value in the interface function, and determine, based on a test method, a test result change value range corresponding to the parameter value after the test;
the test unit is used for testing the interface function according to the test method to obtain a test result value;
the judging unit is used for judging whether the test result value is in the test result change value range or not;
if so, indicating that the interface function is normal;
otherwise, the interface function is indicated to be abnormal.
In one possible implementation, the test unit includes:
the name testing unit is used for extracting all parameter names in the interface function to obtain a parameter name queue, and detecting the parameter name queue based on a preset parameter name value to obtain a name testing result value;
and the data testing unit is used for extracting all data information in the interface function to obtain a data queue, and detecting the data queue based on preset data information parameter values to obtain a data testing result value.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a block diagram of a self-development system for interface functions according to an embodiment of the present invention;
FIG. 2 is a block diagram of a development module in an embodiment of the invention;
FIG. 3 is a block diagram of a test module according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it should be understood that they are presented herein only to illustrate and explain the present invention and not to limit the present invention.
Example 1
An embodiment of the present invention provides a self-development system of an interface function, as shown in fig. 1, including:
the development module is used for developing and managing the components to obtain a standard component library;
the management module is used for managing the standard component library according to the API type and establishing a mapping relation between the API and the standard component;
and the function design module is used for acquiring a target component from the standard component library based on a job task and designing an interface function corresponding to the target component based on the mapping relation.
In this embodiment, the components are abstractions, and for an oriented process, are simple packages of data and methods. For an object, some classes that meet a certain specification are grouped together to form a component. It may provide some specific functionality, the types of components including program class components, data class components, configuration class components.
In this embodiment, the developing and managing specifically includes developing, deploying, and sharing a component specification, defining the component, and performing standardized management on the component; the method is divided into a component definition specification, a component use specification and the like.
In this embodiment, the API type is an application programming interface type, and specifically includes interface types such as remote procedure call, standard query language, file transfer, and information delivery.
In this embodiment, the establishing of the mapping relationship between the API and the standard component is to establish the mapping relationship between the API and the type of the standard component according to the attribute of the standard component in the design interface function.
In this embodiment, the job task may be, for example, data transmission, data processing, or the like.
The beneficial effect of above-mentioned design is: the components are acquired in advance through the development module and managed, standardization of the components is guaranteed, a basis is provided for design of the interface function, the mapping relation between the components and the API types is established in advance through the management module, design of the interface function is simplified, finally, the interface function is designed through the operation task, accuracy of the interface function is guaranteed, and data communication based on the operation task is achieved better.
Example 2
Based on embodiment 1, an embodiment of the present invention provides a self-development system of an interface function, and as shown in fig. 2, the development module includes:
the component acquisition unit is used for acquiring components from each component database from the self-development system, standardizing the components according to a preset standardization rule and acquiring standard components;
the component dividing unit is used for dividing the standard components based on the attributes of the standard components to obtain different types of standard components and establishing type labels for the standard components;
the component standardization unit is used for standardizing the standard component based on the version and the running environment of the self-development system and establishing a standard label;
and the component storage unit is used for storing the standard component and the type label and the standard label corresponding to the standard component to obtain a standard component library.
In this embodiment, standardizing the components to standardize the components according to the rules for establishing the operating environment satisfying the self-development system can solve the problems of formats and the like existing in different component databases.
In this embodiment, the component types include a program type component, a data type component, and a configuration type component, and the components are divided, so that the component types can be specified, and when an interface function is designed, the components can be conveniently searched and called.
In this embodiment, normalizing the standard component is to normalize the use of the standard component, for example, only adding a version required by the application, and prohibiting adding multiple versions of the same component; in principle, only the Release version can be added, and the Snapshop version is not suggested to be added;
note the environment versions supported by the components, such as: JDK8, DB 29.7, and the like.
The beneficial effect of above-mentioned design is: through standardization, classification, use normalization and final storage of components from different component libraries, a standard component library is obtained, and a basis is provided for the design of an interface function.
Example 3
Based on embodiment 1, an embodiment of the present invention provides a self-development system for interface functions, where the development module further includes:
the component combination unit is used for selecting an available standard component from the standard component library based on a function template in a self-development system and establishing a component package based on the available standard component according to the format of the function template;
and the component package storage unit is used for storing the component package and the corresponding function template to the standard component library.
The beneficial effect of above-mentioned design is: the component package is established in advance according to the function template in the self-development system, and when the interface function is designed to use the function template, the component package is directly called, so that the design process is simplified, and the efficiency of designing the interface function is improved.
Example 4
Based on embodiment 1, an embodiment of the present invention provides a self-development system of an interface function, where the management module includes:
the configuration unit is used for configuring relevant standard components from the standard component library based on the API types;
and the mapping unit is used for coupling the API type and the related standard component for operation based on a preset operation model, decoupling the coupling result through a preset programming model to obtain a decoupling result, and establishing a mapping relation based on the decoupling result.
In this embodiment, the API type is an application programming interface type, specifically includes interface types such as remote procedure call, standard query language, file transfer, and information delivery, and is matched with the corresponding standard component.
In this embodiment, the API type and the relevant standard component are coupled to run to simulate a corresponding interface function for the API type according to the relevant standard component, so that the API type implements an interface function.
In this embodiment, decoupling the coupling result is to separate the correspondence between the interface function and the interface, and establish a mapping relationship according to the separation result.
The beneficial effect of above-mentioned design is: the mapping relation between the API and the standard component is established through the API type, the relation between the interface and the interface function can be established before the interface function is designed, and the accuracy of the designed interface function is ensured based on the mapping relation.
Example 5
Based on embodiment 4, an embodiment of the present invention provides a self-development system of an interface function, where the mapping unit includes:
the decoupling analysis unit is used for determining API data and simulation interface function data based on the decoupling result, and performing feature matching based on the key features of the API data and the key features of the simulation interface function data to obtain the corresponding relation between the API data and the simulation interface function data;
and the relationship establishing unit is used for establishing a mapping relationship between the API and the standard component based on the API data, the simulation interface function data and the corresponding relationship.
The beneficial effect of above-mentioned design is: the corresponding relation between the API data and the simulation interface function data is determined according to the decoupling result, so that the mapping relation between the API and the standard component is determined, and the accuracy of the designed interface function is ensured based on the mapping relation.
Example 6
Based on embodiment 1, an embodiment of the present invention provides a self-development system of an interface function, where the function design module includes:
the task analysis unit is used for dividing the job task according to task execution logic to obtain a plurality of subtasks and obtain a logical relationship among the subtasks; based on the logic relation, task nodes are established for the subtasks;
the task analysis unit is further configured to obtain configuration data of the task node, and obtain a target component supporting the configuration data from the standard component library, where the target component includes a target component package or a single target component;
the interface determining unit is used for extracting a single target component from the target components, acquiring a target interface corresponding to the single target component, acquiring a preset attribute value corresponding to the target interface from the self-development system, and acquiring a target program component corresponding to the single target component based on the attribute value;
the function design unit is used for designing an interface function from a target program component corresponding to a single target component in the target components by utilizing the mapping relation;
the function design unit is further configured to extract a target component package from the target component, obtain a function template corresponding to the component package, and modify parameters of the function template based on subtask parameters corresponding to the component package to obtain an initial interface function;
the verification unit is used for decomposing the target component package to obtain a corresponding single target component, obtaining a target mapping relation of the corresponding single target component, and judging whether the initial interface function is matched with the corresponding single target component or not by using the target mapping relation;
if so, taking the initial interface function as a final interface function;
otherwise, extracting the unmatched part in the corresponding single target assembly according to the matching result, and correcting the unmatched part based on the target mapping relation to obtain a final interface function.
In this embodiment, the task execution logic includes an execution association relationship, an order relationship, and the like of the job task.
In this embodiment, different target interfaces correspond to different attribute values, and different attribute values correspond to different target program components, where the target program components are used to implement a program running function.
The beneficial effect of above-mentioned design is: the method comprises the steps of dividing an operation task to obtain a plurality of subtasks, and guaranteeing accuracy of operation task analysis, so that matching degree of a target component and the operation task is guaranteed, data communication based on the operation task is better achieved, then, the target component is analyzed, a function template is directly called for verification by a target component package in the target component, efficiency of designing an interface function is improved, the interface function is designed for a target program component corresponding to a single target component protection ball in the target component, and the efficiency of designing the interface function is improved by designing the interface functions of different modes for the target component package and the single target component while accuracy of the interface function is guaranteed.
Example 7
Based on embodiment 6, an embodiment of the present invention provides a self-development system for an interface function, where the function design unit includes:
a basic function obtaining unit, configured to search, by using the target program component, a basic function corresponding to the target program component from a basic function library;
a matching function obtaining unit, configured to search, according to information of a target interface corresponding to the single target component, an original configuration function corresponding to the target interface information from a configuration function library;
the compiling unit is used for calling dynamic compiling codes suitable for the basic functions and the original configuration functions from a dynamic library and compiling the basic functions and the original configuration functions to obtain target configuration functions;
the relation analysis unit is used for analyzing the mapping relation to obtain the connection structures among all the single target assemblies and establishing an interface communication function for realizing the communication of the connection structures;
the relationship analysis unit is further configured to determine an execution arrangement sequence among all the single target assemblies based on the mapping relationship, and perform a sorting operation on the interface communication functions based on the execution arrangement sequence to obtain a total interface communication function;
the function matching unit is used for carrying out first marking on the target configuration function and second marking on the total interface communication function based on the identification of the target interface corresponding to the single target component, matching the first marking result with the second marking result to obtain a matching result, and acquiring a corresponding interface matching function from a matching function library based on the matching result;
and the function determining unit is used for inserting the target configuration function into the total interface communication function based on the interface matching function to obtain an interface function.
In this embodiment, the basis function is used to implement the functionality of the target program component.
In this embodiment, the original configuration function is used to specify the configuration parameter information of the target interface.
In this embodiment, the target configuration function is configuration parameter information for implementing the function of the target program component.
In this embodiment, the interface matching function is used to define the relationship between the configuration and the communication of the target interface.
The beneficial effect of above-mentioned design is: the functions of all aspects of realizing the operation task are determined according to the target program component, the single target component and the mapping relation, and finally the functions of all aspects are integrated through the matching function to obtain the interface function.
Example 8
Based on embodiment 7, an embodiment of the present invention provides a self-development system of an interface function, where the function design unit further includes:
and the function library unit comprises a basic function library, a configuration function library and a matching function library and is used for providing basic functions for function design, and the function library unit is obtained in advance for the self-development system and can be updated at irregular time.
The beneficial effect of above-mentioned design is: and by setting a function library unit, a basic function is provided for the design of the interface function, and the efficiency of designing the interface function is submitted.
Example 9
Based on embodiment 1, an embodiment of the present invention provides a self-development system for an interface function, further including: the test module is used for testing the interface function;
as shown in fig. 3, the test module includes:
a parameter obtaining unit, configured to obtain a parameter value in the interface function, and determine, based on a test method, a test result change value range corresponding to the parameter value after the test;
the test unit is used for testing the interface function according to the test method to obtain a test result value;
the judging unit is used for judging whether the test result value is in the test result change value range or not;
if so, indicating that the interface function is normal;
otherwise, the interface function is indicated to be abnormal.
The beneficial effect of above-mentioned design is: the normal operation of the interface function is ensured and the accuracy of the interface function is ensured by testing the designed interface function.
Example 10
Based on embodiment 9, an embodiment of the present invention provides a self-development system for an interface function, where the test unit includes:
the name testing unit is used for extracting all parameter names in the interface function to obtain a parameter name queue, and detecting the parameter name queue based on a preset parameter name value to obtain a name testing result value;
calculating to obtain the name test result value according to the following formula;
Figure BDA0003629156980000131
wherein, alpha represents the name test result value, n represents the number of parameters in the parameter name queue, TiA parameter name value, R, representing the ith parameter nameiA preset parameter name value T representing the ith parameter namei-1A parameter name representing the i-1 th parameter name is selected, and when i is equal to 1, T isi-1=1,Ri-1A preset parameter name value representing the i-1 th parameter name, when i is 1, R isi-1=1,Ti+1A parameter name representing the (i + 1) th parameter name is selected, and when i is equal to n, T isi+1=1,Ri+1A preset parameter name value representing the (i + 1) th parameter name, and when i is equal to n, R isi+1=1;
The data testing unit is used for extracting all data information in the interface function to obtain a data queue, and detecting the data queue based on preset data information parameter values to obtain a data testing result value;
calculating to obtain the data test result value according to the following formula;
Figure BDA0003629156980000132
wherein β represents the data test result value, m represents the number of data in the data queue, GjA parameter value, K, representing the jth data messagejmaxData information representing the preset j data informationMaximum value of parameter, KjminAnd the minimum value of the data information parameter preset by the jth data information is represented.
In this embodiment, the values of the various parameters are standardized and range from [0, 1 ].
In this embodiment, the order of the parameter names in the parameter name queue must be complied with, so when calculating the name test result value and testing the current parameter name, the values of the previous and next name parameters of the current parameter name need to be considered, which is used for specific influence
Figure BDA0003629156980000133
And (4) showing.
In this embodiment, the preset parameter value of the data information has a certain range, and when the parameter value of the data information in the data queue is in the middle of the range, it indicates that the better the data test result is.
In this embodiment, when both the name test result value and the data test result value satisfy the test result change value range, it is indicated that the interface function is normal.
In this embodiment, for the formula
Figure BDA0003629156980000141
For example, may be Ti=0.8,Ri=0.6,Ti-1=0.5,Ri-1=0.5,Ti+1=0.7,Ri+1When the value is 0.8, α can be estimated approximately to be 1.67.
In this embodiment, for the formula
Figure BDA0003629156980000142
For example, may be Kjmax=0.9,Kjmin=0.4,GjApproximately, β is estimated to be 0.4 as 0.6.
The beneficial effect of above-mentioned design is: the test comprehensiveness is ensured by testing the two aspects of the parameter name information and the data information of the interface function, and therefore the accuracy of the interface function test is ensured.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A self-development system of interface functions, comprising:
the development module is used for developing and managing the components to obtain a standard component library;
the management module is used for managing the standard component library according to the API type and establishing a mapping relation between the API and the standard component;
and the function design module is used for acquiring the target component from the standard component library based on the operation task and designing an interface function corresponding to the target component based on the mapping relation.
2. The self-development system of interface functions of claim 1, wherein the development module comprises:
the component acquisition unit is used for acquiring components from each component database from the self-development system, standardizing the components according to a preset standardization rule and acquiring standard components;
the component dividing unit is used for dividing the standard components based on the attributes of the standard components to obtain different types of standard components and establishing type labels for the standard components;
the component standardization unit is used for standardizing the standard component based on the version and the running environment of the self-development system and establishing a standard label;
and the component storage unit is used for storing the standard component and the type label and the standard label corresponding to the standard component to obtain a standard component library.
3. The self-development system of interface functions according to claim 1, wherein the development module further comprises:
the component combination unit is used for selecting an available standard component from the standard component library based on a function template in a self-development system and establishing a component package based on the available standard component according to the format of the function template;
and the component package storage unit is used for storing the component package and the corresponding function template to the standard component library.
4. The self-development system of interface functions according to claim 1, wherein the management module comprises:
the configuration unit is used for configuring related standard components from the standard component library based on the API types;
and the mapping unit is used for coupling the API type and the related standard component for operation based on a preset operation model, decoupling the coupling result through a preset programming model to obtain a decoupling result, and establishing a mapping relation based on the decoupling result.
5. The self-development system of interface functions according to claim 4, wherein said mapping unit comprises:
the decoupling analysis unit is used for determining API data and simulation interface function data based on the decoupling result, and performing feature matching based on the key features of the API data and the key features of the simulation interface function data to obtain the corresponding relation between the API data and the simulation interface function data;
and the relationship establishing unit is used for establishing a mapping relationship between the API and the standard component based on the API data, the simulation interface function data and the corresponding relationship.
6. The self-development system of interface functions according to claim 1, wherein the function design module comprises:
the task analysis unit is used for dividing the job task according to task execution logic to obtain a plurality of subtasks and obtain the logical relationship among the plurality of subtasks; based on the logic relation, task nodes are established for the subtasks;
the task analysis unit is further configured to obtain configuration data of the task node and obtain a target component supporting the configuration data from the standard component library, where the target component includes a target component package or a single target component;
the interface determining unit is used for extracting a single target component from the target components, acquiring a target interface corresponding to the single target component, acquiring a preset attribute value corresponding to the target interface from the self-development system, and acquiring a target program component corresponding to the single target component based on the attribute value;
a function design unit, configured to design an interface function according to a target program component corresponding to a single target component in the target components by using the mapping relationship;
the function design unit is further configured to extract a target component package from the target component, obtain a function template corresponding to the component package, and modify parameters of the function template based on subtask parameters corresponding to the component package to obtain an initial interface function;
the verification unit is used for decomposing the target component package to obtain a corresponding single target component, obtaining a target mapping relation of the corresponding single target component, and judging whether the initial interface function is matched with the corresponding single target component or not by using the target mapping relation;
if so, taking the initial interface function as a final interface function;
otherwise, extracting the unmatched part in the corresponding single target assembly according to the matching result, and correcting the unmatched part based on the target mapping relation to obtain the final interface function.
7. The self-development system of interface functions according to claim 6, wherein the function design unit includes:
a basic function obtaining unit, configured to search, by using the target program component, a basic function corresponding to the target program component from a basic function library;
a matching function obtaining unit, configured to search, according to information of a target interface corresponding to the single target component, an original configuration function corresponding to the target interface information from a configuration function library;
the compiling unit is used for calling dynamic compiling codes suitable for the basic functions and the original configuration functions from a dynamic library and compiling the basic functions and the original configuration functions to obtain target configuration functions;
the relation analysis unit is used for analyzing the mapping relation to obtain a connection structure among all the single target assemblies and establishing an interface communication function for realizing the communication of the connection structure;
the relationship analysis unit is further configured to determine an execution arrangement order among all the single target assemblies based on the mapping relationship, and perform a sorting operation on the interface communication functions based on the execution arrangement order to obtain a total interface communication function;
the function matching unit is used for carrying out first marking on the target configuration function and second marking on the total interface communication function based on the identification of the target interface corresponding to the single target component, matching the first marking result with the second marking result to obtain a matching result, and acquiring the corresponding interface matching function from the matching function library based on the matching result;
and the function determining unit is used for inserting the target configuration function into the total interface communication function based on the interface matching function to obtain an interface function.
8. The self-development system of interface functions of claim 7, wherein the function design unit further comprises:
and the function library unit comprises a basic function library, a configuration function library and a matching function library and is used for providing basic functions for function design, and the function library unit is obtained in advance for the self-development system and can be updated at irregular time.
9. The self-development system of an interface function according to claim 1, further comprising: the test module is used for testing the interface function;
the test module includes:
a parameter obtaining unit, configured to obtain a parameter value in the interface function, and determine, based on a test method, a test result change value range corresponding to the parameter value after the test;
the test unit is used for testing the interface function according to the test method to obtain a test result value;
the judging unit is used for judging whether the test result value is in the test result change value range or not;
if so, indicating that the interface function is normal;
otherwise, the interface function is indicated to be abnormal.
10. The self-development system of interface functions of claim 9, wherein the test unit comprises:
the name testing unit is used for extracting all parameter names in the interface function to obtain a parameter name queue, and detecting the parameter name queue based on a preset parameter name value to obtain a name testing result value;
and the data testing unit is used for extracting all data information in the interface function to obtain a data queue, and detecting the data queue based on preset data information parameter values to obtain a data testing result value.
CN202210485944.7A 2022-05-06 2022-05-06 Interface function self-development system Pending CN114780106A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210485944.7A CN114780106A (en) 2022-05-06 2022-05-06 Interface function self-development system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210485944.7A CN114780106A (en) 2022-05-06 2022-05-06 Interface function self-development system

Publications (1)

Publication Number Publication Date
CN114780106A true CN114780106A (en) 2022-07-22

Family

ID=82434270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210485944.7A Pending CN114780106A (en) 2022-05-06 2022-05-06 Interface function self-development system

Country Status (1)

Country Link
CN (1) CN114780106A (en)

Similar Documents

Publication Publication Date Title
US10901709B2 (en) Partitioning based migration of systems to container and microservice based platforms
US7340475B2 (en) Evaluating dynamic expressions in a modeling application
CN109522192B (en) Prediction method based on knowledge graph and complex network combination
US7177822B2 (en) Common database system for sales and marketing process
CN109902105B (en) Data query system, method, device and storage medium for micro-service architecture
US8589884B2 (en) Method and system for identifying regression test cases for a software
CN110337642A (en) The method and apparatus of test are executed by using test case
Kamimura et al. Extracting candidates of microservices from monolithic application code
US6185583B1 (en) Parallel rule-based processing of forms
US7124060B1 (en) Method for isolating a fault from error messages
CN112394942B (en) Distributed software development compiling method and software development platform based on cloud computing
CN106021093A (en) Test case reuse method and system
CN104331366A (en) Test case design efficiency promotion method and system
CN109165209B (en) Data verification method, device, equipment and medium for object types in database
US6915313B2 (en) Deploying predefined data warehouse process models
CN111158741A (en) Method and device for monitoring change of dependency relationship of business module on third-party class library
US20030005093A1 (en) Server configuration versioning tool
CN113821554B (en) Method for realizing heterogeneous database data acquisition
CN103186463A (en) Method and system for determining testing range of software
Clark et al. Event driven architecture modelling and simulation
CN112947896A (en) Directed graph-based component dependence analysis method
CN110471912B (en) Employee attribute information verification method and device and terminal equipment
CN114780106A (en) Interface function self-development system
US7283989B1 (en) System and method for use of application metadata
CN113138906A (en) Call chain data acquisition method, device, equipment and storage medium

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